gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: following documentation


From: gnunet
Subject: [libeufin] branch master updated: following documentation
Date: Thu, 25 Jun 2020 05:35:14 +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 3b102b5  following documentation
3b102b5 is described below

commit 3b102b5382b8a4b7b86c9db6cf140724e6085ac5
Author: MS <ms@taler.net>
AuthorDate: Thu Jun 25 05:34:53 2020 +0200

    following documentation
---
 nexus/src/main/kotlin/tech/libeufin/nexus/server/JSON.kt        | 4 ++--
 nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/server/JSON.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/server/JSON.kt
index 13888cd..6f0215d 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/server/JSON.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/server/JSON.kt
@@ -330,6 +330,6 @@ data class CreateAccountTaskRequest(
 )
 
 data class ImportBankAccount(
-    val accountId: String,
-    val localName: String
+    val offeredAccountId: String,
+    val nexusBankAccountId: String
 )
\ No newline at end of file
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
index 1664476..2e7c922 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
@@ -808,14 +808,14 @@ fun serverMain(dbName: String, host: String) {
                     call.respond(ret)
                 }
                 // import one account into libeufin.
-                post("/accounts/import") {
+                post("/import-account") {
                     val body = call.receive<ImportBankAccount>()
                     transaction {
                         val conn = requireBankConnection(call, "connid")
-                        val account = 
OfferedBankAccountEntity.findById(body.accountId) ?: throw NexusError(
-                            HttpStatusCode.NotFound, "Could not found raw bank 
account '${body.accountId}'"
+                        val account = 
OfferedBankAccountEntity.findById(body.offeredAccountId) ?: throw NexusError(
+                            HttpStatusCode.NotFound, "Could not found raw bank 
account '${body.offeredAccountId}'"
                         )
-                        val importedBankAccount = 
NexusBankAccountEntity.new(body.localName) {
+                        val importedBankAccount = 
NexusBankAccountEntity.new(body.nexusBankAccountId) {
                             iban = account.iban
                             bankCode = account.bankCode
                             defaultBankConnection = conn

-- 
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]