diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/AccountData.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/AccountData.kt index 2fa9f981..11917277 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/AccountData.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/AccountData.kt @@ -25,16 +25,16 @@ open class AccountData( internal constructor() : this("", null, Laenderkennzeichen.Germany, "", null, "", null, null, "", null, null, listOf()) // for object deserializers + open val isAccountTypeSupported: Boolean + get() = FinTsClient.SupportedAccountTypes.contains(accountType) + + protected open val _supportedFeatures = mutableSetOf() open val supportedFeatures: Collection get() = ArrayList(_supportedFeatures) // make a copy, don't pass original (and mutable) _supportedFeatures Set to outside - open val isAccountTypeSupported: Boolean - get() = FinTsClient.SupportedAccountTypes.contains(accountType) - - open val supportsRetrievingBalance: Boolean get() = supportsFeature(AccountFeature.RetrieveBalance)