View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0006086||Taler||bank API (C)||public||2020-02-10 19:41||2020-02-11 22:25|
|Priority||normal||Severity||feature||Reproducibility||have not tried|
|Product Version||git (master)|
|Target Version||0.7||Fixed in Version|
|Summary||0006086: Provide bank API endpoint to get current account balance|
|Description||One way of doing this could be to add some fields to the basic JSON response to include the beginning/ending balances around the history that is being returned.|
For the cashier app, only the current balance is needed.
|Tags||No tags attached.|
I have proposed (but not implemented!) an API for this in a757d05..02507a8 (docs.git). Torsten: please let me know if the API is clear and will suffice in your opinion. Marcello/Florian: please make sure this is implementable for libeufin/Nexus.
Looking at this change, I would either choose the incoming or the outgoing history endpoint and then do (current_incoming - total_outgoing_end) or (total_incoming_end - current_outgoing) to calculate the current balance, right?
Unrelated to the issue at hand: The change doesn't make clear anymore that outgoing_transactions and incoming_transactions is an array.
||I fixed the array issue, but then Florian now convinced me that this is the 'wrong' place to do this. So most of my change will be reverted. We discussed that likely Marcello will write the 'right' API (ideally spec+implementation). Stay tuned...|
|2020-02-10 19:41||grote||New Issue|
|2020-02-10 19:41||grote||Status||new => assigned|
|2020-02-10 19:41||grote||Assigned To||=> Christian Grothoff|
|2020-02-10 23:49||Christian Grothoff||Note Added: 0015340|
|2020-02-10 23:49||Christian Grothoff||Assigned To||Christian Grothoff => grote|
|2020-02-10 23:49||Christian Grothoff||Status||assigned => feedback|
|2020-02-10 23:49||Christian Grothoff||Product Version||=> git (master)|
|2020-02-10 23:49||Christian Grothoff||Target Version||=> 0.7|
|2020-02-10 23:49||Christian Grothoff||Note Edited: 0015340||View Revisions|
|2020-02-11 00:15||grote||Note Added: 0015343|
|2020-02-11 22:25||Christian Grothoff||Note Added: 0015348|