processRequest(requestType)

The processRequest method takes an instance of TaxEngineContext class and returns a response with the calculated tax details through the TaxDetailsResponse class or an error response through the ErrorResponse class.

Signature

global commercetax.TaxEngineResponse processRequest(commercetax.TaxEngineContext var1)

Parameters

var1
Type: TaxEngineContext
Wrapper class that stores information about the type of a tax calculation request.

Return Value

Type: TaxEngineResponse

Generic interface representing a response from a tax engine.