Skip to content

Commit efb5b3a

Browse files
Merge pull request #2099 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents ae65410 + e873269 commit efb5b3a

9 files changed

Lines changed: 2352 additions & 16 deletions

File tree

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c5d9f47b11fbac901125e0621faadddc6ac6eb1e
1+
56689dcbcaa4c7ce6bf1b51a5add451972e0689c

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ This release changes the pinned API version to `2025-10-29.preview`.
7070
* Add support for new value `2025-10-29.clover` on enum `WebhookEndpointCreateParams.apiVersion`
7171

7272
## 30.1.0 - 2025-10-29
73+
74+
This release changes the pinned API version to `2025-10-29.clover`.
75+
7376
* [#2093](https://github.com/stripe/stripe-java/pull/2093) Update generated code
7477
* Improve docs for PaymentIntent related endpoints
7578
* [#2086](https://github.com/stripe/stripe-java/pull/2086) Update generated code

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2104
1+
v2106

src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ public static final class EventData {
2424
*
2525
* <p>One of {@code commercial.celtic.charge_card}, {@code commercial.celtic.spend_card}, {@code
2626
* commercial.cross_river_bank.charge_card}, {@code commercial.cross_river_bank.spend_card},
27-
* {@code commercial.stripe.charge_card}, or {@code commercial.stripe.prepaid_card}.
27+
* {@code commercial.lead.prepaid_card}, {@code commercial.stripe.charge_card}, or {@code
28+
* commercial.stripe.prepaid_card}.
2829
*/
2930
@SerializedName("updated_capability")
3031
String updatedCapability;

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

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ public class RequestedSession extends ApiResource
101101
@SerializedName("payment_method")
102102
String paymentMethod;
103103

104+
/** The preview of the payment method to be created when the requested session is confirmed. */
105+
@SerializedName("payment_method_preview")
106+
PaymentMethodPreview paymentMethodPreview;
107+
104108
@SerializedName("seller_details")
105109
SellerDetails sellerDetails;
106110

@@ -561,11 +565,118 @@ public static class LineItemDetail extends StripeObject {
561565
@Setter
562566
@EqualsAndHashCode(callSuper = false)
563567
public static class OrderDetails extends StripeObject {
568+
/** The seller's order identifier. */
569+
@SerializedName("order_id")
570+
String orderId;
571+
564572
/** The URL to the order status. */
565573
@SerializedName("order_status_url")
566574
String orderStatusUrl;
567575
}
568576

577+
/**
578+
* For more details about PaymentMethodPreview, please refer to the <a
579+
* href="https://docs.stripe.com/api">API Reference.</a>
580+
*/
581+
@Getter
582+
@Setter
583+
@EqualsAndHashCode(callSuper = false)
584+
public static class PaymentMethodPreview extends StripeObject {
585+
/** The billing details of the payment method. */
586+
@SerializedName("billing_details")
587+
BillingDetails billingDetails;
588+
589+
/** The card details of the payment method. */
590+
@SerializedName("card")
591+
Card card;
592+
593+
/** The type of the payment method. */
594+
@SerializedName("type")
595+
String type;
596+
597+
/**
598+
* For more details about BillingDetails, please refer to the <a
599+
* href="https://docs.stripe.com/api">API Reference.</a>
600+
*/
601+
@Getter
602+
@Setter
603+
@EqualsAndHashCode(callSuper = false)
604+
public static class BillingDetails extends StripeObject {
605+
/** The billing address. */
606+
@SerializedName("address")
607+
Address address;
608+
609+
/** The email address for the billing details. */
610+
@SerializedName("email")
611+
String email;
612+
613+
/** The name for the billing details. */
614+
@SerializedName("name")
615+
String name;
616+
617+
/** The phone number for the billing details. */
618+
@SerializedName("phone")
619+
String phone;
620+
621+
/**
622+
* For more details about Address, please refer to the <a
623+
* href="https://docs.stripe.com/api">API Reference.</a>
624+
*/
625+
@Getter
626+
@Setter
627+
@EqualsAndHashCode(callSuper = false)
628+
public static class Address extends StripeObject {
629+
/** City, district, suburb, town, or village. */
630+
@SerializedName("city")
631+
String city;
632+
633+
/**
634+
* Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
635+
* 3166-1 alpha-2</a>).
636+
*/
637+
@SerializedName("country")
638+
String country;
639+
640+
/** Address line 1, such as the street, PO Box, or company name. */
641+
@SerializedName("line1")
642+
String line1;
643+
644+
/** Address line 2, such as the apartment, suite, unit, or building. */
645+
@SerializedName("line2")
646+
String line2;
647+
648+
/** ZIP or postal code. */
649+
@SerializedName("postal_code")
650+
String postalCode;
651+
652+
/** State, county, province, or region. */
653+
@SerializedName("state")
654+
String state;
655+
}
656+
}
657+
658+
/**
659+
* For more details about Card, please refer to the <a href="https://docs.stripe.com/api">API
660+
* Reference.</a>
661+
*/
662+
@Getter
663+
@Setter
664+
@EqualsAndHashCode(callSuper = false)
665+
public static class Card extends StripeObject {
666+
/** The expiry month of the card. */
667+
@SerializedName("exp_month")
668+
Long expMonth;
669+
670+
/** The expiry year of the card. */
671+
@SerializedName("exp_year")
672+
Long expYear;
673+
674+
/** The last 4 digits of the card number. */
675+
@SerializedName("last4")
676+
String last4;
677+
}
678+
}
679+
569680
/**
570681
* For more details about SellerDetails, please refer to the <a
571682
* href="https://docs.stripe.com/api">API Reference.</a>
@@ -601,6 +712,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
601712
super.setResponseGetter(responseGetter);
602713
trySetResponseGetter(fulfillmentDetails, responseGetter);
603714
trySetResponseGetter(orderDetails, responseGetter);
715+
trySetResponseGetter(paymentMethodPreview, responseGetter);
604716
trySetResponseGetter(sellerDetails, responseGetter);
605717
trySetResponseGetter(totalDetails, responseGetter);
606718
}

0 commit comments

Comments
 (0)