[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: optionally collecting IBAN along regis
From: |
gnunet |
Subject: |
[libeufin] branch master updated: optionally collecting IBAN along registration |
Date: |
Mon, 07 Feb 2022 16:14:18 +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 7677c4f1 optionally collecting IBAN along registration
7677c4f1 is described below
commit 7677c4f17439c802345e6b1b101bd5e30724adf9
Author: ms <ms@taler.net>
AuthorDate: Mon Feb 7 16:14:03 2022 +0100
optionally collecting IBAN along registration
---
sandbox/src/main/kotlin/tech/libeufin/sandbox/JSON.kt | 4 +++-
sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 2 +-
2 files changed, 4 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 d1e82045..33cc8531 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/JSON.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/JSON.kt
@@ -93,7 +93,9 @@ data class EbicsBankAccountRequest(
data class CustomerRegistration(
val username: String,
val password: String,
- val isPublic: Boolean = false
+ val isPublic: Boolean = false,
+ // When missing, it's autogenerated.
+ val iban: String?
)
// Could be used as a general bank account info container.
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index 398283bd..ca4a0db3 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -1408,7 +1408,7 @@ val sandboxApp: Application.() -> Unit = {
requireValidResourceName(req.username)
val bankAccount = transaction {
val bankAccount = BankAccountEntity.new {
- iban = getIban()
+ iban = req.iban ?: getIban()
/**
* For now, keep same semantics of Pybank: a
username
* is AS WELL a bank account label. In other
words, it
--
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: optionally collecting IBAN along registration,
gnunet <=