libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit a25c0115b69b6e37ad264d136e38a982993b0fbe
parent 3b548a61b61f3308cff2d54b20edb5636a354a98
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Thu, 26 Mar 2020 10:49:09 +0100

More DB definitions.

Diffstat:
Mnexus/src/main/kotlin/tech/libeufin/nexus/DB.kt | 13+++++++++++++
Mnexus/src/main/kotlin/tech/libeufin/nexus/Main.kt | 3+++
2 files changed, 16 insertions(+), 0 deletions(-)

diff --git 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 @@ -676,6 +676,9 @@ fun main() { "\n\tSubject: $subject," + "\n\tFile name: $fileName" ) + + transaction { + } } call.respondText( "C53 data persisted into the database (WIP).",