Skip to content

Commit

Permalink
- Fix pagination parameters for listing child users (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwithan8 committed Aug 2, 2024
1 parent 95f7b45 commit d8a0e8e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 23 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## Next Release

- Fix pagination parameters for `getNextPage` in `User` service

## v7.4.1 (2024-07-24)

- Fix bug where response hooks were not being called if an API request failed
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/easypost/model/ChildUserCollection.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ protected Map<String, Object> buildNextPageParameters(List<User> children, Integ
String lastId = children.get(children.size() - 1).getId();

Map<String, Object> parameters = new java.util.HashMap<>();
parameters.put("before_id", lastId);
parameters.put("after_id", lastId);

if (pageSize != null) {
parameters.put("page_size", pageSize);
Expand Down
41 changes: 19 additions & 22 deletions src/test/cassettes/user/get_next_page.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d8a0e8e

Please sign in to comment.