Skip to content

Commit 999ae36

Browse files
Update generated code for v1520
1 parent ac8b868 commit 999ae36

File tree

8 files changed

+160
-61
lines changed

8 files changed

+160
-61
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1518
1+
v1520

src/main/java/com/stripe/model/PaymentMethodDomain.java

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,13 @@ public PaymentMethodDomain update(PaymentMethodDomainUpdateParams params, Reques
236236
}
237237

238238
/**
239-
* Some payment methods such as Apple Pay require additional steps to verify a domain. If the
240-
* requirements weren’t satisfied when the domain was created, the payment method will be inactive
241-
* on the domain. The payment method doesn’t appear in Elements for this domain until it is
242-
* active.
239+
* Some payment methods might require additional steps to register a domain. If the requirements
240+
* weren’t satisfied when the domain was created, the payment method will be inactive on the
241+
* domain. The payment method doesn’t appear in Elements or Embedded Checkout for this domain
242+
* until it is active.
243243
*
244244
* <p>To activate a payment method on an existing payment method domain, complete the required
245-
* validation steps specific to the payment method, and then validate the payment method domain
245+
* registration steps specific to the payment method, and then validate the payment method domain
246246
* with this endpoint.
247247
*
248248
* <p>Related guides: <a
@@ -254,13 +254,13 @@ public PaymentMethodDomain validate() throws StripeException {
254254
}
255255

256256
/**
257-
* Some payment methods such as Apple Pay require additional steps to verify a domain. If the
258-
* requirements weren’t satisfied when the domain was created, the payment method will be inactive
259-
* on the domain. The payment method doesn’t appear in Elements for this domain until it is
260-
* active.
257+
* Some payment methods might require additional steps to register a domain. If the requirements
258+
* weren’t satisfied when the domain was created, the payment method will be inactive on the
259+
* domain. The payment method doesn’t appear in Elements or Embedded Checkout for this domain
260+
* until it is active.
261261
*
262262
* <p>To activate a payment method on an existing payment method domain, complete the required
263-
* validation steps specific to the payment method, and then validate the payment method domain
263+
* registration steps specific to the payment method, and then validate the payment method domain
264264
* with this endpoint.
265265
*
266266
* <p>Related guides: <a
@@ -272,13 +272,13 @@ public PaymentMethodDomain validate(RequestOptions options) throws StripeExcepti
272272
}
273273

274274
/**
275-
* Some payment methods such as Apple Pay require additional steps to verify a domain. If the
276-
* requirements weren’t satisfied when the domain was created, the payment method will be inactive
277-
* on the domain. The payment method doesn’t appear in Elements for this domain until it is
278-
* active.
275+
* Some payment methods might require additional steps to register a domain. If the requirements
276+
* weren’t satisfied when the domain was created, the payment method will be inactive on the
277+
* domain. The payment method doesn’t appear in Elements or Embedded Checkout for this domain
278+
* until it is active.
279279
*
280280
* <p>To activate a payment method on an existing payment method domain, complete the required
281-
* validation steps specific to the payment method, and then validate the payment method domain
281+
* registration steps specific to the payment method, and then validate the payment method domain
282282
* with this endpoint.
283283
*
284284
* <p>Related guides: <a
@@ -290,13 +290,13 @@ public PaymentMethodDomain validate(Map<String, Object> params) throws StripeExc
290290
}
291291

292292
/**
293-
* Some payment methods such as Apple Pay require additional steps to verify a domain. If the
294-
* requirements weren’t satisfied when the domain was created, the payment method will be inactive
295-
* on the domain. The payment method doesn’t appear in Elements for this domain until it is
296-
* active.
293+
* Some payment methods might require additional steps to register a domain. If the requirements
294+
* weren’t satisfied when the domain was created, the payment method will be inactive on the
295+
* domain. The payment method doesn’t appear in Elements or Embedded Checkout for this domain
296+
* until it is active.
297297
*
298298
* <p>To activate a payment method on an existing payment method domain, complete the required
299-
* validation steps specific to the payment method, and then validate the payment method domain
299+
* registration steps specific to the payment method, and then validate the payment method domain
300300
* with this endpoint.
301301
*
302302
* <p>Related guides: <a
@@ -314,13 +314,13 @@ public PaymentMethodDomain validate(Map<String, Object> params, RequestOptions o
314314
}
315315

316316
/**
317-
* Some payment methods such as Apple Pay require additional steps to verify a domain. If the
318-
* requirements weren’t satisfied when the domain was created, the payment method will be inactive
319-
* on the domain. The payment method doesn’t appear in Elements for this domain until it is
320-
* active.
317+
* Some payment methods might require additional steps to register a domain. If the requirements
318+
* weren’t satisfied when the domain was created, the payment method will be inactive on the
319+
* domain. The payment method doesn’t appear in Elements or Embedded Checkout for this domain
320+
* until it is active.
321321
*
322322
* <p>To activate a payment method on an existing payment method domain, complete the required
323-
* validation steps specific to the payment method, and then validate the payment method domain
323+
* registration steps specific to the payment method, and then validate the payment method domain
324324
* with this endpoint.
325325
*
326326
* <p>Related guides: <a
@@ -333,13 +333,13 @@ public PaymentMethodDomain validate(PaymentMethodDomainValidateParams params)
333333
}
334334

335335
/**
336-
* Some payment methods such as Apple Pay require additional steps to verify a domain. If the
337-
* requirements weren’t satisfied when the domain was created, the payment method will be inactive
338-
* on the domain. The payment method doesn’t appear in Elements for this domain until it is
339-
* active.
336+
* Some payment methods might require additional steps to register a domain. If the requirements
337+
* weren’t satisfied when the domain was created, the payment method will be inactive on the
338+
* domain. The payment method doesn’t appear in Elements or Embedded Checkout for this domain
339+
* until it is active.
340340
*
341341
* <p>To activate a payment method on an existing payment method domain, complete the required
342-
* validation steps specific to the payment method, and then validate the payment method domain
342+
* registration steps specific to the payment method, and then validate the payment method domain
343343
* with this endpoint.
344344
*
345345
* <p>Related guides: <a

src/main/java/com/stripe/param/PaymentMethodDomainCreateParams.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class PaymentMethodDomainCreateParams extends ApiRequestParams {
1919

2020
/**
2121
* Whether this payment method domain is enabled. If the domain is not enabled, payment methods
22-
* that require a payment method domain will not appear in Elements.
22+
* that require a payment method domain will not appear in Elements or Embedded Checkout.
2323
*/
2424
@SerializedName("enabled")
2525
Boolean enabled;
@@ -74,7 +74,7 @@ public Builder setDomainName(String domainName) {
7474

7575
/**
7676
* Whether this payment method domain is enabled. If the domain is not enabled, payment methods
77-
* that require a payment method domain will not appear in Elements.
77+
* that require a payment method domain will not appear in Elements or Embedded Checkout.
7878
*/
7979
public Builder setEnabled(Boolean enabled) {
8080
this.enabled = enabled;

src/main/java/com/stripe/param/PaymentMethodDomainListParams.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class PaymentMethodDomainListParams extends ApiRequestParams {
1717

1818
/**
1919
* Whether this payment method domain is enabled. If the domain is not enabled, payment methods
20-
* will not appear in Elements
20+
* will not appear in Elements or Embedded Checkout
2121
*/
2222
@SerializedName("enabled")
2323
Boolean enabled;
@@ -116,7 +116,7 @@ public Builder setDomainName(String domainName) {
116116

117117
/**
118118
* Whether this payment method domain is enabled. If the domain is not enabled, payment methods
119-
* will not appear in Elements
119+
* will not appear in Elements or Embedded Checkout
120120
*/
121121
public Builder setEnabled(Boolean enabled) {
122122
this.enabled = enabled;

src/main/java/com/stripe/param/PaymentMethodDomainUpdateParams.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
public class PaymentMethodDomainUpdateParams extends ApiRequestParams {
1414
/**
1515
* Whether this payment method domain is enabled. If the domain is not enabled, payment methods
16-
* that require a payment method domain will not appear in Elements.
16+
* that require a payment method domain will not appear in Elements or Embedded Checkout.
1717
*/
1818
@SerializedName("enabled")
1919
Boolean enabled;
@@ -56,7 +56,7 @@ public PaymentMethodDomainUpdateParams build() {
5656

5757
/**
5858
* Whether this payment method domain is enabled. If the domain is not enabled, payment methods
59-
* that require a payment method domain will not appear in Elements.
59+
* that require a payment method domain will not appear in Elements or Embedded Checkout.
6060
*/
6161
public Builder setEnabled(Boolean enabled) {
6262
this.enabled = enabled;

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

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

44
import com.google.gson.annotations.SerializedName;
55
import com.stripe.net.ApiRequestParams;
6+
import java.time.Instant;
67
import java.util.HashMap;
78
import java.util.Map;
89
import lombok.Getter;
910

1011
@Getter
1112
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+
1237
/**
1338
* Map of extra parameters for custom features not available in this client library. The content
1439
* in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
@@ -22,7 +47,7 @@ public class EventListParams extends ApiRequestParams {
2247
@SerializedName("limit")
2348
Integer limit;
2449

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

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

3358
private EventListParams(
34-
Map<String, Object> extraParams, Integer limit, String objectId, String page) {
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;
3573
this.extraParams = extraParams;
3674
this.limit = limit;
3775
this.objectId = objectId;
@@ -43,6 +81,16 @@ public static Builder builder() {
4381
}
4482

4583
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+
4694
private Map<String, Object> extraParams;
4795

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

54102
/** Finalize and obtain parameter instance from this builder. */
55103
public EventListParams build() {
56-
return new EventListParams(this.extraParams, this.limit, this.objectId, this.page);
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;
57148
}
58149

59150
/**
@@ -88,7 +179,7 @@ public Builder setLimit(Integer limit) {
88179
return this;
89180
}
90181

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

src/main/java/com/stripe/service/PaymentMethodDomainService.java

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@ public PaymentMethodDomain update(
130130
return this.request(request, PaymentMethodDomain.class);
131131
}
132132
/**
133-
* Some payment methods such as Apple Pay require additional steps to verify a domain. If the
134-
* requirements weren’t satisfied when the domain was created, the payment method will be inactive
135-
* on the domain. The payment method doesn’t appear in Elements for this domain until it is
136-
* active.
133+
* Some payment methods might require additional steps to register a domain. If the requirements
134+
* weren’t satisfied when the domain was created, the payment method will be inactive on the
135+
* domain. The payment method doesn’t appear in Elements or Embedded Checkout for this domain
136+
* until it is active.
137137
*
138138
* <p>To activate a payment method on an existing payment method domain, complete the required
139-
* validation steps specific to the payment method, and then validate the payment method domain
139+
* registration steps specific to the payment method, and then validate the payment method domain
140140
* with this endpoint.
141141
*
142142
* <p>Related guides: <a
@@ -148,13 +148,13 @@ public PaymentMethodDomain validate(
148148
return validate(paymentMethodDomain, params, (RequestOptions) null);
149149
}
150150
/**
151-
* Some payment methods such as Apple Pay require additional steps to verify a domain. If the
152-
* requirements weren’t satisfied when the domain was created, the payment method will be inactive
153-
* on the domain. The payment method doesn’t appear in Elements for this domain until it is
154-
* active.
151+
* Some payment methods might require additional steps to register a domain. If the requirements
152+
* weren’t satisfied when the domain was created, the payment method will be inactive on the
153+
* domain. The payment method doesn’t appear in Elements or Embedded Checkout for this domain
154+
* until it is active.
155155
*
156156
* <p>To activate a payment method on an existing payment method domain, complete the required
157-
* validation steps specific to the payment method, and then validate the payment method domain
157+
* registration steps specific to the payment method, and then validate the payment method domain
158158
* with this endpoint.
159159
*
160160
* <p>Related guides: <a
@@ -166,13 +166,13 @@ public PaymentMethodDomain validate(String paymentMethodDomain, RequestOptions o
166166
return validate(paymentMethodDomain, (PaymentMethodDomainValidateParams) null, options);
167167
}
168168
/**
169-
* Some payment methods such as Apple Pay require additional steps to verify a domain. If the
170-
* requirements weren’t satisfied when the domain was created, the payment method will be inactive
171-
* on the domain. The payment method doesn’t appear in Elements for this domain until it is
172-
* active.
169+
* Some payment methods might require additional steps to register a domain. If the requirements
170+
* weren’t satisfied when the domain was created, the payment method will be inactive on the
171+
* domain. The payment method doesn’t appear in Elements or Embedded Checkout for this domain
172+
* until it is active.
173173
*
174174
* <p>To activate a payment method on an existing payment method domain, complete the required
175-
* validation steps specific to the payment method, and then validate the payment method domain
175+
* registration steps specific to the payment method, and then validate the payment method domain
176176
* with this endpoint.
177177
*
178178
* <p>Related guides: <a
@@ -184,13 +184,13 @@ public PaymentMethodDomain validate(String paymentMethodDomain) throws StripeExc
184184
paymentMethodDomain, (PaymentMethodDomainValidateParams) null, (RequestOptions) null);
185185
}
186186
/**
187-
* Some payment methods such as Apple Pay require additional steps to verify a domain. If the
188-
* requirements weren’t satisfied when the domain was created, the payment method will be inactive
189-
* on the domain. The payment method doesn’t appear in Elements for this domain until it is
190-
* active.
187+
* Some payment methods might require additional steps to register a domain. If the requirements
188+
* weren’t satisfied when the domain was created, the payment method will be inactive on the
189+
* domain. The payment method doesn’t appear in Elements or Embedded Checkout for this domain
190+
* until it is active.
191191
*
192192
* <p>To activate a payment method on an existing payment method domain, complete the required
193-
* validation steps specific to the payment method, and then validate the payment method domain
193+
* registration steps specific to the payment method, and then validate the payment method domain
194194
* with this endpoint.
195195
*
196196
* <p>Related guides: <a

0 commit comments

Comments
 (0)