Interface StagedOrderSetShippingMethodTaxAmountAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>,StagedOrderUpdateAction
A Shipping Method tax amount can be set if the Cart has the ExternalAmount TaxMode.
Example to create an instance using the builder pattern
StagedOrderSetShippingMethodTaxAmountAction stagedOrderSetShippingMethodTaxAmountAction = StagedOrderSetShippingMethodTaxAmountAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StagedOrderSetShippingMethodTaxAmountAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StagedOrderSetShippingMethodTaxAmountActioncreate builder for StagedOrderSetShippingMethodTaxAmountAction instancecopyDeep()factory method to create a deep copy of StagedOrderSetShippingMethodTaxAmountAction@Valid ExternalTaxAmountDraftValue to set.keyof the ShippingMethod to update.of()factory methodfactory method to create a shallow copy StagedOrderSetShippingMethodTaxAmountActionvoidsetExternalTaxAmount(ExternalTaxAmountDraft externalTaxAmount) Value to set.voidsetShippingKey(String shippingKey) keyof the ShippingMethod to update.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetShippingMethodTaxAmountAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithStagedOrderSetShippingMethodTaxAmountAction(Function<StagedOrderSetShippingMethodTaxAmountAction, 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_SHIPPING_METHOD_TAX_AMOUNT
discriminator value for StagedOrderSetShippingMethodTaxAmountAction- See Also:
-
-
Method Details
-
getShippingKey
String getShippingKey()keyof the ShippingMethod to update. This is required for Orders withMultipleShippingMode.- Returns:
- shippingKey
-
getExternalTaxAmount
Value to set. If empty, any existing value will be removed.
- Returns:
- externalTaxAmount
-
setShippingKey
keyof the ShippingMethod to update. This is required for Orders withMultipleShippingMode.- Parameters:
shippingKey- value to be set
-
setExternalTaxAmount
Value to set. If empty, any existing value will be removed.
- 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
-
copyDeep
StagedOrderSetShippingMethodTaxAmountAction copyDeep()- Specified by:
copyDeepin interfaceStagedOrderUpdateAction
-
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
-