Newer Version Available

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

TaxResults Class

Contains a list of setter methods to populate the data returned from a tax callout. The data is passed back to Salesforce Billing from the tax connector.

Namespace

blng

TaxResults Methods

The following are methods for TaxResults.

setRate(rate)

Sets the tax rate to the percentage specified by the parameter.

Signature

global static void setRate(Decimal rate)

Parameters

rate
Type: Decimal

Return Value

Type: void

setTax(tax)

Sets the tax amount.

Signature

global static void setTax(Decimal tax)

Parameters

tax
Type: Decimal
Assigns tax.

Return Value

Type: void

setIsSuccess(isSuccess)

Sets isSuccess to true if tax calculation was successful, otherwise sets isSuccess to false.

Signature

global static void setIsSuccess(Boolean isSuccess)

Parameters

isSuccess
Type: Boolean

Return Value

Type: void

setId(id)

Sets the ID of the entity where tax was calculated.

Signature

global static void setId(String id)

Parameters

id
Type: String

Return Value

Type: void

setSummary(summary)

If tax isn't calculated successfully, assign error message to the summary.

Signature

global static void setSummary(String summary)

Parameters

summary
Type: String

Return Value

Type: void