JurisdictionResponse Class

Stores details from the external tax engine about the tax jurisdiction used in the tax calculation process. A tax jurisdiction represents a government entity that collects tax.

CommerceTax

In this mock adapter example, the adapter sets the TaxDetailsResponse.setJurisdiction() method parameter to null if the request’s document code indicates that the tax calculation didn’t require any exceptions. Otherwise, it creates an instance of JurisdictionResponse and sets its address values. Because this code represents a mock adapter, the example defines the address parameters directly. In a standard implementation, the jurisdiction’s setters receive values passed from the eternal tax engine.

Learn more about the available methods with the JurisdictionResponse class.

The JurisdictionResponse class includes these methods.

Sets the Country field of the JurisdictionResponse class.

global void setCountry(String country)

  • country:

    Type: String

    The country of the tax jurisdiction entity’s address.

Type: void

Sets the ID field of the JurisdictionResponse class.

global void setId(String id)

  • id:

    Type: String

    User-defined Id value used to reference

    the jurisdiction response.

Type: void

Sets the Level field of the JurisdictionResponse class.

global void setLevel(String level)

  • level:

    Type: String

    Level value used in the jurisdiction entity’s address.

Type: void

Sets the Name field of the JurisdictionResponse class.

global void setName(String name)

  • name:

    Type: String

    Optional user-defined name field for referencing the jurisdiction response.

Type: void

Sets the Region value of the JurisdictionResponse class.

global void setRegion(String region)

  • region:

    Type: String

    Region value used in the tax jurisdiction entity’s address.

Type: void

Sets the StateAssignedNumber field of the JurisdictionResponse class.

global void setStateAssignedNumber(String stateAssignedNo)

  • stateAssignedNo:

    Type: String

    State assigned number

    value of the tax jurisdiction entity’s address.

Type: void