Skip to content

Commit

Permalink
Merge pull request #189 from websideproject/dev
Browse files Browse the repository at this point in the history
Add pagination to events
  • Loading branch information
bgervan authored Dec 16, 2023
2 parents 66215cb + 0d3d29c commit 0984ab6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions paddle_billing_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,11 @@ def list_event_types(self) -> EventTypesResponse:
"""List all customers"""
return self.get(self.endpoints.list_event_types)

def list_events(self) -> EventsResponse:
def list_events(self, paginate: Paginate = None) -> EventsResponse:
"""List all customers"""
return self.get(self.endpoints.list_events)
return self.get(
dict(paginate)["next"] if paginate else self.endpoints.list_events,
)

"""
Notification settings
Expand Down

0 comments on commit 0984ab6

Please sign in to comment.