-
Notifications
You must be signed in to change notification settings - Fork 104
/
Copy pathbraintree_gateway.js
60 lines (57 loc) · 3.43 KB
/
braintree_gateway.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
55
56
57
58
59
60
'use strict';
let Http = require('./http').Http;
let AddOnGateway = require('./add_on_gateway').AddOnGateway;
let AddressGateway = require('./address_gateway').AddressGateway;
let ClientTokenGateway = require('./client_token_gateway').ClientTokenGateway;
let CreditCardGateway = require('./credit_card_gateway').CreditCardGateway;
let CreditCardVerificationGateway = require('./credit_card_verification_gateway').CreditCardVerificationGateway;
let CustomerGateway = require('./customer_gateway').CustomerGateway;
let DisbursementGateway = require('./disbursement_gateway').DisbursementGateway;
let DiscountGateway = require('./discount_gateway').DiscountGateway;
let MerchantAccountGateway = require('./merchant_account_gateway').MerchantAccountGateway;
let MerchantGateway = require('./merchant_gateway').MerchantGateway;
let OAuthGateway = require('./oauth_gateway').OAuthGateway;
let PaymentMethodGateway = require('./payment_method_gateway').PaymentMethodGateway;
let PaymentMethodNonceGateway = require('./payment_method_nonce_gateway').PaymentMethodNonceGateway;
let PayPalAccountGateway = require('./paypal_account_gateway').PayPalAccountGateway;
let PlanGateway = require('./plan_gateway').PlanGateway;
let SettlementBatchSummaryGateway = require('./settlement_batch_summary_gateway').SettlementBatchSummaryGateway;
let SubscriptionGateway = require('./subscription_gateway').SubscriptionGateway;
let TestingGateway = require('./testing_gateway').TestingGateway;
let TransactionGateway = require('./transaction_gateway').TransactionGateway;
let TransparentRedirectGateway = require('./transparent_redirect_gateway').TransparentRedirectGateway;
let UsBankAccountGateway = require('./us_bank_account_gateway').UsBankAccountGateway;
let IdealPaymentGateway = require('./ideal_payment_gateway').IdealPaymentGateway;
let WebhookNotificationGateway = require('./webhook_notification_gateway').WebhookNotificationGateway;
let WebhookTestingGateway = require('./webhook_testing_gateway').WebhookTestingGateway;
class BraintreeGateway {
constructor(config) {
this.config = config;
this.http = new Http(this.config);
this.addOn = new AddOnGateway(this);
this.address = new AddressGateway(this);
this.clientToken = new ClientTokenGateway(this);
this.creditCard = new CreditCardGateway(this);
this.creditCardVerification = new CreditCardVerificationGateway(this);
this.customer = new CustomerGateway(this);
this.disbursement = new DisbursementGateway(this);
this.discount = new DiscountGateway(this);
this.merchantAccount = new MerchantAccountGateway(this);
this.merchant = new MerchantGateway(this);
this.oauth = new OAuthGateway(this);
this.paymentMethod = new PaymentMethodGateway(this);
this.paymentMethodNonce = new PaymentMethodNonceGateway(this);
this.paypalAccount = new PayPalAccountGateway(this);
this.plan = new PlanGateway(this);
this.settlementBatchSummary = new SettlementBatchSummaryGateway(this);
this.subscription = new SubscriptionGateway(this);
this.testing = new TestingGateway(this);
this.transaction = new TransactionGateway(this);
this.transparentRedirect = new TransparentRedirectGateway(this);
this.usBankAccount = new UsBankAccountGateway(this);
this.idealPayment = new IdealPaymentGateway(this);
this.webhookNotification = new WebhookNotificationGateway(this);
this.webhookTesting = new WebhookTestingGateway(this);
}
}
module.exports = {BraintreeGateway: BraintreeGateway};