Implemented checking if bank supports setting count max entries. Had to adjust Jackson serialization so that and not just JobParameters gets saved and restored and to implement a lot of default constructors for this

This commit is contained in:
dankito 2020-09-18 19:04:15 +02:00
parent b403557f2d
commit f4128a2875
2 changed files with 8 additions and 4 deletions

View File

@ -400,7 +400,8 @@ open class FinTsClient(
response,
bookedTransactions.toList(),
listOf(), // TODO: implement parsing MT942
balance
balance,
if (parameter.maxCountEntries != null) parameter.isSettingMaxCountEntriesAllowedByBank else null
)
)
}

View File

@ -9,6 +9,9 @@ open class GetTransactionsResponse(
response: Response,
val bookedTransactions: List<AccountTransaction> = listOf(),
val unbookedTransactions: List<Any> = listOf(),
val balance: Money? = null
)
: FinTsClientResponse(response)
val balance: Money? = null,
/**
* This value is only set if [GetTransactionsParameter.maxCountEntries] was set to tell caller if maxCountEntries parameter has been evaluated or not
*/
var isSettingMaxCountEntriesAllowedByBank: Boolean? = null
) : FinTsClientResponse(response)