Class TaxedPriceImpl
java.lang.Object
com.commercetools.api.models.cart.TaxedPriceImpl
- All Implemented Interfaces:
TaxedPrice
,io.vrap.rmf.base.client.ModelBase
TaxedPrice
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Taxable portions added to the total net price.Total gross price of the Cart or Order.Total net price of the Cart or Order.Total tax applicable for the Cart or Order.int
hashCode()
void
setTaxPortions
(TaxPortion... taxPortions) Taxable portions added to the total net price.void
setTaxPortions
(List<TaxPortion> taxPortions) Taxable portions added to the total net price.void
setTotalGross
(CentPrecisionMoney totalGross) Total gross price of the Cart or Order.void
setTotalNet
(CentPrecisionMoney totalNet) Total net price of the Cart or Order.void
setTotalTax
(CentPrecisionMoney totalTax) Total tax applicable for the Cart or Order.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.cart.TaxedPrice
withTaxedPrice
-
Constructor Details
-
TaxedPriceImpl
public TaxedPriceImpl()create empty instance
-
-
Method Details
-
getTotalNet
Total net price of the Cart or Order.
- Specified by:
getTotalNet
in interfaceTaxedPrice
- Returns:
- totalNet
-
getTotalGross
Total gross price of the Cart or Order.
- Specified by:
getTotalGross
in interfaceTaxedPrice
- Returns:
- totalGross
-
getTaxPortions
Taxable portions added to the total net price.
Calculated from the TaxRates.
- Specified by:
getTaxPortions
in interfaceTaxedPrice
- Returns:
- taxPortions
-
getTotalTax
Total tax applicable for the Cart or Order.
Automatically calculated as the difference between the
totalGross
andtotalNet
values.- Specified by:
getTotalTax
in interfaceTaxedPrice
- Returns:
- totalTax
-
setTotalNet
Description copied from interface:TaxedPrice
Total net price of the Cart or Order.
- Specified by:
setTotalNet
in interfaceTaxedPrice
- Parameters:
totalNet
- value to be set
-
setTotalGross
Description copied from interface:TaxedPrice
Total gross price of the Cart or Order.
- Specified by:
setTotalGross
in interfaceTaxedPrice
- Parameters:
totalGross
- value to be set
-
setTaxPortions
Description copied from interface:TaxedPrice
Taxable portions added to the total net price.
Calculated from the TaxRates.
- Specified by:
setTaxPortions
in interfaceTaxedPrice
- Parameters:
taxPortions
- values to be set
-
setTaxPortions
Description copied from interface:TaxedPrice
Taxable portions added to the total net price.
Calculated from the TaxRates.
- Specified by:
setTaxPortions
in interfaceTaxedPrice
- Parameters:
taxPortions
- values to be set
-
setTotalTax
Description copied from interface:TaxedPrice
Total tax applicable for the Cart or Order.
Automatically calculated as the difference between the
totalGross
andtotalNet
values.- Specified by:
setTotalTax
in interfaceTaxedPrice
- Parameters:
totalTax
- value to be set
-
equals
-
hashCode
public int hashCode()
-