forked from Mangopay/mangopay2-nodejs-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRefunds.js
29 lines (25 loc) · 778 Bytes
/
Refunds.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
* @module Refunds
* @desc [MangoPay Refunds API Reference](https://docs.mangopay.com/endpoints/v2.01/refunds)
*/
var Service = require('../service');
var Refund = require('../models/Refund');
var Refunds = Service.extend({
/**
* Get events
* @param {number} refundId Refund id
* @param {Function} callback Callback function
* @param {Object} options Request options
* @return {Object} Request promise
*/
get: function(refundId, callback, options) {
options = this._api._getOptions(callback, options, {
path: {
id: refundId
},
dataClass: Refund
});
return this._api.method('refunds_get', callback, options);
}
});
module.exports = Refunds;