lib/braintree/customer.rb in braintree-4.22.0 vs lib/braintree/customer.rb in braintree-4.23.0

- old
+ new

@@ -78,10 +78,11 @@ def self.update!(*args) Configuration.gateway.customer.update!(*args) end + # NEXT_MAJOR_VERSION remove samsung_pay_cards def initialize(gateway, attributes) @gateway = gateway set_instance_variables_from_hash(attributes) @credit_cards = (@credit_cards || []).map { |pm| CreditCard._new gateway, pm } @paypal_accounts = (@paypal_accounts || []).map { |pm| PayPalAccount._new gateway, pm } @@ -89,10 +90,10 @@ @google_pay_cards = (@google_pay_cards || []).map { |pm| GooglePayCard._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 } @sepa_direct_debit_accounts = (@sepa_debit_accounts || []).map { |pm| SepaDirectDebitAccount._new gateway, pm } - @samsung_pay_cards = (@samsung_pay_cards|| []).map { |pm| SamsungPayCard._new gateway, pm } + @samsung_pay_cards = (@samsung_pay_cards|| []).map { |pm| SamsungPayCard._new gateway, pm } # Deprecated @addresses = (@addresses || []).map { |addr| Address._new gateway, addr } @tax_identifiers = (@tax_identifiers || []).map { |addr| TaxIdentifier._new gateway, addr } @custom_fields = attributes[:custom_fields].is_a?(Hash) ? attributes[:custom_fields] : {} end