libeufin

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

commit 01c8396ceb1b96d23cc232d4384f9ede2ce85876
parent bf5ae27dc73903fcac79b11569bd8c713e6cda16
Author: MS <ms@taler.net>
Date:   Fri, 29 May 2020 13:25:04 +0200

Quick fix on CAMT's message ID (#6269).

Diffstat:
Msandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt @@ -164,7 +164,9 @@ fun buildCamtString(type: Int, history: MutableList<RawPayment>): MutableList<St val ret = mutableListOf<String>() history.forEach { val dashedDate = expectNonNull(it.date) - val zonedDateTime = LocalDateTime.now().toZonedString() + val now = LocalDateTime.now() + val zonedDateTime = now.toZonedString() + ret.add( constructXml(indent = true) { root("Document") { @@ -174,7 +176,7 @@ fun buildCamtString(type: Int, history: MutableList<RawPayment>): MutableList<St element("BkToCstmrStmt") { element("GrpHdr") { element("MsgId") { - text("0") + text("sandbox-${now.millis()}") } element("CreDtTm") { text(zonedDateTime)