Skip to content

Library missing query params/filters for listPayments endpoint #45

@ashenoy95

Description

@ashenoy95

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions