| java.lang.Object |
| ↳ |
org.mule.modules.zuora.ZuoraModule |
Known Direct Subclasses
|
Known Indirect Subclasses
|
Class Overview
Zuora is the leader in online recurring billing and payment solutions for SaaS and subscription businesses.
This connector provides full access to the Z-Commerce platform API.
Summary
| Public Methods |
|
Map<String, Object>
|
accountProfile(String accountId)
Retrieve an account profile
|
|
List<AmendResult>
|
amend(List<AmendRequest> amendaments)
|
|
synchronized
void
|
connect(String username, String password)
Connects to Zuora
|
|
List<SaveResult>
|
create(ZObjectType type, List<Map<String, Object>> zobjects)
Batch creation of ZObjects
|
|
List<DeleteResult>
|
delete(ZObjectType type, List<String> ids)
|
|
synchronized
void
|
disconnect()
Destroys the session
|
|
Iterable<ZObject>
|
find(String zquery)
Lazily retrieves ZObject that match a given query,
written in Zuora native query language
If you expect more than 2000 results to be returned, remember that you have
to enable queryMore for your zuora account (as documented:
http://knowledgecenter.zuora.com/D_Using_the_Zuora_API/C_API_Reference/E_API_Calls/queryMore())
|
|
List<SaveResult>
|
generate(ZObjectType type, List<Map<String, Object>> zobjects)
Batch creation of invoices for accounts
|
|
ZuoraClient<Exception>
|
getClient()
|
|
String
|
getEndpoint()
|
|
String
|
getExportFileContent(String exportId)
Retrieve an exported file from Zuora, and return its content as a String
|
|
InputStream
|
getExportFileStream(String exportId)
Retrieve an exported file from Zuora and return an InputStream to it
|
|
Map<String, Object>
|
getInvoice(String invoiceId)
|
|
String
|
getSessionId()
|
|
User
|
getUserInfo()
|
|
boolean
|
isConnected()
|
|
Map<String, Object>
|
productProfile(String productId)
Retrieve a product profile
|
|
void
|
setClient(ZuoraClient<Exception> client)
|
|
void
|
setEndpoint(String endpoint)
|
|
void
|
setMuleContext(MuleContext context)
|
|
void
|
setRestClient(RestZuoraClient client)
|
|
List<SubscribeResult>
|
subscribe(List<SubscribeRequest> subscriptions)
Batch creation of ZObjects associated to Subscriptions
|
|
List<SaveResult>
|
update(ZObjectType type, List<Map<String, Object>> zobjects)
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
org.mule.api.context.MuleContextAware
|
abstract
void
|
setMuleContext(MuleContext arg0)
|
|
Constants
private
static
final
String
API_URL
Constant Value:
"/apps/services/a/43.0"
private
static
final
String
REST_API_URL
Constant Value:
"/apps/api/"
Fields
private
ZuoraClient<Exception>
client
The client to use. Mainly for mocking purposes
private
MuleContext
muleContext
Public Constructors
Public Methods
public
Map<String, Object>
accountProfile
(String accountId)
Retrieve an account profile
Parameters
| accountId
| The id of the account to retrieve an account profile for |
Returns
- the account, as a String-Object Map
Throws
| Exception
| if request fails
|
Parameters
| amendaments
| The list of amendments to perform |
public
synchronized
void
connect
(String username, String password)
Parameters
| username
| Username to identify the user |
| password
| Password to authenticate the username
|
public
List<SaveResult>
create
(ZObjectType type, List<Map<String, Object>> zobjects)
Batch creation of ZObjects
Parameters
| type
| The type of zobject passed |
| zobjects
| The zobjects to create |
Throws
| Exception
| If creation fails
|
Parameters
| type
| The type of ZObjects to delete |
| ids
| The list of ids to delete |
Throws
| Exception
| if deletion fails
|
public
synchronized
void
disconnect
()
public
Iterable<ZObject>
find
(String zquery)
Lazily retrieves ZObject that match a given query,
written in Zuora native query language
If you expect more than 2000 results to be returned, remember that you have
to enable queryMore for your zuora account (as documented:
http://knowledgecenter.zuora.com/D_Using_the_Zuora_API/C_API_Reference/E_API_Calls/queryMore())
Parameters
| zquery
| The query, using the SQL-Like Zuora Query Language |
Returns
- a
ZObject iterable. ZObject returned by this operation
may be instances of either static ZObject - like Account or Amendment -, if the object is a non-customizable Zuora entity,
or ZObject, if the object is a customizable Zuora entity
public
List<SaveResult>
generate
(ZObjectType type, List<Map<String, Object>> zobjects)
Batch creation of invoices for accounts
Parameters
| type
| The type of zobject passed |
| zobjects
| The zobjects to generate, as a list of string-object maps .
Zuora attribute names, unlike java beans, are CamelCase. |
Throws
| Exception
| if generation fails
|
public
String
getEndpoint
()
public
String
getExportFileContent
(String exportId)
Retrieve an exported file from Zuora, and return its content as a String
Parameters
| exportId
| Id of the Zuora exported file to retrieve |
Returns
- the file's content as a String
Throws
| IOException
| if can't access the exported file |
| ZuoraException
| if the exported file doesn't exist
|
public
InputStream
getExportFileStream
(String exportId)
Retrieve an exported file from Zuora and return an InputStream to it
Parameters
| exportId
| Id of the Zuora exported file to retrieve |
Returns
- an InputStream to read from the exported file
Throws
| IOException
| if can't access the exported file |
| ZuoraException
| if the exported file doesn't exist
|
public
Map<String, Object>
getInvoice
(String invoiceId)
Parameters
| invoiceId
| The id of the account to retrieve an account profile for |
Returns
- the invoice, as a String-Object Map
Throws
| Exception
| if request fails
|
public
String
getSessionId
()
public
User
getUserInfo
()
Throws
| Exception
| if request fails
|
public
boolean
isConnected
()
public
Map<String, Object>
productProfile
(String productId)
Retrieve a product profile
Parameters
| productId
| The id of the product to retrieve a product profile for |
Returns
- the profile, as a String-Object Map
Throws
| Exception
| if requesting product profile fails
|
public
void
setEndpoint
(String endpoint)
public
void
setMuleContext
(MuleContext context)
Batch creation of ZObjects associated to Subscriptions
Parameters
| subscriptions
| The list of subscriptions to perform |
Returns
- a subscription results list, one for each subscription
Throws
| Exception
| If subscription fails
|
public
List<SaveResult>
update
(ZObjectType type, List<Map<String, Object>> zobjects)
Parameters
| type
| The type of zobject passed |
| zobjects
| The zobjects to update, as a list of string-object maps .
Zuora attribute names, unlike java beans, are CamelCase. |
Throws
| Exception
| If update fails
|