Newer Version Available

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

TaxParameters Class

Contains a list of setters to populate the data needed for a tax calculation. The data is passed in the tax callout.

Namespace

blng

TaxParameters Methods

The following are methods for TaxParameters.

setSObjectListofIds(listOfSobjectIds)

Sets the list of IDs for objects that require tax calculation.

Signature

global static Void setSObjectListofIds(List<Id> listOfSobjectIds)

Parameters

listOfSobjectIds
Type: List<Id>

Return Value

Type: Void

setSObjectID(sObjectId)

Sets the ID of a single entity, if any.

Signature

global static void setSObjectID(Id sObjectId)

Parameters

sObjectId
Type: Id

Return Value

Type: void

setLegalEntityReferences(legalEntityReference)

Sets the legal entity.

Signature

global static void setLegalEntityReferences(String legalEntityReference)

Parameters

legalEntityReference
Type: String

Return Value

Type: void

setSObjectType(sObjectTypeInstance)

Sets the entity type to invoice, credit note, debit note, or order product.

Signature

global static void setSObjectType(SObjectType sObjectTypeInstance)

Parameters

sObjectTypeInstance
Type: SObjectType

Return Value

Type: void

setTaxMethod(taxMethod)

Sets the method to POST or GET.

Signature

global static void setTaxMethod(String taxMethod)

Parameters

taxMethod
Type: String

Return Value

Type: void

setIsCommitOnGetTax(isCommitOnGetTax)

Indicates whether the get method needs a POST in the same call.

Signature

global static Void setIsCommitOnGetTax(Boolean isCommitOnGetTax)

Parameters

isCommitOnGetTax
Type: Boolean

Return Value

Type: Void