Similar to standard Nextian helper methods enabling work order automation by defining automated tasks in work order templates, each billing system supported by the Nextian Billing Integration for Salesforce provides a dedicated helper APEX class named <Billing System Name>_AutomatedTask. This class includes methods that support automated integration with the corresponding billing system.
All helper methods take the parent work order, and the associated service as arguments.
These helper methods are typically combined with standard ones in work order templates. For example, AutomatedTask.StartService()
is typically followed by <Billing>_AutomatedTask.confirmOrder()
to:
StartService()
starts the service in Nextian/Salesforce.confirmOrder()
makes the service billable in the billing system.
For full details on available methods, it is recommended to examine the corresponding Apex classes directly.
For example, the following methods are available for Gotransverse billing system:
Helper Method | Description |
---|---|
Account management | |
GTV_AutomatedTask.createGtvAccount | Create customer account in GTV if the account does not exist yet. |
New service creation | |
GTV_AutomatedTask.createGtvOrder | Create a GTV order in DRAFT status, along with the corresponding agreement. |
GTV_AutomatedTask.confirmGtvOrder | Start billing in GTV by confirming the GTV order (typically, at this stage the service has already been started in Salesforce). |
Service add-on changes | |
GTV_AutomatedTask. | Create a change order in GTV to create new service add-ons. |
GTV_AutomatedTask. | Confirm change order in GTV to create new service add-ons. |
GTV_AutomatedTask. | Deactivate canceled service add-ons in GTV. |
Service cancellations | |
GTV_AutomatedTask.cancelGtvService | Cancel (deactivate) a service in GTV. |
Composite functions | |
GTV_AutomatedTask. | Creates GTV account (if non-existent), creates GTV order for the service and starts GTV service billing in a single transaction for simpler GTV integration workflows.This call combines the following into a single operation:
|
GTV_AutomatedTask. createChangeOrderAndUpdateServiceAddOnsOnGtv | Creates a change order in GTV, confirms the change, and deactivates canceled add-ons in a single transaction for simpler GTV integration workflows.This call combines the following into a single operation:
|
Additional classes/helper methods can be created as described here.