gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: DCE


From: gnunet
Subject: [libeufin] branch master updated: DCE
Date: Wed, 01 Sep 2021 18:19:30 +0200

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

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 73f8428  DCE
73f8428 is described below

commit 73f8428c78daa7f4893b871439108714e90e4b67
Author: ms <ms@taler.net>
AuthorDate: Wed Sep 1 18:19:24 2021 +0200

    DCE
---
 .../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
index cd043a7..243cb60 100644
--- 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.
              */

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