Account

Account

Service to interact with a customer's account

Constructor

new Account(options)

Creates an instance of the account client

Parameters:
Name Type Description
options Object

application config

Source:

Methods

getAccount(accessToken) → {Promise}

Retrieves a customer's account

Parameters:
Name Type Description
accessToken string

the oauth bearer token

Source:
Returns:
  • the http request promise
Type
Promise

getBalance(accessToken) → {Promise}

Retrieves the customer's balance

Parameters:
Name Type Description
accessToken string

the oauth bearer token

Source:
Returns:
  • the http request promise
Type
Promise