Interface StagedOrderRemoveCustomLineItemAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>,StagedOrderUpdateAction
This update action does not support specifying a quantity, 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
StagedOrderRemoveCustomLineItemAction stagedOrderRemoveCustomLineItemAction = StagedOrderRemoveCustomLineItemAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StagedOrderRemoveCustomLineItemAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StagedOrderRemoveCustomLineItemActionbuilder(StagedOrderRemoveCustomLineItemAction template) create builder for StagedOrderRemoveCustomLineItemAction instancecopyDeep()factory method to create a deep copy of StagedOrderRemoveCustomLineItemActionidof the CustomLineItem to update.keyof the CustomLineItem to update.of()factory methodof(StagedOrderRemoveCustomLineItemAction template) factory method to create a shallow copy StagedOrderRemoveCustomLineItemActionvoidsetCustomLineItemId(String customLineItemId) idof the CustomLineItem to update.voidsetCustomLineItemKey(String customLineItemKey) keyof the CustomLineItem to update.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderRemoveCustomLineItemAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
REMOVE_CUSTOM_LINE_ITEM
discriminator value for StagedOrderRemoveCustomLineItemAction- See Also:
-
-
Method Details
-
getCustomLineItemId
String getCustomLineItemId()idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemId
-
getCustomLineItemKey
String getCustomLineItemKey()keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemKey
-
setCustomLineItemId
idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemId- value to be set
-
setCustomLineItemKey
keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemKey- value to be set
-
of
factory method- Returns:
- instance of StagedOrderRemoveCustomLineItemAction
-
of
factory method to create a shallow copy StagedOrderRemoveCustomLineItemAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StagedOrderRemoveCustomLineItemAction copyDeep()- Specified by:
copyDeepin interfaceStagedOrderUpdateAction
-
deepCopy
@Nullable static StagedOrderRemoveCustomLineItemAction deepCopy(@Nullable StagedOrderRemoveCustomLineItemAction template) factory method to create a deep copy of StagedOrderRemoveCustomLineItemAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderRemoveCustomLineItemAction- Returns:
- builder
-
builder
static StagedOrderRemoveCustomLineItemActionBuilder builder(StagedOrderRemoveCustomLineItemAction template) create builder for StagedOrderRemoveCustomLineItemAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderRemoveCustomLineItemAction
default <T> T withStagedOrderRemoveCustomLineItemAction(Function<StagedOrderRemoveCustomLineItemAction, 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<StagedOrderRemoveCustomLineItemAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-