Class TaxOverrideModel

java.lang.Object
net.avalara.avatax.rest.client.models.TaxOverrideModel

public class TaxOverrideModel extends Object
Represents a tax override for a transaction
  • Constructor Details

    • TaxOverrideModel

      public TaxOverrideModel()
  • Method Details

    • getType

      public TaxOverrideType getType()
      Getter for type Identifies the type of tax override
    • setType

      public void setType(TaxOverrideType value)
      Setter for type Identifies the type of tax override
    • getTaxAmount

      public BigDecimal getTaxAmount()
      Getter for taxAmount Indicates a total override of the calculated tax on the document. AvaTax will distribute the override across all the lines. Tax will be distributed on a best effort basis. It may not always be possible to override all taxes. Please consult your account manager for information about overrides.
    • setTaxAmount

      public void setTaxAmount(BigDecimal value)
      Setter for taxAmount Indicates a total override of the calculated tax on the document. AvaTax will distribute the override across all the lines. Tax will be distributed on a best effort basis. It may not always be possible to override all taxes. Please consult your account manager for information about overrides.
    • getTaxDate

      public Date getTaxDate()
      Getter for taxDate The override tax date to use This is used when the tax has been previously calculated as in the case of a layaway, return or other reason indicated by the Reason element. If the date is not overridden, then it should be set to the same as the DocDate.
    • setTaxDate

      public void setTaxDate(Date value)
      Setter for taxDate The override tax date to use This is used when the tax has been previously calculated as in the case of a layaway, return or other reason indicated by the Reason element. If the date is not overridden, then it should be set to the same as the DocDate.
    • getReason

      public String getReason()
      Getter for reason This provides the reason for a tax override for audit purposes. It is required for types 2-4. Typical reasons include: "Return" "Layaway"
    • setReason

      public void setReason(String value)
      Setter for reason This provides the reason for a tax override for audit purposes. It is required for types 2-4. Typical reasons include: "Return" "Layaway"
    • getTaxAmountByTaxTypes

      public ArrayList<TransactionLineTaxAmountByTaxTypeModel> getTaxAmountByTaxTypes()
      Getter for taxAmountByTaxTypes Indicates a total override of the calculated tax on the line with TaxType. AvaTax will distribute the override across all the line details for that TaxType. TaxAmountByTaxType can be used only at the Line level.
    • setTaxAmountByTaxTypes

      public void setTaxAmountByTaxTypes(ArrayList<TransactionLineTaxAmountByTaxTypeModel> value)
      Setter for taxAmountByTaxTypes Indicates a total override of the calculated tax on the line with TaxType. AvaTax will distribute the override across all the line details for that TaxType. TaxAmountByTaxType can be used only at the Line level.
    • toString

      public String toString()
      Returns a JSON string representation of TaxOverrideModel
      Overrides:
      toString in class Object