Constructor
new Transaction(options)
Create a new transaction service
Parameters:
| Name | Type | Description | 
|---|---|---|
options | 
            
            Object | configuration parameters  | 
        
- Source:
 
Methods
getTransaction(transactionID, accessToken) → {Promise}
Gets the full details of a single transaction
Parameters:
| Name | Type | Description | 
|---|---|---|
transactionID | 
            
            string | the unique transaction ID  | 
        
accessToken | 
            
            string | the oauth bearer token  | 
        
- Source:
 
Returns:
- the http request promise
 
- Type
 - Promise
 
getTransactions(fromDate, toDate, accessToken) → {Promise}
Gets the customer's transactions over the given period
Parameters:
| Name | Type | Description | 
|---|---|---|
fromDate | 
            
            string | filter transactions after this date. Format: YYYY-MM-DD  | 
        
toDate | 
            
            string | filter transactions before this date. Format: YYYY-MM-DD  | 
        
accessToken | 
            
            string | the oauth bearer token.  | 
        
- Source:
 
Returns:
- the http request promise
 
- Type
 - Promise