Interface OrderShipmentStateChangedMessage

All Superinterfaces:
BaseResource, DomainResource<Message>, Identifiable<Message>, Message, OrderMessage, Versioned<Message>
All Known Implementing Classes:
OrderShipmentStateChangedMessageImpl

public interface OrderShipmentStateChangedMessage extends OrderMessage

Generated after a successful Change ShipmentState update action.


Example to create an instance using the builder pattern

     OrderShipmentStateChangedMessage orderShipmentStateChangedMessage = OrderShipmentStateChangedMessage.builder()
             .id("{id}")
             .version(0.3)
             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .sequenceNumber(0.3)
             .resource(resourceBuilder -> resourceBuilder)
             .resourceVersion(0.3)
             .shipmentState(ShipmentState.SHIPPED)
             .oldShipmentState(ShipmentState.SHIPPED)
             .build()
 
  • Field Details

    • ORDER_SHIPMENT_STATE_CHANGED

      static final String ORDER_SHIPMENT_STATE_CHANGED
      discriminator value for OrderShipmentStateChangedMessage
      See Also:
  • Method Details

    • getShipmentState

      @NotNull @NotNull ShipmentState getShipmentState()

      ShipmentState after the Change Shipment State update action.

      Returns:
      shipmentState
    • getOldShipmentState

      @NotNull @NotNull ShipmentState getOldShipmentState()

      ShipmentState before the Change Shipment State update action.

      Returns:
      oldShipmentState
    • setShipmentState

      void setShipmentState(ShipmentState shipmentState)

      ShipmentState after the Change Shipment State update action.

      Parameters:
      shipmentState - value to be set
    • setOldShipmentState

      void setOldShipmentState(ShipmentState oldShipmentState)

      ShipmentState before the Change Shipment State update action.

      Parameters:
      oldShipmentState - value to be set
    • of

      factory method
      Returns:
      instance of OrderShipmentStateChangedMessage
    • of

      factory method to create a shallow copy OrderShipmentStateChangedMessage
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of OrderShipmentStateChangedMessage
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for OrderShipmentStateChangedMessage
      Returns:
      builder
    • builder

      create builder for OrderShipmentStateChangedMessage instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withOrderShipmentStateChangedMessage

      default <T> T withOrderShipmentStateChangedMessage(Function<OrderShipmentStateChangedMessage,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<OrderShipmentStateChangedMessage> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference