Interface OrderCustomLineItemQuantityChangedMessagePayload

All Superinterfaces:
MessagePayload, MessagePayloadMixin, OrderMessagePayload

public interface OrderCustomLineItemQuantityChangedMessagePayload extends OrderMessagePayload

Generated after a successful Change CustomLineItem Quantity update action.


Example to create an instance using the builder pattern

     OrderCustomLineItemQuantityChangedMessagePayload orderCustomLineItemQuantityChangedMessagePayload = OrderCustomLineItemQuantityChangedMessagePayload.builder()
             .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 OrderCustomLineItemQuantityChangedMessagePayload
      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 OrderCustomLineItemQuantityChangedMessagePayload
    • of

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

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

      builder factory method for OrderCustomLineItemQuantityChangedMessagePayload
      Returns:
      builder
    • builder

      create builder for OrderCustomLineItemQuantityChangedMessagePayload instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withOrderCustomLineItemQuantityChangedMessagePayload

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