| Line 1478... |
Line 1478... |
| 1478 |
}
|
1478 |
}
|
| 1479 |
}
|
1479 |
}
|
| 1480 |
}
|
1480 |
}
|
| 1481 |
|
1481 |
|
| 1482 |
public void testToffee() throws Exception {
|
1482 |
public void testToffee() throws Exception {
|
| - |
|
1483 |
LOGGER.info("Insurance Sum Summary --- {}",
|
| - |
|
1484 |
insurancePolicyRepository.selectAmountSumGroupByRetailerId(LocalDateTime.now().minusDays(1), null));
|
| - |
|
1485 |
LOGGER.info("Insurance Qty Summary --- {}",
|
| - |
|
1486 |
insurancePolicyRepository.selectQtyGroupByRetailerId(LocalDateTime.now().minusDays(1), null));
|
| 1483 |
// LOGGER.info("{}", toffeeService.getAuthToken());
|
1487 |
// LOGGER.info("{}", toffeeService.getAuthToken());
|
| 1484 |
LOGGER.info("{}", toffeeService.getProducts());
|
1488 |
/*LOGGER.info("{}", toffeeService.getProducts());
|
| 1485 |
// LOGGER.info("{}", toffeeService.getPincodes("36103000PR"));
|
1489 |
// LOGGER.info("{}", toffeeService.getPincodes("36103000PR"));
|
| 1486 |
PremiumCalculationRequestModel pcrm = new PremiumCalculationRequestModel();
|
1490 |
PremiumCalculationRequestModel pcrm = new PremiumCalculationRequestModel();
|
| 1487 |
pcrm.setProductDetails("36103000PR");
|
1491 |
pcrm.setProductDetails("36103000PR");
|
| 1488 |
// pcrm.setProductDetails("36103000PR");
|
1492 |
// pcrm.setProductDetails("36103000PR");
|
| 1489 |
pcrm.setDurations(Arrays.asList("3 Months", "6 Months", "1 Year"));
|
1493 |
pcrm.setDurations(Arrays.asList("3 Months", "6 Months", "1 Year"));
|
| 1490 |
pcrm.setSumInsured("15000");
|
1494 |
pcrm.setSumInsured("15000");
|
| 1491 |
System.out.println(toffeeService.getPremiumCalculation(pcrm));
|
1495 |
System.out.println(toffeeService.getPremiumCalculation(pcrm));*/
|
| 1492 |
}
|
1496 |
}
|
| 1493 |
|
1497 |
|
| 1494 |
public void schemeRollback(List<String> schemeIds) throws Exception {
|
1498 |
public void schemeRollback(List<String> schemeIds) throws Exception {
|
| 1495 |
List<Integer> schemeIdsInt = schemeIds.stream().map(x -> Integer.parseInt(x)).collect(Collectors.toList());
|
1499 |
List<Integer> schemeIdsInt = schemeIds.stream().map(x -> Integer.parseInt(x)).collect(Collectors.toList());
|
| 1496 |
Map<Integer, Scheme> schemesMap = schemeRepository.selectBySchemeIds(schemeIdsInt, 0, schemeIds.size()).stream()
|
1500 |
Map<Integer, Scheme> schemesMap = schemeRepository.selectBySchemeIds(schemeIdsInt, 0, schemeIds.size()).stream()
|