Skip to content

Commit 99eb64f

Browse files
Merge upstream and update generated code for v2290 and 6c162e47c554d1dc0e15fff7a2964ed845011853
2 parents cd37753 + 288720f commit 99eb64f

80 files changed

Lines changed: 16691 additions & 182 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: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,53 @@ This release changes the pinned API version to 2026-05-27.private.
1919
* Add support for snapshot event `payment_intent.expired` with resource `PaymentIntent`
2020
* Add support for event notifications `V2CoreHealthElementsErrorFiringEvent`, `V2CoreHealthElementsErrorResolvedEvent`, `V2CoreHealthInvoiceCountDroppedFiringEvent`, and `V2CoreHealthInvoiceCountDroppedResolvedEvent`
2121

22+
## 32.2.0 - 2026-05-27
23+
This release changes the pinned API version to 2026-05-27.dahlia.
24+
25+
* [#2220](https://github.com/stripe/stripe-java/pull/2220) Update generated code
26+
* Add support for new resource `v2.commerce.ProductCatalogImport`
27+
* Add support for `create` and `retrieve` methods on resource `v2.commerce.ProductCatalogImport`
28+
* Add support for `bizumPayments` and `scalapayPayments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
29+
* Add support for `automaticTransferRulesByCurrency` on `BalanceSettings.payments.payouts` and `BalanceSettingsUpdateParams.payments.payouts`
30+
* Add support for `startOfDay` on `BalanceSettings.payments.settlement_timing` and `BalanceSettingsUpdateParams.payments.settlement_timing`
31+
* Add support for `description` on `ChargeCreateParams.transfer_data`, `PaymentIntent.transfer_data`, `PaymentIntentCreateParams.transfer_data`, and `PaymentIntentUpdateParams.transfer_data`
32+
* Add support for `bizum` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.payment_method_data`, `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`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options`
33+
* Add support for `scalapay` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.payment_method_data`, `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`, `Refund.destination_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentUpdateParams.payment_method_data`, `checkout.Session.payment_method_options`, and `checkout.SessionCreateParams.payment_method_options`
34+
* Add support for `mandate` on `Charge.payment_method_details.twint`, `PaymentAttemptRecord.payment_method_details.twint`, and `PaymentRecord.payment_method_details.twint`
35+
* Add support for new values `bizum` and `scalapay` on enums `PaymentIntentConfirmParams.excludedPaymentMethodTypes`, `PaymentIntentCreateParams.excludedPaymentMethodTypes`, `PaymentIntentUpdateParams.excludedPaymentMethodTypes`, `SetupIntentCreateParams.excludedPaymentMethodTypes`, `SetupIntentUpdateParams.excludedPaymentMethodTypes`, and `checkout.SessionCreateParams.excludedPaymentMethodTypes`
36+
* Change type of `PaymentIntentConfirmParams.payment_method_options.twint.setupFutureUsage`, `PaymentIntentCreateParams.payment_method_options.twint.setupFutureUsage`, `PaymentIntentUpdateParams.payment_method_options.twint.setupFutureUsage`, and `checkout.SessionCreateParams.payment_method_options.twint.setupFutureUsage` from `literal('none')` to `enum('none'|'off_session')`
37+
* Add support for new values `bizum` and `scalapay` on enum `checkout.SessionCreateParams.paymentMethodTypes`
38+
* ⚠️ Change type of `PaymentIntent.payment_method_options.twint.setupFutureUsage` and `checkout.Session.payment_method_options.twint.setupFutureUsage` from `literal('none')` to `enum('none'|'off_session')`
39+
* Add support for new values `bizum` and `scalapay` 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`
40+
* Add support for new values `bizum` and `scalapay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
41+
* Add support for `creditedItems` on `InvoiceItem.proration_details`
42+
* Add support for new value `twint` on enums `InvoiceCreateParams.payment_settings.paymentMethodTypes`, `InvoiceUpdateParams.payment_settings.paymentMethodTypes`, `SubscriptionCreateParams.payment_settings.paymentMethodTypes`, and `SubscriptionUpdateParams.payment_settings.paymentMethodTypes`
43+
* Add support for `discountable` on `InvoiceCreatePreviewParams.schedule_details.phases[].add_invoice_items[]`, `SubscriptionCreateParams.add_invoice_items[]`, `SubscriptionSchedule.phases[].add_invoice_items[]`, `SubscriptionScheduleCreateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleUpdateParams.phases[].add_invoice_items[]`, and `SubscriptionUpdateParams.add_invoice_items[]`
44+
* Add support for `billingSchedules` on `InvoiceCreatePreviewParams.subscription_details`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription`
45+
* Add support for new value `max_billed_until` on enums `InvoiceCreatePreviewParams.subscription_details.cancelAt`, `SubscriptionCreateParams.cancelAt`, and `SubscriptionUpdateParams.cancelAt`
46+
* Add support for `amountPaidOffStripe` on `Invoice`
47+
* Add support for `twint` on `Mandate.payment_method_details` and `SetupAttempt.payment_method_details`
48+
* Add support for `metadata` on `PaymentIntent.transfer_data`, `PaymentIntentCreateParams.transfer_data`, `PaymentIntentUpdateParams.transfer_data`, and `Subscription.pending_update`
49+
* Add support for `paymentData` on `PaymentIntent.transfer_data`, `PaymentIntentCreateParams.transfer_data`, and `PaymentIntentUpdateParams.transfer_data`
50+
* Add support for `blikAuthorize` on `PaymentIntent.next_action` and `SetupIntent.next_action`
51+
* Add support for `paymentMethodOptions` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink`
52+
* Add support for new value `bizum` on enums `PaymentLinkCreateParams.paymentMethodTypes` and `PaymentLinkUpdateParams.paymentMethodTypes`
53+
* Add support for `active` on `PaymentMethodConfigurationListParams`
54+
* Add support for `billedUntil` on `SubscriptionItem`
55+
* Add support for `discount` and `discounts` on `Subscription.pending_update`
56+
* Add support for `verifoneM425`, `verifoneP630`, `verifoneUx700`, and `verifoneV660p` on `terminal.ConfigurationCreateParams`, `terminal.ConfigurationUpdateParams`, and `terminal.Configuration`
57+
* Add support for new values `simulated_verifone_m425`, `simulated_verifone_p630`, `simulated_verifone_ux700`, `simulated_verifone_v660p`, `verifone_m425`, `verifone_p630`, `verifone_ux700`, and `verifone_v660p` on enum `terminal.ReaderListParams.deviceType`
58+
* Add support for `apiError` and `printContent` on `terminal.Reader.action`
59+
* Add support for `customer` on `testhelpers.TestClockCreateParams`
60+
* Add support for new value `2026-05-27.dahlia` on enum `WebhookEndpointCreateParams.apiVersion`
61+
* Add support for `signer` on `v2.core.Account.identity.business_details.documents.proof_of_registration`, `v2.core.Account.identity.business_details.documents.proof_of_ultimate_beneficial_ownership`, `v2.core.AccountCreateParams.identity.business_details.documents.proof_of_registration`, `v2.core.AccountCreateParams.identity.business_details.documents.proof_of_ultimate_beneficial_ownership`, `v2.core.AccountTokenCreateParams.identity.business_details.documents.proof_of_registration`, `v2.core.AccountTokenCreateParams.identity.business_details.documents.proof_of_ultimate_beneficial_ownership`, `v2.core.AccountUpdateParams.identity.business_details.documents.proof_of_registration`, and `v2.core.AccountUpdateParams.identity.business_details.documents.proof_of_ultimate_beneficial_ownership`
62+
* Add support for `azureEventGrid` on `v2.core.EventDestinationCreateParams` and `v2.core.EventDestination`
63+
* Add support for new value `azure_event_grid` on enum `v2.core.EventDestinationCreateParams.type`
64+
* Add support for new value `meter_event_value_too_many_digits` on enums `EventsV1BillingMeterErrorReportTriggeredEvent.reason.error_types[].code` and `EventsV1BillingMeterNoMeterFoundEvent.reason.error_types[].code`
65+
* Add support for event notifications `V2CommerceProductCatalogImportsFailedEvent`, `V2CommerceProductCatalogImportsProcessingEvent`, `V2CommerceProductCatalogImportsSucceededEvent`, and `V2CommerceProductCatalogImportsSucceededWithErrorsEvent` with related object `v2.commerce.ProductCatalogImport`
66+
* [#2219](https://github.com/stripe/stripe-java/pull/2219) Emit warning when `stripe-notify` header is present in response
67+
* [#2218](https://github.com/stripe/stripe-java/pull/2218) Add better example for accessing non-documented properties in a list response
68+
2269
## 32.2.0-alpha.6 - 2026-05-20
2370
* [#2217](https://github.com/stripe/stripe-java/pull/2217) Update generated code for private-preview
2471
* Add support for new resource `PaymentLocationCapability`

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1af5aa444ea8141a2d2b8d86e76c73f788f65e09
1+
6c162e47c554d1dc0e15fff7a2964ed845011853

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2277
1+
v2290

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-05-27.preview";
5+
public static final String CURRENT = "2026-06-03.preview";
66
}

src/main/java/com/stripe/StripeEventNotificationHandler.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@
411411
import com.stripe.events.V2ReportingReportRunSucceededEventNotification;
412412
import com.stripe.events.V2ReportingReportRunUpdatedEventNotification;
413413
import com.stripe.events.V2SignalsAccountSignalFraudulentMerchantReadyEventNotification;
414+
import com.stripe.events.V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification;
414415
import com.stripe.exception.SignatureVerificationException;
415416
import com.stripe.model.v2.core.EventNotification;
416417
import java.util.ArrayList;
@@ -2987,6 +2988,12 @@ public StripeEventNotificationHandler onV2SignalsAccountSignalFraudulentMerchant
29872988
this.register("v2.signals.account_signal.fraudulent_merchant_ready", callback);
29882989
return this;
29892990
}
2991+
2992+
public StripeEventNotificationHandler onV2SignalsAccountSignalMerchantDelinquencyReady(
2993+
Callback<V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification> callback) {
2994+
this.register("v2.signals.account_signal.merchant_delinquency_ready", callback);
2995+
return this;
2996+
}
29902997
// notification-handler-methods: The end of the section generated from our OpenAPI spec
29912998

29922999
/**
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.google.gson.annotations.SerializedName;
5+
import com.stripe.exception.StripeException;
6+
import com.stripe.model.v2.core.Event;
7+
import com.stripe.model.v2.core.Event.RelatedObject;
8+
import com.stripe.model.v2.signals.AccountSignal;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2SignalsAccountSignalMerchantDelinquencyReadyEvent extends Event {
13+
@SerializedName("related_object")
14+
15+
/** Object containing the reference to API resource relevant to the event. */
16+
RelatedObject relatedObject;
17+
18+
/** Retrieves the related object from the API. Make an API request on every call. */
19+
public AccountSignal fetchRelatedObject() throws StripeException {
20+
return (AccountSignal) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.google.gson.annotations.SerializedName;
5+
import com.stripe.exception.StripeException;
6+
import com.stripe.model.v2.core.Event.RelatedObject;
7+
import com.stripe.model.v2.core.EventNotification;
8+
import com.stripe.model.v2.signals.AccountSignal;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification
13+
extends EventNotification {
14+
@SerializedName("related_object")
15+
16+
/** Object containing the reference to API resource relevant to the event. */
17+
RelatedObject relatedObject;
18+
19+
/** Retrieves the related object from the API. Make an API request on every call. */
20+
public AccountSignal fetchRelatedObject() throws StripeException {
21+
return (AccountSignal) super.fetchRelatedObject(this.relatedObject);
22+
}
23+
/** Retrieve the corresponding full event from the Stripe API. */
24+
@Override
25+
public V2SignalsAccountSignalMerchantDelinquencyReadyEvent fetchEvent() throws StripeException {
26+
return (V2SignalsAccountSignalMerchantDelinquencyReadyEvent) super.fetchEvent();
27+
}
28+
}

src/main/java/com/stripe/model/EventDataClassLookup.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ public final class EventDataClassLookup {
158158
classLookup.put("climate.product", com.stripe.model.climate.Product.class);
159159
classLookup.put("climate.supplier", com.stripe.model.climate.Supplier.class);
160160

161+
classLookup.put("delegated_checkout.order", com.stripe.model.delegatedcheckout.Order.class);
162+
classLookup.put(
163+
"delegated_checkout.order_event", com.stripe.model.delegatedcheckout.OrderEvent.class);
161164
classLookup.put(
162165
"delegated_checkout.requested_session",
163166
com.stripe.model.delegatedcheckout.RequestedSession.class);

src/main/java/com/stripe/model/PaymentIntent.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5005,7 +5005,7 @@ public static class MoneyServices extends StripeObject {
50055005
/**
50065006
* The type of money services transaction.
50075007
*
5008-
* <p>Equal to {@code account_funding}.
5008+
* <p>One of {@code account_funding}, or {@code debt_repayment}.
50095009
*/
50105010
@SerializedName("transaction_type")
50115011
String transactionType;
@@ -6547,6 +6547,13 @@ public static class DepositOptions extends StripeObject {
65476547
*/
65486548
@SerializedName("networks")
65496549
List<String> networks;
6550+
6551+
/**
6552+
* If true, provisions a permanent per-customer deposit address reused across
6553+
* PaymentIntents.
6554+
*/
6555+
@SerializedName("static_address")
6556+
Boolean staticAddress;
65506557
}
65516558
}
65526559

src/main/java/com/stripe/model/PaymentLink.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ public static class AutomaticSurcharge extends StripeObject {
563563
/**
564564
* The surcharge provider used for this payment link.
565565
*
566-
* <p>One of {@code interpayments}, or {@code yeeld}.
566+
* <p>One of {@code interpayments}, {@code proserv}, or {@code yeeld}.
567567
*/
568568
@SerializedName("provider")
569569
String provider;

0 commit comments

Comments
 (0)