Interface CartChangeLineItemsOrderAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
CartChangeLineItemsOrderAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartChangeLineItemsOrderAction cartChangeLineItemsOrderAction = CartChangeLineItemsOrderAction.builder()
.plusLineItemOrder(lineItemOrderBuilder -> lineItemOrderBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartChangeLineItemsOrderAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartChangeLineItemsOrderActionbuilder
(CartChangeLineItemsOrderAction template) create builder for CartChangeLineItemsOrderAction instancedeepCopy
(CartChangeLineItemsOrderAction template) factory method to create a deep copy of CartChangeLineItemsOrderActionAll existing LineItemid
s in the desired new order.of()
factory methodof
(CartChangeLineItemsOrderAction template) factory method to create a shallow copy CartChangeLineItemsOrderActionvoid
setLineItemOrder
(String... lineItemOrder) All existing LineItemid
s in the desired new order.void
setLineItemOrder
(List<String> lineItemOrder) All existing LineItemid
s in the desired new order.static com.fasterxml.jackson.core.type.TypeReference<CartChangeLineItemsOrderAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_LINE_ITEMS_ORDER
discriminator value for CartChangeLineItemsOrderAction- See Also:
-
-
Method Details
-
getLineItemOrder
All existing LineItem
id
s in the desired new order.- Returns:
- lineItemOrder
-
setLineItemOrder
All existing LineItem
id
s in the desired new order.- Parameters:
lineItemOrder
- values to be set
-
setLineItemOrder
All existing LineItem
id
s 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
@Nullable static CartChangeLineItemsOrderAction deepCopy(@Nullable CartChangeLineItemsOrderAction template) 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
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
-