TaxCustomerDetailsRequest Class

Contains customer details used in tax calculation.

CommerceTax

Learn more about the available constructors with the TaxCustomerDetailsRequest class.

The TaxCustomerDetailsRequest class includes these constructors.

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

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

  • 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.

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.

  • code

    Tax code used during tax calculation.

  • exemptionNo

    Number used to qualify a line item for tax exemption.

  • exemptionReason

    Reason why a line item qualifies for tax exemption.

  • taxCertificateId

    ID of a tax certificate used for tax calculation.

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

global String accountId {get; set;}

Type: String

Tax code used during tax calculation.

global String code {get; set;}

Type: String

Number used to qualify a line item for tax exemption.

global String exemptionNo {get; set;}

Type: String

Reason why a line item qualifies for tax exemption.

global String exemptionReason {get; set;}

Type: String

ID of a tax certificate used for tax calculation.

global String taxCertificateId {get; set;}

Type: String

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.

  • hashCode()

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