stripe 15.10.0 → 15.11.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 +13 -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/Accounts.d.ts +14 -0
- package/types/AccountsResource.d.ts +48 -0
- package/types/BankAccounts.d.ts +1 -2
- package/types/Charges.d.ts +4 -0
- package/types/Checkout/Sessions.d.ts +15 -1
- package/types/Checkout/SessionsResource.d.ts +19 -1
- package/types/ConfirmationTokens.d.ts +10 -0
- package/types/CustomersResource.d.ts +6 -2
- package/types/Invoices.d.ts +2 -1
- package/types/InvoicesResource.d.ts +8 -5
- package/types/PaymentIntents.d.ts +50 -0
- package/types/PaymentIntentsResource.d.ts +156 -0
- package/types/PaymentMethodConfigurations.d.ts +36 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
- package/types/PaymentMethods.d.ts +10 -0
- package/types/PaymentMethodsResource.d.ts +18 -0
- package/types/Refunds.d.ts +14 -0
- package/types/SetupIntentsResource.d.ts +48 -0
- package/types/ShippingRates.d.ts +1 -1
- package/types/ShippingRatesResource.d.ts +1 -1
- package/types/Subscriptions.d.ts +31 -0
- package/types/SubscriptionsResource.d.ts +2 -2
- package/types/Tax/Calculations.d.ts +2 -1
- package/types/Tax/CalculationsResource.d.ts +2 -1
- package/types/Tax/Transactions.d.ts +2 -1
- package/types/TaxIds.d.ts +2 -1
- package/types/TaxIdsResource.d.ts +2 -1
- package/types/Terminal/LocationsResource.d.ts +1 -1
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +16 -0
- package/types/Tokens.d.ts +1 -2
- package/types/TransfersResource.d.ts +1 -1
|
@@ -379,6 +379,11 @@ declare module 'stripe' {
|
|
|
379
379
|
*/
|
|
380
380
|
mobilepay?: PaymentMethodData.Mobilepay;
|
|
381
381
|
|
|
382
|
+
/**
|
|
383
|
+
* If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
|
|
384
|
+
*/
|
|
385
|
+
multibanco?: PaymentMethodData.Multibanco;
|
|
386
|
+
|
|
382
387
|
/**
|
|
383
388
|
* If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
|
|
384
389
|
*/
|
|
@@ -434,6 +439,11 @@ declare module 'stripe' {
|
|
|
434
439
|
*/
|
|
435
440
|
swish?: PaymentMethodData.Swish;
|
|
436
441
|
|
|
442
|
+
/**
|
|
443
|
+
* If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
|
444
|
+
*/
|
|
445
|
+
twint?: PaymentMethodData.Twint;
|
|
446
|
+
|
|
437
447
|
/**
|
|
438
448
|
* The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
|
|
439
449
|
*/
|
|
@@ -688,6 +698,8 @@ declare module 'stripe' {
|
|
|
688
698
|
|
|
689
699
|
interface Mobilepay {}
|
|
690
700
|
|
|
701
|
+
interface Multibanco {}
|
|
702
|
+
|
|
691
703
|
interface Oxxo {}
|
|
692
704
|
|
|
693
705
|
interface P24 {
|
|
@@ -764,6 +776,8 @@ declare module 'stripe' {
|
|
|
764
776
|
|
|
765
777
|
interface Swish {}
|
|
766
778
|
|
|
779
|
+
interface Twint {}
|
|
780
|
+
|
|
767
781
|
type Type =
|
|
768
782
|
| 'acss_debit'
|
|
769
783
|
| 'affirm'
|
|
@@ -786,6 +800,7 @@ declare module 'stripe' {
|
|
|
786
800
|
| 'konbini'
|
|
787
801
|
| 'link'
|
|
788
802
|
| 'mobilepay'
|
|
803
|
+
| 'multibanco'
|
|
789
804
|
| 'oxxo'
|
|
790
805
|
| 'p24'
|
|
791
806
|
| 'paynow'
|
|
@@ -796,6 +811,7 @@ declare module 'stripe' {
|
|
|
796
811
|
| 'sepa_debit'
|
|
797
812
|
| 'sofort'
|
|
798
813
|
| 'swish'
|
|
814
|
+
| 'twint'
|
|
799
815
|
| 'us_bank_account'
|
|
800
816
|
| 'wechat_pay'
|
|
801
817
|
| 'zip';
|
|
@@ -963,6 +979,11 @@ declare module 'stripe' {
|
|
|
963
979
|
*/
|
|
964
980
|
mobilepay?: Stripe.Emptyable<PaymentMethodOptions.Mobilepay>;
|
|
965
981
|
|
|
982
|
+
/**
|
|
983
|
+
* If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options.
|
|
984
|
+
*/
|
|
985
|
+
multibanco?: Stripe.Emptyable<PaymentMethodOptions.Multibanco>;
|
|
986
|
+
|
|
966
987
|
/**
|
|
967
988
|
* If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
|
|
968
989
|
*/
|
|
@@ -1013,6 +1034,11 @@ declare module 'stripe' {
|
|
|
1013
1034
|
*/
|
|
1014
1035
|
swish?: Stripe.Emptyable<PaymentMethodOptions.Swish>;
|
|
1015
1036
|
|
|
1037
|
+
/**
|
|
1038
|
+
* If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
|
1039
|
+
*/
|
|
1040
|
+
twint?: Stripe.Emptyable<PaymentMethodOptions.Twint>;
|
|
1041
|
+
|
|
1016
1042
|
/**
|
|
1017
1043
|
* If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
|
|
1018
1044
|
*/
|
|
@@ -1951,6 +1977,19 @@ declare module 'stripe' {
|
|
|
1951
1977
|
setup_future_usage?: 'none';
|
|
1952
1978
|
}
|
|
1953
1979
|
|
|
1980
|
+
interface Multibanco {
|
|
1981
|
+
/**
|
|
1982
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1983
|
+
*
|
|
1984
|
+
* 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.
|
|
1985
|
+
*
|
|
1986
|
+
* 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).
|
|
1987
|
+
*
|
|
1988
|
+
* 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`.
|
|
1989
|
+
*/
|
|
1990
|
+
setup_future_usage?: 'none';
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1954
1993
|
interface Oxxo {
|
|
1955
1994
|
/**
|
|
1956
1995
|
* The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
|
|
@@ -2193,6 +2232,19 @@ declare module 'stripe' {
|
|
|
2193
2232
|
setup_future_usage?: 'none';
|
|
2194
2233
|
}
|
|
2195
2234
|
|
|
2235
|
+
interface Twint {
|
|
2236
|
+
/**
|
|
2237
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2238
|
+
*
|
|
2239
|
+
* 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.
|
|
2240
|
+
*
|
|
2241
|
+
* 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).
|
|
2242
|
+
*
|
|
2243
|
+
* 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`.
|
|
2244
|
+
*/
|
|
2245
|
+
setup_future_usage?: 'none';
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2196
2248
|
interface UsBankAccount {
|
|
2197
2249
|
/**
|
|
2198
2250
|
* Additional fields for Financial Connections Session creation
|
|
@@ -2642,6 +2694,11 @@ declare module 'stripe' {
|
|
|
2642
2694
|
*/
|
|
2643
2695
|
mobilepay?: PaymentMethodData.Mobilepay;
|
|
2644
2696
|
|
|
2697
|
+
/**
|
|
2698
|
+
* If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
|
|
2699
|
+
*/
|
|
2700
|
+
multibanco?: PaymentMethodData.Multibanco;
|
|
2701
|
+
|
|
2645
2702
|
/**
|
|
2646
2703
|
* If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
|
|
2647
2704
|
*/
|
|
@@ -2697,6 +2754,11 @@ declare module 'stripe' {
|
|
|
2697
2754
|
*/
|
|
2698
2755
|
swish?: PaymentMethodData.Swish;
|
|
2699
2756
|
|
|
2757
|
+
/**
|
|
2758
|
+
* If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
|
2759
|
+
*/
|
|
2760
|
+
twint?: PaymentMethodData.Twint;
|
|
2761
|
+
|
|
2700
2762
|
/**
|
|
2701
2763
|
* The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
|
|
2702
2764
|
*/
|
|
@@ -2951,6 +3013,8 @@ declare module 'stripe' {
|
|
|
2951
3013
|
|
|
2952
3014
|
interface Mobilepay {}
|
|
2953
3015
|
|
|
3016
|
+
interface Multibanco {}
|
|
3017
|
+
|
|
2954
3018
|
interface Oxxo {}
|
|
2955
3019
|
|
|
2956
3020
|
interface P24 {
|
|
@@ -3027,6 +3091,8 @@ declare module 'stripe' {
|
|
|
3027
3091
|
|
|
3028
3092
|
interface Swish {}
|
|
3029
3093
|
|
|
3094
|
+
interface Twint {}
|
|
3095
|
+
|
|
3030
3096
|
type Type =
|
|
3031
3097
|
| 'acss_debit'
|
|
3032
3098
|
| 'affirm'
|
|
@@ -3049,6 +3115,7 @@ declare module 'stripe' {
|
|
|
3049
3115
|
| 'konbini'
|
|
3050
3116
|
| 'link'
|
|
3051
3117
|
| 'mobilepay'
|
|
3118
|
+
| 'multibanco'
|
|
3052
3119
|
| 'oxxo'
|
|
3053
3120
|
| 'p24'
|
|
3054
3121
|
| 'paynow'
|
|
@@ -3059,6 +3126,7 @@ declare module 'stripe' {
|
|
|
3059
3126
|
| 'sepa_debit'
|
|
3060
3127
|
| 'sofort'
|
|
3061
3128
|
| 'swish'
|
|
3129
|
+
| 'twint'
|
|
3062
3130
|
| 'us_bank_account'
|
|
3063
3131
|
| 'wechat_pay'
|
|
3064
3132
|
| 'zip';
|
|
@@ -3226,6 +3294,11 @@ declare module 'stripe' {
|
|
|
3226
3294
|
*/
|
|
3227
3295
|
mobilepay?: Stripe.Emptyable<PaymentMethodOptions.Mobilepay>;
|
|
3228
3296
|
|
|
3297
|
+
/**
|
|
3298
|
+
* If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options.
|
|
3299
|
+
*/
|
|
3300
|
+
multibanco?: Stripe.Emptyable<PaymentMethodOptions.Multibanco>;
|
|
3301
|
+
|
|
3229
3302
|
/**
|
|
3230
3303
|
* If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
|
|
3231
3304
|
*/
|
|
@@ -3276,6 +3349,11 @@ declare module 'stripe' {
|
|
|
3276
3349
|
*/
|
|
3277
3350
|
swish?: Stripe.Emptyable<PaymentMethodOptions.Swish>;
|
|
3278
3351
|
|
|
3352
|
+
/**
|
|
3353
|
+
* If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
|
3354
|
+
*/
|
|
3355
|
+
twint?: Stripe.Emptyable<PaymentMethodOptions.Twint>;
|
|
3356
|
+
|
|
3279
3357
|
/**
|
|
3280
3358
|
* If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
|
|
3281
3359
|
*/
|
|
@@ -4214,6 +4292,19 @@ declare module 'stripe' {
|
|
|
4214
4292
|
setup_future_usage?: 'none';
|
|
4215
4293
|
}
|
|
4216
4294
|
|
|
4295
|
+
interface Multibanco {
|
|
4296
|
+
/**
|
|
4297
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
4298
|
+
*
|
|
4299
|
+
* 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.
|
|
4300
|
+
*
|
|
4301
|
+
* 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).
|
|
4302
|
+
*
|
|
4303
|
+
* 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`.
|
|
4304
|
+
*/
|
|
4305
|
+
setup_future_usage?: 'none';
|
|
4306
|
+
}
|
|
4307
|
+
|
|
4217
4308
|
interface Oxxo {
|
|
4218
4309
|
/**
|
|
4219
4310
|
* The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
|
|
@@ -4456,6 +4547,19 @@ declare module 'stripe' {
|
|
|
4456
4547
|
setup_future_usage?: 'none';
|
|
4457
4548
|
}
|
|
4458
4549
|
|
|
4550
|
+
interface Twint {
|
|
4551
|
+
/**
|
|
4552
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
4553
|
+
*
|
|
4554
|
+
* 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.
|
|
4555
|
+
*
|
|
4556
|
+
* 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).
|
|
4557
|
+
*
|
|
4558
|
+
* 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`.
|
|
4559
|
+
*/
|
|
4560
|
+
setup_future_usage?: 'none';
|
|
4561
|
+
}
|
|
4562
|
+
|
|
4459
4563
|
interface UsBankAccount {
|
|
4460
4564
|
/**
|
|
4461
4565
|
* Additional fields for Financial Connections Session creation
|
|
@@ -5055,6 +5159,11 @@ declare module 'stripe' {
|
|
|
5055
5159
|
*/
|
|
5056
5160
|
mobilepay?: PaymentMethodData.Mobilepay;
|
|
5057
5161
|
|
|
5162
|
+
/**
|
|
5163
|
+
* If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
|
|
5164
|
+
*/
|
|
5165
|
+
multibanco?: PaymentMethodData.Multibanco;
|
|
5166
|
+
|
|
5058
5167
|
/**
|
|
5059
5168
|
* If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
|
|
5060
5169
|
*/
|
|
@@ -5110,6 +5219,11 @@ declare module 'stripe' {
|
|
|
5110
5219
|
*/
|
|
5111
5220
|
swish?: PaymentMethodData.Swish;
|
|
5112
5221
|
|
|
5222
|
+
/**
|
|
5223
|
+
* If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
|
5224
|
+
*/
|
|
5225
|
+
twint?: PaymentMethodData.Twint;
|
|
5226
|
+
|
|
5113
5227
|
/**
|
|
5114
5228
|
* The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
|
|
5115
5229
|
*/
|
|
@@ -5364,6 +5478,8 @@ declare module 'stripe' {
|
|
|
5364
5478
|
|
|
5365
5479
|
interface Mobilepay {}
|
|
5366
5480
|
|
|
5481
|
+
interface Multibanco {}
|
|
5482
|
+
|
|
5367
5483
|
interface Oxxo {}
|
|
5368
5484
|
|
|
5369
5485
|
interface P24 {
|
|
@@ -5440,6 +5556,8 @@ declare module 'stripe' {
|
|
|
5440
5556
|
|
|
5441
5557
|
interface Swish {}
|
|
5442
5558
|
|
|
5559
|
+
interface Twint {}
|
|
5560
|
+
|
|
5443
5561
|
type Type =
|
|
5444
5562
|
| 'acss_debit'
|
|
5445
5563
|
| 'affirm'
|
|
@@ -5462,6 +5580,7 @@ declare module 'stripe' {
|
|
|
5462
5580
|
| 'konbini'
|
|
5463
5581
|
| 'link'
|
|
5464
5582
|
| 'mobilepay'
|
|
5583
|
+
| 'multibanco'
|
|
5465
5584
|
| 'oxxo'
|
|
5466
5585
|
| 'p24'
|
|
5467
5586
|
| 'paynow'
|
|
@@ -5472,6 +5591,7 @@ declare module 'stripe' {
|
|
|
5472
5591
|
| 'sepa_debit'
|
|
5473
5592
|
| 'sofort'
|
|
5474
5593
|
| 'swish'
|
|
5594
|
+
| 'twint'
|
|
5475
5595
|
| 'us_bank_account'
|
|
5476
5596
|
| 'wechat_pay'
|
|
5477
5597
|
| 'zip';
|
|
@@ -5639,6 +5759,11 @@ declare module 'stripe' {
|
|
|
5639
5759
|
*/
|
|
5640
5760
|
mobilepay?: Stripe.Emptyable<PaymentMethodOptions.Mobilepay>;
|
|
5641
5761
|
|
|
5762
|
+
/**
|
|
5763
|
+
* If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options.
|
|
5764
|
+
*/
|
|
5765
|
+
multibanco?: Stripe.Emptyable<PaymentMethodOptions.Multibanco>;
|
|
5766
|
+
|
|
5642
5767
|
/**
|
|
5643
5768
|
* If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
|
|
5644
5769
|
*/
|
|
@@ -5689,6 +5814,11 @@ declare module 'stripe' {
|
|
|
5689
5814
|
*/
|
|
5690
5815
|
swish?: Stripe.Emptyable<PaymentMethodOptions.Swish>;
|
|
5691
5816
|
|
|
5817
|
+
/**
|
|
5818
|
+
* If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
|
5819
|
+
*/
|
|
5820
|
+
twint?: Stripe.Emptyable<PaymentMethodOptions.Twint>;
|
|
5821
|
+
|
|
5692
5822
|
/**
|
|
5693
5823
|
* If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
|
|
5694
5824
|
*/
|
|
@@ -6627,6 +6757,19 @@ declare module 'stripe' {
|
|
|
6627
6757
|
setup_future_usage?: 'none';
|
|
6628
6758
|
}
|
|
6629
6759
|
|
|
6760
|
+
interface Multibanco {
|
|
6761
|
+
/**
|
|
6762
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
6763
|
+
*
|
|
6764
|
+
* 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.
|
|
6765
|
+
*
|
|
6766
|
+
* 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).
|
|
6767
|
+
*
|
|
6768
|
+
* 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`.
|
|
6769
|
+
*/
|
|
6770
|
+
setup_future_usage?: 'none';
|
|
6771
|
+
}
|
|
6772
|
+
|
|
6630
6773
|
interface Oxxo {
|
|
6631
6774
|
/**
|
|
6632
6775
|
* The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
|
|
@@ -6869,6 +7012,19 @@ declare module 'stripe' {
|
|
|
6869
7012
|
setup_future_usage?: 'none';
|
|
6870
7013
|
}
|
|
6871
7014
|
|
|
7015
|
+
interface Twint {
|
|
7016
|
+
/**
|
|
7017
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
7018
|
+
*
|
|
7019
|
+
* 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.
|
|
7020
|
+
*
|
|
7021
|
+
* 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).
|
|
7022
|
+
*
|
|
7023
|
+
* 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`.
|
|
7024
|
+
*/
|
|
7025
|
+
setup_future_usage?: 'none';
|
|
7026
|
+
}
|
|
7027
|
+
|
|
6872
7028
|
interface UsBankAccount {
|
|
6873
7029
|
/**
|
|
6874
7030
|
* Additional fields for Financial Connections Session creation
|
|
@@ -101,6 +101,8 @@ declare module 'stripe' {
|
|
|
101
101
|
|
|
102
102
|
mobilepay?: PaymentMethodConfiguration.Mobilepay;
|
|
103
103
|
|
|
104
|
+
multibanco?: PaymentMethodConfiguration.Multibanco;
|
|
105
|
+
|
|
104
106
|
/**
|
|
105
107
|
* The configuration's name.
|
|
106
108
|
*/
|
|
@@ -1021,6 +1023,40 @@ declare module 'stripe' {
|
|
|
1021
1023
|
}
|
|
1022
1024
|
}
|
|
1023
1025
|
|
|
1026
|
+
interface Multibanco {
|
|
1027
|
+
/**
|
|
1028
|
+
* Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
|
|
1029
|
+
*/
|
|
1030
|
+
available: boolean;
|
|
1031
|
+
|
|
1032
|
+
display_preference: Multibanco.DisplayPreference;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
namespace Multibanco {
|
|
1036
|
+
interface DisplayPreference {
|
|
1037
|
+
/**
|
|
1038
|
+
* For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
|
|
1039
|
+
*/
|
|
1040
|
+
overridable: boolean | null;
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* The account's display preference.
|
|
1044
|
+
*/
|
|
1045
|
+
preference: DisplayPreference.Preference;
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* The effective display preference value.
|
|
1049
|
+
*/
|
|
1050
|
+
value: DisplayPreference.Value;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
namespace DisplayPreference {
|
|
1054
|
+
type Preference = 'none' | 'off' | 'on';
|
|
1055
|
+
|
|
1056
|
+
type Value = 'off' | 'on';
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1024
1060
|
interface Oxxo {
|
|
1025
1061
|
/**
|
|
1026
1062
|
* Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
|
|
@@ -143,6 +143,11 @@ declare module 'stripe' {
|
|
|
143
143
|
*/
|
|
144
144
|
mobilepay?: PaymentMethodConfigurationCreateParams.Mobilepay;
|
|
145
145
|
|
|
146
|
+
/**
|
|
147
|
+
* Stripe users in Europe and the United States can accept Multibanco payments from customers in Portugal using [Sources](https://stripe.com/docs/sources)—a single integration path for creating payments using any supported method.
|
|
148
|
+
*/
|
|
149
|
+
multibanco?: PaymentMethodConfigurationCreateParams.Multibanco;
|
|
150
|
+
|
|
146
151
|
/**
|
|
147
152
|
* Configuration name.
|
|
148
153
|
*/
|
|
@@ -755,6 +760,26 @@ declare module 'stripe' {
|
|
|
755
760
|
}
|
|
756
761
|
}
|
|
757
762
|
|
|
763
|
+
interface Multibanco {
|
|
764
|
+
/**
|
|
765
|
+
* Whether or not the payment method should be displayed.
|
|
766
|
+
*/
|
|
767
|
+
display_preference?: Multibanco.DisplayPreference;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
namespace Multibanco {
|
|
771
|
+
interface DisplayPreference {
|
|
772
|
+
/**
|
|
773
|
+
* The account's preference for whether or not to display this payment method.
|
|
774
|
+
*/
|
|
775
|
+
preference?: DisplayPreference.Preference;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
namespace DisplayPreference {
|
|
779
|
+
type Preference = 'none' | 'off' | 'on';
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
|
|
758
783
|
interface Oxxo {
|
|
759
784
|
/**
|
|
760
785
|
* Whether or not the payment method should be displayed.
|
|
@@ -1149,6 +1174,11 @@ declare module 'stripe' {
|
|
|
1149
1174
|
*/
|
|
1150
1175
|
mobilepay?: PaymentMethodConfigurationUpdateParams.Mobilepay;
|
|
1151
1176
|
|
|
1177
|
+
/**
|
|
1178
|
+
* Stripe users in Europe and the United States can accept Multibanco payments from customers in Portugal using [Sources](https://stripe.com/docs/sources)—a single integration path for creating payments using any supported method.
|
|
1179
|
+
*/
|
|
1180
|
+
multibanco?: PaymentMethodConfigurationUpdateParams.Multibanco;
|
|
1181
|
+
|
|
1152
1182
|
/**
|
|
1153
1183
|
* Configuration name.
|
|
1154
1184
|
*/
|
|
@@ -1756,6 +1786,26 @@ declare module 'stripe' {
|
|
|
1756
1786
|
}
|
|
1757
1787
|
}
|
|
1758
1788
|
|
|
1789
|
+
interface Multibanco {
|
|
1790
|
+
/**
|
|
1791
|
+
* Whether or not the payment method should be displayed.
|
|
1792
|
+
*/
|
|
1793
|
+
display_preference?: Multibanco.DisplayPreference;
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
namespace Multibanco {
|
|
1797
|
+
interface DisplayPreference {
|
|
1798
|
+
/**
|
|
1799
|
+
* The account's preference for whether or not to display this payment method.
|
|
1800
|
+
*/
|
|
1801
|
+
preference?: DisplayPreference.Preference;
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
namespace DisplayPreference {
|
|
1805
|
+
type Preference = 'none' | 'off' | 'on';
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1759
1809
|
interface Oxxo {
|
|
1760
1810
|
/**
|
|
1761
1811
|
* Whether or not the payment method should be displayed.
|
|
@@ -95,6 +95,8 @@ declare module 'stripe' {
|
|
|
95
95
|
|
|
96
96
|
mobilepay?: PaymentMethod.Mobilepay;
|
|
97
97
|
|
|
98
|
+
multibanco?: PaymentMethod.Multibanco;
|
|
99
|
+
|
|
98
100
|
oxxo?: PaymentMethod.Oxxo;
|
|
99
101
|
|
|
100
102
|
p24?: PaymentMethod.P24;
|
|
@@ -120,6 +122,8 @@ declare module 'stripe' {
|
|
|
120
122
|
|
|
121
123
|
swish?: PaymentMethod.Swish;
|
|
122
124
|
|
|
125
|
+
twint?: PaymentMethod.Twint;
|
|
126
|
+
|
|
123
127
|
/**
|
|
124
128
|
* The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
|
|
125
129
|
*/
|
|
@@ -1046,6 +1050,8 @@ declare module 'stripe' {
|
|
|
1046
1050
|
|
|
1047
1051
|
interface Mobilepay {}
|
|
1048
1052
|
|
|
1053
|
+
interface Multibanco {}
|
|
1054
|
+
|
|
1049
1055
|
interface Oxxo {}
|
|
1050
1056
|
|
|
1051
1057
|
interface P24 {
|
|
@@ -1168,6 +1174,8 @@ declare module 'stripe' {
|
|
|
1168
1174
|
|
|
1169
1175
|
interface Swish {}
|
|
1170
1176
|
|
|
1177
|
+
interface Twint {}
|
|
1178
|
+
|
|
1171
1179
|
type Type =
|
|
1172
1180
|
| 'acss_debit'
|
|
1173
1181
|
| 'affirm'
|
|
@@ -1193,6 +1201,7 @@ declare module 'stripe' {
|
|
|
1193
1201
|
| 'konbini'
|
|
1194
1202
|
| 'link'
|
|
1195
1203
|
| 'mobilepay'
|
|
1204
|
+
| 'multibanco'
|
|
1196
1205
|
| 'oxxo'
|
|
1197
1206
|
| 'p24'
|
|
1198
1207
|
| 'paynow'
|
|
@@ -1203,6 +1212,7 @@ declare module 'stripe' {
|
|
|
1203
1212
|
| 'sepa_debit'
|
|
1204
1213
|
| 'sofort'
|
|
1205
1214
|
| 'swish'
|
|
1215
|
+
| 'twint'
|
|
1206
1216
|
| 'us_bank_account'
|
|
1207
1217
|
| 'wechat_pay'
|
|
1208
1218
|
| 'zip';
|
|
@@ -143,6 +143,11 @@ declare module 'stripe' {
|
|
|
143
143
|
*/
|
|
144
144
|
mobilepay?: PaymentMethodCreateParams.Mobilepay;
|
|
145
145
|
|
|
146
|
+
/**
|
|
147
|
+
* If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
|
|
148
|
+
*/
|
|
149
|
+
multibanco?: PaymentMethodCreateParams.Multibanco;
|
|
150
|
+
|
|
146
151
|
/**
|
|
147
152
|
* If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
|
|
148
153
|
*/
|
|
@@ -203,6 +208,11 @@ declare module 'stripe' {
|
|
|
203
208
|
*/
|
|
204
209
|
swish?: PaymentMethodCreateParams.Swish;
|
|
205
210
|
|
|
211
|
+
/**
|
|
212
|
+
* If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
|
213
|
+
*/
|
|
214
|
+
twint?: PaymentMethodCreateParams.Twint;
|
|
215
|
+
|
|
206
216
|
/**
|
|
207
217
|
* The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
|
|
208
218
|
*/
|
|
@@ -504,6 +514,8 @@ declare module 'stripe' {
|
|
|
504
514
|
|
|
505
515
|
interface Mobilepay {}
|
|
506
516
|
|
|
517
|
+
interface Multibanco {}
|
|
518
|
+
|
|
507
519
|
interface Oxxo {}
|
|
508
520
|
|
|
509
521
|
interface P24 {
|
|
@@ -580,6 +592,8 @@ declare module 'stripe' {
|
|
|
580
592
|
|
|
581
593
|
interface Swish {}
|
|
582
594
|
|
|
595
|
+
interface Twint {}
|
|
596
|
+
|
|
583
597
|
type Type =
|
|
584
598
|
| 'acss_debit'
|
|
585
599
|
| 'affirm'
|
|
@@ -603,6 +617,7 @@ declare module 'stripe' {
|
|
|
603
617
|
| 'konbini'
|
|
604
618
|
| 'link'
|
|
605
619
|
| 'mobilepay'
|
|
620
|
+
| 'multibanco'
|
|
606
621
|
| 'oxxo'
|
|
607
622
|
| 'p24'
|
|
608
623
|
| 'paynow'
|
|
@@ -613,6 +628,7 @@ declare module 'stripe' {
|
|
|
613
628
|
| 'sepa_debit'
|
|
614
629
|
| 'sofort'
|
|
615
630
|
| 'swish'
|
|
631
|
+
| 'twint'
|
|
616
632
|
| 'us_bank_account'
|
|
617
633
|
| 'wechat_pay'
|
|
618
634
|
| 'zip';
|
|
@@ -816,6 +832,7 @@ declare module 'stripe' {
|
|
|
816
832
|
| 'konbini'
|
|
817
833
|
| 'link'
|
|
818
834
|
| 'mobilepay'
|
|
835
|
+
| 'multibanco'
|
|
819
836
|
| 'oxxo'
|
|
820
837
|
| 'p24'
|
|
821
838
|
| 'paynow'
|
|
@@ -826,6 +843,7 @@ declare module 'stripe' {
|
|
|
826
843
|
| 'sepa_debit'
|
|
827
844
|
| 'sofort'
|
|
828
845
|
| 'swish'
|
|
846
|
+
| 'twint'
|
|
829
847
|
| 'us_bank_account'
|
|
830
848
|
| 'wechat_pay'
|
|
831
849
|
| 'zip';
|
package/types/Refunds.d.ts
CHANGED
|
@@ -141,6 +141,8 @@ declare module 'stripe' {
|
|
|
141
141
|
|
|
142
142
|
klarna?: DestinationDetails.Klarna;
|
|
143
143
|
|
|
144
|
+
multibanco?: DestinationDetails.Multibanco;
|
|
145
|
+
|
|
144
146
|
mx_bank_transfer?: DestinationDetails.MxBankTransfer;
|
|
145
147
|
|
|
146
148
|
p24?: DestinationDetails.P24;
|
|
@@ -280,6 +282,18 @@ declare module 'stripe' {
|
|
|
280
282
|
|
|
281
283
|
interface Klarna {}
|
|
282
284
|
|
|
285
|
+
interface Multibanco {
|
|
286
|
+
/**
|
|
287
|
+
* The reference assigned to the refund.
|
|
288
|
+
*/
|
|
289
|
+
reference: string | null;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.
|
|
293
|
+
*/
|
|
294
|
+
reference_status: string | null;
|
|
295
|
+
}
|
|
296
|
+
|
|
283
297
|
interface MxBankTransfer {
|
|
284
298
|
/**
|
|
285
299
|
* The reference assigned to the refund.
|