summaryrefslogtreecommitdiff
path: root/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt
diff options
context:
space:
mode:
authorAntoine A <>2024-03-11 17:14:24 +0100
committerAntoine A <>2024-03-11 17:14:24 +0100
commit0d62875dd2287857c5da172dcb3301062880810a (patch)
tree6880751fb475a9f0db8dcedbf8ef8e78a299f729 /nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt
parent861389ea98224e86f28fdf06570a260c3ae12f90 (diff)
downloadlibeufin-0d62875dd2287857c5da172dcb3301062880810a.tar.gz
libeufin-0d62875dd2287857c5da172dcb3301062880810a.tar.bz2
libeufin-0d62875dd2287857c5da172dcb3301062880810a.zip
Support both 2.5 and 3 EBICS version for download
Diffstat (limited to 'nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt')
-rw-r--r--nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt
index c74ea2f1..ca7b9116 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt
@@ -285,14 +285,13 @@ private suspend fun fetchDocuments(
}
// downloading the content
val doc = doc.doc()
- val (orderType, service) = downloadDocService(doc)
+ val order = downloadDocService(doc, doc == SupportedDocument.PAIN_002_LOGS)
ebicsDownload(
ctx.httpClient,
ctx.cfg,
ctx.clientKeys,
ctx.bankKeys,
- orderType,
- service,
+ order,
lastExecutionTime,
null
) { stream ->