Skip to content

Commit d1e3676

Browse files
Merge pull request #2235 from stripe/latest-codegen-beta
Update generated code for beta
2 parents 9f8515f + 1bd27a8 commit d1e3676

38 files changed

+517
-82
lines changed

OPENAPI_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1384
1+
v1406

src/apiVersion.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// File generated from our OpenAPI spec
22

3-
export const ApiVersion = '2024-11-20.acacia';
3+
export const ApiVersion = '2024-12-18.acacia';

test/resources/generated_examples_test.spec.js

+1-1
Large diffs are not rendered by default.

types/AccountSessions.d.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ declare module 'stripe' {
8888
namespace AccountManagement {
8989
interface Features {
9090
/**
91-
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
91+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
9292
*/
9393
disable_stripe_user_authentication: boolean;
9494

@@ -111,7 +111,7 @@ declare module 'stripe' {
111111
namespace AccountOnboarding {
112112
interface Features {
113113
/**
114-
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
114+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
115115
*/
116116
disable_stripe_user_authentication: boolean;
117117

@@ -134,7 +134,7 @@ declare module 'stripe' {
134134
namespace Balances {
135135
interface Features {
136136
/**
137-
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
137+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
138138
*/
139139
disable_stripe_user_authentication: boolean;
140140

@@ -224,7 +224,7 @@ declare module 'stripe' {
224224
namespace NotificationBanner {
225225
interface Features {
226226
/**
227-
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
227+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
228228
*/
229229
disable_stripe_user_authentication: boolean;
230230

@@ -313,7 +313,7 @@ declare module 'stripe' {
313313
namespace Payouts {
314314
interface Features {
315315
/**
316-
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
316+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
317317
*/
318318
disable_stripe_user_authentication: boolean;
319319

types/AccountSessionsResource.d.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ declare module 'stripe' {
158158
namespace AccountManagement {
159159
interface Features {
160160
/**
161-
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
161+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
162162
*/
163163
disable_stripe_user_authentication?: boolean;
164164

@@ -184,7 +184,7 @@ declare module 'stripe' {
184184
namespace AccountOnboarding {
185185
interface Features {
186186
/**
187-
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
187+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
188188
*/
189189
disable_stripe_user_authentication?: boolean;
190190

@@ -252,7 +252,7 @@ declare module 'stripe' {
252252
namespace Balances {
253253
interface Features {
254254
/**
255-
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
255+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
256256
*/
257257
disable_stripe_user_authentication?: boolean;
258258

@@ -373,7 +373,7 @@ declare module 'stripe' {
373373
namespace FinancialAccount {
374374
interface Features {
375375
/**
376-
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
376+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
377377
*/
378378
disable_stripe_user_authentication?: boolean;
379379

@@ -507,7 +507,7 @@ declare module 'stripe' {
507507
namespace NotificationBanner {
508508
interface Features {
509509
/**
510-
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
510+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
511511
*/
512512
disable_stripe_user_authentication?: boolean;
513513

@@ -621,7 +621,7 @@ declare module 'stripe' {
621621
namespace Payouts {
622622
interface Features {
623623
/**
624-
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
624+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
625625
*/
626626
disable_stripe_user_authentication?: boolean;
627627

types/Accounts.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ declare module 'stripe' {
131131
/**
132132
* The applicant's gross annual revenue for its preceding fiscal year.
133133
*/
134-
annual_revenue: BusinessProfile.AnnualRevenue | null;
134+
annual_revenue?: BusinessProfile.AnnualRevenue | null;
135135

136136
/**
137137
* An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
138138
*/
139-
estimated_worker_count: number | null;
139+
estimated_worker_count?: number | null;
140140

141141
/**
142142
* [The merchant category code for the account](https://stripe.com/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
@@ -1045,7 +1045,7 @@ declare module 'stripe' {
10451045
errors: Array<FutureRequirements.Error> | null;
10461046

10471047
/**
1048-
* Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well.
1048+
* Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well.
10491049
*/
10501050
eventually_due: Array<string> | null;
10511051

@@ -1236,7 +1236,7 @@ declare module 'stripe' {
12361236
errors: Array<Requirements.Error> | null;
12371237

12381238
/**
1239-
* Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
1239+
* Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
12401240
*/
12411241
eventually_due: Array<string> | null;
12421242

types/Billing/CreditBalanceTransactions.d.ts

+20-1
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,15 @@ declare module 'stripe' {
6262
interface Credit {
6363
amount: Credit.Amount;
6464

65+
/**
66+
* Details of the invoice to which the reinstated credits were originally applied. Only present if `type` is `credits_application_invoice_voided`.
67+
*/
68+
credits_application_invoice_voided?: Credit.CreditsApplicationInvoiceVoided | null;
69+
6570
/**
6671
* The type of credit transaction.
6772
*/
68-
type: 'credits_granted';
73+
type: Credit.Type;
6974
}
7075

7176
namespace Credit {
@@ -94,6 +99,20 @@ declare module 'stripe' {
9499
value: number;
95100
}
96101
}
102+
103+
interface CreditsApplicationInvoiceVoided {
104+
/**
105+
* The invoice to which the reinstated billing credits were originally applied.
106+
*/
107+
invoice: string | Stripe.Invoice;
108+
109+
/**
110+
* The invoice line item to which the reinstated billing credits were originally applied.
111+
*/
112+
invoice_line_item: string;
113+
}
114+
115+
type Type = 'credits_application_invoice_voided' | 'credits_granted';
97116
}
98117

99118
interface Debit {

types/Capabilities.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ declare module 'stripe' {
7171
errors: Array<FutureRequirements.Error>;
7272

7373
/**
74-
* Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well.
74+
* Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well.
7575
*/
7676
eventually_due: Array<string>;
7777

@@ -250,7 +250,7 @@ declare module 'stripe' {
250250
errors: Array<Requirements.Error>;
251251

252252
/**
253-
* Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
253+
* Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
254254
*/
255255
eventually_due: Array<string>;
256256

types/Cards.d.ts

+14
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ declare module 'stripe' {
6565
*/
6666
address_zip_check: string | null;
6767

68+
/**
69+
* This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”.
70+
*/
71+
allow_redisplay?: Card.AllowRedisplay | null;
72+
6873
/**
6974
* A set of available payout methods for this card. Only values from this set should be passed as the `method` when creating a payout.
7075
*/
@@ -164,6 +169,11 @@ declare module 'stripe' {
164169

165170
networks?: Card.Networks;
166171

172+
/**
173+
* Status of a card based on the card issuer.
174+
*/
175+
regulated_status?: Card.RegulatedStatus | null;
176+
167177
/**
168178
* For external accounts that are cards, possible values are `new` and `errored`. If a payout fails, the status is set to `errored` and [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) are stopped until account details are updated.
169179
*/
@@ -176,6 +186,8 @@ declare module 'stripe' {
176186
}
177187

178188
namespace Card {
189+
type AllowRedisplay = 'always' | 'limited' | 'unspecified';
190+
179191
type AvailablePayoutMethod = 'instant' | 'standard';
180192

181193
interface Networks {
@@ -184,6 +196,8 @@ declare module 'stripe' {
184196
*/
185197
preferred: string | null;
186198
}
199+
200+
type RegulatedStatus = 'regulated' | 'unregulated';
187201
}
188202

189203
/**

types/Charges.d.ts

+12
Original file line numberDiff line numberDiff line change
@@ -897,10 +897,20 @@ declare module 'stripe' {
897897
*/
898898
network_token?: Card.NetworkToken | null;
899899

900+
/**
901+
* This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
902+
*/
903+
network_transaction_id?: string | null;
904+
900905
overcapture?: Card.Overcapture;
901906

902907
partial_authorization?: Card.PartialAuthorization;
903908

909+
/**
910+
* Status of a card based on the card issuer.
911+
*/
912+
regulated_status?: Card.RegulatedStatus | null;
913+
904914
/**
905915
* Populated if this transaction used 3D Secure authentication.
906916
*/
@@ -1039,6 +1049,8 @@ declare module 'stripe' {
10391049
| 'partially_authorized';
10401050
}
10411051

1052+
type RegulatedStatus = 'regulated' | 'unregulated';
1053+
10421054
interface ThreeDSecure {
10431055
/**
10441056
* For authenticated transactions: how the customer was authenticated by

0 commit comments

Comments
 (0)