stripe 18.3.0-beta.2 → 18.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -7
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/Error.js +9 -9
- package/cjs/RequestSender.js +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +7 -7
- package/esm/RequestSender.js +1 -1
- package/esm/apiVersion.js +1 -1
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountSessions.d.ts +31 -31
- package/types/AccountSessionsResource.d.ts +62 -62
- package/types/Accounts.d.ts +29 -1
- package/types/AccountsResource.d.ts +89 -0
- package/types/BillingPortal/Sessions.d.ts +1 -1
- package/types/BillingPortal/SessionsResource.d.ts +1 -1
- package/types/Charges.d.ts +52 -16
- package/types/Checkout/SessionsResource.d.ts +61 -7
- package/types/ConfirmationTokens.d.ts +22 -11
- package/types/CreditNotesResource.d.ts +9 -9
- package/types/CustomerSessions.d.ts +1 -1
- package/types/CustomerSessionsResource.d.ts +1 -1
- package/types/CustomersResource.d.ts +1 -0
- package/types/Disputes.d.ts +13 -2
- package/types/Errors.d.ts +6 -6
- package/types/Events.d.ts +1 -1
- package/types/Identity/VerificationSessions.d.ts +34 -0
- package/types/Identity/VerificationSessionsResource.d.ts +17 -0
- package/types/InvoiceItems.d.ts +1 -4
- package/types/Invoices.d.ts +1 -0
- package/types/InvoicesResource.d.ts +29 -7
- package/types/Mandates.d.ts +4 -0
- package/types/Orders.d.ts +5 -1
- package/types/OrdersResource.d.ts +174 -2
- package/types/PaymentAttemptRecords.d.ts +48 -19
- package/types/PaymentIntents.d.ts +38 -7
- package/types/PaymentIntentsResource.d.ts +384 -15
- package/types/PaymentMethods.d.ts +16 -9
- package/types/PaymentMethodsResource.d.ts +10 -0
- package/types/PaymentRecords.d.ts +48 -19
- package/types/QuotePreviewInvoices.d.ts +1 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +17 -3
- package/types/Quotes.d.ts +12 -3
- package/types/QuotesResource.d.ts +7 -1
- package/types/SetupAttempts.d.ts +3 -1
- package/types/SetupIntents.d.ts +15 -1
- package/types/SetupIntentsResource.d.ts +482 -2
- package/types/SubscriptionItems.d.ts +0 -9
- package/types/SubscriptionSchedules.d.ts +17 -3
- package/types/SubscriptionSchedulesResource.d.ts +7 -1
- package/types/Subscriptions.d.ts +14 -11
- package/types/SubscriptionsResource.d.ts +20 -6
- package/types/Tax/Registrations.d.ts +9 -0
- package/types/Tax/RegistrationsResource.d.ts +12 -0
- package/types/Terminal/Configurations.d.ts +1 -0
- package/types/Terminal/LocationsResource.d.ts +1 -1
- package/types/Terminal/Readers.d.ts +6 -6
- package/types/Terminal/ReadersResource.d.ts +4 -4
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +15 -2
- package/types/TokensResource.d.ts +3 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +9 -0
- package/types/V2/Core/Accounts/PersonsResource.d.ts +10 -0
- package/types/V2/Core/Accounts.d.ts +130 -51
- package/types/V2/Core/AccountsResource.d.ts +54 -0
- package/types/V2/Core/Persons.d.ts +5 -0
- package/types/V2/EventTypes.d.ts +1 -1
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +8 -4
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +1 -0
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +1 -1
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +1 -1
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +1 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +22 -3
- package/types/WebhookEndpointsResource.d.ts +2 -1
- package/types/index.d.ts +12 -12
- package/types/lib.d.ts +11 -1
- package/types/test/typescriptTest.ts +3 -3
|
@@ -1160,6 +1160,7 @@ declare module 'stripe' {
|
|
|
1160
1160
|
| 'vu'
|
|
1161
1161
|
| 'wf'
|
|
1162
1162
|
| 'ws'
|
|
1163
|
+
| 'xx'
|
|
1163
1164
|
| 'ye'
|
|
1164
1165
|
| 'yt'
|
|
1165
1166
|
| 'za'
|
|
@@ -2053,6 +2054,7 @@ declare module 'stripe' {
|
|
|
2053
2054
|
| 'vu'
|
|
2054
2055
|
| 'wf'
|
|
2055
2056
|
| 'ws'
|
|
2057
|
+
| 'xx'
|
|
2056
2058
|
| 'ye'
|
|
2057
2059
|
| 'yt'
|
|
2058
2060
|
| 'za'
|
|
@@ -2108,6 +2110,11 @@ declare module 'stripe' {
|
|
|
2108
2110
|
*/
|
|
2109
2111
|
primary_verification?: Documents.PrimaryVerification;
|
|
2110
2112
|
|
|
2113
|
+
/**
|
|
2114
|
+
* One or more documents that demonstrate proof of address.
|
|
2115
|
+
*/
|
|
2116
|
+
proof_of_address?: Documents.ProofOfAddress;
|
|
2117
|
+
|
|
2111
2118
|
/**
|
|
2112
2119
|
* One or more documents showing the company's proof of registration with the national business registry.
|
|
2113
2120
|
*/
|
|
@@ -2218,6 +2225,18 @@ declare module 'stripe' {
|
|
|
2218
2225
|
}
|
|
2219
2226
|
}
|
|
2220
2227
|
|
|
2228
|
+
interface ProofOfAddress {
|
|
2229
|
+
/**
|
|
2230
|
+
* One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
|
2231
|
+
*/
|
|
2232
|
+
files: Array<string>;
|
|
2233
|
+
|
|
2234
|
+
/**
|
|
2235
|
+
* The format of the document. Currently supports `files` only.
|
|
2236
|
+
*/
|
|
2237
|
+
type: 'files';
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2221
2240
|
interface ProofOfRegistration {
|
|
2222
2241
|
/**
|
|
2223
2242
|
* One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
|
@@ -2627,6 +2646,7 @@ declare module 'stripe' {
|
|
|
2627
2646
|
| 'vu'
|
|
2628
2647
|
| 'wf'
|
|
2629
2648
|
| 'ws'
|
|
2649
|
+
| 'xx'
|
|
2630
2650
|
| 'ye'
|
|
2631
2651
|
| 'yt'
|
|
2632
2652
|
| 'za'
|
|
@@ -2918,6 +2938,7 @@ declare module 'stripe' {
|
|
|
2918
2938
|
| 'vu'
|
|
2919
2939
|
| 'wf'
|
|
2920
2940
|
| 'ws'
|
|
2941
|
+
| 'xx'
|
|
2921
2942
|
| 'ye'
|
|
2922
2943
|
| 'yt'
|
|
2923
2944
|
| 'za'
|
|
@@ -3230,6 +3251,7 @@ declare module 'stripe' {
|
|
|
3230
3251
|
| 'vu'
|
|
3231
3252
|
| 'wf'
|
|
3232
3253
|
| 'ws'
|
|
3254
|
+
| 'xx'
|
|
3233
3255
|
| 'ye'
|
|
3234
3256
|
| 'yt'
|
|
3235
3257
|
| 'za'
|
|
@@ -3619,6 +3641,7 @@ declare module 'stripe' {
|
|
|
3619
3641
|
| 'vu'
|
|
3620
3642
|
| 'wf'
|
|
3621
3643
|
| 'ws'
|
|
3644
|
+
| 'xx'
|
|
3622
3645
|
| 'ye'
|
|
3623
3646
|
| 'yt'
|
|
3624
3647
|
| 'za'
|
|
@@ -3936,6 +3959,7 @@ declare module 'stripe' {
|
|
|
3936
3959
|
| 'vu'
|
|
3937
3960
|
| 'wf'
|
|
3938
3961
|
| 'ws'
|
|
3962
|
+
| 'xx'
|
|
3939
3963
|
| 'ye'
|
|
3940
3964
|
| 'yt'
|
|
3941
3965
|
| 'za'
|
|
@@ -4356,6 +4380,7 @@ declare module 'stripe' {
|
|
|
4356
4380
|
| 'vu'
|
|
4357
4381
|
| 'wf'
|
|
4358
4382
|
| 'ws'
|
|
4383
|
+
| 'xx'
|
|
4359
4384
|
| 'ye'
|
|
4360
4385
|
| 'yt'
|
|
4361
4386
|
| 'za'
|
|
@@ -4688,6 +4713,7 @@ declare module 'stripe' {
|
|
|
4688
4713
|
| 'vu'
|
|
4689
4714
|
| 'wf'
|
|
4690
4715
|
| 'ws'
|
|
4716
|
+
| 'xx'
|
|
4691
4717
|
| 'ye'
|
|
4692
4718
|
| 'yt'
|
|
4693
4719
|
| 'za'
|
|
@@ -4979,6 +5005,7 @@ declare module 'stripe' {
|
|
|
4979
5005
|
| 'vu'
|
|
4980
5006
|
| 'wf'
|
|
4981
5007
|
| 'ws'
|
|
5008
|
+
| 'xx'
|
|
4982
5009
|
| 'ye'
|
|
4983
5010
|
| 'yt'
|
|
4984
5011
|
| 'za'
|
|
@@ -6225,6 +6252,7 @@ declare module 'stripe' {
|
|
|
6225
6252
|
| 'vu'
|
|
6226
6253
|
| 'wf'
|
|
6227
6254
|
| 'ws'
|
|
6255
|
+
| 'xx'
|
|
6228
6256
|
| 'ye'
|
|
6229
6257
|
| 'yt'
|
|
6230
6258
|
| 'za'
|
|
@@ -7123,6 +7151,7 @@ declare module 'stripe' {
|
|
|
7123
7151
|
| 'vu'
|
|
7124
7152
|
| 'wf'
|
|
7125
7153
|
| 'ws'
|
|
7154
|
+
| 'xx'
|
|
7126
7155
|
| 'ye'
|
|
7127
7156
|
| 'yt'
|
|
7128
7157
|
| 'za'
|
|
@@ -7178,6 +7207,11 @@ declare module 'stripe' {
|
|
|
7178
7207
|
*/
|
|
7179
7208
|
primary_verification?: Documents.PrimaryVerification | null;
|
|
7180
7209
|
|
|
7210
|
+
/**
|
|
7211
|
+
* One or more documents that demonstrate proof of address.
|
|
7212
|
+
*/
|
|
7213
|
+
proof_of_address?: Documents.ProofOfAddress;
|
|
7214
|
+
|
|
7181
7215
|
/**
|
|
7182
7216
|
* One or more documents showing the company's proof of registration with the national business registry.
|
|
7183
7217
|
*/
|
|
@@ -7288,6 +7322,18 @@ declare module 'stripe' {
|
|
|
7288
7322
|
}
|
|
7289
7323
|
}
|
|
7290
7324
|
|
|
7325
|
+
interface ProofOfAddress {
|
|
7326
|
+
/**
|
|
7327
|
+
* One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
|
7328
|
+
*/
|
|
7329
|
+
files: Array<string>;
|
|
7330
|
+
|
|
7331
|
+
/**
|
|
7332
|
+
* The format of the document. Currently supports `files` only.
|
|
7333
|
+
*/
|
|
7334
|
+
type: 'files';
|
|
7335
|
+
}
|
|
7336
|
+
|
|
7291
7337
|
interface ProofOfRegistration {
|
|
7292
7338
|
/**
|
|
7293
7339
|
* One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
|
@@ -7697,6 +7743,7 @@ declare module 'stripe' {
|
|
|
7697
7743
|
| 'vu'
|
|
7698
7744
|
| 'wf'
|
|
7699
7745
|
| 'ws'
|
|
7746
|
+
| 'xx'
|
|
7700
7747
|
| 'ye'
|
|
7701
7748
|
| 'yt'
|
|
7702
7749
|
| 'za'
|
|
@@ -7988,6 +8035,7 @@ declare module 'stripe' {
|
|
|
7988
8035
|
| 'vu'
|
|
7989
8036
|
| 'wf'
|
|
7990
8037
|
| 'ws'
|
|
8038
|
+
| 'xx'
|
|
7991
8039
|
| 'ye'
|
|
7992
8040
|
| 'yt'
|
|
7993
8041
|
| 'za'
|
|
@@ -8300,6 +8348,7 @@ declare module 'stripe' {
|
|
|
8300
8348
|
| 'vu'
|
|
8301
8349
|
| 'wf'
|
|
8302
8350
|
| 'ws'
|
|
8351
|
+
| 'xx'
|
|
8303
8352
|
| 'ye'
|
|
8304
8353
|
| 'yt'
|
|
8305
8354
|
| 'za'
|
|
@@ -8689,6 +8738,7 @@ declare module 'stripe' {
|
|
|
8689
8738
|
| 'vu'
|
|
8690
8739
|
| 'wf'
|
|
8691
8740
|
| 'ws'
|
|
8741
|
+
| 'xx'
|
|
8692
8742
|
| 'ye'
|
|
8693
8743
|
| 'yt'
|
|
8694
8744
|
| 'za'
|
|
@@ -9006,6 +9056,7 @@ declare module 'stripe' {
|
|
|
9006
9056
|
| 'vu'
|
|
9007
9057
|
| 'wf'
|
|
9008
9058
|
| 'ws'
|
|
9059
|
+
| 'xx'
|
|
9009
9060
|
| 'ye'
|
|
9010
9061
|
| 'yt'
|
|
9011
9062
|
| 'za'
|
|
@@ -9426,6 +9477,7 @@ declare module 'stripe' {
|
|
|
9426
9477
|
| 'vu'
|
|
9427
9478
|
| 'wf'
|
|
9428
9479
|
| 'ws'
|
|
9480
|
+
| 'xx'
|
|
9429
9481
|
| 'ye'
|
|
9430
9482
|
| 'yt'
|
|
9431
9483
|
| 'za'
|
|
@@ -9758,6 +9810,7 @@ declare module 'stripe' {
|
|
|
9758
9810
|
| 'vu'
|
|
9759
9811
|
| 'wf'
|
|
9760
9812
|
| 'ws'
|
|
9813
|
+
| 'xx'
|
|
9761
9814
|
| 'ye'
|
|
9762
9815
|
| 'yt'
|
|
9763
9816
|
| 'za'
|
|
@@ -10049,6 +10102,7 @@ declare module 'stripe' {
|
|
|
10049
10102
|
| 'vu'
|
|
10050
10103
|
| 'wf'
|
|
10051
10104
|
| 'ws'
|
|
10105
|
+
| 'xx'
|
|
10052
10106
|
| 'ye'
|
|
10053
10107
|
| 'yt'
|
|
10054
10108
|
| 'za'
|
|
@@ -419,6 +419,7 @@ declare module 'stripe' {
|
|
|
419
419
|
| 'vu'
|
|
420
420
|
| 'wf'
|
|
421
421
|
| 'ws'
|
|
422
|
+
| 'xx'
|
|
422
423
|
| 'ye'
|
|
423
424
|
| 'yt'
|
|
424
425
|
| 'za'
|
|
@@ -762,6 +763,7 @@ declare module 'stripe' {
|
|
|
762
763
|
| 'vu'
|
|
763
764
|
| 'wf'
|
|
764
765
|
| 'ws'
|
|
766
|
+
| 'xx'
|
|
765
767
|
| 'ye'
|
|
766
768
|
| 'yt'
|
|
767
769
|
| 'za'
|
|
@@ -1177,6 +1179,7 @@ declare module 'stripe' {
|
|
|
1177
1179
|
| 'vu'
|
|
1178
1180
|
| 'wf'
|
|
1179
1181
|
| 'ws'
|
|
1182
|
+
| 'xx'
|
|
1180
1183
|
| 'ye'
|
|
1181
1184
|
| 'yt'
|
|
1182
1185
|
| 'za'
|
|
@@ -1524,6 +1527,7 @@ declare module 'stripe' {
|
|
|
1524
1527
|
| 'vu'
|
|
1525
1528
|
| 'wf'
|
|
1526
1529
|
| 'ws'
|
|
1530
|
+
| 'xx'
|
|
1527
1531
|
| 'ye'
|
|
1528
1532
|
| 'yt'
|
|
1529
1533
|
| 'za'
|
|
@@ -1815,6 +1819,7 @@ declare module 'stripe' {
|
|
|
1815
1819
|
| 'vu'
|
|
1816
1820
|
| 'wf'
|
|
1817
1821
|
| 'ws'
|
|
1822
|
+
| 'xx'
|
|
1818
1823
|
| 'ye'
|
|
1819
1824
|
| 'yt'
|
|
1820
1825
|
| 'za'
|
package/types/V2/EventTypes.d.ts
CHANGED
|
@@ -746,7 +746,7 @@ declare module 'stripe' {
|
|
|
746
746
|
}
|
|
747
747
|
|
|
748
748
|
/**
|
|
749
|
-
* A ping event used to test the connection to an
|
|
749
|
+
* A ping event used to test the connection to an EventDestination.
|
|
750
750
|
*/
|
|
751
751
|
export interface V2CoreEventDestinationPingEvent extends V2.EventBase {
|
|
752
752
|
type: 'v2.core.event_destination.ping';
|
|
@@ -33,13 +33,16 @@ declare module 'stripe' {
|
|
|
33
33
|
*/
|
|
34
34
|
created: string;
|
|
35
35
|
|
|
36
|
-
description: string | null;
|
|
37
|
-
|
|
38
36
|
/**
|
|
39
37
|
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
40
38
|
*/
|
|
41
39
|
livemode: boolean;
|
|
42
40
|
|
|
41
|
+
/**
|
|
42
|
+
* Metadata associated with the FinancialAccount
|
|
43
|
+
*/
|
|
44
|
+
metadata: Stripe.Metadata | null;
|
|
45
|
+
|
|
43
46
|
/**
|
|
44
47
|
* If this is a `other` FinancialAccount, this hash indicates what the actual type is. Upgrade your API version to see it reflected in `type`.
|
|
45
48
|
*/
|
|
@@ -72,7 +75,7 @@ declare module 'stripe' {
|
|
|
72
75
|
};
|
|
73
76
|
|
|
74
77
|
/**
|
|
75
|
-
* Balance of inbound funds that will later transition to the `
|
|
78
|
+
* Balance of inbound funds that will later transition to the `available` balance.
|
|
76
79
|
*/
|
|
77
80
|
inbound_pending: {
|
|
78
81
|
[key: string]: Amount;
|
|
@@ -332,6 +335,7 @@ declare module 'stripe' {
|
|
|
332
335
|
| 'vu'
|
|
333
336
|
| 'wf'
|
|
334
337
|
| 'ws'
|
|
338
|
+
| 'xx'
|
|
335
339
|
| 'ye'
|
|
336
340
|
| 'yt'
|
|
337
341
|
| 'za'
|
|
@@ -345,7 +349,7 @@ declare module 'stripe' {
|
|
|
345
349
|
type: string;
|
|
346
350
|
}
|
|
347
351
|
|
|
348
|
-
type Status = 'closed' | 'open';
|
|
352
|
+
type Status = 'closed' | 'open' | 'pending';
|
|
349
353
|
|
|
350
354
|
interface Storage {
|
|
351
355
|
/**
|
|
@@ -81,7 +81,7 @@ declare module 'stripe' {
|
|
|
81
81
|
recipient_notification: OutboundPayment.RecipientNotification;
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
|
-
* The description that appears on the receiving end for an OutboundPayment (for example, bank statement for external bank transfer).
|
|
84
|
+
* The description that appears on the receiving end for an OutboundPayment (for example, bank statement for external bank transfer). It will default to `STRIPE` if not set on the account settings.
|
|
85
85
|
*/
|
|
86
86
|
statement_descriptor: string;
|
|
87
87
|
|
|
@@ -71,7 +71,7 @@ declare module 'stripe' {
|
|
|
71
71
|
receipt_url: string | null;
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
* The description that appears on the receiving end for an OutboundTransfer (for example, bank statement for external bank transfer).
|
|
74
|
+
* The description that appears on the receiving end for an OutboundTransfer (for example, bank statement for external bank transfer). It will default to `STRIPE` if not set on the account settings.
|
|
75
75
|
*/
|
|
76
76
|
statement_descriptor: string;
|
|
77
77
|
|
|
@@ -83,14 +83,33 @@ declare module 'stripe' {
|
|
|
83
83
|
namespace ReceivedCredit {
|
|
84
84
|
interface BalanceTransfer {
|
|
85
85
|
/**
|
|
86
|
-
* The ID of the
|
|
86
|
+
* The ID of the account that owns the source object originated the ReceivedCredit.
|
|
87
87
|
*/
|
|
88
|
-
|
|
88
|
+
from_account: string | null;
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
91
|
* Open Enum. The type of Stripe Money Movement that originated the ReceivedCredit.
|
|
92
92
|
*/
|
|
93
|
-
type:
|
|
93
|
+
type: BalanceTransfer.Type;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The ID of the outbound payment object that originated the ReceivedCredit.
|
|
97
|
+
*/
|
|
98
|
+
outbound_payment: string | null;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The ID of the outbound transfer object that originated the ReceivedCredit.
|
|
102
|
+
*/
|
|
103
|
+
outbound_transfer: string | null;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* The ID of the payout object that originated the ReceivedCredit.
|
|
107
|
+
*/
|
|
108
|
+
payout_v1: string | null;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
namespace BalanceTransfer {
|
|
112
|
+
type Type = 'outbound_payment' | 'outbound_transfer' | 'payout_v1';
|
|
94
113
|
}
|
|
95
114
|
|
|
96
115
|
interface BankTransfer {
|
package/types/index.d.ts
CHANGED
|
@@ -570,9 +570,15 @@ declare module 'stripe' {
|
|
|
570
570
|
transactionEntries: Stripe.Treasury.TransactionEntriesResource;
|
|
571
571
|
};
|
|
572
572
|
v2: {
|
|
573
|
+
billing: {
|
|
574
|
+
meterEventAdjustments: Stripe.V2.Billing.MeterEventAdjustmentsResource;
|
|
575
|
+
meterEventSession: Stripe.V2.Billing.MeterEventSessionResource;
|
|
576
|
+
meterEventStream: Stripe.V2.Billing.MeterEventStreamResource;
|
|
577
|
+
meterEvents: Stripe.V2.Billing.MeterEventsResource;
|
|
578
|
+
};
|
|
573
579
|
core: {
|
|
574
|
-
accounts: Stripe.V2.Core.AccountsResource;
|
|
575
580
|
accountLinks: Stripe.V2.Core.AccountLinksResource;
|
|
581
|
+
accounts: Stripe.V2.Core.AccountsResource;
|
|
576
582
|
eventDestinations: Stripe.V2.Core.EventDestinationsResource;
|
|
577
583
|
events: Stripe.V2.Core.EventsResource;
|
|
578
584
|
vault: {
|
|
@@ -585,29 +591,23 @@ declare module 'stripe' {
|
|
|
585
591
|
financialAccounts: Stripe.V2.MoneyManagement.FinancialAccountsResource;
|
|
586
592
|
financialAddresses: Stripe.V2.MoneyManagement.FinancialAddressesResource;
|
|
587
593
|
inboundTransfers: Stripe.V2.MoneyManagement.InboundTransfersResource;
|
|
588
|
-
outboundPayments: Stripe.V2.MoneyManagement.OutboundPaymentsResource;
|
|
589
594
|
outboundPaymentQuotes: Stripe.V2.MoneyManagement.OutboundPaymentQuotesResource;
|
|
590
|
-
|
|
595
|
+
outboundPayments: Stripe.V2.MoneyManagement.OutboundPaymentsResource;
|
|
591
596
|
outboundSetupIntents: Stripe.V2.MoneyManagement.OutboundSetupIntentsResource;
|
|
597
|
+
outboundTransfers: Stripe.V2.MoneyManagement.OutboundTransfersResource;
|
|
592
598
|
payoutMethods: Stripe.V2.MoneyManagement.PayoutMethodsResource;
|
|
593
599
|
payoutMethodsBankAccountSpec: Stripe.V2.MoneyManagement.PayoutMethodsBankAccountSpecResource;
|
|
594
600
|
receivedCredits: Stripe.V2.MoneyManagement.ReceivedCreditsResource;
|
|
595
601
|
receivedDebits: Stripe.V2.MoneyManagement.ReceivedDebitsResource;
|
|
596
|
-
transactions: Stripe.V2.MoneyManagement.TransactionsResource;
|
|
597
602
|
transactionEntries: Stripe.V2.MoneyManagement.TransactionEntriesResource;
|
|
603
|
+
transactions: Stripe.V2.MoneyManagement.TransactionsResource;
|
|
598
604
|
};
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
meterEventAdjustments: Stripe.V2.Billing.MeterEventAdjustmentsResource;
|
|
602
|
-
meterEventStream: Stripe.V2.Billing.MeterEventStreamResource;
|
|
603
|
-
meterEvents: Stripe.V2.Billing.MeterEventsResource;
|
|
605
|
+
payment: {
|
|
606
|
+
offSessionPayments: Stripe.V2.Payments.OffSessionPaymentsResource;
|
|
604
607
|
};
|
|
605
608
|
testHelper: {
|
|
606
609
|
financialAddresses: Stripe.V2.TestHelpers.FinancialAddressesResource;
|
|
607
610
|
};
|
|
608
|
-
payment: {
|
|
609
|
-
offSessionPayments: Stripe.V2.Payments.OffSessionPaymentsResource;
|
|
610
|
-
};
|
|
611
611
|
};
|
|
612
612
|
// Fields: The end of the section generated from our OpenAPI spec
|
|
613
613
|
webhooks: Stripe.Webhooks;
|
package/types/lib.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ declare module 'stripe' {
|
|
|
27
27
|
}): (...args: any[]) => Response<ResponseObject>; //eslint-disable-line @typescript-eslint/no-explicit-any
|
|
28
28
|
static MAX_BUFFERED_REQUEST_METRICS: number;
|
|
29
29
|
}
|
|
30
|
-
export type LatestApiVersion = '2025-
|
|
30
|
+
export type LatestApiVersion = '2025-06-30.preview';
|
|
31
31
|
export type HttpAgent = Agent;
|
|
32
32
|
export type HttpProtocol = 'http' | 'https';
|
|
33
33
|
|
|
@@ -112,6 +112,11 @@ declare module 'stripe' {
|
|
|
112
112
|
* An account id on whose behalf you wish to make every request.
|
|
113
113
|
*/
|
|
114
114
|
stripeAccount?: string;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* An account on whose behalf you wish to make every request. See https://docs.corp.stripe.com/context for more information.
|
|
118
|
+
*/
|
|
119
|
+
stripeContext?: string;
|
|
115
120
|
}
|
|
116
121
|
|
|
117
122
|
export interface RequestOptions {
|
|
@@ -131,6 +136,11 @@ declare module 'stripe' {
|
|
|
131
136
|
*/
|
|
132
137
|
stripeAccount?: string;
|
|
133
138
|
|
|
139
|
+
/**
|
|
140
|
+
* An account on whose behalf you wish to make a request. See https://docs.corp.stripe.com/context for more information.
|
|
141
|
+
*/
|
|
142
|
+
stripeContext?: string;
|
|
143
|
+
|
|
134
144
|
/**
|
|
135
145
|
* The [API Version](https://stripe.com/docs/upgrades) to use for a given request (e.g., '2020-03-02').
|
|
136
146
|
*/
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import Stripe from 'stripe';
|
|
10
10
|
|
|
11
11
|
let stripe = new Stripe('sk_test_123', {
|
|
12
|
-
apiVersion: '2025-
|
|
12
|
+
apiVersion: '2025-06-30.preview',
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
stripe = new Stripe('sk_test_123');
|
|
@@ -26,7 +26,7 @@ stripe = new Stripe('sk_test_123', {
|
|
|
26
26
|
|
|
27
27
|
// Check config object.
|
|
28
28
|
stripe = new Stripe('sk_test_123', {
|
|
29
|
-
apiVersion: '2025-
|
|
29
|
+
apiVersion: '2025-06-30.preview',
|
|
30
30
|
typescript: true,
|
|
31
31
|
maxNetworkRetries: 1,
|
|
32
32
|
timeout: 1000,
|
|
@@ -44,7 +44,7 @@ stripe = new Stripe('sk_test_123', {
|
|
|
44
44
|
description: 'test',
|
|
45
45
|
};
|
|
46
46
|
const opts: Stripe.RequestOptions = {
|
|
47
|
-
apiVersion: '2025-
|
|
47
|
+
apiVersion: '2025-06-30.preview',
|
|
48
48
|
};
|
|
49
49
|
const customer: Stripe.Customer = await stripe.customers.create(params, opts);
|
|
50
50
|
|