Renamed unbooked- to prebookedTransactions
This commit is contained in:
parent
7353b0347e
commit
9512db3402
|
@ -26,7 +26,7 @@ open class BankAccount(
|
|||
var retrievedTransactionsFrom: LocalDate? = null,
|
||||
|
||||
open val bookedTransactions: MutableList<AccountTransaction> = mutableListOf(),
|
||||
open val unbookedTransactions: MutableList<UnbookedAccountTransaction> = mutableListOf(),
|
||||
open val prebookedTransactions: MutableList<PrebookedAccountTransaction> = mutableListOf(),
|
||||
|
||||
var userSetDisplayName: String? = null,
|
||||
var displayIndex: Int = 0,
|
||||
|
|
|
@ -3,5 +3,5 @@ package net.codinux.banking.client.model
|
|||
import net.codinux.banking.client.model.config.NoArgConstructor
|
||||
|
||||
@NoArgConstructor
|
||||
open class UnbookedAccountTransaction {
|
||||
open class PrebookedAccountTransaction {
|
||||
}
|
|
@ -5,7 +5,7 @@ import kotlinx.datetime.LocalDate
|
|||
import net.codinux.banking.client.model.AccountTransaction
|
||||
import net.codinux.banking.client.model.Amount
|
||||
import net.codinux.banking.client.model.BankAccount
|
||||
import net.codinux.banking.client.model.UnbookedAccountTransaction
|
||||
import net.codinux.banking.client.model.PrebookedAccountTransaction
|
||||
import net.codinux.banking.client.model.config.NoArgConstructor
|
||||
|
||||
@NoArgConstructor
|
||||
|
@ -13,7 +13,7 @@ open class GetTransactionsResponse(
|
|||
val account: BankAccount,
|
||||
val balance: Amount? = null,
|
||||
val bookedTransactions: List<AccountTransaction>,
|
||||
val unbookedTransactions: List<UnbookedAccountTransaction>,
|
||||
val prebookedTransactions: List<PrebookedAccountTransaction>,
|
||||
val transactionsRetrievalTime: Instant,
|
||||
val retrievedTransactionsFrom: LocalDate? = null,
|
||||
val retrievedTransactionsTo: LocalDate? = null
|
||||
|
|
|
@ -132,9 +132,8 @@ open class FinTs4kMapper {
|
|||
account.identifier, account.accountHolderName, mapAccountType(account.type), account.iban, account.subAccountNumber,
|
||||
account.productName, account.currency, account.accountLimit, mapAmount(account.balance),
|
||||
account.isAccountTypeSupportedByApplication, mapFeatures(account),
|
||||
account.countDaysForWhichTransactionsAreKept,
|
||||
account.lastTransactionsRetrievalTime, account.retrievedTransactionsFrom,
|
||||
// TODO: map haveAllTransactionsBeenRetrieved
|
||||
countDaysForWhichTransactionsAreKept = account.countDaysForWhichTransactionsAreKept,
|
||||
bookedTransactions = mapBookedTransactions(account).toMutableList()
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue