Codegen for openapi v164 · stripe/stripe-java@424d45e (original) (raw)
`@@ -15,6 +15,10 @@ public class SessionListParams extends ApiRequestParams {
`
15
15
`@SerializedName("customer")
`
16
16
`String customer;
`
17
17
``
``
18
`+
/** Only return the Checkout Sessions for the Customer details specified. */
`
``
19
`+
@SerializedName("customer_details")
`
``
20
`+
CustomerDetails customerDetails;
`
``
21
+
18
22
`/**
`
19
23
` * A cursor for use in pagination. {@code ending_before} is an object ID that defines your place
`
20
24
` * in the list. For instance, if you make a list request and receive 100 objects, starting with
`
`@@ -63,6 +67,7 @@ public class SessionListParams extends ApiRequestParams {
`
63
67
``
64
68
`private SessionListParams(
`
65
69
`String customer,
`
``
70
`+
CustomerDetails customerDetails,
`
66
71
`String endingBefore,
`
67
72
`List expand,
`
68
73
`Map<String, Object> extraParams,
`
`@@ -71,6 +76,7 @@ private SessionListParams(
`
71
76
`String startingAfter,
`
72
77
`String subscription) {
`
73
78
`this.customer = customer;
`
``
79
`+
this.customerDetails = customerDetails;
`
74
80
`this.endingBefore = endingBefore;
`
75
81
`this.expand = expand;
`
76
82
`this.extraParams = extraParams;
`
`@@ -87,6 +93,8 @@ public static Builder builder() {
`
87
93
`public static class Builder {
`
88
94
`private String customer;
`
89
95
``
``
96
`+
private CustomerDetails customerDetails;
`
``
97
+
90
98
`private String endingBefore;
`
91
99
``
92
100
`private List expand;
`
`@@ -105,6 +113,7 @@ public static class Builder {
`
105
113
`public SessionListParams build() {
`
106
114
`return new SessionListParams(
`
107
115
`this.customer,
`
``
116
`+
this.customerDetails,
`
108
117
`this.endingBefore,
`
109
118
`this.expand,
`
110
119
`this.extraParams,
`
`@@ -120,6 +129,12 @@ public Builder setCustomer(String customer) {
`
120
129
`return this;
`
121
130
` }
`
122
131
``
``
132
`+
/** Only return the Checkout Sessions for the Customer details specified. */
`
``
133
`+
public Builder setCustomerDetails(CustomerDetails customerDetails) {
`
``
134
`+
this.customerDetails = customerDetails;
`
``
135
`+
return this;
`
``
136
`+
}
`
``
137
+
123
138
`/**
`
124
139
` * A cursor for use in pagination. {@code ending_before} is an object ID that defines your place
`
125
140
` * in the list. For instance, if you make a list request and receive 100 objects, starting with
`
`@@ -215,4 +230,72 @@ public Builder setSubscription(String subscription) {
`
215
230
`return this;
`
216
231
` }
`
217
232
` }
`
``
233
+
``
234
`+
@Getter
`
``
235
`+
public static class CustomerDetails {
`
``
236
`+
/** Customer's email address. */
`
``
237
`+
@SerializedName("email")
`
``
238
`+
String email;
`
``
239
+
``
240
`+
/**
`
``
241
`+
- Map of extra parameters for custom features not available in this client library. The content
`
``
242
`+
- in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
`
``
243
`+
- key/value pair is serialized as if the key is a root-level field (serialized) name in this
`
``
244
`+
- param object. Effectively, this map is flattened to its parent instance.
`
``
245
`+
*/
`
``
246
`+
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
`
``
247
`+
Map<String, Object> extraParams;
`
``
248
+
``
249
`+
private CustomerDetails(String email, Map<String, Object> extraParams) {
`
``
250
`+
this.email = email;
`
``
251
`+
this.extraParams = extraParams;
`
``
252
`+
}
`
``
253
+
``
254
`+
public static Builder builder() {
`
``
255
`+
return new Builder();
`
``
256
`+
}
`
``
257
+
``
258
`+
public static class Builder {
`
``
259
`+
private String email;
`
``
260
+
``
261
`+
private Map<String, Object> extraParams;
`
``
262
+
``
263
`+
/** Finalize and obtain parameter instance from this builder. */
`
``
264
`+
public CustomerDetails build() {
`
``
265
`+
return new CustomerDetails(this.email, this.extraParams);
`
``
266
`+
}
`
``
267
+
``
268
`+
/** Customer's email address. */
`
``
269
`+
public Builder setEmail(String email) {
`
``
270
`+
this.email = email;
`
``
271
`+
return this;
`
``
272
`+
}
`
``
273
+
``
274
`+
/**
`
``
275
`` +
- Add a key/value pair to
extraParamsmap. A map is initialized for the firstput/putAll
``
``
276
`+
- call, and subsequent calls add additional key/value pairs to the original map. See {@link
`
``
277
`+
- SessionListParams.CustomerDetails#extraParams} for the field documentation.
`
``
278
`+
*/
`
``
279
`+
public Builder putExtraParam(String key, Object value) {
`
``
280
`+
if (this.extraParams == null) {
`
``
281
`+
this.extraParams = new HashMap<>();
`
``
282
`+
}
`
``
283
`+
this.extraParams.put(key, value);
`
``
284
`+
return this;
`
``
285
`+
}
`
``
286
+
``
287
`+
/**
`
``
288
`` +
- Add all map key/value pairs to
extraParamsmap. A map is initialized for the first
``
``
289
`` +
put/putAllcall, and subsequent calls add additional key/value pairs to the original map.
``
``
290
`+
- See {@link SessionListParams.CustomerDetails#extraParams} for the field documentation.
`
``
291
`+
*/
`
``
292
`+
public Builder putAllExtraParam(Map<String, Object> map) {
`
``
293
`+
if (this.extraParams == null) {
`
``
294
`+
this.extraParams = new HashMap<>();
`
``
295
`+
}
`
``
296
`+
this.extraParams.putAll(map);
`
``
297
`+
return this;
`
``
298
`+
}
`
``
299
`+
}
`
``
300
`+
}
`
218
301
`}
`