| java.lang.Object | |
| ↳ | org.mule.modules.quickbooks.windows.QuickBooksWindowsModule |
Known Direct Subclasses
|
Known Indirect Subclasses
|
QuickBooks software provides an interface that allows you to use forms such as checks, deposit slips and invoices, making the accounting process more comfortable for the average business owner or manager. By using the built-in functions that pertain to your business, you are able to perform your company accounting by simply recording your vendor activities, customer activities, banking transactions, payroll checks and taxes. QuickBooks handles the accounting portion of each transaction behind the scenes. Read more: QuickBooks Accounting Tutorial | eHow.com http://www.ehow.com/way_5462311_quickbooks-accounting-tutorial.html#ixzz1csaydwxl
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| accessTokenIdentifierPrefix | Prefix used for storing credentials in ObjectStore. | ||||||||||
| baseUri | The base uri of the quickbooks endpoint, used to fetch the company uri. | ||||||||||
| client | Quick-Books client. | ||||||||||
| consumerKey | API Key | ||||||||||
| consumerSecret | API Secret | ||||||||||
| mom | |||||||||||
| oAuthClient | Intuit OAuthClient | ||||||||||
| objectStore | Object store reference | ||||||||||
| objectStoreHelper | Object store helper | ||||||||||
| openIDClient | Intuit OpenID client | ||||||||||
| verifyOpenIdResponse | Specifies if the OpenID response will be verified. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Authorize an user using OAuth1.0a
| |||||||||||
Retrieves Blue Dot App Menu from Intuit.
| |||||||||||
Creates.
| |||||||||||
Deletes an object.
| |||||||||||
Invalidates the OAuth access token in the request, thereby disconnecting the user from QuickBooks for this app.
| |||||||||||
Lazily retrieves Objects
For details on how to generate a query see:
Retrieve Especification
| |||||||||||
Generate a new GUID for the requestId
| |||||||||||
Extract accessToken
| |||||||||||
Returns company metadata information.
| |||||||||||
Returns current user information such as first name, last name, and email address.
| |||||||||||
Retrieve objects by ID.
| |||||||||||
post construct
| |||||||||||
Initializes OpenID process
| |||||||||||
Generates a new OAuth access token and invalidates the OAuth access token used in the request,
thereby extending the life span by six months.
| |||||||||||
Revert objects by ID.
| |||||||||||
Retrieve the Status
Retrieves information about the sync status of Quickbooks entities. | |||||||||||
Retrieve the SyncActivities
The SyncActivity object contains information about Quickbooks for Windows synchronizations. | |||||||||||
Updates.
| |||||||||||
Verify response from Intuit
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Prefix used for storing credentials in ObjectStore. It will be concatenated to the access token identifier.
E.g. prefix: "qb_", user identifier (realmId): "12345", key for object store "qb_12345"
The base uri of the quickbooks endpoint, used to fetch the company uri. Quickbooks connector will first use this uri and the realmId to get a second uri, called company uri, which is the actual quickbooks endpoint for the connector
Quick-Books client. By default uses DefaultQuickBooksWindowsClient class.
API Key
API Secret
Intuit OAuthClient
Object store reference
Object store helper
Intuit OpenID client
Specifies if the OpenID response will be verified. By default it is true.
Authorize an user using OAuth1.0a
| requestTokenUrl | RequestTokenUrl |
|---|---|
| accessTokenUrl | AccessTokenUrl |
| authorizationUrl | AuthorizationUrl |
| callbackUrl | CallbackUrl for OAuth service |
| requestTokenId | Optional value for identifying the requestToken. If it is not passed the client will use a UUID |
| headers | Outbound headers |
| ObjectStoreException | from the Object Store instance |
|---|---|
| OAuthCommunicationException | requesting to OAuth provider |
| OAuthExpectationFailedException | requesting to OAuth provider |
| OAuthNotAuthorizedException | requesting to OAuth provider |
| OAuthMessageSignerException | requesting to OAuth provider |
Retrieves Blue Dot App Menu from Intuit.
| accessTokenId | Credentials identifier for the user information to be requested |
|---|
Creates. For details of the supported objects and its fields: Supported Objects and Operations
| accessTokenId | Identifier for QuickBooks credentials. |
|---|---|
| type | WindowsEntityType of the object. |
| entityObject | Represents the object to be created. |
| draft | Boolean draft
Saving an IDS object in a draft state prevents it from being synchronized with Quickbooks. Your app might want to save an object in a draft state if the user has not finished entering data, or for some other reason the user does not want to commit the object for synchronization. You may save an object in draft state during a create or update operation by specifying the draft="true" attribute. By default, the Draft attribute is false, which means that the saved object will be synchronized with Quickbooks. |
| fullResponse | Boolean fullResponse. If this flag is true, it will return the created object, otherwise, it
will return an ObjectRef. |
ObjectRef if the fullResponse flag was null of false.| QuickBooksRuntimeException | when there is a problem with the server. It has a code and a message provided by quickbooks about the error. |
|---|
Deletes an object.
Most objects cannot be deleted by calling Data Services.
If the obj map do not have the MetaData field or the SyncToken, internally, will retrieve the object at first, to delete it. So be careful, because it will need two request instead of one, which could make it slower.
For details of the supported objects and its fields: Supported Objects and Operations
| accessTokenId | Identifier for QuickBooks credentials. |
|---|---|
| type | WindowsEntityType of the object. |
| entityObject | Represents the object to be deleted. |
| QuickBooksRuntimeException | when there is a problem with the server. It has a code and a message provided by quickbooks about the error. |
|---|
Invalidates the OAuth access token in the request, thereby disconnecting the user from QuickBooks for this app.
| accessTokenId | Credentials identifier for the user information to be requested |
|---|
Lazily retrieves Objects For details on how to generate a query see: Retrieve Especification
| accessTokenId | Identifier for QuickBooks credentials. |
|---|---|
| type | WindowsEntityType of the object. |
| query | Map that represents every filter and sort for the objects retrieved. Each type of object to be
retrieved, has a TheObjectQuery class that has the attributes for which it can be filtered
(To know which attributes are accepted in every ObjectQuery, you could follow the link in the documentation of the WindowsEntityType that you require, or you can follow the link changing the word OBJECT for the object that you required, for example Account: https://ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0050_Data_Services/ 0500_QuickBooks_Windows/0600_Object_Reference/OBJECT ).Do not complete the fields chunkSize and startPage, because are need it for the "lazily retrieve". If query is null, it will retrieve all the objects of that WindowsEntityType. |
| QuickBooksRuntimeException | when there is a problem with the server. It has a code and a message provided by quickbooks about the error. |
|---|
Generate a new GUID for the requestId
Extract accessToken
| apiUrl | API URL |
|---|---|
| verifier | OAuth verifier. It comes within the callback. The default value is "#[header:inbound:oauth_verifier]" |
| requestTokenId | Id used for identifying the authorized request token. It comes within the callback. By default the query string parameter is userId |
| userIdentifier | Id used for store the accessToken in the Object Store. By default the value is the realmId |
| ObjectStoreException | from the object store instance |
|---|---|
| OAuthCommunicationException | requesting to OAuth provider |
| OAuthExpectationFailedException | requesting to OAuth provider |
| OAuthNotAuthorizedException | requesting to OAuth provider |
| OAuthMessageSignerException | requesting to OAuth provider |
Returns company metadata information.
| accessTokenId | Identifier for QuickBooks credentials. |
|---|
Returns current user information such as first name, last name, and email address. For details see: CurrentUserAPI
| accessTokenId | Identifier for QuickBooks credentials. |
|---|
Retrieve objects by ID. For details of the supported objects: Supported Objects and Operations
| accessTokenId | Identifier for QuickBooks credentials. |
|---|---|
| type | WindowsEntityType of the object. |
| idType | Id IdType which is assigned by Data Services when the object is created. |
| QuickBooksRuntimeException | when there is a problem with the server. It has a code and a message provided by quickbooks about the error. |
|---|
post construct
Initializes OpenID process
| providerUrl | OpenID provider url |
|---|---|
| callbackUrl | OpenID callbackUrl. It has to point to an endpoint callback to process the response |
| headers | OpenId response headers |
| ObjectStoreException | if the operation cannot store the OpenIDManagers |
|---|
Generates a new OAuth access token and invalidates the OAuth access token used in the request, thereby extending the life span by six months. Because accessing QuickBooks data requires a valid access token, when the OAuth access token is renewed, your app can continue to access the user's QuickBooks company data.
| accessTokenId | Credentials identifier for the user information to be requested |
|---|
| ObjectStoreException | if the credentials store failed |
|---|
Revert objects by ID. For details of the supported objects: Supported Objects and Operations
| accessTokenId | Identifier for QuickBooks credentials. |
|---|---|
| type | WindowsEntityType of the object. |
| entityObject | Represents the object to be reverted. |
| QuickBooksRuntimeException | when there is a problem with the server. It has a code and a message provided by quickbooks about the error. |
|---|
| accessTokenIdentifierPrefix |
|---|
| baseUri |
|---|
| consumerKey |
|---|
| consumerSecret |
|---|
| objectStore |
|---|
| objectStoreHelper |
|---|
| openIDClient |
|---|
| verifyOpenIdResponse |
|---|
| oAuthClient |
|---|
Retrieve the Status
Retrieves information about the sync status of Quickbooks entities. You can also query specific entity types for either synchronized or unsynchronized objects with filters. You can get information on recent synchronizations using the syncActivity operation.
Note: Sync status information will be maintained for all operations in the cloud up to 30 days old. Of those operations older than 30 days, only the last operation's synch status will be maintained.
| accessTokenId | Identifier for QuickBooks credentials. |
|---|---|
| syncStatusRequest | It has the specifications of the syncStatuses to be retrieved. (like a filter) |
SyncStatusResponse
Retrieve the SyncActivities
The SyncActivity object contains information about Quickbooks for Windows synchronizations. To get the sync status of another type of object, for example, a customer, use the status operation. To filter a query based on whether or not an object is synchronized, use a filter.
Note: Sync status information will be maintained for all operations in the cloud up to 30 days old. Of those operations older than 30 days, only the last operation's synch status will be maintained.
| accessTokenId | Identifier for QuickBooks credentials. |
|---|---|
| syncActivityRequest | Map that represents a SyncActivityRequest object. It has the specifications
of the SyncActivities to be retrieved. (like a filter) |
SyncActivityResponse
Updates.
Specify all the parameters for the object, not just the new or changed elements. If you omit an element, it is removed from the object by the update operation.
For details of the supported objects and its fields: Supported Objects and OperationsWhen updating transaction objects (such as Estimate or Invoice), note the following:
* To retain existing line items, specify them in the request XML body and do not change their order.
* To remove a line item, omit it.
* To add a new line item, insert a new one in the list.
| accessTokenId | Identifier for QuickBooks credentials. |
|---|---|
| type | WindowsEntityType of the object. |
| entityObject | Represents the object to be updated. |
| draft | Boolean draft
Saving an IDS object in a draft state prevents it from being synchronized with Quickbooks. Your app might want to save an object in a draft state if the user has not finished entering data, or for some other reason the user does not want to commit the object for synchronization. You may save an object in draft state during a create or update operation by specifying the draft="true" attribute. By default, the Draft attribute is false, which means that the saved object will be synchronized with Quickbooks. |
| fullResponse | Boolean fullResponse. If this flag is true, it will return the created object, otherwise, it
will return an ObjectRef. |
ObjectRef if the fullResponse flag was null of false.| QuickBooksRuntimeException | when there is a problem with the server. It has a code and a message provided by quickbooks about the error. |
|---|
Verify response from Intuit
| muleMessage | Injected MuleMessage |
|---|---|
| receivingUrl | Url from OpenID provider.
If it is not provided the processor will extract it from the Mule message |
| responseParameters | Response parameters from Intuit. It process a map |
| MessageException | from OpenID manager |
|---|---|
| ObjectStoreException | if the operation cannot retrieve OpenID managers from ObjectStore |