libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit c78fd0923352c51aa9c7802e18abc198b4ad06b9
parent 9b94c90afbf01d77271657f9f239da20cee51e4d
Author: Florian Dold <florian@dold.me>
Date:   Sun, 17 Jan 2021 00:41:17 +0100

submit all payments per API

Diffstat:
Mnexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git 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 {