Removed smsDebitAccount (there should be rarely a use case for it)

This commit is contained in:
dankito 2024-08-27 23:22:04 +02:00
parent 07926ef0c1
commit 72889aeeed
2 changed files with 2 additions and 5 deletions

View File

@ -6,8 +6,7 @@ import net.codinux.banking.client.model.config.NoArgConstructor
@NoArgConstructor
open class MobilePhoneTanMedium(
val phoneNumber: String?,
val concealedPhoneNumber: String? = null,
val smsDebitAccount: BankAccountIdentifier? = null
val concealedPhoneNumber: String? = null
) {
override fun toString() = phoneNumber ?: "No phone number"
}

View File

@ -188,9 +188,7 @@ open class FinTs4kMapper {
}
protected open fun mapMobilePhoneTanMedium(tanMedium: MobilePhoneTanMedium) = net.codinux.banking.client.model.tan.MobilePhoneTanMedium(
tanMedium.phoneNumber, tanMedium.concealedPhoneNumber,
// TODO (but with very low priority): Map smsDebitAccount from segment
// tanMedium.smsDebitAccount?.let { BankAccountIdentifier(it.accountNumber, it.subAccountAttribute, it.iban) }
tanMedium.phoneNumber, tanMedium.concealedPhoneNumber
)
protected open fun mapTanGeneratorTanMedium(tanMedium: TanGeneratorTanMedium) = net.codinux.banking.client.model.tan.TanGeneratorTanMedium(