Skip to content

Update generated code for beta #2009

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 43 commits into
base: beta
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
2c452c5
Update generated code for v1774 and 2025-05-28.preview
stripe-openapi[bot] May 30, 2025
93e8eb0
Update generated code for v1779 and 2025-05-28.preview
stripe-openapi[bot] Jun 2, 2025
dc97747
Update generated code for v1780 and 2025-05-28.preview
stripe-openapi[bot] Jun 3, 2025
d177cbc
Include Java versions 21, 22, 23, 24 in CI (#1987)
prathmesh-stripe Jun 3, 2025
c5a0400
Merge upstream and update generated code for v1781 and 2025-05-28.pre…
stripe-openapi[bot] Jun 3, 2025
7adcce1
Update generated code for v1782 and 2025-05-28.preview
stripe-openapi[bot] Jun 3, 2025
8f71412
Update generated code for v1784 and 2025-05-28.preview
stripe-openapi[bot] Jun 4, 2025
b47827f
Update generated code for v1785 and 2025-05-28.preview
stripe-openapi[bot] Jun 4, 2025
0d08163
Update generated code for v1787 and 2025-05-28.preview
stripe-openapi[bot] Jun 4, 2025
9b02509
Update generated code for v1789 and 2025-05-28.preview
stripe-openapi[bot] Jun 6, 2025
be5c2fe
Update generated code for v1789 and 2025-05-28.preview
stripe-openapi[bot] Jun 6, 2025
25aac50
Update generated code for v1789 and 2025-05-28.preview
stripe-openapi[bot] Jun 9, 2025
e6caab9
Update generated code for v1791 and 2025-05-28.preview
stripe-openapi[bot] Jun 10, 2025
ee20ac7
Updated stripeclient snippets in Readme.md (#2014)
prathmesh-stripe Jun 10, 2025
e8272d7
Revert "Updated stripeclient snippets in Readme.md (#2014)" (#2015)
mbroshi-stripe Jun 10, 2025
e7f31d0
Merge upstream and update generated code for v1795 and 2025-05-28.pre…
stripe-openapi[bot] Jun 12, 2025
624e693
Update generated code for v1796 and 2025-05-28.preview
stripe-openapi[bot] Jun 12, 2025
715b140
Update generated code for v1796 and 2025-05-28.preview
stripe-openapi[bot] Jun 12, 2025
c2b89c8
Update generated code for v1797 and 2025-05-28.preview
stripe-openapi[bot] Jun 13, 2025
cba26e3
Update generated code for v1799 and 2025-05-28.preview
stripe-openapi[bot] Jun 16, 2025
3166f06
Update generated code for v1800 and 2025-05-28.preview
stripe-openapi[bot] Jun 17, 2025
030ff52
Update generated code for v1800 and 2025-05-28.preview
stripe-openapi[bot] Jun 17, 2025
becb89b
Update generated code for v1801 and 2025-05-28.preview
stripe-openapi[bot] Jun 17, 2025
2c7e7f3
Update generated code for v1803 and 2025-05-28.preview
stripe-openapi[bot] Jun 18, 2025
4be5722
Update generated code for v1805 and 2025-05-28.preview
stripe-openapi[bot] Jun 18, 2025
7aab921
Update generated code for v1806 and 2025-06-30.preview
stripe-openapi[bot] Jun 18, 2025
fe2c5c0
Update generated code for v1807 and 2025-06-30.preview
stripe-openapi[bot] Jun 18, 2025
c543c72
Update generated code for v1808 and 2025-06-30.preview
stripe-openapi[bot] Jun 18, 2025
1f4389b
Update generated code for v1809 and 2025-06-30.preview
stripe-openapi[bot] Jun 18, 2025
10ca17f
Update generated code for v1811 and 2025-06-30.preview
stripe-openapi[bot] Jun 18, 2025
89925f9
Update generated code for v1812 and 2025-06-30.preview
stripe-openapi[bot] Jun 18, 2025
ec2d2c3
Update generated code for v1814 and 2025-06-30.preview
stripe-openapi[bot] Jun 19, 2025
25d6169
Update generated code for v1815 and 2025-06-30.preview
stripe-openapi[bot] Jun 20, 2025
4b4b5fb
Update generated code for v1816 and 2025-06-30.preview
stripe-openapi[bot] Jun 20, 2025
852cc07
Update generated code for v1817 and 2025-06-30.preview
stripe-openapi[bot] Jun 20, 2025
083fb3f
Update generated code for v1818 and 2025-06-30.preview
stripe-openapi[bot] Jun 23, 2025
a85b4fc
Update generated code for v1819 and 2025-06-30.preview
stripe-openapi[bot] Jun 23, 2025
3e273d0
Link to the /changelog page instead of /upgrades (#2018)
ramya-stripe Jun 23, 2025
fe2dbfb
Merge upstream and update generated code for v1819 and 2025-06-30.pre…
stripe-openapi[bot] Jun 23, 2025
e2a6b81
Update generated code for v1819 and 2025-06-30.preview
stripe-openapi[bot] Jun 24, 2025
a0ed2cb
Update generated code for v1819 and 2025-06-30.preview
stripe-openapi[bot] Jun 24, 2025
e8f127e
Update Sonatype endpoints (#2019)
mbroshi-stripe Jun 26, 2025
3a25d52
Merge upstream and update generated code for v1819 and 2025-06-30.pre…
stripe-openapi[bot] Jun 26, 2025
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
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,16 @@ jobs:
strategy:
fail-fast: false
matrix:
# We test Stripe SDK against Java LTS versions(8, 11, 17, 21) and currently supported non-LTS versions.
# https://www.oracle.com/java/technologies/java-se-support-roadmap.html
java-version:
- "1.8"
- "11"
- "17"
- "18"
- "19"
- "20"
- "21"
- "22"
- "23"
- "24"

steps:
- uses: extractions/setup-just@v2
Expand Down
1 change: 1 addition & 0 deletions API_VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2025-06-30.preview
32 changes: 16 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ However, [a bug](https://github.com/stripe/stripe-java/pull/1906) in the `27.x.y
## 27.0.0 - 2024-10-01
* [#1880](https://github.com/stripe/stripe-java/pull/1880) Support for APIs in the new API version 2024-09-30.acacia

This release changes the pinned API version to `2024-09-30.acacia`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-09-30.acacia) and carefully review the API changes before upgrading.
This release changes the pinned API version to `2024-09-30.acacia`. Please read the [API Changelog](https://docs.stripe.com/changelog/acacia#2024-09-30.acacia) and carefully review the API changes before upgrading.

### ⚠️ Breaking changes due to changes in the API

Expand Down Expand Up @@ -884,7 +884,7 @@ However, [a bug](https://github.com/stripe/stripe-java/pull/1906) in the `27.x.y
## 26.0.0 - 2024-06-24
* [#1825](https://github.com/stripe/stripe-java/pull/1825)

This release changes the pinned API version to 2024-06-20. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-06-20) and carefully review the API changes before upgrading.
This release changes the pinned API version to 2024-06-20. Please read the [API Changelog](https://docs.stripe.com/changelog/2024-06-20) and carefully review the API changes before upgrading.

### ⚠️ Breaking changes

Expand Down Expand Up @@ -1082,7 +1082,7 @@ However, [a bug](https://github.com/stripe/stripe-java/pull/1906) in the `27.x.y
## 25.0.0 - 2024-04-10
* [#1776](https://github.com/stripe/stripe-java/pull/1776)

* This release changes the pinned API version to `2024-04-10`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-04-10) and carefully review the API changes before upgrading.
* This release changes the pinned API version to `2024-04-10`. Please read the [API Changelog](https://docs.stripe.com/changelog/2024-04-10) and carefully review the API changes before upgrading.

* Add a new `TaxIdService` for operations on `/v1/tax_ids` endpoints.

Expand Down Expand Up @@ -1583,7 +1583,7 @@ However, [a bug](https://github.com/stripe/stripe-java/pull/1906) in the `27.x.y
- Update pinned API version to `2023-10-16`

## 24.0.0 - 2023-10-16
* This release changes the pinned API version to `2023-10-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-10-16) and carefully review the API changes before upgrading `stripe-java`.
* This release changes the pinned API version to `2023-10-16`. Please read the [API Changelog](https://docs.stripe.com/changelog/2023-10-16) and carefully review the API changes before upgrading `stripe-java`.
* [#1672](https://github.com/stripe/stripe-java/pull/1672) Update generated code
* Add support for `legal_guardian` on `AccountPersonsParams.relationship` and `TokenCreateParams.person.relationship`
* Add support for `additional_tos_acceptances` on `TokenCreateParams.person`
Expand Down Expand Up @@ -1743,7 +1743,7 @@ However, [a bug](https://github.com/stripe/stripe-java/pull/1906) in the `27.x.y
* Add support for `flat_amount` on `tax.TransactionCreateReversalParams`

## 23.0.0 - 2023-08-16
* This release changes the pinned API version to `2023-08-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-08-16) and carefully review the API changes before upgrading `stripe-java`.
* This release changes the pinned API version to `2023-08-16`. Please read the [API Changelog](https://docs.stripe.com/changelog/2023-08-16) and carefully review the API changes before upgrading `stripe-java`.
* More information is available in the [stripe-java v23 migration guide](https://github.com/stripe/stripe-java/wiki/Migration-guide-for-v23)

"⚠️" symbol highlights breaking changes.
Expand Down Expand Up @@ -2310,7 +2310,7 @@ However, [a bug](https://github.com/stripe/stripe-java/pull/1906) in the `27.x.y
## 22.0.0 - 2022-11-16
* [#1471](https://github.com/stripe/stripe-java/pull/1471) Next major release changes

Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-11-15.
Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the Stripe products, read more at https://docs.stripe.com/changelog/2022-11-15.

"⚠️" symbol highlights breaking changes.

Expand Down Expand Up @@ -2514,7 +2514,7 @@ RequestOptionsBuilder.unsafeSetStripeVersionOverride(builder, "2022-11-15");

This release includes breaking changes resulting from:

* Moving to use the new API version "2022-08-01". To learn more about these changes to Stripe products, see https://stripe.com/docs/upgrades#2022-08-01
* Moving to use the new API version "2022-08-01". To learn more about these changes to Stripe products, see https://docs.stripe.com/changelog/2022-08-01
* Cleaning up the SDK to remove deprecated/unused APIs and rename classes/methods/properties to sync with product APIs. Read more detailed description at https://github.com/stripe/stripe-java/wiki/Migration-guide-for-v21.

"⚠️" symbol highlights breaking changes.
Expand Down Expand Up @@ -3943,7 +3943,7 @@ Pull requests included in this release (cf. [#869](https://github.com/stripe/str
* The above are technically breaking changes and should have been released with 14.0.0.

## 14.0.0 - 2019-10-18
* [#863](https://github.com/stripe/stripe-java/pull/863) Upgrade to new API version [`2019-10-17`](https://stripe.com/docs/upgrades#2019-10-17)
* [#863](https://github.com/stripe/stripe-java/pull/863) Upgrade to new API version [`2019-10-17`](https://docs.stripe.com/changelog/2019-10-17)
* Pin to API version `2019-10-17`
* Remove `account_balance` from Customer model and parameter classes
* Remove `billing` from Invoice, Subscription and Subscription Schedule model and parameter classes
Expand All @@ -3970,7 +3970,7 @@ Pull requests included in this release (cf. [#869](https://github.com/stripe/str
* Add support for `deviceType` on `ReaderListParams`

## 13.0.0 - 2019-10-08
* [#853](https://github.com/stripe/stripe-java/pull/853) Upgrade to new API version [`2019-10-08`](https://stripe.com/docs/upgrades#2019-10-08)
* [#853](https://github.com/stripe/stripe-java/pull/853) Upgrade to new API version [`2019-10-08`](https://docs.stripe.com/changelog/2019-10-08)

## 12.2.0 - 2019-10-08
* [#852](https://github.com/stripe/stripe-java/pull/852) Setters for string properties in update params now all accept `EmptyParam`
Expand Down Expand Up @@ -4039,7 +4039,7 @@ Pull requests included in this release (cf. [#869](https://github.com/stripe/str
* [#826](https://github.com/stripe/stripe-java/pull/826) Add support for `executive` on `Person` create, update and list

## 11.0.0 - 2019-08-14
* [#825](https://github.com/stripe/stripe-java/pull/825) Move to API version [`2019-08-14`](https://stripe.com/docs/upgrades#2019-08-14)
* [#825](https://github.com/stripe/stripe-java/pull/825) Move to API version [`2019-08-14`](https://docs.stripe.com/changelog/2019-08-14)
* Rename `platform_payments` to `transfers` in `Account`
* Introduce `executive` as a relationship on `Person`

Expand Down Expand Up @@ -4234,7 +4234,7 @@ Pull requests included in this release:
* [#701](https://github.com/stripe/stripe-java/pull/701) Fix java doc on deprecated `EventData#getObject` and `Event#getDataObjectDeserializer`

## 8.0.0 - 2019-03-19
* [#662](https://github.com/stripe/stripe-java/pull/662) Major version release. Supports a pinned API version [2019-03-14](https://stripe.com/docs/upgrades#2019-03-14). Refer to our [migration guide for v8](https://github.com/stripe/stripe-java/wiki/Migration-guide-for-v8) for API upgrade guide and lists of backwards incompatible changes to watch out for.
* [#662](https://github.com/stripe/stripe-java/pull/662) Major version release. Supports a pinned API version [2019-03-14](https://docs.stripe.com/changelog/2019-03-14). Refer to our [migration guide for v8](https://github.com/stripe/stripe-java/wiki/Migration-guide-for-v8) for API upgrade guide and lists of backwards incompatible changes to watch out for.

## 7.63.1 - 2020-17-11
* Identical to 7.29.0
Expand Down Expand Up @@ -4372,7 +4372,7 @@ Pull requests included in this release:
* [#581](https://github.com/stripe/stripe-java/pull/581) Add `Topup.cancel()` overload with no arguments

## 6.8.0 - 2018-08-28
* [#577](https://github.com/stripe/stripe-java/pull/577) Update `Customer` and `Plan` models for API version [2018-08-23](https://stripe.com/docs/upgrades#2018-08-23)
* [#577](https://github.com/stripe/stripe-java/pull/577) Update `Customer` and `Plan` models for API version [2018-08-23](https://docs.stripe.com/changelog/2018-08-23)
* [#579](https://github.com/stripe/stripe-java/pull/579) Add `authorizationCode` to `Charge`

## 6.7.0 - 2018-08-27
Expand Down Expand Up @@ -4611,7 +4611,7 @@ Pull requests included in this release:
* Add support for `available_payout_methods` to `Card` model

## 4.2.0 - 2017-04-06
* Add support for payouts; see: https://stripe.com/docs/upgrades#2017-04-06
* Add support for payouts; see: https://docs.stripe.com/changelog/2017-04-06

## 4.1.0 - 2017-04-04
* Make `rule` under `ChargeOutcome` expandable
Expand Down Expand Up @@ -4839,7 +4839,7 @@ Pull requests included in this release:

## 1.23.0 - 2014-12-08
* Java 1.5 support dropped. We strongly suggest using newer versions of Java due to runtime, VM, language, and syntax improvements
* Dispute Evidence has been updated to reflect the new version of Dispute evidence format introduced as part of api version 2014-12-08. See https://stripe.com/docs/upgrades#2014-12-08 for details
* Dispute Evidence has been updated to reflect the new version of Dispute evidence format introduced as part of api version 2014-12-08. See https://docs.stripe.com/changelog/2014-12-08 for details

## 1.22.0 - 2014-12-03
* Convention is to call methods with a RequestOptions object, instead of an API Key directly
Expand All @@ -4863,7 +4863,7 @@ Pull requests included in this release:
* A few non-breaking general cleanups

## 1.18.0 - 2014-08-25
* Added isChargeRefundable and balanceTransactions to Dispute https://stripe.com/docs/upgrades#2014-08-20
* Added isChargeRefundable and balanceTransactions to Dispute https://docs.stripe.com/changelog/2014-08-20

## 1.17.0 - 2014-08-19
* Added metadata to Coupons
Expand Down Expand Up @@ -4990,7 +4990,7 @@ Pull requests included in this release:

## 1.2.5 - 2013-07-15
* Add support for new cards API.
* You will probably need to upgrade the Stripe API version on your account to 2013-07-05 or explicitly specify an API version with com.stripe.Stripe.apiVersion when you switch to this release of the bindings. More information about the relevant changes can be found at https://stripe.com/docs/upgrades#2013-07-05 and http://bit.ly/13miHM8
* You will probably need to upgrade the Stripe API version on your account to 2013-07-05 or explicitly specify an API version with com.stripe.Stripe.apiVersion when you switch to this release of the bindings. More information about the relevant changes can be found at https://docs.stripe.com/changelog/2013-07-05 and http://bit.ly/13miHM8
* Add a StripeRawJsonObject type for deserializing webhook events we don't recognize
* Add a Money class for representing account balances in individual currencies

Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1773
v1819
2 changes: 0 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
buildscript {
repositories {
mavenCentral()
//Add only for SNAPSHOT versions
//maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
}

Expand Down
4 changes: 2 additions & 2 deletions deploy.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ def isReleaseBuild() {

def getReleaseRepositoryUrl() {
return hasProperty("RELEASE_REPOSITORY_URL") ? RELEASE_REPOSITORY_URL
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
: "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
}

def getSnapshotRepositoryUrl() {
return hasProperty("SNAPSHOT_REPOSITORY_URL") ? SNAPSHOT_REPOSITORY_URL
: "https://oss.sonatype.org/content/repositories/snapshots/"
: "https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots/"
}

def getRepositoryUsername() {
Expand Down
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 = "2025-05-28.preview";
public static final String CURRENT = "2025-06-30.preview";
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
import com.stripe.model.StripeObject;
import com.stripe.net.StripeResponseGetter;

/**
* Error returned when recipient does not have the active features required to receive funds from
* this OutboundPayment request.
*/
/** The required storer capabilities are missing. */
public final class FeatureNotEnabledException extends ApiException {
private static final long serialVersionUID = 2L;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

/**
* Error returned when the balance of provided financial account and balance type in the
* OutboundPayment request does not have enough funds.
* OutboundPayment/OutboundTransfer request does not have enough funds.
*/
public final class InsufficientFundsException extends ApiException {
private static final long serialVersionUID = 2L;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/stripe/exception/StripeException.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ public static StripeException parseV2Exception(
case "financial_account_not_open":
return com.stripe.exception.FinancialAccountNotOpenException.parse(
body, statusCode, requestId, responseGetter);
case "feature_not_enabled":
return com.stripe.exception.FeatureNotEnabledException.parse(
body, statusCode, requestId, responseGetter);
case "blocked_by_stripe":
return com.stripe.exception.BlockedByStripeException.parse(
body, statusCode, requestId, responseGetter);
Expand All @@ -134,9 +137,6 @@ public static StripeException parseV2Exception(
case "recipient_not_notifiable":
return com.stripe.exception.RecipientNotNotifiableException.parse(
body, statusCode, requestId, responseGetter);
case "feature_not_enabled":
return com.stripe.exception.FeatureNotEnabledException.parse(
body, statusCode, requestId, responseGetter);
case "invalid_payout_method":
return com.stripe.exception.InvalidPayoutMethodException.parse(
body, statusCode, requestId, responseGetter);
Expand Down
24 changes: 24 additions & 0 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,15 @@ public static class Capabilities extends StripeObject {
@SerializedName("cashapp_payments")
String cashappPayments;

/**
* The status of the Crypto capability of the account, or whether the account can directly
* process Crypto payments.
*
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
*/
@SerializedName("crypto_payments")
String cryptoPayments;

/**
* The status of the EPS payments capability of the account, or whether the account can directly
* process EPS charges.
Expand Down Expand Up @@ -2980,12 +2989,27 @@ public static class Schedule extends StripeObject {
@SerializedName("monthly_anchor")
Long monthlyAnchor;

/**
* The days of the month funds will be paid out. Only shown if {@code interval} is monthly.
* Payouts scheduled between the 29th and 31st of the month are sent on the last day of
* shorter months.
*/
@SerializedName("monthly_payout_days")
List<Long> monthlyPayoutDays;

/**
* The day of the week funds will be paid out, of the style 'monday', 'tuesday', etc. Only
* shown if {@code interval} is weekly.
*/
@SerializedName("weekly_anchor")
String weeklyAnchor;

/**
* The days of the week when available funds are paid out, specified as an array, for
* example, [{@code monday}, {@code tuesday}]. Only shown if {@code interval} is weekly.
*/
@SerializedName("weekly_payout_days")
List<String> weeklyPayoutDays;
}
}

Expand Down
Loading
Loading