| Line 1413... |
Line 1413... |
| 1413 |
// "Billing is on hold temporarily", "Billing is on hold temporarily");
|
1413 |
// "Billing is on hold temporarily", "Billing is on hold temporarily");
|
| 1414 |
LOGGER.info("request at uri {}", request.getRequestURI());
|
1414 |
LOGGER.info("request at uri {}", request.getRequestURI());
|
| 1415 |
LOGGER.info("request body {}", createOrderRequest);
|
1415 |
LOGGER.info("request body {}", createOrderRequest);
|
| 1416 |
LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
|
1416 |
LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
|
| 1417 |
int fofoOrderId = orderService.createOrder(createOrderRequest, fofoDetails.getFofoId(), accessoriesDeals);
|
1417 |
int fofoOrderId = orderService.createOrder(createOrderRequest, fofoDetails.getFofoId(), accessoriesDeals);
|
| 1418 |
/*try {
|
1418 |
try {
|
| 1419 |
Set<Integer> fofoOrderItemIds = createOrderRequest.getFofoOrderItems()
|
1419 |
Set<Integer> fofoOrderItemIds = createOrderRequest.getFofoOrderItems()
|
| 1420 |
.stream().map(CustomFofoOrderItem::getItemId).collect(Collectors.toSet());
|
1420 |
.stream().map(CustomFofoOrderItem::getItemId).collect(Collectors.toSet());
|
| 1421 |
scratchService.processScratchOffer(fofoOrderId, createOrderRequest.getPaymentOptions(), fofoOrderItemIds);
|
1421 |
scratchService.processScratchOffer(fofoOrderId, createOrderRequest.getPaymentOptions(), fofoOrderItemIds);
|
| 1422 |
} catch (Exception e) {
|
1422 |
} catch (Exception e) {
|
| 1423 |
LOGGER.info("Exception during processScratchOffer - " + e.getMessage());
|
1423 |
LOGGER.error("Exception during processScratchOffer", e);
|
| 1424 |
}*/
|
1424 |
}
|
| 1425 |
|
1425 |
|
| 1426 |
LOGGER.info("Order has been created successfully...");
|
1426 |
LOGGER.info("Order has been created successfully...");
|
| 1427 |
return "redirect:/get-order/?orderId=" + fofoOrderId;
|
1427 |
return "redirect:/get-order/?orderId=" + fofoOrderId;
|
| 1428 |
}
|
1428 |
}
|
| 1429 |
|
1429 |
|