Newer Version Available

This content describes an older version of this product. View Latest

TaxCustomerDetailsRequest Class

Contains customer details used in tax calculation.

Namespace

CommerceTax

TaxCustomerDetailsRequest Constructors

Learn more about the available constructors with the TaxCustomerDetailsRequest class.

The TaxCustomerDetailsRequest class includes these constructors.

TaxCustomerDetailsRequest(accountId, code, exemptionNo, exemptionReason, taxCertificateId)

Initializes the TaxCustomerDetailsRequest object. This constructor is intended for test usage and throws an exception if used outside of the Apex test context.

Signature

global TaxCustomerDetailsRequest(String accountId, String code, String exemptionNo, String exemptionReason, String taxCertificateId)

Parameters

accountId
Type: String
The customer account ID for the line items sent for tax calculation.
code
Type: String
The tax code used during tax calculation.
exemptionNo
Type: String
The exemption number applied to any tax exempt line items.
exemptionReason
Type: String
The reason that certain line items are tax exempt.
taxCertificateId
Type: String
ID of the tax certificate used in tax calculation.

TaxCustomerDetailsRequest Properties

Learn more about the available properties with the TaxCustomerDetailsRequest class.

The TaxCustomerDetailsRequest class includes these properties.

accountId

Customer account that contains the line items sent for tax calculation.

Signature

global String accountId {get; set;}

Property Value

Type: String

code

Tax code used during tax calculation.

Signature

global String code {get; set;}

Property Value

Type: String

exemptionNo

Number used to qualify a line item for tax exemption.

Signature

global String exemptionNo {get; set;}

Property Value

Type: String

exemptionReason

Reason why a line item qualifies for tax exemption.

Signature

global String exemptionReason {get; set;}

Property Value

Type: String

taxCertificateId

ID of a tax certificate used for tax calculation.

Signature

global String taxCertificateId {get; set;}

Property Value

Type: String

TaxCustomerDetailsRequest Methods

Learn more about the available methods with the TaxCustomerDetailsRequest class.

The TaxCustomerDetailsRequest class includes these methods.

equals(obj)

Maintains the integrity of lists of type TaxCustomerDetailsRequest by determining the equality of 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

hashCode()

Maintains the integrity of lists of type TaxCustomerDetailsRequest 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