mangopay2-nodejs-sdk-testing
Version:
Mangopay Node.js SDK for NPM testing purposes
22 lines (18 loc) • 590 B
JavaScript
/**
* @module Events
* @desc [MangoPay Events API Reference](https://docs.mangopay.com/api-references/events/)
*/
var Service = require('../service');
var Events = Service.extend({
/**
* Get events
* @param {Function} callback Callback function
* @param {Object} options Request options
* @return {Object} Request promise
*/
getAll: function(callback, options) {
options = this._api._getOptions(callback, options);
return this._api.method('events_all', callback, options);
}
});
module.exports = Events;