stripe 16.0.0 → 16.1.0
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 +8 -0
- package/VERSION +1 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/Billing/MetersResource.d.ts +6 -2
- package/types/Capabilities.d.ts +1 -1
- package/types/Checkout/Sessions.d.ts +13 -0
- package/types/CreditNotesResource.d.ts +21 -0
- package/types/FinancialConnections/Sessions.d.ts +14 -0
- package/types/FinancialConnections/SessionsResource.d.ts +14 -0
- package/types/Invoices.d.ts +13 -0
- package/types/InvoicesResource.d.ts +32 -0
- package/types/PaymentIntents.d.ts +13 -0
- package/types/PaymentIntentsResource.d.ts +48 -0
- package/types/PaymentLinks.d.ts +4 -1
- package/types/PaymentLinksResource.d.ts +8 -2
- package/types/SetupIntents.d.ts +13 -0
- package/types/SetupIntentsResource.d.ts +48 -0
- package/types/Subscriptions.d.ts +13 -0
- package/types/SubscriptionsResource.d.ts +32 -0
- package/types/Terminal/Configurations.d.ts +14 -0
- package/types/Terminal/ConfigurationsResource.d.ts +36 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 16.1.0 - 2024-06-27
|
|
4
|
+
* [#2120](https://github.com/stripe/stripe-node/pull/2120) Update generated code
|
|
5
|
+
* Add support for `filters` on `Checkout.Session.payment_method_options.us_bank_account.financial_connections`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntent.payment_method_options.us_bank_account.financial_connections`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`
|
|
6
|
+
* Add support for `email_type` on `CreditNoteCreateParams`, `CreditNotePreviewLinesParams`, and `CreditNotePreviewParams`
|
|
7
|
+
* Add support for `account_subcategories` on `FinancialConnections.Session.filters` and `FinancialConnections.SessionCreateParams.filters`
|
|
8
|
+
* Add support for new values `multibanco`, `twint`, and `zip` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]`
|
|
9
|
+
* Add support for `reboot_window` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration`
|
|
10
|
+
|
|
3
11
|
## 16.0.0 - 2024-06-24
|
|
4
12
|
* [#2113](https://github.com/stripe/stripe-node/pull/2113)
|
|
5
13
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
16.
|
|
1
|
+
16.1.0
|
package/cjs/stripe.core.js
CHANGED
|
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
34
34
|
];
|
|
35
35
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
36
36
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
37
|
-
Stripe.PACKAGE_VERSION = '16.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '16.1.0';
|
|
38
38
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
39
39
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
40
40
|
Stripe.resources = resources;
|
package/esm/stripe.core.js
CHANGED
|
@@ -31,7 +31,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
31
31
|
];
|
|
32
32
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
33
33
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
34
|
-
Stripe.PACKAGE_VERSION = '16.
|
|
34
|
+
Stripe.PACKAGE_VERSION = '16.1.0';
|
|
35
35
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
36
36
|
Stripe.StripeResource = StripeResource;
|
|
37
37
|
Stripe.resources = resources;
|
package/package.json
CHANGED
|
@@ -138,9 +138,13 @@ declare module 'stripe' {
|
|
|
138
138
|
expand?: Array<string>;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
|
-
* Specifies what granularity to use when generating event summaries. If not specified, a single event summary would be returned for the specified time range.
|
|
141
|
+
* Specifies what granularity to use when generating event summaries. If not specified, a single event summary would be returned for the specified time range. For hourly granularity, start and end times must align with hour boundaries (e.g., 00:00, 01:00, ..., 23:00). For daily granularity, start and end times must align with UTC day boundaries (00:00 UTC).
|
|
142
142
|
*/
|
|
143
|
-
value_grouping_window?:
|
|
143
|
+
value_grouping_window?: MeterListEventSummariesParams.ValueGroupingWindow;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
namespace MeterListEventSummariesParams {
|
|
147
|
+
type ValueGroupingWindow = 'day' | 'hour';
|
|
144
148
|
}
|
|
145
149
|
|
|
146
150
|
interface MeterReactivateParams {
|
package/types/Capabilities.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ declare module 'stripe' {
|
|
|
61
61
|
currently_due: Array<string>;
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
|
-
* This is typed as
|
|
64
|
+
* This is typed as an enum for consistency with `requirements.disabled_reason`, but it safe to assume `future_requirements.disabled_reason` is null because fields in `future_requirements` will never disable the account.
|
|
65
65
|
*/
|
|
66
66
|
disabled_reason: FutureRequirements.DisabledReason | null;
|
|
67
67
|
|
|
@@ -1516,6 +1516,8 @@ declare module 'stripe' {
|
|
|
1516
1516
|
|
|
1517
1517
|
namespace UsBankAccount {
|
|
1518
1518
|
interface FinancialConnections {
|
|
1519
|
+
filters?: FinancialConnections.Filters;
|
|
1520
|
+
|
|
1519
1521
|
/**
|
|
1520
1522
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
1521
1523
|
*/
|
|
@@ -1533,6 +1535,17 @@ declare module 'stripe' {
|
|
|
1533
1535
|
}
|
|
1534
1536
|
|
|
1535
1537
|
namespace FinancialConnections {
|
|
1538
|
+
interface Filters {
|
|
1539
|
+
/**
|
|
1540
|
+
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1541
|
+
*/
|
|
1542
|
+
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
namespace Filters {
|
|
1546
|
+
type AccountSubcategory = 'checking' | 'savings';
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1536
1549
|
type Permission =
|
|
1537
1550
|
| 'balances'
|
|
1538
1551
|
| 'ownership'
|
|
@@ -23,6 +23,11 @@ declare module 'stripe' {
|
|
|
23
23
|
*/
|
|
24
24
|
effective_at?: number;
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`.
|
|
28
|
+
*/
|
|
29
|
+
email_type?: CreditNoteCreateParams.EmailType;
|
|
30
|
+
|
|
26
31
|
/**
|
|
27
32
|
* Specifies which fields in the response should be expanded.
|
|
28
33
|
*/
|
|
@@ -70,6 +75,8 @@ declare module 'stripe' {
|
|
|
70
75
|
}
|
|
71
76
|
|
|
72
77
|
namespace CreditNoteCreateParams {
|
|
78
|
+
type EmailType = 'credit_note' | 'none';
|
|
79
|
+
|
|
73
80
|
interface Line {
|
|
74
81
|
/**
|
|
75
82
|
* The line item amount to credit. Only valid when `type` is `invoice_line_item`.
|
|
@@ -226,6 +233,11 @@ declare module 'stripe' {
|
|
|
226
233
|
*/
|
|
227
234
|
effective_at?: number;
|
|
228
235
|
|
|
236
|
+
/**
|
|
237
|
+
* Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`.
|
|
238
|
+
*/
|
|
239
|
+
email_type?: CreditNoteListPreviewLineItemsParams.EmailType;
|
|
240
|
+
|
|
229
241
|
/**
|
|
230
242
|
* Specifies which fields in the response should be expanded.
|
|
231
243
|
*/
|
|
@@ -273,6 +285,8 @@ declare module 'stripe' {
|
|
|
273
285
|
}
|
|
274
286
|
|
|
275
287
|
namespace CreditNoteListPreviewLineItemsParams {
|
|
288
|
+
type EmailType = 'credit_note' | 'none';
|
|
289
|
+
|
|
276
290
|
interface Line {
|
|
277
291
|
/**
|
|
278
292
|
* The line item amount to credit. Only valid when `type` is `invoice_line_item`.
|
|
@@ -376,6 +390,11 @@ declare module 'stripe' {
|
|
|
376
390
|
*/
|
|
377
391
|
effective_at?: number;
|
|
378
392
|
|
|
393
|
+
/**
|
|
394
|
+
* Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`.
|
|
395
|
+
*/
|
|
396
|
+
email_type?: CreditNotePreviewParams.EmailType;
|
|
397
|
+
|
|
379
398
|
/**
|
|
380
399
|
* Specifies which fields in the response should be expanded.
|
|
381
400
|
*/
|
|
@@ -423,6 +442,8 @@ declare module 'stripe' {
|
|
|
423
442
|
}
|
|
424
443
|
|
|
425
444
|
namespace CreditNotePreviewParams {
|
|
445
|
+
type EmailType = 'credit_note' | 'none';
|
|
446
|
+
|
|
426
447
|
interface Line {
|
|
427
448
|
/**
|
|
428
449
|
* The line item amount to credit. Only valid when `type` is `invoice_line_item`.
|
|
@@ -78,12 +78,26 @@ declare module 'stripe' {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
interface Filters {
|
|
81
|
+
/**
|
|
82
|
+
* Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are: `checking`, `savings`, `mortgage`, `line_of_credit`, `credit_card`.
|
|
83
|
+
*/
|
|
84
|
+
account_subcategories: Array<Filters.AccountSubcategory> | null;
|
|
85
|
+
|
|
81
86
|
/**
|
|
82
87
|
* List of countries from which to filter accounts.
|
|
83
88
|
*/
|
|
84
89
|
countries: Array<string> | null;
|
|
85
90
|
}
|
|
86
91
|
|
|
92
|
+
namespace Filters {
|
|
93
|
+
type AccountSubcategory =
|
|
94
|
+
| 'checking'
|
|
95
|
+
| 'credit_card'
|
|
96
|
+
| 'line_of_credit'
|
|
97
|
+
| 'mortgage'
|
|
98
|
+
| 'savings';
|
|
99
|
+
}
|
|
100
|
+
|
|
87
101
|
type Permission =
|
|
88
102
|
| 'balances'
|
|
89
103
|
| 'ownership'
|
|
@@ -60,12 +60,26 @@ declare module 'stripe' {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
interface Filters {
|
|
63
|
+
/**
|
|
64
|
+
* Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are: `checking`, `savings`, `mortgage`, `line_of_credit`, `credit_card`.
|
|
65
|
+
*/
|
|
66
|
+
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
67
|
+
|
|
63
68
|
/**
|
|
64
69
|
* List of countries from which to collect accounts.
|
|
65
70
|
*/
|
|
66
71
|
countries?: Array<string>;
|
|
67
72
|
}
|
|
68
73
|
|
|
74
|
+
namespace Filters {
|
|
75
|
+
type AccountSubcategory =
|
|
76
|
+
| 'checking'
|
|
77
|
+
| 'credit_card'
|
|
78
|
+
| 'line_of_credit'
|
|
79
|
+
| 'mortgage'
|
|
80
|
+
| 'savings';
|
|
81
|
+
}
|
|
82
|
+
|
|
69
83
|
type Permission =
|
|
70
84
|
| 'balances'
|
|
71
85
|
| 'ownership'
|
package/types/Invoices.d.ts
CHANGED
|
@@ -1119,6 +1119,8 @@ declare module 'stripe' {
|
|
|
1119
1119
|
|
|
1120
1120
|
namespace UsBankAccount {
|
|
1121
1121
|
interface FinancialConnections {
|
|
1122
|
+
filters?: FinancialConnections.Filters;
|
|
1123
|
+
|
|
1122
1124
|
/**
|
|
1123
1125
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
1124
1126
|
*/
|
|
@@ -1131,6 +1133,17 @@ declare module 'stripe' {
|
|
|
1131
1133
|
}
|
|
1132
1134
|
|
|
1133
1135
|
namespace FinancialConnections {
|
|
1136
|
+
interface Filters {
|
|
1137
|
+
/**
|
|
1138
|
+
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1139
|
+
*/
|
|
1140
|
+
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
namespace Filters {
|
|
1144
|
+
type AccountSubcategory = 'checking' | 'savings';
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1134
1147
|
type Permission =
|
|
1135
1148
|
| 'balances'
|
|
1136
1149
|
| 'ownership'
|
|
@@ -453,6 +453,11 @@ declare module 'stripe' {
|
|
|
453
453
|
|
|
454
454
|
namespace UsBankAccount {
|
|
455
455
|
interface FinancialConnections {
|
|
456
|
+
/**
|
|
457
|
+
* Provide filters for the linked accounts that the customer can select for the payment method.
|
|
458
|
+
*/
|
|
459
|
+
filters?: FinancialConnections.Filters;
|
|
460
|
+
|
|
456
461
|
/**
|
|
457
462
|
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
|
458
463
|
*/
|
|
@@ -465,6 +470,17 @@ declare module 'stripe' {
|
|
|
465
470
|
}
|
|
466
471
|
|
|
467
472
|
namespace FinancialConnections {
|
|
473
|
+
interface Filters {
|
|
474
|
+
/**
|
|
475
|
+
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
476
|
+
*/
|
|
477
|
+
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
namespace Filters {
|
|
481
|
+
type AccountSubcategory = 'checking' | 'savings';
|
|
482
|
+
}
|
|
483
|
+
|
|
468
484
|
type Permission =
|
|
469
485
|
| 'balances'
|
|
470
486
|
| 'ownership'
|
|
@@ -1130,6 +1146,11 @@ declare module 'stripe' {
|
|
|
1130
1146
|
|
|
1131
1147
|
namespace UsBankAccount {
|
|
1132
1148
|
interface FinancialConnections {
|
|
1149
|
+
/**
|
|
1150
|
+
* Provide filters for the linked accounts that the customer can select for the payment method.
|
|
1151
|
+
*/
|
|
1152
|
+
filters?: FinancialConnections.Filters;
|
|
1153
|
+
|
|
1133
1154
|
/**
|
|
1134
1155
|
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
|
1135
1156
|
*/
|
|
@@ -1142,6 +1163,17 @@ declare module 'stripe' {
|
|
|
1142
1163
|
}
|
|
1143
1164
|
|
|
1144
1165
|
namespace FinancialConnections {
|
|
1166
|
+
interface Filters {
|
|
1167
|
+
/**
|
|
1168
|
+
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1169
|
+
*/
|
|
1170
|
+
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
namespace Filters {
|
|
1174
|
+
type AccountSubcategory = 'checking' | 'savings';
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1145
1177
|
type Permission =
|
|
1146
1178
|
| 'balances'
|
|
1147
1179
|
| 'ownership'
|
|
@@ -2276,6 +2276,8 @@ declare module 'stripe' {
|
|
|
2276
2276
|
|
|
2277
2277
|
namespace UsBankAccount {
|
|
2278
2278
|
interface FinancialConnections {
|
|
2279
|
+
filters?: FinancialConnections.Filters;
|
|
2280
|
+
|
|
2279
2281
|
/**
|
|
2280
2282
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
2281
2283
|
*/
|
|
@@ -2293,6 +2295,17 @@ declare module 'stripe' {
|
|
|
2293
2295
|
}
|
|
2294
2296
|
|
|
2295
2297
|
namespace FinancialConnections {
|
|
2298
|
+
interface Filters {
|
|
2299
|
+
/**
|
|
2300
|
+
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
2301
|
+
*/
|
|
2302
|
+
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2305
|
+
namespace Filters {
|
|
2306
|
+
type AccountSubcategory = 'checking' | 'savings';
|
|
2307
|
+
}
|
|
2308
|
+
|
|
2296
2309
|
type Permission =
|
|
2297
2310
|
| 'balances'
|
|
2298
2311
|
| 'ownership'
|
|
@@ -2287,6 +2287,11 @@ declare module 'stripe' {
|
|
|
2287
2287
|
|
|
2288
2288
|
namespace UsBankAccount {
|
|
2289
2289
|
interface FinancialConnections {
|
|
2290
|
+
/**
|
|
2291
|
+
* Provide filters for the linked accounts that the customer can select for the payment method
|
|
2292
|
+
*/
|
|
2293
|
+
filters?: FinancialConnections.Filters;
|
|
2294
|
+
|
|
2290
2295
|
/**
|
|
2291
2296
|
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
|
2292
2297
|
*/
|
|
@@ -2304,6 +2309,17 @@ declare module 'stripe' {
|
|
|
2304
2309
|
}
|
|
2305
2310
|
|
|
2306
2311
|
namespace FinancialConnections {
|
|
2312
|
+
interface Filters {
|
|
2313
|
+
/**
|
|
2314
|
+
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2315
|
+
*/
|
|
2316
|
+
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2319
|
+
namespace Filters {
|
|
2320
|
+
type AccountSubcategory = 'checking' | 'savings';
|
|
2321
|
+
}
|
|
2322
|
+
|
|
2307
2323
|
type Permission =
|
|
2308
2324
|
| 'balances'
|
|
2309
2325
|
| 'ownership'
|
|
@@ -4602,6 +4618,11 @@ declare module 'stripe' {
|
|
|
4602
4618
|
|
|
4603
4619
|
namespace UsBankAccount {
|
|
4604
4620
|
interface FinancialConnections {
|
|
4621
|
+
/**
|
|
4622
|
+
* Provide filters for the linked accounts that the customer can select for the payment method
|
|
4623
|
+
*/
|
|
4624
|
+
filters?: FinancialConnections.Filters;
|
|
4625
|
+
|
|
4605
4626
|
/**
|
|
4606
4627
|
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
|
4607
4628
|
*/
|
|
@@ -4619,6 +4640,17 @@ declare module 'stripe' {
|
|
|
4619
4640
|
}
|
|
4620
4641
|
|
|
4621
4642
|
namespace FinancialConnections {
|
|
4643
|
+
interface Filters {
|
|
4644
|
+
/**
|
|
4645
|
+
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
4646
|
+
*/
|
|
4647
|
+
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
4648
|
+
}
|
|
4649
|
+
|
|
4650
|
+
namespace Filters {
|
|
4651
|
+
type AccountSubcategory = 'checking' | 'savings';
|
|
4652
|
+
}
|
|
4653
|
+
|
|
4622
4654
|
type Permission =
|
|
4623
4655
|
| 'balances'
|
|
4624
4656
|
| 'ownership'
|
|
@@ -7029,6 +7061,11 @@ declare module 'stripe' {
|
|
|
7029
7061
|
|
|
7030
7062
|
namespace UsBankAccount {
|
|
7031
7063
|
interface FinancialConnections {
|
|
7064
|
+
/**
|
|
7065
|
+
* Provide filters for the linked accounts that the customer can select for the payment method
|
|
7066
|
+
*/
|
|
7067
|
+
filters?: FinancialConnections.Filters;
|
|
7068
|
+
|
|
7032
7069
|
/**
|
|
7033
7070
|
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
|
7034
7071
|
*/
|
|
@@ -7046,6 +7083,17 @@ declare module 'stripe' {
|
|
|
7046
7083
|
}
|
|
7047
7084
|
|
|
7048
7085
|
namespace FinancialConnections {
|
|
7086
|
+
interface Filters {
|
|
7087
|
+
/**
|
|
7088
|
+
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
7089
|
+
*/
|
|
7090
|
+
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
7091
|
+
}
|
|
7092
|
+
|
|
7093
|
+
namespace Filters {
|
|
7094
|
+
type AccountSubcategory = 'checking' | 'savings';
|
|
7095
|
+
}
|
|
7096
|
+
|
|
7049
7097
|
type Permission =
|
|
7050
7098
|
| 'balances'
|
|
7051
7099
|
| 'ownership'
|
package/types/PaymentLinks.d.ts
CHANGED
|
@@ -558,6 +558,7 @@ declare module 'stripe' {
|
|
|
558
558
|
| 'konbini'
|
|
559
559
|
| 'link'
|
|
560
560
|
| 'mobilepay'
|
|
561
|
+
| 'multibanco'
|
|
561
562
|
| 'oxxo'
|
|
562
563
|
| 'p24'
|
|
563
564
|
| 'paynow'
|
|
@@ -567,8 +568,10 @@ declare module 'stripe' {
|
|
|
567
568
|
| 'sepa_debit'
|
|
568
569
|
| 'sofort'
|
|
569
570
|
| 'swish'
|
|
571
|
+
| 'twint'
|
|
570
572
|
| 'us_bank_account'
|
|
571
|
-
| 'wechat_pay'
|
|
573
|
+
| 'wechat_pay'
|
|
574
|
+
| 'zip';
|
|
572
575
|
|
|
573
576
|
interface PhoneNumberCollection {
|
|
574
577
|
/**
|
|
@@ -615,6 +615,7 @@ declare module 'stripe' {
|
|
|
615
615
|
| 'konbini'
|
|
616
616
|
| 'link'
|
|
617
617
|
| 'mobilepay'
|
|
618
|
+
| 'multibanco'
|
|
618
619
|
| 'oxxo'
|
|
619
620
|
| 'p24'
|
|
620
621
|
| 'paynow'
|
|
@@ -624,8 +625,10 @@ declare module 'stripe' {
|
|
|
624
625
|
| 'sepa_debit'
|
|
625
626
|
| 'sofort'
|
|
626
627
|
| 'swish'
|
|
628
|
+
| 'twint'
|
|
627
629
|
| 'us_bank_account'
|
|
628
|
-
| 'wechat_pay'
|
|
630
|
+
| 'wechat_pay'
|
|
631
|
+
| 'zip';
|
|
629
632
|
|
|
630
633
|
interface PhoneNumberCollection {
|
|
631
634
|
/**
|
|
@@ -1525,6 +1528,7 @@ declare module 'stripe' {
|
|
|
1525
1528
|
| 'konbini'
|
|
1526
1529
|
| 'link'
|
|
1527
1530
|
| 'mobilepay'
|
|
1531
|
+
| 'multibanco'
|
|
1528
1532
|
| 'oxxo'
|
|
1529
1533
|
| 'p24'
|
|
1530
1534
|
| 'paynow'
|
|
@@ -1534,8 +1538,10 @@ declare module 'stripe' {
|
|
|
1534
1538
|
| 'sepa_debit'
|
|
1535
1539
|
| 'sofort'
|
|
1536
1540
|
| 'swish'
|
|
1541
|
+
| 'twint'
|
|
1537
1542
|
| 'us_bank_account'
|
|
1538
|
-
| 'wechat_pay'
|
|
1543
|
+
| 'wechat_pay'
|
|
1544
|
+
| 'zip';
|
|
1539
1545
|
|
|
1540
1546
|
interface Restrictions {
|
|
1541
1547
|
/**
|
package/types/SetupIntents.d.ts
CHANGED
|
@@ -775,6 +775,8 @@ declare module 'stripe' {
|
|
|
775
775
|
|
|
776
776
|
namespace UsBankAccount {
|
|
777
777
|
interface FinancialConnections {
|
|
778
|
+
filters?: FinancialConnections.Filters;
|
|
779
|
+
|
|
778
780
|
/**
|
|
779
781
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
780
782
|
*/
|
|
@@ -792,6 +794,17 @@ declare module 'stripe' {
|
|
|
792
794
|
}
|
|
793
795
|
|
|
794
796
|
namespace FinancialConnections {
|
|
797
|
+
interface Filters {
|
|
798
|
+
/**
|
|
799
|
+
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
800
|
+
*/
|
|
801
|
+
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
namespace Filters {
|
|
805
|
+
type AccountSubcategory = 'checking' | 'savings';
|
|
806
|
+
}
|
|
807
|
+
|
|
795
808
|
type Permission =
|
|
796
809
|
| 'balances'
|
|
797
810
|
| 'ownership'
|
|
@@ -1135,6 +1135,11 @@ declare module 'stripe' {
|
|
|
1135
1135
|
|
|
1136
1136
|
namespace UsBankAccount {
|
|
1137
1137
|
interface FinancialConnections {
|
|
1138
|
+
/**
|
|
1139
|
+
* Provide filters for the linked accounts that the customer can select for the payment method
|
|
1140
|
+
*/
|
|
1141
|
+
filters?: FinancialConnections.Filters;
|
|
1142
|
+
|
|
1138
1143
|
/**
|
|
1139
1144
|
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
|
1140
1145
|
*/
|
|
@@ -1152,6 +1157,17 @@ declare module 'stripe' {
|
|
|
1152
1157
|
}
|
|
1153
1158
|
|
|
1154
1159
|
namespace FinancialConnections {
|
|
1160
|
+
interface Filters {
|
|
1161
|
+
/**
|
|
1162
|
+
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1163
|
+
*/
|
|
1164
|
+
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
namespace Filters {
|
|
1168
|
+
type AccountSubcategory = 'checking' | 'savings';
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1155
1171
|
type Permission =
|
|
1156
1172
|
| 'balances'
|
|
1157
1173
|
| 'ownership'
|
|
@@ -2229,6 +2245,11 @@ declare module 'stripe' {
|
|
|
2229
2245
|
|
|
2230
2246
|
namespace UsBankAccount {
|
|
2231
2247
|
interface FinancialConnections {
|
|
2248
|
+
/**
|
|
2249
|
+
* Provide filters for the linked accounts that the customer can select for the payment method
|
|
2250
|
+
*/
|
|
2251
|
+
filters?: FinancialConnections.Filters;
|
|
2252
|
+
|
|
2232
2253
|
/**
|
|
2233
2254
|
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
|
2234
2255
|
*/
|
|
@@ -2246,6 +2267,17 @@ declare module 'stripe' {
|
|
|
2246
2267
|
}
|
|
2247
2268
|
|
|
2248
2269
|
namespace FinancialConnections {
|
|
2270
|
+
interface Filters {
|
|
2271
|
+
/**
|
|
2272
|
+
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2273
|
+
*/
|
|
2274
|
+
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
namespace Filters {
|
|
2278
|
+
type AccountSubcategory = 'checking' | 'savings';
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2249
2281
|
type Permission =
|
|
2250
2282
|
| 'balances'
|
|
2251
2283
|
| 'ownership'
|
|
@@ -3372,6 +3404,11 @@ declare module 'stripe' {
|
|
|
3372
3404
|
|
|
3373
3405
|
namespace UsBankAccount {
|
|
3374
3406
|
interface FinancialConnections {
|
|
3407
|
+
/**
|
|
3408
|
+
* Provide filters for the linked accounts that the customer can select for the payment method
|
|
3409
|
+
*/
|
|
3410
|
+
filters?: FinancialConnections.Filters;
|
|
3411
|
+
|
|
3375
3412
|
/**
|
|
3376
3413
|
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
|
3377
3414
|
*/
|
|
@@ -3389,6 +3426,17 @@ declare module 'stripe' {
|
|
|
3389
3426
|
}
|
|
3390
3427
|
|
|
3391
3428
|
namespace FinancialConnections {
|
|
3429
|
+
interface Filters {
|
|
3430
|
+
/**
|
|
3431
|
+
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
3432
|
+
*/
|
|
3433
|
+
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
3434
|
+
}
|
|
3435
|
+
|
|
3436
|
+
namespace Filters {
|
|
3437
|
+
type AccountSubcategory = 'checking' | 'savings';
|
|
3438
|
+
}
|
|
3439
|
+
|
|
3392
3440
|
type Permission =
|
|
3393
3441
|
| 'balances'
|
|
3394
3442
|
| 'ownership'
|
package/types/Subscriptions.d.ts
CHANGED
|
@@ -589,6 +589,8 @@ declare module 'stripe' {
|
|
|
589
589
|
|
|
590
590
|
namespace UsBankAccount {
|
|
591
591
|
interface FinancialConnections {
|
|
592
|
+
filters?: FinancialConnections.Filters;
|
|
593
|
+
|
|
592
594
|
/**
|
|
593
595
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
594
596
|
*/
|
|
@@ -601,6 +603,17 @@ declare module 'stripe' {
|
|
|
601
603
|
}
|
|
602
604
|
|
|
603
605
|
namespace FinancialConnections {
|
|
606
|
+
interface Filters {
|
|
607
|
+
/**
|
|
608
|
+
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
609
|
+
*/
|
|
610
|
+
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
namespace Filters {
|
|
614
|
+
type AccountSubcategory = 'checking' | 'savings';
|
|
615
|
+
}
|
|
616
|
+
|
|
604
617
|
type Permission =
|
|
605
618
|
| 'balances'
|
|
606
619
|
| 'ownership'
|
|
@@ -723,6 +723,11 @@ declare module 'stripe' {
|
|
|
723
723
|
|
|
724
724
|
namespace UsBankAccount {
|
|
725
725
|
interface FinancialConnections {
|
|
726
|
+
/**
|
|
727
|
+
* Provide filters for the linked accounts that the customer can select for the payment method.
|
|
728
|
+
*/
|
|
729
|
+
filters?: FinancialConnections.Filters;
|
|
730
|
+
|
|
726
731
|
/**
|
|
727
732
|
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
|
728
733
|
*/
|
|
@@ -735,6 +740,17 @@ declare module 'stripe' {
|
|
|
735
740
|
}
|
|
736
741
|
|
|
737
742
|
namespace FinancialConnections {
|
|
743
|
+
interface Filters {
|
|
744
|
+
/**
|
|
745
|
+
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
746
|
+
*/
|
|
747
|
+
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
namespace Filters {
|
|
751
|
+
type AccountSubcategory = 'checking' | 'savings';
|
|
752
|
+
}
|
|
753
|
+
|
|
738
754
|
type Permission =
|
|
739
755
|
| 'balances'
|
|
740
756
|
| 'ownership'
|
|
@@ -1579,6 +1595,11 @@ declare module 'stripe' {
|
|
|
1579
1595
|
|
|
1580
1596
|
namespace UsBankAccount {
|
|
1581
1597
|
interface FinancialConnections {
|
|
1598
|
+
/**
|
|
1599
|
+
* Provide filters for the linked accounts that the customer can select for the payment method.
|
|
1600
|
+
*/
|
|
1601
|
+
filters?: FinancialConnections.Filters;
|
|
1602
|
+
|
|
1582
1603
|
/**
|
|
1583
1604
|
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
|
1584
1605
|
*/
|
|
@@ -1591,6 +1612,17 @@ declare module 'stripe' {
|
|
|
1591
1612
|
}
|
|
1592
1613
|
|
|
1593
1614
|
namespace FinancialConnections {
|
|
1615
|
+
interface Filters {
|
|
1616
|
+
/**
|
|
1617
|
+
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1618
|
+
*/
|
|
1619
|
+
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
namespace Filters {
|
|
1623
|
+
type AccountSubcategory = 'checking' | 'savings';
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1594
1626
|
type Permission =
|
|
1595
1627
|
| 'balances'
|
|
1596
1628
|
| 'ownership'
|
|
@@ -41,6 +41,8 @@ declare module 'stripe' {
|
|
|
41
41
|
|
|
42
42
|
offline?: Configuration.Offline;
|
|
43
43
|
|
|
44
|
+
reboot_window?: Configuration.RebootWindow;
|
|
45
|
+
|
|
44
46
|
stripe_s700?: Configuration.StripeS700;
|
|
45
47
|
|
|
46
48
|
tipping?: Configuration.Tipping;
|
|
@@ -63,6 +65,18 @@ declare module 'stripe' {
|
|
|
63
65
|
enabled: boolean | null;
|
|
64
66
|
}
|
|
65
67
|
|
|
68
|
+
interface RebootWindow {
|
|
69
|
+
/**
|
|
70
|
+
* Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
|
|
71
|
+
*/
|
|
72
|
+
end_hour: number;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Integer between 0 to 23 that represents the start hour of the reboot time window.
|
|
76
|
+
*/
|
|
77
|
+
start_hour: number;
|
|
78
|
+
}
|
|
79
|
+
|
|
66
80
|
interface StripeS700 {
|
|
67
81
|
/**
|
|
68
82
|
* A File ID representing an image you would like displayed on the reader.
|
|
@@ -24,6 +24,11 @@ declare module 'stripe' {
|
|
|
24
24
|
*/
|
|
25
25
|
offline?: Stripe.Emptyable<ConfigurationCreateParams.Offline>;
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* Reboot time settings for readers that support customized reboot time configuration.
|
|
29
|
+
*/
|
|
30
|
+
reboot_window?: ConfigurationCreateParams.RebootWindow;
|
|
31
|
+
|
|
27
32
|
/**
|
|
28
33
|
* An object containing device type specific settings for Stripe S700 readers
|
|
29
34
|
*/
|
|
@@ -55,6 +60,18 @@ declare module 'stripe' {
|
|
|
55
60
|
enabled: boolean;
|
|
56
61
|
}
|
|
57
62
|
|
|
63
|
+
interface RebootWindow {
|
|
64
|
+
/**
|
|
65
|
+
* Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
|
|
66
|
+
*/
|
|
67
|
+
end_hour: number;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Integer between 0 to 23 that represents the start hour of the reboot time window.
|
|
71
|
+
*/
|
|
72
|
+
start_hour: number;
|
|
73
|
+
}
|
|
74
|
+
|
|
58
75
|
interface StripeS700 {
|
|
59
76
|
/**
|
|
60
77
|
* A File ID representing an image you would like displayed on the reader.
|
|
@@ -412,6 +429,13 @@ declare module 'stripe' {
|
|
|
412
429
|
*/
|
|
413
430
|
offline?: Stripe.Emptyable<ConfigurationUpdateParams.Offline>;
|
|
414
431
|
|
|
432
|
+
/**
|
|
433
|
+
* Reboot time settings for readers that support customized reboot time configuration.
|
|
434
|
+
*/
|
|
435
|
+
reboot_window?: Stripe.Emptyable<
|
|
436
|
+
ConfigurationUpdateParams.RebootWindow
|
|
437
|
+
>;
|
|
438
|
+
|
|
415
439
|
/**
|
|
416
440
|
* An object containing device type specific settings for Stripe S700 readers
|
|
417
441
|
*/
|
|
@@ -445,6 +469,18 @@ declare module 'stripe' {
|
|
|
445
469
|
enabled: boolean;
|
|
446
470
|
}
|
|
447
471
|
|
|
472
|
+
interface RebootWindow {
|
|
473
|
+
/**
|
|
474
|
+
* Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
|
|
475
|
+
*/
|
|
476
|
+
end_hour: number;
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Integer between 0 to 23 that represents the start hour of the reboot time window.
|
|
480
|
+
*/
|
|
481
|
+
start_hour: number;
|
|
482
|
+
}
|
|
483
|
+
|
|
448
484
|
interface StripeS700 {
|
|
449
485
|
/**
|
|
450
486
|
* A File ID representing an image you would like displayed on the reader.
|