Class TransactionModel
java.lang.Object
net.avalara.avatax.rest.client.models.TransactionModel
This object represents a single transaction; for example, a sales invoice or purchase order.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for addresses A list of line items in this transaction.Getter for adjustmentDescription If this transaction was adjusted, indicates a description of the reason why the transaction was adjusted.Getter for adjustmentReason If this transaction was adjusted, indicates the unique ID number of the reason why the transaction was adjusted.Getter for apStatus An Accounts Payable (AP) status indicates an action that needs to be taken when the tolerance amount falls above or below certain threshold limits.Getter for apStatusCode Users can set tolerance or threshold limits on transactions and inform users of appropriate actions to take if a transaction falls outside of these values.Getter for batchCode If this transaction was created as part of a batch, this code indicates which batch.Getter for businessIdentificationNo VAT business identification number used for this transaction.getCode()
Getter for code A unique customer-provided code identifying this transaction.Getter for companyId The unique ID number of the company that recorded this transaction.Getter for country The two-character ISO 3166 code of the country for this transaction.Getter for currencyCode The three-character ISO 4217 currency code that was used for payment for this transaction.Getter for customerCode Unique code identifying the customer that requested this transaction.Getter for customerSupplierName The name of the supplier / exporter / seller.Getter for customerUsageType DEPRECATED - Date: 10/16/2017, Version: 17.11, Message: Please use entityUseCode instead.Getter for customerVendorCode DEPRECATED - Date: 3/1/2018, Version: 18.3, Message: Please use `customerCode` This field has been renamed to `customerCode` to match documentation for other APIs related to exemption customers.Getter for dataSourceId The Id of the datasource from which this transaction originated.getDate()
Getter for date The date on which this transaction occurred.Getter for deliveryTerms Delivery Terms (or Incoterms) refer to agreed-upon conditions between a buyer and a seller for the delivery of goods.Getter for description Description of this transaction.Getter for destinationAddressId The unique ID number of the destination address for this transaction.getEmail()
Getter for email Email address associated with this transaction.Getter for entityUseCode The entity use code for this transaction.Getter for exchangeRate If this transaction included foreign currency exchange, this is the exchange rate that was used.Getter for exchangeRateCurrencyCode The three-character ISO 4217 exchange rate currency code that was used for payment for this transaction.Getter for exchangeRateEffectiveDate If this transaction included foreign currency exchange, this is the date as of which the exchange rate was calculated.Getter for exemptNo The customer Tax Id Number (tax_number) associated with a certificate - Sales tax calculation requests first determine if there is an applicable ECMS entry available, and will utilize it for exemption processing.getId()
Getter for id The unique ID number of this transaction.Getter for invoiceMessages Invoice messages associated with this document.Getter for isSellerImporterOfRecord By default, the value is null, when the value is null, the value can be set at nexus level and used.getLines()
Getter for lines A list of line items in this transaction.Getter for locationCode DEPRECATED - Date: 3/1/2018, Version: 18.3, Message: In order to ensure consistency of field names, Please use reportingLocationCode instead.Getter for locationTypes A list of location types in this transaction.Getter for locked If this transaction has been reported to a tax authority, this transaction is considered locked and may not be adjusted after reporting.Getter for messages List of informational and warning messages regarding this API call.Getter for modifiedDate The date/time when this record was last modified.Getter for modifiedUserId The user ID of the user who last modified this record.Getter for originAddressId The unique ID number of the origin address for this transaction.Getter for parameters Contains a list of extra parameters that were set when the transaction was created.Getter for paymentDate DEPRECATED - Date: 07/25/2018, Version: 18.7, Message: This field is deprecated and will return null till its removed.Getter for purchaseOrderNo The customer-supplied purchase order number of this transaction.Getter for reconciled If this transaction has been reconciled against the company's ledger, this value is set to true.Getter for referenceCode A user-defined reference code for this transaction.Getter for region The two-or-three character ISO region code of the region for this transaction.Getter for reportingLocationCode For customers who use [location-based tax reporting](https://developer.avalara.com/avatax/dev-guide/locations/location-based-reporting), this field controls how this transaction will be filed for multi-location tax filings.Getter for salespersonCode The salesperson who provided this transaction.Getter for softwareVersion The software version used to calculate this transaction.Getter for status The status of the transaction.Getter for summary Contains a summary of tax on this transaction.Getter for taxDate Tax date for this transactionGetter for taxDetailsByTaxType Contains the tax details per tax typeGetter for taxOverrideAmount If a tax override was applied to this transaction, indicates the amount of tax that was requested by the customer.Getter for taxOverrideReason If a tax override was applied to this transaction, indicates the reason for the tax override.Getter for taxOverrideType If a tax override was applied to this transaction, indicates what type of tax override was applied.Getter for totalAmount The total amount of this transaction.Getter for totalDiscount The total amount of discounts applied to all lines within this transaction.Getter for totalExempt The amount of this transaction that was exempt.Getter for totalTax The total tax for all lines in this transaction.Getter for totalTaxable The portion of the total amount of this transaction that was taxable.Getter for totalTaxCalculated The amount of tax that AvaTax calculated for the transaction.getType()
Getter for type The type of the transaction.Getter for userDefinedFields Custom user fields/flex fields for this transaction.Getter for version If this transaction was adjusted, this indicates the version number of this transaction.void
Setter for addresses A list of line items in this transaction.void
setAdjustmentDescription
(String value) Setter for adjustmentDescription If this transaction was adjusted, indicates a description of the reason why the transaction was adjusted.void
Setter for adjustmentReason If this transaction was adjusted, indicates the unique ID number of the reason why the transaction was adjusted.void
setApStatus
(String value) Setter for apStatus An Accounts Payable (AP) status indicates an action that needs to be taken when the tolerance amount falls above or below certain threshold limits.void
setApStatusCode
(APStatus value) Setter for apStatusCode Users can set tolerance or threshold limits on transactions and inform users of appropriate actions to take if a transaction falls outside of these values.void
setBatchCode
(String value) Setter for batchCode If this transaction was created as part of a batch, this code indicates which batch.void
Setter for businessIdentificationNo VAT business identification number used for this transaction.void
Setter for code A unique customer-provided code identifying this transaction.void
setCompanyId
(Integer value) Setter for companyId The unique ID number of the company that recorded this transaction.void
setCountry
(String value) Setter for country The two-character ISO 3166 code of the country for this transaction.void
setCurrencyCode
(String value) Setter for currencyCode The three-character ISO 4217 currency code that was used for payment for this transaction.void
setCustomerCode
(String value) Setter for customerCode Unique code identifying the customer that requested this transaction.void
setCustomerSupplierName
(String value) Setter for customerSupplierName The name of the supplier / exporter / seller.void
setCustomerUsageType
(String value) Setter for customerUsageType DEPRECATED - Date: 10/16/2017, Version: 17.11, Message: Please use entityUseCode instead.void
setCustomerVendorCode
(String value) Setter for customerVendorCode DEPRECATED - Date: 3/1/2018, Version: 18.3, Message: Please use `customerCode` This field has been renamed to `customerCode` to match documentation for other APIs related to exemption customers.void
setDataSourceId
(Integer value) Setter for dataSourceId The Id of the datasource from which this transaction originated.void
Setter for date The date on which this transaction occurred.void
setDeliveryTerms
(DeliveryTerms value) Setter for deliveryTerms Delivery Terms (or Incoterms) refer to agreed-upon conditions between a buyer and a seller for the delivery of goods.void
setDescription
(String value) Setter for description Description of this transaction.void
setDestinationAddressId
(Long value) Setter for destinationAddressId The unique ID number of the destination address for this transaction.void
Setter for email Email address associated with this transaction.void
setEntityUseCode
(String value) Setter for entityUseCode The entity use code for this transaction.void
setExchangeRate
(BigDecimal value) Setter for exchangeRate If this transaction included foreign currency exchange, this is the exchange rate that was used.void
Setter for exchangeRateCurrencyCode The three-character ISO 4217 exchange rate currency code that was used for payment for this transaction.void
setExchangeRateEffectiveDate
(Date value) Setter for exchangeRateEffectiveDate If this transaction included foreign currency exchange, this is the date as of which the exchange rate was calculated.void
setExemptNo
(String value) Setter for exemptNo The customer Tax Id Number (tax_number) associated with a certificate - Sales tax calculation requests first determine if there is an applicable ECMS entry available, and will utilize it for exemption processing.void
Setter for id The unique ID number of this transaction.void
Setter for invoiceMessages Invoice messages associated with this document.void
Setter for isSellerImporterOfRecord By default, the value is null, when the value is null, the value can be set at nexus level and used.void
setLines
(ArrayList<TransactionLineModel> value) Setter for lines A list of line items in this transaction.void
setLocationCode
(String value) Setter for locationCode DEPRECATED - Date: 3/1/2018, Version: 18.3, Message: In order to ensure consistency of field names, Please use reportingLocationCode instead.void
Setter for locationTypes A list of location types in this transaction.void
Setter for locked If this transaction has been reported to a tax authority, this transaction is considered locked and may not be adjusted after reporting.void
setMessages
(ArrayList<AvaTaxMessage> value) Setter for messages List of informational and warning messages regarding this API call.void
setModifiedDate
(Date value) Setter for modifiedDate The date/time when this record was last modified.void
setModifiedUserId
(Integer value) Setter for modifiedUserId The user ID of the user who last modified this record.void
setOriginAddressId
(Long value) Setter for originAddressId The unique ID number of the origin address for this transaction.void
Setter for parameters Contains a list of extra parameters that were set when the transaction was created.void
setPaymentDate
(Date value) Setter for paymentDate DEPRECATED - Date: 07/25/2018, Version: 18.7, Message: This field is deprecated and will return null till its removed.void
setPurchaseOrderNo
(String value) Setter for purchaseOrderNo The customer-supplied purchase order number of this transaction.void
setReconciled
(Boolean value) Setter for reconciled If this transaction has been reconciled against the company's ledger, this value is set to true.void
setReferenceCode
(String value) Setter for referenceCode A user-defined reference code for this transaction.void
Setter for region The two-or-three character ISO region code of the region for this transaction.void
setReportingLocationCode
(String value) Setter for reportingLocationCode For customers who use [location-based tax reporting](https://developer.avalara.com/avatax/dev-guide/locations/location-based-reporting), this field controls how this transaction will be filed for multi-location tax filings.void
setSalespersonCode
(String value) Setter for salespersonCode The salesperson who provided this transaction.void
setSoftwareVersion
(String value) Setter for softwareVersion The software version used to calculate this transaction.void
setStatus
(DocumentStatus value) Setter for status The status of the transaction.void
setSummary
(ArrayList<TransactionSummary> value) Setter for summary Contains a summary of tax on this transaction.void
setTaxDate
(Date value) Setter for taxDate Tax date for this transactionvoid
Setter for taxDetailsByTaxType Contains the tax details per tax typevoid
setTaxOverrideAmount
(BigDecimal value) Setter for taxOverrideAmount If a tax override was applied to this transaction, indicates the amount of tax that was requested by the customer.void
setTaxOverrideReason
(String value) Setter for taxOverrideReason If a tax override was applied to this transaction, indicates the reason for the tax override.void
Setter for taxOverrideType If a tax override was applied to this transaction, indicates what type of tax override was applied.void
setTotalAmount
(BigDecimal value) Setter for totalAmount The total amount of this transaction.void
setTotalDiscount
(BigDecimal value) Setter for totalDiscount The total amount of discounts applied to all lines within this transaction.void
setTotalExempt
(BigDecimal value) Setter for totalExempt The amount of this transaction that was exempt.void
setTotalTax
(BigDecimal value) Setter for totalTax The total tax for all lines in this transaction.void
setTotalTaxable
(BigDecimal value) Setter for totalTaxable The portion of the total amount of this transaction that was taxable.void
setTotalTaxCalculated
(BigDecimal value) Setter for totalTaxCalculated The amount of tax that AvaTax calculated for the transaction.void
setType
(DocumentType value) Setter for type The type of the transaction.void
Setter for userDefinedFields Custom user fields/flex fields for this transaction.void
setVersion
(Integer value) Setter for version If this transaction was adjusted, this indicates the version number of this transaction.toString()
Returns a JSON string representation of TransactionModel
-
Constructor Details
-
TransactionModel
public TransactionModel()
-
-
Method Details
-
getId
Getter for id The unique ID number of this transaction. -
setId
Setter for id The unique ID number of this transaction. -
getCode
Getter for code A unique customer-provided code identifying this transaction. -
setCode
Setter for code A unique customer-provided code identifying this transaction. -
getCompanyId
Getter for companyId The unique ID number of the company that recorded this transaction. -
setCompanyId
Setter for companyId The unique ID number of the company that recorded this transaction. -
getDate
Getter for date The date on which this transaction occurred. -
setDate
Setter for date The date on which this transaction occurred. -
getPaymentDate
Getter for paymentDate DEPRECATED - Date: 07/25/2018, Version: 18.7, Message: This field is deprecated and will return null till its removed. The date when payment was made on this transaction. By default, this should be the same as the date of the transaction. -
setPaymentDate
Setter for paymentDate DEPRECATED - Date: 07/25/2018, Version: 18.7, Message: This field is deprecated and will return null till its removed. The date when payment was made on this transaction. By default, this should be the same as the date of the transaction. -
getStatus
Getter for status The status of the transaction. -
setStatus
Setter for status The status of the transaction. -
getType
Getter for type The type of the transaction. Transactions of type `SalesOrder`, `ReturnOrder`, and so on are temporary estimates and will not be saved. Transactions of type `SalesInvoice, `ReturnInvoice`, and so on are permanent transactions that can be reported to tax authorities if they are in status `Committed`. A sales transaction represents a sale from the company to a customer. A purchase transaction represents a purchase made by the company. A return transaction represents a customer who decided to request a refund after purchasing a product from the company. An inventory transfer transaction represents goods that were moved from one location of the company to another location without changing ownership. -
setType
Setter for type The type of the transaction. Transactions of type `SalesOrder`, `ReturnOrder`, and so on are temporary estimates and will not be saved. Transactions of type `SalesInvoice, `ReturnInvoice`, and so on are permanent transactions that can be reported to tax authorities if they are in status `Committed`. A sales transaction represents a sale from the company to a customer. A purchase transaction represents a purchase made by the company. A return transaction represents a customer who decided to request a refund after purchasing a product from the company. An inventory transfer transaction represents goods that were moved from one location of the company to another location without changing ownership. -
getBatchCode
Getter for batchCode If this transaction was created as part of a batch, this code indicates which batch. -
setBatchCode
Setter for batchCode If this transaction was created as part of a batch, this code indicates which batch. -
getCurrencyCode
Getter for currencyCode The three-character ISO 4217 currency code that was used for payment for this transaction. -
setCurrencyCode
Setter for currencyCode The three-character ISO 4217 currency code that was used for payment for this transaction. -
getExchangeRateCurrencyCode
Getter for exchangeRateCurrencyCode The three-character ISO 4217 exchange rate currency code that was used for payment for this transaction. -
setExchangeRateCurrencyCode
Setter for exchangeRateCurrencyCode The three-character ISO 4217 exchange rate currency code that was used for payment for this transaction. -
getCustomerUsageType
Getter for customerUsageType DEPRECATED - Date: 10/16/2017, Version: 17.11, Message: Please use entityUseCode instead. The customer usage type for this transaction. Customer usage types often affect exemption or taxability rules. -
setCustomerUsageType
Setter for customerUsageType DEPRECATED - Date: 10/16/2017, Version: 17.11, Message: Please use entityUseCode instead. The customer usage type for this transaction. Customer usage types often affect exemption or taxability rules. -
getEntityUseCode
Getter for entityUseCode The entity use code for this transaction. Entity use codes often affect exemption or taxability rules. -
setEntityUseCode
Setter for entityUseCode The entity use code for this transaction. Entity use codes often affect exemption or taxability rules. -
getCustomerVendorCode
Getter for customerVendorCode DEPRECATED - Date: 3/1/2018, Version: 18.3, Message: Please use `customerCode` This field has been renamed to `customerCode` to match documentation for other APIs related to exemption customers. -
setCustomerVendorCode
Setter for customerVendorCode DEPRECATED - Date: 3/1/2018, Version: 18.3, Message: Please use `customerCode` This field has been renamed to `customerCode` to match documentation for other APIs related to exemption customers. -
getCustomerCode
Getter for customerCode Unique code identifying the customer that requested this transaction. When you specify a `customerCode`, AvaTax will look to see if a customer exists with this code in the exemption certificate system. If that customer exists, and if that customer has uploaded an exemption certificate that applies to this transaction, the relevant parts of this transaction that can use the exemption certificate will be treated as exempt. -
setCustomerCode
Setter for customerCode Unique code identifying the customer that requested this transaction. When you specify a `customerCode`, AvaTax will look to see if a customer exists with this code in the exemption certificate system. If that customer exists, and if that customer has uploaded an exemption certificate that applies to this transaction, the relevant parts of this transaction that can use the exemption certificate will be treated as exempt. -
getExemptNo
Getter for exemptNo The customer Tax Id Number (tax_number) associated with a certificate - Sales tax calculation requests first determine if there is an applicable ECMS entry available, and will utilize it for exemption processing. If no applicable ECMS entry is available, the AvaTax service will determine if an Exemption Number field is populated or an Entity/Use Code is included in the sales tax calculation request, and will perform exemption processing using either of those two options. -
setExemptNo
Setter for exemptNo The customer Tax Id Number (tax_number) associated with a certificate - Sales tax calculation requests first determine if there is an applicable ECMS entry available, and will utilize it for exemption processing. If no applicable ECMS entry is available, the AvaTax service will determine if an Exemption Number field is populated or an Entity/Use Code is included in the sales tax calculation request, and will perform exemption processing using either of those two options. -
getReconciled
Getter for reconciled If this transaction has been reconciled against the company's ledger, this value is set to true. -
setReconciled
Setter for reconciled If this transaction has been reconciled against the company's ledger, this value is set to true. -
getLocationCode
Getter for locationCode DEPRECATED - Date: 3/1/2018, Version: 18.3, Message: In order to ensure consistency of field names, Please use reportingLocationCode instead. This field has been replaced by the reportingLocationCode field -
setLocationCode
Setter for locationCode DEPRECATED - Date: 3/1/2018, Version: 18.3, Message: In order to ensure consistency of field names, Please use reportingLocationCode instead. This field has been replaced by the reportingLocationCode field -
getReportingLocationCode
Getter for reportingLocationCode For customers who use [location-based tax reporting](https://developer.avalara.com/avatax/dev-guide/locations/location-based-reporting), this field controls how this transaction will be filed for multi-location tax filings. If you specify a non-null value for this field, AvaTax will ensure that this transaction is reported on the tax return associated with the [LocationModel](https://developer.avalara.com/api-reference/avatax/rest/v2/models/LocationModel/) identified by this code. This field does not affect any addresses for the transaction. It only controls the tax filing behavior of this transaction. If you are looking for information about how to set up addresses for a transaction, please see [Using Address Types](https://developer.avalara.com/avatax/dev-guide/customizing-transaction/address-types/) in the AvaTax Developer Guide. -
setReportingLocationCode
Setter for reportingLocationCode For customers who use [location-based tax reporting](https://developer.avalara.com/avatax/dev-guide/locations/location-based-reporting), this field controls how this transaction will be filed for multi-location tax filings. If you specify a non-null value for this field, AvaTax will ensure that this transaction is reported on the tax return associated with the [LocationModel](https://developer.avalara.com/api-reference/avatax/rest/v2/models/LocationModel/) identified by this code. This field does not affect any addresses for the transaction. It only controls the tax filing behavior of this transaction. If you are looking for information about how to set up addresses for a transaction, please see [Using Address Types](https://developer.avalara.com/avatax/dev-guide/customizing-transaction/address-types/) in the AvaTax Developer Guide. -
getPurchaseOrderNo
Getter for purchaseOrderNo The customer-supplied purchase order number of this transaction. -
setPurchaseOrderNo
Setter for purchaseOrderNo The customer-supplied purchase order number of this transaction. -
getReferenceCode
Getter for referenceCode A user-defined reference code for this transaction. -
setReferenceCode
Setter for referenceCode A user-defined reference code for this transaction. -
getSalespersonCode
Getter for salespersonCode The salesperson who provided this transaction. Not required. -
setSalespersonCode
Setter for salespersonCode The salesperson who provided this transaction. Not required. -
getTaxOverrideType
Getter for taxOverrideType If a tax override was applied to this transaction, indicates what type of tax override was applied. -
setTaxOverrideType
Setter for taxOverrideType If a tax override was applied to this transaction, indicates what type of tax override was applied. -
getTaxOverrideAmount
Getter for taxOverrideAmount If a tax override was applied to this transaction, indicates the amount of tax that was requested by the customer. -
setTaxOverrideAmount
Setter for taxOverrideAmount If a tax override was applied to this transaction, indicates the amount of tax that was requested by the customer. -
getTaxOverrideReason
Getter for taxOverrideReason If a tax override was applied to this transaction, indicates the reason for the tax override. -
setTaxOverrideReason
Setter for taxOverrideReason If a tax override was applied to this transaction, indicates the reason for the tax override. -
getTotalAmount
Getter for totalAmount The total amount of this transaction. -
setTotalAmount
Setter for totalAmount The total amount of this transaction. -
getTotalExempt
Getter for totalExempt The amount of this transaction that was exempt. -
setTotalExempt
Setter for totalExempt The amount of this transaction that was exempt. -
getTotalDiscount
Getter for totalDiscount The total amount of discounts applied to all lines within this transaction. -
setTotalDiscount
Setter for totalDiscount The total amount of discounts applied to all lines within this transaction. -
getTotalTax
Getter for totalTax The total tax for all lines in this transaction. If you used a `taxOverride` of type `taxAmount` for any lines in this transaction, this value may be different than the amount of tax calculated by AvaTax. The amount of tax calculated by AvaTax will be stored in the `totalTaxCalculated` field, whereas this field will contain the total tax that was charged on the transaction. You can compare the `totalTax` and `totalTaxCalculated` fields to check for any discrepancies between an external tax calculation provider and the calculation performed by AvaTax. -
setTotalTax
Setter for totalTax The total tax for all lines in this transaction. If you used a `taxOverride` of type `taxAmount` for any lines in this transaction, this value may be different than the amount of tax calculated by AvaTax. The amount of tax calculated by AvaTax will be stored in the `totalTaxCalculated` field, whereas this field will contain the total tax that was charged on the transaction. You can compare the `totalTax` and `totalTaxCalculated` fields to check for any discrepancies between an external tax calculation provider and the calculation performed by AvaTax. -
getTotalTaxable
Getter for totalTaxable The portion of the total amount of this transaction that was taxable. -
setTotalTaxable
Setter for totalTaxable The portion of the total amount of this transaction that was taxable. -
getTotalTaxCalculated
Getter for totalTaxCalculated The amount of tax that AvaTax calculated for the transaction. If you used a `taxOverride` of type `taxAmount` for any lines in this transaction, this value will represent the amount that AvaTax calculated for this transaction without applying the override. The field `totalTax` will be the total amount of tax after all overrides are applied. You can compare the `totalTax` and `totalTaxCalculated` fields to check for any discrepancies between an external tax calculation provider and the calculation performed by AvaTax. -
setTotalTaxCalculated
Setter for totalTaxCalculated The amount of tax that AvaTax calculated for the transaction. If you used a `taxOverride` of type `taxAmount` for any lines in this transaction, this value will represent the amount that AvaTax calculated for this transaction without applying the override. The field `totalTax` will be the total amount of tax after all overrides are applied. You can compare the `totalTax` and `totalTaxCalculated` fields to check for any discrepancies between an external tax calculation provider and the calculation performed by AvaTax. -
getAdjustmentReason
Getter for adjustmentReason If this transaction was adjusted, indicates the unique ID number of the reason why the transaction was adjusted. -
setAdjustmentReason
Setter for adjustmentReason If this transaction was adjusted, indicates the unique ID number of the reason why the transaction was adjusted. -
getAdjustmentDescription
Getter for adjustmentDescription If this transaction was adjusted, indicates a description of the reason why the transaction was adjusted. -
setAdjustmentDescription
Setter for adjustmentDescription If this transaction was adjusted, indicates a description of the reason why the transaction was adjusted. -
getLocked
Getter for locked If this transaction has been reported to a tax authority, this transaction is considered locked and may not be adjusted after reporting. -
setLocked
Setter for locked If this transaction has been reported to a tax authority, this transaction is considered locked and may not be adjusted after reporting. -
getRegion
Getter for region The two-or-three character ISO region code of the region for this transaction. -
setRegion
Setter for region The two-or-three character ISO region code of the region for this transaction. -
getCountry
Getter for country The two-character ISO 3166 code of the country for this transaction. -
setCountry
Setter for country The two-character ISO 3166 code of the country for this transaction. -
getVersion
Getter for version If this transaction was adjusted, this indicates the version number of this transaction. Incremented each time the transaction is adjusted. -
setVersion
Setter for version If this transaction was adjusted, this indicates the version number of this transaction. Incremented each time the transaction is adjusted. -
getSoftwareVersion
Getter for softwareVersion The software version used to calculate this transaction. -
setSoftwareVersion
Setter for softwareVersion The software version used to calculate this transaction. -
getOriginAddressId
Getter for originAddressId The unique ID number of the origin address for this transaction. -
setOriginAddressId
Setter for originAddressId The unique ID number of the origin address for this transaction. -
getDestinationAddressId
Getter for destinationAddressId The unique ID number of the destination address for this transaction. -
setDestinationAddressId
Setter for destinationAddressId The unique ID number of the destination address for this transaction. -
getExchangeRateEffectiveDate
Getter for exchangeRateEffectiveDate If this transaction included foreign currency exchange, this is the date as of which the exchange rate was calculated. -
setExchangeRateEffectiveDate
Setter for exchangeRateEffectiveDate If this transaction included foreign currency exchange, this is the date as of which the exchange rate was calculated. -
getExchangeRate
Getter for exchangeRate If this transaction included foreign currency exchange, this is the exchange rate that was used. -
setExchangeRate
Setter for exchangeRate If this transaction included foreign currency exchange, this is the exchange rate that was used. -
getIsSellerImporterOfRecord
Getter for isSellerImporterOfRecord By default, the value is null, when the value is null, the value can be set at nexus level and used. If the value is not null, it will override the value at nexus level. If true, this seller was considered the importer of record of a product shipped internationally. If this transaction is not an international transaction, this field may be left blank. The "importer of record" is liable to pay customs and import duties for products shipped internationally. If you specify that the seller is the importer of record, then estimates of customs and import duties will be added as tax details to the transaction. Otherwise, the buyer is considered the importer of record, and customs and import duties will not be added to the tax details for this transaction. -
setIsSellerImporterOfRecord
Setter for isSellerImporterOfRecord By default, the value is null, when the value is null, the value can be set at nexus level and used. If the value is not null, it will override the value at nexus level. If true, this seller was considered the importer of record of a product shipped internationally. If this transaction is not an international transaction, this field may be left blank. The "importer of record" is liable to pay customs and import duties for products shipped internationally. If you specify that the seller is the importer of record, then estimates of customs and import duties will be added as tax details to the transaction. Otherwise, the buyer is considered the importer of record, and customs and import duties will not be added to the tax details for this transaction. -
getDescription
Getter for description Description of this transaction. Field permits unicode values. -
setDescription
Setter for description Description of this transaction. Field permits unicode values. -
getEmail
Getter for email Email address associated with this transaction. -
setEmail
Setter for email Email address associated with this transaction. -
getBusinessIdentificationNo
Getter for businessIdentificationNo VAT business identification number used for this transaction. -
setBusinessIdentificationNo
Setter for businessIdentificationNo VAT business identification number used for this transaction. -
getModifiedDate
Getter for modifiedDate The date/time when this record was last modified. -
setModifiedDate
Setter for modifiedDate The date/time when this record was last modified. -
getModifiedUserId
Getter for modifiedUserId The user ID of the user who last modified this record. -
setModifiedUserId
Setter for modifiedUserId The user ID of the user who last modified this record. -
getTaxDate
Getter for taxDate Tax date for this transaction -
setTaxDate
Setter for taxDate Tax date for this transaction -
getLines
Getter for lines A list of line items in this transaction. To fetch this list, add the query string `?$include=Lines` or `?$include=Details` to your URL. -
setLines
Setter for lines A list of line items in this transaction. To fetch this list, add the query string `?$include=Lines` or `?$include=Details` to your URL. -
getAddresses
Getter for addresses A list of line items in this transaction. To fetch this list, add the query string `?$include=Addresses` to your URL. For more information about transaction addresses, please see [Using Address Types](https://developer.avalara.com/avatax/dev-guide/customizing-transaction/address-types/) in the AvaTax Developer Guide. -
setAddresses
Setter for addresses A list of line items in this transaction. To fetch this list, add the query string `?$include=Addresses` to your URL. For more information about transaction addresses, please see [Using Address Types](https://developer.avalara.com/avatax/dev-guide/customizing-transaction/address-types/) in the AvaTax Developer Guide. -
getLocationTypes
Getter for locationTypes A list of location types in this transaction. To fetch this list, add the query string `?$include=Addresses` to your URL. -
setLocationTypes
Setter for locationTypes A list of location types in this transaction. To fetch this list, add the query string `?$include=Addresses` to your URL. -
getSummary
Getter for summary Contains a summary of tax on this transaction. -
setSummary
Setter for summary Contains a summary of tax on this transaction. -
getTaxDetailsByTaxType
Getter for taxDetailsByTaxType Contains the tax details per tax type -
setTaxDetailsByTaxType
Setter for taxDetailsByTaxType Contains the tax details per tax type -
getParameters
Getter for parameters Contains a list of extra parameters that were set when the transaction was created. -
setParameters
Setter for parameters Contains a list of extra parameters that were set when the transaction was created. -
getUserDefinedFields
Getter for userDefinedFields Custom user fields/flex fields for this transaction. -
setUserDefinedFields
Setter for userDefinedFields Custom user fields/flex fields for this transaction. -
getMessages
Getter for messages List of informational and warning messages regarding this API call. These messages are only relevant to the current API call. -
setMessages
Setter for messages List of informational and warning messages regarding this API call. These messages are only relevant to the current API call. -
getInvoiceMessages
Getter for invoiceMessages Invoice messages associated with this document. Currently, this stores legally-required VAT messages. -
setInvoiceMessages
Setter for invoiceMessages Invoice messages associated with this document. Currently, this stores legally-required VAT messages. -
getCustomerSupplierName
Getter for customerSupplierName The name of the supplier / exporter / seller. For sales doctype this will be the name of your own company for which you are reporting. For purchases doctype this will be the name of the supplier you have purchased from. -
setCustomerSupplierName
Setter for customerSupplierName The name of the supplier / exporter / seller. For sales doctype this will be the name of your own company for which you are reporting. For purchases doctype this will be the name of the supplier you have purchased from. -
getDataSourceId
Getter for dataSourceId The Id of the datasource from which this transaction originated. This value will be overridden by the system to take the datasource Id from the call header. -
setDataSourceId
Setter for dataSourceId The Id of the datasource from which this transaction originated. This value will be overridden by the system to take the datasource Id from the call header. -
getDeliveryTerms
Getter for deliveryTerms Delivery Terms (or Incoterms) refer to agreed-upon conditions between a buyer and a seller for the delivery of goods. They are three-letter trade terms that describe the practical arrangements for the delivery of goods from sellers to buyers and set out the obligations, costs, and risks between the two parties. The DeliveryTerms field determines who acts as the Importer of Record and who arranges the Transport of the goods when this information is not separately sent to AvaTax in the request. When used in conjunction with isSellerImporterOfRecord, this parameter can also influence whether AvaTax includes Import Duty and Tax in the transaction totals. If the fields for transport or isSellerImporterOfRecord are passed in the request and conflict with the DeliveryTerms, the values provided in the first will take priority over the DeliveryTerms parameter. If neither transport nor isSellerImporterOfRecord is passed in the request and DeliveryTerms is passed, AvaTax will determine who acts as Importer of Record and who arranges the Transport of the goods based on the specified DeliveryTerms. If none of these fields is passed, AvaTax will keep the current behavior and default transport to "Seller" for goods and isSellerImporterOfRecord to "False" (i.e., the AvaTax user does not act as Importer of record)." Finally, this field is also used for reports. The Delivery Terms that the user can pass are the following: 1. Ex Works (EXW) 2. Free Carrier (FCA) 3. Carrier and Insurance Paid to (CIP) 4. Carriage Paid To (CPT) 5. Delivered at Place (DAP) 6. Delivered at Place Unloaded (DPU) 7. Delivered Duty Paid (DDP) 8. Free Alongside Ship (FAS) 9. Free on Board (FOB) 10. Cost and Freight (CFR) 11. Cost, Insurance and Freight (CIF) DAP and DDP are two delivery terms that indicate that Import Duty and Tax should be included in the transaction total. -
setDeliveryTerms
Setter for deliveryTerms Delivery Terms (or Incoterms) refer to agreed-upon conditions between a buyer and a seller for the delivery of goods. They are three-letter trade terms that describe the practical arrangements for the delivery of goods from sellers to buyers and set out the obligations, costs, and risks between the two parties. The DeliveryTerms field determines who acts as the Importer of Record and who arranges the Transport of the goods when this information is not separately sent to AvaTax in the request. When used in conjunction with isSellerImporterOfRecord, this parameter can also influence whether AvaTax includes Import Duty and Tax in the transaction totals. If the fields for transport or isSellerImporterOfRecord are passed in the request and conflict with the DeliveryTerms, the values provided in the first will take priority over the DeliveryTerms parameter. If neither transport nor isSellerImporterOfRecord is passed in the request and DeliveryTerms is passed, AvaTax will determine who acts as Importer of Record and who arranges the Transport of the goods based on the specified DeliveryTerms. If none of these fields is passed, AvaTax will keep the current behavior and default transport to "Seller" for goods and isSellerImporterOfRecord to "False" (i.e., the AvaTax user does not act as Importer of record)." Finally, this field is also used for reports. The Delivery Terms that the user can pass are the following: 1. Ex Works (EXW) 2. Free Carrier (FCA) 3. Carrier and Insurance Paid to (CIP) 4. Carriage Paid To (CPT) 5. Delivered at Place (DAP) 6. Delivered at Place Unloaded (DPU) 7. Delivered Duty Paid (DDP) 8. Free Alongside Ship (FAS) 9. Free on Board (FOB) 10. Cost and Freight (CFR) 11. Cost, Insurance and Freight (CIF) DAP and DDP are two delivery terms that indicate that Import Duty and Tax should be included in the transaction total. -
getApStatusCode
Getter for apStatusCode Users can set tolerance or threshold limits on transactions and inform users of appropriate actions to take if a transaction falls outside of these values. An Accounts Payable (AP) status code indicates the action that needs to be taken when the tolerance/threshold falls above or below the tolerance/threshold limits. Available AP status codes are: 1. NoAccrualMatch 2. NoAccrualUndercharge 3. NoAccrualOvercharge 4. NoAccrualAmountThresholdNotMet 5. NoAccrualTrustedVendor 6. NoAccrualExemptedCostCenter 7. NoAccrualExemptedItem 8. NoAccrualExemptedVendor 9. AccruedUndercharge 10. AccruedVendor 11. NeedReviewUndercharge 12. NeedReviewVendor 13. PendingAccrualVendor 14. PendingAccrualUndercharge -
setApStatusCode
Setter for apStatusCode Users can set tolerance or threshold limits on transactions and inform users of appropriate actions to take if a transaction falls outside of these values. An Accounts Payable (AP) status code indicates the action that needs to be taken when the tolerance/threshold falls above or below the tolerance/threshold limits. Available AP status codes are: 1. NoAccrualMatch 2. NoAccrualUndercharge 3. NoAccrualOvercharge 4. NoAccrualAmountThresholdNotMet 5. NoAccrualTrustedVendor 6. NoAccrualExemptedCostCenter 7. NoAccrualExemptedItem 8. NoAccrualExemptedVendor 9. AccruedUndercharge 10. AccruedVendor 11. NeedReviewUndercharge 12. NeedReviewVendor 13. PendingAccrualVendor 14. PendingAccrualUndercharge -
getApStatus
Getter for apStatus An Accounts Payable (AP) status indicates an action that needs to be taken when the tolerance amount falls above or below certain threshold limits. -
setApStatus
Setter for apStatus An Accounts Payable (AP) status indicates an action that needs to be taken when the tolerance amount falls above or below certain threshold limits. -
toString
Returns a JSON string representation of TransactionModel
-