Updated to that fints4k replaced retrievedTransactionsTo with lastTransactionRetrievalTime
This commit is contained in:
parent
b210c1e7fa
commit
aab562ccf4
|
@ -1,6 +1,7 @@
|
|||
package net.codinux.banking.client.model
|
||||
|
||||
import kotlinx.datetime.LocalDate
|
||||
import kotlinx.datetime.LocalDateTime
|
||||
import net.codinux.banking.client.model.config.NoArgConstructor
|
||||
|
||||
@NoArgConstructor
|
||||
|
@ -20,7 +21,7 @@ open class BankAccount(
|
|||
// var balance: BigDecimal = BigDecimal.ZERO,
|
||||
var balance: Amount = Amount.Zero, // TODO: add a BigDecimal library
|
||||
var retrievedTransactionsFrom: LocalDate? = null,
|
||||
var retrievedTransactionsTo: LocalDate? = null,
|
||||
open var lastTransactionRetrievalTime: LocalDateTime? = null,
|
||||
|
||||
var haveAllTransactionsBeenRetrieved: Boolean = false,
|
||||
val countDaysForWhichTransactionsAreKept: Int? = null,
|
||||
|
|
|
@ -84,7 +84,7 @@ open class FinTs4kMapper {
|
|||
account.identifier, account.accountHolderName, mapAccountType(account.type), account.iban, account.subAccountNumber,
|
||||
account.productName, account.currency, account.accountLimit, account.isAccountTypeSupportedByApplication,
|
||||
mapFeatures(account),
|
||||
mapAmount(account.balance), account.retrievedTransactionsFrom, account.retrievedTransactionsTo,
|
||||
mapAmount(account.balance), account.retrievedTransactionsFrom, account.lastTransactionRetrievalTime,
|
||||
// TODO: map haveAllTransactionsBeenRetrieved
|
||||
countDaysForWhichTransactionsAreKept = account.countDaysForWhichTransactionsAreKept,
|
||||
bookedTransactions = account.bookedTransactions.map { mapTransaction(it) }.toMutableList()
|
||||
|
|
Loading…
Reference in New Issue