Sha256: 1a16b6a0471a848f83d46598e71159fc41919f3f442996c092100e40e23cb6c8

Contents?: true

Size: 711 Bytes

Versions: 6

Compression:

Stored size: 711 Bytes

Contents

module Braintree
  class Merchant
    include BaseModule # :nodoc:

    attr_reader :id, :email, :company_name, :country_code_alpha2, :country_code_alpha3, :country_code_numeric, :country_name, :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

6 entries across 6 versions & 1 rubygems

Version Path
braintree-2.80.1 lib/braintree/merchant.rb
braintree-2.80.0 lib/braintree/merchant.rb
braintree-2.79.0 lib/braintree/merchant.rb
braintree-2.78.0 lib/braintree/merchant.rb
braintree-2.77.0 lib/braintree/merchant.rb
braintree-2.76.0 lib/braintree/merchant.rb