Added no-arg constructors

This commit is contained in:
dankito 2024-08-14 13:27:46 +02:00
parent 2fde62e2cd
commit 08977e737d
4 changed files with 10 additions and 1 deletions

View File

@ -32,6 +32,9 @@ open class CustomerAccount(
) : CustomerCredentials(bankCode, loginName, password) {
internal constructor() : this("", "", "", "", "", "") // for object deserializers
override fun toString(): String {
return "$bankName $loginName"
}

View File

@ -12,6 +12,9 @@ open class FinTsClientResponse(
open val finTsModel: BankData? = null
) {
internal constructor() : this(null, null, listOf()) // for object deserializers
open val successful: Boolean
get() = error == null

View File

@ -13,6 +13,9 @@ open class GetAccountDataResponse(
finTsModel: BankData? = null
) : FinTsClientResponse(error, errorMessage, messageLogWithoutSensitiveData, finTsModel) {
internal constructor() : this(null, null, null, listOf()) // for object deserializers
open val retrievedTransactions: List<AccountTransaction>
get() = customerAccount?.accounts?.flatMap { it.bookedTransactions } ?: listOf()

View File

@ -18,7 +18,7 @@ open class TanMedium(
) {
internal constructor() : this(TanMediumKlasse.AlleMedien, TanMediumStatus.Verfuegbar, null)
internal constructor() : this(TanMediumKlasse.AlleMedien, TanMediumStatus.Verfuegbar, null) // for object deserializers
override fun equals(other: Any?): Boolean {