Removed other unused extensions

This commit is contained in:
dankito 2024-08-19 11:39:48 +02:00
parent 537df4f800
commit 5e1c3142cc
2 changed files with 0 additions and 41 deletions

View File

@ -1,27 +0,0 @@
package net.dankito.banking.fints
import kotlinx.coroutines.runBlocking
import net.dankito.banking.client.model.parameter.GetAccountDataParameter
import net.dankito.banking.client.model.parameter.TransferMoneyParameter
import net.dankito.banking.client.model.response.GetAccountDataResponse
import net.dankito.banking.client.model.response.TransferMoneyResponse
import net.dankito.banking.fints.model.Money
fun FinTsClient.getAccountData(bankCode: String, loginName: String, password: String): GetAccountDataResponse {
return runBlocking { getAccountDataAsync(bankCode, loginName, password) }
}
fun FinTsClient.getAccountData(param: GetAccountDataParameter): GetAccountDataResponse {
return runBlocking { getAccountDataAsync(param) }
}
fun FinTsClient.transferMoney(bankCode: String, loginName: String, password: String, recipientName: String, recipientAccountIdentifier: String,
amount: Money, reference: String? = null): TransferMoneyResponse {
return runBlocking { transferMoneyAsync(bankCode, loginName, password, recipientName, recipientAccountIdentifier, amount, reference) }
}
fun FinTsClient.transferMoney(param: TransferMoneyParameter): TransferMoneyResponse {
return runBlocking { transferMoneyAsync(param) }
}

View File

@ -1,14 +0,0 @@
package net.dankito.banking.fints.util
import net.dankito.banking.fints.model.Amount
import net.dankito.banking.fints.model.Money
import java.math.BigDecimal
fun Amount.toBigDecimal(): BigDecimal {
return BigDecimal(this.string.replace(',', '.'))
}
fun Money.toBigDecimal(): BigDecimal {
return this.amount.toBigDecimal()
}