libeufin

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

commit 3b573ab44312157c9a6022c8165f1222e0169979
parent 12a8b24748ab76f3628ca3bb46ff93383c36b312
Author: ms <ms@taler.net>
Date:   Wed, 26 Jan 2022 09:45:56 +0100

creating bank's account along the 'config' step

Diffstat:
Msandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt @@ -155,13 +155,20 @@ class Config : CliktCommand("Insert one configuration into the database") { println("Error, demobank ${nameOption} exists already, not overriding it.") exitProcess(1) } - DemobankConfigEntity.new { + val demoBank = DemobankConfigEntity.new { currency = currencyOption bankDebtLimit = bankDebtLimitOption usersDebtLimit = usersDebtLimitOption allowRegistrations = allowRegistrationsOption name = nameOption } + BankAccountEntity.new { + iban = getIban() + label = "bank" // used by the wire helper + owner = "bank" // used by the person name finder + // For now, the model assumes always one demobank + this.demoBank = demoBank + } } } }