public class TransactionModel
extends java.lang.Object
Constructor and Description |
---|
TransactionModel() |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<TransactionAddressModel> |
getAddresses()
Getter for addresses
A list of line items in this transaction.
|
java.lang.String |
getAdjustmentDescription()
Getter for adjustmentDescription
If this transaction was adjusted, indicates a description of the reason why the transaction was adjusted.
|
AdjustmentReason |
getAdjustmentReason()
Getter for adjustmentReason
If this transaction was adjusted, indicates the unique ID number of the reason why the transaction was adjusted.
|
java.lang.String |
getBatchCode()
Getter for batchCode
If this transaction was created as part of a batch, this code indicates which batch.
|
java.lang.String |
getBusinessIdentificationNo()
Getter for businessIdentificationNo
VAT business identification number used for this transaction.
|
java.lang.String |
getCode()
Getter for code
A unique customer-provided code identifying this transaction.
|
java.lang.Integer |
getCompanyId()
Getter for companyId
The unique ID number of the company that recorded this transaction.
|
java.lang.String |
getCountry()
Getter for country
The two-character ISO 3166 code of the country for this transaction.
|
java.lang.String |
getCurrencyCode()
Getter for currencyCode
The three-character ISO 4217 currency code that was used for payment for this transaction.
|
java.lang.String |
getCustomerCode()
Getter for customerCode
Unique code identifying the customer that requested this transaction.
|
java.lang.String |
getCustomerUsageType()
Getter for customerUsageType
DEPRECATED - Date: 10/16/2017, Version: 17.11, Message: Please use entityUseCode instead.
|
java.lang.String |
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.
|
java.util.Date |
getDate()
Getter for date
The date on which this transaction occurred.
|
java.lang.String |
getDescription()
Getter for description
Description of this transaction.
|
java.lang.Long |
getDestinationAddressId()
Getter for destinationAddressId
The unique ID number of the destination address for this transaction.
|
java.lang.String |
getEmail()
Getter for email
Email address associated with this transaction.
|
java.lang.String |
getEntityUseCode()
Getter for entityUseCode
The entity use code for this transaction.
|
java.math.BigDecimal |
getExchangeRate()
Getter for exchangeRate
If this transaction included foreign currency exchange, this is the exchange rate that was used.
|
java.util.Date |
getExchangeRateEffectiveDate()
Getter for exchangeRateEffectiveDate
If this transaction included foreign currency exchange, this is the date as of which the exchange rate was calculated.
|
java.lang.String |
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.
|
java.lang.Long |
getId()
Getter for id
The unique ID number of this transaction.
|
java.util.ArrayList<InvoiceMessageModel> |
getInvoiceMessages()
Getter for invoiceMessages
Invoice messages associated with this document.
|
java.lang.Boolean |
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.
|
java.util.ArrayList<TransactionLineModel> |
getLines()
Getter for lines
A list of line items in this transaction.
|
java.lang.String |
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.
|
java.util.ArrayList<TransactionLocationTypeModel> |
getLocationTypes()
Getter for locationTypes
A list of location types in this transaction.
|
java.lang.Boolean |
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.
|
java.util.ArrayList<AvaTaxMessage> |
getMessages()
Getter for messages
List of informational and warning messages regarding this API call.
|
java.util.Date |
getModifiedDate()
Getter for modifiedDate
The date/time when this record was last modified.
|
java.lang.Integer |
getModifiedUserId()
Getter for modifiedUserId
The user ID of the user who last modified this record.
|
java.lang.Long |
getOriginAddressId()
Getter for originAddressId
The unique ID number of the origin address for this transaction.
|
java.util.ArrayList<TransactionParameterModel> |
getParameters()
Getter for parameters
Contains a list of extra parameters that were set when the transaction was created.
|
java.util.Date |
getPaymentDate()
Getter for paymentDate
DEPRECATED - Date: 07/25/2018, Version: 18.7, Message: This field is deprecated and will return null till its removed.
|
java.lang.String |
getPurchaseOrderNo()
Getter for purchaseOrderNo
The customer-supplied purchase order number of this transaction.
|
java.lang.Boolean |
getReconciled()
Getter for reconciled
If this transaction has been reconciled against the company's ledger, this value is set to true.
|
java.lang.String |
getReferenceCode()
Getter for referenceCode
A user-defined reference code for this transaction.
|
java.lang.String |
getRegion()
Getter for region
The two-or-three character ISO region code of the region for this transaction.
|
java.lang.String |
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.
|
java.lang.String |
getSalespersonCode()
Getter for salespersonCode
The salesperson who provided this transaction.
|
java.lang.String |
getSoftwareVersion()
Getter for softwareVersion
The software version used to calculate this transaction.
|
DocumentStatus |
getStatus()
Getter for status
The status of the transaction.
|
java.util.ArrayList<TransactionSummary> |
getSummary()
Getter for summary
Contains a summary of tax on this transaction.
|
java.util.Date |
getTaxDate()
Getter for taxDate
Tax date for this transaction
|
java.util.ArrayList<TaxDetailsByTaxType> |
getTaxDetailsByTaxType()
Getter for taxDetailsByTaxType
Contains the tax details per tax type
|
java.math.BigDecimal |
getTaxOverrideAmount()
Getter for taxOverrideAmount
If a tax override was applied to this transaction, indicates the amount of tax that was requested by the customer.
|
java.lang.String |
getTaxOverrideReason()
Getter for taxOverrideReason
If a tax override was applied to this transaction, indicates the reason for the tax override.
|
TaxOverrideType |
getTaxOverrideType()
Getter for taxOverrideType
If a tax override was applied to this transaction, indicates what type of tax override was applied.
|
java.math.BigDecimal |
getTotalAmount()
Getter for totalAmount
The total amount of this transaction.
|
java.math.BigDecimal |
getTotalDiscount()
Getter for totalDiscount
The total amount of discounts applied to all lines within this transaction.
|
java.math.BigDecimal |
getTotalExempt()
Getter for totalExempt
The amount of this transaction that was exempt.
|
java.math.BigDecimal |
getTotalTax()
Getter for totalTax
The total tax for all lines in this transaction.
|
java.math.BigDecimal |
getTotalTaxable()
Getter for totalTaxable
The portion of the total amount of this transaction that was taxable.
|
java.math.BigDecimal |
getTotalTaxCalculated()
Getter for totalTaxCalculated
The amount of tax that AvaTax calculated for the transaction.
|
DocumentType |
getType()
Getter for type
The type of the transaction.
|
java.lang.Integer |
getVersion()
Getter for version
If this transaction was adjusted, this indicates the version number of this transaction.
|
void |
setAddresses(java.util.ArrayList<TransactionAddressModel> value)
Setter for addresses
A list of line items in this transaction.
|
void |
setAdjustmentDescription(java.lang.String value)
Setter for adjustmentDescription
If this transaction was adjusted, indicates a description of the reason why the transaction was adjusted.
|
void |
setAdjustmentReason(AdjustmentReason value)
Setter for adjustmentReason
If this transaction was adjusted, indicates the unique ID number of the reason why the transaction was adjusted.
|
void |
setBatchCode(java.lang.String value)
Setter for batchCode
If this transaction was created as part of a batch, this code indicates which batch.
|
void |
setBusinessIdentificationNo(java.lang.String value)
Setter for businessIdentificationNo
VAT business identification number used for this transaction.
|
void |
setCode(java.lang.String value)
Setter for code
A unique customer-provided code identifying this transaction.
|
void |
setCompanyId(java.lang.Integer value)
Setter for companyId
The unique ID number of the company that recorded this transaction.
|
void |
setCountry(java.lang.String value)
Setter for country
The two-character ISO 3166 code of the country for this transaction.
|
void |
setCurrencyCode(java.lang.String value)
Setter for currencyCode
The three-character ISO 4217 currency code that was used for payment for this transaction.
|
void |
setCustomerCode(java.lang.String value)
Setter for customerCode
Unique code identifying the customer that requested this transaction.
|
void |
setCustomerUsageType(java.lang.String value)
Setter for customerUsageType
DEPRECATED - Date: 10/16/2017, Version: 17.11, Message: Please use entityUseCode instead.
|
void |
setCustomerVendorCode(java.lang.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 |
setDate(java.util.Date value)
Setter for date
The date on which this transaction occurred.
|
void |
setDescription(java.lang.String value)
Setter for description
Description of this transaction.
|
void |
setDestinationAddressId(java.lang.Long value)
Setter for destinationAddressId
The unique ID number of the destination address for this transaction.
|
void |
setEmail(java.lang.String value)
Setter for email
Email address associated with this transaction.
|
void |
setEntityUseCode(java.lang.String value)
Setter for entityUseCode
The entity use code for this transaction.
|
void |
setExchangeRate(java.math.BigDecimal value)
Setter for exchangeRate
If this transaction included foreign currency exchange, this is the exchange rate that was used.
|
void |
setExchangeRateEffectiveDate(java.util.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(java.lang.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 |
setId(java.lang.Long value)
Setter for id
The unique ID number of this transaction.
|
void |
setInvoiceMessages(java.util.ArrayList<InvoiceMessageModel> value)
Setter for invoiceMessages
Invoice messages associated with this document.
|
void |
setIsSellerImporterOfRecord(java.lang.Boolean value)
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(java.util.ArrayList<TransactionLineModel> value)
Setter for lines
A list of line items in this transaction.
|
void |
setLocationCode(java.lang.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 |
setLocationTypes(java.util.ArrayList<TransactionLocationTypeModel> value)
Setter for locationTypes
A list of location types in this transaction.
|
void |
setLocked(java.lang.Boolean value)
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(java.util.ArrayList<AvaTaxMessage> value)
Setter for messages
List of informational and warning messages regarding this API call.
|
void |
setModifiedDate(java.util.Date value)
Setter for modifiedDate
The date/time when this record was last modified.
|
void |
setModifiedUserId(java.lang.Integer value)
Setter for modifiedUserId
The user ID of the user who last modified this record.
|
void |
setOriginAddressId(java.lang.Long value)
Setter for originAddressId
The unique ID number of the origin address for this transaction.
|
void |
setParameters(java.util.ArrayList<TransactionParameterModel> value)
Setter for parameters
Contains a list of extra parameters that were set when the transaction was created.
|
void |
setPaymentDate(java.util.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(java.lang.String value)
Setter for purchaseOrderNo
The customer-supplied purchase order number of this transaction.
|
void |
setReconciled(java.lang.Boolean value)
Setter for reconciled
If this transaction has been reconciled against the company's ledger, this value is set to true.
|
void |
setReferenceCode(java.lang.String value)
Setter for referenceCode
A user-defined reference code for this transaction.
|
void |
setRegion(java.lang.String value)
Setter for region
The two-or-three character ISO region code of the region for this transaction.
|
void |
setReportingLocationCode(java.lang.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(java.lang.String value)
Setter for salespersonCode
The salesperson who provided this transaction.
|
void |
setSoftwareVersion(java.lang.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(java.util.ArrayList<TransactionSummary> value)
Setter for summary
Contains a summary of tax on this transaction.
|
void |
setTaxDate(java.util.Date value)
Setter for taxDate
Tax date for this transaction
|
void |
setTaxDetailsByTaxType(java.util.ArrayList<TaxDetailsByTaxType> value)
Setter for taxDetailsByTaxType
Contains the tax details per tax type
|
void |
setTaxOverrideAmount(java.math.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(java.lang.String value)
Setter for taxOverrideReason
If a tax override was applied to this transaction, indicates the reason for the tax override.
|
void |
setTaxOverrideType(TaxOverrideType value)
Setter for taxOverrideType
If a tax override was applied to this transaction, indicates what type of tax override was applied.
|
void |
setTotalAmount(java.math.BigDecimal value)
Setter for totalAmount
The total amount of this transaction.
|
void |
setTotalDiscount(java.math.BigDecimal value)
Setter for totalDiscount
The total amount of discounts applied to all lines within this transaction.
|
void |
setTotalExempt(java.math.BigDecimal value)
Setter for totalExempt
The amount of this transaction that was exempt.
|
void |
setTotalTax(java.math.BigDecimal value)
Setter for totalTax
The total tax for all lines in this transaction.
|
void |
setTotalTaxable(java.math.BigDecimal value)
Setter for totalTaxable
The portion of the total amount of this transaction that was taxable.
|
void |
setTotalTaxCalculated(java.math.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 |
setVersion(java.lang.Integer value)
Setter for version
If this transaction was adjusted, this indicates the version number of this transaction.
|
java.lang.String |
toString()
Returns a JSON string representation of TransactionModel
|
public java.lang.Long getId()
public void setId(java.lang.Long value)
public java.lang.String getCode()
public void setCode(java.lang.String value)
public java.lang.Integer getCompanyId()
public void setCompanyId(java.lang.Integer value)
public java.util.Date getDate()
public void setDate(java.util.Date value)
public java.util.Date getPaymentDate()
public void setPaymentDate(java.util.Date value)
public DocumentStatus getStatus()
public void setStatus(DocumentStatus value)
public DocumentType getType()
public void setType(DocumentType value)
public java.lang.String getBatchCode()
public void setBatchCode(java.lang.String value)
public java.lang.String getCurrencyCode()
public void setCurrencyCode(java.lang.String value)
public java.lang.String getCustomerUsageType()
public void setCustomerUsageType(java.lang.String value)
public java.lang.String getEntityUseCode()
public void setEntityUseCode(java.lang.String value)
public java.lang.String getCustomerVendorCode()
public void setCustomerVendorCode(java.lang.String value)
public java.lang.String getCustomerCode()
public void setCustomerCode(java.lang.String value)
public java.lang.String getExemptNo()
public void setExemptNo(java.lang.String value)
public java.lang.Boolean getReconciled()
public void setReconciled(java.lang.Boolean value)
public java.lang.String getLocationCode()
public void setLocationCode(java.lang.String value)
public java.lang.String getReportingLocationCode()
public void setReportingLocationCode(java.lang.String value)
public java.lang.String getPurchaseOrderNo()
public void setPurchaseOrderNo(java.lang.String value)
public java.lang.String getReferenceCode()
public void setReferenceCode(java.lang.String value)
public java.lang.String getSalespersonCode()
public void setSalespersonCode(java.lang.String value)
public TaxOverrideType getTaxOverrideType()
public void setTaxOverrideType(TaxOverrideType value)
public java.math.BigDecimal getTaxOverrideAmount()
public void setTaxOverrideAmount(java.math.BigDecimal value)
public java.lang.String getTaxOverrideReason()
public void setTaxOverrideReason(java.lang.String value)
public java.math.BigDecimal getTotalAmount()
public void setTotalAmount(java.math.BigDecimal value)
public java.math.BigDecimal getTotalExempt()
public void setTotalExempt(java.math.BigDecimal value)
public java.math.BigDecimal getTotalDiscount()
public void setTotalDiscount(java.math.BigDecimal value)
public java.math.BigDecimal getTotalTax()
public void setTotalTax(java.math.BigDecimal value)
public java.math.BigDecimal getTotalTaxable()
public void setTotalTaxable(java.math.BigDecimal value)
public java.math.BigDecimal getTotalTaxCalculated()
public void setTotalTaxCalculated(java.math.BigDecimal value)
public AdjustmentReason getAdjustmentReason()
public void setAdjustmentReason(AdjustmentReason value)
public java.lang.String getAdjustmentDescription()
public void setAdjustmentDescription(java.lang.String value)
public java.lang.Boolean getLocked()
public void setLocked(java.lang.Boolean value)
public java.lang.String getRegion()
public void setRegion(java.lang.String value)
public java.lang.String getCountry()
public void setCountry(java.lang.String value)
public java.lang.Integer getVersion()
public void setVersion(java.lang.Integer value)
public java.lang.String getSoftwareVersion()
public void setSoftwareVersion(java.lang.String value)
public java.lang.Long getOriginAddressId()
public void setOriginAddressId(java.lang.Long value)
public java.lang.Long getDestinationAddressId()
public void setDestinationAddressId(java.lang.Long value)
public java.util.Date getExchangeRateEffectiveDate()
public void setExchangeRateEffectiveDate(java.util.Date value)
public java.math.BigDecimal getExchangeRate()
public void setExchangeRate(java.math.BigDecimal value)
public java.lang.Boolean getIsSellerImporterOfRecord()
public void setIsSellerImporterOfRecord(java.lang.Boolean value)
public java.lang.String getDescription()
public void setDescription(java.lang.String value)
public java.lang.String getEmail()
public void setEmail(java.lang.String value)
public java.lang.String getBusinessIdentificationNo()
public void setBusinessIdentificationNo(java.lang.String value)
public java.util.Date getModifiedDate()
public void setModifiedDate(java.util.Date value)
public java.lang.Integer getModifiedUserId()
public void setModifiedUserId(java.lang.Integer value)
public java.util.Date getTaxDate()
public void setTaxDate(java.util.Date value)
public java.util.ArrayList<TransactionLineModel> getLines()
public void setLines(java.util.ArrayList<TransactionLineModel> value)
public java.util.ArrayList<TransactionAddressModel> getAddresses()
public void setAddresses(java.util.ArrayList<TransactionAddressModel> value)
public java.util.ArrayList<TransactionLocationTypeModel> getLocationTypes()
public void setLocationTypes(java.util.ArrayList<TransactionLocationTypeModel> value)
public java.util.ArrayList<TransactionSummary> getSummary()
public void setSummary(java.util.ArrayList<TransactionSummary> value)
public java.util.ArrayList<TaxDetailsByTaxType> getTaxDetailsByTaxType()
public void setTaxDetailsByTaxType(java.util.ArrayList<TaxDetailsByTaxType> value)
public java.util.ArrayList<TransactionParameterModel> getParameters()
public void setParameters(java.util.ArrayList<TransactionParameterModel> value)
public java.util.ArrayList<AvaTaxMessage> getMessages()
public void setMessages(java.util.ArrayList<AvaTaxMessage> value)
public java.util.ArrayList<InvoiceMessageModel> getInvoiceMessages()
public void setInvoiceMessages(java.util.ArrayList<InvoiceMessageModel> value)
public java.lang.String toString()
toString
in class java.lang.Object