LineTaxAddressesRequest Class

Stores details of the addresses applied per line item in a tax calculation request.

Namespace

CommerceTax

LineTaxAddressesRequest Constructors

Learn more about the constructors available with the LineTaxAddressesRequest class.

The LineTaxAddressesRequest class includes these constructors.

LineTaxAddressesRequest(shipFrom, shipTo, soldTo, billTo, taxEngineAddress)

Constructor for initializing the required addresses for a line item of the tax addresses request such as the ship to, ship from, and bill to addresses. This constructor is intended for test usage and throws an exception if used outside of the Apex test context.

Signature

global LineTaxAddressesRequest(commercetax.TaxAddressRequest shipFrom, commercetax.TaxAddressRequest shipTo, commercetax.TaxAddressRequest soldTo, commercetax.TaxAddressRequest billTo, commercetax.TaxAddressRequest taxEngineAddress)

Parameters

shipFrom
TaxAddressRequest
Address where a line item was shipped from.
shipTo
TaxAddressRequest
Address where a line item is shipped to.
soldTo
TaxAddressRequest
Address of the line item's buyer.
billTo
TaxAddressRequest
Person or group who was billed for the line item.
taxEngineAddress
TaxAddressRequest
Address that the tax engine uses to calculate tax.

LineTaxAddressesRequest Properties

Learn more about the available properties with the LineTaxAddressesRequest class.

The LineTaxAddressesRequest class includes these properties.

billTo

The Bill To address for a line item.

Signature

global commercetax.TaxAddressRequest billTo {get; set;}

Property Value

Type: TaxAddressRequest

shipFrom

The Ship From address for a line item.

Signature

global commercetax.TaxAddressRequest shipFrom {get; set;}

Property Value

Type: TaxAddressRequest

shipTo

The Ship To address for a line item.

Signature

global commercetax.TaxAddressRequest shipTo {get; set;}

Property Value

Type: TaxAddressRequest

soldTo

The Sold To address for a line item.

Signature

global commercetax.TaxAddressRequest soldTo {get; set;}

Property Value

Type: TaxAddressRequest

LineTaxAddressesRequest Methods

Learn more about the available methods with the LineTaxAddressesRequest class.

The LineTaxAddressesRequest class includes these methods.

equals(obj)

Maintains the integrity of lists of type LineTaxAddressesRequest by determining the equality of external objects in a list. This method is dynamic and is based on the equals() method in Java.

Signature

global Boolean equals(Object obj)

Parameters

obj
Type: Object
External object whose key is to be validated.

Return Value

Type: Boolean

hashCode()

Maintains the integrity of lists of type LineTaxAddressesRequest by determining the uniquness of the external object records in a list.

Signature

global Integer hashCode()

Return Value

Type: Integer

toString()

Converts a value to a string.

Signature

global String toString()

Return Value

Type: String