TaxLineItemRequest Class
Namespace
TaxLineItemRequest Constructors
The TaxLineItemRequest class includes these constructors.
TaxLineItemRequest(addresses, amount, description, productCode, quantity, lineNumber, taxCode, effectiveDate)
Signature
global TaxLineItemRequest(commercetax.LineTaxAddressesRequest addresses, Double amount, String description, String productCode, Double quantity, String lineNumber, String taxCode, Datetime effectiveDate)
1commercetax.TaxLineItemRequest, newinstance, [commercetax.LineTaxAddressesRequest, Double, String, String, Double, String, String, Datetime], commercetax.TaxLineItemRequestParameters
- addresses
- Type: LineTaxAddressesRequest
- Information about the addresses applied to each line item in a tax calculation request.
- amount
- Type: Double
- Total amount (in a given currency) represented by a line item sent for tax calculation.
- description
- Type: String
- User-defined description for a tax line item.
- productCode
- Type: String
- Catalog code for the product represented by the tax line item.
- quantity
- Type: Double
- Number of units of a given product that the tax line item represents.
- lineNumber
- Type: String
- Unique number used to identify a tax line item.
- taxCode
- Type: String
- Code used to identify how tax is calculated for a tax line item.
- effectiveDate
- Type: Datetime
- This is a user-defined date used for reporting only. For negative invoice lines, this parameter represents the invoice date from the original invoice. In other cases, it represents the date when the tax transaction takes effect on the line item. The previous tax transaction type is always Debit for negative invoice lines.
TaxLineItemRequest Properties
The TaxLineItemRequest class includes these properties.
customTaxAttributes
Signature
global commercetax.TaxLineItemRequest customTaxAttributes {get; set;}
Property Value
Type: Map<String, Object>
effectiveDate
Signature
global Datetime effectiveDate {get; set;}
Property Value
Type: Datetime
referenceDocumentCode
For example, a referenceDocumentCode parameter value 3ttxx00000004Bh_Debit-4wAxx0000000001EAA indicates 3ttxx00000004Bh is the original invoice ID and 4wAxx0000000001EAA is the tax engine ID. The previous tax transaction type is always Debit for negative invoice lines.
Signature
global String referenceDocumentCode {get; set;}
Property Value
Type: String
TaxLineItemRequest Methods
The TaxLineItemRequest class includes these methods.
equals(obj)
Signature
global Boolean equals(Object obj)
Parameters
- obj
- Type: Object
- External object whose key is to be validated.
Return Value
Type: Boolean
hashCode()
Signature
global Integer hashCode()
Return Value
Type: Integer