Compare commits

...

4 Commits

Author SHA1 Message Date
dankito 736ed22a51 Updated version in README 2024-10-20 11:07:29 +02:00
dankito fbd6f8a6e5 Bumped verion to 0.7.2 2024-10-20 11:05:38 +02:00
dankito d00f71bedd Fixed mapping new TanMethodType names 2024-10-19 21:37:39 +02:00
dankito 68e1408b81 Bumped verion to 0.7.2-SNAPSHOT 2024-10-19 21:28:37 +02:00
3 changed files with 14 additions and 4 deletions

View File

@ -41,6 +41,16 @@ import kotlin.io.encoding.ExperimentalEncodingApi
open class FinTs4kMapper {
companion object {
val TanMethodTypesToMigrate = mapOf(
net.codinux.banking.fints.model.TanMethodType.ChipTanManuell.name to TanMethodType.ChipTanManual.name,
net.codinux.banking.fints.model.TanMethodType.ChipTanFlickercode.name to TanMethodType.ChipTanFlickerCode.name
)
val TanMethodTypesToMigrateReverse = TanMethodTypesToMigrate.map { it.value to it.key }.toMap()
}
protected val fintsModelMapper = FinTsModelMapper()
protected val bankingGroupMapper = BankingGroupMapper()
@ -82,7 +92,7 @@ open class FinTs4kMapper {
BankAccountIdentifierImpl(account.identifier, account.subAccountNumber, account.iban)
protected open fun mapTanMethodType(type: TanMethodType): net.codinux.banking.fints.model.TanMethodType =
net.codinux.banking.fints.model.TanMethodType.valueOf(type.name)
net.codinux.banking.fints.model.TanMethodType.valueOf(TanMethodTypesToMigrateReverse[type.name] ?: type.name)
protected open fun mapAllowedTanFormat(allowedTanFormat: AllowedTanFormat?): net.codinux.banking.fints.messages.datenelemente.implementierte.tan.AllowedTanFormat =
allowedTanFormat?.let { net.codinux.banking.fints.messages.datenelemente.implementierte.tan.AllowedTanFormat.valueOf(it.name) } ?: net.codinux.banking.fints.messages.datenelemente.implementierte.tan.AllowedTanFormat.Alphanumeric
@ -339,7 +349,7 @@ open class FinTs4kMapper {
)
protected open fun mapTanMethodType(type: net.codinux.banking.fints.model.TanMethodType): TanMethodType =
TanMethodType.valueOf(type.name)
TanMethodType.valueOf(TanMethodTypesToMigrate[type.name] ?: type.name)
protected open fun mapAllowedTanFormat(allowedTanFormat: net.codinux.banking.fints.messages.datenelemente.implementierte.tan.AllowedTanFormat?): AllowedTanFormat =
allowedTanFormat?.let { AllowedTanFormat.valueOf(it.name) } ?: AllowedTanFormat.Alphanumeric

View File

@ -21,7 +21,7 @@ repositories {
dependencies {
implementation("net.codinux.banking.client:fints4k-banking-client:0.7.1")
implementation("net.codinux.banking.client:fints4k-banking-client:0.7.2")
}
```

View File

@ -12,7 +12,7 @@ buildscript {
allprojects {
group = "net.codinux.banking.client"
version = "0.7.1"
version = "0.7.2"
repositories {
mavenCentral()