| Line 166... |
Line 166... |
| 166 |
insurancePolicy.setCustomerAddress2(insuranceModel.getCustomerAddress2());
|
166 |
insurancePolicy.setCustomerAddress2(insuranceModel.getCustomerAddress2());
|
| 167 |
insurancePolicy.setCustomerCity(insuranceModel.getCustomerCity());
|
167 |
insurancePolicy.setCustomerCity(insuranceModel.getCustomerCity());
|
| 168 |
insurancePolicy.setCustomerPinCode(insuranceModel.getCustomerPinCode());
|
168 |
insurancePolicy.setCustomerPinCode(insuranceModel.getCustomerPinCode());
|
| 169 |
insurancePolicy.setCustomerState(insuranceModel.getCustomerState());
|
169 |
insurancePolicy.setCustomerState(insuranceModel.getCustomerState());
|
| 170 |
insurancePolicyRepository.persist(insurancePolicy);
|
170 |
insurancePolicyRepository.persist(insurancePolicy);
|
| - |
|
171 |
insuranceModel.setPolicyNumber(insurancePolicy.getPolicyNumber());
|
| 171 |
String walletDescription = "Purchased Damage Protection policy " + insurancePolicy.getPolicyNumber()
|
172 |
String walletDescription = "Purchased Damage Protection policy " + insurancePolicy.getPolicyNumber()
|
| 172 |
+ " for " + insurancePolicy.getCustomerFirstName();
|
173 |
+ " for " + insurancePolicy.getCustomerFirstName();
|
| 173 |
|
174 |
|
| 174 |
walletService.consumeAmountFromWallet(uc.getUserId(), insurancePolicy.getId(), WalletReferenceType.DAMAGE_PROTECTION, walletDescription, insurancePolicy.getSaleAmount());
|
175 |
walletService.consumeAmountFromWallet(uc.getUserId(), insurancePolicy.getId(), WalletReferenceType.DAMAGE_PROTECTION, walletDescription, insurancePolicy.getSaleAmount());
|
| 175 |
|
176 |
|