stripe 17.7.0 → 18.0.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.
Files changed (99) hide show
  1. package/CHANGELOG.md +139 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/apiVersion.js +1 -1
  5. package/cjs/resources/InvoicePayments.js +17 -0
  6. package/cjs/resources/Invoices.js +0 -9
  7. package/cjs/resources/SubscriptionItems.js +0 -9
  8. package/cjs/resources.js +4 -2
  9. package/cjs/stripe.core.js +3 -14
  10. package/esm/apiVersion.js +1 -1
  11. package/esm/resources/InvoicePayments.js +14 -0
  12. package/esm/resources/Invoices.js +0 -9
  13. package/esm/resources/SubscriptionItems.js +0 -9
  14. package/esm/resources.js +1 -0
  15. package/esm/stripe.core.js +3 -14
  16. package/package.json +1 -1
  17. package/types/Accounts.d.ts +47 -6
  18. package/types/AccountsResource.d.ts +110 -3
  19. package/types/ApplicationFees.d.ts +1 -1
  20. package/types/BalanceTransactions.d.ts +3 -1
  21. package/types/BalanceTransactionsResource.d.ts +1 -1
  22. package/types/BankAccounts.d.ts +9 -1
  23. package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
  24. package/types/Billing/CreditGrants.d.ts +2 -2
  25. package/types/Billing/CreditGrantsResource.d.ts +2 -2
  26. package/types/Billing/Meters.d.ts +1 -1
  27. package/types/Billing/MetersResource.d.ts +2 -2
  28. package/types/Capabilities.d.ts +8 -0
  29. package/types/Cards.d.ts +1 -4
  30. package/types/Charges.d.ts +56 -5
  31. package/types/ChargesResource.d.ts +1 -1
  32. package/types/Checkout/Sessions.d.ts +77 -53
  33. package/types/Checkout/SessionsResource.d.ts +232 -15
  34. package/types/ConfirmationTokens.d.ts +50 -0
  35. package/types/CreditNoteLineItems.d.ts +24 -22
  36. package/types/CreditNotes.d.ts +39 -15
  37. package/types/CreditNotesResource.d.ts +48 -12
  38. package/types/CustomerBalanceTransactions.d.ts +8 -1
  39. package/types/Customers.d.ts +3 -3
  40. package/types/CustomersResource.d.ts +3 -14
  41. package/types/EventTypes.d.ts +138 -2
  42. package/types/Events.d.ts +9 -1
  43. package/types/Identity/VerificationSessions.d.ts +1 -1
  44. package/types/Identity/VerificationSessionsResource.d.ts +1 -1
  45. package/types/InvoiceItems.d.ts +60 -26
  46. package/types/InvoiceItemsResource.d.ts +26 -22
  47. package/types/InvoiceLineItems.d.ts +160 -70
  48. package/types/InvoicePayments.d.ts +99 -0
  49. package/types/InvoicePaymentsResource.d.ts +74 -0
  50. package/types/Invoices.d.ts +97 -83
  51. package/types/InvoicesResource.d.ts +239 -2846
  52. package/types/Issuing/Authorizations.d.ts +2 -1
  53. package/types/Issuing/AuthorizationsResource.d.ts +1 -1
  54. package/types/Mandates.d.ts +8 -0
  55. package/types/PaymentIntents.d.ts +59 -8
  56. package/types/PaymentIntentsResource.d.ts +293 -8
  57. package/types/PaymentLinks.d.ts +49 -0
  58. package/types/PaymentLinksResource.d.ts +77 -0
  59. package/types/PaymentMethodConfigurations.d.ts +108 -0
  60. package/types/PaymentMethodConfigurationsResource.d.ts +150 -0
  61. package/types/PaymentMethodDomainsResource.d.ts +6 -6
  62. package/types/PaymentMethods.d.ts +50 -0
  63. package/types/PaymentMethodsResource.d.ts +54 -16
  64. package/types/Persons.d.ts +17 -9
  65. package/types/Plans.d.ts +0 -7
  66. package/types/PlansResource.d.ts +0 -7
  67. package/types/Prices.d.ts +0 -11
  68. package/types/PricesResource.d.ts +2 -13
  69. package/types/QuotesResource.d.ts +2 -2
  70. package/types/Refunds.d.ts +18 -0
  71. package/types/Reviews.d.ts +3 -2
  72. package/types/SetupAttempts.d.ts +15 -0
  73. package/types/SetupIntents.d.ts +2 -0
  74. package/types/SetupIntentsResource.d.ts +155 -0
  75. package/types/SubscriptionItems.d.ts +9 -13
  76. package/types/SubscriptionItemsResource.d.ts +2 -94
  77. package/types/SubscriptionSchedules.d.ts +0 -51
  78. package/types/SubscriptionSchedulesResource.d.ts +4 -110
  79. package/types/Subscriptions.d.ts +3 -33
  80. package/types/SubscriptionsResource.d.ts +8 -86
  81. package/types/Tax/Calculations.d.ts +1 -1
  82. package/types/Tax/RegistrationsResource.d.ts +1 -1
  83. package/types/TaxRates.d.ts +1 -1
  84. package/types/Terminal/Configurations.d.ts +86 -3
  85. package/types/Terminal/ConfigurationsResource.d.ts +192 -2
  86. package/types/TestHelpers/ConfirmationTokensResource.d.ts +51 -0
  87. package/types/TokensResource.d.ts +6 -1
  88. package/types/Treasury/FinancialAccountsResource.d.ts +1 -1
  89. package/types/V2/Core/EventDestinationsResource.d.ts +0 -5
  90. package/types/V2/Core/EventsResource.d.ts +0 -5
  91. package/types/V2/EventDestinations.d.ts +1 -1
  92. package/types/V2/Events.d.ts +1 -1
  93. package/types/WebhookEndpointsResource.d.ts +21 -3
  94. package/types/index.d.ts +3 -3
  95. package/types/lib.d.ts +1 -1
  96. package/types/test/typescriptTest.ts +3 -6
  97. package/types/Deprecations.d.ts +0 -215
  98. package/types/UsageRecordSummaries.d.ts +0 -56
  99. package/types/UsageRecords.d.ts +0 -45
