Skip to content

Commit 8a1b530

Browse files
Update generated code (#2348)
* Update generated code for v1796 and 2025-05-28.basil * Update generated code for v1800 and 2025-05-28.basil * Update generated code for v1806 and 2025-06-30.basil * Update generated code for v1819 and 2025-06-30.basil * Update generated code for v1819 and 2025-06-30.basil * Update generated code for v1819 and 2025-06-30.basil * Update generated code for v1819 and 2025-06-30.basil --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: prathmesh-stripe <[email protected]>
1 parent ee92713 commit 8a1b530

Some content is hidden

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

55 files changed

+1848
-241
lines changed

API_VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-06-30.basil

OPENAPI_VERSION

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

src/apiVersion.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
// File generated from our OpenAPI spec
22

3-
export const ApiVersion = '2025-05-28.basil';
3+
export const ApiVersion = '2025-06-30.basil';
4+
export const ApiMajorVersion = 'basil';

src/resources/Subscriptions.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ export const Subscriptions = StripeResource.extend({
2525
method: 'DELETE',
2626
fullPath: '/v1/subscriptions/{subscription_exposed_id}/discount',
2727
}),
28+
migrate: stripeMethod({
29+
method: 'POST',
30+
fullPath: '/v1/subscriptions/{subscription}/migrate',
31+
}),
2832
resume: stripeMethod({
2933
method: 'POST',
3034
fullPath: '/v1/subscriptions/{subscription}/resume',

src/resources/Terminal/Readers.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ export const Readers = StripeResource.extend({
2929
method: 'POST',
3030
fullPath: '/v1/terminal/readers/{reader}/collect_inputs',
3131
}),
32+
collectPaymentMethod: stripeMethod({
33+
method: 'POST',
34+
fullPath: '/v1/terminal/readers/{reader}/collect_payment_method',
35+
}),
36+
confirmPaymentIntent: stripeMethod({
37+
method: 'POST',
38+
fullPath: '/v1/terminal/readers/{reader}/confirm_payment_intent',
39+
}),
3240
processPaymentIntent: stripeMethod({
3341
method: 'POST',
3442
fullPath: '/v1/terminal/readers/{reader}/process_payment_intent',

test/resources/generated_examples_test.spec.js

Lines changed: 48 additions & 48 deletions
Large diffs are not rendered by default.

types/AccountSessions.d.ts

Lines changed: 31 additions & 31 deletions
Large diffs are not rendered by default.

types/AccountSessionsResource.d.ts

Lines changed: 48 additions & 48 deletions
Large diffs are not rendered by default.

types/Accounts.d.ts

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,11 @@ declare module 'stripe' {
311311
*/
312312
cashapp_payments?: Capabilities.CashappPayments;
313313

314+
/**
315+
* The status of the Crypto capability of the account, or whether the account can directly process Crypto payments.
316+
*/
317+
crypto_payments?: Capabilities.CryptoPayments;
318+
314319
/**
315320
* The status of the EPS payments capability of the account, or whether the account can directly process EPS charges.
316321
*/
@@ -555,6 +560,8 @@ declare module 'stripe' {
555560

556561
type CashappPayments = 'active' | 'inactive' | 'pending';
557562

563+
type CryptoPayments = 'active' | 'inactive' | 'pending';
564+
558565
type EpsPayments = 'active' | 'inactive' | 'pending';
559566

560567
type FpxPayments = 'active' | 'inactive' | 'pending';
@@ -1510,7 +1517,7 @@ declare module 'stripe' {
15101517
/**
15111518
* Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
15121519
*/
1513-
hosted_payment_method_save?: Invoices.HostedPaymentMethodSave | null;
1520+
hosted_payment_method_save: Invoices.HostedPaymentMethodSave | null;
15141521
}
15151522

15161523
namespace Invoices {
@@ -1575,10 +1582,31 @@ declare module 'stripe' {
15751582
*/
15761583
monthly_anchor?: number;
15771584

1585+
/**
1586+
* The days of the month funds will be paid out. Only shown if `interval` is monthly. Payouts scheduled between the 29th and 31st of the month are sent on the last day of shorter months.
1587+
*/
1588+
monthly_payout_days?: Array<number>;
1589+
15781590
/**
15791591
* The day of the week funds will be paid out, of the style 'monday', 'tuesday', etc. Only shown if `interval` is weekly.
15801592
*/
15811593
weekly_anchor?: string;
1594+
1595+
/**
1596+
* The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly.
1597+
*/
1598+
weekly_payout_days?: Array<Schedule.WeeklyPayoutDay>;
1599+
}
1600+
1601+
namespace Schedule {
1602+
type WeeklyPayoutDay =
1603+
| 'friday'
1604+
| 'monday'
1605+
| 'saturday'
1606+
| 'sunday'
1607+
| 'thursday'
1608+
| 'tuesday'
1609+
| 'wednesday';
15821610
}
15831611
}
15841612

types/AccountsResource.d.ts

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,11 @@ declare module 'stripe' {
293293
*/
294294
cashapp_payments?: Capabilities.CashappPayments;
295295

296+
/**
297+
* The crypto_payments capability.
298+
*/
299+
crypto_payments?: Capabilities.CryptoPayments;
300+
296301
/**
297302
* The eps_payments capability.
298303
*/
@@ -617,6 +622,13 @@ declare module 'stripe' {
617622
requested?: boolean;
618623
}
619624

625+
interface CryptoPayments {
626+
/**
627+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
628+
*/
629+
requested?: boolean;
630+
}
631+
620632
interface EpsPayments {
621633
/**
622634
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -990,6 +1002,9 @@ declare module 'stripe' {
9901002
*/
9911003
phone?: string;
9921004

1005+
/**
1006+
* When the business was incorporated or registered.
1007+
*/
9931008
registration_date?: Stripe.Emptyable<Company.RegistrationDate>;
9941009

9951010
/**
@@ -1216,6 +1231,11 @@ declare module 'stripe' {
12161231
*/
12171232
company_tax_id_verification?: Documents.CompanyTaxIdVerification;
12181233

1234+
/**
1235+
* One or more documents that demonstrate proof of address.
1236+
*/
1237+
proof_of_address?: Documents.ProofOfAddress;
1238+
12191239
/**
12201240
* One or more documents showing the company's proof of registration with the national business registry.
12211241
*/
@@ -1270,6 +1290,13 @@ declare module 'stripe' {
12701290
files?: Array<string>;
12711291
}
12721292

1293+
interface ProofOfAddress {
1294+
/**
1295+
* One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1296+
*/
1297+
files?: Array<string>;
1298+
}
1299+
12731300
interface ProofOfRegistration {
12741301
/**
12751302
* One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
@@ -1728,10 +1755,20 @@ declare module 'stripe' {
17281755
*/
17291756
monthly_anchor?: number;
17301757

1758+
/**
1759+
* The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly` and `monthly_anchor` is not set.
1760+
*/
1761+
monthly_payout_days?: Array<number>;
1762+
17311763
/**
17321764
* The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
17331765
*/
17341766
weekly_anchor?: Schedule.WeeklyAnchor;
1767+
1768+
/**
1769+
* The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly` and `weekly_anchor` is not set.)
1770+
*/
1771+
weekly_payout_days?: Array<Schedule.WeeklyPayoutDay>;
17351772
}
17361773

17371774
namespace Schedule {
@@ -1745,6 +1782,15 @@ declare module 'stripe' {
17451782
| 'thursday'
17461783
| 'tuesday'
17471784
| 'wednesday';
1785+
1786+
type WeeklyPayoutDay =
1787+
| 'friday'
1788+
| 'monday'
1789+
| 'saturday'
1790+
| 'sunday'
1791+
| 'thursday'
1792+
| 'tuesday'
1793+
| 'wednesday';
17481794
}
17491795
}
17501796

@@ -2126,6 +2172,11 @@ declare module 'stripe' {
21262172
*/
21272173
cashapp_payments?: Capabilities.CashappPayments;
21282174

2175+
/**
2176+
* The crypto_payments capability.
2177+
*/
2178+
crypto_payments?: Capabilities.CryptoPayments;
2179+
21292180
/**
21302181
* The eps_payments capability.
21312182
*/
@@ -2450,6 +2501,13 @@ declare module 'stripe' {
24502501
requested?: boolean;
24512502
}
24522503

2504+
interface CryptoPayments {
2505+
/**
2506+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2507+
*/
2508+
requested?: boolean;
2509+
}
2510+
24532511
interface EpsPayments {
24542512
/**
24552513
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -3033,6 +3091,11 @@ declare module 'stripe' {
30333091
*/
30343092
company_tax_id_verification?: Documents.CompanyTaxIdVerification;
30353093

3094+
/**
3095+
* One or more documents that demonstrate proof of address.
3096+
*/
3097+
proof_of_address?: Documents.ProofOfAddress;
3098+
30363099
/**
30373100
* One or more documents showing the company's proof of registration with the national business registry.
30383101
*/
@@ -3087,6 +3150,13 @@ declare module 'stripe' {
30873150
files?: Array<string>;
30883151
}
30893152

3153+
interface ProofOfAddress {
3154+
/**
3155+
* One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3156+
*/
3157+
files?: Array<string>;
3158+
}
3159+
30903160
interface ProofOfRegistration {
30913161
/**
30923162
* One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
@@ -3513,10 +3583,20 @@ declare module 'stripe' {
35133583
*/
35143584
monthly_anchor?: number;
35153585

3586+
/**
3587+
* The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly` and `monthly_anchor` is not set.
3588+
*/
3589+
monthly_payout_days?: Array<number>;
3590+
35163591
/**
35173592
* The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
35183593
*/
35193594
weekly_anchor?: Schedule.WeeklyAnchor;
3595+
3596+
/**
3597+
* The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly` and `weekly_anchor` is not set.)
3598+
*/
3599+
weekly_payout_days?: Array<Schedule.WeeklyPayoutDay>;
35203600
}
35213601

35223602
namespace Schedule {
@@ -3530,6 +3610,15 @@ declare module 'stripe' {
35303610
| 'thursday'
35313611
| 'tuesday'
35323612
| 'wednesday';
3613+
3614+
type WeeklyPayoutDay =
3615+
| 'friday'
3616+
| 'monday'
3617+
| 'saturday'
3618+
| 'sunday'
3619+
| 'thursday'
3620+
| 'tuesday'
3621+
| 'wednesday';
35333622
}
35343623
}
35353624

0 commit comments

Comments
 (0)