---
schema_version: "1"
id: e60884e4f8e2f4956661a687ec05635106c1e3efc5ab017d6355f8dd9a4c6f23
title: TaxAddressesRequest Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_commercetax_TaxAddressesRequest.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressesRequest.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 438ba554900fd6a9c932977834e70e7897d00395cbb84be0bd4d8f5dd972615d
description: Contains methods to get and set tax address values.Learn more about the available constructors with the TaxAddressesRequest class.Constructor for defining addresses for the tax addresses request. This constructor is intended for test usage and throws an exception if used outside of the Apex test context.Learn more about the available properties with the TaxAddressesRequest class.The Bill To address for a line item.The Ship From address for a line item.The Ship To address for a line item.The Sold To address for a line item.The Tax Engine Address for a line item.Learn more about the available methods with the TaxAddressesRequest class.Maintains the integrity of lists of type TaxAddressesRequest by determining the equality of external objects in a list. This method is dynamic and is based on the equals() method in Java.Maintains the integrity of lists of type TaxAddressesRequest by determining the uniqueness of the external object records in a list.Converts a value to a string.
---
# TaxAddressesRequest Class

Contains methods to get and set tax address values.

## Namespace

[CommerceTax](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_commercetax.htm "Manage the communication between Salesforce and an external tax engine.")

- **[TaxAddressesRequest Constructors](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressesRequest.htm#apex_commercetax_TaxAddressesRequest_constructors)**  
    Learn more about the available constructors with the TaxAddressesRequest class.
- **[TaxAddressesRequest Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressesRequest.htm#apex_commercetax_TaxAddressesRequest_properties)**  
    Learn more about the available properties with the TaxAddressesRequest class.
- **[TaxAddressesRequest Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressesRequest.htm#apex_commercetax_TaxAddressesRequest_methods)**  
    Learn more about the available methods with the TaxAddressesRequest class.

## TaxAddressesRequest Constructors

Learn more about the available constructors with the TaxAddressesRequest class.

The TaxAddressesRequest class includes these constructors.

- **[TaxAddressesRequest(shipFrom, shipTo, soldTo, billTo, taxEngineAddress)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressesRequest.htm#apex_commercetax_TaxAddressesRequest_ctor)**  
    Constructor for defining addresses for the tax addresses request. This constructor is intended for test usage and throws an exception if used outside of the Apex test context.

### TaxAddressesRequest(shipFrom, shipTo, soldTo, billTo, taxEngineAddress)

Constructor for defining addresses for the tax addresses request. This constructor is intended for test usage and throws an exception if used outside of the Apex test context.

#### Signature

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

#### Parameters

- **shipFrom**: [TaxAddressRequest](#apex_class_commercetax_TaxAddressesRequest "Contains methods to get and set tax address values.") The address where a line item was shipped from.
- **shipTo**: [TaxAddressRequest](#apex_class_commercetax_TaxAddressesRequest "Contains methods to get and set tax address values.") The address where a line item is shipped to.
- **soldTo**: [TaxAddressRequest](#apex_class_commercetax_TaxAddressesRequest "Contains methods to get and set tax address values.") The address of the line item's buyer.
- **billTo**: [TaxAddressRequest](#apex_class_commercetax_TaxAddressesRequest "Contains methods to get and set tax address values.") The person or group who was billed for the line item.
- **taxEngineAddress**: [TaxAddressRequest](#apex_class_commercetax_TaxAddressesRequest "Contains methods to get and set tax address values.") The address that the tax engine uses to calculate tax.

## TaxAddressesRequest Properties

Learn more about the available properties with the TaxAddressesRequest class.

The TaxAddressesRequest class includes these properties.

- **[billTo](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressesRequest.htm#apex_commercetax_TaxAddressesRequest_billTo)**  
    The Bill To address for a line item.
- **[shipFrom](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressesRequest.htm#apex_commercetax_TaxAddressesRequest_shipFrom)**  
    The Ship From address for a line item.
- **[shipTo](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressesRequest.htm#apex_commercetax_TaxAddressesRequest_shipTo)**  
    The Ship To address for a line item.
- **[soldTo](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressesRequest.htm#apex_commercetax_TaxAddressesRequest_soldTo)**  
    The Sold To address for a line item.
- **[taxEngineAddress](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressesRequest.htm#apex_commercetax_TaxAddressesRequest_taxEngineAddress)**  
    The Tax Engine Address for a line item.

### billTo

The Bill To address for a line item.

#### Signature

global commercetax.TaxAddressRequest billTo {get; set;}

#### Property Value

[TaxAddressRequest](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressRequest.htm#apex_class_commercetax_TaxAddressRequest "Contains address details used for tax calculation.")

### shipFrom

The Ship From address for a line item.

#### Signature

global commercetax.TaxAddressRequest shipFrom {get; set;}

#### Property Value

[TaxAddressRequest](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressRequest.htm#apex_class_commercetax_TaxAddressRequest "Contains address details used for tax calculation.")

### shipTo

The Ship To address for a line item.

#### Signature

public commercetax.TaxAddressRequest shipTo {get; set;}

#### Property Value

[TaxAddressRequest](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressRequest.htm#apex_class_commercetax_TaxAddressRequest "Contains address details used for tax calculation.")

### soldTo

The Sold To address for a line item.

#### Signature

global commercetax.TaxAddressRequest soldTo {get; set;}

#### Property Value

[TaxAddressRequest](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressRequest.htm#apex_class_commercetax_TaxAddressRequest "Contains address details used for tax calculation.")

### taxEngineAddress

The Tax Engine Address for a line item.

#### Signature

global commercetax.TaxAddressRequest taxEngineAddress {get; set;}

#### Property Value

[TaxAddressRequest](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressRequest.htm#apex_class_commercetax_TaxAddressRequest "Contains address details used for tax calculation.")

## TaxAddressesRequest Methods

Learn more about the available methods with the TaxAddressesRequest class.

The TaxAddressesRequest class includes these methods.

- **[equals(obj)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressesRequest.htm#apex_commercetax_TaxAddressesRequest_equals)**  
    Maintains the integrity of lists of type TaxAddressesRequest by determining the equality of external objects in a list. This method is dynamic and is based on the equals() method in Java.
- **[hashCode()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressesRequest.htm#apex_commercetax_TaxAddressesRequest_hashCode)**  
    Maintains the integrity of lists of type TaxAddressesRequest by determining the uniqueness of the external object records in a list.
- **[toString()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressesRequest.htm#apex_commercetax_TaxAddressesRequest_toString)**  
    Converts a value to a string.

### equals(obj)

Maintains the integrity of lists of type TaxAddressesRequest 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

### hashCode()

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

#### Signature

global Integer hashCode()

#### Return Value

Type: [Integer](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_integer.htm#apex_methods_system_integer "Contains methods for the Integer primitive data type.")

### toString()

Converts a value to a string.

#### Signature

global String toString()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")