Sha256: 3c91935a86c83af446d33d79f912abed1b5d38b8d227a13343b4fee675f836ae

Contents?: true

Size: 817 Bytes

Versions: 17

Compression:

Stored size: 817 Bytes

Contents

module Braintree
  class Merchant
    include BaseModule # :nodoc:

    attr_reader :company_name
    attr_reader :country_code_alpha2
    attr_reader :country_code_alpha3
    attr_reader :country_code_numeric
    attr_reader :country_name
    attr_reader :email
    attr_reader :id
    attr_reader :merchant_accounts

    def initialize(gateway, attributes) # :nodoc:
      @merchant_accounts = attributes.delete(:merchant_accounts).map do |merchant_account|
        MerchantAccount._new(gateway, merchant_account)
      end

      set_instance_variables_from_hash(attributes)
    end

    class << self
      protected :new
    end

    def self._new(*args) # :nodoc:
      self.new(*args)
    end

    def self.provision_raw_apple_pay
      Configuration.gateway.merchant.provision_raw_apple_pay
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
braintree-4.15.0 lib/braintree/merchant.rb
braintree-4.14.0 lib/braintree/merchant.rb
braintree-4.13.0 lib/braintree/merchant.rb
braintree-4.12.0 lib/braintree/merchant.rb
braintree-4.11.0 lib/braintree/merchant.rb
braintree-4.10.0 lib/braintree/merchant.rb
braintree-4.9.0 lib/braintree/merchant.rb
braintree-4.8.0 lib/braintree/merchant.rb
braintree-4.7.0 lib/braintree/merchant.rb
braintree-4.6.0 lib/braintree/merchant.rb
braintree-4.5.0 lib/braintree/merchant.rb
braintree-4.4.0 lib/braintree/merchant.rb
braintree-4.3.0 lib/braintree/merchant.rb
braintree-4.2.0 lib/braintree/merchant.rb
braintree-4.1.0 lib/braintree/merchant.rb
braintree-4.0.0 lib/braintree/merchant.rb
braintree-3.4.0 lib/braintree/merchant.rb