From bcd7d13c1af0e0cf7b296623ef308edacb5a057c Mon Sep 17 00:00:00 2001 From: Ramya Rao Date: Tue, 18 Nov 2025 10:47:39 -0800 Subject: [PATCH 1/2] Bump version to 31.0.0 --- CHANGELOG.md | 25 +++++++++++++++++++++++++ README.md | 10 +++++----- VERSION | 2 +- gradle.properties | 2 +- src/main/java/com/stripe/Stripe.java | 2 +- 5 files changed, 33 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb385939066..d8dacac8ff3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,30 @@ # Changelog +## 31.0.0 - 2025-11-18 +This release changes the pinned API version to `2025-11-17.clover`. + +* [#2113](https://github.com/stripe/stripe-java/pull/2113) Update generated code + * ⚠️ Remove support for `gt`, `gte`, `lt`, and `lte` on `v2.core.EventListParams` in favor of `created`. +* [#2110](https://github.com/stripe/stripe-java/pull/2110) Update v2 array parameter serialization to use indexed format + - `Retrieve` and `List` calls for `/v2` endpoints now use indexed format (e.g., `?include[0]=foo&include[1]=bar`) instead of repeated parameter format (e.g., `?include=foo&include=bar`) when communicating with the Stripe API. This may break any unit tests that expect the latter behavior when setting up a mock server. Instead, they should now expect the former. + - The `arraysAsRepeated` parameter was removed from the internal-use-only method `FormEncoder#createQueryString` +* [#2108](https://github.com/stripe/stripe-java/pull/2108) Update generated code + * Add support for new resources `tax.Association` and `terminal.OnboardingLink` + * Add support for `find` method on resource `tax.Association` + * Add support for `create` method on resource `terminal.OnboardingLink` + * Add support for `paymentMethodConfiguration` on `billingportal.Configuration.features.payment_method_update` + * Add support for `transactionId` on `Charge.payment_method_details.ideal`, `PaymentAttemptRecord.payment_method_details.ideal`, and `PaymentRecord.payment_method_details.ideal` + * Add support for new value `finom` on enums `ConfirmationTokenCreateParams.payment_method_data.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` + * Add support for `created` on `CustomerBalanceTransactionListParams` and `InvoicePaymentListParams` + * Add support for `accountNumbers` on `financialconnections.Account` + * Add support for `fraudRisk` on `issuing.AuthorizationCreateParams.risk_assessment` + * Add support for `latestFraudWarning` on `issuing.Card` + * Add support for `hooks` on `PaymentIntentCaptureParams`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentIncrementAuthorizationParams`, `PaymentIntentUpdateParams`, and `PaymentIntent` + * Add support for `mbWay` and `twint` on `Refund.destination_details` + * Add support for new values `financial_connections.account.account_numbers_updated` and `financial_connections.account.upcoming_account_number_expiry` on enums `WebhookEndpointCreateParams.enabledEvents` and `WebhookEndpointUpdateParams.enabledEvents` + * Add support for `changes` on `v2.core.Event` + * Add support for snapshot events `financial_connections.account.account_numbers_updated` and `financial_connections.account.upcoming_account_number_expiry` with resource `financialconnections.Account` + ## 30.2.0 - 2025-11-05 * [#2102](https://github.com/stripe/stripe-java/pull/2102) Update generated code * Add support for `captureMethod` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present` diff --git a/README.md b/README.md index 32d60c2826d..7c024619803 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Stripe Java client library -[![Maven Central](https://img.shields.io/badge/maven--central-v30.2.0-blue)](https://mvnrepository.com/artifact/com.stripe/stripe-java) +[![Maven Central](https://img.shields.io/badge/maven--central-v31.0.0-blue)](https://mvnrepository.com/artifact/com.stripe/stripe-java) [![JavaDoc](http://img.shields.io/badge/javadoc-reference-blue.svg)](https://stripe.dev/stripe-java) [![Build Status](https://github.com/stripe/stripe-java/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/stripe/stripe-java/actions?query=branch%3Amaster) @@ -23,7 +23,7 @@ We support LTS versions of the JDK. Currently, that's Java versions: Add this dependency to your project's build file: ```groovy -implementation "com.stripe:stripe-java:30.2.0" +implementation "com.stripe:stripe-java:31.0.0" ``` ### Maven users @@ -34,7 +34,7 @@ Add this dependency to your project's POM: com.stripe stripe-java - 30.2.0 + 31.0.0 ``` @@ -43,8 +43,8 @@ Add this dependency to your project's POM: If you are not using Gradle or Maven, you will need to manually install the following JARs: 1. The Stripe JAR: - - Download the latest release version from [Maven Central](https://repo1.maven.org/maven2/com/stripe/stripe-java/30.2.0/stripe-java-30.2.0.jar) - - Current release version: 30.2.0 + - Download the latest release version from [Maven Central](https://repo1.maven.org/maven2/com/stripe/stripe-java/31.0.0/stripe-java-31.0.0.jar) + - Current release version: 31.0.0 2. Google Gson: - The Stripe JAR builds and tests with Gson version 2.10.1 diff --git a/VERSION b/VERSION index 0aaa30ef421..221a8da0b57 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -30.2.0 +31.0.0 diff --git a/gradle.properties b/gradle.properties index bca3db04d0b..7a14623b5f4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ GROUP=com.stripe -VERSION_NAME=30.2.0 +VERSION_NAME=31.0.0 POM_URL=https://github.com/stripe/stripe-java POM_SCM_URL=git@github.com:stripe/stripe-java.git diff --git a/src/main/java/com/stripe/Stripe.java b/src/main/java/com/stripe/Stripe.java index 9256fd3caf1..aebdc412d18 100644 --- a/src/main/java/com/stripe/Stripe.java +++ b/src/main/java/com/stripe/Stripe.java @@ -14,7 +14,7 @@ public abstract class Stripe { public static final String LIVE_API_BASE = "https://api.stripe.com"; public static final String UPLOAD_API_BASE = "https://files.stripe.com"; public static final String METER_EVENTS_API_BASE = "https://meter-events.stripe.com"; - public static final String VERSION = "30.2.0"; + public static final String VERSION = "31.0.0"; public static volatile String apiKey; public static volatile String clientId; From 0427ec89fc5b2a2602f320fa5d7da0d4e172f077 Mon Sep 17 00:00:00 2001 From: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com> Date: Tue, 18 Nov 2025 11:21:45 -0800 Subject: [PATCH 2/2] Update CHANGELOG.md to remove changes on Events (#2116) --- CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d8dacac8ff3..87d10ed81a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,7 +22,6 @@ This release changes the pinned API version to `2025-11-17.clover`. * Add support for `hooks` on `PaymentIntentCaptureParams`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentIncrementAuthorizationParams`, `PaymentIntentUpdateParams`, and `PaymentIntent` * Add support for `mbWay` and `twint` on `Refund.destination_details` * Add support for new values `financial_connections.account.account_numbers_updated` and `financial_connections.account.upcoming_account_number_expiry` on enums `WebhookEndpointCreateParams.enabledEvents` and `WebhookEndpointUpdateParams.enabledEvents` - * Add support for `changes` on `v2.core.Event` * Add support for snapshot events `financial_connections.account.account_numbers_updated` and `financial_connections.account.upcoming_account_number_expiry` with resource `financialconnections.Account` ## 30.2.0 - 2025-11-05