Module: Telleroo::API::Transactions
- Included in:
- Telleroo::API
- Defined in:
- lib/telleroo/api/transactions.rb
Overview
Telleroo Accounts. These are Bank Accounts
Instance Method Summary collapse
- #get_transaction(id) ⇒ Hash
- #transactions(account_id: nil, start_date: nil, end_date: nil, page: 1) ⇒ Array
Instance Method Details
#get_transaction(id) ⇒ Hash
93 94 95 |
# File 'lib/telleroo/api/transactions.rb', line 93 def get_transaction(id) get("transactions/#{id}") end |
#transactions(account_id: nil, start_date: nil, end_date: nil, page: 1) ⇒ Array
55 56 57 58 59 60 61 62 63 |
# File 'lib/telleroo/api/transactions.rb', line 55 def transactions(account_id: nil, start_date: nil, end_date: nil, page: 1) params = { account_id: account_id, start_date: start_date, end_date: end_date, page: page } get('transactions', params) end |