Changed order of BankAccount properties
This commit is contained in:
parent
9512db3402
commit
4c860e7b20
|
@ -7,20 +7,20 @@ import net.codinux.banking.client.model.config.NoArgConstructor
|
||||||
@NoArgConstructor
|
@NoArgConstructor
|
||||||
open class BankAccount(
|
open class BankAccount(
|
||||||
val identifier: String,
|
val identifier: String,
|
||||||
|
val subAccountNumber: String? = null,
|
||||||
|
val iban: String? = null,
|
||||||
|
val productName: String? = null,
|
||||||
var accountHolderName: String,
|
var accountHolderName: String,
|
||||||
val type: BankAccountType = BankAccountType.Other,
|
val type: BankAccountType = BankAccountType.Other,
|
||||||
val iban: String? = null,
|
|
||||||
val subAccountNumber: String? = null,
|
|
||||||
val productName: String? = null,
|
|
||||||
val currency: String = "EUR",
|
val currency: String = "EUR",
|
||||||
var accountLimit: String? = null,
|
var accountLimit: String? = null,
|
||||||
|
|
||||||
// var balance: BigDecimal = BigDecimal.ZERO,
|
|
||||||
var balance: Amount = Amount.Zero, // TODO: add a BigDecimal library
|
|
||||||
|
|
||||||
val isAccountTypeSupportedByApplication: Boolean = false,
|
val isAccountTypeSupportedByApplication: Boolean = false,
|
||||||
val features: Set<BankAccountFeatures> = emptySet(),
|
val features: Set<BankAccountFeatures> = emptySet(),
|
||||||
|
|
||||||
|
// var balance: BigDecimal = BigDecimal.ZERO,
|
||||||
|
var balance: Amount = Amount.Zero, // TODO: add a BigDecimal library
|
||||||
|
|
||||||
val transactionsRetentionDays: Int? = null,
|
val transactionsRetentionDays: Int? = null,
|
||||||
open var lastTransactionsRetrievalTime: Instant? = null,
|
open var lastTransactionsRetrievalTime: Instant? = null,
|
||||||
var retrievedTransactionsFrom: LocalDate? = null,
|
var retrievedTransactionsFrom: LocalDate? = null,
|
||||||
|
|
|
@ -129,9 +129,10 @@ open class FinTs4kMapper {
|
||||||
|
|
||||||
|
|
||||||
protected open fun mapAccount(account: net.dankito.banking.client.model.BankAccount) = BankAccount(
|
protected open fun mapAccount(account: net.dankito.banking.client.model.BankAccount) = BankAccount(
|
||||||
account.identifier, account.accountHolderName, mapAccountType(account.type), account.iban, account.subAccountNumber,
|
account.identifier, account.subAccountNumber, account.iban, account.productName, account.accountHolderName,
|
||||||
account.productName, account.currency, account.accountLimit, mapAmount(account.balance),
|
mapAccountType(account.type), account.currency, account.accountLimit,
|
||||||
account.isAccountTypeSupportedByApplication, mapFeatures(account),
|
account.isAccountTypeSupportedByApplication, mapFeatures(account),
|
||||||
|
mapAmount(account.balance),
|
||||||
account.countDaysForWhichTransactionsAreKept,
|
account.countDaysForWhichTransactionsAreKept,
|
||||||
account.lastTransactionsRetrievalTime, account.retrievedTransactionsFrom,
|
account.lastTransactionsRetrievalTime, account.retrievedTransactionsFrom,
|
||||||
bookedTransactions = mapBookedTransactions(account).toMutableList()
|
bookedTransactions = mapBookedTransactions(account).toMutableList()
|
||||||
|
|
Loading…
Reference in New Issue