[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: camt53 tick
From: |
gnunet |
Subject: |
[libeufin] branch master updated: camt53 tick |
Date: |
Tue, 24 Aug 2021 22:05:28 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 10ff8c1 camt53 tick
10ff8c1 is described below
commit 10ff8c1160755d5f283603b02d7949c00c041f2e
Author: ms <ms@taler.net>
AuthorDate: Tue Aug 24 22:04:55 2021 +0200
camt53 tick
---
sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt | 3 +++
sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 15 ++++++++++++++-
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
index 90fa2c0..6dc1fe7 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
@@ -309,6 +309,9 @@ object BankAccountTransactionsTable : Table() {
val pmtInfId = text("pmtInfId").nullable()
val direction = text("direction")
val account = reference("account", BankAccountsTable)
+
+ // indicates whether the transaction got included in a C53 statement.
+ val c53 = bool("c53").default(false)
// It can't be unique (anymore), because one table might contain
// the same payment twice: once as DBIT and once as CRDT.
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index 3e952b3..269c510 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -134,6 +134,14 @@ class Config : CliktCommand("Insert one configuration into
the database") {
}
}
+class Camt053Tick : CliktCommand(
+ "Make a new Camt.053 time tick; all the fresh transactions" +
+ "will be inserted in a new Camt.053 report"
+) {
+ override fun run() {
+ TODO("Not yet implemented")
+ }
+}
class MakeTransaction : CliktCommand("Wire-transfer money between Sandbox bank
accounts") {
init {
context {
@@ -308,7 +316,12 @@ class SandboxCommand :
CliktCommand(invokeWithoutSubcommand = true, printHelpOnE
}
fun main(args: Array<String>) {
- SandboxCommand().subcommands(Serve(), ResetTables(), Config(),
MakeTransaction()).main(args)
+ SandboxCommand().subcommands(
+ Serve(),
+ ResetTables(),
+ Config(),
+ MakeTransaction(),
+ Camt053Tick()).main(args)
}
suspend inline fun <reified T : Any> ApplicationCall.receiveJson(): T {
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: camt53 tick,
gnunet <=