libeufin

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

commit d29233604d1bb8c9f426552fbe18892a1f36f09d
parent a33b2a442aa6a493edbc614367dde49d33751cd7
Author: Antoine A <>
Date:   Tue,  2 Jun 2026 17:38:33 +0200

nexus: fix fake incoming cmd

Diffstat:
Mlibeufin-nexus/src/main/kotlin/tech/libeufin/nexus/cli/Testing.kt | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/libeufin-nexus/src/main/kotlin/tech/libeufin/nexus/cli/Testing.kt b/libeufin-nexus/src/main/kotlin/tech/libeufin/nexus/cli/Testing.kt @@ -106,8 +106,14 @@ class FakeIncoming : TalerCmd() { val reference = creditPayto?.chQrr ?: payto?.chQrr ?: chQrr creditPayto?.let { - require(it.iban.toString() == cfg.ebics.account.iban) { - "Creditor must be exchange expected {cfg.ebics.account.iban} got {it.iban}" + if (reference != null) { + require(it.iban.toString() == cfg.ebics.qrIban) { + "Creditor must be the exchange QRR account expected ${cfg.ebics.account.iban} got ${it.iban}" + } + } else { + require(it.iban.toString() == cfg.ebics.account.iban) { + "Creditor must be the exchange expected ${cfg.ebics.account.iban} got ${it.iban}" + } } }