stripe 17.7.0 → 17.8.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 (175) hide show
  1. package/CHANGELOG.md +1077 -109
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +1 -0
  4. package/VERSION +1 -1
  5. package/cjs/resources/AccountNotices.js +21 -0
  6. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  7. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  8. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  9. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  10. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  11. package/cjs/resources/GiftCards/Cards.js +23 -0
  12. package/cjs/resources/GiftCards/Transactions.js +33 -0
  13. package/cjs/resources/Invoices.js +17 -0
  14. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  15. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  16. package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
  17. package/cjs/resources/Margins.js +22 -0
  18. package/cjs/resources/Orders.js +24 -0
  19. package/cjs/resources/PaymentAttemptRecords.js +17 -0
  20. package/cjs/resources/PaymentIntents.js +8 -0
  21. package/cjs/resources/PaymentRecords.js +29 -0
  22. package/cjs/resources/Quotes.js +32 -0
  23. package/cjs/resources/SubscriptionSchedules.js +4 -0
  24. package/cjs/resources/Tax/Associations.js +9 -0
  25. package/cjs/resources/Tax/Forms.js +20 -0
  26. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  27. package/cjs/resources/Terminal/Readers.js +12 -0
  28. package/cjs/resources/TestHelpers/Terminal/Readers.js +8 -0
  29. package/cjs/resources.js +48 -10
  30. package/cjs/stripe.core.js +1 -1
  31. package/esm/resources/AccountNotices.js +18 -0
  32. package/esm/resources/Capital/FinancingOffers.js +18 -0
  33. package/esm/resources/Capital/FinancingSummary.js +9 -0
  34. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  35. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  36. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  37. package/esm/resources/GiftCards/Cards.js +20 -0
  38. package/esm/resources/GiftCards/Transactions.js +30 -0
  39. package/esm/resources/Invoices.js +17 -0
  40. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  41. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  42. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  43. package/esm/resources/Margins.js +19 -0
  44. package/esm/resources/Orders.js +21 -0
  45. package/esm/resources/PaymentAttemptRecords.js +14 -0
  46. package/esm/resources/PaymentIntents.js +8 -0
  47. package/esm/resources/PaymentRecords.js +26 -0
  48. package/esm/resources/Quotes.js +32 -0
  49. package/esm/resources/SubscriptionSchedules.js +4 -0
  50. package/esm/resources/Tax/Associations.js +6 -0
  51. package/esm/resources/Tax/Forms.js +17 -0
  52. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  53. package/esm/resources/Terminal/Readers.js +12 -0
  54. package/esm/resources/TestHelpers/Terminal/Readers.js +8 -0
  55. package/esm/resources.js +33 -0
  56. package/esm/stripe.core.js +1 -1
  57. package/package.json +1 -1
  58. package/types/AccountLinksResource.d.ts +5 -1
  59. package/types/AccountNotices.d.ts +113 -0
  60. package/types/AccountNoticesResource.d.ts +98 -0
  61. package/types/AccountSessions.d.ts +45 -0
  62. package/types/AccountSessionsResource.d.ts +243 -0
  63. package/types/Accounts.d.ts +205 -1
  64. package/types/AccountsResource.d.ts +526 -2
  65. package/types/Billing/MeterErrorReports.d.ts +106 -0
  66. package/types/Capital/FinancingOffers.d.ts +188 -0
  67. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  68. package/types/Capital/FinancingSummary.d.ts +106 -0
  69. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  70. package/types/Capital/FinancingTransactions.d.ts +135 -0
  71. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  72. package/types/Cards.d.ts +5 -0
  73. package/types/Charges.d.ts +148 -0
  74. package/types/ChargesResource.d.ts +1294 -0
  75. package/types/Checkout/Sessions.d.ts +304 -6
  76. package/types/Checkout/SessionsResource.d.ts +440 -5
  77. package/types/ConfirmationTokens.d.ts +99 -0
  78. package/types/Coupons.d.ts +1 -1
  79. package/types/CouponsResource.d.ts +1 -1
  80. package/types/CreditNotes.d.ts +21 -0
  81. package/types/CreditNotesResource.d.ts +51 -0
  82. package/types/CustomersResource.d.ts +7 -0
  83. package/types/EventTypes.d.ts +597 -1
  84. package/types/Events.d.ts +93 -0
  85. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  86. package/types/FinancialConnections/Accounts.d.ts +29 -1
  87. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  88. package/types/FinancialConnections/Institutions.d.ts +93 -0
  89. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  90. package/types/FinancialConnections/Sessions.d.ts +49 -1
  91. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  92. package/types/GiftCards/Cards.d.ts +118 -0
  93. package/types/GiftCards/CardsResource.d.ts +159 -0
  94. package/types/GiftCards/Transactions.d.ts +129 -0
  95. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  96. package/types/Identity/VerificationSessions.d.ts +1 -1
  97. package/types/Identity/VerificationSessionsResource.d.ts +1 -1
  98. package/types/InvoiceItems.d.ts +5 -0
  99. package/types/InvoiceItemsResource.d.ts +98 -0
  100. package/types/InvoiceLineItems.d.ts +28 -1
  101. package/types/InvoicePayments.d.ts +113 -0
  102. package/types/Invoices.d.ts +137 -2
  103. package/types/InvoicesResource.d.ts +4618 -933
  104. package/types/Issuing/Authorizations.d.ts +1 -0
  105. package/types/Issuing/CardholdersResource.d.ts +2 -1
  106. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  107. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  108. package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
  109. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  110. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  111. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  112. package/types/Issuing/Settlements.d.ts +103 -0
  113. package/types/Issuing/Transactions.d.ts +2 -0
  114. package/types/Issuing/TransactionsResource.d.ts +5 -0
  115. package/types/LineItems.d.ts +32 -0
  116. package/types/Mandates.d.ts +77 -0
  117. package/types/Margins.d.ts +56 -0
  118. package/types/MarginsResource.d.ts +114 -0
  119. package/types/Orders.d.ts +1189 -0
  120. package/types/OrdersResource.d.ts +2981 -0
  121. package/types/PaymentAttemptRecords.d.ts +242 -0
  122. package/types/PaymentAttemptRecordsResource.d.ts +47 -0
  123. package/types/PaymentIntents.d.ts +644 -1
  124. package/types/PaymentIntentsResource.d.ts +8103 -3816
  125. package/types/PaymentLinks.d.ts +6 -0
  126. package/types/PaymentLinksResource.d.ts +12 -0
  127. package/types/PaymentMethodConfigurations.d.ts +180 -0
  128. package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
  129. package/types/PaymentMethods.d.ts +99 -0
  130. package/types/PaymentMethodsResource.d.ts +133 -0
  131. package/types/PaymentRecords.d.ts +242 -0
  132. package/types/PaymentRecordsResource.d.ts +455 -0
  133. package/types/Prices.d.ts +22 -0
  134. package/types/PricesResource.d.ts +22 -0
  135. package/types/Products.d.ts +39 -0
  136. package/types/ProductsResource.d.ts +36 -0
  137. package/types/QuoteLines.d.ts +634 -0
  138. package/types/QuotePreviewInvoices.d.ts +1658 -0
  139. package/types/QuotePreviewSubscriptionSchedules.d.ts +824 -0
  140. package/types/Quotes.d.ts +591 -1
  141. package/types/QuotesResource.d.ts +2526 -194
  142. package/types/Refunds.d.ts +14 -0
  143. package/types/SetupAttempts.d.ts +38 -0
  144. package/types/SetupIntents.d.ts +111 -1
  145. package/types/SetupIntentsResource.d.ts +645 -3
  146. package/types/Sources.d.ts +29 -0
  147. package/types/SubscriptionItems.d.ts +21 -0
  148. package/types/SubscriptionItemsResource.d.ts +109 -0
  149. package/types/SubscriptionSchedules.d.ts +200 -0
  150. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  151. package/types/Subscriptions.d.ts +91 -1
  152. package/types/SubscriptionsResource.d.ts +369 -2
  153. package/types/Tax/Associations.d.ts +126 -0
  154. package/types/Tax/AssociationsResource.d.ts +29 -0
  155. package/types/Tax/Calculations.d.ts +1 -1
  156. package/types/Tax/Forms.d.ts +220 -0
  157. package/types/Tax/FormsResource.d.ts +107 -0
  158. package/types/TaxRates.d.ts +1 -1
  159. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  160. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  161. package/types/Terminal/Readers.d.ts +290 -0
  162. package/types/Terminal/ReadersResource.d.ts +215 -0
  163. package/types/TestHelpers/ConfirmationTokensResource.d.ts +104 -0
  164. package/types/TestHelpers/Terminal/ReadersResource.d.ts +53 -0
  165. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  166. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  167. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  168. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  169. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  170. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  171. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  172. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  173. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  174. package/types/WebhookEndpointsResource.d.ts +70 -0
  175. package/types/index.d.ts +62 -0
