Manage the communication between Salesforce and an external tax engine.
The CommerceTax namespace includes these classes.
-
AbstractTransactionResponse Class
Abstract class that contains methods for setting tax fields based on the external tax provider's response. Response classes that extend AbstractTransactionResponse inherit these methods. -
AddressesResponse Class
Sets the tax address fields based on a response from the external tax engine. Contains setter methods for the Ship From, Ship To, and Sold To addresses. -
AddressResponse Class
Contains a location code sent from the external tax engine. -
AmountDetailsResponse Class
Sets tax amount fields based on a response from the external tax engine. -
CalculateTaxRequest Class
Represents a request to an external tax engine to calculate tax. Extends the TaxTransactionRequest class and is the top-level request class. -
CalculateTaxResponse Class
Sets the values of the tax transaction following a response from the external tax engine. Extends the AbstractTransactionResponse class and is the top-level response class. -
CalculateTaxType Enum
Shows whether a tax calculation request is for estimated or actual tax. -
CustomTaxAttributesResponse Class
Sets additional data or custom attributes in the tax response. -
ErrorResponse Class
Use to respond with an error after receiving errors from the PaymentGatewayAdapter methods of the CommercePayments namespace, such as request-forbidden responses, custom validation errors, or expired API tokens. -
HeaderTaxAddressesRequest Class
Captures the address values that are applicable for the quote or order transaction. -
ImpositionResponse Class
Stores details of tax impositions from the external tax engine. -
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. -
LineItemResponse Class
Response class that stores details of a list of one or more line items on which the tax engine has calculated tax. -
LineTaxAddressesRequest Class
Stores details of the addresses applied per line item in a tax calculation request. -
RequestType Enum
Shows the type of tax request made to the tax engine. -
ResultCode Enum
Code that represents the results of a tax request made to the tax engine. -
RuleDetailsResponse Class
Contains details about the tax rules used for tax calculation. -
TaxAddressesRequest Class
Contains methods to get and set tax address values. -
TaxAddressRequest Class
Contains address details used for tax calculation. -
TaxApiException Class
Contains details about any exceptions during the tax calculation process. Extends the ApexBaseException class. -
TaxCustomerDetailsRequest Class
Contains customer details used in tax calculation. -
TaxDetailsResponse Class
Stores details of the tax values that an external tax engine calculates in response to a tax calculation request. -
TaxEngineAdapter Interface
Retrieves information from the tax engine and evaluates the information to define tax details. -
TaxEngineContext Class
Wrapper class that stores details about the type of a tax calculation request. -
TaxLineItemRequest Class
Contains line item details of a tax request. -
TaxSellerDetailsRequest Class
Contains tax code details used in the tax calculation request. -
TaxTransactionRequest Class
Abstract class for storing customer details used in tax calculation and estimation requests. -
TaxTransactionStatus Enum
Shows whether the tax transaction has been committed or uncommitted. -
TaxTransactionType Enum
Shows whether the tax transaction is for a credit or debit transaction.