gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: Make new bank account under loopback.


From: gnunet
Subject: [libeufin] branch master updated: Make new bank account under loopback.
Date: Mon, 01 Jun 2020 16:02:10 +0200

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 7ec8e05  Make new bank account under loopback.
7ec8e05 is described below

commit 7ec8e050a3cae07b2ec02867a1a9f4010743da94
Author: MS <ms@taler.net>
AuthorDate: Mon Jun 1 16:01:00 2020 +0200

    Make new bank account under loopback.
---
 nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
index 801f9a5..c1a1e3c 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
@@ -197,6 +197,14 @@ fun createLoopbackBankConnection(bankConnectionName: 
String, user: NexusUserEnti
         owner = user
         type = "loopback"
     }
+    val bankAccount = jacksonObjectMapper().treeToValue(data, 
BankAccount::class.java)
+    NexusBankAccountEntity.new(bankAccount.account){
+        iban = bankAccount.iban
+        bankCode = bankAccount.bic
+        accountHolder = bankAccount.holder
+        defaultBankConnection = bankConn
+        highestSeenBankMessageId = 0
+    }
 }
 
 fun createEbicsBankConnection(bankConnectionName: String, user: 
NexusUserEntity, data: JsonNode) {
@@ -703,7 +711,7 @@ fun serverMain(dbName: String) {
 
                                 }
                                 else -> {
-                                    throw 
NexusError(HttpStatusCode.BadRequest, "connection type not supported")
+                                    throw 
NexusError(HttpStatusCode.BadRequest, "connection type ${body.type} not 
supported")
                                 }
                             }
                         }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]