Compare commits
No commits in common. "234738465cf38099d57f5d28dd4834ec7a93b931" and "44a875eeeca949e48d1b03e1b2e9984e14588df8" have entirely different histories.
234738465c
...
44a875eeec
|
@ -76,19 +76,6 @@ open class BankAccess(
|
||||||
get() = userSetDisplayName ?: bankName
|
get() = userSetDisplayName ?: bankName
|
||||||
|
|
||||||
|
|
||||||
@get:JsonIgnore
|
|
||||||
open val accountsSorted: List<out BankAccount>
|
|
||||||
get() = accounts.sortedBy { it.displayIndex }
|
|
||||||
|
|
||||||
@get:JsonIgnore
|
|
||||||
open val tanMethodsSorted: List<out TanMethod>
|
|
||||||
get() = tanMethods.sortedBy { it.identifier }
|
|
||||||
|
|
||||||
@get:JsonIgnore
|
|
||||||
open val tanMediaSorted: List<out TanMedium>
|
|
||||||
get() = tanMedia.sortedBy { it.status }
|
|
||||||
|
|
||||||
|
|
||||||
@get:JsonIgnore
|
@get:JsonIgnore
|
||||||
val selectedTanMethod: TanMethod
|
val selectedTanMethod: TanMethod
|
||||||
get() = tanMethods.first { it.identifier == selectedTanMethodIdentifier }
|
get() = tanMethods.first { it.identifier == selectedTanMethodIdentifier }
|
||||||
|
|
|
@ -53,11 +53,11 @@ open class BankAccount(
|
||||||
}
|
}
|
||||||
|
|
||||||
@get:JsonIgnore
|
@get:JsonIgnore
|
||||||
open val supportsBalanceRetrieval: Boolean
|
open val supportsTransactionRetrieval: Boolean
|
||||||
get() = supportsAnyFeature(BankAccountFeatures.RetrieveBalance)
|
get() = supportsAnyFeature(BankAccountFeatures.RetrieveBalance)
|
||||||
|
|
||||||
@get:JsonIgnore
|
@get:JsonIgnore
|
||||||
open val supportsTransactionRetrieval: Boolean
|
open val supportsBalanceRetrieval: Boolean
|
||||||
get() = supportsAnyFeature(BankAccountFeatures.RetrieveTransactions)
|
get() = supportsAnyFeature(BankAccountFeatures.RetrieveTransactions)
|
||||||
|
|
||||||
@get:JsonIgnore
|
@get:JsonIgnore
|
||||||
|
|
|
@ -77,7 +77,7 @@ kotlin {
|
||||||
dependencies {
|
dependencies {
|
||||||
api(project(":BankingClient"))
|
api(project(":BankingClient"))
|
||||||
|
|
||||||
implementation("net.codinux.banking:fints4k:1.0.0-Alpha-14-SNAPSHOT")
|
implementation("net.codinux.banking:fints4k:1.0.0-Alpha-13-SNAPSHOT")
|
||||||
|
|
||||||
api("org.jetbrains.kotlinx:kotlinx-datetime:$kotlinxDateTimeVersion")
|
api("org.jetbrains.kotlinx:kotlinx-datetime:$kotlinxDateTimeVersion")
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@ open class FinTs4kBankingClient(
|
||||||
constructor(callback: BankingClientCallback) : this(FinTsClientConfiguration(), callback)
|
constructor(callback: BankingClientCallback) : this(FinTsClientConfiguration(), callback)
|
||||||
|
|
||||||
constructor(options: FinTsClientOptions, callback: BankingClientCallback)
|
constructor(options: FinTsClientOptions, callback: BankingClientCallback)
|
||||||
: this(FinTsClientConfiguration(net.codinux.banking.fints.config.FinTsClientOptions(options.collectMessageLog, false, options.removeSensitiveDataFromMessageLog, options.appendFinTsMessagesToLog, options.closeDialogs, options.version, options.productName)), callback)
|
: this(FinTsClientConfiguration(net.codinux.banking.fints.config.FinTsClientOptions(options.collectMessageLog, false, options.removeSensitiveDataFromMessageLog, options.closeDialogs, options.version, options.productName)), callback)
|
||||||
|
|
||||||
|
|
||||||
protected open val mapper = FinTs4kMapper()
|
protected open val mapper = FinTs4kMapper()
|
||||||
|
|
|
@ -24,8 +24,6 @@ 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
|
||||||
|
|
21
README.md
21
README.md
|
@ -1,5 +1,4 @@
|
||||||
# Banking Client
|
# Banking Client
|
||||||
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/net.codinux.banking.client/banking-client/badge.svg?style=plastic)](https://maven-badges.herokuapp.com/maven-central/net.codinux.banking.client/banking-client)
|
|
||||||
|
|
||||||
Library to abstract over different banking client implementations like [fints4k](https://git.dankito.net/codinux/fints4k).
|
Library to abstract over different banking client implementations like [fints4k](https://git.dankito.net/codinux/fints4k).
|
||||||
|
|
||||||
|
@ -26,7 +25,7 @@ repositories {
|
||||||
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("net.codinux.banking.client:fints4k-banking-client:0.6.0")
|
implementation("net.codinux.banking.client:fints4k-banking-client:0.5.0")
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -169,21 +168,3 @@ fun updateAccountTransactions() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Logging
|
|
||||||
|
|
||||||
BankingClient and fints4k both use [klf](https://github.com/codinux-gmbh/klf), a logging facade for Kotlin (Multiplatform)
|
|
||||||
with appenders for all supported KMP platforms.
|
|
||||||
So logging works on all platforms out of the box. On JVM, if slf4j is on the classpath, logging can be configured with
|
|
||||||
any slf4j compatible logging backend (logback, log4j, JBoss Logging, ...).
|
|
||||||
|
|
||||||
If you want to see all sent and received FinTS messages, set the log level of `net.codinux.banking.fints.log.MessageLogCollector` to `DEBUG`, either via:
|
|
||||||
- your logging framework (e.g. logback)
|
|
||||||
- klf: `net.codinux.log.LoggerFactory.getLogger("net.codinux.banking.fints.log.MessageLogCollector").level = LogLevel.Debug`
|
|
||||||
- `appendFinTsMessagesToLog` option:
|
|
||||||
```kotlin
|
|
||||||
val client = FinTs4kBankingClient(FinTsClientOptions(appendFinTsMessagesToLog = true), SimpleBankingClientCallback())
|
|
||||||
```
|
|
||||||
But be aware, in latter case if you create multiple FinTs4kBankingClient instances, the latest value of `appendFinTsMessagesToLog`
|
|
||||||
overrides the value of all previous FinTs4kBankingClient instances. As with all other options, this configures the logger's level globally,
|
|
||||||
so the latest configured log level value wins.
|
|
|
@ -12,7 +12,7 @@ buildscript {
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
group = "net.codinux.banking.client"
|
group = "net.codinux.banking.client"
|
||||||
version = "0.6.1-SNAPSHOT"
|
version = "0.5.2-SNAPSHOT"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|
Loading…
Reference in New Issue