Class TaxedItemPriceImpl

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

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

    • TaxedItemPriceImpl

      public TaxedItemPriceImpl()
      create empty instance
  • Method Details

    • getTotalNet

      public CentPrecisionMoney getTotalNet()

      Total net amount of the Line Item or Custom Line Item.

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

      public CentPrecisionMoney getTotalGross()

      Total gross amount of the Line Item or Custom Line Item.

      Specified by:
      getTotalGross in interface TaxedItemPrice
      Returns:
      totalGross
    • getTotalTax

      public CentPrecisionMoney getTotalTax()

      Total tax applicable for the Line Item or Custom Line Item. Automatically calculated as the difference between the totalGross and totalNet values.

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

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

      Total net amount of the Line Item or Custom Line Item.

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

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

      Total gross amount of the Line Item or Custom Line Item.

      Specified by:
      setTotalGross in interface TaxedItemPrice
      Parameters:
      totalGross - value to be set
    • setTotalTax

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

      Total tax applicable for the Line Item or Custom Line Item. Automatically calculated as the difference between the totalGross and totalNet values.

      Specified by:
      setTotalTax in interface TaxedItemPrice
      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