forked from AirVantage/zuorajs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzuora.js
47 lines (42 loc) · 1.62 KB
/
zuora.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
const auth = require('./auth');
const http = require('./http');
const accounts = require('./lib/accounts');
const action = require('./lib/action');
const billRun = require('./lib/billRun');
const catalog = require('./lib/catalog');
const contacts = require('./lib/contacts');
const zuoraExports = require('./lib/zuoraExports');
const files = require('./lib/files');
const invoiceItems = require('./lib/invoiceItems');
const invoices = require('./lib/invoices');
const paymentMethods = require('./lib/paymentMethods');
const payments = require('./lib/payments');
const productRatePlanCharges = require('./lib/productRatePlanCharges');
const productRatePlans = require('./lib/productRatePlans');
const quotes = require('./lib/quotes');
const ratePlanCharges = require('./lib/ratePlanCharges');
const subscriptions = require('./lib/subscriptions');
class Zuora {
constructor(config) {
this.config = config;
this.auth = auth(this);
this.http = http(this);
this.accounts = accounts(this);
this.action = action(this);
this.billRun = billRun(this);
this.catalog = catalog(this);
this.contacts = contacts(this);
this.zuoraExports = zuoraExports(this);
this.files = files(this);
this.invoiceItems = invoiceItems(this);
this.invoices = invoices(this);
this.paymentMethods = paymentMethods(this);
this.payments = payments(this);
this.productRatePlanCharges = productRatePlanCharges(this);
this.productRatePlans = productRatePlans(this);
this.quotes = quotes(this);
this.ratePlanCharges = ratePlanCharges(this);
this.subscriptions = subscriptions(this);
}
}
module.exports = Zuora;