commit 73f8428c78daa7f4893b871439108714e90e4b67 parent a06dd1032e28f6d6ad7f8de1e0b90edfc883d18e Author: ms <ms@taler.net> Date: Wed, 1 Sep 2021 18:19:24 +0200 DCE Diffstat:
| M | sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | | | 33 | +-------------------------------- |
1 file changed, 1 insertion(+), 32 deletions(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt @@ -665,38 +665,7 @@ fun serverMain(dbName: String, port: Int) { } call.respond(object {}) } - - /** - * Adds a new payment to the book. - * - * FIXME: This API is deprecated, but still used - * in some test cases. It should be removed entirely. - */ - post("/admin/payments") { - val body = call.receiveJson<RawPayment>() - val randId = getRandomString(16) - transaction { - val localIban = if (body.direction == "DBIT") body.debtorIban else body.creditorIban - BankAccountTransactionEntity.new { - creditorIban = body.creditorIban - creditorBic = body.creditorBic - creditorName = body.creditorName - debtorIban = body.debtorIban - debtorBic = body.debtorBic - debtorName = body.debtorName - subject = body.subject - amount = body.amount - currency = body.currency - date = getUTCnow().toInstant().toEpochMilli() - accountServicerReference = "sandbox-$randId" - account = getBankAccountFromIban(localIban) - direction = body.direction - } - } - call.respondText("Payment created") - return@post - } - + /** * Associates a new bank account with an existing Ebics subscriber. */