Skip to content

Commit f88b43a

Browse files
Update generated code (#1931)
* Update generated code for v1399 * Update generated code for v1402 * Update generated code for v1409 * Update generated code for v1412 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent cf528f2 commit f88b43a

File tree

71 files changed

+6978
-2784
lines changed

Some content is hidden

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

71 files changed

+6978
-2784
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1347
1+
v1412

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

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

44
final class ApiVersion {
5-
public static final String CURRENT = "2024-11-20.acacia";
5+
public static final String CURRENT = "2024-12-18.acacia";
66
}

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,7 +1762,7 @@ public static class FutureRequirements extends StripeObject {
17621762
List<Account.FutureRequirements.Alternative> alternatives;
17631763

17641764
/**
1765-
* Date on which {@code future_requirements} merges with the main {@code requirements} hash and
1765+
* Date on which {@code future_requirements} becomes the main {@code requirements} hash and
17661766
* {@code future_requirements} becomes empty. After the transition, {@code currently_due}
17671767
* requirements may immediately become {@code past_due}, but the account may also be given a
17681768
* grace period depending on its enablement state prior to transitioning.
@@ -1799,8 +1799,8 @@ public static class FutureRequirements extends StripeObject {
17991799
List<Account.FutureRequirements.Errors> errors;
18001800

18011801
/**
1802-
* Fields that need to be collected assuming all volume thresholds are reached. As they become
1803-
* required, they appear in {@code currently_due} as well.
1802+
* Fields you must collect when all thresholds are reached. As they become required, they appear
1803+
* in {@code currently_due} as well.
18041804
*/
18051805
@SerializedName("eventually_due")
18061806
List<String> eventuallyDue;
@@ -2001,9 +2001,8 @@ public static class Requirements extends StripeObject {
20012001
List<Account.Requirements.Errors> errors;
20022002

20032003
/**
2004-
* Fields that need to be collected assuming all volume thresholds are reached. As they become
2005-
* required, they appear in {@code currently_due} as well, and {@code current_deadline} becomes
2006-
* set.
2004+
* Fields you must collect when all thresholds are reached. As they become required, they appear
2005+
* in {@code currently_due} as well, and {@code current_deadline} becomes set.
20072006
*/
20082007
@SerializedName("eventually_due")
20092008
List<String> eventuallyDue;

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

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,11 @@ public static class AccountManagement extends StripeObject {
183183
@EqualsAndHashCode(callSuper = false)
184184
public static class Features extends StripeObject {
185185
/**
186-
* Disables Stripe user authentication for this embedded component. This feature can only be
187-
* false for accounts where you’re responsible for collecting updated information when
188-
* requirements are due or change, like custom accounts. The default value for this feature
189-
* is {@code false} when {@code external_account_collection} is enabled and {@code true}
190-
* otherwise.
186+
* Disables Stripe user authentication for this embedded component. This value can only be
187+
* true for accounts where {@code controller.requirement_collection} is {@code application}.
188+
* The default value is the opposite of the {@code external_account_collection} value. For
189+
* example, if you don’t set {@code external_account_collection}, it defaults to true and
190+
* {@code disable_stripe_user_authentication} defaults to false.
191191
*/
192192
@SerializedName("disable_stripe_user_authentication")
193193
Boolean disableStripeUserAuthentication;
@@ -228,11 +228,11 @@ public static class AccountOnboarding extends StripeObject {
228228
@EqualsAndHashCode(callSuper = false)
229229
public static class Features extends StripeObject {
230230
/**
231-
* Disables Stripe user authentication for this embedded component. This feature can only be
232-
* false for accounts where you’re responsible for collecting updated information when
233-
* requirements are due or change, like custom accounts. The default value for this feature
234-
* is {@code false} when {@code external_account_collection} is enabled and {@code true}
235-
* otherwise.
231+
* Disables Stripe user authentication for this embedded component. This value can only be
232+
* true for accounts where {@code controller.requirement_collection} is {@code application}.
233+
* The default value is the opposite of the {@code external_account_collection} value. For
234+
* example, if you don’t set {@code external_account_collection}, it defaults to true and
235+
* {@code disable_stripe_user_authentication} defaults to false.
236236
*/
237237
@SerializedName("disable_stripe_user_authentication")
238238
Boolean disableStripeUserAuthentication;
@@ -273,11 +273,11 @@ public static class Balances extends StripeObject {
273273
@EqualsAndHashCode(callSuper = false)
274274
public static class Features extends StripeObject {
275275
/**
276-
* Disables Stripe user authentication for this embedded component. This feature can only be
277-
* false for accounts where you’re responsible for collecting updated information when
278-
* requirements are due or change, like custom accounts. The default value for this feature
279-
* is {@code false} when {@code external_account_collection} is enabled and {@code true}
280-
* otherwise.
276+
* Disables Stripe user authentication for this embedded component. This value can only be
277+
* true for accounts where {@code controller.requirement_collection} is {@code application}.
278+
* The default value is the opposite of the {@code external_account_collection} value. For
279+
* example, if you don’t set {@code external_account_collection}, it defaults to true and
280+
* {@code disable_stripe_user_authentication} defaults to false.
281281
*/
282282
@SerializedName("disable_stripe_user_authentication")
283283
Boolean disableStripeUserAuthentication;
@@ -364,11 +364,11 @@ public static class NotificationBanner extends StripeObject {
364364
@EqualsAndHashCode(callSuper = false)
365365
public static class Features extends StripeObject {
366366
/**
367-
* Disables Stripe user authentication for this embedded component. This feature can only be
368-
* false for accounts where you’re responsible for collecting updated information when
369-
* requirements are due or change, like custom accounts. The default value for this feature
370-
* is {@code false} when {@code external_account_collection} is enabled and {@code true}
371-
* otherwise.
367+
* Disables Stripe user authentication for this embedded component. This value can only be
368+
* true for accounts where {@code controller.requirement_collection} is {@code application}.
369+
* The default value is the opposite of the {@code external_account_collection} value. For
370+
* example, if you don’t set {@code external_account_collection}, it defaults to true and
371+
* {@code disable_stripe_user_authentication} defaults to false.
372372
*/
373373
@SerializedName("disable_stripe_user_authentication")
374374
Boolean disableStripeUserAuthentication;
@@ -509,11 +509,11 @@ public static class Payouts extends StripeObject {
509509
@EqualsAndHashCode(callSuper = false)
510510
public static class Features extends StripeObject {
511511
/**
512-
* Disables Stripe user authentication for this embedded component. This feature can only be
513-
* false for accounts where you’re responsible for collecting updated information when
514-
* requirements are due or change, like custom accounts. The default value for this feature
515-
* is {@code false} when {@code external_account_collection} is enabled and {@code true}
516-
* otherwise.
512+
* Disables Stripe user authentication for this embedded component. This value can only be
513+
* true for accounts where {@code controller.requirement_collection} is {@code application}.
514+
* The default value is the opposite of the {@code external_account_collection} value. For
515+
* example, if you don’t set {@code external_account_collection}, it defaults to true and
516+
* {@code disable_stripe_user_authentication} defaults to false.
517517
*/
518518
@SerializedName("disable_stripe_user_authentication")
519519
Boolean disableStripeUserAuthentication;

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ public class BalanceTransaction extends ApiResource implements HasId {
128128
* payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
129129
* payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code
130130
* payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code
131-
* refund}, {@code refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code
132-
* stripe_fee}, {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal},
133-
* {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code
134-
* transfer_refund}. Learn more about <a
135-
* href="https://stripe.com/docs/reports/balance-transaction-types">balance transaction types and
136-
* what they represent</a>. To classify transactions for accounting purposes, consider {@code
137-
* reporting_category} instead.
131+
* payout_minimum_balance_hold}, {@code payout_minimum_balance_release}, {@code refund}, {@code
132+
* refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code stripe_fee},
133+
* {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal}, {@code
134+
* transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code transfer_refund}. Learn
135+
* more about <a href="https://stripe.com/docs/reports/balance-transaction-types">balance
136+
* transaction types and what they represent</a>. To classify transactions for accounting
137+
* purposes, consider {@code reporting_category} instead.
138138
*
139139
* <p>One of {@code adjustment}, {@code advance}, {@code advance_funding}, {@code
140140
* anticipation_repayment}, {@code application_fee}, {@code application_fee_refund}, {@code
@@ -145,10 +145,10 @@ public class BalanceTransaction extends ApiResource implements HasId {
145145
* payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
146146
* payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code
147147
* payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code
148-
* refund}, {@code refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code
149-
* stripe_fee}, {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal},
150-
* {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code
151-
* transfer_refund}.
148+
* payout_minimum_balance_hold}, {@code payout_minimum_balance_release}, {@code refund}, {@code
149+
* refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code stripe_fee},
150+
* {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal}, {@code
151+
* transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code transfer_refund}.
152152
*/
153153
@SerializedName("type")
154154
String type;

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public static class FutureRequirements extends StripeObject {
154154
List<Capability.FutureRequirements.Alternative> alternatives;
155155

156156
/**
157-
* Date on which {@code future_requirements} merges with the main {@code requirements} hash and
157+
* Date on which {@code future_requirements} becomes the main {@code requirements} hash and
158158
* {@code future_requirements} becomes empty. After the transition, {@code currently_due}
159159
* requirements may immediately become {@code past_due}, but the account may also be given a
160160
* grace period depending on the capability's enablement state prior to transitioning.
@@ -191,8 +191,8 @@ public static class FutureRequirements extends StripeObject {
191191
List<Capability.FutureRequirements.Errors> errors;
192192

193193
/**
194-
* Fields that need to be collected assuming all volume thresholds are reached. As they become
195-
* required, they appear in {@code currently_due} as well.
194+
* Fields you must collect when all thresholds are reached. As they become required, they appear
195+
* in {@code currently_due} as well.
196196
*/
197197
@SerializedName("eventually_due")
198198
List<String> eventuallyDue;
@@ -374,9 +374,8 @@ public static class Requirements extends StripeObject {
374374
List<Capability.Requirements.Errors> errors;
375375

376376
/**
377-
* Fields that need to be collected assuming all volume thresholds are reached. As they become
378-
* required, they appear in {@code currently_due} as well, and {@code current_deadline} becomes
379-
* set.
377+
* Fields you must collect when all thresholds are reached. As they become required, they appear
378+
* in {@code currently_due} as well, and {@code current_deadline} becomes set.
380379
*/
381380
@SerializedName("eventually_due")
382381
List<String> eventuallyDue;

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,17 @@ public class Card extends ApiResource
7878
@SerializedName("address_zip_check")
7979
String addressZipCheck;
8080

81+
/**
82+
* This field indicates whether this payment method can be shown again to its customer in a
83+
* checkout flow. Stripe products such as Checkout and Elements use this field to determine
84+
* whether a payment method can be shown as a saved payment method in a checkout flow. The field
85+
* defaults to “unspecified”.
86+
*
87+
* <p>One of {@code always}, {@code limited}, or {@code unspecified}.
88+
*/
89+
@SerializedName("allow_redisplay")
90+
String allowRedisplay;
91+
8192
/**
8293
* A set of available payout methods for this card. Only values from this set should be passed as
8394
* the {@code method} when creating a payout.
@@ -229,6 +240,14 @@ public class Card extends ApiResource
229240
@SerializedName("object")
230241
String object;
231242

243+
/**
244+
* Status of a card based on the card issuer.
245+
*
246+
* <p>One of {@code regulated}, or {@code unregulated}.
247+
*/
248+
@SerializedName("regulated_status")
249+
String regulatedStatus;
250+
232251
/**
233252
* For external accounts that are cards, possible values are {@code new} and {@code errored}. If a
234253
* payout fails, the status is set to {@code errored} and <a

0 commit comments

Comments
 (0)