Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c5d9f47b11fbac901125e0621faadddc6ac6eb1e
56689dcbcaa4c7ce6bf1b51a5add451972e0689c
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ This release changes the pinned API version to `2025-10-29.preview`.
* Add support for new value `2025-10-29.clover` on enum `WebhookEndpointCreateParams.apiVersion`

## 30.1.0 - 2025-10-29

This release changes the pinned API version to `2025-10-29.clover`.

* [#2093](https://github.com/stripe/stripe-java/pull/2093) Update generated code
* Improve docs for PaymentIntent related endpoints
* [#2086](https://github.com/stripe/stripe-java/pull/2086) Update generated code
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2104
v2106
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ public static final class EventData {
*
* <p>One of {@code commercial.celtic.charge_card}, {@code commercial.celtic.spend_card}, {@code
* commercial.cross_river_bank.charge_card}, {@code commercial.cross_river_bank.spend_card},
* {@code commercial.stripe.charge_card}, or {@code commercial.stripe.prepaid_card}.
* {@code commercial.lead.prepaid_card}, {@code commercial.stripe.charge_card}, or {@code
* commercial.stripe.prepaid_card}.
*/
@SerializedName("updated_capability")
String updatedCapability;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ public class RequestedSession extends ApiResource
@SerializedName("payment_method")
String paymentMethod;

/** The preview of the payment method to be created when the requested session is confirmed. */
@SerializedName("payment_method_preview")
PaymentMethodPreview paymentMethodPreview;

@SerializedName("seller_details")
SellerDetails sellerDetails;

Expand Down Expand Up @@ -561,11 +565,118 @@ public static class LineItemDetail extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class OrderDetails extends StripeObject {
/** The seller's order identifier. */
@SerializedName("order_id")
String orderId;

/** The URL to the order status. */
@SerializedName("order_status_url")
String orderStatusUrl;
}

/**
* For more details about PaymentMethodPreview, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class PaymentMethodPreview extends StripeObject {
/** The billing details of the payment method. */
@SerializedName("billing_details")
BillingDetails billingDetails;

/** The card details of the payment method. */
@SerializedName("card")
Card card;

/** The type of the payment method. */
@SerializedName("type")
String type;

/**
* For more details about BillingDetails, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class BillingDetails extends StripeObject {
/** The billing address. */
@SerializedName("address")
Address address;

/** The email address for the billing details. */
@SerializedName("email")
String email;

/** The name for the billing details. */
@SerializedName("name")
String name;

/** The phone number for the billing details. */
@SerializedName("phone")
String phone;

/**
* For more details about Address, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Address extends StripeObject {
/** City, district, suburb, town, or village. */
@SerializedName("city")
String city;

/**
* Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
* 3166-1 alpha-2</a>).
*/
@SerializedName("country")
String country;

/** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;

/** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;

/** ZIP or postal code. */
@SerializedName("postal_code")
String postalCode;

/** State, county, province, or region. */
@SerializedName("state")
String state;
}
}

/**
* For more details about Card, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Card extends StripeObject {
/** The expiry month of the card. */
@SerializedName("exp_month")
Long expMonth;

/** The expiry year of the card. */
@SerializedName("exp_year")
Long expYear;

/** The last 4 digits of the card number. */
@SerializedName("last4")
String last4;
}
}

/**
* For more details about SellerDetails, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down Expand Up @@ -601,6 +712,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
trySetResponseGetter(fulfillmentDetails, responseGetter);
trySetResponseGetter(orderDetails, responseGetter);
trySetResponseGetter(paymentMethodPreview, responseGetter);
trySetResponseGetter(sellerDetails, responseGetter);
trySetResponseGetter(totalDetails, responseGetter);
}
Expand Down
Loading
Loading