java.lang.Object
es.kukenan.smartfi.microservice.communication.service.messaging.AbstractDomainEventService
es.kukenan.smartfi.microservice.communication.service.messaging.FirmEventService

@Service public class FirmEventService extends AbstractDomainEventService
This service owns the logic of the firm domain events processing.
  • Field Details

    • TEMPLATE_AMOUNT_FIELD

      public static final String TEMPLATE_AMOUNT_FIELD
      Template variable for pan field.
      See Also:
    • TEMPLATE_ECOMMERCE_NAME_FIELD

      public static final String TEMPLATE_ECOMMERCE_NAME_FIELD
      Template variable for status field.
      See Also:
    • mailjetMailNotificationHandler

      @Autowired private MailjetMailNotificationHandler mailjetMailNotificationHandler
      Mailjet Mail NotificationHandler handler.
    • pushNotificationHandler

      @Autowired private PushNotificationHandler pushNotificationHandler
      Push notification handler.
    • messageChannelPriorityRepository

      @Autowired private MessageChannelPriorityRepository messageChannelPriorityRepository
      Message Channel Priority Repository.
    • usersRepository

      @Autowired private UsersRepository 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

      private User findUser(String userId)
      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.