libeufin

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

commit b0d98e47e6e92e6ec179148f886422c241ecac53
parent bb46f75d6f0429d805d9d0b9d3bc23d9263c073f
Author: MS <ms@taler.net>
Date:   Tue, 20 Dec 2022 17:23:57 +0100

comments

Diffstat:
Msandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt | 22+++++-----------------
1 file changed, 5 insertions(+), 17 deletions(-)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt @@ -309,15 +309,11 @@ object BankAccountTransactionsTable : LongIdTable() { val debtorBic = text("debtorBic").nullable() val debtorName = text("debtorName") val subject = text("subject") - /** - * Amount is a BigInt in String form. - */ + // Amount is a BigDecimal in String form. val amount = text("amount") val currency = text("currency") val date = long("date") - /** - * Unique ID for this payment within the bank account. - */ + // Unique ID for this payment within the bank account. val accountServicerReference = text("accountServicerReference") /** * Payment information ID, which is a reference to the payment initiation @@ -330,10 +326,7 @@ object BankAccountTransactionsTable : LongIdTable() { * only both parties to be registered at the running Sandbox. */ val account = reference("account", BankAccountsTable) - - /** - * Redundantly storing the demobank for query convenience. - */ + // Redundantly storing the demobank for query convenience. val demobank = reference("demobank", DemobankConfigsTable) } @@ -423,13 +416,8 @@ object BankAccountStatementsTable : IntIdTable() { val creationTime = long("creationTime") val xmlMessage = text("xmlMessage") val bankAccount = reference("bankAccount", BankAccountsTable) - /** - * Storing the closing balance (= the one obtained after all - * the transactions mentioned in the statement), a.k.a. CLBD. - * For statement S, this value will act as the opening balance - * (a.k.a. PRCD) of statement S+1. - */ - val balanceClbd = text("balanceClbd") // normally, a BigDecimal + // Signed BigDecimal representing a Camt.053 CLBD field. + val balanceClbd = text("balanceClbd") } class BankAccountStatementEntity(id: EntityID<Int>) : IntEntity(id) {