Compare commits
9 Commits
44a875eeec
...
234738465c
Author | SHA1 | Date |
---|---|---|
dankito | 234738465c | |
dankito | f160c50d18 | |
dankito | 9aeca393dc | |
dankito | 5964fc611c | |
dankito | ac3bc57875 | |
dankito | 40ad61ebab | |
dankito | 27e191cba6 | |
dankito | cc1a60cb61 | |
dankito | 145686b453 |
|
@ -76,6 +76,19 @@ open class BankAccess(
|
|||
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
|
||||
val selectedTanMethod: TanMethod
|
||||
get() = tanMethods.first { it.identifier == selectedTanMethodIdentifier }
|
||||
|
|
|
@ -53,11 +53,11 @@ open class BankAccount(
|
|||
}
|
||||
|
||||
@get:JsonIgnore
|
||||
open val supportsTransactionRetrieval: Boolean
|
||||
open val supportsBalanceRetrieval: Boolean
|
||||
get() = supportsAnyFeature(BankAccountFeatures.RetrieveBalance)
|
||||
|
||||
@get:JsonIgnore
|
||||
open val supportsBalanceRetrieval: Boolean
|
||||
open val supportsTransactionRetrieval: Boolean
|
||||
get() = supportsAnyFeature(BankAccountFeatures.RetrieveTransactions)
|
||||
|
||||
@get:JsonIgnore
|
||||
|
|
|
@ -77,7 +77,7 @@ kotlin {
|
|||
dependencies {
|
||||
api(project(":BankingClient"))
|
||||
|
||||
implementation("net.codinux.banking:fints4k:1.0.0-Alpha-13-SNAPSHOT")
|
||||
implementation("net.codinux.banking:fints4k:1.0.0-Alpha-14-SNAPSHOT")
|
||||
|
||||
api("org.jetbrains.kotlinx:kotlinx-datetime:$kotlinxDateTimeVersion")
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ open class FinTs4kBankingClient(
|
|||
constructor(callback: BankingClientCallback) : this(FinTsClientConfiguration(), callback)
|
||||
|
||||
constructor(options: FinTsClientOptions, callback: BankingClientCallback)
|
||||
: this(FinTsClientConfiguration(net.codinux.banking.fints.config.FinTsClientOptions(options.collectMessageLog, false, options.removeSensitiveDataFromMessageLog, options.closeDialogs, options.version, options.productName)), callback)
|
||||
: this(FinTsClientConfiguration(net.codinux.banking.fints.config.FinTsClientOptions(options.collectMessageLog, false, options.removeSensitiveDataFromMessageLog, options.appendFinTsMessagesToLog, options.closeDialogs, options.version, options.productName)), callback)
|
||||
|
||||
|
||||
protected open val mapper = FinTs4kMapper()
|
||||
|
|
|
@ -24,6 +24,8 @@ data class FinTsClientOptions(
|
|||
*/
|
||||
val removeSensitiveDataFromMessageLog: Boolean = true,
|
||||
|
||||
val appendFinTsMessagesToLog: Boolean = false,
|
||||
|
||||
val closeDialogs: Boolean = true,
|
||||
|
||||
val version: String = "1.0.0", // TODO: get version dynamically
|
||||
|
|
21
README.md
21
README.md
|
@ -1,4 +1,5 @@
|
|||
# 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).
|
||||
|
||||
|
@ -25,7 +26,7 @@ repositories {
|
|||
|
||||
|
||||
dependencies {
|
||||
implementation("net.codinux.banking.client:fints4k-banking-client:0.5.0")
|
||||
implementation("net.codinux.banking.client:fints4k-banking-client:0.6.0")
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -168,3 +169,21 @@ 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 {
|
||||
group = "net.codinux.banking.client"
|
||||
version = "0.5.2-SNAPSHOT"
|
||||
version = "0.6.1-SNAPSHOT"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
|
Loading…
Reference in New Issue