Module: Qonto::Actions::Transactions

Included in:
Client
Defined in:
lib/qonto/actions/transactions.rb

Instance Method Summary collapse

Instance Method Details

#list_transactions(bank_account:, status: nil, current_page: nil, per_page: nil) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/qonto/actions/transactions.rb', line 4

def list_transactions(bank_account:, status: nil, current_page: nil, per_page: nil)
  query = prepare_query(, status, current_page, per_page)

  response = get("/transactions", query: query)

  modelize_transactions(response.parsed_response['transactions'])
end