gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: execute-payment skeleton


From: gnunet
Subject: [libeufin] branch master updated: execute-payment skeleton
Date: Tue, 03 Mar 2020 19:24:10 +0100

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

marcello pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new ab1219f  execute-payment skeleton
ab1219f is described below

commit ab1219f2da03b123fc509a5d3a5c8f38bd963202
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Mar 3 19:24:01 2020 +0100

    execute-payment skeleton
---
 nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
index 52cec6c..8cf6859 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
@@ -534,6 +534,21 @@ fun main() {
                 return@get
             }
 
+            /**
+             * This function triggers the Nexus to perform all those 
un-submitted payments.
+             * Ideally, this logic will be moved into some more automatic 
mechanism.
+             */
+            post("/ebics/admin/execute-payments") {
+                transaction {
+                    Pain001Entity.find {
+                        Pain001Table.submitted eq false
+                    }.forEach {
+                        // FIXME TODO
+                    }
+                }
+
+            }
+
             post("/ebics/subscribers/{id}/fetch-payment-status") {
                 // FIXME(marcello?):  Fetch pain.002 and mark transfers in it 
as "failed"
             }

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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