class Braintree::Gateway

Attributes

config[R]
graphql_client[R]

Public Class Methods

new(config) click to toggle source
# File lib/braintree/gateway.rb, line 5
def initialize(config)
  if config.is_a?(Hash)
    @config = Configuration.new config
  elsif config.is_a?(Braintree::Configuration)
    @config = config
  else
    raise ArgumentError, "config is an invalid type"
  end

  @graphql_client = GraphQLClient.new(@config)
end

Public Instance Methods

add_on() click to toggle source
# File lib/braintree/gateway.rb, line 17
def add_on
  AddOnGateway.new(self)
end
address() click to toggle source
# File lib/braintree/gateway.rb, line 21
def address
  AddressGateway.new(self)
end
apple_pay() click to toggle source
# File lib/braintree/gateway.rb, line 25
def apple_pay
  ApplePayGateway.new(self)
end
client_token() click to toggle source
# File lib/braintree/gateway.rb, line 29
def client_token
  ClientTokenGateway.new(self)
end
credit_card() click to toggle source
# File lib/braintree/gateway.rb, line 33
def credit_card
  CreditCardGateway.new(self)
end
customer() click to toggle source
# File lib/braintree/gateway.rb, line 37
def customer
  CustomerGateway.new(self)
end
discount() click to toggle source
# File lib/braintree/gateway.rb, line 41
def discount
  DiscountGateway.new(self)
end
dispute() click to toggle source
# File lib/braintree/gateway.rb, line 45
def dispute
  DisputeGateway.new(self)
end
document_upload() click to toggle source
# File lib/braintree/gateway.rb, line 49
def document_upload
  DocumentUploadGateway.new(self)
end
merchant() click to toggle source
# File lib/braintree/gateway.rb, line 77
def merchant
  MerchantGateway.new(self)
end
merchant_account() click to toggle source
# File lib/braintree/gateway.rb, line 81
def merchant_account
  MerchantAccountGateway.new(self)
end
oauth() click to toggle source
# File lib/braintree/gateway.rb, line 53
def oauth
  OAuthGateway.new(self)
end
payment_method() click to toggle source
# File lib/braintree/gateway.rb, line 61
def payment_method
  PaymentMethodGateway.new(self)
end
payment_method_nonce() click to toggle source
# File lib/braintree/gateway.rb, line 65
def payment_method_nonce
  PaymentMethodNonceGateway.new(self)
end
paypal_account() click to toggle source
# File lib/braintree/gateway.rb, line 69
def paypal_account
  PayPalAccountGateway.new(self)
end
plan() click to toggle source
# File lib/braintree/gateway.rb, line 57
def plan
  PlanGateway.new(self)
end
settlement_batch_summary() click to toggle source
# File lib/braintree/gateway.rb, line 85
def settlement_batch_summary
  SettlementBatchSummaryGateway.new(self)
end
subscription() click to toggle source
# File lib/braintree/gateway.rb, line 89
def subscription
  SubscriptionGateway.new(self)
end
testing() click to toggle source
# File lib/braintree/gateway.rb, line 101
def testing
  TestingGateway.new(self)
end
transaction() click to toggle source
# File lib/braintree/gateway.rb, line 93
def transaction
  TransactionGateway.new(self)
end
transaction_line_item() click to toggle source
# File lib/braintree/gateway.rb, line 97
def transaction_line_item
  TransactionLineItemGateway.new(self)
end
us_bank_account() click to toggle source
# File lib/braintree/gateway.rb, line 73
def us_bank_account
  UsBankAccountGateway.new(self)
end
us_bank_account_verification() click to toggle source
# File lib/braintree/gateway.rb, line 105
def us_bank_account_verification
  UsBankAccountVerificationGateway.new(self)
end
verification() click to toggle source
# File lib/braintree/gateway.rb, line 109
def verification
  CreditCardVerificationGateway.new(self)
end
webhook_notification() click to toggle source
# File lib/braintree/gateway.rb, line 113
def webhook_notification
  WebhookNotificationGateway.new(self)
end
webhook_testing() click to toggle source
# File lib/braintree/gateway.rb, line 117
def webhook_testing
  WebhookTestingGateway.new(self)
end