Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
f23b21c
Merge upstream and update generated code for v2277 and e410e9ac8e4f0d…
stripe-openapi[bot] May 28, 2026
a5e823d
Update generated code for v2279 and d4c5613f2c824ce394453c7d2eda2f562…
stripe-openapi[bot] May 29, 2026
df1241e
Update generated code for v2279 and 51814d59c32ad8b7c2907d76002882018…
stripe-openapi[bot] May 29, 2026
4b4b34f
Update generated code for v2280 and 4adb7cc8d107e5bfa5d86f090a0a9af8f…
stripe-openapi[bot] May 30, 2026
f066971
Update generated code for v2281 and 96c3176416a9197d6d0e55d71ea840c3b…
stripe-openapi[bot] May 30, 2026
d5d18b8
Update generated code for v2282 and 5c691c66c4772b3ac8ec428cfbad43c1a…
stripe-openapi[bot] Jun 1, 2026
0d75b88
Update generated code for v2283 and 85055f7b3256cdc4aa3474b8ae86a1262…
stripe-openapi[bot] Jun 1, 2026
c437e96
Update generated code for v2284 and af00ccaf80199f59dc59d75c8380073bc…
stripe-openapi[bot] Jun 1, 2026
78cf49e
Update generated code for v2285 and 58f415ba6c30def0bd7d83bab2afa14fa…
stripe-openapi[bot] Jun 2, 2026
7136ee6
Update generated code for v2286 and 73b6b975bf4a958bcc2a7a6c09d69e1c0…
stripe-openapi[bot] Jun 2, 2026
03620ab
Update generated code for v2287 and 82b4eec03fcc3079809c6e9732212b7b6…
stripe-openapi[bot] Jun 2, 2026
0bd2acd
Update generated code for v2288 and bfc40fd356c460f9f1e04c4f6ba95b5eb…
stripe-openapi[bot] Jun 2, 2026
10ef9ab
Update generated code for v2289 and de3675e8666757ecc39afc1d9c7e3b414…
stripe-openapi[bot] Jun 2, 2026
b25c121
Update generated code for v2290 and 0f1230b1967eb13ba7f0a4b18ac691e82…
stripe-openapi[bot] Jun 3, 2026
f97ad73
Regenerate from fixed codegen (sdk-codegen#3663)
jar-stripe Jun 3, 2026
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
47 changes: 47 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,53 @@ This release changes the pinned API version to 2026-05-27.private.
* Add support for snapshot event `payment_intent.expired` with resource `PaymentIntent`
* Add support for event notifications `V2CoreHealthElementsErrorFiringEvent`, `V2CoreHealthElementsErrorResolvedEvent`, `V2CoreHealthInvoiceCountDroppedFiringEvent`, and `V2CoreHealthInvoiceCountDroppedResolvedEvent`

## 32.2.0 - 2026-05-27
This release changes the pinned API version to 2026-05-27.dahlia.

* [#2220](https://github.com/stripe/stripe-java/pull/2220) Update generated code
* Add support for new resource `v2.commerce.ProductCatalogImport`
* Add support for `create` and `retrieve` methods on resource `v2.commerce.ProductCatalogImport`
* Add support for `bizumPayments` and `scalapayPayments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
* Add support for `automaticTransferRulesByCurrency` on `BalanceSettings.payments.payouts` and `BalanceSettingsUpdateParams.payments.payouts`
* Add support for `startOfDay` on `BalanceSettings.payments.settlement_timing` and `BalanceSettingsUpdateParams.payments.settlement_timing`
* Add support for `description` on `ChargeCreateParams.transfer_data`, `PaymentIntent.transfer_data`, `PaymentIntentCreateParams.transfer_data`, and `PaymentIntentUpdateParams.transfer_data`
* 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`
* 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`
* Add support for `mandate` on `Charge.payment_method_details.twint`, `PaymentAttemptRecord.payment_method_details.twint`, and `PaymentRecord.payment_method_details.twint`
* Add support for new values `bizum` and `scalapay` on enums `PaymentIntentConfirmParams.excludedPaymentMethodTypes`, `PaymentIntentCreateParams.excludedPaymentMethodTypes`, `PaymentIntentUpdateParams.excludedPaymentMethodTypes`, `SetupIntentCreateParams.excludedPaymentMethodTypes`, `SetupIntentUpdateParams.excludedPaymentMethodTypes`, and `checkout.SessionCreateParams.excludedPaymentMethodTypes`
* 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')`
* Add support for new values `bizum` and `scalapay` on enum `checkout.SessionCreateParams.paymentMethodTypes`
* ⚠️ 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')`
* 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`
* Add support for new values `bizum` and `scalapay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
* Add support for `creditedItems` on `InvoiceItem.proration_details`
* 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`
* 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[]`
* Add support for `billingSchedules` on `InvoiceCreatePreviewParams.subscription_details`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription`
* Add support for new value `max_billed_until` on enums `InvoiceCreatePreviewParams.subscription_details.cancelAt`, `SubscriptionCreateParams.cancelAt`, and `SubscriptionUpdateParams.cancelAt`
* Add support for `amountPaidOffStripe` on `Invoice`
* Add support for `twint` on `Mandate.payment_method_details` and `SetupAttempt.payment_method_details`
* Add support for `metadata` on `PaymentIntent.transfer_data`, `PaymentIntentCreateParams.transfer_data`, `PaymentIntentUpdateParams.transfer_data`, and `Subscription.pending_update`
* Add support for `paymentData` on `PaymentIntent.transfer_data`, `PaymentIntentCreateParams.transfer_data`, and `PaymentIntentUpdateParams.transfer_data`
* Add support for `blikAuthorize` on `PaymentIntent.next_action` and `SetupIntent.next_action`
* Add support for `paymentMethodOptions` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink`
* Add support for new value `bizum` on enums `PaymentLinkCreateParams.paymentMethodTypes` and `PaymentLinkUpdateParams.paymentMethodTypes`
* Add support for `active` on `PaymentMethodConfigurationListParams`
* Add support for `billedUntil` on `SubscriptionItem`
* Add support for `discount` and `discounts` on `Subscription.pending_update`
* Add support for `verifoneM425`, `verifoneP630`, `verifoneUx700`, and `verifoneV660p` on `terminal.ConfigurationCreateParams`, `terminal.ConfigurationUpdateParams`, and `terminal.Configuration`
* 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`
* Add support for `apiError` and `printContent` on `terminal.Reader.action`
* Add support for `customer` on `testhelpers.TestClockCreateParams`
* Add support for new value `2026-05-27.dahlia` on enum `WebhookEndpointCreateParams.apiVersion`
* 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`
* Add support for `azureEventGrid` on `v2.core.EventDestinationCreateParams` and `v2.core.EventDestination`
* Add support for new value `azure_event_grid` on enum `v2.core.EventDestinationCreateParams.type`
* Add support for new value `meter_event_value_too_many_digits` on enums `EventsV1BillingMeterErrorReportTriggeredEvent.reason.error_types[].code` and `EventsV1BillingMeterNoMeterFoundEvent.reason.error_types[].code`
* Add support for event notifications `V2CommerceProductCatalogImportsFailedEvent`, `V2CommerceProductCatalogImportsProcessingEvent`, `V2CommerceProductCatalogImportsSucceededEvent`, and `V2CommerceProductCatalogImportsSucceededWithErrorsEvent` with related object `v2.commerce.ProductCatalogImport`
* [#2219](https://github.com/stripe/stripe-java/pull/2219) Emit warning when `stripe-notify` header is present in response
* [#2218](https://github.com/stripe/stripe-java/pull/2218) Add better example for accessing non-documented properties in a list response

## 32.2.0-alpha.6 - 2026-05-20
* [#2217](https://github.com/stripe/stripe-java/pull/2217) Update generated code for private-preview
* Add support for new resource `PaymentLocationCapability`
Expand Down
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1af5aa444ea8141a2d2b8d86e76c73f788f65e09
0f1230b1967eb13ba7f0a4b18ac691e82cdfc182
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2277
v2290
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/ApiVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
package com.stripe;

final class ApiVersion {
public static final String CURRENT = "2026-05-27.preview";
public static final String CURRENT = "2026-06-03.preview";
}
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@
import com.stripe.events.V2ReportingReportRunSucceededEventNotification;
import com.stripe.events.V2ReportingReportRunUpdatedEventNotification;
import com.stripe.events.V2SignalsAccountSignalFraudulentMerchantReadyEventNotification;
import com.stripe.events.V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification;
import com.stripe.exception.SignatureVerificationException;
import com.stripe.model.v2.core.EventNotification;
import java.util.ArrayList;
Expand Down Expand Up @@ -2987,6 +2988,12 @@ public StripeEventNotificationHandler onV2SignalsAccountSignalFraudulentMerchant
this.register("v2.signals.account_signal.fraudulent_merchant_ready", callback);
return this;
}

public StripeEventNotificationHandler onV2SignalsAccountSignalMerchantDelinquencyReady(
Callback<V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification> callback) {
this.register("v2.signals.account_signal.merchant_delinquency_ready", callback);
return this;
}
// notification-handler-methods: The end of the section generated from our OpenAPI spec

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.model.v2.core.Event;
import com.stripe.model.v2.core.Event.RelatedObject;
import com.stripe.model.v2.signals.AccountSignal;
import lombok.Getter;

@Getter
public final class V2SignalsAccountSignalMerchantDelinquencyReadyEvent extends Event {
@SerializedName("related_object")

/** Object containing the reference to API resource relevant to the event. */
RelatedObject relatedObject;

/** Retrieves the related object from the API. Make an API request on every call. */
public AccountSignal fetchRelatedObject() throws StripeException {
return (AccountSignal) super.fetchRelatedObject(this.relatedObject);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.model.v2.core.Event.RelatedObject;
import com.stripe.model.v2.core.EventNotification;
import com.stripe.model.v2.signals.AccountSignal;
import lombok.Getter;

@Getter
public final class V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification
extends EventNotification {
@SerializedName("related_object")

/** Object containing the reference to API resource relevant to the event. */
RelatedObject relatedObject;

/** Retrieves the related object from the API. Make an API request on every call. */
public AccountSignal fetchRelatedObject() throws StripeException {
return (AccountSignal) super.fetchRelatedObject(this.relatedObject);
}
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2SignalsAccountSignalMerchantDelinquencyReadyEvent fetchEvent() throws StripeException {
return (V2SignalsAccountSignalMerchantDelinquencyReadyEvent) super.fetchEvent();
}
}
3 changes: 3 additions & 0 deletions src/main/java/com/stripe/model/EventDataClassLookup.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ public final class EventDataClassLookup {
classLookup.put("climate.product", com.stripe.model.climate.Product.class);
classLookup.put("climate.supplier", com.stripe.model.climate.Supplier.class);

classLookup.put("delegated_checkout.order", com.stripe.model.delegatedcheckout.Order.class);
classLookup.put(
"delegated_checkout.order_event", com.stripe.model.delegatedcheckout.OrderEvent.class);
classLookup.put(
"delegated_checkout.requested_session",
com.stripe.model.delegatedcheckout.RequestedSession.class);
Expand Down
9 changes: 8 additions & 1 deletion src/main/java/com/stripe/model/PaymentIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -5005,7 +5005,7 @@ public static class MoneyServices extends StripeObject {
/**
* The type of money services transaction.
*
* <p>Equal to {@code account_funding}.
* <p>One of {@code account_funding}, or {@code debt_repayment}.
*/
@SerializedName("transaction_type")
String transactionType;
Expand Down Expand Up @@ -6547,6 +6547,13 @@ public static class DepositOptions extends StripeObject {
*/
@SerializedName("networks")
List<String> networks;

/**
* If true, provisions a permanent per-customer deposit address reused across
* PaymentIntents.
*/
@SerializedName("static_address")
Boolean staticAddress;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/model/PaymentLink.java
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ public static class AutomaticSurcharge extends StripeObject {
/**
* The surcharge provider used for this payment link.
*
* <p>One of {@code interpayments}, or {@code yeeld}.
* <p>One of {@code interpayments}, {@code proserv}, or {@code yeeld}.
*/
@SerializedName("provider")
String provider;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/PaymentLocation.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public class PaymentLocation extends ApiResource implements HasId {
BusinessRegistration businessRegistration;

/**
* The capability settings for the location. Only applicable for locations with requested Payment
* Location Capabilities.
* The capability settings for the location. Only applicable for locations with requested payment
* location capabilities.
*/
@SerializedName("capability_settings")
CapabilitySettings capabilitySettings;
Expand Down
Loading