| 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
| Nested Classes |
|
class |
ZuoraModule.ZuoraOperatorVisitor |
|
|
class |
ZuoraModule.ZuoraQueryVisitor |
|
| Public Methods |
|
List<AmendResult>
|
amend(List<AmendRequest> amendaments)
|
|
synchronized
void
|
connect(String username, String password)
Connects to Zuora
|
|
List<SaveResult>
|
create(String type, List<Map<String, Object>> zobjects)
Batch creation of ZObjects
|
|
List<DeleteResult>
|
delete(String type, List<String> ids)
|
|
synchronized
void
|
disconnect()
Destroys the session
|
|
PagingDelegate<Map<String, Object>>
|
find(String query, PagingConfiguration pagingConfiguration)
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(String 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
|
|
MetaData
|
getMetadata(MetaDataKey key)
|
|
List<MetaDataKey>
|
getMetadataKeys()
|
|
String
|
getSessionId()
|
|
User
|
getUserInfo()
|
|
boolean
|
isConnected()
|
|
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
|
|
String
|
toNativeQuery(DsqlQuery query)
|
|
List<SaveResult>
|
update(String 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/48.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
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
(String 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
|
public
List<DeleteResult>
delete
(String type, List<String> ids)
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
PagingDelegate<Map<String, Object>>
find
(String query, PagingConfiguration pagingConfiguration)
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
| query
| The query, using the SQL-Like Zuora Query Language |
| pagingConfiguration
| . |
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
(String 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
MetaData
getMetadata
(MetaDataKey key)
public
List<MetaDataKey>
getMetadataKeys
()
public
String
getSessionId
()
public
User
getUserInfo
()
Throws
| Exception
| if request fails
|
public
boolean
isConnected
()
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
String
toNativeQuery
(DsqlQuery query)
public
List<SaveResult>
update
(String 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
|