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.

blng

The following are methods for TaxResults.

  • getId()

    Returns the ID of the entity where tax was calculated.

  • getRate()

    Returns the tax rate.

  • getSummary()

    Returns the summary that contains the error message.

  • getTax()

    Returns the tax amount.

  • isSuccess

    Returns true if tax calculation was successful or false if tax calculation fails.

  • setRate(rate)

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

  • setTax(tax)

    Sets the tax amount.

  • setIsSuccess(isSuccess)

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

  • setId(id)

    Sets the ID of the entity where tax was calculated.

  • setSummary(summary)

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

Returns the ID of the entity where tax was calculated.

global static void getId()

id: Type: String

Type: void

Returns the tax rate.

global static void getRate()

rate: Type: Decimal

Type: void

Returns the summary that contains the error message.

global static void getSummary()

summary: Type: String

Type: void

Returns the tax amount.

global static void getTax()

tax: Type: Decimal

Type: void

Returns true if tax calculation was successful or false if tax calculation fails.

global static void isSuccess()

isSuccess: Type: Boolean

Type: void

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

global static void setRate(Decimal rate)

rate: Type: Decimal

Type: void

Sets the tax amount.

global static void setTax(Decimal tax)

tax: Type: Decimal Assigns tax.

Type: void

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

global static void setIsSuccess(Boolean isSuccess)

isSuccess: Type: Boolean

Type: void

Sets the ID of the entity where tax was calculated.

global static void setId(String id)

id: Type: String

Type: void

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

global static void setSummary(String summary)

summary: Type: String

Type: void