-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathindex.js
54 lines (50 loc) · 2.07 KB
/
index.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
const base = require('./lib/rave.base');
const bank = require('./lib/rave.banks');
const beneficiary = require('./lib/rave.beneficiaries');
const bills = require('./lib/rave.bills');
const charge = require('./lib/rave.charge');
const ebills = require('./lib/rave.ebills');
const misc = require('./lib/rave.misc');
const mobile_money = require('./lib/rave.mobile_money');
const security = require('./lib/security');
// const custom = require("./lib/rave.custom");
const otps = require('./lib/rave.otps');
const payment_plan = require('./lib/rave.payment_plan');
const settlement = require('./lib/rave.settlements');
const subaccount = require('./lib/rave.subaccount');
const subscription = require('./lib/rave.subscriptions');
const tokenized = require('./lib/rave.tokenized');
const transaction = require('./lib/rave.transactions');
const transfer = require('./lib/rave.transfers');
const virtual_acct = require('./lib/rave.virtual_account');
const virtual_card = require('./lib/rave.virtual_cards');
const Rave = function (public_key, public_secret, base_url_or_production_flag) {
const ravebase = new base(
public_key,
public_secret,
base_url_or_production_flag,
);
this.Bank = new bank(ravebase);
this.Beneficiary = new beneficiary(ravebase);
this.Bills = new bills(ravebase);
this.Charge = new charge(ravebase);
this.Ebills = new ebills(ravebase);
this.Misc = new misc(ravebase);
this.MobileMoney = new mobile_money(ravebase);
this.security = security;
// this.CustomRequest = new custom(ravebase);
this.Otp = new otps(ravebase);
this.PaymentPlan = new payment_plan(ravebase);
this.Settlement = new settlement(ravebase);
this.Subscription = new subscription(ravebase);
this.Subaccount = new subaccount(ravebase);
this.Tokenized = new tokenized(ravebase);
this.Transaction = new transaction(ravebase);
this.Transfer = new transfer(ravebase);
this.VirtualAcct = new virtual_acct(ravebase);
this.VirtualCard = new virtual_card(ravebase);
this.getIntegrityHash = function (data) {
return ravebase.getIntegrityHash(data);
};
};
module.exports = Rave;