stripe 17.2.1 → 17.3.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.
Files changed (186) hide show
  1. package/CHANGELOG.md +925 -114
  2. package/README.md +4 -4
  3. package/VERSION +1 -1
  4. package/cjs/resources/AccountNotices.js +21 -0
  5. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  6. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  7. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  8. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  9. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  10. package/cjs/resources/GiftCards/Cards.js +23 -0
  11. package/cjs/resources/GiftCards/Transactions.js +33 -0
  12. package/cjs/resources/Invoices.js +17 -0
  13. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  14. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  15. package/cjs/resources/Margins.js +22 -0
  16. package/cjs/resources/Orders.js +24 -0
  17. package/cjs/resources/PaymentIntents.js +4 -0
  18. package/cjs/resources/Quotes.js +32 -0
  19. package/cjs/resources/SubscriptionSchedules.js +4 -0
  20. package/cjs/resources/Tax/Associations.js +9 -0
  21. package/cjs/resources/Tax/Forms.js +20 -0
  22. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  23. package/cjs/resources/Terminal/Readers.js +12 -0
  24. package/cjs/resources/TestHelpers/Issuing/Cards.js +4 -0
  25. package/cjs/resources.js +42 -10
  26. package/cjs/stripe.core.js +1 -1
  27. package/esm/resources/AccountNotices.js +18 -0
  28. package/esm/resources/Capital/FinancingOffers.js +18 -0
  29. package/esm/resources/Capital/FinancingSummary.js +9 -0
  30. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  31. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  32. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  33. package/esm/resources/GiftCards/Cards.js +20 -0
  34. package/esm/resources/GiftCards/Transactions.js +30 -0
  35. package/esm/resources/Invoices.js +17 -0
  36. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  37. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  38. package/esm/resources/Margins.js +19 -0
  39. package/esm/resources/Orders.js +21 -0
  40. package/esm/resources/PaymentIntents.js +4 -0
  41. package/esm/resources/Quotes.js +32 -0
  42. package/esm/resources/SubscriptionSchedules.js +4 -0
  43. package/esm/resources/Tax/Associations.js +6 -0
  44. package/esm/resources/Tax/Forms.js +17 -0
  45. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  46. package/esm/resources/Terminal/Readers.js +12 -0
  47. package/esm/resources/TestHelpers/Issuing/Cards.js +4 -0
  48. package/esm/resources.js +29 -0
  49. package/esm/stripe.core.js +1 -1
  50. package/package.json +1 -1
  51. package/types/AccountLinksResource.d.ts +5 -1
  52. package/types/AccountNotices.d.ts +113 -0
  53. package/types/AccountNoticesResource.d.ts +98 -0
  54. package/types/AccountSessions.d.ts +75 -5
  55. package/types/AccountSessionsResource.d.ts +354 -5
  56. package/types/Accounts.d.ts +211 -3
  57. package/types/AccountsResource.d.ts +584 -2
  58. package/types/Billing/CreditBalanceSummary.d.ts +4 -4
  59. package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
  60. package/types/Billing/CreditBalanceTransactions.d.ts +10 -10
  61. package/types/Billing/CreditGrants.d.ts +11 -8
  62. package/types/Billing/CreditGrantsResource.d.ts +6 -6
  63. package/types/Billing/MeterErrorReports.d.ts +106 -0
  64. package/types/Billing/Meters.d.ts +2 -0
  65. package/types/BillingPortal/Configurations.d.ts +22 -0
  66. package/types/BillingPortal/ConfigurationsResource.d.ts +56 -4
  67. package/types/Capital/FinancingOffers.d.ts +188 -0
  68. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  69. package/types/Capital/FinancingSummary.d.ts +106 -0
  70. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  71. package/types/Capital/FinancingTransactions.d.ts +135 -0
  72. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  73. package/types/Charges.d.ts +168 -0
  74. package/types/ChargesResource.d.ts +1294 -0
  75. package/types/Checkout/Sessions.d.ts +309 -5
  76. package/types/Checkout/SessionsResource.d.ts +360 -5
  77. package/types/ConfirmationTokens.d.ts +157 -0
  78. package/types/Coupons.d.ts +1 -1
  79. package/types/CouponsResource.d.ts +1 -1
  80. package/types/CreditNoteLineItems.d.ts +3 -0
  81. package/types/CreditNotes.d.ts +24 -0
  82. package/types/CreditNotesResource.d.ts +54 -3
  83. package/types/CustomersResource.d.ts +27 -3
  84. package/types/Disputes.d.ts +152 -0
  85. package/types/DisputesResource.d.ts +120 -0
  86. package/types/EventTypes.d.ts +564 -2
  87. package/types/Events.d.ts +91 -0
  88. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  89. package/types/FinancialConnections/Accounts.d.ts +29 -1
  90. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  91. package/types/FinancialConnections/Institutions.d.ts +93 -0
  92. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  93. package/types/FinancialConnections/Sessions.d.ts +49 -1
  94. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  95. package/types/Forwarding/Requests.d.ts +5 -0
  96. package/types/Forwarding/RequestsResource.d.ts +5 -0
  97. package/types/GiftCards/Cards.d.ts +118 -0
  98. package/types/GiftCards/CardsResource.d.ts +159 -0
  99. package/types/GiftCards/Transactions.d.ts +129 -0
  100. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  101. package/types/InvoiceItems.d.ts +5 -0
  102. package/types/InvoiceItemsResource.d.ts +98 -0
  103. package/types/InvoiceLineItems.d.ts +31 -1
  104. package/types/InvoicePayments.d.ts +138 -0
  105. package/types/Invoices.d.ts +139 -3
  106. package/types/InvoicesResource.d.ts +5488 -1799
  107. package/types/Issuing/CardholdersResource.d.ts +2 -1
  108. package/types/Issuing/CardsResource.d.ts +1 -1
  109. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  110. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  111. package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
  112. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  113. package/types/Issuing/Settlements.d.ts +103 -0
  114. package/types/Issuing/Transactions.d.ts +2 -0
  115. package/types/Issuing/TransactionsResource.d.ts +5 -0
  116. package/types/LineItems.d.ts +7 -0
  117. package/types/Mandates.d.ts +85 -0
  118. package/types/Margins.d.ts +56 -0
  119. package/types/MarginsResource.d.ts +114 -0
  120. package/types/Orders.d.ts +1154 -0
  121. package/types/OrdersResource.d.ts +2911 -0
  122. package/types/PaymentIntents.d.ts +697 -1
  123. package/types/PaymentIntentsResource.d.ts +7977 -3377
  124. package/types/PaymentLinks.d.ts +7 -0
  125. package/types/PaymentLinksResource.d.ts +14 -0
  126. package/types/PaymentMethodConfigurations.d.ts +72 -0
  127. package/types/PaymentMethodConfigurationsResource.d.ts +102 -2
  128. package/types/PaymentMethodDomains.d.ts +28 -0
  129. package/types/PaymentMethods.d.ts +157 -0
  130. package/types/PaymentMethodsResource.d.ts +195 -1
  131. package/types/Persons.d.ts +1 -1
  132. package/types/Prices.d.ts +22 -0
  133. package/types/PricesResource.d.ts +22 -0
  134. package/types/Products.d.ts +39 -0
  135. package/types/ProductsResource.d.ts +36 -0
  136. package/types/QuoteLines.d.ts +634 -0
  137. package/types/QuotePreviewInvoices.d.ts +1601 -0
  138. package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
  139. package/types/Quotes.d.ts +591 -1
  140. package/types/QuotesResource.d.ts +2526 -194
  141. package/types/Refunds.d.ts +4 -0
  142. package/types/SetupAttempts.d.ts +19 -0
  143. package/types/SetupIntents.d.ts +112 -1
  144. package/types/SetupIntentsResource.d.ts +768 -6
  145. package/types/Sources.d.ts +23 -0
  146. package/types/SubscriptionItems.d.ts +21 -0
  147. package/types/SubscriptionItemsResource.d.ts +109 -0
  148. package/types/SubscriptionSchedules.d.ts +200 -0
  149. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  150. package/types/Subscriptions.d.ts +87 -1
  151. package/types/SubscriptionsResource.d.ts +359 -4
  152. package/types/Tax/Associations.d.ts +126 -0
  153. package/types/Tax/AssociationsResource.d.ts +29 -0
  154. package/types/Tax/CalculationLineItems.d.ts +1 -0
  155. package/types/Tax/Calculations.d.ts +33 -1
  156. package/types/Tax/CalculationsResource.d.ts +7 -1
  157. package/types/Tax/Forms.d.ts +220 -0
  158. package/types/Tax/FormsResource.d.ts +107 -0
  159. package/types/Tax/Registrations.d.ts +82 -0
  160. package/types/Tax/RegistrationsResource.d.ts +109 -0
  161. package/types/Tax/Transactions.d.ts +8 -1
  162. package/types/TaxIds.d.ts +7 -1
  163. package/types/TaxIdsResource.d.ts +7 -1
  164. package/types/TaxRates.d.ts +25 -0
  165. package/types/TaxRatesResource.d.ts +2 -0
  166. package/types/Terminal/Configurations.d.ts +19 -0
  167. package/types/Terminal/ConfigurationsResource.d.ts +44 -0
  168. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  169. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  170. package/types/Terminal/Readers.d.ts +278 -0
  171. package/types/Terminal/ReadersResource.d.ts +215 -0
  172. package/types/TestHelpers/ConfirmationTokensResource.d.ts +145 -1
  173. package/types/TestHelpers/Issuing/CardsResource.d.ts +22 -0
  174. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  175. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  176. package/types/TokensResource.d.ts +2 -2
  177. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  178. package/types/Treasury/FinancialAccounts.d.ts +6 -1
  179. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  180. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  181. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  182. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  183. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  184. package/types/UsageRecordSummaries.d.ts +1 -1
  185. package/types/WebhookEndpointsResource.d.ts +66 -0
  186. package/types/index.d.ts +53 -0
