diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt index e254bc1a..8b14b790 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt @@ -111,7 +111,8 @@ open class FinTsClient( addAccountGetAccountBalancesAndTransactions(bank, getAccountsResponse, callback) } else { - addAccountDone(bank, getAccountsResponse, mapOf(), callback) + val retrievedAccountData = bank.accounts.associateBy( { it }, { RetrievedAccountData.balanceAndTransactionsNotRequestedByUser(it) } ) + addAccountDone(bank, getAccountsResponse, retrievedAccountData, callback) } } } diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/RetrievedAccountData.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/RetrievedAccountData.kt index 66987cdb..17576284 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/RetrievedAccountData.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/RetrievedAccountData.kt @@ -16,6 +16,10 @@ open class RetrievedAccountData( companion object { + fun balanceAndTransactionsNotRequestedByUser(account: AccountData): RetrievedAccountData { + return RetrievedAccountData(account, true, null, listOf(), listOf(), null, null) + } + fun unsuccessful(account: AccountData): RetrievedAccountData { return RetrievedAccountData(account, false, null, listOf(), listOf(), null, null) }