---
schema_version: "1"
id: 2d31039edfd02837655cbe96b0d49b678e8d0722077b2853f1181dcdfbdabac4
title: TaxSellerDetailsRequest Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_commercetax_TaxSellerDetailsRequest.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxSellerDetailsRequest.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c7bb79ad3c32b2333544ad93a25fd63502f6a073abf1adc9457d7e058f309e5c
description: Contains tax code details used in the tax calculation request.Learn more about the available constructors with the TaxSellerDetailsRequest class.Initializes the request for the tax seller details. This constructor is intended for test usage and throws an exception if used outside of the Apex test contextLearn more about the available properties with the TaxSellerDetailsRequest class.Tax code used for tax calculation.Learn more about the available methods with the TaxSellerDetailsRequest class.Maintains the integrity of lists of type TaxSellerDetailsRequest by determining the equality of the external objects in a list. This method is dynamic and based on the equals() method in Java.Maintains the integrity of lists of type TaxSellerDetailsRequest by determining the uniqueness of the external objects in a list.Converts a value to a string.
---
# TaxSellerDetailsRequest Class

Contains tax code details used in the 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.")

- **[TaxSellerDetailsRequest Constructors](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxSellerDetailsRequest.htm#apex_commercetax_TaxSellerDetailsRequest_constructors)**  
    Learn more about the available constructors with the TaxSellerDetailsRequest class.
- **[TaxSellerDetailsRequest Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxSellerDetailsRequest.htm#apex_commercetax_TaxSellerDetailsRequest_properties)**  
    Learn more about the available properties with the TaxSellerDetailsRequest class.
- **[TaxSellerDetailsRequest Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxSellerDetailsRequest.htm#apex_commercetax_TaxSellerDetailsRequest_methods)**  
    Learn more about the available methods with the TaxSellerDetailsRequest class.

## TaxSellerDetailsRequest Constructors

Learn more about the available constructors with the TaxSellerDetailsRequest class.

The TaxSellerDetailsRequest class includes these constructors.

- **[TaxSellerDetailsRequest(code)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxSellerDetailsRequest.htm#apex_commercetax_TaxSellerDetailsRequest_ctor)**  
    Initializes the request for the tax seller details. This constructor is intended for test usage and throws an exception if used outside of the Apex test context

### TaxSellerDetailsRequest(code)

Initializes the request for the tax seller details. This constructor is intended for test usage and throws an exception if used outside of the Apex test context

#### Signature

global TaxSellerDetailsRequest(String code)

#### Parameters

- **code**:
    
    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.")
    
    Tax code used
    
    for tax calculation.

## TaxSellerDetailsRequest Properties

Learn more about the available properties with the TaxSellerDetailsRequest class.

The TaxSellerDetailsRequest class includes these properties.

- **[code](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxSellerDetailsRequest.htm#apex_commercetax_TaxSellerDetailsRequest_code)**  
    Tax code used for tax calculation.

### code

Tax code used for tax calculation.

#### Signature

global String code {get; set;}

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

## TaxSellerDetailsRequest Methods

Learn more about the available methods with the TaxSellerDetailsRequest class.

The TaxSellerDetailsRequest class includes these methods.

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

### equals(obj)

Maintains the integrity of lists of type TaxSellerDetailsRequest by determining the equality of the external objects in a list. This method is dynamic and 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 TaxSellerDetailsRequest by determining the uniqueness of the external objects 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.")