Removed other unused extensions
This commit is contained in:
parent
537df4f800
commit
5e1c3142cc
|
@ -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) }
|
||||
}
|
|
@ -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()
|
||||
}
|
Loading…
Reference in New Issue