Skip to content

Commit

Permalink
Pagination related comments
Browse files Browse the repository at this point in the history
  • Loading branch information
prathmesh-stripe committed Sep 30, 2024
1 parent 4e58dcc commit 5e471f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/model/v2/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public static class Reason extends StripeObject {
Request request;

/**
* Open Enum. Event reason type.
* Event reason type.
*
* <p>Equal to {@code request}.
*/
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/stripe/param/v2/core/EventListParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ public class EventListParams extends ApiRequestParams {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map<String, Object> extraParams;

/** The page size. */
@SerializedName("limit")
Integer limit;

/** <strong>Required.</strong> Primary object ID used to retrieve related events. */
@SerializedName("object_id")
String objectId;

/** The requested page number. */
@SerializedName("page")
String page;

Expand Down Expand Up @@ -80,6 +82,7 @@ public Builder putAllExtraParam(Map<String, Object> map) {
return this;
}

/** The page size. */
public Builder setLimit(Integer limit) {
this.limit = limit;
return this;
Expand All @@ -91,6 +94,7 @@ public Builder setObjectId(String objectId) {
return this;
}

/** The requested page number. */
public Builder setPage(String page) {
this.page = page;
return this;
Expand Down

0 comments on commit 5e471f3

Please sign in to comment.