TaxEngineAdapter Interface
Retrieves and evaluates the details from a tax engine to define tax details.
You can extend the TaxEngineAdapter interface to define a custom tax adapter based on your requirements. Use the custom tax adapter with Billing services to implement standard tax.
Create a custom object and associated fields to store tax details, such as tax rate for a country. For example, create a custom object named CountryTaxRate with Country_Code and Tax_Rate fields. Create records to define the details for these fields.
-
processRequest(requestType)— TheprocessRequestmethod takes an instance ofTaxEngineContextclass and returns a response with the calculated tax details through theTaxDetailsResponseclass or an error response through theErrorResponseclass. -
TaxEngineAdapter Example Implementation
Refer to the example implementation of the
TaxEngineAdapterinterface to accept information from a tax engine and evaluate the information to define tax details. -
Tax Mappings for Invoices and Credits
You can extend and customize the existing tax interface by using custom metadata types and tax mappings. These customizations help you with unique business requirements such as the inclusion of specific data for accurate calculations and audits.
See Also