Class TaxPortion

java.lang.Object
com.commercetools.graphql.api.types.TaxPortion

public class TaxPortion extends Object
Represents the portions that sum up to the totalGross field of a TaxedPrice. The portions are calculated from the TaxRates. If a tax rate has SubRates, they are used and can be identified by name. Tax portions from line items that have the same rate and name will be accumulated to the same tax portion.
  • Constructor Details

    • TaxPortion

      public TaxPortion()
    • TaxPortion

      public TaxPortion(Double rate, Money amount, String name)
  • Method Details

    • getRate

      public Double getRate()
    • setRate

      public void setRate(Double rate)
    • getAmount

      public Money getAmount()
    • setAmount

      public void setAmount(Money amount)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • newBuilder

      public static TaxPortion.Builder newBuilder()