[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: extend /public-account API
From: |
gnunet |
Subject: |
[libeufin] branch master updated: extend /public-account API |
Date: |
Wed, 12 Jan 2022 19:05:22 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 25621d2b extend /public-account API
25621d2b is described below
commit 25621d2b52fd6da220a35ac2f1b525909eb27fb7
Author: ms <ms@taler.net>
AuthorDate: Wed Jan 12 19:04:47 2022 +0100
extend /public-account API
---
sandbox/src/main/kotlin/tech/libeufin/sandbox/JSON.kt | 5 ++++-
sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 3 ++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/JSON.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/JSON.kt
index 7f19d2e3..b7d0c3f2 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/JSON.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/JSON.kt
@@ -97,7 +97,10 @@ data class CustomerRegistration(
// Could be used as a general bank account info container.
data class PublicAccountInfo(
val balance: String,
- val iban: String
+ val iban: String,
+ // Name / Label of the bank account _and_ of the
+ // Sandbox username that owns it.
+ val accountLabel: String
// more ..?
)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index 7da687c9..0412314f 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -1361,7 +1361,8 @@ val sandboxApp: Application.() -> Unit = {
ret.publicAccounts.add(
PublicAccountInfo(
balance =
"${demobank.currency}:$balanceIter",
- iban = it.iban
+ iban = it.iban,
+ accountLabel = it.label
)
)
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: extend /public-account API,
gnunet <=