Interface OrderCustomLineItemRemovedMessagePayload

All Superinterfaces:
MessagePayload, MessagePayloadMixin, OrderMessagePayload

public interface OrderCustomLineItemRemovedMessagePayload extends OrderMessagePayload

Generated after a successful Remove CustomLineItem update action.


Example to create an instance using the builder pattern

     OrderCustomLineItemRemovedMessagePayload orderCustomLineItemRemovedMessagePayload = OrderCustomLineItemRemovedMessagePayload.builder()
             .customLineItemId("{customLineItemId}")
             .customLineItem(customLineItemBuilder -> customLineItemBuilder)
             .build()
 
  • Field Details

    • ORDER_CUSTOM_LINE_ITEM_REMOVED

      static final String ORDER_CUSTOM_LINE_ITEM_REMOVED
      discriminator value for OrderCustomLineItemRemovedMessagePayload
      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
    • getCustomLineItem

      @NotNull @Valid @NotNull @Valid CustomLineItem getCustomLineItem()

      Custom Line Item that was removed from the Order.

      Returns:
      customLineItem
    • 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
    • setCustomLineItem

      void setCustomLineItem(CustomLineItem customLineItem)

      Custom Line Item that was removed from the Order.

      Parameters:
      customLineItem - value to be set
    • of

      factory method
      Returns:
      instance of OrderCustomLineItemRemovedMessagePayload
    • of

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

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

      builder factory method for OrderCustomLineItemRemovedMessagePayload
      Returns:
      builder
    • builder

      create builder for OrderCustomLineItemRemovedMessagePayload instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withOrderCustomLineItemRemovedMessagePayload

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