@@ -14,7 +14,7 @@ declare module 'stripe' {
14
14
  currency: string;
15
15
 
16
16
  /**
17
- * The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
17
+ * The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
18
18
  */
19
19
  application_fee_amount?: number;
20
20
 
@@ -308,6 +308,11 @@ declare module 'stripe' {
308
308
  */
309
309
  bancontact?: PaymentMethodData.Bancontact;
310
310
 
311
+ /**
312
+ * If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
313
+ */
314
+ billie?: PaymentMethodData.Billie;
315
+
311
316
  /**
312
317
  * Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
313
318
  */
@@ -408,6 +413,11 @@ declare module 'stripe' {
408
413
  */
409
414
  naver_pay?: PaymentMethodData.NaverPay;
410
415
 
416
+ /**
417
+ * If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
418
+ */
419
+ nz_bank_account?: PaymentMethodData.NzBankAccount;
420
+
411
421
  /**
412
422
  * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
413
423
  */
@@ -463,6 +473,11 @@ declare module 'stripe' {
463
473
  */
464
474
  samsung_pay?: PaymentMethodData.SamsungPay;
465
475
 
476
+ /**
477
+ * If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
478
+ */
479
+ satispay?: PaymentMethodData.Satispay;
480
+
466
481
  /**
467
482
  * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
468
483
  */
@@ -560,6 +575,8 @@ declare module 'stripe' {
560
575
 
561
576
  interface Bancontact {}
562
577
 
578
+ interface Billie {}
579
+
563
580
  interface BillingDetails {
564
581
  /**
565
582
  * Billing address.
@@ -756,6 +773,35 @@ declare module 'stripe' {
756
773
  type Funding = 'card' | 'points';
757
774
  }
758
775
 
776
+ interface NzBankAccount {
777
+ /**
778
+ * The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details.
779
+ */
780
+ account_holder_name?: string;
781
+
782
+ /**
783
+ * The account number for the bank account.
784
+ */
785
+ account_number: string;
786
+
787
+ /**
788
+ * The numeric code for the bank account's bank.
789
+ */
790
+ bank_code: string;
791
+
792
+ /**
793
+ * The numeric code for the bank account's bank branch.
794
+ */
795
+ branch_code: string;
796
+
797
+ reference?: string;
798
+
799
+ /**
800
+ * The suffix of the bank account number.
801
+ */
802
+ suffix: string;
803
+ }
804
+
759
805
  interface Oxxo {}
760
806
 
761
807
  interface P24 {
@@ -818,6 +864,8 @@ declare module 'stripe' {
818
864
 
819
865
  interface SamsungPay {}
820
866
 
867
+ interface Satispay {}
868
+
821
869
  interface SepaDebit {
822
870
  /**
823
871
  * IBAN of the bank account.
@@ -850,6 +898,7 @@ declare module 'stripe' {
850
898
  | 'au_becs_debit'
851
899
  | 'bacs_debit'
852
900
  | 'bancontact'
901
+ | 'billie'
853
902
  | 'blik'
854
903
  | 'boleto'
855
904
  | 'cashapp'
@@ -867,6 +916,7 @@ declare module 'stripe' {
867
916
  | 'mobilepay'
868
917
  | 'multibanco'
869
918
  | 'naver_pay'
919
+ | 'nz_bank_account'
870
920
  | 'oxxo'
871
921
  | 'p24'
872
922
  | 'pay_by_bank'
@@ -877,6 +927,7 @@ declare module 'stripe' {
877
927
  | 'promptpay'
878
928
  | 'revolut_pay'
879
929
  | 'samsung_pay'
930
+ | 'satispay'
880
931
  | 'sepa_debit'
881
932
  | 'sofort'
882
933
  | 'swish'
@@ -1073,6 +1124,11 @@ declare module 'stripe' {
1073
1124
  */
1074
1125
  naver_pay?: Stripe.Emptyable<PaymentMethodOptions.NaverPay>;
1075
1126
 
1127
+ /**
1128
+ * If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options.
1129
+ */
1130
+ nz_bank_account?: Stripe.Emptyable<PaymentMethodOptions.NzBankAccount>;
1131
+
1076
1132
  /**
1077
1133
  * If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
1078
1134
  */
@@ -2241,6 +2297,45 @@ declare module 'stripe' {
2241
2297
  * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
2242
2298
  */
2243
2299
  capture_method?: Stripe.Emptyable<'manual'>;
2300
+
2301
+ /**
2302
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2303
+ *
2304
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2305
+ *
2306
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2307
+ *
2308
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
2309
+ */
2310
+ setup_future_usage?: Stripe.Emptyable<NaverPay.SetupFutureUsage>;
2311
+ }
2312
+
2313
+ namespace NaverPay {
2314
+ type SetupFutureUsage = 'none' | 'off_session';
2315
+ }
2316
+
2317
+ interface NzBankAccount {
2318
+ /**
2319
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2320
+ *
2321
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2322
+ *
2323
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2324
+ *
2325
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
2326
+ *
2327
+ * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2328
+ */
2329
+ setup_future_usage?: Stripe.Emptyable<NzBankAccount.SetupFutureUsage>;
2330
+
2331
+ /**
2332
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
2333
+ */
2334
+ target_date?: string;
2335
+ }
2336
+
2337
+ namespace NzBankAccount {
2338
+ type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
2244
2339
  }
2245
2340
 
2246
2341
  interface Oxxo {
@@ -2679,7 +2774,7 @@ declare module 'stripe' {
2679
2774
  /**
2680
2775
  * The client type that the end customer will pay from
2681
2776
  */
2682
- client: WechatPay.Client;
2777
+ client?: WechatPay.Client;
2683
2778
 
2684
2779
  /**
2685
2780
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2792,7 +2887,7 @@ declare module 'stripe' {
2792
2887
  amount?: number;
2793
2888
 
2794
2889
  /**
2795
- * The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
2890
+ * The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
2796
2891
  */
2797
2892
  application_fee_amount?: Stripe.Emptyable<number>;
2798
2893
 
@@ -2959,6 +3054,11 @@ declare module 'stripe' {
2959
3054
  */
2960
3055
  bancontact?: PaymentMethodData.Bancontact;
2961
3056
 
3057
+ /**
3058
+ * If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
3059
+ */
3060
+ billie?: PaymentMethodData.Billie;
3061
+
2962
3062
  /**
2963
3063
  * Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
2964
3064
  */
@@ -3059,6 +3159,11 @@ declare module 'stripe' {
3059
3159
  */
3060
3160
  naver_pay?: PaymentMethodData.NaverPay;
3061
3161
 
3162
+ /**
3163
+ * If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
3164
+ */
3165
+ nz_bank_account?: PaymentMethodData.NzBankAccount;
3166
+
3062
3167
  /**
3063
3168
  * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
3064
3169
  */
@@ -3114,6 +3219,11 @@ declare module 'stripe' {
3114
3219
  */
3115
3220
  samsung_pay?: PaymentMethodData.SamsungPay;
3116
3221
 
3222
+ /**
3223
+ * If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
3224
+ */
3225
+ satispay?: PaymentMethodData.Satispay;
3226
+
3117
3227
  /**
3118
3228
  * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
3119
3229
  */
@@ -3211,6 +3321,8 @@ declare module 'stripe' {
3211
3321
 
3212
3322
  interface Bancontact {}
3213
3323
 
3324
+ interface Billie {}
3325
+
3214
3326
  interface BillingDetails {
3215
3327
  /**
3216
3328
  * Billing address.
@@ -3407,6 +3519,35 @@ declare module 'stripe' {
3407
3519
  type Funding = 'card' | 'points';
3408
3520
  }
3409
3521
 
3522
+ interface NzBankAccount {
3523
+ /**
3524
+ * The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details.
3525
+ */
3526
+ account_holder_name?: string;
3527
+
3528
+ /**
3529
+ * The account number for the bank account.
3530
+ */
3531
+ account_number: string;
3532
+
3533
+ /**
3534
+ * The numeric code for the bank account's bank.
3535
+ */
3536
+ bank_code: string;
3537
+
3538
+ /**
3539
+ * The numeric code for the bank account's bank branch.
3540
+ */
3541
+ branch_code: string;
3542
+
3543
+ reference?: string;
3544
+
3545
+ /**
3546
+ * The suffix of the bank account number.
3547
+ */
3548
+ suffix: string;
3549
+ }
3550
+
3410
3551
  interface Oxxo {}
3411
3552
 
3412
3553
  interface P24 {
@@ -3469,6 +3610,8 @@ declare module 'stripe' {
3469
3610
 
3470
3611
  interface SamsungPay {}
3471
3612
 
3613
+ interface Satispay {}
3614
+
3472
3615
  interface SepaDebit {
3473
3616
  /**
3474
3617
  * IBAN of the bank account.
@@ -3501,6 +3644,7 @@ declare module 'stripe' {
3501
3644
  | 'au_becs_debit'
3502
3645
  | 'bacs_debit'
3503
3646
  | 'bancontact'
3647
+ | 'billie'
3504
3648
  | 'blik'
3505
3649
  | 'boleto'
3506
3650
  | 'cashapp'
@@ -3518,6 +3662,7 @@ declare module 'stripe' {
3518
3662
  | 'mobilepay'
3519
3663
  | 'multibanco'
3520
3664
  | 'naver_pay'
3665
+ | 'nz_bank_account'
3521
3666
  | 'oxxo'
3522
3667
  | 'p24'
3523
3668
  | 'pay_by_bank'
@@ -3528,6 +3673,7 @@ declare module 'stripe' {
3528
3673
  | 'promptpay'
3529
3674
  | 'revolut_pay'
3530
3675
  | 'samsung_pay'
3676
+ | 'satispay'
3531
3677
  | 'sepa_debit'
3532
3678
  | 'sofort'
3533
3679
  | 'swish'
@@ -3724,6 +3870,11 @@ declare module 'stripe' {
3724
3870
  */
3725
3871
  naver_pay?: Stripe.Emptyable<PaymentMethodOptions.NaverPay>;
3726
3872
 
3873
+ /**
3874
+ * If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options.
3875
+ */
3876
+ nz_bank_account?: Stripe.Emptyable<PaymentMethodOptions.NzBankAccount>;
3877
+
3727
3878
  /**
3728
3879
  * If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
3729
3880
  */
@@ -4892,6 +5043,45 @@ declare module 'stripe' {
4892
5043
  * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
4893
5044
  */
4894
5045
  capture_method?: Stripe.Emptyable<'manual'>;
5046
+
5047
+ /**
5048
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
5049
+ *
5050
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
5051
+ *
5052
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
5053
+ *
5054
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
5055
+ */
5056
+ setup_future_usage?: Stripe.Emptyable<NaverPay.SetupFutureUsage>;
5057
+ }
5058
+
5059
+ namespace NaverPay {
5060
+ type SetupFutureUsage = 'none' | 'off_session';
5061
+ }
5062
+
5063
+ interface NzBankAccount {
5064
+ /**
5065
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
5066
+ *
5067
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
5068
+ *
5069
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
5070
+ *
5071
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
5072
+ *
5073
+ * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
5074
+ */
5075
+ setup_future_usage?: Stripe.Emptyable<NzBankAccount.SetupFutureUsage>;
5076
+
5077
+ /**
5078
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
5079
+ */
5080
+ target_date?: string;
5081
+ }
5082
+
5083
+ namespace NzBankAccount {
5084
+ type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
4895
5085
  }
4896
5086
 
4897
5087
  interface Oxxo {
@@ -5330,7 +5520,7 @@ declare module 'stripe' {
5330
5520
  /**
5331
5521
  * The client type that the end customer will pay from
5332
5522
  */
5333
- client: WechatPay.Client;
5523
+ client?: WechatPay.Client;
5334
5524
 
5335
5525
  /**
5336
5526
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -5463,12 +5653,12 @@ declare module 'stripe' {
5463
5653
 
5464
5654
  interface PaymentIntentCaptureParams {
5465
5655
  /**
5466
- * The amount to capture from the PaymentIntent, which must be less than or equal to the original amount. Any additional amount is automatically refunded. Defaults to the full `amount_capturable` if it's not provided.
5656
+ * The amount to capture from the PaymentIntent, which must be less than or equal to the original amount. Defaults to the full `amount_capturable` if it's not provided.
5467
5657
  */
5468
5658
  amount_to_capture?: number;
5469
5659
 
5470
5660
  /**
5471
- * The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
5661
+ * The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
5472
5662
  */
5473
5663
  application_fee_amount?: number;
5474
5664
 
@@ -5720,6 +5910,11 @@ declare module 'stripe' {
5720
5910
  */
5721
5911
  bancontact?: PaymentMethodData.Bancontact;
5722
5912
 
5913
+ /**
5914
+ * If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
5915
+ */
5916
+ billie?: PaymentMethodData.Billie;
5917
+
5723
5918
  /**
5724
5919
  * Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
5725
5920
  */
@@ -5820,6 +6015,11 @@ declare module 'stripe' {
5820
6015
  */
5821
6016
  naver_pay?: PaymentMethodData.NaverPay;
5822
6017
 
6018
+ /**
6019
+ * If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
6020
+ */
6021
+ nz_bank_account?: PaymentMethodData.NzBankAccount;
6022
+
5823
6023
  /**
5824
6024
  * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
5825
6025
  */
@@ -5875,6 +6075,11 @@ declare module 'stripe' {
5875
6075
  */
5876
6076
  samsung_pay?: PaymentMethodData.SamsungPay;
5877
6077
 
6078
+ /**
6079
+ * If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
6080
+ */
6081
+ satispay?: PaymentMethodData.Satispay;
6082
+
5878
6083
  /**
5879
6084
  * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
5880
6085
  */
@@ -5972,6 +6177,8 @@ declare module 'stripe' {
5972
6177
 
5973
6178
  interface Bancontact {}
5974
6179
 
6180
+ interface Billie {}
6181
+
5975
6182
  interface BillingDetails {
5976
6183
  /**
5977
6184
  * Billing address.
@@ -6168,6 +6375,35 @@ declare module 'stripe' {
6168
6375
  type Funding = 'card' | 'points';
6169
6376
  }
6170
6377
 
6378
+ interface NzBankAccount {
6379
+ /**
6380
+ * The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details.
6381
+ */
6382
+ account_holder_name?: string;
6383
+
6384
+ /**
6385
+ * The account number for the bank account.
6386
+ */
6387
+ account_number: string;
6388
+
6389
+ /**
6390
+ * The numeric code for the bank account's bank.
6391
+ */
6392
+ bank_code: string;
6393
+
6394
+ /**
6395
+ * The numeric code for the bank account's bank branch.
6396
+ */
6397
+ branch_code: string;
6398
+
6399
+ reference?: string;
6400
+
6401
+ /**
6402
+ * The suffix of the bank account number.
6403
+ */
6404
+ suffix: string;
6405
+ }
6406
+
6171
6407
  interface Oxxo {}
6172
6408
 
6173
6409
  interface P24 {
@@ -6230,6 +6466,8 @@ declare module 'stripe' {
6230
6466
 
6231
6467
  interface SamsungPay {}
6232
6468
 
6469
+ interface Satispay {}
6470
+
6233
6471
  interface SepaDebit {
6234
6472
  /**
6235
6473
  * IBAN of the bank account.
@@ -6262,6 +6500,7 @@ declare module 'stripe' {
6262
6500
  | 'au_becs_debit'
6263
6501
  | 'bacs_debit'
6264
6502
  | 'bancontact'
6503
+ | 'billie'
6265
6504
  | 'blik'
6266
6505
  | 'boleto'
6267
6506
  | 'cashapp'
@@ -6279,6 +6518,7 @@ declare module 'stripe' {
6279
6518
  | 'mobilepay'
6280
6519
  | 'multibanco'
6281
6520
  | 'naver_pay'
6521
+ | 'nz_bank_account'
6282
6522
  | 'oxxo'
6283
6523
  | 'p24'
6284
6524
  | 'pay_by_bank'
@@ -6289,6 +6529,7 @@ declare module 'stripe' {
6289
6529
  | 'promptpay'
6290
6530
  | 'revolut_pay'
6291
6531
  | 'samsung_pay'
6532
+ | 'satispay'
6292
6533
  | 'sepa_debit'
6293
6534
  | 'sofort'
6294
6535
  | 'swish'
@@ -6485,6 +6726,11 @@ declare module 'stripe' {
6485
6726
  */
6486
6727
  naver_pay?: Stripe.Emptyable<PaymentMethodOptions.NaverPay>;
6487
6728
 
6729
+ /**
6730
+ * If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options.
6731
+ */
6732
+ nz_bank_account?: Stripe.Emptyable<PaymentMethodOptions.NzBankAccount>;
6733
+
6488
6734
  /**
6489
6735
  * If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
6490
6736
  */
@@ -7653,6 +7899,45 @@ declare module 'stripe' {
7653
7899
  * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
7654
7900
  */
7655
7901
  capture_method?: Stripe.Emptyable<'manual'>;
7902
+
7903
+ /**
7904
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
7905
+ *
7906
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
7907
+ *
7908
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
7909
+ *
7910
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
7911
+ */
7912
+ setup_future_usage?: Stripe.Emptyable<NaverPay.SetupFutureUsage>;
7913
+ }
7914
+
7915
+ namespace NaverPay {
7916
+ type SetupFutureUsage = 'none' | 'off_session';
7917
+ }
7918
+
7919
+ interface NzBankAccount {
7920
+ /**
7921
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
7922
+ *
7923
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
7924
+ *
7925
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
7926
+ *
7927
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
7928
+ *
7929
+ * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
7930
+ */
7931
+ setup_future_usage?: Stripe.Emptyable<NzBankAccount.SetupFutureUsage>;
7932
+
7933
+ /**
7934
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
7935
+ */
7936
+ target_date?: string;
7937
+ }
7938
+
7939
+ namespace NzBankAccount {
7940
+ type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
7656
7941
  }
7657
7942
 
7658
7943
  interface Oxxo {
@@ -8091,7 +8376,7 @@ declare module 'stripe' {
8091
8376
  /**
8092
8377
  * The client type that the end customer will pay from
8093
8378
  */
8094
- client: WechatPay.Client;
8379
+ client?: WechatPay.Client;
8095
8380
 
8096
8381
  /**
8097
8382
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -8171,7 +8456,7 @@ declare module 'stripe' {
8171
8456
  amount: number;
8172
8457
 
8173
8458
  /**
8174
- * The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
8459
+ * The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
8175
8460
  */
8176
8461
  application_fee_amount?: number;
8177
8462
 
@@ -110,6 +110,11 @@ declare module 'stripe' {
110
110
  */
111
111
  on_behalf_of: string | Stripe.Account | null;
112
112
 
113
+ /**
114
+ * The optional items presented to the customer at checkout.
115
+ */
116
+ optional_items?: Array<PaymentLink.OptionalItem> | null;
117
+
113
118
  /**
114
119
  * Indicates the parameters to be passed to PaymentIntent creation during checkout.
115
120
  */
@@ -292,6 +297,11 @@ declare module 'stripe' {
292
297
 
293
298
  namespace CustomField {
294
299
  interface Dropdown {
300
+ /**
301
+ * The value that will pre-fill on the payment page.
302
+ */
303
+ default_value: string | null;
304
+
295
305
  /**
296
306
  * The options available for the customer to select. Up to 200 options allowed.
297
307
  */
@@ -325,6 +335,11 @@ declare module 'stripe' {
325
335
  }
326
336
 
327
337
  interface Numeric {
338
+ /**
339
+ * The value that will pre-fill the field on the payment page.
340
+ */
341
+ default_value: string | null;
342
+
328
343
  /**
329
344
  * The maximum character length constraint for the customer's input.
330
345
  */
@@ -337,6 +352,11 @@ declare module 'stripe' {
337
352
  }
338
353
 
339
354
  interface Text {
355
+ /**
356
+ * The value that will pre-fill the field on the payment page.
357
+ */
358
+ default_value: string | null;
359
+
340
360
  /**
341
361
  * The maximum character length constraint for the customer's input.
342
362
  */
@@ -493,6 +513,33 @@ declare module 'stripe' {
493
513
  }
494
514
  }
495
515
 
516
+ interface OptionalItem {
517
+ adjustable_quantity: OptionalItem.AdjustableQuantity | null;
518
+
519
+ price: string;
520
+
521
+ quantity: number;
522
+ }
523
+
524
+ namespace OptionalItem {
525
+ interface AdjustableQuantity {
526
+ /**
527
+ * Set to true if the quantity can be adjusted to any non-negative integer.
528
+ */
529
+ enabled: boolean;
530
+
531
+ /**
532
+ * The maximum quantity of this item the customer can purchase. By default this value is 99.
533
+ */
534
+ maximum: number | null;
535
+
536
+ /**
537
+ * The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if the `minimum` configured here is greater than 0. By default this value is 0.
538
+ */
539
+ minimum: number | null;
540
+ }
541
+ }
542
+
496
543
  interface PaymentIntentData {
497
544
  /**
498
545
  * Indicates when the funds will be captured from the customer's account.
@@ -546,6 +593,7 @@ declare module 'stripe' {
546
593
  | 'au_becs_debit'
547
594
  | 'bacs_debit'
548
595
  | 'bancontact'
596
+ | 'billie'
549
597
  | 'blik'
550
598
  | 'boleto'
551
599
  | 'card'
@@ -567,6 +615,7 @@ declare module 'stripe' {
567
615
  | 'paypal'
568
616
  | 'pix'
569
617
  | 'promptpay'
618
+ | 'satispay'
570
619
  | 'sepa_debit'
571
620
  | 'sofort'
572
621
  | 'swish'