Interface StagedOrderRemoveLineItemAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
- All Known Implementing Classes:
StagedOrderRemoveLineItemActionImpl
StagedOrderRemoveLineItemAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderRemoveLineItemAction stagedOrderRemoveLineItemAction = StagedOrderRemoveLineItemAction.builder()
.lineItemId("{lineItemId}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderRemoveLineItemAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderRemoveLineItemActionbuilder
(StagedOrderRemoveLineItemAction template) create builder for StagedOrderRemoveLineItemAction instancedeepCopy
(StagedOrderRemoveLineItemAction template) factory method to create a deep copy of StagedOrderRemoveLineItemAction@Valid Money
Draft type that stores amounts only in cent precision for the specified currency.@Valid ExternalLineItemTotalPrice
@NotNull String
@Valid ItemShippingDetailsDraft
For order creation and updates, the sum of thetargets
must match the quantity of the Line Items or Custom Line Items.of()
factory methodof
(StagedOrderRemoveLineItemAction template) factory method to create a shallow copy StagedOrderRemoveLineItemActionvoid
setExternalPrice
(Money externalPrice) Draft type that stores amounts only in cent precision for the specified currency.void
setExternalTotalPrice
(ExternalLineItemTotalPrice externalTotalPrice) set externalTotalPricevoid
setLineItemId
(String lineItemId) set lineItemIdvoid
setQuantity
(Long quantity) set quantityvoid
setShippingDetailsToRemove
(ItemShippingDetailsDraft shippingDetailsToRemove) For order creation and updates, the sum of thetargets
must match the quantity of the Line Items or Custom Line Items.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderRemoveLineItemAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
REMOVE_LINE_ITEM
discriminator value for StagedOrderRemoveLineItemAction- See Also:
-
-
Method Details
-
getLineItemId
- Returns:
- lineItemId
-
getQuantity
- Returns:
- quantity
-
getExternalPrice
Draft type that stores amounts only in cent precision for the specified currency.
- Returns:
- externalPrice
-
getExternalTotalPrice
- Returns:
- externalTotalPrice
-
getShippingDetailsToRemove
For order creation and updates, the sum of the
targets
must match the quantity of the Line Items or Custom Line Items.- Returns:
- shippingDetailsToRemove
-
setLineItemId
set lineItemId- Parameters:
lineItemId
- value to be set
-
setQuantity
set quantity- Parameters:
quantity
- value to be set
-
setExternalPrice
Draft type that stores amounts only in cent precision for the specified currency.
- Parameters:
externalPrice
- value to be set
-
setExternalTotalPrice
set externalTotalPrice- Parameters:
externalTotalPrice
- value to be set
-
setShippingDetailsToRemove
For order creation and updates, the sum of the
targets
must match the quantity of the Line Items or Custom Line Items.- Parameters:
shippingDetailsToRemove
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderRemoveLineItemAction
-
of
factory method to create a shallow copy StagedOrderRemoveLineItemAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderRemoveLineItemAction deepCopy(@Nullable StagedOrderRemoveLineItemAction template) factory method to create a deep copy of StagedOrderRemoveLineItemAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderRemoveLineItemAction- Returns:
- builder
-
builder
create builder for StagedOrderRemoveLineItemAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderRemoveLineItemAction
default <T> T withStagedOrderRemoveLineItemAction(Function<StagedOrderRemoveLineItemAction, 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<StagedOrderRemoveLineItemAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-