gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: submit all payments per API


From: gnunet
Subject: [libeufin] branch master updated: submit all payments per API
Date: Sun, 17 Jan 2021 00:41:22 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new c78fd09  submit all payments per API
c78fd09 is described below

commit c78fd0923352c51aa9c7802e18abc198b4ad06b9
Author: Florian Dold <florian@dold.me>
AuthorDate: Sun Jan 17 00:41:17 2021 +0100

    submit all payments per API
---
 .../src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt | 11 +++++++++++
 1 file changed, 11 insertions(+)

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 9ec2b3d..af2717d 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
@@ -558,6 +558,17 @@ fun serverMain(dbName: String, host: String, port: Int) {
                 return@post
             }
 
+            post("/bank-accounts/{accountid}/submit-all-payment-initiations") {
+                val uuid = ensureLong(call.parameters["uuid"])
+                val accountId = ensureNonNull(call.parameters["accountid"])
+                val res = transaction {
+                    authenticateRequest(call.request)
+                }
+                submitAllPaymentInitiations(client, accountId)
+                call.respondText("Payment ${uuid} submitted")
+                return@post
+            }
+
             get("/bank-accounts/{accountid}/payment-initiations") {
                 val ret = InitiatedPayments()
                 transaction {

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