gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: More DB definitions.


From: gnunet
Subject: [libeufin] branch master updated: More DB definitions.
Date: Thu, 26 Mar 2020 10:49:24 +0100

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 a25c011  More DB definitions.
a25c011 is described below

commit a25c0115b69b6e37ad264d136e38a982993b0fbe
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Mar 26 10:49:09 2020 +0100

    More DB definitions.
---
 nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt   | 13 +++++++++++++
 nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt |  3 +++
 2 files changed, 16 insertions(+)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt
index 2013351..1363638 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt
@@ -30,6 +30,19 @@ object EbicsRawBankTransactionsTable : IdTable<Long>() {
     val debitorIban = text("creditorIban")
 }
 
+class EbicsRawBankTransactionEntry(id: EntityID<Long>) : LongEntity(id) {
+    companion object : IntEntityClass<Pain001Entity>(Pain001Table)
+    var sourceType by EbicsRawBankTransactionsTable.sourceType
+    var sourceFileName by EbicsRawBankTransactionsTable.sourceFileName
+    var unstructuredRemittanceInformation by 
EbicsRawBankTransactionsTable.unstructuredRemittanceInformation
+    var transactionType by EbicsRawBankTransactionsTable.transactionType
+    var currency by EbicsRawBankTransactionsTable.currency
+    var amount by EbicsRawBankTransactionsTable.amount
+    var creditorIban = EbicsRawBankTransactionsTable.creditorIban
+    var debitorIban = EbicsRawBankTransactionsTable.debitorIban
+    var nexusSubscriber by EbicsSubscriberEntity referencedOn 
EbicsRawBankTransactionsTable.nexusSubscriber
+}
+
 object Pain001Table : IntIdTableWithAmount() {
     val msgId = long("msgId").uniqueIndex().autoIncrement()
     val paymentId = long("paymentId")
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
index ea7134d..9e81416 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
@@ -676,6 +676,9 @@ fun main() {
                                         "\n\tSubject: $subject," +
                                         "\n\tFile name: $fileName"
                             )
+
+                            transaction {
+                            }
                         }
                         call.respondText(
                             "C53 data persisted into the database (WIP).",

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]