| Line 208... |
Line 208... |
| 208 |
|
208 |
|
| 209 |
List<File> attachments = this.savePolicyDocs(insurancePolicy.getPolicyNumber(), byteArrayOutputStream, deviceImg, deviceInvoiceImg);
|
209 |
List<File> attachments = this.savePolicyDocs(insurancePolicy.getPolicyNumber(), byteArrayOutputStream, deviceImg, deviceInvoiceImg);
|
| 210 |
String messageText = MessageFormat.format(
|
210 |
String messageText = MessageFormat.format(
|
| 211 |
"Dear {0}, Thank you for purchasing Damage Protection Plan. Your Policy number is {1}",
|
211 |
"Dear {0}, Thank you for purchasing Damage Protection Plan. Your Policy number is {1}",
|
| 212 |
insurancePolicy.getCustomerFirstName(), insurancePolicy.getPolicyNumber());
|
212 |
insurancePolicy.getCustomerFirstName(), insurancePolicy.getPolicyNumber());
|
| - |
|
213 |
//TODO: add template if needed
|
| 213 |
otpProcessor.sendSms("", messageText, insurancePolicy.getCustomerMobileNumber());
|
214 |
otpProcessor.sendSms("", messageText, insurancePolicy.getCustomerMobileNumber());
|
| 214 |
messageText += "\n Please find your Invoice and Documents submitted by you.";
|
215 |
messageText += "\n Please find your Invoice and Documents submitted by you.";
|
| 215 |
String subject = "Your Gadget Cop damage Protection purchase is successful";
|
216 |
String subject = "Your Gadget Cop damage Protection purchase is successful";
|
| 216 |
this.sendMailWithAttachments(insuranceModel.getCustomerEmailId() , subject, messageText, attachments);
|
217 |
this.sendMailWithAttachments(insuranceModel.getCustomerEmailId() , subject, messageText, attachments);
|
| 217 |
|
218 |
|