HeaderTaxAddressesRequest Class

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

CommerceTax

Learn more about the constructors available with the HeaderTaxAddressesRequest class.

The HeaderTaxAddressesRequest class includes these constructors.

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.

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

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.

  • shipFrom

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

  • shipTo

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

  • soldTo

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

  • taxEngineAddress

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

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

global commercetax.TaxAddressRequest billTo {get; set;}

Type: TaxAddressRequest

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

global commercetax.TaxAddressRequest shipFrom {get; set;}

Type: TaxAddressRequest

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

global commercetax.TaxAddressRequest shipTo {get; set;}

Type: TaxAddressRequest

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

global commercetax.TaxAddressRequest soldTo {get; set;}

Type: TaxAddressRequest

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

global commercetax.TaxAddressRequest taxEngineAddress {get; set;}

Type: TaxAddressRequest

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.

  • hashCode()

    Maintains the integrity of lists of type TaxAddressesRequest by determining the uniqueness of the external objects in a list.

  • toString()

    Converts a value to a string.

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.

global Boolean equals(Object obj)

  • obj:

    Type:

    Object External object whose key is to be validated.

Type: Boolean

Maintains the integrity of lists of type TaxAddressesRequest by determining the uniqueness of the external objects in a list.

global Integer hashCode()

Type: Integer

Converts a value to a string.

global String toString()

Type: String