Interface StagedOrderSetCustomLineItemTaxAmountAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>,StagedOrderUpdateAction
Can be used if the Cart has the ExternalAmount TaxMode.
Example to create an instance using the builder pattern
StagedOrderSetCustomLineItemTaxAmountAction stagedOrderSetCustomLineItemTaxAmountAction = StagedOrderSetCustomLineItemTaxAmountAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StagedOrderSetCustomLineItemTaxAmountAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StagedOrderSetCustomLineItemTaxAmountActioncreate builder for StagedOrderSetCustomLineItemTaxAmountAction instancecopyDeep()factory method to create a deep copy of StagedOrderSetCustomLineItemTaxAmountActionidof the CustomLineItem to update.keyof the CustomLineItem to update.@Valid ExternalTaxAmountDraftValue to set.keyof the ShippingMethod used for this Custom Line Item.of()factory methodfactory method to create a shallow copy StagedOrderSetCustomLineItemTaxAmountActionvoidsetCustomLineItemId(String customLineItemId) idof the CustomLineItem to update.voidsetCustomLineItemKey(String customLineItemKey) keyof the CustomLineItem to update.voidsetExternalTaxAmount(ExternalTaxAmountDraft externalTaxAmount) Value to set.voidsetShippingKey(String shippingKey) keyof the ShippingMethod used for this Custom Line Item.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetCustomLineItemTaxAmountAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithStagedOrderSetCustomLineItemTaxAmountAction(Function<StagedOrderSetCustomLineItemTaxAmountAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
SET_CUSTOM_LINE_ITEM_TAX_AMOUNT
discriminator value for StagedOrderSetCustomLineItemTaxAmountAction- 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
-
getExternalTaxAmount
Value to set. If empty, any existing value is removed.
- Returns:
- externalTaxAmount
-
getShippingKey
String getShippingKey()keyof the ShippingMethod used for this Custom Line Item. This is required for Carts withMultipleShippingMode.- Returns:
- shippingKey
-
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
-
setExternalTaxAmount
Value to set. If empty, any existing value is removed.
- Parameters:
externalTaxAmount- value to be set
-
setShippingKey
keyof the ShippingMethod used for this Custom Line Item. This is required for Carts withMultipleShippingMode.- Parameters:
shippingKey- value to be set
-
of
factory method- Returns:
- instance of StagedOrderSetCustomLineItemTaxAmountAction
-
of
static StagedOrderSetCustomLineItemTaxAmountAction of(StagedOrderSetCustomLineItemTaxAmountAction template) factory method to create a shallow copy StagedOrderSetCustomLineItemTaxAmountAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StagedOrderSetCustomLineItemTaxAmountAction copyDeep()- Specified by:
copyDeepin interfaceStagedOrderUpdateAction
-
deepCopy
@Nullable static StagedOrderSetCustomLineItemTaxAmountAction deepCopy(@Nullable StagedOrderSetCustomLineItemTaxAmountAction template) factory method to create a deep copy of StagedOrderSetCustomLineItemTaxAmountAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetCustomLineItemTaxAmountAction- Returns:
- builder
-
builder
static StagedOrderSetCustomLineItemTaxAmountActionBuilder builder(StagedOrderSetCustomLineItemTaxAmountAction template) create builder for StagedOrderSetCustomLineItemTaxAmountAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetCustomLineItemTaxAmountAction
default <T> T withStagedOrderSetCustomLineItemTaxAmountAction(Function<StagedOrderSetCustomLineItemTaxAmountAction, 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<StagedOrderSetCustomLineItemTaxAmountAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-