gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: nexus fetch: adapting the parser to ca


From: gnunet
Subject: [libeufin] branch master updated: nexus fetch: adapting the parser to camt.054 2019
Date: Wed, 22 Nov 2023 07:06:04 +0100

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 4bead8c6 nexus fetch: adapting the parser to camt.054 2019
4bead8c6 is described below

commit 4bead8c64fd7e0b45f61de8a4e213526add165b5
Author: MS <ms@taler.net>
AuthorDate: Wed Nov 22 07:05:15 2023 +0100

    nexus fetch: adapting the parser to camt.054 2019
---
 nexus/src/main/kotlin/tech/libeufin/nexus/Iso20022.kt | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Iso20022.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/Iso20022.kt
index 46622f6e..032e3ae0 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Iso20022.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Iso20022.kt
@@ -261,9 +261,11 @@ fun parseIncomingTxNotif(
             }
             // warn: it might need the postal address too..
             requireUniqueChildNamed("Dbtr") {
-                requireUniqueChildNamed("Nm") {
-                    val urlEncName = 
URLEncoder.encode(focusElement.textContent, "utf-8")
-                    debtorPayto.append("?receiver-name=$urlEncName")
+                requireUniqueChildNamed("Pty") {
+                    requireUniqueChildNamed("Nm") {
+                        val urlEncName = 
URLEncoder.encode(focusElement.textContent, "utf-8")
+                        debtorPayto.append("?receiver-name=$urlEncName")
+                    }
                 }
             }
         }
@@ -298,10 +300,12 @@ private fun notificationForEachTx(
                 mapEachChildNamed("Ntfctn") {
                     mapEachChildNamed("Ntry") {
                         requireUniqueChildNamed("Sts") {
-                            if (focusElement.textContent != "BOOK")
-                                throw Exception("Found non booked transaction, 
" +
-                                        "stop parsing.  Status was: 
${focusElement.textContent}"
-                                )
+                            requireUniqueChildNamed("Cd") {
+                                if (focusElement.textContent != "BOOK")
+                                    throw Exception("Found non booked 
transaction, " +
+                                            "stop parsing.  Status was: 
${focusElement.textContent}"
+                                    )
+                            }
                         }
                         val bookDate: Instant = 
requireUniqueChildNamed("BookgDt") {
                             requireUniqueChildNamed("Dt") {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]