Class BackofficeMonitorProductEventCreatedBody

java.lang.Object
es.kukenan.smartfi.events.common.AbstractEventBody
es.kukenan.smartfi.microservice.backoffice.events.created.BackofficeMonitorProductEventCreatedBody

public class BackofficeMonitorProductEventCreatedBody extends es.kukenan.smartfi.events.common.AbstractEventBody
Base class for the body of product backoffice Events.

Please note that @JsonInclude(Include.NON_NULL) annotation is specially important to make Optional.empty fields to be serialized as null properties and null fields to bo not serialized at all.

This way, the event receptor will be able to distinguish not fields to leave unchanged (null) from fields to be removed ( Optional.empty).

  • Field Details

    • backOfficeId

      @NotBlank private @NotBlank Integer backOfficeId
      Back office ID.
    • backOfficeUserId

      @NotNull private @NotNull String backOfficeUserId
      user ID.
    • productId

      private String productId
      product Id.
    • productType

      private String productType
      product type.
    • entity

      private String entity
      Entity.
    • productSubtypeId

      private String productSubtypeId
      Product subtype identifier.
    • productStatus

      private String productStatus
      Product status.
    • cardSituation

      private String cardSituation
      Card situation.
    • cardLocking

      private String cardLocking
      Card locking.
    • expirationDate

      private LocalDate expirationDate
      Card expiration date.
    • cardBrand

      private String cardBrand
      Card brand.
    • pan

      private String pan
      Card PAN.
    • cardType

      private Integer cardType
      Card type.
    • cardRegisterDate

      private LocalDate cardRegisterDate
      Card register date.
    • cardHolder

      private String cardHolder
      Card holder.
    • movementType

      private String movementType
      Type movement.
    • relationType

      private String relationType
      Relation type.
  • Constructor Details

    • BackofficeMonitorProductEventCreatedBody

      public BackofficeMonitorProductEventCreatedBody(String principal, Integer backOfficeId, String id, String productId, String productType)
      Full state constructor version 1.
      Parameters:
      principal - value of property principal in Notification Event
      backOfficeId - where the value come from
      id - person number
      productId - product identifier
      productType - product type
    • BackofficeMonitorProductEventCreatedBody

      public BackofficeMonitorProductEventCreatedBody(String principal, Integer backOfficeId, String id, String productId, String productType, String entity, String productSubtypeId, String productStatus, String cardSituation, String cardLocking, LocalDate expirationDate, String cardBrand, String pan, Integer cardType, LocalDate cardRegisterDate, String cardHolder, String relationType, String movementType)
      Full state constructor version 2.
      Parameters:
      principal - value of property principal in Notification Event
      backOfficeId - where the value come from
      id - person number
      productId - product identifier
      productType - product type
      entity - entity
      productSubtypeId - product subtype identifier
      productStatus - product status
      cardSituation - card situation
      cardLocking - card locking
      expirationDate - expiration date
      cardBrand - card brand
      pan - PAN
      cardType - card type
      cardRegisterDate - card register date
      cardHolder - card holder
      relationType - relation type.
      movementType - movement type