Skip to content

Commit b3b781e

Browse files
Update generated code (#2250)
* Update generated code for v1441 * Update generated code for v1455 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: helenye-stripe <[email protected]>
1 parent 055bfff commit b3b781e

Some content is hidden

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

47 files changed

+988
-25
lines changed

OPENAPI_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1412
1+
v1455

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-12-18.acacia';
3+
export const ApiVersion = '2025-01-27.acacia';

src/resources/Treasury/FinancialAccounts.ts

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export const FinancialAccounts = StripeResource.extend({
2020
fullPath: '/v1/treasury/financial_accounts',
2121
methodType: 'list',
2222
}),
23+
close: stripeMethod({
24+
method: 'POST',
25+
fullPath: '/v1/treasury/financial_accounts/{financial_account}/close',
26+
}),
2327
retrieveFeatures: stripeMethod({
2428
method: 'GET',
2529
fullPath: '/v1/treasury/financial_accounts/{financial_account}/features',

test/resources/generated_examples_test.spec.js

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

types/AccountSessions.d.ts

+130
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ declare module 'stripe' {
5454

5555
documents: Components.Documents;
5656

57+
financial_account: Components.FinancialAccount;
58+
59+
financial_account_transactions: Components.FinancialAccountTransactions;
60+
61+
issuing_card: Components.IssuingCard;
62+
63+
issuing_cards_list: Components.IssuingCardsList;
64+
5765
notification_banner: Components.NotificationBanner;
5866

5967
payment_details: Components.PaymentDetails;
@@ -167,6 +175,128 @@ declare module 'stripe' {
167175
interface Features {}
168176
}
169177

178+
interface FinancialAccount {
179+
/**
180+
* Whether the embedded component is enabled.
181+
*/
182+
enabled: boolean;
183+
184+
features: FinancialAccount.Features;
185+
}
186+
187+
namespace FinancialAccount {
188+
interface Features {
189+
/**
190+
* 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.
191+
*/
192+
disable_stripe_user_authentication: boolean;
193+
194+
/**
195+
* Whether to allow external accounts to be linked for money transfer.
196+
*/
197+
external_account_collection: boolean;
198+
199+
/**
200+
* Whether to allow sending money.
201+
*/
202+
send_money: boolean;
203+
204+
/**
205+
* Whether to allow transferring balance.
206+
*/
207+
transfer_balance: boolean;
208+
}
209+
}
210+
211+
interface FinancialAccountTransactions {
212+
/**
213+
* Whether the embedded component is enabled.
214+
*/
215+
enabled: boolean;
216+
217+
features: FinancialAccountTransactions.Features;
218+
}
219+
220+
namespace FinancialAccountTransactions {
221+
interface Features {
222+
/**
223+
* Whether to allow card spend dispute management features.
224+
*/
225+
card_spend_dispute_management: boolean;
226+
}
227+
}
228+
229+
interface IssuingCard {
230+
/**
231+
* Whether the embedded component is enabled.
232+
*/
233+
enabled: boolean;
234+
235+
features: IssuingCard.Features;
236+
}
237+
238+
namespace IssuingCard {
239+
interface Features {
240+
/**
241+
* Whether to allow card management features.
242+
*/
243+
card_management: boolean;
244+
245+
/**
246+
* Whether to allow card spend dispute management features.
247+
*/
248+
card_spend_dispute_management: boolean;
249+
250+
/**
251+
* Whether to allow cardholder management features.
252+
*/
253+
cardholder_management: boolean;
254+
255+
/**
256+
* Whether to allow spend control management features.
257+
*/
258+
spend_control_management: boolean;
259+
}
260+
}
261+
262+
interface IssuingCardsList {
263+
/**
264+
* Whether the embedded component is enabled.
265+
*/
266+
enabled: boolean;
267+
268+
features: IssuingCardsList.Features;
269+
}
270+
271+
namespace IssuingCardsList {
272+
interface Features {
273+
/**
274+
* Whether to allow card management features.
275+
*/
276+
card_management: boolean;
277+
278+
/**
279+
* Whether to allow card spend dispute management features.
280+
*/
281+
card_spend_dispute_management: boolean;
282+
283+
/**
284+
* Whether to allow cardholder management features.
285+
*/
286+
cardholder_management: boolean;
287+
288+
/**
289+
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts.
290+
*/
291+
disable_stripe_user_authentication: boolean;
292+
293+
/**
294+
* Whether to allow spend control management features.
295+
*/
296+
spend_control_management: boolean;
297+
}
298+
}
299+
170300
interface NotificationBanner {
171301
/**
172302
* Whether the embedded component is enabled.

types/AccountSessionsResource.d.ts

+154
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,26 @@ declare module 'stripe' {
4141
*/
4242
documents?: Components.Documents;
4343

44+
/**
45+
* Configuration for the financial account embedded component.
46+
*/
47+
financial_account?: Components.FinancialAccount;
48+
49+
/**
50+
* Configuration for the financial account transactions embedded component.
51+
*/
52+
financial_account_transactions?: Components.FinancialAccountTransactions;
53+
54+
/**
55+
* Configuration for the issuing card embedded component.
56+
*/
57+
issuing_card?: Components.IssuingCard;
58+
59+
/**
60+
* Configuration for the issuing cards list embedded component.
61+
*/
62+
issuing_cards_list?: Components.IssuingCardsList;
63+
4464
/**
4565
* Configuration for the notification banner embedded component.
4666
*/
@@ -187,6 +207,140 @@ declare module 'stripe' {
187207
interface Features {}
188208
}
189209

210+
interface FinancialAccount {
211+
/**
212+
* Whether the embedded component is enabled.
213+
*/
214+
enabled: boolean;
215+
216+
/**
217+
* The list of features enabled in the embedded component.
218+
*/
219+
features?: FinancialAccount.Features;
220+
}
221+
222+
namespace FinancialAccount {
223+
interface Features {
224+
/**
225+
* 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.
226+
*/
227+
disable_stripe_user_authentication?: boolean;
228+
229+
/**
230+
* Whether to allow external accounts to be linked for money transfer.
231+
*/
232+
external_account_collection?: boolean;
233+
234+
/**
235+
* Whether to allow sending money.
236+
*/
237+
send_money?: boolean;
238+
239+
/**
240+
* Whether to allow transferring balance.
241+
*/
242+
transfer_balance?: boolean;
243+
}
244+
}
245+
246+
interface FinancialAccountTransactions {
247+
/**
248+
* Whether the embedded component is enabled.
249+
*/
250+
enabled: boolean;
251+
252+
/**
253+
* The list of features enabled in the embedded component.
254+
*/
255+
features?: FinancialAccountTransactions.Features;
256+
}
257+
258+
namespace FinancialAccountTransactions {
259+
interface Features {
260+
/**
261+
* Whether to allow card spend dispute management features.
262+
*/
263+
card_spend_dispute_management?: boolean;
264+
}
265+
}
266+
267+
interface IssuingCard {
268+
/**
269+
* Whether the embedded component is enabled.
270+
*/
271+
enabled: boolean;
272+
273+
/**
274+
* The list of features enabled in the embedded component.
275+
*/
276+
features?: IssuingCard.Features;
277+
}
278+
279+
namespace IssuingCard {
280+
interface Features {
281+
/**
282+
* Whether to allow card management features.
283+
*/
284+
card_management?: boolean;
285+
286+
/**
287+
* Whether to allow card spend dispute management features.
288+
*/
289+
card_spend_dispute_management?: boolean;
290+
291+
/**
292+
* Whether to allow cardholder management features.
293+
*/
294+
cardholder_management?: boolean;
295+
296+
/**
297+
* Whether to allow spend control management features.
298+
*/
299+
spend_control_management?: boolean;
300+
}
301+
}
302+
303+
interface IssuingCardsList {
304+
/**
305+
* Whether the embedded component is enabled.
306+
*/
307+
enabled: boolean;
308+
309+
/**
310+
* The list of features enabled in the embedded component.
311+
*/
312+
features?: IssuingCardsList.Features;
313+
}
314+
315+
namespace IssuingCardsList {
316+
interface Features {
317+
/**
318+
* Whether to allow card management features.
319+
*/
320+
card_management?: boolean;
321+
322+
/**
323+
* Whether to allow card spend dispute management features.
324+
*/
325+
card_spend_dispute_management?: boolean;
326+
327+
/**
328+
* Whether to allow cardholder management features.
329+
*/
330+
cardholder_management?: boolean;
331+
332+
/**
333+
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts.
334+
*/
335+
disable_stripe_user_authentication?: boolean;
336+
337+
/**
338+
* Whether to allow spend control management features.
339+
*/
340+
spend_control_management?: boolean;
341+
}
342+
}
343+
190344
interface NotificationBanner {
191345
/**
192346
* Whether the embedded component is enabled.

0 commit comments

Comments
 (0)