Skip to content
Open
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
5c691c66c4772b3ac8ec428cfbad43c1a836ec14
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2277
v2282
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
2 changes: 1 addition & 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
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
33 changes: 17 additions & 16 deletions src/main/java/com/stripe/model/PaymentLocationCapability.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@
import lombok.Setter;

/**
* A Payment Location Capability represents a capability for a Stripe account at a Payment Location.
* A {@code payment_location} capability represents a capability for a Stripe account at a payment
* location.
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public class PaymentLocationCapability extends ApiResource implements HasId {
/** The account for which the capability enables functionality. */
/** The account that the capability enables functionality for. */
@SerializedName("account")
String account;

Expand All @@ -44,7 +45,7 @@ public class PaymentLocationCapability extends ApiResource implements HasId {
@SerializedName("livemode")
Boolean livemode;

/** The payment location for which the capability enables functionality. */
/** The payment location that the capability enables functionality for. */
@SerializedName("location")
String location;

Expand All @@ -60,7 +61,7 @@ public class PaymentLocationCapability extends ApiResource implements HasId {
@SerializedName("requested")
Boolean requested;

/** Time at which the capability was requested. Measured in seconds since the Unix epoch. */
/** Time when the capability was requested. Measured in seconds since the Unix epoch. */
@SerializedName("requested_at")
Long requestedAt;

Expand All @@ -75,13 +76,13 @@ public class PaymentLocationCapability extends ApiResource implements HasId {
@SerializedName("status")
String status;

/** Returns a list of {@code PaymentLocationCapability} objects associated with the location. */
/** List all payment location capabilities associated with the payment location. */
public static PaymentLocationCapabilityCollection list(Map<String, Object> params)
throws StripeException {
return list(params, (RequestOptions) null);
}

/** Returns a list of {@code PaymentLocationCapability} objects associated with the location. */
/** List all payment location capabilities associated with the payment location. */
public static PaymentLocationCapabilityCollection list(
Map<String, Object> params, RequestOptions options) throws StripeException {
String path = "/v1/payment_location_capabilities";
Expand All @@ -90,13 +91,13 @@ public static PaymentLocationCapabilityCollection list(
return getGlobalResponseGetter().request(request, PaymentLocationCapabilityCollection.class);
}

/** Returns a list of {@code PaymentLocationCapability} objects associated with the location. */
/** List all payment location capabilities associated with the payment location. */
public static PaymentLocationCapabilityCollection list(PaymentLocationCapabilityListParams params)
throws StripeException {
return list(params, (RequestOptions) null);
}

/** Returns a list of {@code PaymentLocationCapability} objects associated with the location. */
/** List all payment location capabilities associated with the payment location. */
public static PaymentLocationCapabilityCollection list(
PaymentLocationCapabilityListParams params, RequestOptions options) throws StripeException {
String path = "/v1/payment_location_capabilities";
Expand All @@ -111,18 +112,18 @@ public static PaymentLocationCapabilityCollection list(
return getGlobalResponseGetter().request(request, PaymentLocationCapabilityCollection.class);
}

/** Retrieves information about the specified Payment Location Capability. */
/** Retrieves a {@code payment_location} capability. */
public static PaymentLocationCapability retrieve(String capability) throws StripeException {
return retrieve(capability, (Map<String, Object>) null, (RequestOptions) null);
}

/** Retrieves information about the specified Payment Location Capability. */
/** Retrieves a {@code payment_location} capability. */
public static PaymentLocationCapability retrieve(String capability, RequestOptions options)
throws StripeException {
return retrieve(capability, (Map<String, Object>) null, options);
}

/** Retrieves information about the specified Payment Location Capability. */
/** Retrieves a {@code payment_location} capability. */
public static PaymentLocationCapability retrieve(
String capability, Map<String, Object> params, RequestOptions options)
throws StripeException {
Expand All @@ -133,7 +134,7 @@ public static PaymentLocationCapability retrieve(
return getGlobalResponseGetter().request(request, PaymentLocationCapability.class);
}

/** Retrieves information about the specified Payment Location Capability. */
/** Retrieves a {@code payment_location} capability. */
public static PaymentLocationCapability retrieve(
String capability, PaymentLocationCapabilityRetrieveParams params, RequestOptions options)
throws StripeException {
Expand All @@ -151,15 +152,15 @@ public static PaymentLocationCapability retrieve(
}

/**
* Updates a specified Payment Location Capability. Request or remove a payment location
* Updates a {@code payment_location} capability. Request or remove a {@code payment_location}
* capability by updating its {@code requested} parameter.
*/
public PaymentLocationCapability update(Map<String, Object> params) throws StripeException {
return update(params, (RequestOptions) null);
}

/**
* Updates a specified Payment Location Capability. Request or remove a payment location
* Updates a {@code payment_location} capability. Request or remove a {@code payment_location}
* capability by updating its {@code requested} parameter.
*/
public PaymentLocationCapability update(Map<String, Object> params, RequestOptions options)
Expand All @@ -173,7 +174,7 @@ public PaymentLocationCapability update(Map<String, Object> params, RequestOptio
}

/**
* Updates a specified Payment Location Capability. Request or remove a payment location
* Updates a {@code payment_location} capability. Request or remove a {@code payment_location}
* capability by updating its {@code requested} parameter.
*/
public PaymentLocationCapability update(PaymentLocationCapabilityUpdateParams params)
Expand All @@ -182,7 +183,7 @@ public PaymentLocationCapability update(PaymentLocationCapabilityUpdateParams pa
}

/**
* Updates a specified Payment Location Capability. Request or remove a payment location
* Updates a {@code payment_location} capability. Request or remove a {@code payment_location}
* capability by updating its {@code requested} parameter.
*/
public PaymentLocationCapability update(
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/stripe/model/Person.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ public class Person extends ApiResource implements HasId, MetadataStore<Person>
@SerializedName("address_kanji")
AddressKanji addressKanji;

@SerializedName("birth_address")
Address birthAddress;

/** Time at which the object was created. Measured in seconds since the Unix epoch. */
@SerializedName("created")
Long created;
Expand Down Expand Up @@ -1164,6 +1167,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(address, responseGetter);
trySetResponseGetter(addressKana, responseGetter);
trySetResponseGetter(addressKanji, responseGetter);
trySetResponseGetter(birthAddress, responseGetter);
trySetResponseGetter(dob, responseGetter);
trySetResponseGetter(futureRequirements, responseGetter);
trySetResponseGetter(registeredAddress, responseGetter);
Expand Down
Loading
Loading