Interface CartChangeLineItemsOrderAction

All Superinterfaces:
CartUpdateAction, ResourceUpdateAction<CartUpdateAction>

public interface CartChangeLineItemsOrderAction extends CartUpdateAction
CartChangeLineItemsOrderAction
Example to create an instance using the builder pattern

     CartChangeLineItemsOrderAction cartChangeLineItemsOrderAction = CartChangeLineItemsOrderAction.builder()
             .plusLineItemOrder(lineItemOrderBuilder -> lineItemOrderBuilder)
             .build()
 
  • Field Details

    • CHANGE_LINE_ITEMS_ORDER

      static final String CHANGE_LINE_ITEMS_ORDER
      discriminator value for CartChangeLineItemsOrderAction
      See Also:
  • Method Details

    • getLineItemOrder

      @NotNull @NotNull List<String> getLineItemOrder()

      All existing LineItem ids in the desired new order.

      Returns:
      lineItemOrder
    • setLineItemOrder

      void setLineItemOrder(String... lineItemOrder)

      All existing LineItem ids in the desired new order.

      Parameters:
      lineItemOrder - values to be set
    • setLineItemOrder

      void setLineItemOrder(List<String> lineItemOrder)

      All existing LineItem ids in the desired new order.

      Parameters:
      lineItemOrder - values to be set
    • of

      factory method
      Returns:
      instance of CartChangeLineItemsOrderAction
    • of

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

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

      builder factory method for CartChangeLineItemsOrderAction
      Returns:
      builder
    • builder

      create builder for CartChangeLineItemsOrderAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartChangeLineItemsOrderAction

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