Interface CartSetCartTotalTaxAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
- All Known Implementing Classes:
CartSetCartTotalTaxActionImpl
This update action results in the taxedPrice
field being added to the Cart when the ExternalAmount
TaxMode is used.
Example to create an instance using the builder pattern
CartSetCartTotalTaxAction cartSetCartTotalTaxAction = CartSetCartTotalTaxAction.builder()
.externalTotalGross(externalTotalGrossBuilder -> externalTotalGrossBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartSetCartTotalTaxAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartSetCartTotalTaxActionbuilder
(CartSetCartTotalTaxAction template) create builder for CartSetCartTotalTaxAction instancestatic CartSetCartTotalTaxAction
deepCopy
(CartSetCartTotalTaxAction template) factory method to create a deep copy of CartSetCartTotalTaxAction@Valid List<TaxPortionDraft>
Set if theexternalTotalGross
price is a sum of portions with different tax rates.@NotNull @Valid Money
The Cart's total gross price becoming thetotalGross
field (totalNet
+ taxes) on the Cart'staxedPrice
.static CartSetCartTotalTaxAction
of()
factory methodstatic CartSetCartTotalTaxAction
of
(CartSetCartTotalTaxAction template) factory method to create a shallow copy CartSetCartTotalTaxActionvoid
setExternalTaxPortions
(TaxPortionDraft... externalTaxPortions) Set if theexternalTotalGross
price is a sum of portions with different tax rates.void
setExternalTaxPortions
(List<TaxPortionDraft> externalTaxPortions) Set if theexternalTotalGross
price is a sum of portions with different tax rates.void
setExternalTotalGross
(Money externalTotalGross) The Cart's total gross price becoming thetotalGross
field (totalNet
+ taxes) on the Cart'staxedPrice
.static com.fasterxml.jackson.core.type.TypeReference<CartSetCartTotalTaxAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_CART_TOTAL_TAX
discriminator value for CartSetCartTotalTaxAction- See Also:
-
-
Method Details
-
getExternalTotalGross
The Cart's total gross price becoming the
totalGross
field (totalNet
+ taxes) on the Cart'staxedPrice
.- Returns:
- externalTotalGross
-
getExternalTaxPortions
Set if the
externalTotalGross
price is a sum of portions with different tax rates.- Returns:
- externalTaxPortions
-
setExternalTotalGross
The Cart's total gross price becoming the
totalGross
field (totalNet
+ taxes) on the Cart'staxedPrice
.- Parameters:
externalTotalGross
- value to be set
-
setExternalTaxPortions
Set if the
externalTotalGross
price is a sum of portions with different tax rates.- Parameters:
externalTaxPortions
- values to be set
-
setExternalTaxPortions
Set if the
externalTotalGross
price is a sum of portions with different tax rates.- Parameters:
externalTaxPortions
- values to be set
-
of
factory method- Returns:
- instance of CartSetCartTotalTaxAction
-
of
factory method to create a shallow copy CartSetCartTotalTaxAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CartSetCartTotalTaxAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetCartTotalTaxAction- Returns:
- builder
-
builder
create builder for CartSetCartTotalTaxAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetCartTotalTaxAction
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
-