Skip to content

Commit 28c96f7

Browse files
Update generated code for v2100 and
1 parent 6b3ca44 commit 28c96f7

4 files changed

Lines changed: 71 additions & 68 deletions

File tree

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
173b24e412b55604d1775225f1560f5218fbaeca
1+
577fcb57736b925392ea563c0284df9002c75ac9

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2096
1+
v2100

src/main/java/com/stripe/model/delegatedcheckout/RequestedSession.java

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,6 @@ public static class FulfillmentDetails extends StripeObject {
369369
@SerializedName("email")
370370
String email;
371371

372-
/** The fulfillment option. */
373-
@SerializedName("fulfillment_option")
374-
FulfillmentOption fulfillmentOption;
375-
376372
/** The fulfillment options. */
377373
@SerializedName("fulfillment_options")
378374
List<RequestedSession.FulfillmentDetails.FulfillmentOption> fulfillmentOptions;
@@ -385,6 +381,10 @@ public static class FulfillmentDetails extends StripeObject {
385381
@SerializedName("phone")
386382
String phone;
387383

384+
/** The fulfillment option. */
385+
@SerializedName("selected_fulfillment_option")
386+
SelectedFulfillmentOption selectedFulfillmentOption;
387+
388388
/**
389389
* For more details about Address, please refer to the <a href="https://docs.stripe.com/api">API
390390
* Reference.</a>
@@ -421,36 +421,6 @@ public static class Address extends StripeObject {
421421
String state;
422422
}
423423

424-
/**
425-
* For more details about FulfillmentOption, please refer to the <a
426-
* href="https://docs.stripe.com/api">API Reference.</a>
427-
*/
428-
@Getter
429-
@Setter
430-
@EqualsAndHashCode(callSuper = false)
431-
public static class FulfillmentOption extends StripeObject {
432-
/** The shipping option. */
433-
@SerializedName("shipping")
434-
Shipping shipping;
435-
436-
/** The type of the selected fulfillment option. */
437-
@SerializedName("type")
438-
String type;
439-
440-
/**
441-
* For more details about Shipping, please refer to the <a
442-
* href="https://docs.stripe.com/api">API Reference.</a>
443-
*/
444-
@Getter
445-
@Setter
446-
@EqualsAndHashCode(callSuper = false)
447-
public static class Shipping extends StripeObject {
448-
/** The shipping option. */
449-
@SerializedName("shipping_option")
450-
String shippingOption;
451-
}
452-
}
453-
454424
/**
455425
* For more details about FulfillmentOption, please refer to the <a
456426
* href="https://docs.stripe.com/api">API Reference.</a>
@@ -514,6 +484,36 @@ public static class ShippingOption extends StripeObject {
514484
}
515485
}
516486
}
487+
488+
/**
489+
* For more details about SelectedFulfillmentOption, please refer to the <a
490+
* href="https://docs.stripe.com/api">API Reference.</a>
491+
*/
492+
@Getter
493+
@Setter
494+
@EqualsAndHashCode(callSuper = false)
495+
public static class SelectedFulfillmentOption extends StripeObject {
496+
/** The shipping option. */
497+
@SerializedName("shipping")
498+
Shipping shipping;
499+
500+
/** The type of the selected fulfillment option. */
501+
@SerializedName("type")
502+
String type;
503+
504+
/**
505+
* For more details about Shipping, please refer to the <a
506+
* href="https://docs.stripe.com/api">API Reference.</a>
507+
*/
508+
@Getter
509+
@Setter
510+
@EqualsAndHashCode(callSuper = false)
511+
public static class Shipping extends StripeObject {
512+
/** The shipping option. */
513+
@SerializedName("shipping_option")
514+
String shippingOption;
515+
}
516+
}
517517
}
518518

519519
/**

src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionUpdateParams.java

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,6 @@ public static class FulfillmentDetails {
281281
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
282282
Map<String, Object> extraParams;
283283

284-
/** The fulfillment option to select. */
285-
@SerializedName("fulfillment_option")
286-
FulfillmentOption fulfillmentOption;
287-
288284
/** The customer's name. */
289285
@SerializedName("name")
290286
Object name;
@@ -293,19 +289,23 @@ public static class FulfillmentDetails {
293289
@SerializedName("phone")
294290
Object phone;
295291

292+
/** The fulfillment option to select. */
293+
@SerializedName("selected_fulfillment_option")
294+
SelectedFulfillmentOption selectedFulfillmentOption;
295+
296296
private FulfillmentDetails(
297297
Address address,
298298
Object email,
299299
Map<String, Object> extraParams,
300-
FulfillmentOption fulfillmentOption,
301300
Object name,
302-
Object phone) {
301+
Object phone,
302+
SelectedFulfillmentOption selectedFulfillmentOption) {
303303
this.address = address;
304304
this.email = email;
305305
this.extraParams = extraParams;
306-
this.fulfillmentOption = fulfillmentOption;
307306
this.name = name;
308307
this.phone = phone;
308+
this.selectedFulfillmentOption = selectedFulfillmentOption;
309309
}
310310

311311
public static Builder builder() {
@@ -319,21 +319,21 @@ public static class Builder {
319319

320320
private Map<String, Object> extraParams;
321321

322-
private FulfillmentOption fulfillmentOption;
323-
324322
private Object name;
325323

326324
private Object phone;
327325

326+
private SelectedFulfillmentOption selectedFulfillmentOption;
327+
328328
/** Finalize and obtain parameter instance from this builder. */
329329
public RequestedSessionUpdateParams.FulfillmentDetails build() {
330330
return new RequestedSessionUpdateParams.FulfillmentDetails(
331331
this.address,
332332
this.email,
333333
this.extraParams,
334-
this.fulfillmentOption,
335334
this.name,
336-
this.phone);
335+
this.phone,
336+
this.selectedFulfillmentOption);
337337
}
338338

339339
public Builder setAddress(RequestedSessionUpdateParams.FulfillmentDetails.Address address) {
@@ -380,13 +380,6 @@ public Builder putAllExtraParam(Map<String, Object> map) {
380380
return this;
381381
}
382382

383-
/** The fulfillment option to select. */
384-
public Builder setFulfillmentOption(
385-
RequestedSessionUpdateParams.FulfillmentDetails.FulfillmentOption fulfillmentOption) {
386-
this.fulfillmentOption = fulfillmentOption;
387-
return this;
388-
}
389-
390383
/** The customer's name. */
391384
public Builder setName(String name) {
392385
this.name = name;
@@ -410,6 +403,14 @@ public Builder setPhone(EmptyParam phone) {
410403
this.phone = phone;
411404
return this;
412405
}
406+
407+
/** The fulfillment option to select. */
408+
public Builder setSelectedFulfillmentOption(
409+
RequestedSessionUpdateParams.FulfillmentDetails.SelectedFulfillmentOption
410+
selectedFulfillmentOption) {
411+
this.selectedFulfillmentOption = selectedFulfillmentOption;
412+
return this;
413+
}
413414
}
414415

415416
@Getter
@@ -613,7 +614,7 @@ public Builder setState(EmptyParam state) {
613614

614615
@Getter
615616
@EqualsAndHashCode(callSuper = false)
616-
public static class FulfillmentOption {
617+
public static class SelectedFulfillmentOption {
617618
/**
618619
* Map of extra parameters for custom features not available in this client library. The
619620
* content in this map is not serialized under this field's {@code @SerializedName} value.
@@ -631,7 +632,8 @@ public static class FulfillmentOption {
631632
@SerializedName("type")
632633
Object type;
633634

634-
private FulfillmentOption(Map<String, Object> extraParams, Shipping shipping, Object type) {
635+
private SelectedFulfillmentOption(
636+
Map<String, Object> extraParams, Shipping shipping, Object type) {
635637
this.extraParams = extraParams;
636638
this.shipping = shipping;
637639
this.type = type;
@@ -649,17 +651,17 @@ public static class Builder {
649651
private Object type;
650652

651653
/** Finalize and obtain parameter instance from this builder. */
652-
public RequestedSessionUpdateParams.FulfillmentDetails.FulfillmentOption build() {
653-
return new RequestedSessionUpdateParams.FulfillmentDetails.FulfillmentOption(
654+
public RequestedSessionUpdateParams.FulfillmentDetails.SelectedFulfillmentOption build() {
655+
return new RequestedSessionUpdateParams.FulfillmentDetails.SelectedFulfillmentOption(
654656
this.extraParams, this.shipping, this.type);
655657
}
656658

657659
/**
658660
* Add a key/value pair to `extraParams` map. A map is initialized for the first
659661
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
660662
* map. See {@link
661-
* RequestedSessionUpdateParams.FulfillmentDetails.FulfillmentOption#extraParams} for the
662-
* field documentation.
663+
* RequestedSessionUpdateParams.FulfillmentDetails.SelectedFulfillmentOption#extraParams}
664+
* for the field documentation.
663665
*/
664666
public Builder putExtraParam(String key, Object value) {
665667
if (this.extraParams == null) {
@@ -673,8 +675,8 @@ public Builder putExtraParam(String key, Object value) {
673675
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
674676
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
675677
* map. See {@link
676-
* RequestedSessionUpdateParams.FulfillmentDetails.FulfillmentOption#extraParams} for the
677-
* field documentation.
678+
* RequestedSessionUpdateParams.FulfillmentDetails.SelectedFulfillmentOption#extraParams}
679+
* for the field documentation.
678680
*/
679681
public Builder putAllExtraParam(Map<String, Object> map) {
680682
if (this.extraParams == null) {
@@ -686,7 +688,8 @@ public Builder putAllExtraParam(Map<String, Object> map) {
686688

687689
/** <strong>Required.</strong> The shipping fulfillment option. */
688690
public Builder setShipping(
689-
RequestedSessionUpdateParams.FulfillmentDetails.FulfillmentOption.Shipping shipping) {
691+
RequestedSessionUpdateParams.FulfillmentDetails.SelectedFulfillmentOption.Shipping
692+
shipping) {
690693
this.shipping = shipping;
691694
return this;
692695
}
@@ -736,17 +739,17 @@ public static class Builder {
736739
private Object shippingOption;
737740

738741
/** Finalize and obtain parameter instance from this builder. */
739-
public RequestedSessionUpdateParams.FulfillmentDetails.FulfillmentOption.Shipping
742+
public RequestedSessionUpdateParams.FulfillmentDetails.SelectedFulfillmentOption.Shipping
740743
build() {
741-
return new RequestedSessionUpdateParams.FulfillmentDetails.FulfillmentOption.Shipping(
742-
this.extraParams, this.shippingOption);
744+
return new RequestedSessionUpdateParams.FulfillmentDetails.SelectedFulfillmentOption
745+
.Shipping(this.extraParams, this.shippingOption);
743746
}
744747

745748
/**
746749
* Add a key/value pair to `extraParams` map. A map is initialized for the first
747750
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
748751
* map. See {@link
749-
* RequestedSessionUpdateParams.FulfillmentDetails.FulfillmentOption.Shipping#extraParams}
752+
* RequestedSessionUpdateParams.FulfillmentDetails.SelectedFulfillmentOption.Shipping#extraParams}
750753
* for the field documentation.
751754
*/
752755
public Builder putExtraParam(String key, Object value) {
@@ -761,7 +764,7 @@ public Builder putExtraParam(String key, Object value) {
761764
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
762765
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
763766
* map. See {@link
764-
* RequestedSessionUpdateParams.FulfillmentDetails.FulfillmentOption.Shipping#extraParams}
767+
* RequestedSessionUpdateParams.FulfillmentDetails.SelectedFulfillmentOption.Shipping#extraParams}
765768
* for the field documentation.
766769
*/
767770
public Builder putAllExtraParam(Map<String, Object> map) {

0 commit comments

Comments
 (0)