libeufin

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

commit f3a93726fbc2e1b6ba95131cf472dcc3166a863f
parent cc0ccb35adb2e4854168f409156c9318f7508319
Author: Antoine A <>
Date:   Thu, 30 Oct 2025 12:03:49 +0100

nexus: improve logging

Diffstat:
Mcommon/src/main/kotlin/TalerCommon.kt | 15+++++++++++++++
Mnexus/src/main/kotlin/tech/libeufin/nexus/iso20022/camt.kt | 4++--
2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/common/src/main/kotlin/TalerCommon.kt b/common/src/main/kotlin/TalerCommon.kt @@ -484,6 +484,21 @@ class IbanPayto internal constructor( ): Payto() { override fun toString(): String = parsed.toString() + /** Format an IbanPayto in a more human readable way */ + fun fmt(): String = buildString { + append('(') + append(iban) + if (bic != null) { + append(' ') + append(bic) + } + if (receiverName != null) { + append(' ') + append(receiverName) + } + append(')') + } + /** Transform an IBAN payto URI to its simple form without any query */ fun simple(): String = build(iban.toString(), bic, null) diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/iso20022/camt.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/iso20022/camt.kt @@ -154,7 +154,7 @@ data class IncomingPayment( append(id) if (debtor != null) { append(" debtor=") - append(debtor) + append(debtor.fmt()) } if (subject != null) { append(" subject='") @@ -181,7 +181,7 @@ data class OutgoingPayment( append(id) if (creditor != null) { append(" creditor=") - append(creditor) + append(creditor.fmt()) } if (subject != null) { append(" subject='")