Implemented mapping all AccountTypes
This commit is contained in:
parent
be479edc11
commit
69dea311bf
|
@ -14,7 +14,7 @@ open class BankAccount @JvmOverloads constructor(
|
||||||
var subAccountNumber: String?,
|
var subAccountNumber: String?,
|
||||||
var balance: BigDecimal = BigDecimal.ZERO,
|
var balance: BigDecimal = BigDecimal.ZERO,
|
||||||
var currency: String = "EUR",
|
var currency: String = "EUR",
|
||||||
var type: BankAccountType = BankAccountType.Giro,
|
var type: BankAccountType = BankAccountType.Girokonto,
|
||||||
var supportsRetrievingAccountTransactions: Boolean = false,
|
var supportsRetrievingAccountTransactions: Boolean = false,
|
||||||
var supportsRetrievingBalance: Boolean = false,
|
var supportsRetrievingBalance: Boolean = false,
|
||||||
var supportsTransferringMoney: Boolean = false,
|
var supportsTransferringMoney: Boolean = false,
|
||||||
|
|
|
@ -3,6 +3,24 @@ package net.dankito.banking.ui.model
|
||||||
|
|
||||||
enum class BankAccountType {
|
enum class BankAccountType {
|
||||||
|
|
||||||
Giro
|
Girokonto,
|
||||||
|
|
||||||
|
Sparkonto,
|
||||||
|
|
||||||
|
Festgeldkonto,
|
||||||
|
|
||||||
|
Wertpapierdepot,
|
||||||
|
|
||||||
|
Darlehenskonto,
|
||||||
|
|
||||||
|
Kreditkartenkonto,
|
||||||
|
|
||||||
|
FondsDepot,
|
||||||
|
|
||||||
|
Bausparvertrag,
|
||||||
|
|
||||||
|
Versicherungsvertrag,
|
||||||
|
|
||||||
|
Sonstige
|
||||||
|
|
||||||
}
|
}
|
|
@ -90,8 +90,16 @@ open class fints4javaModelMapper {
|
||||||
|
|
||||||
open fun mapBankAccountType(type: AccountType?): BankAccountType {
|
open fun mapBankAccountType(type: AccountType?): BankAccountType {
|
||||||
return when (type) {
|
return when (type) {
|
||||||
|
AccountType.Girokonto -> BankAccountType.Girokonto
|
||||||
else -> BankAccountType.Giro
|
AccountType.Sparkonto -> BankAccountType.Sparkonto
|
||||||
|
AccountType.Festgeldkonto -> BankAccountType.Festgeldkonto
|
||||||
|
AccountType.Wertpapierdepot -> BankAccountType.Wertpapierdepot
|
||||||
|
AccountType.Darlehenskonto -> BankAccountType.Darlehenskonto
|
||||||
|
AccountType.Kreditkartenkonto -> BankAccountType.Kreditkartenkonto
|
||||||
|
AccountType.FondsDepot -> BankAccountType.FondsDepot
|
||||||
|
AccountType.Bausparvertrag -> BankAccountType.Bausparvertrag
|
||||||
|
AccountType.Versicherungsvertrag -> BankAccountType.Versicherungsvertrag
|
||||||
|
else -> BankAccountType.Sonstige
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue