Class BackofficeMonitorProductEventUpdatedBody

java.lang.Object
es.kukenan.smartfi.events.common.AbstractEventBody
es.kukenan.smartfi.microservice.backoffice.events.update.BackofficeMonitorProductEventUpdatedBody

public class BackofficeMonitorProductEventUpdatedBody extends es.kukenan.smartfi.events.common.AbstractEventBody
Base class for the body of product updated 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

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

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

      private Optional<String> productId
      product Id.
    • productType

      private Optional<String> productType
      product type.
    • entity

      private Optional<String> entity
      Entity.
    • productSubtypeId

      private Optional<String> productSubtypeId
      Product subtype identifier.
    • productStatus

      private Optional<String> productStatus
      Product status.
    • cardSituation

      private Optional<String> cardSituation
      Card situation.
    • cardlocking

      private Optional<String> cardlocking
      Card locking.
    • expirationDate

      private Optional<LocalDate> expirationDate
      Card expiration date.
    • cardBrand

      private Optional<String> cardBrand
      Card brand.
    • pan

      private Optional<String> pan
      Card PAN.
    • cardType

      private Optional<Integer> cardType
      Card type.
    • cardRegisterDate

      private Optional<LocalDate> cardRegisterDate
      Card register date.
    • cardHolder

      private Optional<String> cardHolder
      Card holder.
    • relationType

      private Optional<String> relationType
      Relation type.
    • movementType

      private Optional<String> movementType
      Movement type.
  • Constructor Details

    • BackofficeMonitorProductEventUpdatedBody

      public BackofficeMonitorProductEventUpdatedBody(String principal, Integer backOfficeId, String id, Optional<String> productId, Optional<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
    • BackofficeMonitorProductEventUpdatedBody

      public BackofficeMonitorProductEventUpdatedBody(String principal, Integer backOfficeId, String id, Optional<String> productId, Optional<String> productType, Optional<String> entity, Optional<String> productSubtypeId, Optional<String> productStatus, Optional<String> cardSituation, Optional<String> cardlocking, Optional<LocalDate> expirationDate, Optional<String> cardBrand, Optional<String> pan, Optional<Integer> cardType, Optional<LocalDate> cardRegisterDate, Optional<String> cardHolder, Optional<String> relationType, Optional<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.