Newer Version Available

This content describes an older version of this product. View Latest

TaxEngines Interface

Your tax engine implements this interface. It contains methods for calculating tax, clearing in-memory entities from the previous call, and clearing legal references from the previous call.

Namespace

blng

TaxEngines Methods

The following are methods for TaxEngines.

resetSObjectListofIds()

Resets in-memory IDs (such as credit note IDs, debit note IDs, etc.) to null for the next run.

Signature

global static Void resetSObjectListofIds()

Return Value

Type: Void

resetLegalEntityReferences()

Sets the in-memory list of legal entities to null for the next run.

Signature

global static Void resetLegalEntityReferences()

Return Value

Type: Void

calculateTax(taxParametersInstance)

Returns the calculated tax for the specified taxParametersInstance.

Signature

global static Map<Id,TaxResults> calculateTax(TaxParameters taxParametersInstance)

Parameters

taxParametersInstance
Type: TaxParameters

Return Value

Type: Map<Id,TaxResults>

Return Map<Id, blng.TaxResults>