Class CreateMultiCompanyTransactionModel
- java.lang.Object
-
- net.avalara.avatax.rest.client.models.CreateMultiCompanyTransactionModel
-
public class CreateMultiCompanyTransactionModel extends java.lang.ObjectCreate a multi company transaction
-
-
Constructor Summary
Constructors Constructor Description CreateMultiCompanyTransactionModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressesModelgetAddresses()Getter for addresses Default addresses for all lines in this document.java.lang.StringgetBatchCode()Getter for batchCode BatchCode for batch operations.java.lang.StringgetBusinessIdentificationNo()Getter for businessIdentificationNo VAT business identification number for the customer for this transaction.java.lang.StringgetCode()Getter for code Transaction Code - the internal reference code used by the client application.java.lang.BooleangetCommit()Getter for commit Causes the document to be committed if true.java.lang.StringgetCompanyCode()Getter for companyCode Company Code - Specify the code of the company creating this transaction here.java.lang.StringgetCurrencyCode()Getter for currencyCode The three-character ISO 4217 currency code for this transaction.java.lang.StringgetCustomerCode()Getter for customerCode Customer Code - The client application customer reference code.java.lang.StringgetCustomerUsageType()Getter for customerUsageType Customer Usage Type - The client application customer or usage type.java.util.DategetDate()Getter for date Transaction Date - The date on the invoice, purchase order, etc.TaxDebugLevelgetDebugLevel()Getter for debugLevel If the user wishes to request additional debug information from this transaction, specify a level higher than `normal`.java.lang.StringgetDescription()Getter for description User-supplied description for this transaction.java.math.BigDecimalgetDiscount()Getter for discount Discount - The discount amount to apply to the document.java.lang.StringgetEmail()Getter for email User-supplied email address relevant for this transaction.java.math.BigDecimalgetExchangeRate()Getter for exchangeRate Currency exchange rate from this transaction to the company base currency.java.util.DategetExchangeRateEffectiveDate()Getter for exchangeRateEffectiveDate Effective date of the exchange rate.java.lang.StringgetExemptionNo()Getter for exemptionNo Exemption Number for this document.java.lang.BooleangetIsSellerImporterOfRecord()Getter for isSellerImporterOfRecord Specifies if the Transaction has the seller as IsSellerImporterOfRecord.java.util.ArrayList<MultiCompanyLineItemModel>getLines()Getter for lines Multi company transaction line item listjava.util.HashMap<java.lang.String,java.lang.String>getParameters()Getter for parameters Special parameters for this transaction.java.lang.StringgetPosLaneCode()Getter for posLaneCode Sets the Point of Sale Lane Code sent by the User for this document.java.lang.StringgetPurchaseOrderNo()Getter for purchaseOrderNo Purchase Order Number for this document.java.lang.StringgetReferenceCode()Getter for referenceCode Customer-provided Reference Code with information about this transaction.java.lang.StringgetReportingLocationCode()Getter for reportingLocationCode Sets the sale location code (Outlet ID) for reporting this document to the tax authority.java.lang.StringgetSalespersonCode()Getter for salespersonCode Salesperson Code - The client application salesperson reference code.ServiceModegetServiceMode()Getter for serviceMode Specifies whether the tax calculation is handled Local, Remote, or Automatic (default).TaxOverrideModelgetTaxOverride()Getter for taxOverride Specifies a tax override for the entire documentDocumentTypegetType()Getter for type Specifies the type of document to create.voidsetAddresses(AddressesModel value)Setter for addresses Default addresses for all lines in this document.voidsetBatchCode(java.lang.String value)Setter for batchCode BatchCode for batch operations.voidsetBusinessIdentificationNo(java.lang.String value)Setter for businessIdentificationNo VAT business identification number for the customer for this transaction.voidsetCode(java.lang.String value)Setter for code Transaction Code - the internal reference code used by the client application.voidsetCommit(java.lang.Boolean value)Setter for commit Causes the document to be committed if true.voidsetCompanyCode(java.lang.String value)Setter for companyCode Company Code - Specify the code of the company creating this transaction here.voidsetCurrencyCode(java.lang.String value)Setter for currencyCode The three-character ISO 4217 currency code for this transaction.voidsetCustomerCode(java.lang.String value)Setter for customerCode Customer Code - The client application customer reference code.voidsetCustomerUsageType(java.lang.String value)Setter for customerUsageType Customer Usage Type - The client application customer or usage type.voidsetDate(java.util.Date value)Setter for date Transaction Date - The date on the invoice, purchase order, etc.voidsetDebugLevel(TaxDebugLevel value)Setter for debugLevel If the user wishes to request additional debug information from this transaction, specify a level higher than `normal`.voidsetDescription(java.lang.String value)Setter for description User-supplied description for this transaction.voidsetDiscount(java.math.BigDecimal value)Setter for discount Discount - The discount amount to apply to the document.voidsetEmail(java.lang.String value)Setter for email User-supplied email address relevant for this transaction.voidsetExchangeRate(java.math.BigDecimal value)Setter for exchangeRate Currency exchange rate from this transaction to the company base currency.voidsetExchangeRateEffectiveDate(java.util.Date value)Setter for exchangeRateEffectiveDate Effective date of the exchange rate.voidsetExemptionNo(java.lang.String value)Setter for exemptionNo Exemption Number for this document.voidsetIsSellerImporterOfRecord(java.lang.Boolean value)Setter for isSellerImporterOfRecord Specifies if the Transaction has the seller as IsSellerImporterOfRecord.voidsetLines(java.util.ArrayList<MultiCompanyLineItemModel> value)Setter for lines Multi company transaction line item listvoidsetParameters(java.util.HashMap<java.lang.String,java.lang.String> value)Setter for parameters Special parameters for this transaction.voidsetPosLaneCode(java.lang.String value)Setter for posLaneCode Sets the Point of Sale Lane Code sent by the User for this document.voidsetPurchaseOrderNo(java.lang.String value)Setter for purchaseOrderNo Purchase Order Number for this document.voidsetReferenceCode(java.lang.String value)Setter for referenceCode Customer-provided Reference Code with information about this transaction.voidsetReportingLocationCode(java.lang.String value)Setter for reportingLocationCode Sets the sale location code (Outlet ID) for reporting this document to the tax authority.voidsetSalespersonCode(java.lang.String value)Setter for salespersonCode Salesperson Code - The client application salesperson reference code.voidsetServiceMode(ServiceMode value)Setter for serviceMode Specifies whether the tax calculation is handled Local, Remote, or Automatic (default).voidsetTaxOverride(TaxOverrideModel value)Setter for taxOverride Specifies a tax override for the entire documentvoidsetType(DocumentType value)Setter for type Specifies the type of document to create.java.lang.StringtoString()Returns a JSON string representation of CreateMultiCompanyTransactionModel
-
-
-
Method Detail
-
getCode
public java.lang.String getCode()
Getter for code Transaction Code - the internal reference code used by the client application. This is used for operations such as Get, Adjust, Settle, and Void. If you leave the transaction code blank, a GUID will be assigned to each transaction. In multi company scenario, each transaction with be this code with an extension at the end, ".1", ".2", ".3" etc
-
setCode
public void setCode(java.lang.String value)
Setter for code Transaction Code - the internal reference code used by the client application. This is used for operations such as Get, Adjust, Settle, and Void. If you leave the transaction code blank, a GUID will be assigned to each transaction. In multi company scenario, each transaction with be this code with an extension at the end, ".1", ".2", ".3" etc
-
getLines
public java.util.ArrayList<MultiCompanyLineItemModel> getLines()
Getter for lines Multi company transaction line item list
-
setLines
public void setLines(java.util.ArrayList<MultiCompanyLineItemModel> value)
Setter for lines Multi company transaction line item list
-
getType
public DocumentType getType()
Getter for type Specifies the type of document to create. A document type ending with `Invoice` is a permanent transaction that will be recorded in AvaTax. A document type ending with `Order` is a temporary estimate that will not be preserved. If you omit this value, the API will assume you want to create a `SalesOrder`.
-
setType
public void setType(DocumentType value)
Setter for type Specifies the type of document to create. A document type ending with `Invoice` is a permanent transaction that will be recorded in AvaTax. A document type ending with `Order` is a temporary estimate that will not be preserved. If you omit this value, the API will assume you want to create a `SalesOrder`.
-
getCompanyCode
public java.lang.String getCompanyCode()
Getter for companyCode Company Code - Specify the code of the company creating this transaction here. If you leave this value null, your account's default company will be used instead.
-
setCompanyCode
public void setCompanyCode(java.lang.String value)
Setter for companyCode Company Code - Specify the code of the company creating this transaction here. If you leave this value null, your account's default company will be used instead.
-
getDate
public java.util.Date getDate()
Getter for date Transaction Date - The date on the invoice, purchase order, etc. By default, this date will be used to calculate the tax rates for the transaction. If you wish to use a different date to calculate tax rates, please specify a `taxOverride` of type `taxDate`.
-
setDate
public void setDate(java.util.Date value)
Setter for date Transaction Date - The date on the invoice, purchase order, etc. By default, this date will be used to calculate the tax rates for the transaction. If you wish to use a different date to calculate tax rates, please specify a `taxOverride` of type `taxDate`.
-
getSalespersonCode
public java.lang.String getSalespersonCode()
Getter for salespersonCode Salesperson Code - The client application salesperson reference code.
-
setSalespersonCode
public void setSalespersonCode(java.lang.String value)
Setter for salespersonCode Salesperson Code - The client application salesperson reference code.
-
getCustomerCode
public java.lang.String getCustomerCode()
Getter for customerCode Customer Code - The client application customer reference code.
-
setCustomerCode
public void setCustomerCode(java.lang.String value)
Setter for customerCode Customer Code - The client application customer reference code.
-
getCustomerUsageType
public java.lang.String getCustomerUsageType()
Getter for customerUsageType Customer Usage Type - The client application customer or usage type. For a list of available usage types, see `/api/v2/definitions/entityusecodes`.
-
setCustomerUsageType
public void setCustomerUsageType(java.lang.String value)
Setter for customerUsageType Customer Usage Type - The client application customer or usage type. For a list of available usage types, see `/api/v2/definitions/entityusecodes`.
-
getDiscount
public java.math.BigDecimal getDiscount()
Getter for discount Discount - The discount amount to apply to the document. This value will be applied only to lines that have the `discounted` flag set to true. If no lines have `discounted` set to true, this discount cannot be applied.
-
setDiscount
public void setDiscount(java.math.BigDecimal value)
Setter for discount Discount - The discount amount to apply to the document. This value will be applied only to lines that have the `discounted` flag set to true. If no lines have `discounted` set to true, this discount cannot be applied.
-
getPurchaseOrderNo
public java.lang.String getPurchaseOrderNo()
Getter for purchaseOrderNo Purchase Order Number for this document. This is required for single use exemption certificates to match the order and invoice with the certificate.
-
setPurchaseOrderNo
public void setPurchaseOrderNo(java.lang.String value)
Setter for purchaseOrderNo Purchase Order Number for this document. This is required for single use exemption certificates to match the order and invoice with the certificate.
-
getExemptionNo
public java.lang.String getExemptionNo()
Getter for exemptionNo Exemption Number for this document. If you specify an exemption number for this document, this document will be considered exempt, and you may be asked to provide proof of this exemption certificate in the event that you are asked by an auditor to verify your exemptions.
-
setExemptionNo
public void setExemptionNo(java.lang.String value)
Setter for exemptionNo Exemption Number for this document. If you specify an exemption number for this document, this document will be considered exempt, and you may be asked to provide proof of this exemption certificate in the event that you are asked by an auditor to verify your exemptions.
-
getAddresses
public AddressesModel getAddresses()
Getter for addresses Default addresses for all lines in this document. These addresses are the default values that will be used for any lines that do not have their own address information. If you specify addresses for a line, then no default addresses will be loaded for that line.
-
setAddresses
public void setAddresses(AddressesModel value)
Setter for addresses Default addresses for all lines in this document. These addresses are the default values that will be used for any lines that do not have their own address information. If you specify addresses for a line, then no default addresses will be loaded for that line.
-
getParameters
public java.util.HashMap<java.lang.String,java.lang.String> getParameters()
Getter for parameters Special parameters for this transaction. To get a full list of available parameters, please use the `/api/v2/definitions/parameters` endpoint.
-
setParameters
public void setParameters(java.util.HashMap<java.lang.String,java.lang.String> value)
Setter for parameters Special parameters for this transaction. To get a full list of available parameters, please use the `/api/v2/definitions/parameters` endpoint.
-
getReferenceCode
public java.lang.String getReferenceCode()
Getter for referenceCode Customer-provided Reference Code with information about this transaction. This field could be used to reference the original document for a return invoice, or for any other reference purpose.
-
setReferenceCode
public void setReferenceCode(java.lang.String value)
Setter for referenceCode Customer-provided Reference Code with information about this transaction. This field could be used to reference the original document for a return invoice, or for any other reference purpose.
-
getReportingLocationCode
public java.lang.String getReportingLocationCode()
Getter for reportingLocationCode Sets the sale location code (Outlet ID) for reporting this document to the tax authority. This value is used by Avalara Managed Returns to group documents together by reporting locations for tax authorities that require location-based reporting.
-
setReportingLocationCode
public void setReportingLocationCode(java.lang.String value)
Setter for reportingLocationCode Sets the sale location code (Outlet ID) for reporting this document to the tax authority. This value is used by Avalara Managed Returns to group documents together by reporting locations for tax authorities that require location-based reporting.
-
getCommit
public java.lang.Boolean getCommit()
Getter for commit Causes the document to be committed if true. This option is only applicable for invoice document types, not orders.
-
setCommit
public void setCommit(java.lang.Boolean value)
Setter for commit Causes the document to be committed if true. This option is only applicable for invoice document types, not orders.
-
getBatchCode
public java.lang.String getBatchCode()
Getter for batchCode BatchCode for batch operations.
-
setBatchCode
public void setBatchCode(java.lang.String value)
Setter for batchCode BatchCode for batch operations.
-
getTaxOverride
public TaxOverrideModel getTaxOverride()
Getter for taxOverride Specifies a tax override for the entire document
-
setTaxOverride
public void setTaxOverride(TaxOverrideModel value)
Setter for taxOverride Specifies a tax override for the entire document
-
getCurrencyCode
public java.lang.String getCurrencyCode()
Getter for currencyCode The three-character ISO 4217 currency code for this transaction.
-
setCurrencyCode
public void setCurrencyCode(java.lang.String value)
Setter for currencyCode The three-character ISO 4217 currency code for this transaction.
-
getServiceMode
public ServiceMode getServiceMode()
Getter for serviceMode Specifies whether the tax calculation is handled Local, Remote, or Automatic (default). This only applies when using an AvaLocal server.
-
setServiceMode
public void setServiceMode(ServiceMode value)
Setter for serviceMode Specifies whether the tax calculation is handled Local, Remote, or Automatic (default). This only applies when using an AvaLocal server.
-
getExchangeRate
public java.math.BigDecimal getExchangeRate()
Getter for exchangeRate Currency exchange rate from this transaction to the company base currency. This only needs to be set if the transaction currency is different than the company base currency. It defaults to 1.0.
-
setExchangeRate
public void setExchangeRate(java.math.BigDecimal value)
Setter for exchangeRate Currency exchange rate from this transaction to the company base currency. This only needs to be set if the transaction currency is different than the company base currency. It defaults to 1.0.
-
getExchangeRateEffectiveDate
public java.util.Date getExchangeRateEffectiveDate()
Getter for exchangeRateEffectiveDate Effective date of the exchange rate.
-
setExchangeRateEffectiveDate
public void setExchangeRateEffectiveDate(java.util.Date value)
Setter for exchangeRateEffectiveDate Effective date of the exchange rate.
-
getPosLaneCode
public java.lang.String getPosLaneCode()
Getter for posLaneCode Sets the Point of Sale Lane Code sent by the User for this document.
-
setPosLaneCode
public void setPosLaneCode(java.lang.String value)
Setter for posLaneCode Sets the Point of Sale Lane Code sent by the User for this document.
-
getBusinessIdentificationNo
public java.lang.String getBusinessIdentificationNo()
Getter for businessIdentificationNo VAT business identification number for the customer for this transaction. This number will be used for all lines in the transaction, except for those lines where you have defined a different business identification number. 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(java.lang.String value)
Setter for businessIdentificationNo VAT business identification number for the customer for this transaction. This number will be used for all lines in the transaction, except for those lines where you have defined a different business identification number. 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.
-
getIsSellerImporterOfRecord
public java.lang.Boolean getIsSellerImporterOfRecord()
Getter for isSellerImporterOfRecord Specifies if the Transaction has the seller as IsSellerImporterOfRecord.
-
setIsSellerImporterOfRecord
public void setIsSellerImporterOfRecord(java.lang.Boolean value)
Setter for isSellerImporterOfRecord Specifies if the Transaction has the seller as IsSellerImporterOfRecord.
-
getDescription
public java.lang.String getDescription()
Getter for description User-supplied description for this transaction.
-
setDescription
public void setDescription(java.lang.String value)
Setter for description User-supplied description for this transaction.
-
getEmail
public java.lang.String getEmail()
Getter for email User-supplied email address relevant for this transaction.
-
setEmail
public void setEmail(java.lang.String value)
Setter for email User-supplied email address relevant for this transaction.
-
getDebugLevel
public TaxDebugLevel getDebugLevel()
Getter for debugLevel If the user wishes to request additional debug information from this transaction, specify a level higher than `normal`.
-
setDebugLevel
public void setDebugLevel(TaxDebugLevel value)
Setter for debugLevel If the user wishes to request additional debug information from this transaction, specify a level higher than `normal`.
-
toString
public java.lang.String toString()
Returns a JSON string representation of CreateMultiCompanyTransactionModel- Overrides:
toStringin classjava.lang.Object
-
-