Skip to content

Commit 1b582e3

Browse files
Merge pull request #2197 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents 9a3674f + 3a42b57 commit 1b582e3

109 files changed

Lines changed: 11168 additions & 1750 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,58 @@ This release changes the pinned API version to `2026-03-25.preview` and contains
8989
* Add support for event notifications `V1AccountSignalsIncludingDelinquencyCreatedEvent`, `V2CoreAccountSignalsFraudulentWebsiteReadyEvent`, and `V2SignalsAccountSignalFraudulentMerchantReadyEvent`
9090
* [#2188](https://github.com/stripe/stripe-java/pull/2188) Merge to private-preview
9191

92+
## 32.0.0 - 2026-03-25
93+
94+
This release changes the pinned API version to `2026-03-25.dahlia` and contains breaking changes (prefixed with ⚠️ below). There's also a [detailed migration guide](https://github.com/stripe/stripe-java/wiki/Migration-guide-for-v32) to simplify your upgrade process.
95+
96+
Please review details for the breaking changes and alternatives in the [Stripe API changelog](https://docs.stripe.com/changelog/dahlia) before upgrading.
97+
98+
* ⚠️ **Breaking change:** [#2182](https://github.com/stripe/stripe-java/pull/2182) Add setHttpClient to StripeClientBuilder; clean up apiKey/authenticator coupling
99+
- ⚠️ Removed `RequestOptions.getApiKey()`, `RequestOptions.RequestOptionsBuilder.getApiKey()`, and `StripeClient.StripeClientBuilder.getApiKey()`. Use `getAuthenticator()` instead.
100+
- Added `StripeClient.StripeClientBuilder.setHttpClient(HttpClient)` to allow injecting a custom HTTP client.
101+
* ⚠️ **Breaking change:** [#2187](https://github.com/stripe/stripe-java/pull/2187) Regenerate with decimal_string enabled for v2 APIs
102+
- V2 API decimal fields changed type from `String` to `BigDecimal`. Code that reads or writes these fields as `String` will need to use `BigDecimal` instead. Affected fields:
103+
- **V2.Core.Account** / **V2.Core.AccountPerson**: `percentOwnership`
104+
- **PaymentEvaluation.Signals.FraudulentPayment**: `score`
105+
- Params: `AccountCreateParams`, `PersonCreateParams`, `AccountTokenCreateParams`, `PersonTokenCreateParams` (all: `percentOwnership`)
106+
- Params: `InvoiceItemCreateParams`, `InvoiceAddLinesParams`, `InvoiceUpdateLinesParams`, `InvoiceCreatePreviewParams` (all: `quantityDecimal`)
107+
* ⚠️ **Breaking change:** [#2131](https://github.com/stripe/stripe-java/pull/2131) Use HTTP status code in V2 errors
108+
- `RateLimitException` now extends `StripeException` rather than `ApiException`
109+
- Non-200 status codes from V2 endpoints will throw a `StripeException` (e.g. `RateLimitException`, `InvalidRequestException`, etc.) like in V1 instead of a generic `ApiException`
110+
* ⚠️ **Breaking change:** [#2190](https://github.com/stripe/stripe-java/pull/2190) Throw an error when using the wrong webhook parsing method
111+
* ⚠️ **Breaking change:** [#2172](https://github.com/stripe/stripe-java/pull/2172) Make `RequestOptions` & `RawRequestOptions` constructors private and add Stripe-Request-Trigger header
112+
* ⚠️ **Breaking change:** [#2181](https://github.com/stripe/stripe-java/pull/2181) Change Automatic-Module-Name to com.stripe
113+
- Changes `Automatic-Module-Name` from `stripe.java` to `com.stripe`. Users with `requires stripe.java;` in their `module-info.java` will need to update to `requires com.stripe;`.
114+
* [#2179](https://github.com/stripe/stripe-java/pull/2179) Add runtime support for V2 int64 string-encoded fields
115+
116+
117+
### ⚠️ Breaking changes due to changes in the Stripe API
118+
119+
* Generated changes from [#2170](https://github.com/stripe/stripe-java/pull/2170), [#2193](https://github.com/stripe/stripe-java/pull/2193), [#2191](https://github.com/stripe/stripe-java/pull/2191)
120+
* Add support for `upiPayments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
121+
* Add support for `upi` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.payment_method_data`, `Mandate.payment_method_details`, `PaymentAttemptRecord.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.payment_method_details`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, `SetupIntentUpdateParams.payment_method_options`, `checkout.Session.payment_method_options`, and `checkout.SessionCreateParams.payment_method_options`
122+
* Add support for `integrationIdentifier` on `checkout.SessionCreateParams` and `checkout.Session`
123+
* Add support for new value `upi` on enums `PaymentIntentConfirmParams.excludedPaymentMethodTypes`, `PaymentIntentCreateParams.excludedPaymentMethodTypes`, `PaymentIntentUpdateParams.excludedPaymentMethodTypes`, `SetupIntentCreateParams.excludedPaymentMethodTypes`, `SetupIntentUpdateParams.excludedPaymentMethodTypes`, and `checkout.SessionCreateParams.excludedPaymentMethodTypes`
124+
* Add support for `crypto` on `checkout.SessionCreateParams.payment_method_options`
125+
* Add support for new value `upi` on enum `checkout.SessionCreateParams.paymentMethodTypes`
126+
* Add support for `pendingInvoiceItemInterval` on `checkout.SessionCreateParams.subscription_data`
127+
* Add support for new values `elements`, `embedded_page`, `form`, and `hosted_page` on enum `checkout.SessionCreateParams.uiMode`
128+
* Add support for new value `upi` on enums `ConfirmationTokenCreateParams.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type`
129+
* Add support for `metadata` on `CreditNoteCreateParams.lines[]`, `CreditNoteLineItem`, `CreditNotePreviewLinesParams.lines[]`, and `CreditNotePreviewParams.lines[]`
130+
* Add support for new value `upi` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
131+
* Add support for `quantityDecimal` on `InvoiceAddLinesParams.lines[]`, `InvoiceCreatePreviewParams.invoice_items[]`, `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, `InvoiceItem`, `InvoiceLineItemUpdateParams`, `InvoiceLineItem`, and `InvoiceUpdateLinesParams.lines[]`
132+
* ⚠️ Add support for `level` on `issuing.AuthorizationCreateParams.risk_assessment.card_testing_risk` and `issuing.AuthorizationCreateParams.risk_assessment.merchant_dispute_risk`
133+
* ⚠️ Remove support for `riskLevel` on `issuing.AuthorizationCreateParams.risk_assessment.card_testing_risk` and `issuing.AuthorizationCreateParams.risk_assessment.merchant_dispute_risk`
134+
* Add support for `lifecycleControls` on `issuing.CardCreateParams` and `issuing.Card`
135+
* Add support for `cryptogram`, `electronicCommerceIndicator`, `exemptionIndicatorApplied`, and `exemptionIndicator` on `PaymentAttemptRecord.payment_method_details.card.three_d_secure` and `PaymentRecord.payment_method_details.card.three_d_secure`
136+
* Add support for `upiHandleRedirectOrDisplayQrCode` on `PaymentIntent.next_action` and `SetupIntent.next_action`
137+
* Add support for new value `upi` on enums `PaymentLinkCreateParams.paymentMethodTypes` and `PaymentLinkUpdateParams.paymentMethodTypes`
138+
* Add support for `recommendedAction` and `signals` on `radar.PaymentEvaluation`
139+
* ⚠️ Remove support for `insights` on `radar.PaymentEvaluation`
140+
* Add support for new value `crypto_fingerprint` on enum `radar.ValueListCreateParams.itemType`
141+
* Add support for new value `2026-03-25.dahlia` on enum `WebhookEndpointCreateParams.apiVersion`
142+
* ⚠️ Change type of `v2.core.EventDestinationCreateParams.eventsFrom` from `enum('other_accounts'|'self')` to `string`
143+
92144
## 31.5.0-alpha.4 - 2026-03-18
93145
* [#2183](https://github.com/stripe/stripe-java/pull/2183) Update generated code for private-preview
94146
* Add support for `simulate_crypto_deposit` test helper method on resource `PaymentIntent`

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b0095e1dae0437fa60f0933a38f0914e8bba44ff
1+
16e50491e9d896cb53da4a46080b4333741b76cb

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2207
1+
v2217

src/main/java/com/stripe/ApiVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
package com.stripe;
33

44
final class ApiVersion {
5-
public static final String CURRENT = "2026-03-25.preview";
5+
public static final String CURRENT = "2026-04-01.preview";
66
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static final class EventData {
2323
* Open Enum. The capability which had its status updated.
2424
*
2525
* <p>One of {@code bank_accounts.instant}, {@code bank_accounts.local}, {@code
26-
* bank_accounts.wire}, {@code cards}, {@code crypto_wallets_v2}, {@code
26+
* bank_accounts.wire}, {@code cards}, {@code crypto_wallets_v2}, {@code paper_checks}, {@code
2727
* stripe_balance.payouts}, {@code stripe_balance.stripe_transfers}, or {@code
2828
* stripe.transfers}.
2929
*/

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ public static final class EventData {
2727
* holds_currencies.gbp}, {@code holds_currencies.usd}, {@code holds_currencies.usdc}, {@code
2828
* inbound_transfers.bank_accounts}, {@code outbound_payments.bank_accounts}, {@code
2929
* outbound_payments.cards}, {@code outbound_payments.crypto_wallets}, {@code
30-
* outbound_payments.financial_accounts}, {@code outbound_transfers.bank_accounts}, {@code
31-
* outbound_transfers.crypto_wallets}, or {@code outbound_transfers.financial_accounts}.
30+
* outbound_payments.financial_accounts}, {@code outbound_payments.paper_checks}, {@code
31+
* outbound_transfers.bank_accounts}, {@code outbound_transfers.crypto_wallets}, or {@code
32+
* outbound_transfers.financial_accounts}.
3233
*/
3334
@SerializedName("updated_capability")
3435
String updatedCapability;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ public final class V2CoreHealthApiErrorResolvedEvent extends Event {
1818
@Getter
1919
@Setter
2020
public static final class EventData {
21+
/** The alert ID. */
22+
@SerializedName("alert_id")
23+
String alertId;
2124
/** The grouping key for the alert. */
2225
@SerializedName("grouping_key")
2326
String groupingKey;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ public final class V2CoreHealthApiLatencyResolvedEvent extends Event {
1818
@Getter
1919
@Setter
2020
public static final class EventData {
21+
/** The alert ID. */
22+
@SerializedName("alert_id")
23+
String alertId;
2124
/** The grouping key for the alert. */
2225
@SerializedName("grouping_key")
2326
String groupingKey;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ public final class V2CoreHealthAuthorizationRateDropResolvedEvent extends Event
1818
@Getter
1919
@Setter
2020
public static final class EventData {
21+
/** The alert ID. */
22+
@SerializedName("alert_id")
23+
String alertId;
2124
/** The grouping key for the alert. */
2225
@SerializedName("grouping_key")
2326
String groupingKey;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ public final class V2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent exte
1717
@Getter
1818
@Setter
1919
public static final class EventData {
20+
/** The alert ID. */
21+
@SerializedName("alert_id")
22+
String alertId;
2023
/** The grouping key for the alert. */
2124
@SerializedName("grouping_key")
2225
String groupingKey;

0 commit comments

Comments
 (0)