From 99c864bcf12a2e47c3c2721c61ee7b2086ddbafd Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 10 Sep 2024 01:24:13 +0200 Subject: [PATCH] Belongs to set default bank values, IntelliJ didn't show me these files in commit dialog --- .../net/codinux/banking/client/model/BankInfo.kt | 13 +++++++++++++ .../client/model/request/GetAccountDataRequest.kt | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/BankInfo.kt diff --git a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/BankInfo.kt b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/BankInfo.kt new file mode 100644 index 00000000..05dd7472 --- /dev/null +++ b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/BankInfo.kt @@ -0,0 +1,13 @@ +package net.codinux.banking.client.model + +import net.codinux.banking.client.model.config.NoArgConstructor + +@NoArgConstructor +open class BankInfo( + val name: String, + val bic: String, + val serverAddress: String, + val bankingGroup: BankingGroup? = null +) { + override fun toString() = "$name $bic $bankingGroup" +} \ No newline at end of file diff --git a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/request/GetAccountDataRequest.kt b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/request/GetAccountDataRequest.kt index 96d49646..50a1855d 100644 --- a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/request/GetAccountDataRequest.kt +++ b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/request/GetAccountDataRequest.kt @@ -1,11 +1,12 @@ package net.codinux.banking.client.model.request import net.codinux.banking.client.model.AccountCredentials +import net.codinux.banking.client.model.BankInfo import net.codinux.banking.client.model.config.NoArgConstructor import net.codinux.banking.client.model.options.GetAccountDataOptions @NoArgConstructor -open class GetAccountDataRequest(bankCode: String, loginName: String, password: String, val options: GetAccountDataOptions? = null) +open class GetAccountDataRequest(bankCode: String, loginName: String, password: String, val options: GetAccountDataOptions? = null, val bankInfo: BankInfo? = null) : AccountCredentials(bankCode, loginName, password) { constructor(credentials: AccountCredentials, options: GetAccountDataOptions? = null)