in src/main/java/com/epam/digital/data/platform/settings/api/service/NotificationService.java [46:75]
public void sendNotification(
Channel channel,
String address,
String username,
String otpCode,
Recipient.RecipientRealm realm) {
List<Recipient> recipients = List.of(Recipient.builder()
.id(username)
.channels(List.of(getChannelObject(channel, address)))
.parameters(Map.of("verificationCode", otpCode))
.realm(realm)
.build());
var notificationMessageDto = UserNotificationMessageDto
.builder()
.context(NotificationContextDto.builder()
.system("Low-code Platform")
.application(applicationName)
.build())
.notification(UserNotificationDto.builder()
.title(subjects.get(channel))
.templateName("channel-confirmation")
.ignoreChannelPreferences(true)
.build())
.recipients(recipients)
.build();
notificationFacade.sendNotification(notificationMessageDto);
}