libeufin

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

commit a492988243a0dfcb72869c0b6a4d85cb3c1a9bcb
parent 47070ef9e1fa32703203447abb772d638b1191be
Author: MS <ms@taler.net>
Date:   Thu, 26 Oct 2023 11:19:34 +0200

expecting BIC for the receiver

Diffstat:
Mnexus/src/main/kotlin/tech/libeufin/nexus/Iso20022.kt | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Iso20022.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/Iso20022.kt @@ -43,6 +43,9 @@ fun createPain001( } if (debtorMetadataFile.bank_code == null) throw Exception("Need debtor BIC, but not found in the debtor account metadata file.") + // Current version expects the receiver BIC, TODO: try also without. + if (creditAccount.bic == null) + throw Exception("Expecting the receiver BIC.") return constructXml(indent = true) { root("Document") {