Class MultiCompanyLineItemModel
java.lang.Object
net.avalara.avatax.rest.client.models.MultiCompanyLineItemModel
Represents one line item in a multi company transaction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for addresses The addresses to use for this transaction line.Getter for amount Total amount for this lineGetter for businessIdentificationNo VAT business identification number for the customer for this line item.Getter for companyCode Company Code - Specify the code of the company for this line of transaction.Getter for customerUsageType Customer Usage Type - The client application customer or usage type.Getter for description Item description.Getter for discounted True if the document discount should be applied to this lineGetter for exemptionCode Exemption number for this lineGetter for itemCode Item Code (SKU)Getter for number Line number within this documentGetter for parameters Special parameters that apply to this line within this transaction.Getter for quantity Quantity of items in this linegetRef1()
Getter for ref1 Reference 1 - Client specific reference fieldgetRef2()
Getter for ref2 Reference 2 - Client specific reference fieldGetter for reportingLocationCode Sets the sale location code (Outlet ID) for reporting this document to the tax authority.Getter for revenueAccount Revenue AccountGetter for taxCode Tax Code - System or Custom Tax Code.Getter for taxIncluded Indicates if line has Tax Included; defaults to falseGetter for taxOverride Specifies a tax override for this linevoid
setAddresses
(AddressesModel value) Setter for addresses The addresses to use for this transaction line.void
setAmount
(BigDecimal value) Setter for amount Total amount for this linevoid
Setter for businessIdentificationNo VAT business identification number for the customer for this line item.void
setCompanyCode
(String value) Setter for companyCode Company Code - Specify the code of the company for this line of transaction.void
setCustomerUsageType
(String value) Setter for customerUsageType Customer Usage Type - The client application customer or usage type.void
setDescription
(String value) Setter for description Item description.void
setDiscounted
(Boolean value) Setter for discounted True if the document discount should be applied to this linevoid
setExemptionCode
(String value) Setter for exemptionCode Exemption number for this linevoid
setItemCode
(String value) Setter for itemCode Item Code (SKU)void
Setter for number Line number within this documentvoid
setParameters
(HashMap<String, String> value) Setter for parameters Special parameters that apply to this line within this transaction.void
setQuantity
(BigDecimal value) Setter for quantity Quantity of items in this linevoid
Setter for ref1 Reference 1 - Client specific reference fieldvoid
Setter for ref2 Reference 2 - Client specific reference fieldvoid
setReportingLocationCode
(String value) Setter for reportingLocationCode Sets the sale location code (Outlet ID) for reporting this document to the tax authority.void
setRevenueAccount
(String value) Setter for revenueAccount Revenue Accountvoid
setTaxCode
(String value) Setter for taxCode Tax Code - System or Custom Tax Code.void
setTaxIncluded
(Boolean value) Setter for taxIncluded Indicates if line has Tax Included; defaults to falsevoid
setTaxOverride
(TaxOverrideModel value) Setter for taxOverride Specifies a tax override for this linetoString()
Returns a JSON string representation of MultiCompanyLineItemModel
-
Constructor Details
-
MultiCompanyLineItemModel
public MultiCompanyLineItemModel()
-
-
Method Details
-
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
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
Getter for reportingLocationCode Sets the sale location code (Outlet ID) for reporting this document to the tax authority. -
setReportingLocationCode
Setter for reportingLocationCode Sets the sale location code (Outlet ID) for reporting this document to the tax authority. -
getNumber
Getter for number Line number within this document -
setNumber
Setter for number Line number within this document -
getQuantity
Getter for quantity Quantity of items in this line -
setQuantity
Setter for quantity Quantity of items in this line -
getAmount
Getter for amount Total amount for this line -
setAmount
Setter for amount Total amount for this line -
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
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
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
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
Getter for customerUsageType Customer Usage Type - The client application customer or usage type. -
setCustomerUsageType
Setter for customerUsageType Customer Usage Type - The client application customer or usage type. -
getItemCode
Getter for itemCode Item Code (SKU) -
setItemCode
Setter for itemCode Item Code (SKU) -
getExemptionCode
Getter for exemptionCode Exemption number for this line -
setExemptionCode
Setter for exemptionCode Exemption number for this line -
getDiscounted
Getter for discounted True if the document discount should be applied to this line -
setDiscounted
Setter for discounted True if the document discount should be applied to this line -
getTaxIncluded
Getter for taxIncluded Indicates if line has Tax Included; defaults to false -
setTaxIncluded
Setter for taxIncluded Indicates if line has Tax Included; defaults to false -
getRevenueAccount
Getter for revenueAccount Revenue Account -
setRevenueAccount
Setter for revenueAccount Revenue Account -
getRef1
Getter for ref1 Reference 1 - Client specific reference field -
setRef1
Setter for ref1 Reference 1 - Client specific reference field -
getRef2
Getter for ref2 Reference 2 - Client specific reference field -
setRef2
Setter for ref2 Reference 2 - Client specific reference field -
getDescription
Getter for description Item description. This is required for SST transactions if an unmapped ItemCode is used. -
setDescription
Setter for description Item description. This is required for SST transactions if an unmapped ItemCode is used. -
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
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
Getter for taxOverride Specifies a tax override for this line -
setTaxOverride
Setter for taxOverride Specifies a tax override for this line -
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
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
Returns a JSON string representation of MultiCompanyLineItemModel
-