Package com.commercetools.api.models.me
Interface MyCartChangeTaxModeAction
- All Superinterfaces:
MyCartUpdateAction
,ResourceUpdateAction<MyCartUpdateAction>
- When
External
TaxMode is changed toPlatform
orDisabled
, all previously set external Tax Rates are removed. - When set to
Platform
, Line Items, Custom Line Items, and Shipping Method require a Tax Category with a Tax Rate for the Cart'sshippingAddress
.
Example to create an instance using the builder pattern
MyCartChangeTaxModeAction myCartChangeTaxModeAction = MyCartChangeTaxModeAction.builder()
.taxMode(TaxMode.PLATFORM)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyCartChangeTaxModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyCartChangeTaxModeActionbuilder
(MyCartChangeTaxModeAction template) create builder for MyCartChangeTaxModeAction instancestatic MyCartChangeTaxModeAction
deepCopy
(MyCartChangeTaxModeAction template) factory method to create a deep copy of MyCartChangeTaxModeAction@NotNull TaxMode
The new TaxMode.static MyCartChangeTaxModeAction
of()
factory methodstatic MyCartChangeTaxModeAction
of
(MyCartChangeTaxModeAction template) factory method to create a shallow copy MyCartChangeTaxModeActionvoid
setTaxMode
(TaxMode taxMode) The new TaxMode.static com.fasterxml.jackson.core.type.TypeReference<MyCartChangeTaxModeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
getAction, withMyCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_TAX_MODE
discriminator value for MyCartChangeTaxModeAction- See Also:
-
-
Method Details
-
getTaxMode
The new TaxMode.
- Returns:
- taxMode
-
setTaxMode
The new TaxMode.
- Parameters:
taxMode
- value to be set
-
of
factory method- Returns:
- instance of MyCartChangeTaxModeAction
-
of
factory method to create a shallow copy MyCartChangeTaxModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of MyCartChangeTaxModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCartChangeTaxModeAction- Returns:
- builder
-
builder
create builder for MyCartChangeTaxModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyCartChangeTaxModeAction
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
-