Sha256: 070c8a3e693d688c7f60d6e0cac5e639bbf15e88df6874937e0c5101707d09e5

Contents?: true

Size: 816 Bytes

Versions: 29

Compression:

Stored size: 816 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

29 entries across 29 versions & 1 rubygems

Version Path
braintree-3.3.0 lib/braintree/merchant.rb
braintree-3.2.0 lib/braintree/merchant.rb
braintree-3.1.0 lib/braintree/merchant.rb
braintree-3.0.1 lib/braintree/merchant.rb
braintree-2.104.1 lib/braintree/merchant.rb
braintree-2.104.0 lib/braintree/merchant.rb
braintree-2.103.0 lib/braintree/merchant.rb
braintree-2.102.0 lib/braintree/merchant.rb
braintree-2.101.0 lib/braintree/merchant.rb
braintree-2.100.0 lib/braintree/merchant.rb
braintree-2.99.0 lib/braintree/merchant.rb
braintree-2.98.0 lib/braintree/merchant.rb
braintree-2.97.0 lib/braintree/merchant.rb
braintree-2.96.0 lib/braintree/merchant.rb
braintree-2.95.0 lib/braintree/merchant.rb
braintree-2.94.0 lib/braintree/merchant.rb
braintree-2.93.0 lib/braintree/merchant.rb
braintree-2.92.0 lib/braintree/merchant.rb
braintree-2.91.0 lib/braintree/merchant.rb
braintree-2.90.0 lib/braintree/merchant.rb