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.
-
Returns the ID of the entity where tax was calculated.
-
Returns the tax rate.
-
Returns the summary that contains the error message.
-
Returns the tax amount.
-
Returns
trueif tax calculation was successful orfalseif tax calculation fails. -
Sets the tax rate to the percentage specified by the parameter.
-
Sets the tax amount.
-
Sets
isSuccessto true if tax calculation was successful, otherwise sets isSuccess to false. -
Sets the ID of the entity where tax was calculated.
-
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