commit 2a01dc0254512e8cab98f512e591ed4b564e5220
parent 0b6411791fdb13f226d6bbe8546b141cba86a1eb
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Tue, 24 Mar 2020 15:46:04 +0100
Fill missing data.
Diffstat:
1 file changed, 21 insertions(+), 9 deletions(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
@@ -208,18 +208,31 @@ fun buildCamtString(history: SizedIterable<BankTransactionEntity>, type: Int): S
element("Acct") {
// mandatory account identifier
- element("Id/IBAN")
- element("Ccy")
- element("Ownr/Nm")
+ element("Id/IBAN") {
+ text("OWNER IBAN")
+ }
+ element("Ccy") {
+ text("EUR")
+ }
+ element("Ownr/Nm") {
+ text("Max Mustermann")
+ }
element("Svcr/FinInstn") {
- element("BIC")
- element("Nm")
+ element("BIC") {
+ text("XY")
+ }
+ element("Nm") {
+ text("Libeufin Bank")
+ }
element("Othr") {
- element("Id")
- element("Issr")
+ element("Id") {
+ text("0")
+ }
+ element("Issr") {
+ text("XY")
+ }
}
}
-
}
element("Bal") {
element("Tp/CdOrPrtry/Cd") {
@@ -243,7 +256,6 @@ fun buildCamtString(history: SizedIterable<BankTransactionEntity>, type: Int): S
now.toDashedDate()
}
}
-
element("Bal") {
element("Tp/CdOrPrtry/Cd") {
/* CLBD stands for "Closing booked balance", and it