lib/braintree/customer.rb in braintree-2.103.0 vs lib/braintree/customer.rb in braintree-2.104.0
- old
+ new
@@ -2,11 +2,12 @@
class Customer
include BaseModule
include Braintree::Util::IdEquality
attr_reader :addresses
- attr_reader :amex_express_checkout_cards
+ attr_reader :amex_express_checkout_cards # Deprecated
+ # NEXT_MAJOR_VERSION rename Android Pay to Google Pay
attr_reader :android_pay_cards
attr_reader :apple_pay_cards
attr_reader :coinbase_accounts
attr_reader :company
attr_reader :created_at
@@ -16,11 +17,11 @@
attr_reader :fax
attr_reader :first_name
attr_reader :graphql_id
attr_reader :id
attr_reader :last_name
- attr_reader :masterpass_cards
+ attr_reader :masterpass_cards # Deprecated
attr_reader :paypal_accounts
attr_reader :phone
attr_reader :samsung_pay_cards
attr_reader :updated_at
attr_reader :us_bank_accounts
@@ -111,9 +112,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 }
+ # NEXT_MAJOR_VERSION rename Android Pay to Google Pay
@android_pay_cards = (@android_pay_cards || []).map { |pm| AndroidPayCard._new gateway, pm }
@amex_express_checkout_cards = (@amex_express_checkout_cards || []).map { |pm| AmexExpressCheckoutCard._new gateway, pm }
@venmo_accounts = (@venmo_accounts || []).map { |pm| VenmoAccount._new gateway, pm }
@us_bank_accounts = (@us_bank_accounts || []).map { |pm| UsBankAccount._new gateway, pm }
@visa_checkout_cards = (@visa_checkout_cards|| []).map { |pm| VisaCheckoutCard._new gateway, pm }