Class TaxedPriceImpl

java.lang.Object
com.commercetools.api.models.cart.TaxedPriceImpl
All Implemented Interfaces:
TaxedPrice, io.vrap.rmf.base.client.ModelBase

public class TaxedPriceImpl extends Object implements TaxedPrice, io.vrap.rmf.base.client.ModelBase
TaxedPrice
  • Constructor Details

    • TaxedPriceImpl

      public TaxedPriceImpl()
      create empty instance
  • Method Details

    • getTotalNet

      public CentPrecisionMoney getTotalNet()

      Total net price of the Cart or Order.

      Specified by:
      getTotalNet in interface TaxedPrice
      Returns:
      totalNet
    • getTotalGross

      public CentPrecisionMoney getTotalGross()

      Total gross price of the Cart or Order.

      Specified by:
      getTotalGross in interface TaxedPrice
      Returns:
      totalGross
    • getTaxPortions

      public List<TaxPortion> getTaxPortions()

      Taxable portions added to the total net price.

      Calculated from the TaxRates.

      Specified by:
      getTaxPortions in interface TaxedPrice
      Returns:
      taxPortions
    • getTotalTax

      public CentPrecisionMoney getTotalTax()

      Total tax applicable for the Cart or Order.

      Automatically calculated as the difference between the totalGross and totalNet values.

      Specified by:
      getTotalTax in interface TaxedPrice
      Returns:
      totalTax
    • setTotalNet

      public void setTotalNet(CentPrecisionMoney totalNet)
      Description copied from interface: TaxedPrice

      Total net price of the Cart or Order.

      Specified by:
      setTotalNet in interface TaxedPrice
      Parameters:
      totalNet - value to be set
    • setTotalGross

      public void setTotalGross(CentPrecisionMoney totalGross)
      Description copied from interface: TaxedPrice

      Total gross price of the Cart or Order.

      Specified by:
      setTotalGross in interface TaxedPrice
      Parameters:
      totalGross - value to be set
    • setTaxPortions

      public void setTaxPortions(TaxPortion... taxPortions)
      Description copied from interface: TaxedPrice

      Taxable portions added to the total net price.

      Calculated from the TaxRates.

      Specified by:
      setTaxPortions in interface TaxedPrice
      Parameters:
      taxPortions - values to be set
    • setTaxPortions

      public void setTaxPortions(List<TaxPortion> taxPortions)
      Description copied from interface: TaxedPrice

      Taxable portions added to the total net price.

      Calculated from the TaxRates.

      Specified by:
      setTaxPortions in interface TaxedPrice
      Parameters:
      taxPortions - values to be set
    • setTotalTax

      public void setTotalTax(CentPrecisionMoney totalTax)
      Description copied from interface: TaxedPrice

      Total tax applicable for the Cart or Order.

      Automatically calculated as the difference between the totalGross and totalNet values.

      Specified by:
      setTotalTax in interface TaxedPrice
      Parameters:
      totalTax - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object