| Line 1336... |
Line 1336... |
| 1336 |
// "Billing is on hold temporarily", "Billing is on hold temporarily");
|
1336 |
// "Billing is on hold temporarily", "Billing is on hold temporarily");
|
| 1337 |
LOGGER.info("request at uri {}", request.getRequestURI());
|
1337 |
LOGGER.info("request at uri {}", request.getRequestURI());
|
| 1338 |
LOGGER.info("request body {}", createOrderRequest);
|
1338 |
LOGGER.info("request body {}", createOrderRequest);
|
| 1339 |
LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
|
1339 |
LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
|
| 1340 |
int fofoOrderId = orderService.createOrder(createOrderRequest, fofoDetails.getFofoId(), accessoriesDeals);
|
1340 |
int fofoOrderId = orderService.createOrder(createOrderRequest, fofoDetails.getFofoId(), accessoriesDeals);
|
| 1341 |
// try {
|
1341 |
try {
|
| - |
|
1342 |
Set<Integer> fofoOrderItemIds = createOrderRequest.getFofoOrderItems()
|
| - |
|
1343 |
.stream().map(CustomFofoOrderItem::getItemId).collect(Collectors.toSet());
|
| 1342 |
// scratchService.processScratchOffer(fofoOrderId, createOrderRequest.getPaymentOptions(), createOrderRequest.getFofoOrderItems());
|
1344 |
scratchService.processScratchOffer(fofoOrderId, createOrderRequest.getPaymentOptions(), fofoOrderItemIds);
|
| 1343 |
// } catch (Exception e) {
|
1345 |
} catch (Exception e) {
|
| 1344 |
// LOGGER.info("Exception during processScratchOffer - " + e.getMessage());
|
1346 |
LOGGER.info("Exception during processScratchOffer - " + e.getMessage());
|
| 1345 |
// }
|
1347 |
}
|
| 1346 |
|
1348 |
|
| 1347 |
LOGGER.info("Order has been created successfully...");
|
1349 |
LOGGER.info("Order has been created successfully...");
|
| 1348 |
return "redirect:/get-order/?orderId=" + fofoOrderId;
|
1350 |
return "redirect:/get-order/?orderId=" + fofoOrderId;
|
| 1349 |
}
|
1351 |
}
|
| 1350 |
|
1352 |
|