diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2020-03-23 19:54:20 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2020-03-23 19:54:20 +0100 |
commit | 79288db585d4119c608dfba5337b17a36311c081 (patch) | |
tree | b3c84fe4043fbf51b6ff86e4009bb11e2f3ae20a /sandbox | |
parent | 1530358c30e56296d06d9ac1ae88c6e4cf3fa081 (diff) | |
download | libeufin-79288db585d4119c608dfba5337b17a36311c081.tar.gz libeufin-79288db585d4119c608dfba5337b17a36311c081.tar.bz2 libeufin-79288db585d4119c608dfba5337b17a36311c081.zip |
Include forgotten elements.
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt | 14 |
1 files changed, 5 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 index f8e8d21f..4d511922 100644 --- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt +++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt @@ -146,10 +146,7 @@ fun buildCamtString(history: SizedIterable<BankTransactionEntity>, type: Int): S attribute("xmlns:schemaLocation", "urn:iso:std:iso:20022:tech:xsd:camt.053.001.02 camt.053.001.02.xsd") element("BkToCstmrStmt") { element("GrpHdr") { - element("MsgId") { - // unique identifier for a message - text("id under group header") - } + element("MsgId") element("CreDtTm") element("MsgPgntn") { element("PgNb") @@ -196,7 +193,7 @@ fun buildCamtString(history: SizedIterable<BankTransactionEntity>, type: Int): S element("CdtDbtInd") { // CRDT or DBIT here } - element("Dt") { + element("Dt/Dt") { // date of this balance } } @@ -215,9 +212,7 @@ fun buildCamtString(history: SizedIterable<BankTransactionEntity>, type: Int): S element("CdtDbtInd") { // CRDT or DBIT here } - element("Dt") { - // date of this balance - } + element("Dt/Dt") } history.forEach { element("Ntry") { @@ -232,6 +227,7 @@ fun buildCamtString(history: SizedIterable<BankTransactionEntity>, type: Int): S } element("BookDt/Dt") // date of the booking element("ValDt/Dt") // date of assets' actual (un)availability + element("AcctSvcrRef") element("BkTxCd") { /* "Set of elements used to fully identify the type of underlying * transaction resulting in an entry". */ @@ -290,7 +286,7 @@ fun buildCamtString(history: SizedIterable<BankTransactionEntity>, type: Int): S } } } -} +} /** * Builds CAMT response. |