Removed platform specific GetTransactionsParameter

This commit is contained in:
dankito 2020-07-14 17:46:12 +02:00
parent 1eecb07296
commit 051fc9a3e9
2 changed files with 1 additions and 22 deletions

View File

@ -86,12 +86,7 @@ open class FinTsClientForCustomerSwift(
arg.customer.selectedLanguage, arg.customer.customerSystemId, arg.customer.customerSystemStatus
)
val parameter = net.dankito.banking.fints.model.GetTransactionsParameter(
arg.parameter.alsoRetrieveBalance, arg.parameter.fromDate.toDate(), arg.parameter.toDate.toDate(),
arg.parameter.maxCountEntries, arg.parameter.abortIfTanIsRequired, arg.parameter.retrievedChunkListener
)
val response = client.getTransactions(parameter, bank, customer, arg.account) // TODO: map account
val response = client.getTransactions(arg.parameter, bank, customer, arg.account) // TODO: map account
FinTsClientWorkerResult(bank.freeze(), customer.freeze(), response.freeze())
}

View File

@ -1,16 +0,0 @@
import net.dankito.banking.fints.model.AccountTransaction
import platform.Foundation.NSDate
class GetTransactionsParameter(
val alsoRetrieveBalance: Boolean = true,
val fromDate: NSDate? = null,
val toDate: NSDate? = null,
val maxCountEntries: Int? = null,
val abortIfTanIsRequired: Boolean = false,
val retrievedChunkListener: ((List<AccountTransaction>) -> Unit)? = null
) {
constructor() : this(true, null, null, null, false, null)
}