Skip to content

Commit 0931ee3

Browse files
Update generated code (#2108)
* Update generated code for v2113 and * Update generated code for v2114 and * Update generated code for v2117 and * Update generated code for v2121 and * Update generated code for v2123 and --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Ramya Rao <[email protected]>
1 parent 6f25215 commit 0931ee3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+3028
-72
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6d15a7f20cb77c2c22091a30e499cb89d7e3248c
1+
a4d4c803dcbf205368dc65179c7eca4748aadaf7

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2111
1+
v2123

src/main/java/com/stripe/ApiVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
package com.stripe;
33

44
final class ApiVersion {
5-
public static final String CURRENT = "2025-10-29.clover";
5+
public static final String CURRENT = "2025-11-17.clover";
66
public static final String CURRENT_MAJOR = "clover";
77
}

src/main/java/com/stripe/model/BankAccount.java

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -156,20 +156,24 @@ public class BankAccount extends ApiResource
156156

157157
/**
158158
* For bank accounts, possible values are {@code new}, {@code validated}, {@code verified}, {@code
159-
* verification_failed}, or {@code errored}. A bank account that hasn't had any activity or
160-
* validation performed is {@code new}. If Stripe can determine that the bank account exists, its
161-
* status will be {@code validated}. Note that there often isn’t enough information to know (e.g.,
162-
* for smaller credit unions), and the validation is not always run. If customer bank account
163-
* verification has succeeded, the bank account status will be {@code verified}. If the
164-
* verification failed for any reason, such as microdeposit failure, the status will be {@code
165-
* verification_failed}. If a payout sent to this bank account fails, we'll set the status to
166-
* {@code errored} and will not continue to send <a
159+
* verification_failed}, {@code tokenized_account_number_deactivated} or {@code errored}. A bank
160+
* account that hasn't had any activity or validation performed is {@code new}. If Stripe can
161+
* determine that the bank account exists, its status will be {@code validated}. Note that there
162+
* often isn’t enough information to know (e.g., for smaller credit unions), and the validation is
163+
* not always run. If customer bank account verification has succeeded, the bank account status
164+
* will be {@code verified}. If the verification failed for any reason, such as microdeposit
165+
* failure, the status will be {@code verification_failed}. If the status is {@code
166+
* tokenized_account_number_deactivated}, the account utilizes a tokenized account number which
167+
* has been deactivated due to expiration or revocation. This account will need to be reverified
168+
* to continue using it for money movement. If a payout sent to this bank account fails, we'll set
169+
* the status to {@code errored} and will not continue to send <a
167170
* href="https://stripe.com/docs/payouts#payout-schedule">scheduled payouts</a> until the bank
168171
* details are updated.
169172
*
170-
* <p>For external accounts, possible values are {@code new}, {@code errored} and {@code
171-
* verification_failed}. If a payout fails, the status is set to {@code errored} and scheduled
172-
* payouts are stopped until account details are updated. In the US and India, if we can't <a
173+
* <p>For external accounts, possible values are {@code new}, {@code errored}, {@code
174+
* verification_failed}, and {@code tokenized_account_number_deactivated}. If a payout fails, the
175+
* status is set to {@code errored} and scheduled payouts are stopped until account details are
176+
* updated. In the US and India, if we can't <a
173177
* href="https://support.stripe.com/questions/bank-account-ownership-verification">verify the
174178
* owner of the bank account</a>, we'll set the status to {@code verification_failed}. Other
175179
* validations aren't run against external accounts because they're only used for payouts. This

src/main/java/com/stripe/model/Charge.java

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2831,9 +2831,9 @@ public static class Grabpay extends StripeObject {
28312831
public static class Ideal extends StripeObject {
28322832
/**
28332833
* The customer's bank. Can be one of {@code abn_amro}, {@code asn_bank}, {@code bunq}, {@code
2834-
* buut}, {@code handelsbanken}, {@code ing}, {@code knab}, {@code moneyou}, {@code n26},
2835-
* {@code nn}, {@code rabobank}, {@code regiobank}, {@code revolut}, {@code sns_bank}, {@code
2836-
* triodos_bank}, {@code van_lanschot}, or {@code yoursafe}.
2834+
* buut}, {@code finom}, {@code handelsbanken}, {@code ing}, {@code knab}, {@code moneyou},
2835+
* {@code n26}, {@code nn}, {@code rabobank}, {@code regiobank}, {@code revolut}, {@code
2836+
* sns_bank}, {@code triodos_bank}, {@code van_lanschot}, or {@code yoursafe}.
28372837
*/
28382838
@SerializedName("bank")
28392839
String bank;
@@ -2842,9 +2842,9 @@ public static class Ideal extends StripeObject {
28422842
* The Bank Identifier Code of the customer's bank.
28432843
*
28442844
* <p>One of {@code ABNANL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code BUNQNL2A}, {@code
2845-
* BUUTNL2A}, {@code FVLBNL22}, {@code HANDNL2A}, {@code INGBNL2A}, {@code KNABNL2H}, {@code
2846-
* MOYONL21}, {@code NNBANL2G}, {@code NTSBDEB1}, {@code RABONL2U}, {@code RBRBNL21}, {@code
2847-
* REVOIE23}, {@code REVOLT21}, {@code SNSBNL2A}, or {@code TRIONL2U}.
2845+
* BUUTNL2A}, {@code FNOMNL22}, {@code FVLBNL22}, {@code HANDNL2A}, {@code INGBNL2A}, {@code
2846+
* KNABNL2H}, {@code MOYONL21}, {@code NNBANL2G}, {@code NTSBDEB1}, {@code RABONL2U}, {@code
2847+
* RBRBNL21}, {@code REVOIE23}, {@code REVOLT21}, {@code SNSBNL2A}, or {@code TRIONL2U}.
28482848
*/
28492849
@SerializedName("bic")
28502850
String bic;
@@ -2865,6 +2865,10 @@ public static class Ideal extends StripeObject {
28652865
@SerializedName("iban_last4")
28662866
String ibanLast4;
28672867

2868+
/** Unique transaction ID generated by iDEAL. */
2869+
@SerializedName("transaction_id")
2870+
String transactionId;
2871+
28682872
/**
28692873
* Owner's verified full name. Values are verified or provided by iDEAL directly (if
28702874
* supported) at the time of authorization or settlement. They cannot be set or mutated.

src/main/java/com/stripe/model/ConfirmationToken.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,9 +1665,10 @@ public static class Grabpay extends StripeObject {}
16651665
public static class Ideal extends StripeObject {
16661666
/**
16671667
* The customer's bank, if provided. Can be one of {@code abn_amro}, {@code asn_bank}, {@code
1668-
* bunq}, {@code buut}, {@code handelsbanken}, {@code ing}, {@code knab}, {@code moneyou},
1669-
* {@code n26}, {@code nn}, {@code rabobank}, {@code regiobank}, {@code revolut}, {@code
1670-
* sns_bank}, {@code triodos_bank}, {@code van_lanschot}, or {@code yoursafe}.
1668+
* bunq}, {@code buut}, {@code finom}, {@code handelsbanken}, {@code ing}, {@code knab},
1669+
* {@code moneyou}, {@code n26}, {@code nn}, {@code rabobank}, {@code regiobank}, {@code
1670+
* revolut}, {@code sns_bank}, {@code triodos_bank}, {@code van_lanschot}, or {@code
1671+
* yoursafe}.
16711672
*/
16721673
@SerializedName("bank")
16731674
String bank;
@@ -1676,9 +1677,9 @@ public static class Ideal extends StripeObject {
16761677
* The Bank Identifier Code of the customer's bank, if the bank was provided.
16771678
*
16781679
* <p>One of {@code ABNANL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code BUNQNL2A}, {@code
1679-
* BUUTNL2A}, {@code FVLBNL22}, {@code HANDNL2A}, {@code INGBNL2A}, {@code KNABNL2H}, {@code
1680-
* MOYONL21}, {@code NNBANL2G}, {@code NTSBDEB1}, {@code RABONL2U}, {@code RBRBNL21}, {@code
1681-
* REVOIE23}, {@code REVOLT21}, {@code SNSBNL2A}, or {@code TRIONL2U}.
1680+
* BUUTNL2A}, {@code FNOMNL22}, {@code FVLBNL22}, {@code HANDNL2A}, {@code INGBNL2A}, {@code
1681+
* KNABNL2H}, {@code MOYONL21}, {@code NNBANL2G}, {@code NTSBDEB1}, {@code RABONL2U}, {@code
1682+
* RBRBNL21}, {@code REVOIE23}, {@code REVOLT21}, {@code SNSBNL2A}, or {@code TRIONL2U}.
16821683
*/
16831684
@SerializedName("bic")
16841685
String bic;
@@ -2351,7 +2352,8 @@ public static class Blocked extends StripeObject {
23512352
*
23522353
* <p>One of {@code bank_account_closed}, {@code bank_account_frozen}, {@code
23532354
* bank_account_invalid_details}, {@code bank_account_restricted}, {@code
2354-
* bank_account_unusable}, or {@code debit_not_authorized}.
2355+
* bank_account_unusable}, {@code debit_not_authorized}, or {@code
2356+
* tokenized_account_number_deactivated}.
23552357
*/
23562358
@SerializedName("reason")
23572359
String reason;

src/main/java/com/stripe/model/Event.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,14 @@ public class Event extends ApiResource implements HasId {
129129
* customer.tax_id.created}, {@code customer.tax_id.deleted}, {@code customer.tax_id.updated},
130130
* {@code customer.updated}, {@code customer_cash_balance_transaction.created}, {@code
131131
* entitlements.active_entitlement_summary.updated}, {@code file.created}, {@code
132+
* financial_connections.account.account_numbers_updated}, {@code
132133
* financial_connections.account.created}, {@code financial_connections.account.deactivated},
133134
* {@code financial_connections.account.disconnected}, {@code
134135
* financial_connections.account.reactivated}, {@code
135136
* financial_connections.account.refreshed_balance}, {@code
136137
* financial_connections.account.refreshed_ownership}, {@code
137138
* financial_connections.account.refreshed_transactions}, {@code
139+
* financial_connections.account.upcoming_account_number_expiry}, {@code
138140
* identity.verification_session.canceled}, {@code identity.verification_session.created}, {@code
139141
* identity.verification_session.processing}, {@code identity.verification_session.redacted},
140142
* {@code identity.verification_session.requires_input}, {@code

src/main/java/com/stripe/model/EventDataClassLookup.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ public final class EventDataClassLookup {
174174

175175
classLookup.put("scheduled_query_run", com.stripe.model.sigma.ScheduledQueryRun.class);
176176

177+
classLookup.put("tax.association", com.stripe.model.tax.Association.class);
177178
classLookup.put("tax.calculation", com.stripe.model.tax.Calculation.class);
178179
classLookup.put("tax.calculation_line_item", com.stripe.model.tax.CalculationLineItem.class);
179180
classLookup.put("tax.registration", com.stripe.model.tax.Registration.class);
@@ -184,6 +185,7 @@ public final class EventDataClassLookup {
184185
classLookup.put("terminal.configuration", com.stripe.model.terminal.Configuration.class);
185186
classLookup.put("terminal.connection_token", com.stripe.model.terminal.ConnectionToken.class);
186187
classLookup.put("terminal.location", com.stripe.model.terminal.Location.class);
188+
classLookup.put("terminal.onboarding_link", com.stripe.model.terminal.OnboardingLink.class);
187189
classLookup.put("terminal.reader", com.stripe.model.terminal.Reader.class);
188190

189191
classLookup.put("test_helpers.test_clock", com.stripe.model.testhelpers.TestClock.class);

src/main/java/com/stripe/model/PaymentAttemptRecord.java

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,6 @@ public static class PaymentMethodDetails extends StripeObject {
567567
@SerializedName("type")
568568
String type;
569569

570-
/** Details of the US Bank Account used for this payment attempt. */
571570
@SerializedName("us_bank_account")
572571
UsBankAccount usBankAccount;
573572

@@ -1795,9 +1794,9 @@ public static class Grabpay extends StripeObject {
17951794
public static class Ideal extends StripeObject {
17961795
/**
17971796
* The customer's bank. Can be one of {@code abn_amro}, {@code asn_bank}, {@code bunq}, {@code
1798-
* buut}, {@code handelsbanken}, {@code ing}, {@code knab}, {@code moneyou}, {@code n26},
1799-
* {@code nn}, {@code rabobank}, {@code regiobank}, {@code revolut}, {@code sns_bank}, {@code
1800-
* triodos_bank}, {@code van_lanschot}, or {@code yoursafe}.
1797+
* buut}, {@code finom}, {@code handelsbanken}, {@code ing}, {@code knab}, {@code moneyou},
1798+
* {@code n26}, {@code nn}, {@code rabobank}, {@code regiobank}, {@code revolut}, {@code
1799+
* sns_bank}, {@code triodos_bank}, {@code van_lanschot}, or {@code yoursafe}.
18011800
*/
18021801
@SerializedName("bank")
18031802
String bank;
@@ -1806,9 +1805,9 @@ public static class Ideal extends StripeObject {
18061805
* The Bank Identifier Code of the customer's bank.
18071806
*
18081807
* <p>One of {@code ABNANL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code BUNQNL2A}, {@code
1809-
* BUUTNL2A}, {@code FVLBNL22}, {@code HANDNL2A}, {@code INGBNL2A}, {@code KNABNL2H}, {@code
1810-
* MOYONL21}, {@code NNBANL2G}, {@code NTSBDEB1}, {@code RABONL2U}, {@code RBRBNL21}, {@code
1811-
* REVOIE23}, {@code REVOLT21}, {@code SNSBNL2A}, or {@code TRIONL2U}.
1808+
* BUUTNL2A}, {@code FNOMNL22}, {@code FVLBNL22}, {@code HANDNL2A}, {@code INGBNL2A}, {@code
1809+
* KNABNL2H}, {@code MOYONL21}, {@code NNBANL2G}, {@code NTSBDEB1}, {@code RABONL2U}, {@code
1810+
* RBRBNL21}, {@code REVOIE23}, {@code REVOLT21}, {@code SNSBNL2A}, or {@code TRIONL2U}.
18121811
*/
18131812
@SerializedName("bic")
18141813
String bic;
@@ -1829,6 +1828,10 @@ public static class Ideal extends StripeObject {
18291828
@SerializedName("iban_last4")
18301829
String ibanLast4;
18311830

1831+
/** Unique transaction ID generated by iDEAL. */
1832+
@SerializedName("transaction_id")
1833+
String transactionId;
1834+
18321835
/**
18331836
* Owner's verified full name. Values are verified or provided by iDEAL directly (if
18341837
* supported) at the time of authorization or settlement. They cannot be set or mutated.
@@ -2871,14 +2874,27 @@ public static class Swish extends StripeObject {
28712874
@EqualsAndHashCode(callSuper = false)
28722875
public static class Twint extends StripeObject {}
28732876

2874-
/** Details of the US Bank Account used for this payment attempt. */
2877+
/**
2878+
* For more details about UsBankAccount, please refer to the <a
2879+
* href="https://docs.stripe.com/api">API Reference.</a>
2880+
*/
28752881
@Getter
28762882
@Setter
28772883
@EqualsAndHashCode(callSuper = false)
28782884
public static class UsBankAccount extends StripeObject {
2885+
/**
2886+
* The type of entity that holds the account. This can be either 'individual' or 'company'.
2887+
*
2888+
* <p>One of {@code company}, or {@code individual}.
2889+
*/
28792890
@SerializedName("account_holder_type")
28802891
String accountHolderType;
28812892

2893+
/**
2894+
* The type of the bank account. This can be either 'checking' or 'savings'.
2895+
*
2896+
* <p>One of {@code checking}, or {@code savings}.
2897+
*/
28822898
@SerializedName("account_type")
28832899
String accountType;
28842900

@@ -2903,11 +2919,11 @@ public static class UsBankAccount extends StripeObject {
29032919
@Setter(lombok.AccessLevel.NONE)
29042920
ExpandableField<Mandate> mandate;
29052921

2906-
/** Reference number to locate ACH payments with customer’s bank. */
2922+
/** The ACH payment reference for this transaction. */
29072923
@SerializedName("payment_reference")
29082924
String paymentReference;
29092925

2910-
/** Routing number of the bank account. */
2926+
/** The routing number for the bank account. */
29112927
@SerializedName("routing_number")
29122928
String routingNumber;
29132929

src/main/java/com/stripe/model/PaymentIntent.java

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ public class PaymentIntent extends ApiResource implements HasId, MetadataStore<P
179179
@SerializedName("excluded_payment_method_types")
180180
List<String> excludedPaymentMethodTypes;
181181

182+
@SerializedName("hooks")
183+
Hooks hooks;
184+
182185
/** Unique identifier for the object. */
183186
@Getter(onMethod_ = {@Override})
184187
@SerializedName("id")
@@ -1638,6 +1641,43 @@ public static class AutomaticPaymentMethods extends StripeObject {
16381641
Boolean enabled;
16391642
}
16401643

1644+
/**
1645+
* For more details about Hooks, please refer to the <a href="https://docs.stripe.com/api">API
1646+
* Reference.</a>
1647+
*/
1648+
@Getter
1649+
@Setter
1650+
@EqualsAndHashCode(callSuper = false)
1651+
public static class Hooks extends StripeObject {
1652+
@SerializedName("inputs")
1653+
Inputs inputs;
1654+
1655+
/**
1656+
* For more details about Inputs, please refer to the <a href="https://docs.stripe.com/api">API
1657+
* Reference.</a>
1658+
*/
1659+
@Getter
1660+
@Setter
1661+
@EqualsAndHashCode(callSuper = false)
1662+
public static class Inputs extends StripeObject {
1663+
@SerializedName("tax")
1664+
Tax tax;
1665+
1666+
/**
1667+
* For more details about Tax, please refer to the <a href="https://docs.stripe.com/api">API
1668+
* Reference.</a>
1669+
*/
1670+
@Getter
1671+
@Setter
1672+
@EqualsAndHashCode(callSuper = false)
1673+
public static class Tax extends StripeObject {
1674+
/** The <a href="https://stripe.com/docs/api/tax/calculations">TaxCalculation</a> id */
1675+
@SerializedName("calculation")
1676+
String calculation;
1677+
}
1678+
}
1679+
}
1680+
16411681
/**
16421682
* For more details about NextAction, please refer to the <a
16431683
* href="https://docs.stripe.com/api">API Reference.</a>
@@ -5254,6 +5294,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
52545294
trySetResponseGetter(application, responseGetter);
52555295
trySetResponseGetter(automaticPaymentMethods, responseGetter);
52565296
trySetResponseGetter(customer, responseGetter);
5297+
trySetResponseGetter(hooks, responseGetter);
52575298
trySetResponseGetter(lastPaymentError, responseGetter);
52585299
trySetResponseGetter(latestCharge, responseGetter);
52595300
trySetResponseGetter(nextAction, responseGetter);

0 commit comments

Comments
 (0)