Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Library missing query params/filters for listPayments endpoint #45

Open
ashenoy95 opened this issue Feb 25, 2021 · 0 comments
Open

Library missing query params/filters for listPayments endpoint #45

ashenoy95 opened this issue Feb 25, 2021 · 0 comments

Comments

@ashenoy95
Copy link

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?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant