Mandate

Mandate

Service to interact with a customer's transactions

Constructor

new Mandate(options)

Create a new transaction service

Source:
Parameters:
Name Type Description
options Object

configuration parameters

Methods

deleteMandate(accessToken, mandateId) → {Promise}

Deletes specific direct debit mandate

Source:
Parameters:
Name Type Description
accessToken string

the oauth bearer token.

mandateId string

the unique mandate ID

Returns:
Type:
Promise
  • the http request promise

getMandate(accessToken) → {Promise}

Gets a specific direct debit mandate

Source:
Parameters:
Name Type Description
accessToken string

the oauth bearer token.

Returns:
Type:
Promise
  • the http request promise

listMandates(accessToken) → {Promise}

Gets a list of the customer's current direct debit mandates

Source:
Parameters:
Name Type Description
accessToken string

the oauth bearer token.

Returns:
Type:
Promise
  • the http request promise