| Line 821... |
Line 821... |
| 821 |
}
|
821 |
}
|
| 822 |
|
822 |
|
| 823 |
SendNotificationModel sendNotificationModel = new SendNotificationModel();
|
823 |
SendNotificationModel sendNotificationModel = new SendNotificationModel();
|
| 824 |
sendNotificationModel.setCampaignName("Order Hold");
|
824 |
sendNotificationModel.setCampaignName("Order Hold");
|
| 825 |
sendNotificationModel.setTitle("Order Hold");
|
825 |
sendNotificationModel.setTitle("Order Hold");
|
| - |
|
826 |
sendNotificationModel.setMessage(
|
| 826 |
sendNotificationModel.setMessage(String.format("Dear partner, your SmartDukaan order "
|
827 |
String.format("Dear partner, your SmartDukaan order " + delayBilling.getInvoiceNumber()
|
| 827 |
+ delayBilling.getInvoiceNumber() + " has been delayed " + delayBilling.getReason() + "."));
|
828 |
+ " has been delayed due to" + delayBilling.getReason() + "."));
|
| 828 |
sendNotificationModel.setType("url");
|
829 |
sendNotificationModel.setType("url");
|
| 829 |
sendNotificationModel.setUrl("https://app.smartdukaan.com/pages/home/notifications");
|
830 |
sendNotificationModel.setUrl("https://app.smartdukaan.com/pages/home/notifications");
|
| 830 |
sendNotificationModel.setExpiresat(LocalDateTime.now().plusDays(1));
|
831 |
sendNotificationModel.setExpiresat(LocalDateTime.now().plusDays(1));
|
| 831 |
sendNotificationModel.setMessageType(MessageType.notification);
|
832 |
sendNotificationModel.setMessageType(MessageType.notification);
|
| 832 |
int userId = userAccountRepository.selectUserIdByRetailerId(orders.get(0).getRetailerId());
|
833 |
int userId = userAccountRepository.selectUserIdByRetailerId(orders.get(0).getRetailerId());
|