Interface OrderCustomLineItemQuantityChangedMessage

All Superinterfaces:
BaseResource, DomainResource<Message>, Identifiable<Message>, Message, OrderMessage, Versioned<Message>

public interface OrderCustomLineItemQuantityChangedMessage extends OrderMessage

Generated after a successful Change CustomLineItem Quantity update action.


Example to create an instance using the builder pattern

     OrderCustomLineItemQuantityChangedMessage orderCustomLineItemQuantityChangedMessage = OrderCustomLineItemQuantityChangedMessage.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)
             .customLineItemId("{customLineItemId}")
             .quantity(0.3)
             .oldQuantity(0.3)
             .build()
 
  • Field Details

    • ORDER_CUSTOM_LINE_ITEM_QUANTITY_CHANGED

      static final String ORDER_CUSTOM_LINE_ITEM_QUANTITY_CHANGED
      discriminator value for OrderCustomLineItemQuantityChangedMessage
      See Also:
  • Method Details

    • getCustomLineItemId

      @NotNull @NotNull String getCustomLineItemId()

      Unique identifier of the Custom Line Item.

      Returns:
      customLineItemId
    • getCustomLineItemKey

      String getCustomLineItemKey()

      User-defined unique identifier of the Custom Line Item.

      Returns:
      customLineItemKey
    • getQuantity

      @NotNull @NotNull Long getQuantity()

      Custom Line Item quantity after the Change Custom Line Item Quantity update action.

      Returns:
      quantity
    • getOldQuantity

      @NotNull @NotNull Long getOldQuantity()

      Custom Line Item quantity before the Change Custom Line Item Quantity update action.

      Returns:
      oldQuantity
    • setCustomLineItemId

      void setCustomLineItemId(String customLineItemId)

      Unique identifier of the Custom Line Item.

      Parameters:
      customLineItemId - value to be set
    • setCustomLineItemKey

      void setCustomLineItemKey(String customLineItemKey)

      User-defined unique identifier of the Custom Line Item.

      Parameters:
      customLineItemKey - value to be set
    • setQuantity

      void setQuantity(Long quantity)

      Custom Line Item quantity after the Change Custom Line Item Quantity update action.

      Parameters:
      quantity - value to be set
    • setOldQuantity

      void setOldQuantity(Long oldQuantity)

      Custom Line Item quantity before the Change Custom Line Item Quantity update action.

      Parameters:
      oldQuantity - value to be set
    • of

      factory method
      Returns:
      instance of OrderCustomLineItemQuantityChangedMessage
    • of

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

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

      builder factory method for OrderCustomLineItemQuantityChangedMessage
      Returns:
      builder
    • builder

      create builder for OrderCustomLineItemQuantityChangedMessage instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withOrderCustomLineItemQuantityChangedMessage

      default <T> T withOrderCustomLineItemQuantityChangedMessage(Function<OrderCustomLineItemQuantityChangedMessage,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<OrderCustomLineItemQuantityChangedMessage> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference