-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathrave.transactions.js
More file actions
38 lines (31 loc) · 1.17 KB
/
rave.transactions.js
File metadata and controls
38 lines (31 loc) · 1.17 KB
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
30
31
32
33
34
35
36
37
38
const event_trans = require('../services/transactions/rave.events');
const fee_trans = require('../services/transactions/rave.fee');
const refund_trans = require('../services/transactions/rave.refund');
const resend_hooks_trans = require('../services/transactions/rave.resend-hooks');
const retrieve_trans = require('../services/transactions/rave.retrieve');
const verify_trans = require('../services/transactions/rave.verify');
const verify_trans_with_reference = require('../services/transactions/rave.verify-with-reference');
function Transactions(RaveBase) {
this.event = function (data) {
return event_trans(data, RaveBase);
};
this.fee = function (data) {
return fee_trans(data, RaveBase);
};
this.refund = function (data) {
return refund_trans(data, RaveBase);
};
this.resend_hooks = function (data) {
return resend_hooks_trans(data, RaveBase);
};
this.fetch = function (data) {
return retrieve_trans(data, RaveBase);
};
this.verify = function (data) {
return verify_trans(data, RaveBase);
};
this.verify_with_reference = function (data) {
return verify_trans_with_reference(data, RaveBase);
};
}
module.exports = Transactions;