Interface StagedOrderSetShippingMethodTaxAmountAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
- All Known Implementing Classes:
StagedOrderSetShippingMethodTaxAmountActionImpl
StagedOrderSetShippingMethodTaxAmountAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetShippingMethodTaxAmountAction stagedOrderSetShippingMethodTaxAmountAction = StagedOrderSetShippingMethodTaxAmountAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderSetShippingMethodTaxAmountAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderSetShippingMethodTaxAmountActioncreate builder for StagedOrderSetShippingMethodTaxAmountAction instancefactory method to create a deep copy of StagedOrderSetShippingMethodTaxAmountAction@Valid ExternalTaxAmountDraft
Cannot be used in LineItemDraft or CustomLineItemDraft.key
of the ShippingMethod to update.of()
factory methodfactory method to create a shallow copy StagedOrderSetShippingMethodTaxAmountActionvoid
setExternalTaxAmount
(ExternalTaxAmountDraft externalTaxAmount) Cannot be used in LineItemDraft or CustomLineItemDraft.void
setShippingKey
(String shippingKey) key
of the ShippingMethod to update.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetShippingMethodTaxAmountAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStagedOrderSetShippingMethodTaxAmountAction
(Function<StagedOrderSetShippingMethodTaxAmountAction, T> helper) 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
-
SET_SHIPPING_METHOD_TAX_AMOUNT
discriminator value for StagedOrderSetShippingMethodTaxAmountAction- See Also:
-
-
Method Details
-
getShippingKey
key
of the ShippingMethod to update. This is required for Orders withMultiple
ShippingMode.- Returns:
- shippingKey
-
getExternalTaxAmount
Cannot be used in LineItemDraft or CustomLineItemDraft.
Can only be set by these update actions:
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Carts
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Order Edits
- Returns:
- externalTaxAmount
-
setShippingKey
key
of the ShippingMethod to update. This is required for Orders withMultiple
ShippingMode.- Parameters:
shippingKey
- value to be set
-
setExternalTaxAmount
Cannot be used in LineItemDraft or CustomLineItemDraft.
Can only be set by these update actions:
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Carts
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Order Edits
- Parameters:
externalTaxAmount
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderSetShippingMethodTaxAmountAction
-
of
static StagedOrderSetShippingMethodTaxAmountAction of(StagedOrderSetShippingMethodTaxAmountAction template) factory method to create a shallow copy StagedOrderSetShippingMethodTaxAmountAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderSetShippingMethodTaxAmountAction deepCopy(@Nullable StagedOrderSetShippingMethodTaxAmountAction template) factory method to create a deep copy of StagedOrderSetShippingMethodTaxAmountAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetShippingMethodTaxAmountAction- Returns:
- builder
-
builder
static StagedOrderSetShippingMethodTaxAmountActionBuilder builder(StagedOrderSetShippingMethodTaxAmountAction template) create builder for StagedOrderSetShippingMethodTaxAmountAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetShippingMethodTaxAmountAction
default <T> T withStagedOrderSetShippingMethodTaxAmountAction(Function<StagedOrderSetShippingMethodTaxAmountAction, 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<StagedOrderSetShippingMethodTaxAmountAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-