Added mediumName to TanMedium
This commit is contained in:
parent
384523e854
commit
2e71b2e53a
|
@ -6,11 +6,11 @@ import net.dankito.banking.fints.messages.datenelementgruppen.implementierte.acc
|
|||
open class MobilePhoneTanMedium(
|
||||
mediumClass: TanMediumKlasse,
|
||||
status: TanMediumStatus,
|
||||
val mediumName: String,
|
||||
override val mediumName: String,
|
||||
val concealedPhoneNumber: String?,
|
||||
val phoneNumber: String?,
|
||||
val smsDebitAccount: KontoverbindungInternational? = null
|
||||
) : TanMedium(mediumClass, status) {
|
||||
) : TanMedium(mediumClass, status, mediumName) {
|
||||
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
|
|
|
@ -11,8 +11,8 @@ open class TanGeneratorTanMedium(
|
|||
val cardType: Int?,
|
||||
val validFrom: Date?,
|
||||
val validTo: Date?,
|
||||
val mediumName: String?
|
||||
) : TanMedium(mediumClass, status) {
|
||||
mediumName: String?
|
||||
) : TanMedium(mediumClass, status, mediumName) {
|
||||
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
|
|
|
@ -10,11 +10,12 @@ package net.dankito.banking.fints.messages.datenelemente.implementierte.tan
|
|||
*/
|
||||
open class TanMedium(
|
||||
val mediumClass: TanMediumKlasse,
|
||||
val status: TanMediumStatus
|
||||
val status: TanMediumStatus,
|
||||
open val mediumName: String?
|
||||
) {
|
||||
|
||||
|
||||
internal constructor() : this(TanMediumKlasse.AlleMedien, TanMediumStatus.Verfuegbar)
|
||||
internal constructor() : this(TanMediumKlasse.AlleMedien, TanMediumStatus.Verfuegbar, null)
|
||||
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
|
@ -37,7 +38,7 @@ open class TanMedium(
|
|||
|
||||
|
||||
override fun toString(): String {
|
||||
return "$mediumClass $status"
|
||||
return "$mediumClass $mediumName $status"
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue