Sha256: a554957c311678cdca13bc1191d580553ec5172d43558a3ac119b6bc7e46cf87
Contents?: true
Size: 787 Bytes
Versions: 8
Compression:
Stored size: 787 Bytes
Contents
module Braintree class Merchant include BaseModule 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) @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) self.new(*args) end def self.provision_raw_apple_pay Configuration.gateway.merchant.provision_raw_apple_pay end end end
Version data entries
8 entries across 8 versions & 1 rubygems