[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: book the payment
From: |
gnunet |
Subject: |
[libeufin] branch master updated: book the payment |
Date: |
Mon, 18 May 2020 11:25:18 +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 9462c0b book the payment
9462c0b is described below
commit 9462c0ba34c41ceef72e89693dfdafc473872e27
Author: MS <address@hidden>
AuthorDate: Mon May 18 11:25:14 2020 +0200
book the payment
---
sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt | 2 +-
sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
index 0a635a7..9e7d7dd 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
@@ -239,7 +239,7 @@ class PaymentEntity(id: EntityID<Int>) : IntEntity(id) {
var creditorIban by PaymentsTable.creditorIban
var debitorIban by PaymentsTable.debitorIban
var subject by PaymentsTable.subject
- var amount by PaymentsTable.amount
+ var amount by PaymentsTable.amount /** in the CURRENCY:X.Y format */
var date by PaymentsTable.date /** Date when the payment was persisted in
this system. */
}
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index 68b494f..35e5928 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -152,7 +152,12 @@ fun main() {
post("/admin/payments") {
val body = call.receive<RawPayment>()
transaction {
-
+ PaymentEntity.new {
+ creditorIban = body.creditorIban
+ debitorIban = body.debitorIban
+ subject = body.subject
+ amount = body.amount
+ }
}
call.respondText("Payment created")
return@post
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: book the payment,
gnunet <=