Subversion Repositories SmartDukaan

Rev

Rev 29598 | Rev 29750 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 29598 Rev 29748
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(
-
 
827
						String.format("Dear partner, your SmartDukaan order " + delayBilling.getInvoiceNumber()
826
				sendNotificationModel.setMessage(String.format("Dear partner, your SmartDukaan order "
828
								+ "has been delayed due to  " + delayBilling.getReason() + "."));
827
						+ delayBilling.getInvoiceNumber() + " has been delayed  " + delayBilling.getReason() + "."));
829
				sendNotificationModel.setType("url");
828
				sendNotificationModel.setType("url");
830
				sendNotificationModel.setUrl("https://app.smartdukaan.com/pages/home/notifications");
829
				sendNotificationModel.setUrl("https://app.smartdukaan.com/pages/home/notifications");
831
				sendNotificationModel.setExpiresat(LocalDateTime.now().plusDays(1));
830
				sendNotificationModel.setExpiresat(LocalDateTime.now().plusDays(1));
832
				sendNotificationModel.setMessageType(MessageType.notification);
831
				sendNotificationModel.setMessageType(MessageType.notification);
833
				int userId = userAccountRepository.selectUserIdByRetailerId(orders.get(0).getRetailerId());
832
				int userId = userAccountRepository.selectUserIdByRetailerId(orders.get(0).getRetailerId());