-
Notifications
You must be signed in to change notification settings - Fork 39
/
index.js
41 lines (33 loc) · 1.47 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
var base = require('./lib/rave.base');
var card = require('./lib/rave.card');
var account = require('./lib/rave.account');
var token = require('./lib/rave.token');
var status = require('./lib/rave.status');
var mobile = require('./lib/rave.mobile');
var misc = require('./lib/rave.misc');
var preauth = require('./lib/rave.cardpreauth');
var security = require('./lib/security');
var custom = require('./lib/rave.custom');
var transfer = require('./lib/rave.transfer');
var subaccount = require('./lib/rave.subaccount');
var subscription = require('./lib/rave.subscription');
var paymentplan = require('./lib/rave.paymentplan');
var Rave = function (public_key, public_secret, base_url_or_production_flag)
{
var ravebase = new base(public_key, public_secret, base_url_or_production_flag);
this.Card = new card(ravebase);
this.Status = new status(ravebase);
this.Account = new account(ravebase);
this.TokenCharge = new token(ravebase);
this.MobileOptions = new mobile(ravebase);
this.Misc = new misc(ravebase);
this.Preauth = new preauth(ravebase);
this.security = security;
this.CustomRequest = new custom(ravebase);
this.Transfer = new transfer(ravebase);
this.Subaccount = new subaccount(ravebase);
this.Subscription = new subscription(ravebase);
this.Paymentplan = new paymentplan(ravebase);
this.getIntegrityHash = function (data) { return ravebase.getIntegrityHash(data); }
}
module.exports = Rave;