Sha256: bac8d169c5314a4f079a734ad393215ec3d110d9809cf03d3d80bacaaaf70315

Contents?: true

Size: 691 Bytes

Versions: 8

Compression:

Stored size: 691 Bytes

Contents

module Braintree
  class SepaDirectDebitAccountNonceDetails
    include BaseModule

    attr_reader :bank_reference_token
    attr_reader :last_4
    attr_reader :mandate_type
    attr_reader :merchant_or_partner_customer_id

    def initialize(attributes)
      set_instance_variables_from_hash attributes unless attributes.nil?
    end

    def inspect
      attr_order = [
        :bank_reference_token,
        :last_4,
        :mandate_type,
        :merchant_or_partner_customer_id,
      ]

      formatted_attrs = attr_order.map do |attr|
        "#{attr}: #{send(attr).inspect}"
      end
      "#<SepaDirectDebitAccountNonceDetails#{formatted_attrs.join(", ")}>"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
braintree-4.23.0 lib/braintree/sepa_direct_debit_account_nonce_details.rb
braintree-4.22.0 lib/braintree/sepa_direct_debit_account_nonce_details.rb
braintree-4.21.0 lib/braintree/sepa_direct_debit_account_nonce_details.rb
braintree-4.20.0 lib/braintree/sepa_direct_debit_account_nonce_details.rb
braintree-4.19.0 lib/braintree/sepa_direct_debit_account_nonce_details.rb
braintree-4.18.0 lib/braintree/sepa_direct_debit_account_nonce_details.rb
braintree-4.17.0 lib/braintree/sepa_direct_debit_account_nonce_details.rb
braintree-4.16.0 lib/braintree/sepa_direct_debit_account_nonce_details.rb