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:
parent
b403557f2d
commit
f4128a2875
|
@ -400,7 +400,8 @@ open class FinTsClient(
|
||||||
response,
|
response,
|
||||||
bookedTransactions.toList(),
|
bookedTransactions.toList(),
|
||||||
listOf(), // TODO: implement parsing MT942
|
listOf(), // TODO: implement parsing MT942
|
||||||
balance
|
balance,
|
||||||
|
if (parameter.maxCountEntries != null) parameter.isSettingMaxCountEntriesAllowedByBank else null
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,9 @@ open class GetTransactionsResponse(
|
||||||
response: Response,
|
response: Response,
|
||||||
val bookedTransactions: List<AccountTransaction> = listOf(),
|
val bookedTransactions: List<AccountTransaction> = listOf(),
|
||||||
val unbookedTransactions: List<Any> = listOf(),
|
val unbookedTransactions: List<Any> = listOf(),
|
||||||
val balance: Money? = null
|
val balance: Money? = null,
|
||||||
)
|
/**
|
||||||
: FinTsClientResponse(response)
|
* 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)
|
Loading…
Reference in New Issue