From 8d9855efe89db589d3d51ec99e67d38fb762df64 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 24 Feb 2022 20:59:27 +0100 Subject: [PATCH] Added log output to inform for which time period accounts transactions are fetched --- fints4k/src/nativeMain/kotlin/NativeApp.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fints4k/src/nativeMain/kotlin/NativeApp.kt b/fints4k/src/nativeMain/kotlin/NativeApp.kt index cec9f515..e0f373bc 100644 --- a/fints4k/src/nativeMain/kotlin/NativeApp.kt +++ b/fints4k/src/nativeMain/kotlin/NativeApp.kt @@ -11,6 +11,7 @@ import kotlinx.serialization.json.Json import net.dankito.banking.client.model.AccountTransaction import net.dankito.banking.client.model.CustomerAccount import net.dankito.banking.client.model.parameter.GetAccountDataParameter +import net.dankito.banking.client.model.parameter.RetrieveTransactions import net.dankito.banking.client.model.parameter.TransferMoneyParameter import net.dankito.banking.fints.FinTsClient import net.dankito.banking.fints.callback.SimpleFinTsClientCallback @@ -32,6 +33,12 @@ class NativeApp { } fun getAccountData(param: GetAccountDataParameter, outputFilePath: String? = null, outputFormat: OutputFormat = OutputFormat.Json) { + if (param.retrieveTransactions != RetrieveTransactions.No) { + println("Getting balance and account transactions from ${param.retrieveTransactionsFrom ?: "ab urbe condita"} to ${param.retrieveTransactionsTo ?: LocalDate.todayAtEuropeBerlin()}") + } else { + println("Retrieving account info ${if (param.retrieveBalance) "and balance" else ""} for ${param.bankCode} ...") + } + val response = client.getAccountData(param) if (response.error != null) {