Added convenience getAccountData() method

This commit is contained in:
dankito 2022-02-21 23:22:49 +01:00
parent 3ed9e10c22
commit ee68dd09b2
1 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,10 @@ open class FinTsClient @JvmOverloads constructor(
protected open val mapper = FinTsModelMapper()
open suspend fun getAccountData(bankCode: String, loginName: String, password: String): GetAccountDataResponse {
return getAccountData(GetAccountDataParameter(bankCode, loginName, password))
}
open suspend fun getAccountData(param: GetAccountDataParameter): GetAccountDataResponse {
val finTsServerAddress = finTsServerAddressFinder.findFinTsServerAddress(param.bankCode)
if (finTsServerAddress.isNullOrBlank()) {