Skip to content

Commit 5383186

Browse files
Update generated code for v1505
1 parent 483c92f commit 5383186

File tree

3 files changed

+5
-104
lines changed

3 files changed

+5
-104
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1501
1+
v1505

src/main/java/com/stripe/param/v2/core/EventListParams.java

Lines changed: 4 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,12 @@
33

44
import com.google.gson.annotations.SerializedName;
55
import com.stripe.net.ApiRequestParams;
6-
import java.time.Instant;
76
import java.util.HashMap;
87
import java.util.Map;
98
import lombok.Getter;
109

1110
@Getter
1211
public class EventListParams extends ApiRequestParams {
13-
/** Filter for events created after the specified timestamp. */
14-
@SerializedName("created_gt")
15-
Instant createdGt;
16-
17-
/** Filter for events created at or after the specified timestamp. */
18-
@SerializedName("created_gte")
19-
Instant createdGte;
20-
21-
/** Filter for events created before the specified timestamp. */
22-
@SerializedName("created_lt")
23-
Instant createdLt;
24-
25-
/** Filter for events created at or before the specified timestamp. */
26-
@SerializedName("created_lte")
27-
Instant createdLte;
28-
29-
/**
30-
* Filter events based on whether they were successfully delivered to all subscribed event
31-
* destinations. If false, events which are still pending or have failed all delivery attempts to
32-
* a event destination will be returned.
33-
*/
34-
@SerializedName("delivery_success")
35-
Boolean deliverySuccess;
36-
3712
/**
3813
* Map of extra parameters for custom features not available in this client library. The content
3914
* in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
@@ -47,7 +22,7 @@ public class EventListParams extends ApiRequestParams {
4722
@SerializedName("limit")
4823
Integer limit;
4924

50-
/** Primary object ID used to retrieve related events. */
25+
/** <strong>Required.</strong> Primary object ID used to retrieve related events. */
5126
@SerializedName("object_id")
5227
String objectId;
5328

@@ -56,20 +31,7 @@ public class EventListParams extends ApiRequestParams {
5631
String page;
5732

5833
private EventListParams(
59-
Instant createdGt,
60-
Instant createdGte,
61-
Instant createdLt,
62-
Instant createdLte,
63-
Boolean deliverySuccess,
64-
Map<String, Object> extraParams,
65-
Integer limit,
66-
String objectId,
67-
String page) {
68-
this.createdGt = createdGt;
69-
this.createdGte = createdGte;
70-
this.createdLt = createdLt;
71-
this.createdLte = createdLte;
72-
this.deliverySuccess = deliverySuccess;
34+
Map<String, Object> extraParams, Integer limit, String objectId, String page) {
7335
this.extraParams = extraParams;
7436
this.limit = limit;
7537
this.objectId = objectId;
@@ -81,16 +43,6 @@ public static Builder builder() {
8143
}
8244

8345
public static class Builder {
84-
private Instant createdGt;
85-
86-
private Instant createdGte;
87-
88-
private Instant createdLt;
89-
90-
private Instant createdLte;
91-
92-
private Boolean deliverySuccess;
93-
9446
private Map<String, Object> extraParams;
9547

9648
private Integer limit;
@@ -101,50 +53,7 @@ public static class Builder {
10153

10254
/** Finalize and obtain parameter instance from this builder. */
10355
public EventListParams build() {
104-
return new EventListParams(
105-
this.createdGt,
106-
this.createdGte,
107-
this.createdLt,
108-
this.createdLte,
109-
this.deliverySuccess,
110-
this.extraParams,
111-
this.limit,
112-
this.objectId,
113-
this.page);
114-
}
115-
116-
/** Filter for events created after the specified timestamp. */
117-
public Builder setCreatedGt(Instant createdGt) {
118-
this.createdGt = createdGt;
119-
return this;
120-
}
121-
122-
/** Filter for events created at or after the specified timestamp. */
123-
public Builder setCreatedGte(Instant createdGte) {
124-
this.createdGte = createdGte;
125-
return this;
126-
}
127-
128-
/** Filter for events created before the specified timestamp. */
129-
public Builder setCreatedLt(Instant createdLt) {
130-
this.createdLt = createdLt;
131-
return this;
132-
}
133-
134-
/** Filter for events created at or before the specified timestamp. */
135-
public Builder setCreatedLte(Instant createdLte) {
136-
this.createdLte = createdLte;
137-
return this;
138-
}
139-
140-
/**
141-
* Filter events based on whether they were successfully delivered to all subscribed event
142-
* destinations. If false, events which are still pending or have failed all delivery attempts
143-
* to a event destination will be returned.
144-
*/
145-
public Builder setDeliverySuccess(Boolean deliverySuccess) {
146-
this.deliverySuccess = deliverySuccess;
147-
return this;
56+
return new EventListParams(this.extraParams, this.limit, this.objectId, this.page);
14857
}
14958

15059
/**
@@ -179,7 +88,7 @@ public Builder setLimit(Integer limit) {
17988
return this;
18089
}
18190

182-
/** Primary object ID used to retrieve related events. */
91+
/** <strong>Required.</strong> Primary object ID used to retrieve related events. */
18392
public Builder setObjectId(String objectId) {
18493
this.objectId = objectId;
18594
return this;

src/main/java/com/stripe/service/v2/core/EventService.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@ public StripeCollection<Event> list(EventListParams params) throws StripeExcepti
2424
return list(params, (RequestOptions) null);
2525
}
2626
/** List events, going back up to 30 days. */
27-
public StripeCollection<Event> list(RequestOptions options) throws StripeException {
28-
return list((EventListParams) null, options);
29-
}
30-
/** List events, going back up to 30 days. */
31-
public StripeCollection<Event> list() throws StripeException {
32-
return list((EventListParams) null, (RequestOptions) null);
33-
}
34-
/** List events, going back up to 30 days. */
3527
public StripeCollection<Event> list(EventListParams params, RequestOptions options)
3628
throws StripeException {
3729
String path = "/v2/core/events";

0 commit comments

Comments
 (0)