Class NotificationEcommerceEventBody

java.lang.Object
es.kukenan.smartfi.events.common.AbstractEventBody
es.kukenan.smartfi.microservice.contracts.events.created.NotificationEcommerceEventBody

public class NotificationEcommerceEventBody 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

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

      @NotBlank private @NotBlank String backOfficeUserId
      user ID.
    • amount

      private String amount
      Amount data.
    • currency

      private String currency
      Currency type.
    • commerce

      private String commerce
      Commerce operation.
    • pan

      private String pan
      Card data.
  • Constructor Details

    • NotificationEcommerceEventBody

      public NotificationEcommerceEventBody(String principal, Integer backOfficeId, String backOfficeUserId, String amount, String currency, String commerce, String pan)
      Full state constructor.
      Parameters:
      principal - value of property principal in Notification Event
      backOfficeId - where the value come from
      backOfficeUserId - user id
      amount - amount data.
      currency - currency type.
      commerce - commerce name.
      pan - card data.