Skip to content

Commit 8698096

Browse files
Update generated code (#2204)
* Update generated code for v1268 * Update generated code for v1279 * Update generated code for v1314 * Update generated code for v1317 * Update generated code for v1318 * Update generated code for v1318 * Update generated code for v1319 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Prathmesh Ranaut <[email protected]>
1 parent 768206d commit 8698096

File tree

75 files changed

+3198
-98
lines changed

Some content is hidden

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

75 files changed

+3198
-98
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1268
1+
v1319

src/apiVersion.ts

Lines changed: 1 addition & 1 deletion
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-09-30.acacia';
3+
export const ApiVersion = '2024-10-28.acacia';

src/resources/TestHelpers/Issuing/Cards.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@ export const Cards = StripeResource.extend({
1919
method: 'POST',
2020
fullPath: '/v1/test_helpers/issuing/cards/{card}/shipping/ship',
2121
}),
22+
submitCard: stripeMethod({
23+
method: 'POST',
24+
fullPath: '/v1/test_helpers/issuing/cards/{card}/shipping/submit',
25+
}),
2226
});

src/resources/V2/Core.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
// File generated from our OpenAPI spec
22

33
import {StripeResource} from '../../StripeResource.js';
4+
import {EventDestinations} from './Core/EventDestinations.js';
45
import {Events} from './Core/Events.js';
56
export const Core = StripeResource.extend({
67
constructor: function(...args: any) {
78
StripeResource.apply(this, args);
9+
this.eventDestinations = new EventDestinations(...args);
810
this.events = new Events(...args);
911
},
1012
});
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// File generated from our OpenAPI spec
2+
3+
import {StripeResource} from '../../../StripeResource.js';
4+
const stripeMethod = StripeResource.method;
5+
export const EventDestinations = StripeResource.extend({
6+
create: stripeMethod({
7+
method: 'POST',
8+
fullPath: '/v2/core/event_destinations',
9+
}),
10+
retrieve: stripeMethod({
11+
method: 'GET',
12+
fullPath: '/v2/core/event_destinations/{id}',
13+
}),
14+
update: stripeMethod({
15+
method: 'POST',
16+
fullPath: '/v2/core/event_destinations/{id}',
17+
}),
18+
list: stripeMethod({
19+
method: 'GET',
20+
fullPath: '/v2/core/event_destinations',
21+
methodType: 'list',
22+
}),
23+
del: stripeMethod({
24+
method: 'DELETE',
25+
fullPath: '/v2/core/event_destinations/{id}',
26+
}),
27+
disable: stripeMethod({
28+
method: 'POST',
29+
fullPath: '/v2/core/event_destinations/{id}/disable',
30+
}),
31+
enable: stripeMethod({
32+
method: 'POST',
33+
fullPath: '/v2/core/event_destinations/{id}/enable',
34+
}),
35+
ping: stripeMethod({
36+
method: 'POST',
37+
fullPath: '/v2/core/event_destinations/{id}/ping',
38+
}),
39+
});

test/resources/generated_examples_test.spec.js

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

types/AccountSessions.d.ts

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,12 @@ declare module 'stripe' {
8282
namespace AccountManagement {
8383
interface Features {
8484
/**
85-
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
85+
* 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. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
86+
*/
87+
disable_stripe_user_authentication?: boolean;
88+
89+
/**
90+
* Whether to allow platforms to control bank account collection for their connected accounts. 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. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
8691
*/
8792
external_account_collection: boolean;
8893
}
@@ -100,7 +105,12 @@ declare module 'stripe' {
100105
namespace AccountOnboarding {
101106
interface Features {
102107
/**
103-
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
108+
* 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. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
109+
*/
110+
disable_stripe_user_authentication?: boolean;
111+
112+
/**
113+
* Whether to allow platforms to control bank account collection for their connected accounts. 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. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
104114
*/
105115
external_account_collection: boolean;
106116
}
@@ -117,13 +127,18 @@ declare module 'stripe' {
117127

118128
namespace Balances {
119129
interface Features {
130+
/**
131+
* 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. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
132+
*/
133+
disable_stripe_user_authentication?: boolean;
134+
120135
/**
121136
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
122137
*/
123138
edit_payout_schedule: boolean;
124139

125140
/**
126-
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
141+
* Whether to allow platforms to control bank account collection for their connected accounts. 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. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
127142
*/
128143
external_account_collection: boolean;
129144

@@ -164,7 +179,12 @@ declare module 'stripe' {
164179
namespace NotificationBanner {
165180
interface Features {
166181
/**
167-
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
182+
* 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. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
183+
*/
184+
disable_stripe_user_authentication?: boolean;
185+
186+
/**
187+
* Whether to allow platforms to control bank account collection for their connected accounts. 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. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
168188
*/
169189
external_account_collection: boolean;
170190
}
@@ -247,13 +267,18 @@ declare module 'stripe' {
247267

248268
namespace Payouts {
249269
interface Features {
270+
/**
271+
* 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. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
272+
*/
273+
disable_stripe_user_authentication?: boolean;
274+
250275
/**
251276
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
252277
*/
253278
edit_payout_schedule: boolean;
254279

255280
/**
256-
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
281+
* Whether to allow platforms to control bank account collection for their connected accounts. 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. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
257282
*/
258283
external_account_collection: boolean;
259284

types/AccountSessionsResource.d.ts

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@ declare module 'stripe' {
9393
namespace AccountManagement {
9494
interface Features {
9595
/**
96-
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
96+
* 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. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
97+
*/
98+
disable_stripe_user_authentication?: boolean;
99+
100+
/**
101+
* Whether to allow platforms to control bank account collection for their connected accounts. 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. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
97102
*/
98103
external_account_collection?: boolean;
99104
}
@@ -114,7 +119,12 @@ declare module 'stripe' {
114119
namespace AccountOnboarding {
115120
interface Features {
116121
/**
117-
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
122+
* 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. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
123+
*/
124+
disable_stripe_user_authentication?: boolean;
125+
126+
/**
127+
* Whether to allow platforms to control bank account collection for their connected accounts. 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. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
118128
*/
119129
external_account_collection?: boolean;
120130
}
@@ -134,13 +144,18 @@ declare module 'stripe' {
134144

135145
namespace Balances {
136146
interface Features {
147+
/**
148+
* 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. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
149+
*/
150+
disable_stripe_user_authentication?: boolean;
151+
137152
/**
138153
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
139154
*/
140155
edit_payout_schedule?: boolean;
141156

142157
/**
143-
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
158+
* Whether to allow platforms to control bank account collection for their connected accounts. 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. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
144159
*/
145160
external_account_collection?: boolean;
146161

@@ -187,7 +202,12 @@ declare module 'stripe' {
187202
namespace NotificationBanner {
188203
interface Features {
189204
/**
190-
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
205+
* 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. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
206+
*/
207+
disable_stripe_user_authentication?: boolean;
208+
209+
/**
210+
* Whether to allow platforms to control bank account collection for their connected accounts. 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. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
191211
*/
192212
external_account_collection?: boolean;
193213
}
@@ -279,13 +299,18 @@ declare module 'stripe' {
279299

280300
namespace Payouts {
281301
interface Features {
302+
/**
303+
* 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. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
304+
*/
305+
disable_stripe_user_authentication?: boolean;
306+
282307
/**
283308
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
284309
*/
285310
edit_payout_schedule?: boolean;
286311

287312
/**
288-
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
313+
* Whether to allow platforms to control bank account collection for their connected accounts. 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. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
289314
*/
290315
external_account_collection?: boolean;
291316

0 commit comments

Comments
 (0)