HeaderTaxAddressesRequest Class

Captures the address values that are applicable for the quote or order transaction.

Namespace

CommerceTax

HeaderTaxAddressesRequest Constructors

Learn more about the constructors available with the HeaderTaxAddressesRequest class.

The HeaderTaxAddressesRequest class includes these constructors.

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

Constructor for initializing the required addresses of the tax addresses request such as the ship from, ship to, sold to, 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 HeaderTaxAddressesRequest(commercetax.TaxAddressRequest shipFrom, commercetax.TaxAddressRequest shipTo, commercetax.TaxAddressRequest soldTo, commercetax.TaxAddressRequest billTo, commercetax.TaxAddressRequest taxEngineAddress)

Parameters

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

HeaderTaxAddressesRequest Properties

Learn more about the available properties with the HeaderTaxAddressesRequest class.

The HeaderTaxAddressesRequest class includes these properties.

billTo

Specifies the billTo address for a line item on which tax was calculated.

Signature

global commercetax.TaxAddressRequest billTo {get; set;}

Property Value

Type: TaxAddressRequest

shipFrom

Specifies the shipFrom address for a line item on which tax was calculated.

Signature

global commercetax.TaxAddressRequest shipFrom {get; set;}

Property Value

Type: TaxAddressRequest

shipTo

Specifies the shipTo address for a line item on which tax was calculated.

Signature

global commercetax.TaxAddressRequest shipTo {get; set;}

Property Value

Type: TaxAddressRequest

soldTo

Specifies the soldTo address for a line item on which tax was calculated.

Signature

global commercetax.TaxAddressRequest soldTo {get; set;}

Property Value

Type: TaxAddressRequest

taxEngineAddress

Address used by the tax engine when calculating tax for a line item.

Signature

global commercetax.TaxAddressRequest taxEngineAddress {get; set;}

Property Value

Type: TaxAddressRequest

HeaderTaxAddressesRequest Methods

Learn more about the available methods with the HeaderTaxAddressesRequest class.

The HeaderTaxAddressesRequest class includes these methods.

equals(obj)

Maintains the integrity of lists of type HeaderTaxAddressesRequest 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 TaxAddressesRequest by determining the uniqueness of the external objects 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