for(NotificationEntity notification : mailQ.getNotifications()) {
System.out.println(notification.getName());
}
NotificationEntity notification = mailQ.getNotification(1L);
System.out.println(notification.getName());
NotificationEntity notification = new NotificationEntity();
notification.setName("Order confirmation")
.setSubject("Order confirmation")
.setSendAs("Company inc.")
.setTemplate("tHa42Av5s6==")
.setAmpTemplate("QWx0ZXJuYXRpdmUgYmFzZTY0IGVtYWlsIHRleHQ=")
.setAppliedSenderEmail("[email protected]")
.setText("Your order is confirmed")
.setCode("XS-12");
mailQ.createNotification(notification);
NotificationEntity notification = mailQ.getNotification(1L);
notification.setName("Summer sale");
mailQ.updateNotification(notification);
mailQ.deleteNotification(1L);
List<NotificationAttachmentEntity> attachments = new ArrayList<>();
NotificationAttachmentEntity attachment = new NotificationAttachmentEntity();
attachment.setSource("hUjA45ta==")
.setMimeType("plain/text")
.setLink("http://example.org")
.setDisplayName("attachment.txt");
attachments.add(attachment);
NotificationDataEntity notificationData = new NotificationDataEntity();
notificationData.setRecipientEmail("[email protected]")
.setDateFrom(LocalDateTime.now())
.setReplyToEmail("[email protected]")
.setBcc("[email protected]","[email protected]")
.setCc("[email protected]")
.setAttachments(attachments);
mailQ.sendNotificationEmail(264L,notificationData);