Interface CartRemoveCustomLineItemAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
This update action does not support specifying quantities, unlike the Remove LineItem update action.
If shippingDetails
must be partially removed, use the Change CustomLineItem Quantity update action.
Example to create an instance using the builder pattern
CartRemoveCustomLineItemAction cartRemoveCustomLineItemAction = CartRemoveCustomLineItemAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartRemoveCustomLineItemAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartRemoveCustomLineItemActionbuilder
(CartRemoveCustomLineItemAction template) create builder for CartRemoveCustomLineItemAction instancedeepCopy
(CartRemoveCustomLineItemAction template) factory method to create a deep copy of CartRemoveCustomLineItemActionid
of the CustomLineItem to update.key
of the CustomLineItem to update.of()
factory methodof
(CartRemoveCustomLineItemAction template) factory method to create a shallow copy CartRemoveCustomLineItemActionvoid
setCustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.void
setCustomLineItemKey
(String customLineItemKey) key
of the CustomLineItem to update.static com.fasterxml.jackson.core.type.TypeReference<CartRemoveCustomLineItemAction>
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
-
REMOVE_CUSTOM_LINE_ITEM
discriminator value for CartRemoveCustomLineItemAction- See Also:
-
-
Method Details
-
getCustomLineItemId
String getCustomLineItemId()id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemId
-
getCustomLineItemKey
String getCustomLineItemKey()key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemKey
-
setCustomLineItemId
id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemId
- value to be set
-
setCustomLineItemKey
key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemKey
- value to be set
-
of
factory method- Returns:
- instance of CartRemoveCustomLineItemAction
-
of
factory method to create a shallow copy CartRemoveCustomLineItemAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartRemoveCustomLineItemAction deepCopy(@Nullable CartRemoveCustomLineItemAction template) factory method to create a deep copy of CartRemoveCustomLineItemAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartRemoveCustomLineItemAction- Returns:
- builder
-
builder
create builder for CartRemoveCustomLineItemAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartRemoveCustomLineItemAction
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<CartRemoveCustomLineItemAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-