Skip to content

Commit c0dd591

Browse files
Update generated code (#2338)
* Update generated code for v1756 * Update generated code for v1757 * Update generated code for v1758 * Update generated code for v1767 * Update generated code for v1770 * Update generated code for v1770 * Update generated code for v1772 * Update generated code for v1773 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com>
1 parent 0153c0a commit c0dd591

File tree

91 files changed

+2706
-1033
lines changed

Some content is hidden

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

91 files changed

+2706
-1033
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1719
1+
v1773

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 = '2025-04-30.basil';
3+
export const ApiVersion = '2025-05-28.basil';

src/resources/Invoices.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ export const Invoices = StripeResource.extend({
1616
method: 'POST',
1717
fullPath: '/v1/invoices/{invoice}/add_lines',
1818
}),
19+
attachPayment: stripeMethod({
20+
method: 'POST',
21+
fullPath: '/v1/invoices/{invoice}/attach_payment',
22+
}),
1923
createPreview: stripeMethod({
2024
method: 'POST',
2125
fullPath: '/v1/invoices/create_preview',

src/resources/Terminal/Readers.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ export const Readers = StripeResource.extend({
2525
method: 'POST',
2626
fullPath: '/v1/terminal/readers/{reader}/cancel_action',
2727
}),
28+
collectInputs: stripeMethod({
29+
method: 'POST',
30+
fullPath: '/v1/terminal/readers/{reader}/collect_inputs',
31+
}),
2832
processPaymentIntent: stripeMethod({
2933
method: 'POST',
3034
fullPath: '/v1/terminal/readers/{reader}/process_payment_intent',

src/resources/TestHelpers/Terminal/Readers.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,14 @@ export const Readers = StripeResource.extend({
88
fullPath:
99
'/v1/test_helpers/terminal/readers/{reader}/present_payment_method',
1010
}),
11+
succeedInputCollection: stripeMethod({
12+
method: 'POST',
13+
fullPath:
14+
'/v1/test_helpers/terminal/readers/{reader}/succeed_input_collection',
15+
}),
16+
timeoutInputCollection: stripeMethod({
17+
method: 'POST',
18+
fullPath:
19+
'/v1/test_helpers/terminal/readers/{reader}/timeout_input_collection',
20+
}),
1121
});

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: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ declare module 'stripe' {
5252

5353
balances: Components.Balances;
5454

55+
disputes_list: Components.DisputesList;
56+
5557
documents: Components.Documents;
5658

5759
financial_account: Components.FinancialAccount;
@@ -66,6 +68,8 @@ declare module 'stripe' {
6668

6769
payment_details: Components.PaymentDetails;
6870

71+
payment_disputes: Components.PaymentDisputes;
72+
6973
payments: Components.Payments;
7074

7175
payouts: Components.Payouts;
@@ -162,6 +166,39 @@ declare module 'stripe' {
162166
}
163167
}
164168

169+
interface DisputesList {
170+
/**
171+
* Whether the embedded component is enabled.
172+
*/
173+
enabled: boolean;
174+
175+
features: DisputesList.Features;
176+
}
177+
178+
namespace DisputesList {
179+
interface Features {
180+
/**
181+
* Whether to allow capturing and cancelling payment intents. This is `true` by default.
182+
*/
183+
capture_payments: boolean;
184+
185+
/**
186+
* Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
187+
*/
188+
destination_on_behalf_of_charge_management: boolean;
189+
190+
/**
191+
* Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
192+
*/
193+
dispute_management: boolean;
194+
195+
/**
196+
* Whether to allow sending refunds. This is `true` by default.
197+
*/
198+
refund_management: boolean;
199+
}
200+
}
201+
165202
interface Documents {
166203
/**
167204
* Whether the embedded component is enabled.
@@ -353,6 +390,34 @@ declare module 'stripe' {
353390
}
354391
}
355392

393+
interface PaymentDisputes {
394+
/**
395+
* Whether the embedded component is enabled.
396+
*/
397+
enabled: boolean;
398+
399+
features: PaymentDisputes.Features;
400+
}
401+
402+
namespace PaymentDisputes {
403+
interface Features {
404+
/**
405+
* Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
406+
*/
407+
destination_on_behalf_of_charge_management: boolean;
408+
409+
/**
410+
* Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
411+
*/
412+
dispute_management: boolean;
413+
414+
/**
415+
* Whether to allow sending refunds. This is `true` by default.
416+
*/
417+
refund_management: boolean;
418+
}
419+
}
420+
356421
interface Payments {
357422
/**
358423
* Whether the embedded component is enabled.

types/AccountSessionsResource.d.ts

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ declare module 'stripe' {
3636
*/
3737
balances?: Components.Balances;
3838

39+
/**
40+
* Configuration for the disputes list embedded component.
41+
*/
42+
disputes_list?: Components.DisputesList;
43+
3944
/**
4045
* Configuration for the documents embedded component.
4146
*/
@@ -71,6 +76,11 @@ declare module 'stripe' {
7176
*/
7277
payment_details?: Components.PaymentDetails;
7378

79+
/**
80+
* Configuration for the payment disputes embedded component.
81+
*/
82+
payment_disputes?: Components.PaymentDisputes;
83+
7484
/**
7585
* Configuration for the payments embedded component.
7686
*/
@@ -191,6 +201,42 @@ declare module 'stripe' {
191201
}
192202
}
193203

204+
interface DisputesList {
205+
/**
206+
* Whether the embedded component is enabled.
207+
*/
208+
enabled: boolean;
209+
210+
/**
211+
* The list of features enabled in the embedded component.
212+
*/
213+
features?: DisputesList.Features;
214+
}
215+
216+
namespace DisputesList {
217+
interface Features {
218+
/**
219+
* Whether to allow capturing and cancelling payment intents. This is `true` by default.
220+
*/
221+
capture_payments?: boolean;
222+
223+
/**
224+
* Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
225+
*/
226+
destination_on_behalf_of_charge_management?: boolean;
227+
228+
/**
229+
* Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
230+
*/
231+
dispute_management?: boolean;
232+
233+
/**
234+
* Whether to allow sending refunds. This is `true` by default.
235+
*/
236+
refund_management?: boolean;
237+
}
238+
}
239+
194240
interface Documents {
195241
/**
196242
* Whether the embedded component is enabled.
@@ -403,6 +449,37 @@ declare module 'stripe' {
403449
}
404450
}
405451

452+
interface PaymentDisputes {
453+
/**
454+
* Whether the embedded component is enabled.
455+
*/
456+
enabled: boolean;
457+
458+
/**
459+
* The list of features enabled in the embedded component.
460+
*/
461+
features?: PaymentDisputes.Features;
462+
}
463+
464+
namespace PaymentDisputes {
465+
interface Features {
466+
/**
467+
* Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
468+
*/
469+
destination_on_behalf_of_charge_management?: boolean;
470+
471+
/**
472+
* Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
473+
*/
474+
dispute_management?: boolean;
475+
476+
/**
477+
* Whether to allow sending refunds. This is `true` by default.
478+
*/
479+
refund_management?: boolean;
480+
}
481+
}
482+
406483
interface Payments {
407484
/**
408485
* Whether the embedded component is enabled.

types/Accounts.d.ts

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ declare module 'stripe' {
77
* properties on the account like its current requirements or if the account is
88
* enabled to make live charges or receive payouts.
99
*
10-
* For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
10+
* For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
1111
* is `application`, which includes Custom accounts, the properties below are always
1212
* returned.
1313
*
14-
* For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
14+
* For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
1515
* is `stripe`, which includes Standard and Express accounts, some properties are only returned
16-
* until you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions)
17-
* to start Connect Onboarding. Learn about the [differences between accounts](https://stripe.com/connect/accounts).
16+
* until you create an [Account Link](https://docs.stripe.com/api/account_links) or [Account Session](https://docs.stripe.com/api/account_sessions)
17+
* to start Connect Onboarding. Learn about the [differences between accounts](https://docs.stripe.com/connect/accounts).
1818
*/
1919
interface Account {
2020
/**
@@ -69,7 +69,7 @@ declare module 'stripe' {
6969
deleted?: void;
7070

7171
/**
72-
* Whether account details have been submitted. Accounts with Stripe Dashboard access, which includes Standard accounts, cannot receive payouts before this is true. Accounts where this is false should be directed to [an onboarding flow](https://stripe.com/connect/onboarding) to finish submitting account details.
72+
* Whether account details have been submitted. Accounts with Stripe Dashboard access, which includes Standard accounts, cannot receive payouts before this is true. Accounts where this is false should be directed to [an onboarding flow](https://docs.stripe.com/connect/onboarding) to finish submitting account details.
7373
*/
7474
details_submitted: boolean;
7575

@@ -93,9 +93,9 @@ declare module 'stripe' {
9393
/**
9494
* This is an object representing a person associated with a Stripe account.
9595
*
96-
* A platform can only access a subset of data in a person for an account where [account.controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`, which includes Standard and Express accounts, after creating an Account Link or Account Session to start Connect onboarding.
96+
* A platform can only access a subset of data in a person for an account where [account.controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`, which includes Standard and Express accounts, after creating an Account Link or Account Session to start Connect onboarding.
9797
*
98-
* See the [Standard onboarding](https://stripe.com/connect/standard-accounts) or [Express onboarding](https://stripe.com/connect/express-accounts) documentation for information about prefilling information and account onboarding steps. Learn more about [handling identity verification with the API](https://stripe.com/connect/handling-api-verification#person-information).
98+
* See the [Standard onboarding](https://docs.stripe.com/connect/standard-accounts) or [Express onboarding](https://docs.stripe.com/connect/express-accounts) documentation for information about prefilling information and account onboarding steps. Learn more about [handling identity verification with the API](https://docs.stripe.com/connect/handling-api-verification#person-information).
9999
*/
100100
individual?: Stripe.Person;
101101

@@ -137,7 +137,7 @@ declare module 'stripe' {
137137
estimated_worker_count?: number | null;
138138

139139
/**
140-
* [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.
140+
* [The merchant category code for the account](https://docs.stripe.com/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
141141
*/
142142
mcc: string | null;
143143

@@ -189,7 +189,7 @@ declare module 'stripe' {
189189
namespace BusinessProfile {
190190
interface AnnualRevenue {
191191
/**
192-
* A non-negative integer representing the amount in the [smallest currency unit](https://stripe.com/currencies#zero-decimal).
192+
* A non-negative integer representing the amount in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
193193
*/
194194
amount: number | null;
195195

@@ -213,7 +213,7 @@ declare module 'stripe' {
213213

214214
interface MonthlyEstimatedRevenue {
215215
/**
216-
* A non-negative integer representing how much to charge in the [smallest currency unit](https://stripe.com/currencies#zero-decimal).
216+
* A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
217217
*/
218218
amount: number;
219219

@@ -436,6 +436,11 @@ declare module 'stripe' {
436436
*/
437437
paynow_payments?: Capabilities.PaynowPayments;
438438

439+
/**
440+
* The status of the pix payments capability of the account, or whether the account can directly process pix charges.
441+
*/
442+
pix_payments?: Capabilities.PixPayments;
443+
439444
/**
440445
* The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges.
441446
*/
@@ -600,6 +605,8 @@ declare module 'stripe' {
600605

601606
type PaynowPayments = 'active' | 'inactive' | 'pending';
602607

608+
type PixPayments = 'active' | 'inactive' | 'pending';
609+
603610
type PromptpayPayments = 'active' | 'inactive' | 'pending';
604611

605612
type RevolutPayPayments = 'active' | 'inactive' | 'pending';
@@ -672,17 +679,17 @@ declare module 'stripe' {
672679
export_purpose_code?: string;
673680

674681
/**
675-
* The company's legal name. Also available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
682+
* The company's legal name. Also available for accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
676683
*/
677684
name?: string | null;
678685

679686
/**
680-
* The Kana variation of the company's legal name (Japan only). Also available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
687+
* The Kana variation of the company's legal name (Japan only). Also available for accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
681688
*/
682689
name_kana?: string | null;
683690

684691
/**
685-
* The Kanji variation of the company's legal name (Japan only). Also available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
692+
* The Kanji variation of the company's legal name (Japan only). Also available for accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
686693
*/
687694
name_kanji?: string | null;
688695

@@ -709,7 +716,7 @@ declare module 'stripe' {
709716
registration_date?: Company.RegistrationDate;
710717

711718
/**
712-
* The category identifying the legal structure of the company or legal entity. Also available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details.
719+
* The category identifying the legal structure of the company or legal entity. Also available for accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details.
713720
*/
714721
structure?: Company.Structure;
715722

@@ -1539,7 +1546,7 @@ declare module 'stripe' {
15391546

15401547
interface Payouts {
15411548
/**
1542-
* A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](https://stripe.com/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`.
1549+
* A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](https://docs.stripe.com/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`.
15431550
*/
15441551
debit_negative_balances: boolean;
15451552

0 commit comments

Comments
 (0)