libeufin

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

commit 6bd9172326c6a1a3a03854a7ffebd37ac9135e4b
parent 70ab380cd9ae28f81bc0dbbf07e6d47c6af839dc
Author: Antoine A <>
Date:   Fri, 24 Jan 2025 09:59:36 +0100

nexus: possible postfinance service level error fix

Diffstat:
Mnexus/src/main/kotlin/tech/libeufin/nexus/iso20022/pain001.kt | 17+++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/iso20022/pain001.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/iso20022/pain001.kt @@ -1,6 +1,6 @@ /* * This file is part of LibEuFin. - * Copyright (C) 2024 Taler Systems S.A. + * Copyright (C) 2024-2025 Taler Systems S.A. * LibEuFin is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -89,13 +89,14 @@ fun createPain001( el("BtchBookg", "false") el("NbOfTxs", msg.txs.size.toString()) el("CtrlSum", totalAmount) - el("PmtTpInf/SvcLvl/Cd", - when (dialect) { - Dialect.postfinance -> "SDVA" - Dialect.maerki_baumann -> "SDVA" // TODO - Dialect.gls -> "SEPA" - } - ) + if (dialect != Dialect.postfinance) { + el("PmtTpInf/SvcLvl/Cd", + when (dialect) { + Dialect.postfinance, Dialect.maerki_baumann -> "SDVA" // TODO + Dialect.gls -> "SEPA" + } + ) + } el("ReqdExctnDt/Dt", DateTimeFormatter.ISO_DATE.format(zonedTimestamp)) el("Dbtr/Nm", msg.debtor.name) el("DbtrAcct/Id/IBAN", msg.debtor.iban)