Interface CartSetShippingMethodTaxRateAction
- All Superinterfaces:
CartUpdateAction,ResourceUpdateAction<CartUpdateAction>
A Shipping Method Tax Rate can be set if the Cart has the External TaxMode.
Example to create an instance using the builder pattern
CartSetShippingMethodTaxRateAction cartSetShippingMethodTaxRateAction = CartSetShippingMethodTaxRateAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartSetShippingMethodTaxRateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartSetShippingMethodTaxRateActionbuilder(CartSetShippingMethodTaxRateAction template) create builder for CartSetShippingMethodTaxRateAction instancecopyDeep()deepCopy(CartSetShippingMethodTaxRateAction template) factory method to create a deep copy of CartSetShippingMethodTaxRateAction@Valid ExternalTaxRateDraftValue to set.keyof the ShippingMethod to update.of()factory methodof(CartSetShippingMethodTaxRateAction template) factory method to create a shallow copy CartSetShippingMethodTaxRateActionvoidsetExternalTaxRate(ExternalTaxRateDraft externalTaxRate) Value to set.voidsetShippingKey(String shippingKey) keyof the ShippingMethod to update.static tools.jackson.core.type.TypeReference<CartSetShippingMethodTaxRateAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_SHIPPING_METHOD_TAX_RATE
discriminator value for CartSetShippingMethodTaxRateAction- See Also:
-
-
Method Details
-
getShippingKey
String getShippingKey()keyof the ShippingMethod to update. This is required and valid only for Carts withMultipleShippingMode. An InvalidOperation error is returned ifshippingKeyis provided for Carts withSingleShippingMode, or omitted for Carts withMultipleShippingMode.- Returns:
- shippingKey
-
getExternalTaxRate
Value to set. If empty, any existing value is removed.
- Returns:
- externalTaxRate
-
setShippingKey
keyof the ShippingMethod to update. This is required and valid only for Carts withMultipleShippingMode. An InvalidOperation error is returned ifshippingKeyis provided for Carts withSingleShippingMode, or omitted for Carts withMultipleShippingMode.- Parameters:
shippingKey- value to be set
-
setExternalTaxRate
Value to set. If empty, any existing value is removed.
- Parameters:
externalTaxRate- value to be set
-
of
factory method- Returns:
- instance of CartSetShippingMethodTaxRateAction
-
of
factory method to create a shallow copy CartSetShippingMethodTaxRateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartSetShippingMethodTaxRateAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
deepCopy
@Nullable static CartSetShippingMethodTaxRateAction deepCopy(@Nullable CartSetShippingMethodTaxRateAction template) factory method to create a deep copy of CartSetShippingMethodTaxRateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetShippingMethodTaxRateAction- Returns:
- builder
-
builder
static CartSetShippingMethodTaxRateActionBuilder builder(CartSetShippingMethodTaxRateAction template) create builder for CartSetShippingMethodTaxRateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetShippingMethodTaxRateAction
default <T> T withCartSetShippingMethodTaxRateAction(Function<CartSetShippingMethodTaxRateAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-