@@ -75,14 +75,14 @@ declare module 'stripe' {
75
75
  client_reference_id: string | null;
76
76
 
77
77
  /**
78
- * Client secret to be used when initializing Stripe.js embedded checkout.
78
+ * The client secret of the Session. Use this with [initCheckout](https://stripe.com/docs/js/custom_checkout/init) on your front end.
79
79
  */
80
80
  client_secret: string | null;
81
81
 
82
82
  /**
83
83
  * Information about the customer collected within the Checkout Session.
84
84
  */
85
- collected_information?: Session.CollectedInformation | null;
85
+ collected_information: Session.CollectedInformation | null;
86
86
 
87
87
  /**
88
88
  * Results of `consent_collection` for this session.
@@ -226,6 +226,13 @@ declare module 'stripe' {
226
226
  */
227
227
  payment_status: Session.PaymentStatus;
228
228
 
229
+ /**
230
+ * This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
231
+ *
232
+ * For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
233
+ */
234
+ permissions?: Session.Permissions | null;
235
+
229
236
  phone_number_collection?: Session.PhoneNumberCollection;
230
237
 
231
238
  /**
@@ -239,7 +246,7 @@ declare module 'stripe' {
239
246
  redirect_on_completion?: Session.RedirectOnCompletion;
240
247
 
241
248
  /**
242
- * Applies to Checkout Sessions with `ui_mode: embedded`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
249
+ * Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
243
250
  */
244
251
  return_url?: string;
245
252
 
@@ -396,10 +403,30 @@ declare module 'stripe' {
396
403
  type BillingAddressCollection = 'auto' | 'required';
397
404
 
398
405
  interface CollectedInformation {
406
+ /**
407
+ * Customer's business name for this Checkout Session
408
+ */
409
+ business_name?: string | null;
410
+
411
+ /**
412
+ * Customer's email for this Checkout Session
413
+ */
414
+ email?: string | null;
415
+
416
+ /**
417
+ * Customer's phone number for this Checkout Session
418
+ */
419
+ phone?: string | null;
420
+
399
421
  /**
400
422
  * Shipping information for this Checkout Session.
401
423
  */
402
- shipping_details?: CollectedInformation.ShippingDetails | null;
424
+ shipping_details: CollectedInformation.ShippingDetails | null;
425
+
426
+ /**
427
+ * Customer's tax ids for this Checkout Session.
428
+ */
429
+ tax_ids?: Array<CollectedInformation.TaxId> | null;
403
430
  }
404
431
 
405
432
  namespace CollectedInformation {
@@ -426,6 +453,123 @@ declare module 'stripe' {
426
453
  */
427
454
  tracking_number?: string | null;
428
455
  }
456
+
457
+ interface TaxId {
458
+ /**
459
+ * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
460
+ */
461
+ type: TaxId.Type;
462
+
463
+ /**
464
+ * The value of the tax ID.
465
+ */
466
+ value: string | null;
467
+ }
468
+
469
+ namespace TaxId {
470
+ type Type =
471
+ | 'ad_nrt'
472
+ | 'ae_trn'
473
+ | 'al_tin'
474
+ | 'am_tin'
475
+ | 'ao_tin'
476
+ | 'ar_cuit'
477
+ | 'au_abn'
478
+ | 'au_arn'
479
+ | 'ba_tin'
480
+ | 'bb_tin'
481
+ | 'bg_uic'
482
+ | 'bh_vat'
483
+ | 'bo_tin'
484
+ | 'br_cnpj'
485
+ | 'br_cpf'
486
+ | 'bs_tin'
487
+ | 'by_tin'
488
+ | 'ca_bn'
489
+ | 'ca_gst_hst'
490
+ | 'ca_pst_bc'
491
+ | 'ca_pst_mb'
492
+ | 'ca_pst_sk'
493
+ | 'ca_qst'
494
+ | 'cd_nif'
495
+ | 'ch_uid'
496
+ | 'ch_vat'
497
+ | 'cl_tin'
498
+ | 'cn_tin'
499
+ | 'co_nit'
500
+ | 'cr_tin'
501
+ | 'de_stn'
502
+ | 'do_rcn'
503
+ | 'ec_ruc'
504
+ | 'eg_tin'
505
+ | 'es_cif'
506
+ | 'eu_oss_vat'
507
+ | 'eu_vat'
508
+ | 'gb_vat'
509
+ | 'ge_vat'
510
+ | 'gn_nif'
511
+ | 'hk_br'
512
+ | 'hr_oib'
513
+ | 'hu_tin'
514
+ | 'id_npwp'
515
+ | 'il_vat'
516
+ | 'in_gst'
517
+ | 'is_vat'
518
+ | 'jp_cn'
519
+ | 'jp_rn'
520
+ | 'jp_trn'
521
+ | 'ke_pin'
522
+ | 'kh_tin'
523
+ | 'kr_brn'
524
+ | 'kz_bin'
525
+ | 'li_uid'
526
+ | 'li_vat'
527
+ | 'ma_vat'
528
+ | 'md_vat'
529
+ | 'me_pib'
530
+ | 'mk_vat'
531
+ | 'mr_nif'
532
+ | 'mx_rfc'
533
+ | 'my_frp'
534
+ | 'my_itn'
535
+ | 'my_sst'
536
+ | 'ng_tin'
537
+ | 'no_vat'
538
+ | 'no_voec'
539
+ | 'np_pan'
540
+ | 'nz_gst'
541
+ | 'om_vat'
542
+ | 'pe_ruc'
543
+ | 'ph_tin'
544
+ | 'ro_tin'
545
+ | 'rs_pib'
546
+ | 'ru_inn'
547
+ | 'ru_kpp'
548
+ | 'sa_vat'
549
+ | 'sg_gst'
550
+ | 'sg_uen'
551
+ | 'si_tin'
552
+ | 'sn_ninea'
553
+ | 'sr_fin'
554
+ | 'sv_nit'
555
+ | 'th_vat'
556
+ | 'tj_tin'
557
+ | 'tr_tin'
558
+ | 'tw_vat'
559
+ | 'tz_vat'
560
+ | 'ua_vat'
561
+ | 'ug_tin'
562
+ | 'unknown'
563
+ | 'us_ein'
564
+ | 'uy_ruc'
565
+ | 'uz_tin'
566
+ | 'uz_vat'
567
+ | 've_rif'
568
+ | 'vn_tin'
569
+ | 'za_vat'
570
+ | 'zm_tin'
571
+ | 'zw_tin';
572
+ }
429
573
  }
430
574
 
431
575
  interface Consent {
@@ -1048,6 +1192,8 @@ declare module 'stripe' {
1048
1192
 
1049
1193
  paypal?: PaymentMethodOptions.Paypal;
1050
1194
 
1195
+ payto?: PaymentMethodOptions.Payto;
1196
+
1051
1197
  pix?: PaymentMethodOptions.Pix;
1052
1198
 
1053
1199
  revolut_pay?: PaymentMethodOptions.RevolutPay;
@@ -1280,6 +1426,11 @@ declare module 'stripe' {
1280
1426
  interface Card {
1281
1427
  installments?: Card.Installments;
1282
1428
 
1429
+ /**
1430
+ * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
1431
+ */
1432
+ request_decremental_authorization?: Card.RequestDecrementalAuthorization;
1433
+
1283
1434
  /**
1284
1435
  * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
1285
1436
  */
@@ -1337,6 +1488,8 @@ declare module 'stripe' {
1337
1488
  enabled?: boolean;
1338
1489
  }
1339
1490
 
1491
+ type RequestDecrementalAuthorization = 'if_available' | 'never';
1492
+
1340
1493
  type RequestExtendedAuthorization = 'if_available' | 'never';
1341
1494
 
1342
1495
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -1718,12 +1871,100 @@ declare module 'stripe' {
1718
1871
  * 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).
1719
1872
  */
1720
1873
  setup_future_usage?: Paypal.SetupFutureUsage;
1874
+
1875
+ /**
1876
+ * 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.
1877
+ */
1878
+ subsellers?: Array<string>;
1721
1879
  }
1722
1880
 
1723
1881
  namespace Paypal {
1724
1882
  type SetupFutureUsage = 'none' | 'off_session';
1725
1883
  }
1726
1884
 
1885
+ interface Payto {
1886
+ mandate_options?: Payto.MandateOptions;
1887
+
1888
+ /**
1889
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1890
+ *
1891
+ * 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.
1892
+ *
1893
+ * 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.
1894
+ *
1895
+ * 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).
1896
+ */
1897
+ setup_future_usage?: Payto.SetupFutureUsage;
1898
+ }
1899
+
1900
+ namespace Payto {
1901
+ interface MandateOptions {
1902
+ /**
1903
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
1904
+ */
1905
+ amount: number | null;
1906
+
1907
+ /**
1908
+ * 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.
1909
+ */
1910
+ amount_type: MandateOptions.AmountType | null;
1911
+
1912
+ /**
1913
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
1914
+ */
1915
+ end_date: string | null;
1916
+
1917
+ /**
1918
+ * The periodicity at which payments will be collected.
1919
+ */
1920
+ payment_schedule: MandateOptions.PaymentSchedule | null;
1921
+
1922
+ /**
1923
+ * 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.
1924
+ */
1925
+ payments_per_period: number | null;
1926
+
1927
+ /**
1928
+ * The purpose for which payments are made. Defaults to retail.
1929
+ */
1930
+ purpose: MandateOptions.Purpose | null;
1931
+
1932
+ /**
1933
+ * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
1934
+ */
1935
+ start_date: string | null;
1936
+ }
1937
+
1938
+ namespace MandateOptions {
1939
+ type AmountType = 'fixed' | 'maximum';
1940
+
1941
+ type PaymentSchedule =
1942
+ | 'adhoc'
1943
+ | 'annual'
1944
+ | 'daily'
1945
+ | 'fortnightly'
1946
+ | 'monthly'
1947
+ | 'quarterly'
1948
+ | 'semi_annual'
1949
+ | 'weekly';
1950
+
1951
+ type Purpose =
1952
+ | 'dependant_support'
1953
+ | 'government'
1954
+ | 'loan'
1955
+ | 'mortgage'
1956
+ | 'other'
1957
+ | 'pension'
1958
+ | 'personal'
1959
+ | 'retail'
1960
+ | 'salary'
1961
+ | 'tax'
1962
+ | 'utility';
1963
+ }
1964
+
1965
+ type SetupFutureUsage = 'none' | 'off_session';
1966
+ }
1967
+
1727
1968
  interface Pix {
1728
1969
  /**
1729
1970
  * The number of seconds after which Pix payment will expire.
@@ -1835,6 +2076,8 @@ declare module 'stripe' {
1835
2076
  interface FinancialConnections {
1836
2077
  filters?: FinancialConnections.Filters;
1837
2078
 
2079
+ manual_entry?: FinancialConnections.ManualEntry;
2080
+
1838
2081
  /**
1839
2082
  * The list of permissions to request. The `payment_method` permission must be included.
1840
2083
  */
@@ -1857,19 +2100,39 @@ declare module 'stripe' {
1857
2100
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
1858
2101
  */
1859
2102
  account_subcategories?: Array<Filters.AccountSubcategory>;
2103
+
2104
+ /**
2105
+ * The institution to use to filter for possible accounts to link.
2106
+ */
2107
+ institution?: string;
1860
2108
  }
1861
2109
 
1862
2110
  namespace Filters {
1863
2111
  type AccountSubcategory = 'checking' | 'savings';
1864
2112
  }
1865
2113
 
2114
+ interface ManualEntry {
2115
+ /**
2116
+ * Settings for configuring manual entry of account details.
2117
+ */
2118
+ mode?: ManualEntry.Mode;
2119
+ }
2120
+
2121
+ namespace ManualEntry {
2122
+ type Mode = 'automatic' | 'custom';
2123
+ }
2124
+
1866
2125
  type Permission =
1867
2126
  | 'balances'
1868
2127
  | 'ownership'
1869
2128
  | 'payment_method'
1870
2129
  | 'transactions';
1871
2130
 
1872
- type Prefetch = 'balances' | 'ownership' | 'transactions';
2131
+ type Prefetch =
2132
+ | 'balances'
2133
+ | 'inferred_balances'
2134
+ | 'ownership'
2135
+ | 'transactions';
1873
2136
  }
1874
2137
 
1875
2138
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -1880,6 +2143,41 @@ declare module 'stripe' {
1880
2143
 
1881
2144
  type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid';
1882
2145
 
2146
+ interface Permissions {
2147
+ /**
2148
+ * Permissions for updating the Checkout Session.
2149
+ */
2150
+ update: Permissions.Update | null;
2151
+ }
2152
+
2153
+ namespace Permissions {
2154
+ interface Update {
2155
+ /**
2156
+ * Determines which entity is allowed to update the line items.
2157
+ *
2158
+ * Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
2159
+ *
2160
+ * When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
2161
+ */
2162
+ line_items?: Update.LineItems | null;
2163
+
2164
+ /**
2165
+ * Determines which entity is allowed to update the shipping details.
2166
+ *
2167
+ * Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
2168
+ *
2169
+ * When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
2170
+ */
2171
+ shipping_details: Update.ShippingDetails | null;
2172
+ }
2173
+
2174
+ namespace Update {
2175
+ type LineItems = 'client_only' | 'server_only';
2176
+
2177
+ type ShippingDetails = 'client_only' | 'server_only';
2178
+ }
2179
+ }
2180
+
1883
2181
  interface PhoneNumberCollection {
1884
2182
  /**
1885
2183
  * Indicates whether phone number collection is enabled for the session
@@ -2387,7 +2685,7 @@ declare module 'stripe' {
2387
2685
  }
2388
2686
  }
2389
2687
 
2390
- type UiMode = 'embedded' | 'hosted';
2688
+ type UiMode = 'custom' | 'embedded' | 'hosted';
2391
2689
  }
2392
2690
  }
2393
2691
  }