Constructor
new Mandate(options)
Create a new transaction service
Parameters:
| Name | Type | Description | 
|---|---|---|
options | 
            
            Object | configuration parameters  | 
        
- Source:
 
Methods
deleteMandate(mandateId, accessToken) → {Promise}
Deletes specific direct debit mandate
Parameters:
| Name | Type | Description | 
|---|---|---|
mandateId | 
            
            string | the unique mandate ID  | 
        
accessToken | 
            
            string | the oauth bearer token.  | 
        
- Source:
 
Returns:
- the http request promise
 
- Type
 - Promise
 
listMandates(accessToken) → {Promise}
Gets a list of the customer's current direct debit mandates
Parameters:
| Name | Type | Description | 
|---|---|---|
accessToken | 
            
            string | the oauth bearer token.  | 
        
- Source:
 
Returns:
- the http request promise
 
- Type
 - Promise