Class FirmEventService
java.lang.Object
es.kukenan.smartfi.microservice.communication.service.messaging.AbstractDomainEventService
es.kukenan.smartfi.microservice.communication.service.messaging.FirmEventService
This service owns the logic of the firm domain events processing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MailjetMailNotificationHandlerMailjet Mail NotificationHandler handler.private MessageChannelPriorityRepositoryMessage Channel Priority Repository.private PushNotificationHandlerPush notification handler.static final StringTemplate variable for pan field.static final StringTemplate variable for status field.private UsersRepositoryusers Repository.Fields inherited from class es.kukenan.smartfi.microservice.communication.service.messaging.AbstractDomainEventService
CAT_DESTINATION_PREFIX, CAT_LANG, CAT_USER, notificationService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate UserFind user for template data.getTemplateVariables(es.kukenan.smartfi.microservice.firm.events.ecommerce.FirmEcommerceEventBody body) Get event data to complete email template variables.voidhandleFirmEcommerceNotificationEvent(es.kukenan.smartfi.microservice.firm.events.ecommerce.FirmEcommerceEvent firmEcommerceEvent) Handles the given notifications request delivery FirmEcommerceEvent Event.Methods inherited from class es.kukenan.smartfi.microservice.communication.service.messaging.AbstractDomainEventService
createVirtualUserForCatDestination, eventTypeDescriptor, findMessages, findRealUser, findRealUserFromOnboarding, handleGenericNotificationEvent, handleGenericNotificationEvent, toMessageSpecialProperties
-
Field Details
-
TEMPLATE_AMOUNT_FIELD
Template variable for pan field.- See Also:
-
TEMPLATE_ECOMMERCE_NAME_FIELD
Template variable for status field.- See Also:
-
mailjetMailNotificationHandler
Mailjet Mail NotificationHandler handler. -
pushNotificationHandler
Push notification handler. -
messageChannelPriorityRepository
Message Channel Priority Repository. -
usersRepository
users Repository.
-
-
Constructor Details
-
FirmEventService
public FirmEventService()
-
-
Method Details
-
handleFirmEcommerceNotificationEvent
public void handleFirmEcommerceNotificationEvent(es.kukenan.smartfi.microservice.firm.events.ecommerce.FirmEcommerceEvent firmEcommerceEvent) Handles the given notifications request delivery FirmEcommerceEvent Event.- Parameters:
firmEcommerceEvent- object holding the notifications request details.
-
findUser
Find user for template data.- Parameters:
userId- Skyline unique user identifier- Returns:
- user found by skyline identifier.
-
getTemplateVariables
private Map<String,Object> getTemplateVariables(es.kukenan.smartfi.microservice.firm.events.ecommerce.FirmEcommerceEventBody body) Get event data to complete email template variables.- Parameters:
body- Firm ecommerce event body.- Returns:
- Map with variables for firm ecommerce deployed event.
-