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 40 commits into
base: beta
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 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
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
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
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
3a25d52
Merge upstream and update generated code for v1819 and 2025-06-30.pre…
stripe-openapi[bot] Jun 26, 2025
5f030d7
Merge branch 'beta' into latest-codegen-beta
prathmesh-stripe Jun 30, 2025
38d8572
Fixed test
prathmesh-stripe Jun 30, 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
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
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1773
v1819
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
182 changes: 95 additions & 87 deletions src/main/java/com/stripe/model/AccountSession.java

Large diffs are not rendered by default.

115 changes: 95 additions & 20 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -1200,6 +1200,9 @@ public static class PaymentMethodDetails extends StripeObject {
@SerializedName("cashapp")
Cashapp cashapp;

@SerializedName("crypto")
Crypto crypto;

@SerializedName("customer_balance")
CustomerBalance customerBalance;

Expand Down Expand Up @@ -1895,7 +1898,7 @@ public static class Card extends StripeObject {
IncrementalAuthorization incrementalAuthorization;

/**
* Installment details for this payment (Mexico only).
* Installment details for this payment.
*
* <p>For more information, see the <a
* href="https://stripe.com/docs/payments/installments">installments integration guide</a>.
Expand Down Expand Up @@ -2088,7 +2091,10 @@ public static class Plan extends StripeObject {
@SerializedName("interval")
String interval;

/** Type of installment plan, one of {@code fixed_count}. */
/**
* Type of installment plan, one of {@code fixed_count}, {@code bonus}, or {@code
* revolving}.
*/
@SerializedName("type")
String type;
}
Expand Down Expand Up @@ -2560,7 +2566,10 @@ public static class CardPresent extends StripeObject {
@SerializedName("overcapture_supported")
Boolean overcaptureSupported;

/** EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. */
/**
* The languages that the issuing bank recommends using for localizing any customer-facing
* text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip.
*/
@SerializedName("preferred_locales")
List<String> preferredLocales;

Expand Down Expand Up @@ -2620,11 +2629,18 @@ public static class Receipt extends StripeObject {
@SerializedName("account_type")
String accountType;

/** EMV tag 9F26, cryptogram generated by the integrated circuit chip. */
/**
* The Application Cryptogram, a unique value generated by the card to authenticate the
* transaction with issuers.
*/
@SerializedName("application_cryptogram")
String applicationCryptogram;

/** Mnenomic of the Application Identifier. */
/**
* The Application Identifier (AID) on the card used to determine which networks are
* eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the
* card's chip.
*/
@SerializedName("application_preferred_name")
String applicationPreferredName;

Expand All @@ -2645,16 +2661,24 @@ public static class Receipt extends StripeObject {
String cardholderVerificationMethod;

/**
* EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
* Similar to the application_preferred_name, identifying the applications (AIDs) available
* on the card. Referenced from EMV tag 84.
*/
@SerializedName("dedicated_file_name")
String dedicatedFileName;

/** The outcome of a series of EMV functions performed by the card reader. */
/**
* A 5-byte string that records the checks and validations that occur between the card and
* the terminal. These checks determine how the terminal processes the transaction and what
* risk tolerance is acceptable. Referenced from EMV Tag 95.
*/
@SerializedName("terminal_verification_results")
String terminalVerificationResults;

/** An indication of various EMV functions performed during the transaction. */
/**
* An indication of which steps were completed during the card read process. Referenced from
* EMV Tag 9B.
*/
@SerializedName("transaction_status_information")
String transactionStatusInformation;
}
Expand Down Expand Up @@ -2693,6 +2717,39 @@ public static class Cashapp extends StripeObject {
String cashtag;
}

/**
* For more details about Crypto, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Crypto extends StripeObject {
/** The wallet address of the customer. */
@SerializedName("buyer_address")
String buyerAddress;

/**
* The blockchain network that the transaction was sent on.
*
* <p>One of {@code base}, {@code ethereum}, or {@code polygon}.
*/
@SerializedName("network")
String network;

/**
* The token currency that the transaction was sent with.
*
* <p>One of {@code usdc}, {@code usdg}, or {@code usdp}.
*/
@SerializedName("token_currency")
String tokenCurrency;

/** The blockchain transaction hash of the crypto payment. */
@SerializedName("transaction_hash")
String transactionHash;
}

/**
* For more details about CustomerBalance, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down Expand Up @@ -2861,9 +2918,9 @@ public static class IdBankTransfer extends StripeObject {
public static class Ideal extends StripeObject {
/**
* The customer's bank. Can be one of {@code abn_amro}, {@code asn_bank}, {@code bunq}, {@code
* handelsbanken}, {@code ing}, {@code knab}, {@code moneyou}, {@code n26}, {@code nn}, {@code
* rabobank}, {@code regiobank}, {@code revolut}, {@code sns_bank}, {@code triodos_bank},
* {@code van_lanschot}, or {@code yoursafe}.
* buut}, {@code handelsbanken}, {@code ing}, {@code knab}, {@code moneyou}, {@code n26},
* {@code nn}, {@code rabobank}, {@code regiobank}, {@code revolut}, {@code sns_bank}, {@code
* triodos_bank}, {@code van_lanschot}, or {@code yoursafe}.
*/
@SerializedName("bank")
String bank;
Expand All @@ -2872,9 +2929,9 @@ public static class Ideal extends StripeObject {
* The Bank Identifier Code of the customer's bank.
*
* <p>One of {@code ABNANL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code BUNQNL2A}, {@code
* FVLBNL22}, {@code HANDNL2A}, {@code INGBNL2A}, {@code KNABNL2H}, {@code MOYONL21}, {@code
* NNBANL2G}, {@code NTSBDEB1}, {@code RABONL2U}, {@code RBRBNL21}, {@code REVOIE23}, {@code
* REVOLT21}, {@code SNSBNL2A}, or {@code TRIONL2U}.
* BUUTNL2A}, {@code FVLBNL22}, {@code HANDNL2A}, {@code INGBNL2A}, {@code KNABNL2H}, {@code
* MOYONL21}, {@code NNBANL2G}, {@code NTSBDEB1}, {@code RABONL2U}, {@code RBRBNL21}, {@code
* REVOIE23}, {@code REVOLT21}, {@code SNSBNL2A}, or {@code TRIONL2U}.
*/
@SerializedName("bic")
String bic;
Expand Down Expand Up @@ -3058,7 +3115,10 @@ public static class InteracPresent extends StripeObject {
@SerializedName("network_transaction_id")
String networkTransactionId;

/** EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. */
/**
* The languages that the issuing bank recommends using for localizing any customer-facing
* text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip.
*/
@SerializedName("preferred_locales")
List<String> preferredLocales;

Expand Down Expand Up @@ -3094,11 +3154,18 @@ public static class Receipt extends StripeObject {
@SerializedName("account_type")
String accountType;

/** EMV tag 9F26, cryptogram generated by the integrated circuit chip. */
/**
* The Application Cryptogram, a unique value generated by the card to authenticate the
* transaction with issuers.
*/
@SerializedName("application_cryptogram")
String applicationCryptogram;

/** Mnenomic of the Application Identifier. */
/**
* The Application Identifier (AID) on the card used to determine which networks are
* eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the
* card's chip.
*/
@SerializedName("application_preferred_name")
String applicationPreferredName;

Expand All @@ -3119,16 +3186,24 @@ public static class Receipt extends StripeObject {
String cardholderVerificationMethod;

/**
* EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
* Similar to the application_preferred_name, identifying the applications (AIDs) available
* on the card. Referenced from EMV tag 84.
*/
@SerializedName("dedicated_file_name")
String dedicatedFileName;

/** The outcome of a series of EMV functions performed by the card reader. */
/**
* A 5-byte string that records the checks and validations that occur between the card and
* the terminal. These checks determine how the terminal processes the transaction and what
* risk tolerance is acceptable. Referenced from EMV Tag 95.
*/
@SerializedName("terminal_verification_results")
String terminalVerificationResults;

/** An indication of various EMV functions performed during the transaction. */
/**
* An indication of which steps were completed during the card read process. Referenced from
* EMV Tag 9B.
*/
@SerializedName("transaction_status_information")
String transactionStatusInformation;
}
Expand Down
Loading
Loading