[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: Taler payment instructions.
From: |
gnunet |
Subject: |
[libeufin] branch master updated: Taler payment instructions. |
Date: |
Mon, 06 Apr 2020 17:20:14 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 277152a Taler payment instructions.
277152a is described below
commit 277152ade32dfb2340575f63dc8ff3bd4c762e4c
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Apr 6 17:19:21 2020 +0200
Taler payment instructions.
Defining request and response types.
---
nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt | 2 +-
nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt | 15 +++++++++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
index cfc6955..b9b0f19 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
@@ -622,7 +622,7 @@ fun main() {
/* Taler class will initialize all the relevant handlers. */
Taler(this)
-
+
post("/ebics/subscribers/{id}/collect-transactions-c53") {
val id = expectId(call.parameters["id"])
val paramsJson = call.receive<EbicsStandardOrderParamsJson>()
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
index 5ae5c49..6a758df 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
@@ -9,6 +9,7 @@ import io.ktor.routing.Route
import io.ktor.routing.post
import org.jetbrains.exposed.sql.and
import org.jetbrains.exposed.sql.transactions.transaction
+import tech.libeufin.util.Amount
import tech.libeufin.util.CryptoUtil
class Taler(app: Route) {
@@ -18,6 +19,20 @@ class Taler(app: Route) {
refund(app)
}
+ private data class TalerTransferRequest(
+ val request_uid: String,
+ val amount: String,
+ val exchange_base_url: String,
+ val wtid: String,
+ val credit_account: String
+ )
+
+ private data class TalerTransferResponse(
+ // point in time when the nexus put the payment instruction into the
database.
+ val timestamp: Long,
+ val row_id: Long
+ )
+
fun digest(app: Route) {
app.post("/ebics/taler/{id}/digest-incoming-transactions") {
val id = expectId(call.parameters["id"])
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: Taler payment instructions.,
gnunet <=