stripe 15.10.0-beta.1 → 15.11.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 +14 -0
- package/VERSION +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/apiVersion.js +1 -1
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/Accounts.d.ts +35 -0
- package/types/AccountsResource.d.ts +120 -0
- package/types/Checkout/Sessions.d.ts +2 -2
- package/types/Climate/OrdersResource.d.ts +1 -1
- package/types/Invoices.d.ts +1 -0
- package/types/InvoicesResource.d.ts +2 -0
- package/types/PaymentIntents.d.ts +13 -0
- package/types/PaymentIntentsResource.d.ts +54 -0
- package/types/QuotePreviewInvoices.d.ts +1 -0
- package/types/SetupIntentsResource.d.ts +1 -1
- package/types/Subscriptions.d.ts +1 -0
- package/types/SubscriptionsResource.d.ts +2 -0
- package/types/Tax/TransactionsResource.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 15.11.0-beta.1 - 2024-06-06
|
|
4
|
+
* [#2098](https://github.com/stripe/stripe-node/pull/2098) Update generated code for beta
|
|
5
|
+
* Add support for `twint` on `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_options`, and `PaymentIntentUpdateParams.payment_method_options`
|
|
6
|
+
|
|
3
7
|
## 15.10.0-beta.1 - 2024-05-30
|
|
4
8
|
* [#2094](https://github.com/stripe/stripe-node/pull/2094) Update generated code for beta
|
|
5
9
|
* Add support for new values `en-RO` and `ro-RO` on enums `OrderCreateParams.payment.settings.payment_method_options.klarna.preferred_locale` and `OrderUpdateParams.payment.settings.payment_method_options.klarna.preferred_locale`
|
|
6
10
|
|
|
11
|
+
## 15.9.0 - 2024-05-30
|
|
12
|
+
* [#2095](https://github.com/stripe/stripe-node/pull/2095) Update generated code
|
|
13
|
+
* Add support for new value `verification_requires_additional_proof_of_registration` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code`
|
|
14
|
+
* Add support for `default_value` on `Checkout.Session.custom_fields[].dropdown`, `Checkout.Session.custom_fields[].numeric`, `Checkout.Session.custom_fields[].text`, `Checkout.SessionCreateParams.custom_fields[].dropdown`, `Checkout.SessionCreateParams.custom_fields[].numeric`, and `Checkout.SessionCreateParams.custom_fields[].text`
|
|
15
|
+
* Add support for `generated_from` on `ConfirmationToken.payment_method_preview.card` and `PaymentMethod.card`
|
|
16
|
+
* Add support for new values `issuing_personalization_design.activated`, `issuing_personalization_design.deactivated`, `issuing_personalization_design.rejected`, and `issuing_personalization_design.updated` on enum `Event.type`
|
|
17
|
+
* Change `Issuing.Card.personalization_design` and `Issuing.PhysicalBundle.features` to be required
|
|
18
|
+
* Add support for new values `en-RO` and `ro-RO` on enums `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`
|
|
19
|
+
* Add support for new values `issuing_personalization_design.activated`, `issuing_personalization_design.deactivated`, `issuing_personalization_design.rejected`, and `issuing_personalization_design.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
|
|
20
|
+
|
|
7
21
|
## 15.9.0-beta.1 - 2024-05-23
|
|
8
22
|
* [#2093](https://github.com/stripe/stripe-node/pull/2093) Update generated code for beta
|
|
9
23
|
* Change `CreditNoteCreateParams.refunds[].refund`, `CreditNotePreviewLinesParams.refunds[].refund`, and `CreditNotePreviewParams.refunds[].refund` to be optional
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
15.
|
|
1
|
+
15.11.0-beta.1
|
package/cjs/apiVersion.js
CHANGED
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 = '15.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '15.11.0-beta.1';
|
|
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/apiVersion.js
CHANGED
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 = '15.
|
|
34
|
+
Stripe.PACKAGE_VERSION = '15.11.0-beta.1';
|
|
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
package/types/Accounts.d.ts
CHANGED
|
@@ -294,6 +294,11 @@ declare module 'stripe' {
|
|
|
294
294
|
*/
|
|
295
295
|
fpx_payments?: Capabilities.FpxPayments;
|
|
296
296
|
|
|
297
|
+
/**
|
|
298
|
+
* The status of the GB customer_balance payments (GBP currency) capability of the account, or whether the account can directly process GB customer_balance charges.
|
|
299
|
+
*/
|
|
300
|
+
gb_bank_transfer_payments?: Capabilities.GbBankTransferPayments;
|
|
301
|
+
|
|
297
302
|
/**
|
|
298
303
|
* The status of the giropay payments capability of the account, or whether the account can directly process giropay charges.
|
|
299
304
|
*/
|
|
@@ -319,6 +324,11 @@ declare module 'stripe' {
|
|
|
319
324
|
*/
|
|
320
325
|
jcb_payments?: Capabilities.JcbPayments;
|
|
321
326
|
|
|
327
|
+
/**
|
|
328
|
+
* The status of the Japanese customer_balance payments (JPY currency) capability of the account, or whether the account can directly process Japanese customer_balance charges.
|
|
329
|
+
*/
|
|
330
|
+
jp_bank_transfer_payments?: Capabilities.JpBankTransferPayments;
|
|
331
|
+
|
|
322
332
|
/**
|
|
323
333
|
* The status of the Klarna payments capability of the account, or whether the account can directly process Klarna charges.
|
|
324
334
|
*/
|
|
@@ -344,6 +354,11 @@ declare module 'stripe' {
|
|
|
344
354
|
*/
|
|
345
355
|
mobilepay_payments?: Capabilities.MobilepayPayments;
|
|
346
356
|
|
|
357
|
+
/**
|
|
358
|
+
* The status of the Mexican customer_balance payments (MXN currency) capability of the account, or whether the account can directly process Mexican customer_balance charges.
|
|
359
|
+
*/
|
|
360
|
+
mx_bank_transfer_payments?: Capabilities.MxBankTransferPayments;
|
|
361
|
+
|
|
347
362
|
/**
|
|
348
363
|
* The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges.
|
|
349
364
|
*/
|
|
@@ -384,6 +399,11 @@ declare module 'stripe' {
|
|
|
384
399
|
*/
|
|
385
400
|
revolut_pay_payments?: Capabilities.RevolutPayPayments;
|
|
386
401
|
|
|
402
|
+
/**
|
|
403
|
+
* The status of the SEPA customer_balance payments (EUR currency) capability of the account, or whether the account can directly process SEPA customer_balance charges.
|
|
404
|
+
*/
|
|
405
|
+
sepa_bank_transfer_payments?: Capabilities.SepaBankTransferPayments;
|
|
406
|
+
|
|
387
407
|
/**
|
|
388
408
|
* The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.
|
|
389
409
|
*/
|
|
@@ -429,6 +449,11 @@ declare module 'stripe' {
|
|
|
429
449
|
*/
|
|
430
450
|
us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;
|
|
431
451
|
|
|
452
|
+
/**
|
|
453
|
+
* The status of the US customer_balance payments (USD currency) capability of the account, or whether the account can directly process US customer_balance charges.
|
|
454
|
+
*/
|
|
455
|
+
us_bank_transfer_payments?: Capabilities.UsBankTransferPayments;
|
|
456
|
+
|
|
432
457
|
/**
|
|
433
458
|
* The status of the Zip capability of the account, or whether the account can directly process Zip charges.
|
|
434
459
|
*/
|
|
@@ -468,6 +493,8 @@ declare module 'stripe' {
|
|
|
468
493
|
|
|
469
494
|
type FpxPayments = 'active' | 'inactive' | 'pending';
|
|
470
495
|
|
|
496
|
+
type GbBankTransferPayments = 'active' | 'inactive' | 'pending';
|
|
497
|
+
|
|
471
498
|
type GiropayPayments = 'active' | 'inactive' | 'pending';
|
|
472
499
|
|
|
473
500
|
type GrabpayPayments = 'active' | 'inactive' | 'pending';
|
|
@@ -478,6 +505,8 @@ declare module 'stripe' {
|
|
|
478
505
|
|
|
479
506
|
type JcbPayments = 'active' | 'inactive' | 'pending';
|
|
480
507
|
|
|
508
|
+
type JpBankTransferPayments = 'active' | 'inactive' | 'pending';
|
|
509
|
+
|
|
481
510
|
type KlarnaPayments = 'active' | 'inactive' | 'pending';
|
|
482
511
|
|
|
483
512
|
type KonbiniPayments = 'active' | 'inactive' | 'pending';
|
|
@@ -488,6 +517,8 @@ declare module 'stripe' {
|
|
|
488
517
|
|
|
489
518
|
type MobilepayPayments = 'active' | 'inactive' | 'pending';
|
|
490
519
|
|
|
520
|
+
type MxBankTransferPayments = 'active' | 'inactive' | 'pending';
|
|
521
|
+
|
|
491
522
|
type OxxoPayments = 'active' | 'inactive' | 'pending';
|
|
492
523
|
|
|
493
524
|
type P24Payments = 'active' | 'inactive' | 'pending';
|
|
@@ -504,6 +535,8 @@ declare module 'stripe' {
|
|
|
504
535
|
|
|
505
536
|
type RevolutPayPayments = 'active' | 'inactive' | 'pending';
|
|
506
537
|
|
|
538
|
+
type SepaBankTransferPayments = 'active' | 'inactive' | 'pending';
|
|
539
|
+
|
|
507
540
|
type SepaDebitPayments = 'active' | 'inactive' | 'pending';
|
|
508
541
|
|
|
509
542
|
type SofortPayments = 'active' | 'inactive' | 'pending';
|
|
@@ -522,6 +555,8 @@ declare module 'stripe' {
|
|
|
522
555
|
|
|
523
556
|
type UsBankAccountAchPayments = 'active' | 'inactive' | 'pending';
|
|
524
557
|
|
|
558
|
+
type UsBankTransferPayments = 'active' | 'inactive' | 'pending';
|
|
559
|
+
|
|
525
560
|
type ZipPayments = 'active' | 'inactive' | 'pending';
|
|
526
561
|
}
|
|
527
562
|
|
|
@@ -279,6 +279,11 @@ declare module 'stripe' {
|
|
|
279
279
|
*/
|
|
280
280
|
fpx_payments?: Capabilities.FpxPayments;
|
|
281
281
|
|
|
282
|
+
/**
|
|
283
|
+
* The gb_bank_transfer_payments capability.
|
|
284
|
+
*/
|
|
285
|
+
gb_bank_transfer_payments?: Capabilities.GbBankTransferPayments;
|
|
286
|
+
|
|
282
287
|
/**
|
|
283
288
|
* The giropay_payments capability.
|
|
284
289
|
*/
|
|
@@ -304,6 +309,11 @@ declare module 'stripe' {
|
|
|
304
309
|
*/
|
|
305
310
|
jcb_payments?: Capabilities.JcbPayments;
|
|
306
311
|
|
|
312
|
+
/**
|
|
313
|
+
* The jp_bank_transfer_payments capability.
|
|
314
|
+
*/
|
|
315
|
+
jp_bank_transfer_payments?: Capabilities.JpBankTransferPayments;
|
|
316
|
+
|
|
307
317
|
/**
|
|
308
318
|
* The klarna_payments capability.
|
|
309
319
|
*/
|
|
@@ -329,6 +339,11 @@ declare module 'stripe' {
|
|
|
329
339
|
*/
|
|
330
340
|
mobilepay_payments?: Capabilities.MobilepayPayments;
|
|
331
341
|
|
|
342
|
+
/**
|
|
343
|
+
* The mx_bank_transfer_payments capability.
|
|
344
|
+
*/
|
|
345
|
+
mx_bank_transfer_payments?: Capabilities.MxBankTransferPayments;
|
|
346
|
+
|
|
332
347
|
/**
|
|
333
348
|
* The oxxo_payments capability.
|
|
334
349
|
*/
|
|
@@ -369,6 +384,11 @@ declare module 'stripe' {
|
|
|
369
384
|
*/
|
|
370
385
|
revolut_pay_payments?: Capabilities.RevolutPayPayments;
|
|
371
386
|
|
|
387
|
+
/**
|
|
388
|
+
* The sepa_bank_transfer_payments capability.
|
|
389
|
+
*/
|
|
390
|
+
sepa_bank_transfer_payments?: Capabilities.SepaBankTransferPayments;
|
|
391
|
+
|
|
372
392
|
/**
|
|
373
393
|
* The sepa_debit_payments capability.
|
|
374
394
|
*/
|
|
@@ -414,6 +434,11 @@ declare module 'stripe' {
|
|
|
414
434
|
*/
|
|
415
435
|
us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;
|
|
416
436
|
|
|
437
|
+
/**
|
|
438
|
+
* The us_bank_transfer_payments capability.
|
|
439
|
+
*/
|
|
440
|
+
us_bank_transfer_payments?: Capabilities.UsBankTransferPayments;
|
|
441
|
+
|
|
417
442
|
/**
|
|
418
443
|
* The zip_payments capability.
|
|
419
444
|
*/
|
|
@@ -533,6 +558,13 @@ declare module 'stripe' {
|
|
|
533
558
|
requested?: boolean;
|
|
534
559
|
}
|
|
535
560
|
|
|
561
|
+
interface GbBankTransferPayments {
|
|
562
|
+
/**
|
|
563
|
+
* 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.
|
|
564
|
+
*/
|
|
565
|
+
requested?: boolean;
|
|
566
|
+
}
|
|
567
|
+
|
|
536
568
|
interface GiropayPayments {
|
|
537
569
|
/**
|
|
538
570
|
* 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.
|
|
@@ -568,6 +600,13 @@ declare module 'stripe' {
|
|
|
568
600
|
requested?: boolean;
|
|
569
601
|
}
|
|
570
602
|
|
|
603
|
+
interface JpBankTransferPayments {
|
|
604
|
+
/**
|
|
605
|
+
* 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.
|
|
606
|
+
*/
|
|
607
|
+
requested?: boolean;
|
|
608
|
+
}
|
|
609
|
+
|
|
571
610
|
interface KlarnaPayments {
|
|
572
611
|
/**
|
|
573
612
|
* 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.
|
|
@@ -603,6 +642,13 @@ declare module 'stripe' {
|
|
|
603
642
|
requested?: boolean;
|
|
604
643
|
}
|
|
605
644
|
|
|
645
|
+
interface MxBankTransferPayments {
|
|
646
|
+
/**
|
|
647
|
+
* 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.
|
|
648
|
+
*/
|
|
649
|
+
requested?: boolean;
|
|
650
|
+
}
|
|
651
|
+
|
|
606
652
|
interface OxxoPayments {
|
|
607
653
|
/**
|
|
608
654
|
* 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.
|
|
@@ -659,6 +705,13 @@ declare module 'stripe' {
|
|
|
659
705
|
requested?: boolean;
|
|
660
706
|
}
|
|
661
707
|
|
|
708
|
+
interface SepaBankTransferPayments {
|
|
709
|
+
/**
|
|
710
|
+
* 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.
|
|
711
|
+
*/
|
|
712
|
+
requested?: boolean;
|
|
713
|
+
}
|
|
714
|
+
|
|
662
715
|
interface SepaDebitPayments {
|
|
663
716
|
/**
|
|
664
717
|
* 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.
|
|
@@ -722,6 +775,13 @@ declare module 'stripe' {
|
|
|
722
775
|
requested?: boolean;
|
|
723
776
|
}
|
|
724
777
|
|
|
778
|
+
interface UsBankTransferPayments {
|
|
779
|
+
/**
|
|
780
|
+
* 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.
|
|
781
|
+
*/
|
|
782
|
+
requested?: boolean;
|
|
783
|
+
}
|
|
784
|
+
|
|
725
785
|
interface ZipPayments {
|
|
726
786
|
/**
|
|
727
787
|
* 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.
|
|
@@ -1923,6 +1983,11 @@ declare module 'stripe' {
|
|
|
1923
1983
|
*/
|
|
1924
1984
|
fpx_payments?: Capabilities.FpxPayments;
|
|
1925
1985
|
|
|
1986
|
+
/**
|
|
1987
|
+
* The gb_bank_transfer_payments capability.
|
|
1988
|
+
*/
|
|
1989
|
+
gb_bank_transfer_payments?: Capabilities.GbBankTransferPayments;
|
|
1990
|
+
|
|
1926
1991
|
/**
|
|
1927
1992
|
* The giropay_payments capability.
|
|
1928
1993
|
*/
|
|
@@ -1948,6 +2013,11 @@ declare module 'stripe' {
|
|
|
1948
2013
|
*/
|
|
1949
2014
|
jcb_payments?: Capabilities.JcbPayments;
|
|
1950
2015
|
|
|
2016
|
+
/**
|
|
2017
|
+
* The jp_bank_transfer_payments capability.
|
|
2018
|
+
*/
|
|
2019
|
+
jp_bank_transfer_payments?: Capabilities.JpBankTransferPayments;
|
|
2020
|
+
|
|
1951
2021
|
/**
|
|
1952
2022
|
* The klarna_payments capability.
|
|
1953
2023
|
*/
|
|
@@ -1973,6 +2043,11 @@ declare module 'stripe' {
|
|
|
1973
2043
|
*/
|
|
1974
2044
|
mobilepay_payments?: Capabilities.MobilepayPayments;
|
|
1975
2045
|
|
|
2046
|
+
/**
|
|
2047
|
+
* The mx_bank_transfer_payments capability.
|
|
2048
|
+
*/
|
|
2049
|
+
mx_bank_transfer_payments?: Capabilities.MxBankTransferPayments;
|
|
2050
|
+
|
|
1976
2051
|
/**
|
|
1977
2052
|
* The oxxo_payments capability.
|
|
1978
2053
|
*/
|
|
@@ -2013,6 +2088,11 @@ declare module 'stripe' {
|
|
|
2013
2088
|
*/
|
|
2014
2089
|
revolut_pay_payments?: Capabilities.RevolutPayPayments;
|
|
2015
2090
|
|
|
2091
|
+
/**
|
|
2092
|
+
* The sepa_bank_transfer_payments capability.
|
|
2093
|
+
*/
|
|
2094
|
+
sepa_bank_transfer_payments?: Capabilities.SepaBankTransferPayments;
|
|
2095
|
+
|
|
2016
2096
|
/**
|
|
2017
2097
|
* The sepa_debit_payments capability.
|
|
2018
2098
|
*/
|
|
@@ -2058,6 +2138,11 @@ declare module 'stripe' {
|
|
|
2058
2138
|
*/
|
|
2059
2139
|
us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;
|
|
2060
2140
|
|
|
2141
|
+
/**
|
|
2142
|
+
* The us_bank_transfer_payments capability.
|
|
2143
|
+
*/
|
|
2144
|
+
us_bank_transfer_payments?: Capabilities.UsBankTransferPayments;
|
|
2145
|
+
|
|
2061
2146
|
/**
|
|
2062
2147
|
* The zip_payments capability.
|
|
2063
2148
|
*/
|
|
@@ -2177,6 +2262,13 @@ declare module 'stripe' {
|
|
|
2177
2262
|
requested?: boolean;
|
|
2178
2263
|
}
|
|
2179
2264
|
|
|
2265
|
+
interface GbBankTransferPayments {
|
|
2266
|
+
/**
|
|
2267
|
+
* 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.
|
|
2268
|
+
*/
|
|
2269
|
+
requested?: boolean;
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2180
2272
|
interface GiropayPayments {
|
|
2181
2273
|
/**
|
|
2182
2274
|
* 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.
|
|
@@ -2212,6 +2304,13 @@ declare module 'stripe' {
|
|
|
2212
2304
|
requested?: boolean;
|
|
2213
2305
|
}
|
|
2214
2306
|
|
|
2307
|
+
interface JpBankTransferPayments {
|
|
2308
|
+
/**
|
|
2309
|
+
* 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.
|
|
2310
|
+
*/
|
|
2311
|
+
requested?: boolean;
|
|
2312
|
+
}
|
|
2313
|
+
|
|
2215
2314
|
interface KlarnaPayments {
|
|
2216
2315
|
/**
|
|
2217
2316
|
* 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.
|
|
@@ -2247,6 +2346,13 @@ declare module 'stripe' {
|
|
|
2247
2346
|
requested?: boolean;
|
|
2248
2347
|
}
|
|
2249
2348
|
|
|
2349
|
+
interface MxBankTransferPayments {
|
|
2350
|
+
/**
|
|
2351
|
+
* 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.
|
|
2352
|
+
*/
|
|
2353
|
+
requested?: boolean;
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2250
2356
|
interface OxxoPayments {
|
|
2251
2357
|
/**
|
|
2252
2358
|
* 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.
|
|
@@ -2303,6 +2409,13 @@ declare module 'stripe' {
|
|
|
2303
2409
|
requested?: boolean;
|
|
2304
2410
|
}
|
|
2305
2411
|
|
|
2412
|
+
interface SepaBankTransferPayments {
|
|
2413
|
+
/**
|
|
2414
|
+
* 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.
|
|
2415
|
+
*/
|
|
2416
|
+
requested?: boolean;
|
|
2417
|
+
}
|
|
2418
|
+
|
|
2306
2419
|
interface SepaDebitPayments {
|
|
2307
2420
|
/**
|
|
2308
2421
|
* 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.
|
|
@@ -2366,6 +2479,13 @@ declare module 'stripe' {
|
|
|
2366
2479
|
requested?: boolean;
|
|
2367
2480
|
}
|
|
2368
2481
|
|
|
2482
|
+
interface UsBankTransferPayments {
|
|
2483
|
+
/**
|
|
2484
|
+
* 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.
|
|
2485
|
+
*/
|
|
2486
|
+
requested?: boolean;
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2369
2489
|
interface ZipPayments {
|
|
2370
2490
|
/**
|
|
2371
2491
|
* 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.
|
|
@@ -175,7 +175,7 @@ declare module 'stripe' {
|
|
|
175
175
|
mode: Session.Mode;
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
|
-
* The ID of the PaymentIntent for Checkout Sessions in `payment` mode.
|
|
178
|
+
* The ID of the PaymentIntent for Checkout Sessions in `payment` mode. You can't confirm or cancel the PaymentIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
|
|
179
179
|
*/
|
|
180
180
|
payment_intent: string | Stripe.PaymentIntent | null;
|
|
181
181
|
|
|
@@ -234,7 +234,7 @@ declare module 'stripe' {
|
|
|
234
234
|
saved_payment_method_options: Session.SavedPaymentMethodOptions | null;
|
|
235
235
|
|
|
236
236
|
/**
|
|
237
|
-
* The ID of the SetupIntent for Checkout Sessions in `setup` mode.
|
|
237
|
+
* The ID of the SetupIntent for Checkout Sessions in `setup` mode. You can't confirm or cancel the SetupIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
|
|
238
238
|
*/
|
|
239
239
|
setup_intent: string | Stripe.SetupIntent | null;
|
|
240
240
|
|
|
@@ -139,7 +139,7 @@ declare module 'stripe' {
|
|
|
139
139
|
list(options?: RequestOptions): ApiListPromise<Stripe.Climate.Order>;
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
|
-
* Cancels a Climate order. You can cancel an order within
|
|
142
|
+
* Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the
|
|
143
143
|
* reservation amount_subtotal, but not the amount_fees for user-triggered cancellations. Frontier
|
|
144
144
|
* might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe
|
|
145
145
|
* provides 90 days advance notice and refunds the amount_total.
|
package/types/Invoices.d.ts
CHANGED
|
@@ -585,6 +585,7 @@ declare module 'stripe' {
|
|
|
585
585
|
| 'sepa_credit_transfer'
|
|
586
586
|
| 'sepa_debit'
|
|
587
587
|
| 'sofort'
|
|
588
|
+
| 'swish'
|
|
588
589
|
| 'us_bank_account'
|
|
589
590
|
| 'wechat_pay';
|
|
590
591
|
}
|
|
@@ -1341,6 +1342,7 @@ declare module 'stripe' {
|
|
|
1341
1342
|
| 'sepa_credit_transfer'
|
|
1342
1343
|
| 'sepa_debit'
|
|
1343
1344
|
| 'sofort'
|
|
1345
|
+
| 'swish'
|
|
1344
1346
|
| 'us_bank_account'
|
|
1345
1347
|
| 'wechat_pay';
|
|
1346
1348
|
}
|
|
@@ -1643,6 +1643,8 @@ declare module 'stripe' {
|
|
|
1643
1643
|
|
|
1644
1644
|
swish?: PaymentMethodOptions.Swish;
|
|
1645
1645
|
|
|
1646
|
+
twint?: PaymentMethodOptions.Twint;
|
|
1647
|
+
|
|
1646
1648
|
us_bank_account?: PaymentMethodOptions.UsBankAccount;
|
|
1647
1649
|
|
|
1648
1650
|
wechat_pay?: PaymentMethodOptions.WechatPay;
|
|
@@ -2679,6 +2681,17 @@ declare module 'stripe' {
|
|
|
2679
2681
|
setup_future_usage?: 'none';
|
|
2680
2682
|
}
|
|
2681
2683
|
|
|
2684
|
+
interface Twint {
|
|
2685
|
+
/**
|
|
2686
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2687
|
+
*
|
|
2688
|
+
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
2689
|
+
*
|
|
2690
|
+
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
2691
|
+
*/
|
|
2692
|
+
setup_future_usage?: 'none';
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2682
2695
|
interface UsBankAccount {
|
|
2683
2696
|
financial_connections?: UsBankAccount.FinancialConnections;
|
|
2684
2697
|
|
|
@@ -1751,6 +1751,11 @@ declare module 'stripe' {
|
|
|
1751
1751
|
*/
|
|
1752
1752
|
swish?: Stripe.Emptyable<PaymentMethodOptions.Swish>;
|
|
1753
1753
|
|
|
1754
|
+
/**
|
|
1755
|
+
* If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
|
1756
|
+
*/
|
|
1757
|
+
twint?: Stripe.Emptyable<PaymentMethodOptions.Twint>;
|
|
1758
|
+
|
|
1754
1759
|
/**
|
|
1755
1760
|
* If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
|
|
1756
1761
|
*/
|
|
@@ -3066,6 +3071,19 @@ declare module 'stripe' {
|
|
|
3066
3071
|
setup_future_usage?: 'none';
|
|
3067
3072
|
}
|
|
3068
3073
|
|
|
3074
|
+
interface Twint {
|
|
3075
|
+
/**
|
|
3076
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3077
|
+
*
|
|
3078
|
+
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
3079
|
+
*
|
|
3080
|
+
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
3081
|
+
*
|
|
3082
|
+
* If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
|
|
3083
|
+
*/
|
|
3084
|
+
setup_future_usage?: 'none';
|
|
3085
|
+
}
|
|
3086
|
+
|
|
3069
3087
|
interface UsBankAccount {
|
|
3070
3088
|
/**
|
|
3071
3089
|
* Additional fields for Financial Connections Session creation
|
|
@@ -4946,6 +4964,11 @@ declare module 'stripe' {
|
|
|
4946
4964
|
*/
|
|
4947
4965
|
swish?: Stripe.Emptyable<PaymentMethodOptions.Swish>;
|
|
4948
4966
|
|
|
4967
|
+
/**
|
|
4968
|
+
* If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
|
4969
|
+
*/
|
|
4970
|
+
twint?: Stripe.Emptyable<PaymentMethodOptions.Twint>;
|
|
4971
|
+
|
|
4949
4972
|
/**
|
|
4950
4973
|
* If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
|
|
4951
4974
|
*/
|
|
@@ -6261,6 +6284,19 @@ declare module 'stripe' {
|
|
|
6261
6284
|
setup_future_usage?: 'none';
|
|
6262
6285
|
}
|
|
6263
6286
|
|
|
6287
|
+
interface Twint {
|
|
6288
|
+
/**
|
|
6289
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
6290
|
+
*
|
|
6291
|
+
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
6292
|
+
*
|
|
6293
|
+
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
6294
|
+
*
|
|
6295
|
+
* If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
|
|
6296
|
+
*/
|
|
6297
|
+
setup_future_usage?: 'none';
|
|
6298
|
+
}
|
|
6299
|
+
|
|
6264
6300
|
interface UsBankAccount {
|
|
6265
6301
|
/**
|
|
6266
6302
|
* Additional fields for Financial Connections Session creation
|
|
@@ -8903,6 +8939,11 @@ declare module 'stripe' {
|
|
|
8903
8939
|
*/
|
|
8904
8940
|
swish?: Stripe.Emptyable<PaymentMethodOptions.Swish>;
|
|
8905
8941
|
|
|
8942
|
+
/**
|
|
8943
|
+
* If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
|
8944
|
+
*/
|
|
8945
|
+
twint?: Stripe.Emptyable<PaymentMethodOptions.Twint>;
|
|
8946
|
+
|
|
8906
8947
|
/**
|
|
8907
8948
|
* If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
|
|
8908
8949
|
*/
|
|
@@ -10218,6 +10259,19 @@ declare module 'stripe' {
|
|
|
10218
10259
|
setup_future_usage?: 'none';
|
|
10219
10260
|
}
|
|
10220
10261
|
|
|
10262
|
+
interface Twint {
|
|
10263
|
+
/**
|
|
10264
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
10265
|
+
*
|
|
10266
|
+
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
10267
|
+
*
|
|
10268
|
+
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
10269
|
+
*
|
|
10270
|
+
* If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
|
|
10271
|
+
*/
|
|
10272
|
+
setup_future_usage?: 'none';
|
|
10273
|
+
}
|
|
10274
|
+
|
|
10221
10275
|
interface UsBankAccount {
|
|
10222
10276
|
/**
|
|
10223
10277
|
* Additional fields for Financial Connections Session creation
|
|
@@ -4009,7 +4009,7 @@ declare module 'stripe' {
|
|
|
4009
4009
|
/**
|
|
4010
4010
|
* You can cancel a SetupIntent object when it's in one of these statuses: requires_payment_method, requires_confirmation, or requires_action.
|
|
4011
4011
|
*
|
|
4012
|
-
* After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error.
|
|
4012
|
+
* After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can't cancel the SetupIntent for a Checkout Session. [Expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
|
|
4013
4013
|
*/
|
|
4014
4014
|
cancel(
|
|
4015
4015
|
id: string,
|
package/types/Subscriptions.d.ts
CHANGED
|
@@ -937,6 +937,7 @@ declare module 'stripe' {
|
|
|
937
937
|
| 'sepa_credit_transfer'
|
|
938
938
|
| 'sepa_debit'
|
|
939
939
|
| 'sofort'
|
|
940
|
+
| 'swish'
|
|
940
941
|
| 'us_bank_account'
|
|
941
942
|
| 'wechat_pay';
|
|
942
943
|
|
|
@@ -1949,6 +1950,7 @@ declare module 'stripe' {
|
|
|
1949
1950
|
| 'sepa_credit_transfer'
|
|
1950
1951
|
| 'sepa_debit'
|
|
1951
1952
|
| 'sofort'
|
|
1953
|
+
| 'swish'
|
|
1952
1954
|
| 'us_bank_account'
|
|
1953
1955
|
| 'wechat_pay';
|
|
1954
1956
|
|
|
@@ -144,7 +144,7 @@ declare module 'stripe' {
|
|
|
144
144
|
): Promise<Stripe.Response<Stripe.Tax.Transaction>>;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
|
-
* Creates a Tax Transaction from a calculation.
|
|
147
|
+
* Creates a Tax Transaction from a calculation, if that calculation hasn't expired. Calculations expire after 90 days.
|
|
148
148
|
*/
|
|
149
149
|
createFromCalculation(
|
|
150
150
|
params: TransactionCreateFromCalculationParams,
|