Subversion Repositories SmartDukaan

Rev

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

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