Removed platform specific GetTransactionsParameter
This commit is contained in:
parent
1eecb07296
commit
051fc9a3e9
|
@ -86,12 +86,7 @@ open class FinTsClientForCustomerSwift(
|
||||||
arg.customer.selectedLanguage, arg.customer.customerSystemId, arg.customer.customerSystemStatus
|
arg.customer.selectedLanguage, arg.customer.customerSystemId, arg.customer.customerSystemStatus
|
||||||
)
|
)
|
||||||
|
|
||||||
val parameter = net.dankito.banking.fints.model.GetTransactionsParameter(
|
val response = client.getTransactions(arg.parameter, bank, customer, arg.account) // TODO: map account
|
||||||
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
|
|
||||||
|
|
||||||
FinTsClientWorkerResult(bank.freeze(), customer.freeze(), response.freeze())
|
FinTsClientWorkerResult(bank.freeze(), customer.freeze(), response.freeze())
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue