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:, current_page: nil, per_page: nil) ⇒ Object



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

def list_transactions(bank_account:, current_page: nil, per_page: nil)
  query = prepare_query_string(, current_page, per_page)
  response = get("/transactions?#{query}")

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