Class BackofficeMonitorProductEventCancelledBody

java.lang.Object
es.kukenan.smartfi.events.common.AbstractEventBody
es.kukenan.smartfi.microservice.backoffice.events.cancelled.BackofficeMonitorProductEventCancelledBody

public class BackofficeMonitorProductEventCancelledBody 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 Optional<String> productId
      product Id.
    • productType

      private Optional<String> productType
      product type.
  • Constructor Details

    • BackofficeMonitorProductEventCancelledBody

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