libeufin

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

commit 614d0d2085fde36955b1e166e826cdcd1cf9190d
parent d09e529630a321c3f21ff0f8dab0a467c21dcf2c
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Wed, 18 Mar 2020 17:36:10 +0100

Accept date range to request CRZ.

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

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt @@ -531,7 +531,6 @@ fun main() { }.firstOrNull() ?: throw NexusError(HttpStatusCode.Accepted, reason = "No ready payments found") Triple(entity.id, createPain001document(entity), entity.debtorAccount) } - logger.debug("Processing payment for bank account: ${debtorAccount}") logger.debug("Uploading PAIN.001: ${painDoc}") val subscriberDetails = getSubscriberDetailsFromBankAccount(debtorAccount) doEbicsUploadTransaction( @@ -560,12 +559,14 @@ fun main() { post("/ebics/subscribers/{id}/fetch-payment-status") { // FIXME(marcello?): Fetch pain.002 and mark transfers in it as "failed" val id = expectId(call.parameters["id"]) + val paramsJson = call.receive<EbicsStandardOrderParamsJson>() + val orderParams = paramsJson.toOrderParams() val subscriberData = getSubscriberDetailsFromId(id) val response = doEbicsDownloadTransaction( client, subscriberData, "CRZ", - EbicsStandardOrderParams() + orderParams ) when (response) { is EbicsDownloadSuccessResult ->