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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartChangeLineItemsOrderAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartChangeLineItemsOrderActionbuilder(CartChangeLineItemsOrderAction template) create builder for CartChangeLineItemsOrderAction instancecopyDeep()deepCopy(CartChangeLineItemsOrderAction template) factory method to create a deep copy of CartChangeLineItemsOrderActionAll existing LineItemids in the desired new order.of()factory methodof(CartChangeLineItemsOrderAction template) factory method to create a shallow copy CartChangeLineItemsOrderActionvoidsetLineItemOrder(String... lineItemOrder) All existing LineItemids in the desired new order.voidsetLineItemOrder(List<String> lineItemOrder) All existing LineItemids in the desired new order.static com.fasterxml.jackson.core.type.TypeReference<CartChangeLineItemsOrderAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateActionMethods 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
ids in the desired new order.- Returns:
- lineItemOrder
-
setLineItemOrder
All existing LineItem
ids in the desired new order.- Parameters:
lineItemOrder- values to be set
-
setLineItemOrder
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
-
copyDeep
CartChangeLineItemsOrderAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
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
-