Table of contents
Overview
Z-Force Order Builder supports many of the Zuora APIs, and exposes them as "Apex Wrapper Methods." After installing the Z-Force 360 managed package in your Salesforce org, you will have access to global methods that serve as wrappers for the underlying Zuora APIs through the zApi class.
Audience
This section assumes that you has first-hand experience with development on the Force.com Platform. In addition, you should be familiar with Zuora functionality and the Zuora APIs. See the Z-Commerce API documentation for detailed information about the Zuora APIs.Zuora APIs Supported by Order Builder
Z-Force Order Builder supports many of the Zuora APIs, and exposes them as "Apex Wrapper Methods." After installing the Z-Force 360 managed package in your Salesforce org, you will have access to global methods that serve as wrappers for the underlying Zuora APIs through the zApi class.
Note: All components of the Z-Force 360 managed package are prefixed with the "Zuora" namespace qualifier.
Z-Force Order Builder supports the following Zuora API calls:
| Zuora API Call | Z-Force Order Builder Method |
|---|---|
| login() | Zuora.zApi.zlogin() |
| create() | Zuora.zApi.zcreate() |
| update() | Zuora.zApi.zupdate() |
| query() | Zuora.zApi.zquery() |
| delete() | Zuora.zApi.zdelete() |
| subscribe() | Zuora.zApi.zsubscribe() |
| amend() | Zuora.zApi.zamend() |
Additional non-API methods and classes are also available. See the following sections for more information.
Unsupported Calls
The following calls are not supported:
- generate
- queryMore
- subscribeWithExistingAccount
Apex Classes
The Z-Force 360 managed package defines a number of global classes that you can use to invoke the Order Builder methods.
Exception Classes
The following Exception classes are also defined:
- zWSDLException
- zRemoteException
- zForceException
- zAPIException
These classes have the following attributes:
- Attribute
- String code
- String message
The zRemoteException class also uses the code attribute.
Methods
Use the zApi class to invoice the following Order Builder Methods:
Unit Tests and Code Coverage
As with any Apex code, the code that you develop using the Order Builder must also be tested. Salesforce requires the creation and execution of unit tests to facilitate and promote the development of robust, error-free code. In addition, Salesforce also requires that test methods must provide at least 75% code coverage.
For more information, see the Salesforce document "An Introduction to Apex Code Test Methods."
Related
- Apex Classes
- The Z-Force 360 managed package defines a number of global classes that you can use to invoke the Order Builder methods.

Comments