123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- <?php
- namespace Braintree;
- /**
- * Braintree Gateway module
- *
- * @package Braintree
- * @category Resources
- */
- class Gateway
- {
- /**
- *
- * @var Configuration
- */
- public $config;
- public function __construct($config)
- {
- if (is_array($config)) {
- $config = new Configuration($config);
- }
- $this->config = $config;
- }
- /**
- *
- * @return AddOnGateway
- */
- public function addOn()
- {
- return new AddOnGateway($this);
- }
- /**
- *
- * @return AddressGateway
- */
- public function address()
- {
- return new AddressGateway($this);
- }
- /**
- *
- * @return ApplePayGateway
- */
- public function applePay()
- {
- return new ApplePayGateway($this);
- }
- /**
- *
- * @return ClientTokenGateway
- */
- public function clientToken()
- {
- return new ClientTokenGateway($this);
- }
- /**
- *
- * @return CreditCardGateway
- */
- public function creditCard()
- {
- return new CreditCardGateway($this);
- }
- /**
- *
- * @return CreditCardVerificationGateway
- */
- public function creditCardVerification()
- {
- return new CreditCardVerificationGateway($this);
- }
- /**
- *
- * @return CustomerGateway
- */
- public function customer()
- {
- return new CustomerGateway($this);
- }
- /**
- *
- * @return DiscountGateway
- */
- public function discount()
- {
- return new DiscountGateway($this);
- }
- /**
- *
- * @return DisputeGateway
- */
- public function dispute()
- {
- return new DisputeGateway($this);
- }
- /**
- *
- * @return DocumentUploadGateway
- */
- public function documentUpload()
- {
- return new DocumentUploadGateway($this);
- }
- /**
- *
- * @return MerchantGateway
- */
- public function merchant()
- {
- return new MerchantGateway($this);
- }
- /**
- *
- * @return MerchantAccountGateway
- */
- public function merchantAccount()
- {
- return new MerchantAccountGateway($this);
- }
- /**
- *
- * @return OAuthGateway
- */
- public function oauth()
- {
- return new OAuthGateway($this);
- }
- /**
- *
- * @return PaymentMethodGateway
- */
- public function paymentMethod()
- {
- return new PaymentMethodGateway($this);
- }
- /**
- *
- * @return PaymentMethodNonceGateway
- */
- public function paymentMethodNonce()
- {
- return new PaymentMethodNonceGateway($this);
- }
- /**
- *
- * @return PayPalAccountGateway
- */
- public function payPalAccount()
- {
- return new PayPalAccountGateway($this);
- }
- /**
- *
- * @return PlanGateway
- */
- public function plan()
- {
- return new PlanGateway($this);
- }
- /**
- *
- * @return SettlementBatchSummaryGateway
- */
- public function settlementBatchSummary()
- {
- return new SettlementBatchSummaryGateway($this);
- }
- /**
- *
- * @return SubscriptionGateway
- */
- public function subscription()
- {
- return new SubscriptionGateway($this);
- }
- /**
- *
- * @return TestingGateway
- */
- public function testing()
- {
- return new TestingGateway($this);
- }
- /**
- *
- * @return TransactionGateway
- */
- public function transaction()
- {
- return new TransactionGateway($this);
- }
- /**
- *
- * @return TransactionLineItemGateway
- */
- public function transactionLineItem()
- {
- return new TransactionLineItemGateway($this);
- }
- /**
- *
- * @return TransparentRedirectGateway
- */
- public function transparentRedirect()
- {
- return new TransparentRedirectGateway($this);
- }
- /**
- *
- * @return UsBankAccountGateway
- */
- public function usBankAccount()
- {
- return new UsBankAccountGateway($this);
- }
- /**
- *
- * @return UsBankAccountVerificationGateway
- */
- public function usBankAccountVerification()
- {
- return new UsBankAccountVerificationGateway($this);
- }
- /**
- *
- * @return IdealPaymentGateway
- */
- public function idealPayment()
- {
- return new IdealPaymentGateway($this);
- }
- /**
- *
- * @return WebhookNotificationGateway
- */
- public function webhookNotification()
- {
- return new WebhookNotificationGateway($this);
- }
- /**
- *
- * @return WebhookTestingGateway
- */
- public function webhookTesting()
- {
- return new WebhookTestingGateway($this);
- }
- }
- class_alias('Braintree\Gateway', 'Braintree_Gateway');
|