Added option to specify for which accounts account data should be retrieved
This commit is contained in:
parent
b35f1146a5
commit
b198706e26
|
@ -0,0 +1,12 @@
|
||||||
|
package net.codinux.banking.client.model
|
||||||
|
|
||||||
|
import net.codinux.banking.client.model.config.NoArgConstructor
|
||||||
|
|
||||||
|
@NoArgConstructor
|
||||||
|
open class BankAccountIdentifier(
|
||||||
|
val identifier: String,
|
||||||
|
val subAccountNumber: String?,
|
||||||
|
val iban: String?
|
||||||
|
) {
|
||||||
|
override fun toString() = "$identifier, $iban"
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
package net.codinux.banking.client.model.options
|
package net.codinux.banking.client.model.options
|
||||||
|
|
||||||
import kotlinx.datetime.LocalDate
|
import kotlinx.datetime.LocalDate
|
||||||
|
import net.codinux.banking.client.model.BankAccountIdentifier
|
||||||
import net.codinux.banking.client.model.config.NoArgConstructor
|
import net.codinux.banking.client.model.config.NoArgConstructor
|
||||||
|
|
||||||
@NoArgConstructor
|
@NoArgConstructor
|
||||||
|
@ -9,7 +10,9 @@ open class GetAccountDataOptions(
|
||||||
val retrieveTransactions: RetrieveTransactions = RetrieveTransactions.OfLast90Days,
|
val retrieveTransactions: RetrieveTransactions = RetrieveTransactions.OfLast90Days,
|
||||||
val retrieveTransactionsFrom: LocalDate? = null,
|
val retrieveTransactionsFrom: LocalDate? = null,
|
||||||
val retrieveTransactionsTo: LocalDate? = null,
|
val retrieveTransactionsTo: LocalDate? = null,
|
||||||
val abortIfTanIsRequired: Boolean = false
|
val abortIfTanIsRequired: Boolean = false,
|
||||||
|
// account(s) may should get excluded from data retrieval, so add option to set for which accounts data should be retrieved
|
||||||
|
val accounts: List<BankAccountIdentifier> = emptyList()
|
||||||
) {
|
) {
|
||||||
override fun toString(): String {
|
override fun toString(): String {
|
||||||
return "retrieveBalance=$retrieveBalance, retrieveTransactions=$retrieveTransactions, abortIfTanIsRequired=$abortIfTanIsRequired"
|
return "retrieveBalance=$retrieveBalance, retrieveTransactions=$retrieveTransactions, abortIfTanIsRequired=$abortIfTanIsRequired"
|
||||||
|
|
Loading…
Reference in New Issue