Up until v1.5.1, used to use query params as per the REST api docs for listPayments(params)
https://docs.hyperwallet.com/content/api/v3/resources/payments/list
params = { 'createdAfter': start_str, 'createdBefore': end_str, 'limit': 100, 'sortyBy': 'createdOn', }
Though in v1.6.1., the sdk raises HyperwalletException('Invalid filter').
Looking at api.py ln 2127:
if params and not set(list(params)).issubset(Payment.filters_array):
raise HyperwalletException('Invalid filter')
and Payments class filters_array = {'clientPaymentId', 'releaseOn'} in models.py ln 523.
Are the other query params/filters removed permanently for listPayments or is there another way to filter using createdAfter & createdBefore?