From 17110a794c80afe2ab56c17f6558c15cfa23647a Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 20 Dec 2020 16:45:10 +0100 Subject: [PATCH] Renamed transactionsSegment to creditCardTransactionsSegment --- .../kotlin/net/dankito/banking/fints/FinTsClient.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 0f3a0569..07135f40 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt @@ -410,9 +410,9 @@ open class FinTsClient( parameter.retrievedChunkListener?.invoke(bookedTransactions) } - response.getFirstSegmentById(InstituteSegmentId.CreditCardTransactions)?.let { transactionsSegment -> - balance = Money(transactionsSegment.balance.amount, transactionsSegment.balance.currency ?: "EUR") - bookedTransactions.addAll(transactionsSegment.transactions.map { AccountTransaction(parameter.account, it.amount, it.description, it.bookingDate, it.transactionDescriptionBase ?: "", null, null, "", it.valueDate) }) + response.getFirstSegmentById(InstituteSegmentId.CreditCardTransactions)?.let { creditCardTransactionsSegment -> + balance = Money(creditCardTransactionsSegment.balance.amount, creditCardTransactionsSegment.balance.currency ?: "EUR") + bookedTransactions.addAll(creditCardTransactionsSegment.transactions.map { AccountTransaction(parameter.account, it.amount, it.description, it.bookingDate, it.transactionDescriptionBase ?: "", null, null, "", it.valueDate) }) } }