TaxAddressRequest Class

Contains address details used for tax calculation.

CommerceTax

Learn more about the available constructors with the TaxAddressRequest class.

The TaxAddressRequest class includes these constructors.

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

global TaxAddressRequest(String city, String country, Double latitude, Double longitude, String postalCode, String state, String street, String locationCode)

  • city:

    Type: String

    City used in an address, which is required for tax calculation.

  • country:

    Type: String

    Country used in an address, which is required for tax calculation.

  • latitude:

    Type: Double

    Latitude used in an address, which is required for tax calculation.

  • longitude:

    Type: Double

    Longitude used in an address, which is required for tax calculation.

  • postalCode:

    Type: String

    Postal code used in an address, which is required for tax calculation.

  • state:

    Type: String

    State used in an address, which is required for tax calculation.

  • street:

    Type: String

    Street used in an address, which is required for tax calculation.

  • locationCode:

    Type: String

    Location code used in an address, which is required for tax calculation.

Learn more about the available properties with the TaxAddressRequest class.

The TaxAddressRequest class includes these properties.

  • city

    City used in an address, which is required for tax calculation.

  • country

    Country used in an address, which is required for tax calculation.

  • countryCode

    Country code used in an address, which is required for tax calculation.

  • latitude

    Latitude used in an address, which is required for tax calculation.

  • locationCode

    Location code used in an address, which is required for tax calculation.

  • longitude

    Longitude used in an address, which is required for tax calculation.

  • postalCode

    Postal code used in an address, which is required for tax calculation.

  • state

    State used in an address, which is required for tax calculation.

  • stateCode

    State code used in an address, which is required for tax calculation.

  • street

    Street used in an address, which is required for tax calculation.

City used in an address, which is required for tax calculation.

global String city {get; set;}

Type: String

Country used in an address, which is required for tax calculation.

global String country {get; set;}

Type: String

Country code used in an address, which is required for tax calculation.

global String countryCode {get; set;}

Type: String

Latitude used in an address, which is required for tax calculation.

global Double latitude {get; set;}

Type: Double

Location code used in an address, which is required for tax calculation.

global String locationCode {get; set;}

Type: String

Longitude used in an address, which is required for tax calculation.

global Double longitude {get; set;}

Type: Double

Postal code used in an address, which is required for tax calculation.

global String postalCode {get; set;}

Type: String

State used in an address, which is required for tax calculation.

global String state {get; set;}

Type: String

State code used in an address, which is required for tax calculation.

global String stateCode {get; set;}

Type: String

Street used in an address, which is required for tax calculation.

global String street {get; set;}

Type: String

Learn more about the available methods with the TaxAddressRequest class.

The TaxAddressRequest class includes these methods.

  • equals(obj)

    Maintains the integrity of lists of type TaxAddressRequest 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 TaxAddressRequest by determining the uniqueness of the external object in a list.

  • toString()

    Converts a date to a string.

Maintains the integrity of lists of type TaxAddressRequest 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 TaxAddressRequest by determining the uniqueness of the external object in a list.

global Integer hashCode()

Type: Integer

Converts a date to a string.

global String toString()

Type: String