Sha256: 1ebb4ab5d4aaf072cfd71d81cd6631cb96de231a3da304fef9767950fc5fef69
Contents?: true
Size: 944 Bytes
Versions: 5
Compression:
Stored size: 944 Bytes
Contents
module Luno module Accounts def list_accounts path = 'accounts' authorise_and_send(http_method: :get, path: path) end def list_pending_account_transactions(account_id) path = "accounts/#{account_id}/pending" authorise_and_send(http_method: :get, path: path) end # Path params: min_row=1&max_row=1000 def list_account_transactions(account_id, min_row: -1000, max_row: 0) path = "accounts/#{account_id}/transactions" path_params = { min_row: min_row, max_row: max_row } authorise_and_send(http_method: :get, path: path, params: path_params) end # List balances has been moved and retired as an endpoint # POST paths # TODO: # Create account: /api/1/accounts body: { name: '', currency: '' } # TODO: Check internally that inputs are valid # PUT paths # TODO: # Update Account name: /api/1/accounts/{id}/name body: { name: '' } end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
luno-0.2.15 | lib/luno/accounts.rb |
luno-0.2.14 | lib/luno/accounts.rb |
luno-0.2.13 | lib/luno/accounts.rb |
luno-0.2.12 | lib/luno/accounts.rb |
luno-0.2.11 | lib/luno/accounts.rb |