Class EcommerceCreatedEventMapper

java.lang.Object
es.kukenan.smartfi.microservice.contracts.service.mapper.EcommerceCreatedEventMapper

@Component public class EcommerceCreatedEventMapper extends Object
Component used to create CardCreatedEvent.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private es.kukenan.smartfi.common.context.RequestContextManager
    Request context manager.
    private String
    This micro-service name.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    es.kukenan.smartfi.microservice.contracts.events.created.NotificationEcommerceEvent
    map(es.kukenan.smartfi.microservice.contracts.api.psd2.EcommerceRequestDto ecommerceRequestDto, Integer backOfficeId)
    Create a NotificationEcommerceEvent for the given card in the given context.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • serviceName

      @Value("${spring.application.name}") private String serviceName
      This micro-service name.
    • requestContextManager

      @Autowired private es.kukenan.smartfi.common.context.RequestContextManager requestContextManager
      Request context manager.
  • Constructor Details

    • EcommerceCreatedEventMapper

      public EcommerceCreatedEventMapper()
  • Method Details

    • map

      public es.kukenan.smartfi.microservice.contracts.events.created.NotificationEcommerceEvent map(es.kukenan.smartfi.microservice.contracts.api.psd2.EcommerceRequestDto ecommerceRequestDto, Integer backOfficeId)
      Create a NotificationEcommerceEvent for the given card in the given context.
      Parameters:
      ecommerceRequestDto - Request ecommerce operation.
      backOfficeId - Backoffice identifier.
      Returns:
      the inserted instance data.