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)