Sha256: 5186620c34f1e971c0ce2e87f281e198af5c4e556a00559e32fa57df0ba00c62

Contents?: true

Size: 511 Bytes

Versions: 4

Compression:

Stored size: 511 Bytes

Contents

module Moneta
  module Api
    module Responses
      class FindBankAccountsResponse
        include Moneta::Api::DataMapper

        # Ответ, который содержит список банковских счетов.
        # Bank Accounts searching response containing the list of bank accounts.
        property :bank_account, type: BankAccountInfo

        def get_account(number)
          bank_account.detect { |account| account.id.to_s == number.to_s }
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
moneta-api-2.1.0 lib/moneta/api/responses/find_bank_accounts_response.rb
moneta-api-2.0.0 lib/moneta/api/responses/find_bank_accounts_response.rb
moneta-api-2.0.0.rc2 lib/moneta/api/responses/find_bank_accounts_response.rb
moneta-api-2.0.0.rc1 lib/moneta/api/responses/find_bank_accounts_response.rb