Constructor
new Account(options)
Creates an instance of the account client
- Source:
Parameters:
Name | Type | Description |
---|---|---|
options |
Object
|
application config |
Methods
getAccount(accessToken) → {Promise}
Retrieves a customer's account
- Source:
Parameters:
Name | Type | Description |
---|---|---|
accessToken |
string
|
the oauth bearer token |
Returns:
- Type:
-
Promise
- the http request promise
getBalance(accessToken) → {Promise}
Retrieves the customer's balance
- Source:
Parameters:
Name | Type | Description |
---|---|---|
accessToken |
string
|
the oauth bearer token |
Returns:
- Type:
-
Promise
- the http request promise