lib/braintree/customer.rb in braintree-2.44.0 vs lib/braintree/customer.rb in braintree-2.45.0

- old
+ new

@@ -1,11 +1,12 @@ module Braintree class Customer include BaseModule attr_reader :addresses, :company, :created_at, :credit_cards, :email, :fax, :first_name, :id, :last_name, - :phone, :updated_at, :website, :custom_fields, :paypal_accounts, :apple_pay_cards, :coinbase_accounts + :phone, :updated_at, :website, :custom_fields, :paypal_accounts, :apple_pay_cards, :coinbase_accounts, + :android_pay_cards def self.all Configuration.gateway.customer.all end @@ -88,9 +89,10 @@ @credit_cards = (@credit_cards || []).map { |pm| CreditCard._new gateway, pm } @paypal_accounts = (@paypal_accounts || []).map { |pm| PayPalAccount._new gateway, pm } @coinbase_accounts = (@coinbase_accounts || []).map { |pm| CoinbaseAccount._new gateway, pm } @apple_pay_cards = (@apple_pay_cards || []).map { |pm| ApplePayCard._new gateway, pm } @europe_bank_accounts = (@europe_bank_Accounts || []).map { |pm| EuropeBankAccount._new gateway, pm } + @android_pay_cards = (@android_pay_cards || []).map { |pm| AndroidPayCard._new gateway, pm } @addresses = (@addresses || []).map { |addr| Address._new gateway, addr } @custom_fields = attributes[:custom_fields].is_a?(Hash) ? attributes[:custom_fields] : {} end def credit(transaction_attributes)