@@ -209,6 +209,11 @@ declare module 'stripe' {
209
209
  */
210
210
  allow_redisplay?: PaymentMethodData.AllowRedisplay;
211
211
 
212
+ /**
213
+ * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
214
+ */
215
+ alma?: PaymentMethodData.Alma;
216
+
212
217
  /**
213
218
  * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
214
219
  */
@@ -269,6 +274,11 @@ declare module 'stripe' {
269
274
  */
270
275
  giropay?: PaymentMethodData.Giropay;
271
276
 
277
+ /**
278
+ * If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
279
+ */
280
+ gopay?: PaymentMethodData.Gopay;
281
+
272
282
  /**
273
283
  * If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
274
284
  */
@@ -284,6 +294,11 @@ declare module 'stripe' {
284
294
  */
285
295
  interac_present?: PaymentMethodData.InteracPresent;
286
296
 
297
+ /**
298
+ * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
299
+ */
300
+ kakao_pay?: PaymentMethodData.KakaoPay;
301
+
287
302
  /**
288
303
  * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
289
304
  */
@@ -294,11 +309,21 @@ declare module 'stripe' {
294
309
  */
295
310
  konbini?: PaymentMethodData.Konbini;
296
311
 
312
+ /**
313
+ * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
314
+ */
315
+ kr_card?: PaymentMethodData.KrCard;
316
+
297
317
  /**
298
318
  * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
299
319
  */
300
320
  link?: PaymentMethodData.Link;
301
321
 
322
+ /**
323
+ * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
324
+ */
325
+ mb_way?: PaymentMethodData.MbWay;
326
+
302
327
  /**
303
328
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
304
329
  */
@@ -314,6 +339,11 @@ declare module 'stripe' {
314
339
  */
315
340
  multibanco?: PaymentMethodData.Multibanco;
316
341
 
342
+ /**
343
+ * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
344
+ */
345
+ naver_pay?: PaymentMethodData.NaverPay;
346
+
317
347
  /**
318
348
  * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
319
349
  */
@@ -324,6 +354,11 @@ declare module 'stripe' {
324
354
  */
325
355
  p24?: PaymentMethodData.P24;
326
356
 
357
+ /**
358
+ * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
359
+ */
360
+ payco?: PaymentMethodData.Payco;
361
+
327
362
  /**
328
363
  * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
329
364
  */
@@ -334,6 +369,11 @@ declare module 'stripe' {
334
369
  */
335
370
  paypal?: PaymentMethodData.Paypal;
336
371
 
372
+ /**
373
+ * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
374
+ */
375
+ payto?: PaymentMethodData.Payto;
376
+
337
377
  /**
338
378
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
339
379
  */
@@ -344,21 +384,41 @@ declare module 'stripe' {
344
384
  */
345
385
  promptpay?: PaymentMethodData.Promptpay;
346
386
 
387
+ /**
388
+ * If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
389
+ */
390
+ qris?: PaymentMethodData.Qris;
391
+
347
392
  /**
348
393
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
349
394
  */
350
395
  radar_options?: PaymentMethodData.RadarOptions;
351
396
 
397
+ /**
398
+ * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
399
+ */
400
+ rechnung?: PaymentMethodData.Rechnung;
401
+
352
402
  /**
353
403
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
354
404
  */
355
405
  revolut_pay?: PaymentMethodData.RevolutPay;
356
406
 
407
+ /**
408
+ * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
409
+ */
410
+ samsung_pay?: PaymentMethodData.SamsungPay;
411
+
357
412
  /**
358
413
  * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
359
414
  */
360
415
  sepa_debit?: PaymentMethodData.SepaDebit;
361
416
 
417
+ /**
418
+ * If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
419
+ */
420
+ shopeepay?: PaymentMethodData.Shopeepay;
421
+
362
422
  /**
363
423
  * If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
364
424
  */
@@ -421,6 +481,8 @@ declare module 'stripe' {
421
481
 
422
482
  type AllowRedisplay = 'always' | 'limited' | 'unspecified';
423
483
 
484
+ interface Alma {}
485
+
424
486
  interface AmazonPay {}
425
487
 
426
488
  interface AuBecsDebit {
@@ -565,11 +627,13 @@ declare module 'stripe' {
565
627
 
566
628
  interface Giropay {}
567
629
 
630
+ interface Gopay {}
631
+
568
632
  interface Grabpay {}
569
633
 
570
634
  interface Ideal {
571
635
  /**
572
- * The customer's bank.
636
+ * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
573
637
  */
574
638
  bank?: Ideal.Bank;
575
639
  }
@@ -596,6 +660,8 @@ declare module 'stripe' {
596
660
 
597
661
  interface InteracPresent {}
598
662
 
663
+ interface KakaoPay {}
664
+
599
665
  interface Klarna {
600
666
  /**
601
667
  * Customer's date of birth
@@ -624,12 +690,27 @@ declare module 'stripe' {
624
690
 
625
691
  interface Konbini {}
626
692
 
693
+ interface KrCard {}
694
+
627
695
  interface Link {}
628
696
 
697
+ interface MbWay {}
698
+
629
699
  interface Mobilepay {}
630
700
 
631
701
  interface Multibanco {}
632
702
 
703
+ interface NaverPay {
704
+ /**
705
+ * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
706
+ */
707
+ funding?: NaverPay.Funding;
708
+ }
709
+
710
+ namespace NaverPay {
711
+ type Funding = 'card' | 'points';
712
+ }
713
+
633
714
  interface Oxxo {}
634
715
 
635
716
  interface P24 {
@@ -669,14 +750,35 @@ declare module 'stripe' {
669
750
  | 'volkswagen_bank';
670
751
  }
671
752
 
753
+ interface Payco {}
754
+
672
755
  interface Paynow {}
673
756
 
674
757
  interface Paypal {}
675
758
 
759
+ interface Payto {
760
+ /**
761
+ * The account number for the bank account.
762
+ */
763
+ account_number?: string;
764
+
765
+ /**
766
+ * Bank-State-Branch number of the bank account.
767
+ */
768
+ bsb_number?: string;
769
+
770
+ /**
771
+ * The PayID alias for the bank account.
772
+ */
773
+ pay_id?: string;
774
+ }
775
+
676
776
  interface Pix {}
677
777
 
678
778
  interface Promptpay {}
679
779
 
780
+ interface Qris {}
781
+
680
782
  interface RadarOptions {
681
783
  /**
682
784
  * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -684,8 +786,36 @@ declare module 'stripe' {
684
786
  session?: string;
685
787
  }
686
788
 
789
+ interface Rechnung {
790
+ /**
791
+ * Customer's date of birth
792
+ */
793
+ dob: Rechnung.Dob;
794
+ }
795
+
796
+ namespace Rechnung {
797
+ interface Dob {
798
+ /**
799
+ * The day of birth, between 1 and 31.
800
+ */
801
+ day: number;
802
+
803
+ /**
804
+ * The month of birth, between 1 and 12.
805
+ */
806
+ month: number;
807
+
808
+ /**
809
+ * The four-digit year of birth.
810
+ */
811
+ year: number;
812
+ }
813
+ }
814
+
687
815
  interface RevolutPay {}
688
816
 
817
+ interface SamsungPay {}
818
+
689
819
  interface SepaDebit {
690
820
  /**
691
821
  * IBAN of the bank account.
@@ -693,6 +823,8 @@ declare module 'stripe' {
693
823
  iban: string;
694
824
  }
695
825
 
826
+ interface Shopeepay {}
827
+
696
828
  interface Sofort {
697
829
  /**
698
830
  * Two-letter ISO code representing the country the bank account is located in.
@@ -713,6 +845,7 @@ declare module 'stripe' {
713
845
  | 'affirm'
714
846
  | 'afterpay_clearpay'
715
847
  | 'alipay'
848
+ | 'alma'
716
849
  | 'amazon_pay'
717
850
  | 'au_becs_debit'
718
851
  | 'bacs_debit'
@@ -724,21 +857,32 @@ declare module 'stripe' {
724
857
  | 'eps'
725
858
  | 'fpx'
726
859
  | 'giropay'
860
+ | 'gopay'
727
861
  | 'grabpay'
728
862
  | 'ideal'
863
+ | 'kakao_pay'
729
864
  | 'klarna'
730
865
  | 'konbini'
866
+ | 'kr_card'
731
867
  | 'link'
868
+ | 'mb_way'
732
869
  | 'mobilepay'
733
870
  | 'multibanco'
871
+ | 'naver_pay'
734
872
  | 'oxxo'
735
873
  | 'p24'
874
+ | 'payco'
736
875
  | 'paynow'
737
876
  | 'paypal'
877
+ | 'payto'
738
878
  | 'pix'
739
879
  | 'promptpay'
880
+ | 'qris'
881
+ | 'rechnung'
740
882
  | 'revolut_pay'
883
+ | 'samsung_pay'
741
884
  | 'sepa_debit'
885
+ | 'shopeepay'
742
886
  | 'sofort'
743
887
  | 'swish'
744
888
  | 'twint'
@@ -820,6 +964,11 @@ declare module 'stripe' {
820
964
  */
821
965
  paypal?: PaymentMethodOptions.Paypal;
822
966
 
967
+ /**
968
+ * If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
969
+ */
970
+ payto?: PaymentMethodOptions.Payto;
971
+
823
972
  /**
824
973
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
825
974
  */
@@ -1115,6 +1264,86 @@ declare module 'stripe' {
1115
1264
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
1116
1265
  */
1117
1266
  billing_agreement_id?: string;
1267
+
1268
+ currency?: string;
1269
+
1270
+ /**
1271
+ * The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
1272
+ */
1273
+ subsellers?: Array<string>;
1274
+ }
1275
+
1276
+ interface Payto {
1277
+ /**
1278
+ * Additional fields for Mandate creation.
1279
+ */
1280
+ mandate_options?: Payto.MandateOptions;
1281
+ }
1282
+
1283
+ namespace Payto {
1284
+ interface MandateOptions {
1285
+ /**
1286
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
1287
+ */
1288
+ amount?: number;
1289
+
1290
+ /**
1291
+ * The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
1292
+ */
1293
+ amount_type?: MandateOptions.AmountType;
1294
+
1295
+ /**
1296
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
1297
+ */
1298
+ end_date?: string;
1299
+
1300
+ /**
1301
+ * The periodicity at which payments will be collected.
1302
+ */
1303
+ payment_schedule?: MandateOptions.PaymentSchedule;
1304
+
1305
+ /**
1306
+ * The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
1307
+ */
1308
+ payments_per_period?: number;
1309
+
1310
+ /**
1311
+ * The purpose for which payments are made. Defaults to retail.
1312
+ */
1313
+ purpose?: MandateOptions.Purpose;
1314
+
1315
+ /**
1316
+ * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
1317
+ */
1318
+ start_date?: string;
1319
+ }
1320
+
1321
+ namespace MandateOptions {
1322
+ type AmountType = 'fixed' | 'maximum';
1323
+
1324
+ type PaymentSchedule =
1325
+ | 'adhoc'
1326
+ | 'annual'
1327
+ | 'daily'
1328
+ | 'fortnightly'
1329
+ | 'monthly'
1330
+ | 'quarterly'
1331
+ | 'semi_annual'
1332
+ | 'weekly';
1333
+
1334
+ type Purpose =
1335
+ | 'dependant_support'
1336
+ | 'government'
1337
+ | 'loan'
1338
+ | 'mortgage'
1339
+ | 'other'
1340
+ | 'pension'
1341
+ | 'personal'
1342
+ | 'retail'
1343
+ | 'salary'
1344
+ | 'tax'
1345
+ | 'utility';
1346
+ }
1118
1347
  }
1119
1348
 
1120
1349
  interface SepaDebit {
@@ -1157,6 +1386,11 @@ declare module 'stripe' {
1157
1386
  */
1158
1387
  filters?: FinancialConnections.Filters;
1159
1388
 
1389
+ /**
1390
+ * Customize manual entry behavior
1391
+ */
1392
+ manual_entry?: FinancialConnections.ManualEntry;
1393
+
1160
1394
  /**
1161
1395
  * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
1162
1396
  */
@@ -1179,19 +1413,39 @@ declare module 'stripe' {
1179
1413
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
1180
1414
  */
1181
1415
  account_subcategories?: Array<Filters.AccountSubcategory>;
1416
+
1417
+ /**
1418
+ * ID of the institution to use to filter for selectable accounts.
1419
+ */
1420
+ institution?: string;
1182
1421
  }
1183
1422
 
1184
1423
  namespace Filters {
1185
1424
  type AccountSubcategory = 'checking' | 'savings';
1186
1425
  }
1187
1426
 
1427
+ interface ManualEntry {
1428
+ /**
1429
+ * Settings for configuring manual entry of account details.
1430
+ */
1431
+ mode: ManualEntry.Mode;
1432
+ }
1433
+
1434
+ namespace ManualEntry {
1435
+ type Mode = 'automatic' | 'custom';
1436
+ }
1437
+
1188
1438
  type Permission =
1189
1439
  | 'balances'
1190
1440
  | 'ownership'
1191
1441
  | 'payment_method'
1192
1442
  | 'transactions';
1193
1443
 
1194
- type Prefetch = 'balances' | 'ownership' | 'transactions';
1444
+ type Prefetch =
1445
+ | 'balances'
1446
+ | 'inferred_balances'
1447
+ | 'ownership'
1448
+ | 'transactions';
1195
1449
  }
1196
1450
 
1197
1451
  interface MandateOptions {
@@ -1336,6 +1590,11 @@ declare module 'stripe' {
1336
1590
  */
1337
1591
  allow_redisplay?: PaymentMethodData.AllowRedisplay;
1338
1592
 
1593
+ /**
1594
+ * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
1595
+ */
1596
+ alma?: PaymentMethodData.Alma;
1597
+
1339
1598
  /**
1340
1599
  * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
1341
1600
  */
@@ -1396,6 +1655,11 @@ declare module 'stripe' {
1396
1655
  */
1397
1656
  giropay?: PaymentMethodData.Giropay;
1398
1657
 
1658
+ /**
1659
+ * If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
1660
+ */
1661
+ gopay?: PaymentMethodData.Gopay;
1662
+
1399
1663
  /**
1400
1664
  * If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
1401
1665
  */
@@ -1411,6 +1675,11 @@ declare module 'stripe' {
1411
1675
  */
1412
1676
  interac_present?: PaymentMethodData.InteracPresent;
1413
1677
 
1678
+ /**
1679
+ * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
1680
+ */
1681
+ kakao_pay?: PaymentMethodData.KakaoPay;
1682
+
1414
1683
  /**
1415
1684
  * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
1416
1685
  */
@@ -1421,11 +1690,21 @@ declare module 'stripe' {
1421
1690
  */
1422
1691
  konbini?: PaymentMethodData.Konbini;
1423
1692
 
1693
+ /**
1694
+ * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
1695
+ */
1696
+ kr_card?: PaymentMethodData.KrCard;
1697
+
1424
1698
  /**
1425
1699
  * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
1426
1700
  */
1427
1701
  link?: PaymentMethodData.Link;
1428
1702
 
1703
+ /**
1704
+ * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
1705
+ */
1706
+ mb_way?: PaymentMethodData.MbWay;
1707
+
1429
1708
  /**
1430
1709
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
1431
1710
  */
@@ -1441,6 +1720,11 @@ declare module 'stripe' {
1441
1720
  */
1442
1721
  multibanco?: PaymentMethodData.Multibanco;
1443
1722
 
1723
+ /**
1724
+ * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
1725
+ */
1726
+ naver_pay?: PaymentMethodData.NaverPay;
1727
+
1444
1728
  /**
1445
1729
  * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
1446
1730
  */
@@ -1451,6 +1735,11 @@ declare module 'stripe' {
1451
1735
  */
1452
1736
  p24?: PaymentMethodData.P24;
1453
1737
 
1738
+ /**
1739
+ * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
1740
+ */
1741
+ payco?: PaymentMethodData.Payco;
1742
+
1454
1743
  /**
1455
1744
  * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
1456
1745
  */
@@ -1461,6 +1750,11 @@ declare module 'stripe' {
1461
1750
  */
1462
1751
  paypal?: PaymentMethodData.Paypal;
1463
1752
 
1753
+ /**
1754
+ * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
1755
+ */
1756
+ payto?: PaymentMethodData.Payto;
1757
+
1464
1758
  /**
1465
1759
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
1466
1760
  */
@@ -1471,21 +1765,41 @@ declare module 'stripe' {
1471
1765
  */
1472
1766
  promptpay?: PaymentMethodData.Promptpay;
1473
1767
 
1768
+ /**
1769
+ * If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
1770
+ */
1771
+ qris?: PaymentMethodData.Qris;
1772
+
1474
1773
  /**
1475
1774
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
1476
1775
  */
1477
1776
  radar_options?: PaymentMethodData.RadarOptions;
1478
1777
 
1778
+ /**
1779
+ * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
1780
+ */
1781
+ rechnung?: PaymentMethodData.Rechnung;
1782
+
1479
1783
  /**
1480
1784
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1481
1785
  */
1482
1786
  revolut_pay?: PaymentMethodData.RevolutPay;
1483
1787
 
1788
+ /**
1789
+ * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
1790
+ */
1791
+ samsung_pay?: PaymentMethodData.SamsungPay;
1792
+
1484
1793
  /**
1485
1794
  * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
1486
1795
  */
1487
1796
  sepa_debit?: PaymentMethodData.SepaDebit;
1488
1797
 
1798
+ /**
1799
+ * If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
1800
+ */
1801
+ shopeepay?: PaymentMethodData.Shopeepay;
1802
+
1489
1803
  /**
1490
1804
  * If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
1491
1805
  */
@@ -1548,6 +1862,8 @@ declare module 'stripe' {
1548
1862
 
1549
1863
  type AllowRedisplay = 'always' | 'limited' | 'unspecified';
1550
1864
 
1865
+ interface Alma {}
1866
+
1551
1867
  interface AmazonPay {}
1552
1868
 
1553
1869
  interface AuBecsDebit {
@@ -1692,11 +2008,13 @@ declare module 'stripe' {
1692
2008
 
1693
2009
  interface Giropay {}
1694
2010
 
2011
+ interface Gopay {}
2012
+
1695
2013
  interface Grabpay {}
1696
2014
 
1697
2015
  interface Ideal {
1698
2016
  /**
1699
- * The customer's bank.
2017
+ * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
1700
2018
  */
1701
2019
  bank?: Ideal.Bank;
1702
2020
  }
@@ -1723,6 +2041,8 @@ declare module 'stripe' {
1723
2041
 
1724
2042
  interface InteracPresent {}
1725
2043
 
2044
+ interface KakaoPay {}
2045
+
1726
2046
  interface Klarna {
1727
2047
  /**
1728
2048
  * Customer's date of birth
@@ -1751,12 +2071,27 @@ declare module 'stripe' {
1751
2071
 
1752
2072
  interface Konbini {}
1753
2073
 
2074
+ interface KrCard {}
2075
+
1754
2076
  interface Link {}
1755
2077
 
2078
+ interface MbWay {}
2079
+
1756
2080
  interface Mobilepay {}
1757
2081
 
1758
2082
  interface Multibanco {}
1759
2083
 
2084
+ interface NaverPay {
2085
+ /**
2086
+ * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
2087
+ */
2088
+ funding?: NaverPay.Funding;
2089
+ }
2090
+
2091
+ namespace NaverPay {
2092
+ type Funding = 'card' | 'points';
2093
+ }
2094
+
1760
2095
  interface Oxxo {}
1761
2096
 
1762
2097
  interface P24 {
@@ -1796,14 +2131,35 @@ declare module 'stripe' {
1796
2131
  | 'volkswagen_bank';
1797
2132
  }
1798
2133
 
2134
+ interface Payco {}
2135
+
1799
2136
  interface Paynow {}
1800
2137
 
1801
2138
  interface Paypal {}
1802
2139
 
2140
+ interface Payto {
2141
+ /**
2142
+ * The account number for the bank account.
2143
+ */
2144
+ account_number?: string;
2145
+
2146
+ /**
2147
+ * Bank-State-Branch number of the bank account.
2148
+ */
2149
+ bsb_number?: string;
2150
+
2151
+ /**
2152
+ * The PayID alias for the bank account.
2153
+ */
2154
+ pay_id?: string;
2155
+ }
2156
+
1803
2157
  interface Pix {}
1804
2158
 
1805
2159
  interface Promptpay {}
1806
2160
 
2161
+ interface Qris {}
2162
+
1807
2163
  interface RadarOptions {
1808
2164
  /**
1809
2165
  * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -1811,8 +2167,36 @@ declare module 'stripe' {
1811
2167
  session?: string;
1812
2168
  }
1813
2169
 
2170
+ interface Rechnung {
2171
+ /**
2172
+ * Customer's date of birth
2173
+ */
2174
+ dob: Rechnung.Dob;
2175
+ }
2176
+
2177
+ namespace Rechnung {
2178
+ interface Dob {
2179
+ /**
2180
+ * The day of birth, between 1 and 31.
2181
+ */
2182
+ day: number;
2183
+
2184
+ /**
2185
+ * The month of birth, between 1 and 12.
2186
+ */
2187
+ month: number;
2188
+
2189
+ /**
2190
+ * The four-digit year of birth.
2191
+ */
2192
+ year: number;
2193
+ }
2194
+ }
2195
+
1814
2196
  interface RevolutPay {}
1815
2197
 
2198
+ interface SamsungPay {}
2199
+
1816
2200
  interface SepaDebit {
1817
2201
  /**
1818
2202
  * IBAN of the bank account.
@@ -1820,6 +2204,8 @@ declare module 'stripe' {
1820
2204
  iban: string;
1821
2205
  }
1822
2206
 
2207
+ interface Shopeepay {}
2208
+
1823
2209
  interface Sofort {
1824
2210
  /**
1825
2211
  * Two-letter ISO code representing the country the bank account is located in.
@@ -1840,6 +2226,7 @@ declare module 'stripe' {
1840
2226
  | 'affirm'
1841
2227
  | 'afterpay_clearpay'
1842
2228
  | 'alipay'
2229
+ | 'alma'
1843
2230
  | 'amazon_pay'
1844
2231
  | 'au_becs_debit'
1845
2232
  | 'bacs_debit'
@@ -1851,21 +2238,32 @@ declare module 'stripe' {
1851
2238
  | 'eps'
1852
2239
  | 'fpx'
1853
2240
  | 'giropay'
2241
+ | 'gopay'
1854
2242
  | 'grabpay'
1855
2243
  | 'ideal'
2244
+ | 'kakao_pay'
1856
2245
  | 'klarna'
1857
2246
  | 'konbini'
2247
+ | 'kr_card'
1858
2248
  | 'link'
2249
+ | 'mb_way'
1859
2250
  | 'mobilepay'
1860
2251
  | 'multibanco'
2252
+ | 'naver_pay'
1861
2253
  | 'oxxo'
1862
2254
  | 'p24'
2255
+ | 'payco'
1863
2256
  | 'paynow'
1864
2257
  | 'paypal'
2258
+ | 'payto'
1865
2259
  | 'pix'
1866
2260
  | 'promptpay'
2261
+ | 'qris'
2262
+ | 'rechnung'
1867
2263
  | 'revolut_pay'
2264
+ | 'samsung_pay'
1868
2265
  | 'sepa_debit'
2266
+ | 'shopeepay'
1869
2267
  | 'sofort'
1870
2268
  | 'swish'
1871
2269
  | 'twint'
@@ -1947,6 +2345,11 @@ declare module 'stripe' {
1947
2345
  */
1948
2346
  paypal?: PaymentMethodOptions.Paypal;
1949
2347
 
2348
+ /**
2349
+ * If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
2350
+ */
2351
+ payto?: PaymentMethodOptions.Payto;
2352
+
1950
2353
  /**
1951
2354
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
1952
2355
  */
@@ -2242,6 +2645,86 @@ declare module 'stripe' {
2242
2645
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
2243
2646
  */
2244
2647
  billing_agreement_id?: string;
2648
+
2649
+ currency?: string;
2650
+
2651
+ /**
2652
+ * The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
2653
+ */
2654
+ subsellers?: Array<string>;
2655
+ }
2656
+
2657
+ interface Payto {
2658
+ /**
2659
+ * Additional fields for Mandate creation.
2660
+ */
2661
+ mandate_options?: Payto.MandateOptions;
2662
+ }
2663
+
2664
+ namespace Payto {
2665
+ interface MandateOptions {
2666
+ /**
2667
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
2668
+ */
2669
+ amount?: number;
2670
+
2671
+ /**
2672
+ * The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
2673
+ */
2674
+ amount_type?: MandateOptions.AmountType;
2675
+
2676
+ /**
2677
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2678
+ */
2679
+ end_date?: string;
2680
+
2681
+ /**
2682
+ * The periodicity at which payments will be collected.
2683
+ */
2684
+ payment_schedule?: MandateOptions.PaymentSchedule;
2685
+
2686
+ /**
2687
+ * The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
2688
+ */
2689
+ payments_per_period?: number;
2690
+
2691
+ /**
2692
+ * The purpose for which payments are made. Defaults to retail.
2693
+ */
2694
+ purpose?: MandateOptions.Purpose;
2695
+
2696
+ /**
2697
+ * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
2698
+ */
2699
+ start_date?: string;
2700
+ }
2701
+
2702
+ namespace MandateOptions {
2703
+ type AmountType = 'fixed' | 'maximum';
2704
+
2705
+ type PaymentSchedule =
2706
+ | 'adhoc'
2707
+ | 'annual'
2708
+ | 'daily'
2709
+ | 'fortnightly'
2710
+ | 'monthly'
2711
+ | 'quarterly'
2712
+ | 'semi_annual'
2713
+ | 'weekly';
2714
+
2715
+ type Purpose =
2716
+ | 'dependant_support'
2717
+ | 'government'
2718
+ | 'loan'
2719
+ | 'mortgage'
2720
+ | 'other'
2721
+ | 'pension'
2722
+ | 'personal'
2723
+ | 'retail'
2724
+ | 'salary'
2725
+ | 'tax'
2726
+ | 'utility';
2727
+ }
2245
2728
  }
2246
2729
 
2247
2730
  interface SepaDebit {
@@ -2284,6 +2767,11 @@ declare module 'stripe' {
2284
2767
  */
2285
2768
  filters?: FinancialConnections.Filters;
2286
2769
 
2770
+ /**
2771
+ * Customize manual entry behavior
2772
+ */
2773
+ manual_entry?: FinancialConnections.ManualEntry;
2774
+
2287
2775
  /**
2288
2776
  * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
2289
2777
  */
@@ -2306,19 +2794,39 @@ declare module 'stripe' {
2306
2794
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2307
2795
  */
2308
2796
  account_subcategories?: Array<Filters.AccountSubcategory>;
2797
+
2798
+ /**
2799
+ * ID of the institution to use to filter for selectable accounts.
2800
+ */
2801
+ institution?: string;
2309
2802
  }
2310
2803
 
2311
2804
  namespace Filters {
2312
2805
  type AccountSubcategory = 'checking' | 'savings';
2313
2806
  }
2314
2807
 
2808
+ interface ManualEntry {
2809
+ /**
2810
+ * Settings for configuring manual entry of account details.
2811
+ */
2812
+ mode: ManualEntry.Mode;
2813
+ }
2814
+
2815
+ namespace ManualEntry {
2816
+ type Mode = 'automatic' | 'custom';
2817
+ }
2818
+
2315
2819
  type Permission =
2316
2820
  | 'balances'
2317
2821
  | 'ownership'
2318
2822
  | 'payment_method'
2319
2823
  | 'transactions';
2320
2824
 
2321
- type Prefetch = 'balances' | 'ownership' | 'transactions';
2825
+ type Prefetch =
2826
+ | 'balances'
2827
+ | 'inferred_balances'
2828
+ | 'ownership'
2829
+ | 'transactions';
2322
2830
  }
2323
2831
 
2324
2832
  interface MandateOptions {
@@ -2512,6 +3020,11 @@ declare module 'stripe' {
2512
3020
  */
2513
3021
  allow_redisplay?: PaymentMethodData.AllowRedisplay;
2514
3022
 
3023
+ /**
3024
+ * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
3025
+ */
3026
+ alma?: PaymentMethodData.Alma;
3027
+
2515
3028
  /**
2516
3029
  * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
2517
3030
  */
@@ -2572,6 +3085,11 @@ declare module 'stripe' {
2572
3085
  */
2573
3086
  giropay?: PaymentMethodData.Giropay;
2574
3087
 
3088
+ /**
3089
+ * If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
3090
+ */
3091
+ gopay?: PaymentMethodData.Gopay;
3092
+
2575
3093
  /**
2576
3094
  * If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
2577
3095
  */
@@ -2587,6 +3105,11 @@ declare module 'stripe' {
2587
3105
  */
2588
3106
  interac_present?: PaymentMethodData.InteracPresent;
2589
3107
 
3108
+ /**
3109
+ * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
3110
+ */
3111
+ kakao_pay?: PaymentMethodData.KakaoPay;
3112
+
2590
3113
  /**
2591
3114
  * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
2592
3115
  */
@@ -2597,11 +3120,21 @@ declare module 'stripe' {
2597
3120
  */
2598
3121
  konbini?: PaymentMethodData.Konbini;
2599
3122
 
3123
+ /**
3124
+ * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
3125
+ */
3126
+ kr_card?: PaymentMethodData.KrCard;
3127
+
2600
3128
  /**
2601
3129
  * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
2602
3130
  */
2603
3131
  link?: PaymentMethodData.Link;
2604
3132
 
3133
+ /**
3134
+ * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
3135
+ */
3136
+ mb_way?: PaymentMethodData.MbWay;
3137
+
2605
3138
  /**
2606
3139
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2607
3140
  */
@@ -2617,6 +3150,11 @@ declare module 'stripe' {
2617
3150
  */
2618
3151
  multibanco?: PaymentMethodData.Multibanco;
2619
3152
 
3153
+ /**
3154
+ * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
3155
+ */
3156
+ naver_pay?: PaymentMethodData.NaverPay;
3157
+
2620
3158
  /**
2621
3159
  * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
2622
3160
  */
@@ -2627,6 +3165,11 @@ declare module 'stripe' {
2627
3165
  */
2628
3166
  p24?: PaymentMethodData.P24;
2629
3167
 
3168
+ /**
3169
+ * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
3170
+ */
3171
+ payco?: PaymentMethodData.Payco;
3172
+
2630
3173
  /**
2631
3174
  * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
2632
3175
  */
@@ -2637,6 +3180,11 @@ declare module 'stripe' {
2637
3180
  */
2638
3181
  paypal?: PaymentMethodData.Paypal;
2639
3182
 
3183
+ /**
3184
+ * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
3185
+ */
3186
+ payto?: PaymentMethodData.Payto;
3187
+
2640
3188
  /**
2641
3189
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
2642
3190
  */
@@ -2647,21 +3195,41 @@ declare module 'stripe' {
2647
3195
  */
2648
3196
  promptpay?: PaymentMethodData.Promptpay;
2649
3197
 
3198
+ /**
3199
+ * If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
3200
+ */
3201
+ qris?: PaymentMethodData.Qris;
3202
+
2650
3203
  /**
2651
3204
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
2652
3205
  */
2653
3206
  radar_options?: PaymentMethodData.RadarOptions;
2654
3207
 
3208
+ /**
3209
+ * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
3210
+ */
3211
+ rechnung?: PaymentMethodData.Rechnung;
3212
+
2655
3213
  /**
2656
3214
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
2657
3215
  */
2658
3216
  revolut_pay?: PaymentMethodData.RevolutPay;
2659
3217
 
3218
+ /**
3219
+ * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
3220
+ */
3221
+ samsung_pay?: PaymentMethodData.SamsungPay;
3222
+
2660
3223
  /**
2661
3224
  * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
2662
3225
  */
2663
3226
  sepa_debit?: PaymentMethodData.SepaDebit;
2664
3227
 
3228
+ /**
3229
+ * If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
3230
+ */
3231
+ shopeepay?: PaymentMethodData.Shopeepay;
3232
+
2665
3233
  /**
2666
3234
  * If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
2667
3235
  */
@@ -2724,6 +3292,8 @@ declare module 'stripe' {
2724
3292
 
2725
3293
  type AllowRedisplay = 'always' | 'limited' | 'unspecified';
2726
3294
 
3295
+ interface Alma {}
3296
+
2727
3297
  interface AmazonPay {}
2728
3298
 
2729
3299
  interface AuBecsDebit {
@@ -2868,11 +3438,13 @@ declare module 'stripe' {
2868
3438
 
2869
3439
  interface Giropay {}
2870
3440
 
3441
+ interface Gopay {}
3442
+
2871
3443
  interface Grabpay {}
2872
3444
 
2873
3445
  interface Ideal {
2874
3446
  /**
2875
- * The customer's bank.
3447
+ * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
2876
3448
  */
2877
3449
  bank?: Ideal.Bank;
2878
3450
  }
@@ -2899,6 +3471,8 @@ declare module 'stripe' {
2899
3471
 
2900
3472
  interface InteracPresent {}
2901
3473
 
3474
+ interface KakaoPay {}
3475
+
2902
3476
  interface Klarna {
2903
3477
  /**
2904
3478
  * Customer's date of birth
@@ -2927,12 +3501,27 @@ declare module 'stripe' {
2927
3501
 
2928
3502
  interface Konbini {}
2929
3503
 
3504
+ interface KrCard {}
3505
+
2930
3506
  interface Link {}
2931
3507
 
3508
+ interface MbWay {}
3509
+
2932
3510
  interface Mobilepay {}
2933
3511
 
2934
3512
  interface Multibanco {}
2935
3513
 
3514
+ interface NaverPay {
3515
+ /**
3516
+ * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
3517
+ */
3518
+ funding?: NaverPay.Funding;
3519
+ }
3520
+
3521
+ namespace NaverPay {
3522
+ type Funding = 'card' | 'points';
3523
+ }
3524
+
2936
3525
  interface Oxxo {}
2937
3526
 
2938
3527
  interface P24 {
@@ -2972,14 +3561,35 @@ declare module 'stripe' {
2972
3561
  | 'volkswagen_bank';
2973
3562
  }
2974
3563
 
3564
+ interface Payco {}
3565
+
2975
3566
  interface Paynow {}
2976
3567
 
2977
3568
  interface Paypal {}
2978
3569
 
3570
+ interface Payto {
3571
+ /**
3572
+ * The account number for the bank account.
3573
+ */
3574
+ account_number?: string;
3575
+
3576
+ /**
3577
+ * Bank-State-Branch number of the bank account.
3578
+ */
3579
+ bsb_number?: string;
3580
+
3581
+ /**
3582
+ * The PayID alias for the bank account.
3583
+ */
3584
+ pay_id?: string;
3585
+ }
3586
+
2979
3587
  interface Pix {}
2980
3588
 
2981
3589
  interface Promptpay {}
2982
3590
 
3591
+ interface Qris {}
3592
+
2983
3593
  interface RadarOptions {
2984
3594
  /**
2985
3595
  * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -2987,8 +3597,36 @@ declare module 'stripe' {
2987
3597
  session?: string;
2988
3598
  }
2989
3599
 
3600
+ interface Rechnung {
3601
+ /**
3602
+ * Customer's date of birth
3603
+ */
3604
+ dob: Rechnung.Dob;
3605
+ }
3606
+
3607
+ namespace Rechnung {
3608
+ interface Dob {
3609
+ /**
3610
+ * The day of birth, between 1 and 31.
3611
+ */
3612
+ day: number;
3613
+
3614
+ /**
3615
+ * The month of birth, between 1 and 12.
3616
+ */
3617
+ month: number;
3618
+
3619
+ /**
3620
+ * The four-digit year of birth.
3621
+ */
3622
+ year: number;
3623
+ }
3624
+ }
3625
+
2990
3626
  interface RevolutPay {}
2991
3627
 
3628
+ interface SamsungPay {}
3629
+
2992
3630
  interface SepaDebit {
2993
3631
  /**
2994
3632
  * IBAN of the bank account.
@@ -2996,6 +3634,8 @@ declare module 'stripe' {
2996
3634
  iban: string;
2997
3635
  }
2998
3636
 
3637
+ interface Shopeepay {}
3638
+
2999
3639
  interface Sofort {
3000
3640
  /**
3001
3641
  * Two-letter ISO code representing the country the bank account is located in.
@@ -3016,6 +3656,7 @@ declare module 'stripe' {
3016
3656
  | 'affirm'
3017
3657
  | 'afterpay_clearpay'
3018
3658
  | 'alipay'
3659
+ | 'alma'
3019
3660
  | 'amazon_pay'
3020
3661
  | 'au_becs_debit'
3021
3662
  | 'bacs_debit'
@@ -3027,21 +3668,32 @@ declare module 'stripe' {
3027
3668
  | 'eps'
3028
3669
  | 'fpx'
3029
3670
  | 'giropay'
3671
+ | 'gopay'
3030
3672
  | 'grabpay'
3031
3673
  | 'ideal'
3674
+ | 'kakao_pay'
3032
3675
  | 'klarna'
3033
3676
  | 'konbini'
3677
+ | 'kr_card'
3034
3678
  | 'link'
3679
+ | 'mb_way'
3035
3680
  | 'mobilepay'
3036
3681
  | 'multibanco'
3682
+ | 'naver_pay'
3037
3683
  | 'oxxo'
3038
3684
  | 'p24'
3685
+ | 'payco'
3039
3686
  | 'paynow'
3040
3687
  | 'paypal'
3688
+ | 'payto'
3041
3689
  | 'pix'
3042
3690
  | 'promptpay'
3691
+ | 'qris'
3692
+ | 'rechnung'
3043
3693
  | 'revolut_pay'
3694
+ | 'samsung_pay'
3044
3695
  | 'sepa_debit'
3696
+ | 'shopeepay'
3045
3697
  | 'sofort'
3046
3698
  | 'swish'
3047
3699
  | 'twint'
@@ -3123,6 +3775,11 @@ declare module 'stripe' {
3123
3775
  */
3124
3776
  paypal?: PaymentMethodOptions.Paypal;
3125
3777
 
3778
+ /**
3779
+ * If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
3780
+ */
3781
+ payto?: PaymentMethodOptions.Payto;
3782
+
3126
3783
  /**
3127
3784
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
3128
3785
  */
@@ -3418,6 +4075,86 @@ declare module 'stripe' {
3418
4075
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
3419
4076
  */
3420
4077
  billing_agreement_id?: string;
4078
+
4079
+ currency?: string;
4080
+
4081
+ /**
4082
+ * The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
4083
+ */
4084
+ subsellers?: Array<string>;
4085
+ }
4086
+
4087
+ interface Payto {
4088
+ /**
4089
+ * Additional fields for Mandate creation.
4090
+ */
4091
+ mandate_options?: Payto.MandateOptions;
4092
+ }
4093
+
4094
+ namespace Payto {
4095
+ interface MandateOptions {
4096
+ /**
4097
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
4098
+ */
4099
+ amount?: number;
4100
+
4101
+ /**
4102
+ * The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
4103
+ */
4104
+ amount_type?: MandateOptions.AmountType;
4105
+
4106
+ /**
4107
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
4108
+ */
4109
+ end_date?: string;
4110
+
4111
+ /**
4112
+ * The periodicity at which payments will be collected.
4113
+ */
4114
+ payment_schedule?: MandateOptions.PaymentSchedule;
4115
+
4116
+ /**
4117
+ * The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
4118
+ */
4119
+ payments_per_period?: number;
4120
+
4121
+ /**
4122
+ * The purpose for which payments are made. Defaults to retail.
4123
+ */
4124
+ purpose?: MandateOptions.Purpose;
4125
+
4126
+ /**
4127
+ * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
4128
+ */
4129
+ start_date?: string;
4130
+ }
4131
+
4132
+ namespace MandateOptions {
4133
+ type AmountType = 'fixed' | 'maximum';
4134
+
4135
+ type PaymentSchedule =
4136
+ | 'adhoc'
4137
+ | 'annual'
4138
+ | 'daily'
4139
+ | 'fortnightly'
4140
+ | 'monthly'
4141
+ | 'quarterly'
4142
+ | 'semi_annual'
4143
+ | 'weekly';
4144
+
4145
+ type Purpose =
4146
+ | 'dependant_support'
4147
+ | 'government'
4148
+ | 'loan'
4149
+ | 'mortgage'
4150
+ | 'other'
4151
+ | 'pension'
4152
+ | 'personal'
4153
+ | 'retail'
4154
+ | 'salary'
4155
+ | 'tax'
4156
+ | 'utility';
4157
+ }
3421
4158
  }
3422
4159
 
3423
4160
  interface SepaDebit {
@@ -3460,6 +4197,11 @@ declare module 'stripe' {
3460
4197
  */
3461
4198
  filters?: FinancialConnections.Filters;
3462
4199
 
4200
+ /**
4201
+ * Customize manual entry behavior
4202
+ */
4203
+ manual_entry?: FinancialConnections.ManualEntry;
4204
+
3463
4205
  /**
3464
4206
  * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
3465
4207
  */
@@ -3482,19 +4224,39 @@ declare module 'stripe' {
3482
4224
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
3483
4225
  */
3484
4226
  account_subcategories?: Array<Filters.AccountSubcategory>;
4227
+
4228
+ /**
4229
+ * ID of the institution to use to filter for selectable accounts.
4230
+ */
4231
+ institution?: string;
3485
4232
  }
3486
4233
 
3487
4234
  namespace Filters {
3488
4235
  type AccountSubcategory = 'checking' | 'savings';
3489
4236
  }
3490
4237
 
4238
+ interface ManualEntry {
4239
+ /**
4240
+ * Settings for configuring manual entry of account details.
4241
+ */
4242
+ mode: ManualEntry.Mode;
4243
+ }
4244
+
4245
+ namespace ManualEntry {
4246
+ type Mode = 'automatic' | 'custom';
4247
+ }
4248
+
3491
4249
  type Permission =
3492
4250
  | 'balances'
3493
4251
  | 'ownership'
3494
4252
  | 'payment_method'
3495
4253
  | 'transactions';
3496
4254
 
3497
- type Prefetch = 'balances' | 'ownership' | 'transactions';
4255
+ type Prefetch =
4256
+ | 'balances'
4257
+ | 'inferred_balances'
4258
+ | 'ownership'
4259
+ | 'transactions';
3498
4260
  }
3499
4261
 
3500
4262
  interface MandateOptions {