Class TaxInfo

    • Field Detail

      • exemptionAmount

        protected javax.money.MonetaryAmount exemptionAmount
        The amount of this item that is not taxable.
    • Constructor Detail

      • TaxInfo

        public TaxInfo()
    • Method Detail

      • getItemId

        public String getItemId()
        The id of the line item for this tax info.
        Returns:
        The id of the line item for this tax info.
      • getSkuCode

        public String getSkuCode()
        The sku code for the item.
        Returns:
        The sku code for the item.
      • getTaxCode

        public String getTaxCode()
        The tax code for the item.
        Returns:
        The tax code for the item.
      • isVat

        public boolean isVat()
        Whether this is a VAT tax.
      • isExempt

        public boolean isExempt()
        Indicates if this is exempt from taxes, usually based on a tax exemption code.
      • isTaxable

        public boolean isTaxable()
        Whether the item is taxable.
        Returns:
        Whether the item is taxable.
      • isEstimated

        public boolean isEstimated()
        Whether the calculated tax is an estimate.
        Returns:
        Whether the calculated tax is an estimate.
      • getTaxableAmount

        public javax.money.MonetaryAmount getTaxableAmount()
        The amount of this item that is taxable and was used to determine the calculated tax.
        Returns:
        The amount of this item that is taxable and was used to determine the calculated tax.
      • getExemptionAmount

        public javax.money.MonetaryAmount getExemptionAmount()
        The amount of this item that is not taxable.
        Returns:
        The amount of this item that is not taxable.
      • getRate

        public BigDecimal getRate()
        The rate that the item was taxed at.
        Returns:
        The rate that the item was taxed at.
      • getTaxCalculated

        public javax.money.MonetaryAmount getTaxCalculated()
        The tax calculated for the item.
        Returns:
        The tax calculated for the item.
      • getTaxDetails

        public List<TaxDetail> getTaxDetails()
        Breakdown of taxes for this item.
        Returns:
        Breakdown of taxes for this item.
      • getAttributes

        public Map<String,​Object> getAttributes()
        Additional attributes for this tax info
      • setItemId

        public void setItemId​(String itemId)
        The id of the line item for this tax info.
        Parameters:
        itemId - The id of the line item for this tax info.
      • setSkuCode

        public void setSkuCode​(String skuCode)
        The sku code for the item.
        Parameters:
        skuCode - The sku code for the item.
      • setTaxCode

        public void setTaxCode​(String taxCode)
        The tax code for the item.
        Parameters:
        taxCode - The tax code for the item.
      • setVat

        public void setVat​(boolean isVat)
        Whether this is a VAT tax.
      • setExempt

        public void setExempt​(boolean isExempt)
        Indicates if this is exempt from taxes, usually based on a tax exemption code.
      • setTaxable

        public void setTaxable​(boolean isTaxable)
        Whether the item is taxable.
        Parameters:
        taxable - Whether the item is taxable.
      • setEstimated

        public void setEstimated​(boolean isEstimated)
        Whether the calculated tax is an estimate.
        Parameters:
        estimated - Whether the calculated tax is an estimate.
      • setTaxableAmount

        public void setTaxableAmount​(javax.money.MonetaryAmount taxableAmount)
        The amount of this item that is taxable and was used to determine the calculated tax.
        Parameters:
        taxableAmount - The amount of this item that is taxable and was used to determine the calculated tax.
      • setExemptionAmount

        public void setExemptionAmount​(javax.money.MonetaryAmount exemptionAmount)
        The amount of this item that is not taxable.
        Parameters:
        exemptionAmount - The amount of this item that is not taxable.
      • setRate

        public void setRate​(BigDecimal rate)
        The rate that the item was taxed at.
        Parameters:
        rate - The rate that the item was taxed at.
      • setTaxCalculated

        public void setTaxCalculated​(javax.money.MonetaryAmount taxCalculated)
        The tax calculated for the item.
        Parameters:
        taxCalculated - The tax calculated for the item.
      • setTaxDetails

        public void setTaxDetails​(List<TaxDetail> taxDetails)
        Breakdown of taxes for this item.
        Parameters:
        taxDetails - Breakdown of taxes for this item.
      • setAttributes

        public void setAttributes​(Map<String,​Object> attributes)
        Additional attributes for this tax info
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object