Class Account
Extends
Resource.
Account resource
Defined in: account.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Account(spire, data)
Represents an account in the spire api.
|
| Field Attributes | Field Name and Description |
|---|---|
|
Actual data from the spire.io api.
|
|
|
Reference to spire object.
|
| Method Attributes | Method Name and Description |
|---|---|
|
reset(cb)
Resets the account
Note that this passes a session to the callback, and not an account.
|
|
|
secret()
Gets the account secret
|
|
|
updateBillingSubscription(info, cb)
Updates the billing plan for the account.
|
- Methods borrowed from class Resource:
- authorization, capabilities, capability, get, getIfCapable, mediaType, request, schema, update, url
Class Detail
Account(spire, data)
Represents an account in the spire api.
- Parameters:
- spire
- {object} Spire object
- data
- {object} Account data from the spire api
Field Detail
data
Actual data from the spire.io api.
spire
Reference to spire object.
Method Detail
reset(cb)
Resets the account
Note that this passes a session to the callback, and not an account.
This is because many of the session urls will have changed.
- Parameters:
- {function (err|session)} cb
- Callback
secret()
Gets the account secret
updateBillingSubscription(info, cb)
Updates the billing plan for the account.
- Parameters:
- {object} info
- New billing plan data
- {function (err|account)} cb
- Callback