---
schema_version: "1"
id: 76b6aa021ac8767e92bf836f80dc66f36d68efdee9d501f462b5d2226abe1065
title: LineTaxAddressesRequest Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_commercetax_LineTaxAddressesRequest.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_LineTaxAddressesRequest.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4fa457afe37902afa8f88e8b2a75dd8124b6a32b70b5da6f74e713c67cfb81c9
description: Stores details of the addresses applied per line item in a tax calculation request.Learn more about the constructors available with the LineTaxAddressesRequest class.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.Learn more about the available properties with the LineTaxAddressesRequest 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.Learn more about the available methods with the LineTaxAddressesRequest class.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.Maintains the integrity of lists of type LineTaxAddressesRequest by determining the uniquness of the external object records in a list.Converts a value to a string.
---
# LineTaxAddressesRequest Class

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

## 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.")

- **[LineTaxAddressesRequest Constructors](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_LineTaxAddressesRequest.htm#apex_commercetax_LineTaxAddressesRequest_constructors)**  
    Learn more about the constructors available with the LineTaxAddressesRequest class.
- **[LineTaxAddressesRequest Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_LineTaxAddressesRequest.htm#apex_commercetax_LineTaxAddressesRequest_properties)**  
    Learn more about the available properties with the LineTaxAddressesRequest class.
- **[LineTaxAddressesRequest Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_LineTaxAddressesRequest.htm#apex_commercetax_LineTaxAddressesRequest_methods)**  
    Learn more about the available methods with the LineTaxAddressesRequest class.

## LineTaxAddressesRequest Constructors

Learn more about the constructors available with the LineTaxAddressesRequest class.

The LineTaxAddressesRequest class includes these constructors.

- **[LineTaxAddressesRequest(shipFrom, shipTo, soldTo, billTo, taxEngineAddress)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_LineTaxAddressesRequest.htm#apex_commercetax_LineTaxAddressesRequest_ctor)**  
    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.

### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressesRequest.htm#apex_class_commercetax_TaxAddressesRequest "Contains methods to get and set tax address values.") Address where a line item was shipped from.
- **shipTo**: [TaxAddressRequest](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressesRequest.htm#apex_class_commercetax_TaxAddressesRequest "Contains methods to get and set tax address values.") Address where a line item is shipped to.
- **soldTo**: [TaxAddressRequest](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressesRequest.htm#apex_class_commercetax_TaxAddressesRequest "Contains methods to get and set tax address values.") Address of the line item's buyer.
- **billTo**: [TaxAddressRequest](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressesRequest.htm#apex_class_commercetax_TaxAddressesRequest "Contains methods to get and set tax address values.") Person or group who was billed for the line item.
- **taxEngineAddress**: [TaxAddressRequest](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressesRequest.htm#apex_class_commercetax_TaxAddressesRequest "Contains methods to get and set tax address values.") 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_LineTaxAddressesRequest.htm#apex_commercetax_LineTaxAddressesRequest_billTo)**  
    The Bill To address for a line item.
- **[shipFrom](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_LineTaxAddressesRequest.htm#apex_commercetax_LineTaxAddressesRequest_shipFrom)**  
    The Ship From address for a line item.
- **[shipTo](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_LineTaxAddressesRequest.htm#apex_commercetax_LineTaxAddressesRequest_shipTo)**  
    The Ship To address for a line item.
- **[soldTo](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_LineTaxAddressesRequest.htm#apex_commercetax_LineTaxAddressesRequest_soldTo)**  
    The Sold To address for a line item.

### billTo

The Bill To address for a line item.

#### Signature

global commercetax.TaxAddressRequest billTo {get; set;}

#### Property Value

Type: [TaxAddressRequest](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressesRequest.htm#apex_class_commercetax_TaxAddressesRequest "Contains methods to get and set tax address values.")

### shipFrom

The Ship From address for a line item.

#### Signature

global commercetax.TaxAddressRequest shipFrom {get; set;}

#### Property Value

Type: [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

global commercetax.TaxAddressRequest shipTo {get; set;}

#### Property Value

Type: [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

Type: [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.")

## LineTaxAddressesRequest Methods

Learn more about the available methods with the LineTaxAddressesRequest class.

The LineTaxAddressesRequest class includes these methods.

- **[equals(obj)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_LineTaxAddressesRequest.htm#apex_commercetax_LineTaxAddressesRequest_equals)**  
    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.
- **[hashCode()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_LineTaxAddressesRequest.htm#apex_commercetax_LineTaxAddressesRequest_hashCode)**  
    Maintains the integrity of lists of type LineTaxAddressesRequest by determining the uniquness of the external object records in a list.
- **[toString()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_LineTaxAddressesRequest.htm#apex_commercetax_LineTaxAddressesRequest_toString)**  
    Converts a value to a string.

### 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](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 LineTaxAddressesRequest by determining the uniquness 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.")