Compare commits

...

3 Commits

4 changed files with 20 additions and 7 deletions

View File

@ -26,7 +26,7 @@ repositories {
dependencies { dependencies {
implementation("net.codinux.banking:fints4k:1.0.0-Alpha-11") implementation("net.codinux.banking:fints4k:1.0.0-Alpha-13")
} }
``` ```

View File

@ -1,16 +1,16 @@
// TODO: move to versions.gradle // TODO: move to versions.gradle
ext { ext {
appVersionName = '1.0.0-Alpha-13-SNAPSHOT' appVersionName = "1.0.0-Alpha-14-SNAPSHOT"
/* Test */ /* Test */
assertJVersion = '3.12.2' assertJVersion = "3.12.2"
mockitoVersion = '2.22.0' mockitoVersion = "2.22.0"
mockitoKotlinVersion = '1.6.0' mockitoKotlinVersion = "1.6.0"
logbackVersion = '1.2.3' logbackVersion = "1.2.3"
} }
buildscript { buildscript {

View File

@ -17,6 +17,8 @@ import net.codinux.banking.fints.response.client.GetAccountTransactionsResponse
import net.codinux.banking.fints.response.segments.AccountType import net.codinux.banking.fints.response.segments.AccountType
import net.codinux.banking.fints.response.segments.BankParameters import net.codinux.banking.fints.response.segments.BankParameters
import net.codinux.banking.fints.util.BicFinder import net.codinux.banking.fints.util.BicFinder
import net.codinux.log.LogLevel
import net.codinux.log.LoggerFactory
open class FinTsClient( open class FinTsClient(
@ -37,6 +39,15 @@ open class FinTsClient(
protected open val bicFinder = BicFinder() protected open val bicFinder = BicFinder()
init {
LoggerFactory.getLogger("net.codinux.banking.fints.log.MessageLogCollector").level = if (config.options.appendFinTsMessagesToLog) {
LogLevel.Debug
} else {
null
}
}
open suspend fun getAccountDataAsync(bankCode: String, loginName: String, password: String): GetAccountDataResponse { open suspend fun getAccountDataAsync(bankCode: String, loginName: String, password: String): GetAccountDataResponse {
return getAccountDataAsync(GetAccountDataParameter(bankCode, loginName, password)) return getAccountDataAsync(GetAccountDataParameter(bankCode, loginName, password))
} }

View File

@ -27,10 +27,12 @@ data class FinTsClientOptions(
*/ */
val removeSensitiveDataFromMessageLog: Boolean = true, val removeSensitiveDataFromMessageLog: Boolean = true,
val appendFinTsMessagesToLog: Boolean = false,
val closeDialogs: Boolean = true, val closeDialogs: Boolean = true,
val version: String = "1.0.0", // TODO: get version dynamically val version: String = "1.0.0", // TODO: get version dynamically
val productName: String = "15E53C26816138699C7B6A3E8" val productName: String = "15E53C26816138699C7B6A3E8" // TODO: extract constant // TODO: get product number for fints4k and Bankmeister (if we stick with that name)
) { ) {
val product: ProductData by lazy { ProductData(productName, version) } val product: ProductData by lazy { ProductData(productName, version) }