ImpositionResponse Class
Stores details of tax impositions from the external tax engine.
In this mock adapter example, the adapter sets the TaxDetailsResponse.setImposition() 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 ImpositionResponse and sets its SubType and Type values, and then assigns it to TaxDetailsResponse.
-
Learn more about the available methods with the
ImpositionResponseclass.
Learn more about the available methods with the ImpositionResponse class.
The ImpositionResponse class includes these methods.
-
Sets the ID field of the
ImpositionResponseclass. -
Sets the Name field of the
ImpositionResponseclass. -
Sets the SubType field of the
ImpositionResponseclass. -
Sets the Type field of the
ImpositionResponseclass.
Sets the ID field of the ImpositionResponse class.
global void setId(String id)
-
id:
Type: String
User-defined ID value used
for referencing the tax imposition.
Type: void
Sets the Name field of the ImpositionResponse class.
global void setName(String name)
-
name:
Type: String
Optional user-defined name for the tax imposition response.
Type: void
Sets the SubType field of the ImpositionResponse class.
global void setSubType(String subType)
-
subType:
Type: String
Many tax calculation organizations use types and subtypes to categorize their tax imposition procedures.
If the tax engine you use follows this process, set the subtype with this parameter.
Type: void
Sets the Type field of the ImpositionResponse class.
public void setType(String type)
-
type:
Type: String
Many tax calculation organizations use types and subtypes to categorize their tax imposition procedures.
If the tax engine you use follows this process, set the type with this parameter.
Type: void