Added no-arg constructors
This commit is contained in:
parent
2fde62e2cd
commit
08977e737d
|
@ -32,6 +32,9 @@ open class CustomerAccount(
|
|||
) : CustomerCredentials(bankCode, loginName, password) {
|
||||
|
||||
|
||||
internal constructor() : this("", "", "", "", "", "") // for object deserializers
|
||||
|
||||
|
||||
override fun toString(): String {
|
||||
return "$bankName $loginName"
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue