[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-docs] branch master updated: document api change: CircuitAccountM
From: |
gnunet |
Subject: |
[taler-docs] branch master updated: document api change: CircuitAccountMinimalData should include account balance |
Date: |
Mon, 06 Mar 2023 13:21:14 +0100 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository docs.
The following commit(s) were added to refs/heads/master by this push:
new 3d5accf document api change: CircuitAccountMinimalData should include
account balance
3d5accf is described below
commit 3d5accf0aed02c7e667a98ebd4a375aaae75e848
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Mon Mar 6 09:21:08 2023 -0300
document api change: CircuitAccountMinimalData should include account
balance
---
core/api-bank-access.rst | 10 ++++++----
libeufin/api-sandbox.rst | 28 +++++++++++++++++-----------
2 files changed, 23 insertions(+), 15 deletions(-)
diff --git a/core/api-bank-access.rst b/core/api-bank-access.rst
index 29b397a..0b01a84 100644
--- a/core/api-bank-access.rst
+++ b/core/api-bank-access.rst
@@ -70,12 +70,14 @@ name and account password, at least in the GNU Taler demo
bank implementation.
.. ts:def:: BankAccountBalanceResponse
+ interface Balance {
+ amount: Amount;
+ credit_debit_indicator: "credit" | "debit";
+ }
+
interface BankAccountBalanceResponse {
// Available balance on the account.
- balance: {
- amount: Amount;
- credit_debit_indicator: "credit" | "debit";
- };
+ balance: Balance;
// payto://-URI of the account. (New)
paytoUri: string;
}
diff --git a/libeufin/api-sandbox.rst b/libeufin/api-sandbox.rst
index 94cc0c8..05ae3a1 100644
--- a/libeufin/api-sandbox.rst
+++ b/libeufin/api-sandbox.rst
@@ -232,20 +232,26 @@ Accounts
.. ts:def:: CircuitAccounts
- interfaces CircuitAccounts {
- customers: CircuitAccountMinimalData[];
- }
+ interfaces CircuitAccounts {
+ customers: CircuitAccountMinimalData[];
+ }
.. ts:def:: CircuitAccountMinimalData
- interface CircuitAccountMinimalData {
- // Username
- username: string;
-
- // Legal subject owning the account.
- name: string;
-
- }
+ interface Balance {
+ amount: Amount;
+ credit_debit_indicator: "credit" | "debit";
+ }
+ interface CircuitAccountMinimalData {
+ // Username
+ username: string;
+
+ // Legal subject owning the account.
+ name: string;
+
+ // current balance of the account
+ balance: Balance;
+ }
:http:statuscode:`200 OK`:
At least one account was found.
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-docs] branch master updated: document api change: CircuitAccountMinimalData should include account balance,
gnunet <=