Skip to content

Update generated code #2013

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

Merged
merged 7 commits into from
Jul 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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.basil
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1773
v1819
3 changes: 2 additions & 1 deletion src/main/java/com/stripe/ApiVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
package com.stripe;

final class ApiVersion {
public static final String CURRENT = "2025-05-28.basil";
public static final String CURRENT = "2025-06-30.basil";
public static final String CURRENT_MAJOR = "basil";
}
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 @@ -1001,6 +1001,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 @@ -2709,12 +2718,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 @@ -1856,7 +1859,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 @@ -2029,7 +2032,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 @@ -2482,7 +2488,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 @@ -2542,11 +2551,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 @@ -2567,16 +2583,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 @@ -2615,6 +2639,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 @@ -2738,9 +2795,9 @@ public static class Grabpay 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 @@ -2749,9 +2806,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 @@ -2935,7 +2992,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 @@ -2971,11 +3031,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 @@ -2996,16 +3063,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