commit ab1219f2da03b123fc509a5d3a5c8f38bd963202 parent c8302ad5cfbc62bcfea7ab59ca53a837f871416b Author: Marcello Stanisci <stanisci.m@gmail.com> Date: Tue, 3 Mar 2020 19:24:01 +0100 execute-payment skeleton Diffstat:
| M | nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt | | | 15 | +++++++++++++++ |
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git 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" }