From a934d299910b4845bde9a2b4e76822f11a41a733 Mon Sep 17 00:00:00 2001 From: dankl Date: Sat, 5 Oct 2019 22:26:21 +0200 Subject: [PATCH] Fixed default BPD and UPD version --- .../src/main/kotlin/net/dankito/fints/model/BankData.kt | 3 ++- .../src/main/kotlin/net/dankito/fints/model/CustomerData.kt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fints4javaLib/src/main/kotlin/net/dankito/fints/model/BankData.kt b/fints4javaLib/src/main/kotlin/net/dankito/fints/model/BankData.kt index a7975351..67b51f4b 100644 --- a/fints4javaLib/src/main/kotlin/net/dankito/fints/model/BankData.kt +++ b/fints4javaLib/src/main/kotlin/net/dankito/fints/model/BankData.kt @@ -1,5 +1,6 @@ package net.dankito.fints.model +import net.dankito.fints.messages.datenelemente.implementierte.BPDVersion import net.dankito.fints.messages.datenelemente.implementierte.Dialogsprache @@ -7,7 +8,7 @@ open class BankData( val bankCode: String, val countryCode: Int, var finTs3ServerAddress: String, - var bpdVersion: Int = 0, + var bpdVersion: Int = BPDVersion.VersionNotReceivedYet, var supportedLanguages: List = listOf() ) { diff --git a/fints4javaLib/src/main/kotlin/net/dankito/fints/model/CustomerData.kt b/fints4javaLib/src/main/kotlin/net/dankito/fints/model/CustomerData.kt index 3fc6aa2d..81ae9dd5 100644 --- a/fints4javaLib/src/main/kotlin/net/dankito/fints/model/CustomerData.kt +++ b/fints4javaLib/src/main/kotlin/net/dankito/fints/model/CustomerData.kt @@ -9,7 +9,7 @@ open class CustomerData( val customerId: String, var pin: String, val userId: String = customerId, - var updVersion: Int = 0, + var updVersion: Int = UPDVersion.VersionNotReceivedYet, var availableTanProcedures: List = listOf(), var selectedTanProcedure: TanProcedure? = null, var securityMethod: Sicherheitsverfahren = Sicherheitsverfahren.PIN_TAN_Verfahren,