class Braintree::Merchant

Attributes

company_name[R]
country_code_alpha2[R]
country_code_alpha3[R]
country_code_numeric[R]
country_name[R]
email[R]
id[R]
merchant_accounts[R]

Public Class Methods

_new(*args) click to toggle source
# File lib/braintree/merchant.rb, line 26
def self._new(*args)
  self.new(*args)
end
provision_raw_apple_pay() click to toggle source
# File lib/braintree/merchant.rb, line 30
def self.provision_raw_apple_pay
  Configuration.gateway.merchant.provision_raw_apple_pay
end

Protected Class Methods

new(gateway, attributes) click to toggle source
# File lib/braintree/merchant.rb, line 14
def initialize(gateway, attributes)
  @merchant_accounts = attributes.delete(:merchant_accounts).map do |merchant_account|
    MerchantAccount._new(gateway, merchant_account)
  end

  set_instance_variables_from_hash(attributes)
end