lib/braintree/customer.rb in braintree-4.9.0 vs lib/braintree/customer.rb in braintree-4.10.0

- old
+ new

@@ -17,10 +17,11 @@ attr_reader :id attr_reader :last_name attr_reader :paypal_accounts attr_reader :phone attr_reader :samsung_pay_cards + attr_reader :sepa_direct_debit_accounts attr_reader :tax_identifiers attr_reader :updated_at attr_reader :us_bank_accounts attr_reader :venmo_accounts attr_reader :visa_checkout_cards @@ -87,10 +88,11 @@ @apple_pay_cards = (@apple_pay_cards || []).map { |pm| ApplePayCard._new gateway, pm } @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 } @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 @@ -119,10 +121,11 @@ @apple_pay_cards + @google_pay_cards + @venmo_accounts + @us_bank_accounts + @visa_checkout_cards + - @samsung_pay_cards + @samsung_pay_cards + + @sepa_direct_debit_accounts end def inspect # :nodoc: first = [:id] last = [:addresses, :credit_cards, :paypal_accounts, :tax_identifiers]