Renamed transactionsSegment to creditCardTransactionsSegment

This commit is contained in:
dankito 2020-12-20 16:45:10 +01:00
parent ef1c927d27
commit 17110a794c
1 changed files with 3 additions and 3 deletions

View File

@ -410,9 +410,9 @@ open class FinTsClient(
parameter.retrievedChunkListener?.invoke(bookedTransactions) parameter.retrievedChunkListener?.invoke(bookedTransactions)
} }
response.getFirstSegmentById<ReceivedCreditCardTransactionsAndBalance>(InstituteSegmentId.CreditCardTransactions)?.let { transactionsSegment -> response.getFirstSegmentById<ReceivedCreditCardTransactionsAndBalance>(InstituteSegmentId.CreditCardTransactions)?.let { creditCardTransactionsSegment ->
balance = Money(transactionsSegment.balance.amount, transactionsSegment.balance.currency ?: "EUR") balance = Money(creditCardTransactionsSegment.balance.amount, creditCardTransactionsSegment.balance.currency ?: "EUR")
bookedTransactions.addAll(transactionsSegment.transactions.map { AccountTransaction(parameter.account, it.amount, it.description, it.bookingDate, it.transactionDescriptionBase ?: "", null, null, "", it.valueDate) }) bookedTransactions.addAll(creditCardTransactionsSegment.transactions.map { AccountTransaction(parameter.account, it.amount, it.description, it.bookingDate, it.transactionDescriptionBase ?: "", null, null, "", it.valueDate) })
} }
} }