[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: nexus fetch: check for BOOK status.
From: |
gnunet |
Subject: |
[libeufin] branch master updated: nexus fetch: check for BOOK status. |
Date: |
Sat, 18 Nov 2023 09:46:47 +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 d7270181 nexus fetch: check for BOOK status.
d7270181 is described below
commit d7270181fd148d43ecc34f1e8f1613af696d5f3c
Author: MS <ms@taler.net>
AuthorDate: Sat Nov 18 09:46:23 2023 +0100
nexus fetch: check for BOOK status.
---
nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt
index ade51fc8..e3c8d37b 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt
@@ -345,6 +345,12 @@ fun notificationForEachTx(
requireUniqueChildNamed("BkToCstmrDbtCdtNtfctn") {
mapEachChildNamed("Ntfctn") {
mapEachChildNamed("Ntry") {
+ requireUniqueChildNamed("Sts") {
+ if (focusElement.textContent != "BOOK")
+ throw Exception("Found non booked transaction,
" +
+ "stop parsing. Status was:
${focusElement.textContent}"
+ )
+ }
val bookDate: Instant =
requireUniqueChildNamed("BookgDt") {
requireUniqueChildNamed("Dt") {
parseBookDate(focusElement.textContent)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: nexus fetch: check for BOOK status.,
gnunet <=