Salesforce Billing Standard Objects
TaxParameters Class
TaxResults Class
TaxEngines Interface
REST API for Converting Invoice Lines with Negative Balances
Previous Versions
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 true if tax calculation was successful or false if tax calculation fails.
Sets the tax rate to the percentage specified by the parameter.
Sets the tax amount.
Sets isSuccess to 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
1In case of GET Tax Call: Assign Invoiceline/Orderproduct Id
2In case of Post/Cancel Tax Call: Assign Invoice IdType: void
If tax isn’t calculated successfully, assign error message to the summary.
global static void setSummary(String summary)
summary: Type: String
Type: void