Class CartSetCartTotalTaxActionImpl
java.lang.Object
com.commercetools.api.models.cart.CartSetCartTotalTaxActionImpl
- All Implemented Interfaces:
CartSetCartTotalTaxAction
,CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CartSetCartTotalTaxActionImpl
extends Object
implements CartSetCartTotalTaxAction, io.vrap.rmf.base.client.ModelBase
This update action results in the taxedPrice
field being added to the Cart when the ExternalAmount
TaxMode is used.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.cart.CartSetCartTotalTaxAction
SET_CART_TOTAL_TAX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Set if theexternalTotalGross
price is a sum of portions with different tax rates.The Cart's total gross price becoming thetotalGross
field (totalNet
+ taxes) on the Cart'staxedPrice
.int
hashCode()
void
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
.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.cart.CartSetCartTotalTaxAction
withCartSetCartTotalTaxAction
Methods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
withCartUpdateAction
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
CartSetCartTotalTaxActionImpl
public CartSetCartTotalTaxActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CartUpdateAction>
- Returns:
- action
-
getExternalTotalGross
The Cart's total gross price becoming the
totalGross
field (totalNet
+ taxes) on the Cart'staxedPrice
.- Specified by:
getExternalTotalGross
in interfaceCartSetCartTotalTaxAction
- Returns:
- externalTotalGross
-
getExternalTaxPortions
Set if the
externalTotalGross
price is a sum of portions with different tax rates.- Specified by:
getExternalTaxPortions
in interfaceCartSetCartTotalTaxAction
- Returns:
- externalTaxPortions
-
setExternalTotalGross
Description copied from interface:CartSetCartTotalTaxAction
The Cart's total gross price becoming the
totalGross
field (totalNet
+ taxes) on the Cart'staxedPrice
.- Specified by:
setExternalTotalGross
in interfaceCartSetCartTotalTaxAction
- Parameters:
externalTotalGross
- value to be set
-
setExternalTaxPortions
Description copied from interface:CartSetCartTotalTaxAction
Set if the
externalTotalGross
price is a sum of portions with different tax rates.- Specified by:
setExternalTaxPortions
in interfaceCartSetCartTotalTaxAction
- Parameters:
externalTaxPortions
- values to be set
-
setExternalTaxPortions
Description copied from interface:CartSetCartTotalTaxAction
Set if the
externalTotalGross
price is a sum of portions with different tax rates.- Specified by:
setExternalTaxPortions
in interfaceCartSetCartTotalTaxAction
- Parameters:
externalTaxPortions
- values to be set
-
equals
-
hashCode
-