commit 80d617847325f99971ec88badb140025df850a5f
parent 1a6db5f62df8ce383efd8ab736ff8c33e4562641
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Mon, 6 Apr 2020 19:57:06 +0200
comments
Diffstat:
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
@@ -15,12 +15,24 @@ import tech.libeufin.util.CryptoUtil
class Taler(app: Route) {
init {
+ /** transform raw CAMT.053 payment records to more Taler-friendly
+ * database rows. */
digest(app)
+
+ /** process the incoming payments, and craft refund payments (although
+ * do not execute them) for those incoming payments that had a wrong
+ * (!= public key) subject. */
refund(app)
+
+ /**
+ * NOTE: Taler exchanges do authenticate via the HTTP Basic auth mechanism,
+ * which is currently _missing_ in the nexus. Therefore, a mapping from auth
+ * header lines to ebics_subscriber needs to be implemented!
+ */
}
/**
- * Payment initiating data structures
+ * Payment initiating data structures: one endpoint "$BASE_URL/transfer".
*/
private data class TalerTransferRequest(
val request_uid: String,
@@ -81,7 +93,7 @@ class Taler(app: Route) {
val reserve_pub: String,
val debit_account: String
)
-
+
private data class TalerAddIncomingResponse(
val timestamp: Long,
val row_id: Long
@@ -128,8 +140,6 @@ class Taler(app: Route) {
)
return@post
}
-
-
}
fun refund(app: Route) {