Class MultiCompanyLineItemModel

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

public class MultiCompanyLineItemModel extends Object
Represents one line item in a multi company transaction
  • Constructor Details

    • MultiCompanyLineItemModel

      public MultiCompanyLineItemModel()
  • Method Details

    • getCompanyCode

      public String getCompanyCode()
      Getter for companyCode Company Code - Specify the code of the company for this line of transaction. If you leave this value null, the company code at document level will be used instead.
    • setCompanyCode

      public void setCompanyCode(String value)
      Setter for companyCode Company Code - Specify the code of the company for this line of transaction. If you leave this value null, the company code at document level will be used instead.
    • getReportingLocationCode

      public String getReportingLocationCode()
      Getter for reportingLocationCode Sets the sale location code (Outlet ID) for reporting this document to the tax authority.
    • setReportingLocationCode

      public void setReportingLocationCode(String value)
      Setter for reportingLocationCode Sets the sale location code (Outlet ID) for reporting this document to the tax authority.
    • getNumber

      public String getNumber()
      Getter for number Line number within this document
    • setNumber

      public void setNumber(String value)
      Setter for number Line number within this document
    • getQuantity

      public BigDecimal getQuantity()
      Getter for quantity Quantity of items in this line
    • setQuantity

      public void setQuantity(BigDecimal value)
      Setter for quantity Quantity of items in this line
    • getAmount

      public BigDecimal getAmount()
      Getter for amount Total amount for this line
    • setAmount

      public void setAmount(BigDecimal value)
      Setter for amount Total amount for this line
    • getAddresses

      public AddressesModel getAddresses()
      Getter for addresses The addresses to use for this transaction line. If you set this value to `null`, or if you omit this element from your API call, then instead the transaction will use the `addresses` from the document level. If you specify any other value besides `null`, only addresses specified for this line will be used for this line.
    • setAddresses

      public void setAddresses(AddressesModel value)
      Setter for addresses The addresses to use for this transaction line. If you set this value to `null`, or if you omit this element from your API call, then instead the transaction will use the `addresses` from the document level. If you specify any other value besides `null`, only addresses specified for this line will be used for this line.
    • getTaxCode

      public String getTaxCode()
      Getter for taxCode Tax Code - System or Custom Tax Code. You can use your own tax code mapping or standard Avalara tax codes. For a full list of tax codes, see `ListTaxCodes`.
    • setTaxCode

      public void setTaxCode(String value)
      Setter for taxCode Tax Code - System or Custom Tax Code. You can use your own tax code mapping or standard Avalara tax codes. For a full list of tax codes, see `ListTaxCodes`.
    • getCustomerUsageType

      public String getCustomerUsageType()
      Getter for customerUsageType Customer Usage Type - The client application customer or usage type.
    • setCustomerUsageType

      public void setCustomerUsageType(String value)
      Setter for customerUsageType Customer Usage Type - The client application customer or usage type.
    • getItemCode

      public String getItemCode()
      Getter for itemCode Item Code (SKU)
    • setItemCode

      public void setItemCode(String value)
      Setter for itemCode Item Code (SKU)
    • getExemptionCode

      public String getExemptionCode()
      Getter for exemptionCode Exemption number for this line
    • setExemptionCode

      public void setExemptionCode(String value)
      Setter for exemptionCode Exemption number for this line
    • getDiscounted

      public Boolean getDiscounted()
      Getter for discounted True if the document discount should be applied to this line
    • setDiscounted

      public void setDiscounted(Boolean value)
      Setter for discounted True if the document discount should be applied to this line
    • getTaxIncluded

      public Boolean getTaxIncluded()
      Getter for taxIncluded Indicates if line has Tax Included; defaults to false
    • setTaxIncluded

      public void setTaxIncluded(Boolean value)
      Setter for taxIncluded Indicates if line has Tax Included; defaults to false
    • getRevenueAccount

      public String getRevenueAccount()
      Getter for revenueAccount Revenue Account
    • setRevenueAccount

      public void setRevenueAccount(String value)
      Setter for revenueAccount Revenue Account
    • getRef1

      public String getRef1()
      Getter for ref1 Reference 1 - Client specific reference field
    • setRef1

      public void setRef1(String value)
      Setter for ref1 Reference 1 - Client specific reference field
    • getRef2

      public String getRef2()
      Getter for ref2 Reference 2 - Client specific reference field
    • setRef2

      public void setRef2(String value)
      Setter for ref2 Reference 2 - Client specific reference field
    • getDescription

      public String getDescription()
      Getter for description Item description. This is required for SST transactions if an unmapped ItemCode is used.
    • setDescription

      public void setDescription(String value)
      Setter for description Item description. This is required for SST transactions if an unmapped ItemCode is used.
    • getBusinessIdentificationNo

      public String getBusinessIdentificationNo()
      Getter for businessIdentificationNo VAT business identification number for the customer for this line item. If you leave this field empty, this line item will use whatever business identification number you provided at the transaction level. If you specify a VAT business identification number for the customer in this transaction and you have also set up a business identification number for your company during company setup, this transaction will be treated as a business-to-business transaction for VAT purposes and it will be calculated according to VAT tax rules.
    • setBusinessIdentificationNo

      public void setBusinessIdentificationNo(String value)
      Setter for businessIdentificationNo VAT business identification number for the customer for this line item. If you leave this field empty, this line item will use whatever business identification number you provided at the transaction level. If you specify a VAT business identification number for the customer in this transaction and you have also set up a business identification number for your company during company setup, this transaction will be treated as a business-to-business transaction for VAT purposes and it will be calculated according to VAT tax rules.
    • getTaxOverride

      public TaxOverrideModel getTaxOverride()
      Getter for taxOverride Specifies a tax override for this line
    • setTaxOverride

      public void setTaxOverride(TaxOverrideModel value)
      Setter for taxOverride Specifies a tax override for this line
    • getParameters

      public HashMap<String,String> getParameters()
      Getter for parameters Special parameters that apply to this line within this transaction. To get a full list of available parameters, please use the /api/v2/definitions/parameters endpoint.
    • setParameters

      public void setParameters(HashMap<String,String> value)
      Setter for parameters Special parameters that apply to this line within this transaction. To get a full list of available parameters, please use the /api/v2/definitions/parameters endpoint.
    • toString

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