Subversion Repositories SmartDukaan

Rev

Rev 25726 | Rev 26531 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25726 Rev 26514
Line 481... Line 481...
481
	}
481
	}
482
 
482
 
483
	@RequestMapping(value = "/create-order", method = RequestMethod.POST)
483
	@RequestMapping(value = "/create-order", method = RequestMethod.POST)
484
	public String createOrder(HttpServletRequest request, @RequestBody CreateOrderRequest createOrderRequest,
484
	public String createOrder(HttpServletRequest request, @RequestBody CreateOrderRequest createOrderRequest,
485
			Model model) throws ProfitMandiBusinessException {
485
			Model model) throws ProfitMandiBusinessException {
-
 
486
		throw new ProfitMandiBusinessException("Billing is on hold temporarily", "Billing is on hold temporarily", "Billing is on hold temporarily");
486
		LOGGER.info("request at uri {} body {}", request.getRequestURI(), createOrderRequest);
487
		/*LOGGER.info("request at uri {} body {}", request.getRequestURI(), createOrderRequest);
487
		LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
488
		LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
488
 
489
 
489
		int fofoOrderId = orderService.createOrder(createOrderRequest, fofoDetails.getFofoId(), accessoriesDeals);
490
		int fofoOrderId = orderService.createOrder(createOrderRequest, fofoDetails.getFofoId(), accessoriesDeals);
490
		LOGGER.info("Order has been created successfully...");
491
		LOGGER.info("Order has been created successfully...");
491
		return "redirect:/get-order/?orderId=" + fofoOrderId;
492
		return "redirect:/get-order/?orderId=" + fofoOrderId;*/
492
	}
493
	}
493
 
494
 
494
	@RequestMapping(value = "/order/bad_return", method = RequestMethod.POST)
495
	@RequestMapping(value = "/order/bad_return", method = RequestMethod.POST)
495
	public ResponseEntity<?> badReturn(HttpServletRequest request, @RequestBody FoiBadReturnRequest foiBadReturnRequest,
496
	public ResponseEntity<?> badReturn(HttpServletRequest request, @RequestBody FoiBadReturnRequest foiBadReturnRequest,
496
			Model model) throws ProfitMandiBusinessException {
497
			Model model) throws ProfitMandiBusinessException {