Added countMaxJobsPerMessage and supportedHbciVersions to BankData

This commit is contained in:
dankl 2019-10-13 12:49:03 +02:00 committed by dankito
parent 0ee2ed407f
commit 3167665f67
2 changed files with 17 additions and 3 deletions

View File

@ -196,9 +196,14 @@ open class FinTsClient(
response.getFirstSegmentById<BankParameters>(InstituteSegmentId.BankParameters)?.let { bankParameters ->
bank.bpdVersion = bankParameters.bpdVersion
bank.name = bankParameters.bankName
bank.bankCode = bankParameters.bankCode
bank.countryCode = bankParameters.bankCountryCode
bank.countMaxJobsPerMessage = bankParameters.countMaxJobsPerMessage
bank.supportedHbciVersions = bankParameters.supportedHbciVersions
bank.supportedLanguages = bankParameters.supportedLanguages
// bank.bic = bankParameters. // TODO: where's the BIC?
// bank.finTs3ServerAddress = // TODO: parse HIKOM
// TODO: save supported languages and security profiles
}
}

View File

@ -2,15 +2,24 @@ package net.dankito.fints.model
import net.dankito.fints.messages.datenelemente.implementierte.BPDVersion
import net.dankito.fints.messages.datenelemente.implementierte.Dialogsprache
import net.dankito.fints.messages.datenelemente.implementierte.HbciVersion
open class BankData(
val bankCode: String,
val countryCode: Int,
var bankCode: String,
var countryCode: Int,
var finTs3ServerAddress: String,
var bpdVersion: Int = BPDVersion.VersionNotReceivedYet,
var name: String = "",
var bic: String? = null,
/**
* Maximale Anzahl an Geschäftsvorfallsarten, die pro Nachricht zulässig ist.
* Der Wert 0 gibt an, dass keine Restriktionen bzgl. der Anzahl an Geschäftsvorfallsarten bestehen.
*/
var countMaxJobsPerMessage: Int = 0,
var supportedHbciVersions: List<HbciVersion> = listOf(),
var supportedLanguages: List<Dialogsprache> = listOf()
) {