[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: Data structures for test API.
From: |
gnunet |
Subject: |
[libeufin] branch master updated: Data structures for test API. |
Date: |
Mon, 06 Apr 2020 18:06:10 +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 1a6db5f Data structures for test API.
1a6db5f is described below
commit 1a6db5f62df8ce383efd8ab736ff8c33e4562641
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Apr 6 18:05:55 2020 +0200
Data structures for test API.
---
nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt | 54 ++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
index 6a758df..e8a5aa3 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
@@ -19,6 +19,9 @@ class Taler(app: Route) {
refund(app)
}
+ /**
+ * Payment initiating data structures
+ */
private data class TalerTransferRequest(
val request_uid: String,
val amount: String,
@@ -33,6 +36,57 @@ class Taler(app: Route) {
val row_id: Long
)
+ /**
+ * History accounting data structures
+ */
+
+ /**
+ * Incoming payments.
+ */
+ private data class TalerIncomingBankTransaction(
+ val row_id: Long,
+ val date: Long, // timestamp
+ val amount: String,
+ val credit_account: String, // payto form,
+ val debit_account: String,
+ val reserve_pub: String
+ )
+
+ private data class TalerIncomingHistory(
+ var incoming_transactions: MutableList<TalerIncomingBankTransaction> =
mutableListOf()
+ )
+
+ /**
+ * Outgoing payments.
+ */
+ private data class TalerOutgoingBankTransaction(
+ val row_id: Long,
+ val date: Long, // timestamp
+ val amount: String,
+ val credit_account: String, // payto form,
+ val debit_account: String,
+ val wtid: String,
+ val exchange_base_url: String
+ )
+
+ private data class TalerOutgoingHistory(
+ var outgoing_transactions: MutableList<TalerOutgoingBankTransaction> =
mutableListOf()
+ )
+
+ /**
+ * Test APIs' data structures.
+ */
+ private data class TalerAdminAddIncoming(
+ val amount: String,
+ val reserve_pub: String,
+ val debit_account: String
+ )
+
+ private data class TalerAddIncomingResponse(
+ 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: Data structures for test API.,
gnunet <=