Interface MyCartChangeLineItemsOrderAction

All Superinterfaces:
MyCartUpdateAction, ResourceUpdateAction<MyCartUpdateAction>

public interface MyCartChangeLineItemsOrderAction extends MyCartUpdateAction
MyCartChangeLineItemsOrderAction
Example to create an instance using the builder pattern

     MyCartChangeLineItemsOrderAction myCartChangeLineItemsOrderAction = MyCartChangeLineItemsOrderAction.builder()
             .plusLineItemOrder(lineItemOrderBuilder -> lineItemOrderBuilder)
             .build()
 
  • Field Details

    • CHANGE_LINE_ITEMS_ORDER

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

    • getLineItemOrder

      @NotNull @NotNull List<String> getLineItemOrder()

      All existing LineItem ids of the Cart in the desired new order.

      Returns:
      lineItemOrder
    • setLineItemOrder

      void setLineItemOrder(String... lineItemOrder)

      All existing LineItem ids of the Cart in the desired new order.

      Parameters:
      lineItemOrder - values to be set
    • setLineItemOrder

      void setLineItemOrder(List<String> lineItemOrder)

      All existing LineItem ids of the Cart in the desired new order.

      Parameters:
      lineItemOrder - values to be set
    • of

      factory method
      Returns:
      instance of MyCartChangeLineItemsOrderAction
    • of

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

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

      builder factory method for MyCartChangeLineItemsOrderAction
      Returns:
      builder
    • builder

      create builder for MyCartChangeLineItemsOrderAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withMyCartChangeLineItemsOrderAction

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