stripe 17.4.0-beta.2 → 17.4.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 (181) hide show
  1. package/CHANGELOG.md +124 -954
  2. package/README.md +4 -4
  3. package/VERSION +1 -1
  4. package/cjs/apiVersion.js +1 -1
  5. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  6. package/cjs/resources/Invoices.js +0 -17
  7. package/cjs/resources/PaymentIntents.js +0 -8
  8. package/cjs/resources/Quotes.js +0 -32
  9. package/cjs/resources/SubscriptionSchedules.js +0 -4
  10. package/cjs/resources/Terminal/Readers.js +0 -12
  11. package/cjs/resources/TestHelpers/Issuing/Authorizations.js +4 -0
  12. package/cjs/resources.js +10 -48
  13. package/cjs/stripe.core.js +1 -1
  14. package/esm/apiVersion.js +1 -1
  15. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  16. package/esm/resources/Invoices.js +0 -17
  17. package/esm/resources/PaymentIntents.js +0 -8
  18. package/esm/resources/Quotes.js +0 -32
  19. package/esm/resources/SubscriptionSchedules.js +0 -4
  20. package/esm/resources/Terminal/Readers.js +0 -12
  21. package/esm/resources/TestHelpers/Issuing/Authorizations.js +4 -0
  22. package/esm/resources.js +0 -33
  23. package/esm/stripe.core.js +1 -1
  24. package/package.json +1 -1
  25. package/types/AccountLinksResource.d.ts +1 -5
  26. package/types/AccountSessions.d.ts +0 -45
  27. package/types/AccountSessionsResource.d.ts +0 -355
  28. package/types/Accounts.d.ts +1 -183
  29. package/types/AccountsResource.d.ts +15 -496
  30. package/types/Charges.d.ts +0 -116
  31. package/types/ChargesResource.d.ts +0 -1294
  32. package/types/Checkout/Sessions.d.ts +5 -311
  33. package/types/Checkout/SessionsResource.d.ts +6 -362
  34. package/types/ConfirmationTokens.d.ts +0 -99
  35. package/types/Coupons.d.ts +1 -1
  36. package/types/CouponsResource.d.ts +1 -1
  37. package/types/CreditNotes.d.ts +0 -21
  38. package/types/CreditNotesResource.d.ts +0 -51
  39. package/types/CustomersResource.d.ts +0 -7
  40. package/types/EventTypes.d.ts +0 -579
  41. package/types/Events.d.ts +0 -92
  42. package/types/FileLinksResource.d.ts +1 -1
  43. package/types/Files.d.ts +1 -0
  44. package/types/FilesResource.d.ts +1 -0
  45. package/types/FinancialConnections/Accounts.d.ts +1 -29
  46. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  47. package/types/FinancialConnections/Sessions.d.ts +1 -49
  48. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  49. package/types/InvoiceItems.d.ts +0 -5
  50. package/types/InvoiceItemsResource.d.ts +0 -98
  51. package/types/InvoiceLineItems.d.ts +1 -28
  52. package/types/Invoices.d.ts +2 -137
  53. package/types/InvoicesResource.d.ts +1846 -5531
  54. package/types/Issuing/Authorizations.d.ts +40 -0
  55. package/types/Issuing/Cardholders.d.ts +1 -1
  56. package/types/Issuing/CardholdersResource.d.ts +1 -2
  57. package/types/Issuing/Cards.d.ts +1 -1
  58. package/types/Issuing/Transactions.d.ts +0 -2
  59. package/types/Issuing/TransactionsResource.d.ts +0 -5
  60. package/types/LineItems.d.ts +0 -7
  61. package/types/Mandates.d.ts +0 -77
  62. package/types/PaymentIntents.d.ts +1 -637
  63. package/types/PaymentIntentsResource.d.ts +3693 -7934
  64. package/types/PaymentLinks.d.ts +1 -7
  65. package/types/PaymentLinksResource.d.ts +2 -14
  66. package/types/PaymentMethodConfigurations.d.ts +0 -180
  67. package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
  68. package/types/PaymentMethods.d.ts +0 -99
  69. package/types/PaymentMethodsResource.d.ts +0 -133
  70. package/types/Payouts.d.ts +17 -0
  71. package/types/Persons.d.ts +5 -0
  72. package/types/Prices.d.ts +0 -22
  73. package/types/PricesResource.d.ts +0 -22
  74. package/types/Products.d.ts +0 -39
  75. package/types/ProductsResource.d.ts +0 -36
  76. package/types/Quotes.d.ts +1 -591
  77. package/types/QuotesResource.d.ts +199 -2531
  78. package/types/Refunds.d.ts +10 -14
  79. package/types/SetupAttempts.d.ts +0 -38
  80. package/types/SetupIntents.d.ts +1 -111
  81. package/types/SetupIntentsResource.d.ts +3 -645
  82. package/types/Sources.d.ts +0 -23
  83. package/types/SubscriptionItems.d.ts +0 -21
  84. package/types/SubscriptionItemsResource.d.ts +0 -109
  85. package/types/SubscriptionSchedules.d.ts +0 -200
  86. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  87. package/types/Subscriptions.d.ts +3 -93
  88. package/types/SubscriptionsResource.d.ts +4 -371
  89. package/types/Terminal/Readers.d.ts +0 -278
  90. package/types/Terminal/ReadersResource.d.ts +0 -215
  91. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -104
  92. package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +23 -0
  93. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  94. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  95. package/types/TokensResource.d.ts +5 -0
  96. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  97. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  98. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  99. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  100. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  101. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  102. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  103. package/types/WebhookEndpointsResource.d.ts +2 -69
  104. package/types/index.d.ts +0 -62
  105. package/types/lib.d.ts +1 -1
  106. package/types/test/typescriptTest.ts +3 -3
  107. package/cjs/resources/AccountNotices.js +0 -21
  108. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  109. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  110. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  111. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  112. package/cjs/resources/GiftCards/Cards.js +0 -23
  113. package/cjs/resources/GiftCards/Transactions.js +0 -33
  114. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  115. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  116. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  117. package/cjs/resources/Margins.js +0 -22
  118. package/cjs/resources/Orders.js +0 -24
  119. package/cjs/resources/PaymentAttemptRecords.js +0 -17
  120. package/cjs/resources/PaymentRecords.js +0 -29
  121. package/cjs/resources/Tax/Associations.js +0 -9
  122. package/cjs/resources/Tax/Forms.js +0 -20
  123. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  124. package/esm/resources/AccountNotices.js +0 -18
  125. package/esm/resources/Capital/FinancingOffers.js +0 -18
  126. package/esm/resources/Capital/FinancingSummary.js +0 -9
  127. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  128. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  129. package/esm/resources/GiftCards/Cards.js +0 -20
  130. package/esm/resources/GiftCards/Transactions.js +0 -30
  131. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  132. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  133. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  134. package/esm/resources/Margins.js +0 -19
  135. package/esm/resources/Orders.js +0 -21
  136. package/esm/resources/PaymentAttemptRecords.js +0 -14
  137. package/esm/resources/PaymentRecords.js +0 -26
  138. package/esm/resources/Tax/Associations.js +0 -6
  139. package/esm/resources/Tax/Forms.js +0 -17
  140. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  141. package/types/AccountNotices.d.ts +0 -113
  142. package/types/AccountNoticesResource.d.ts +0 -98
  143. package/types/Billing/MeterErrorReports.d.ts +0 -106
  144. package/types/Capital/FinancingOffers.d.ts +0 -188
  145. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  146. package/types/Capital/FinancingSummary.d.ts +0 -106
  147. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  148. package/types/Capital/FinancingTransactions.d.ts +0 -135
  149. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  150. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  151. package/types/FinancialConnections/Institutions.d.ts +0 -93
  152. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  153. package/types/GiftCards/Cards.d.ts +0 -118
  154. package/types/GiftCards/CardsResource.d.ts +0 -159
  155. package/types/GiftCards/Transactions.d.ts +0 -129
  156. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  157. package/types/InvoicePayments.d.ts +0 -113
  158. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  159. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  160. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  161. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  162. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  163. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  164. package/types/Issuing/Settlements.d.ts +0 -103
  165. package/types/Margins.d.ts +0 -56
  166. package/types/MarginsResource.d.ts +0 -114
  167. package/types/Orders.d.ts +0 -1155
  168. package/types/OrdersResource.d.ts +0 -2913
  169. package/types/PaymentAttemptRecords.d.ts +0 -242
  170. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  171. package/types/PaymentRecords.d.ts +0 -259
  172. package/types/PaymentRecordsResource.d.ts +0 -455
  173. package/types/QuoteLines.d.ts +0 -634
  174. package/types/QuotePreviewInvoices.d.ts +0 -1615
  175. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  176. package/types/Tax/Associations.d.ts +0 -126
  177. package/types/Tax/AssociationsResource.d.ts +0 -29
  178. package/types/Tax/Forms.d.ts +0 -220
  179. package/types/Tax/FormsResource.d.ts +0 -107
  180. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  181. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
@@ -75,15 +75,10 @@ declare module 'stripe' {
75
75
  client_reference_id: string | null;
76
76
 
77
77
  /**
78
- * The client secret of the Session. Use this with [initCustomCheckout](https://stripe.com/docs/js/custom_checkout/init) on your front end.
78
+ * Client secret to be used when initializing Stripe.js embedded checkout.
79
79
  */
80
80
  client_secret: string | null;
81
81
 
82
- /**
83
- * Information about the customer collected within the Checkout Session.
84
- */
85
- collected_information?: Session.CollectedInformation | null;
86
-
87
82
  /**
88
83
  * Results of `consent_collection` for this session.
89
84
  */
@@ -221,13 +216,6 @@ declare module 'stripe' {
221
216
  */
222
217
  payment_status: Session.PaymentStatus;
223
218
 
224
- /**
225
- * This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
226
- *
227
- * For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
228
- */
229
- permissions?: Session.Permissions | null;
230
-
231
219
  phone_number_collection?: Session.PhoneNumberCollection;
232
220
 
233
221
  /**
@@ -241,7 +229,7 @@ declare module 'stripe' {
241
229
  redirect_on_completion?: Session.RedirectOnCompletion;
242
230
 
243
231
  /**
244
- * 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.
232
+ * 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.
245
233
  */
246
234
  return_url?: string;
247
235
 
@@ -397,157 +385,6 @@ declare module 'stripe' {
397
385
 
398
386
  type BillingAddressCollection = 'auto' | 'required';
399
387
 
400
- interface CollectedInformation {
401
- /**
402
- * Customer's business name for this Checkout Session
403
- */
404
- business_name: string | null;
405
-
406
- /**
407
- * Customer's email for this Checkout Session
408
- */
409
- email: string | null;
410
-
411
- /**
412
- * Customer's phone number for this Checkout Session
413
- */
414
- phone: string | null;
415
-
416
- /**
417
- * Shipping information for this Checkout Session.
418
- */
419
- shipping_details: CollectedInformation.ShippingDetails | null;
420
-
421
- /**
422
- * Customer's tax ids for this Checkout Session.
423
- */
424
- tax_ids: Array<CollectedInformation.TaxId> | null;
425
- }
426
-
427
- namespace CollectedInformation {
428
- interface ShippingDetails {
429
- address?: Stripe.Address;
430
-
431
- /**
432
- * The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
433
- */
434
- carrier?: string | null;
435
-
436
- /**
437
- * Recipient name.
438
- */
439
- name?: string;
440
-
441
- /**
442
- * Recipient phone (including extension).
443
- */
444
- phone?: string | null;
445
-
446
- /**
447
- * The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
448
- */
449
- tracking_number?: string | null;
450
- }
451
-
452
- interface TaxId {
453
- /**
454
- * 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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown`
455
- */
456
- type: TaxId.Type;
457
-
458
- /**
459
- * The value of the tax ID.
460
- */
461
- value: string | null;
462
- }
463
-
464
- namespace TaxId {
465
- type Type =
466
- | 'ad_nrt'
467
- | 'ae_trn'
468
- | 'ar_cuit'
469
- | 'au_abn'
470
- | 'au_arn'
471
- | 'bg_uic'
472
- | 'bh_vat'
473
- | 'bo_tin'
474
- | 'br_cnpj'
475
- | 'br_cpf'
476
- | 'by_tin'
477
- | 'ca_bn'
478
- | 'ca_gst_hst'
479
- | 'ca_pst_bc'
480
- | 'ca_pst_mb'
481
- | 'ca_pst_sk'
482
- | 'ca_qst'
483
- | 'ch_uid'
484
- | 'ch_vat'
485
- | 'cl_tin'
486
- | 'cn_tin'
487
- | 'co_nit'
488
- | 'cr_tin'
489
- | 'de_stn'
490
- | 'do_rcn'
491
- | 'ec_ruc'
492
- | 'eg_tin'
493
- | 'es_cif'
494
- | 'eu_oss_vat'
495
- | 'eu_vat'
496
- | 'gb_vat'
497
- | 'ge_vat'
498
- | 'hk_br'
499
- | 'hr_oib'
500
- | 'hu_tin'
501
- | 'id_npwp'
502
- | 'il_vat'
503
- | 'in_gst'
504
- | 'is_vat'
505
- | 'jp_cn'
506
- | 'jp_rn'
507
- | 'jp_trn'
508
- | 'ke_pin'
509
- | 'kr_brn'
510
- | 'kz_bin'
511
- | 'li_uid'
512
- | 'li_vat'
513
- | 'ma_vat'
514
- | 'md_vat'
515
- | 'mx_rfc'
516
- | 'my_frp'
517
- | 'my_itn'
518
- | 'my_sst'
519
- | 'ng_tin'
520
- | 'no_vat'
521
- | 'no_voec'
522
- | 'nz_gst'
523
- | 'om_vat'
524
- | 'pe_ruc'
525
- | 'ph_tin'
526
- | 'ro_tin'
527
- | 'rs_pib'
528
- | 'ru_inn'
529
- | 'ru_kpp'
530
- | 'sa_vat'
531
- | 'sg_gst'
532
- | 'sg_uen'
533
- | 'si_tin'
534
- | 'sv_nit'
535
- | 'th_vat'
536
- | 'tr_tin'
537
- | 'tw_vat'
538
- | 'tz_vat'
539
- | 'ua_vat'
540
- | 'unknown'
541
- | 'us_ein'
542
- | 'uy_ruc'
543
- | 'uz_tin'
544
- | 'uz_vat'
545
- | 've_rif'
546
- | 'vn_tin'
547
- | 'za_vat';
548
- }
549
- }
550
-
551
388
  interface Consent {
552
389
  /**
553
390
  * If `opt_in`, the customer consents to receiving promotional communications
@@ -1137,8 +974,6 @@ declare module 'stripe' {
1137
974
 
1138
975
  paypal?: PaymentMethodOptions.Paypal;
1139
976
 
1140
- payto?: PaymentMethodOptions.Payto;
1141
-
1142
977
  pix?: PaymentMethodOptions.Pix;
1143
978
 
1144
979
  revolut_pay?: PaymentMethodOptions.RevolutPay;
@@ -1351,11 +1186,6 @@ declare module 'stripe' {
1351
1186
  interface Card {
1352
1187
  installments?: Card.Installments;
1353
1188
 
1354
- /**
1355
- * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
1356
- */
1357
- request_decremental_authorization?: Card.RequestDecrementalAuthorization;
1358
-
1359
1189
  /**
1360
1190
  * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
1361
1191
  */
@@ -1411,8 +1241,6 @@ declare module 'stripe' {
1411
1241
  enabled?: boolean;
1412
1242
  }
1413
1243
 
1414
- type RequestDecrementalAuthorization = 'if_available' | 'never';
1415
-
1416
1244
  type RequestExtendedAuthorization = 'if_available' | 'never';
1417
1245
 
1418
1246
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -1779,100 +1607,12 @@ declare module 'stripe' {
1779
1607
  * 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).
1780
1608
  */
1781
1609
  setup_future_usage?: Paypal.SetupFutureUsage;
1782
-
1783
- /**
1784
- * 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.
1785
- */
1786
- subsellers?: Array<string>;
1787
1610
  }
1788
1611
 
1789
1612
  namespace Paypal {
1790
1613
  type SetupFutureUsage = 'none' | 'off_session';
1791
1614
  }
1792
1615
 
1793
- interface Payto {
1794
- mandate_options?: Payto.MandateOptions;
1795
-
1796
- /**
1797
- * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1798
- *
1799
- * 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.
1800
- *
1801
- * 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.
1802
- *
1803
- * 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).
1804
- */
1805
- setup_future_usage?: Payto.SetupFutureUsage;
1806
- }
1807
-
1808
- namespace Payto {
1809
- interface MandateOptions {
1810
- /**
1811
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
1812
- */
1813
- amount: number | null;
1814
-
1815
- /**
1816
- * 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.
1817
- */
1818
- amount_type: MandateOptions.AmountType | null;
1819
-
1820
- /**
1821
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
1822
- */
1823
- end_date: string | null;
1824
-
1825
- /**
1826
- * The periodicity at which payments will be collected.
1827
- */
1828
- payment_schedule: MandateOptions.PaymentSchedule | null;
1829
-
1830
- /**
1831
- * 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.
1832
- */
1833
- payments_per_period: number | null;
1834
-
1835
- /**
1836
- * The purpose for which payments are made. Defaults to retail.
1837
- */
1838
- purpose: MandateOptions.Purpose | null;
1839
-
1840
- /**
1841
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
1842
- */
1843
- start_date: string | null;
1844
- }
1845
-
1846
- namespace MandateOptions {
1847
- type AmountType = 'fixed' | 'maximum';
1848
-
1849
- type PaymentSchedule =
1850
- | 'adhoc'
1851
- | 'annual'
1852
- | 'daily'
1853
- | 'fortnightly'
1854
- | 'monthly'
1855
- | 'quarterly'
1856
- | 'semi_annual'
1857
- | 'weekly';
1858
-
1859
- type Purpose =
1860
- | 'dependant_support'
1861
- | 'government'
1862
- | 'loan'
1863
- | 'mortgage'
1864
- | 'other'
1865
- | 'pension'
1866
- | 'personal'
1867
- | 'retail'
1868
- | 'salary'
1869
- | 'tax'
1870
- | 'utility';
1871
- }
1872
-
1873
- type SetupFutureUsage = 'none' | 'off_session';
1874
- }
1875
-
1876
1616
  interface Pix {
1877
1617
  /**
1878
1618
  * The number of seconds after which Pix payment will expire.
@@ -1969,8 +1709,6 @@ declare module 'stripe' {
1969
1709
  interface FinancialConnections {
1970
1710
  filters?: FinancialConnections.Filters;
1971
1711
 
1972
- manual_entry?: FinancialConnections.ManualEntry;
1973
-
1974
1712
  /**
1975
1713
  * The list of permissions to request. The `payment_method` permission must be included.
1976
1714
  */
@@ -1993,39 +1731,19 @@ declare module 'stripe' {
1993
1731
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
1994
1732
  */
1995
1733
  account_subcategories?: Array<Filters.AccountSubcategory>;
1996
-
1997
- /**
1998
- * The institution to use to filter for possible accounts to link.
1999
- */
2000
- institution?: string;
2001
1734
  }
2002
1735
 
2003
1736
  namespace Filters {
2004
1737
  type AccountSubcategory = 'checking' | 'savings';
2005
1738
  }
2006
1739
 
2007
- interface ManualEntry {
2008
- /**
2009
- * Settings for configuring manual entry of account details.
2010
- */
2011
- mode?: ManualEntry.Mode;
2012
- }
2013
-
2014
- namespace ManualEntry {
2015
- type Mode = 'automatic' | 'custom';
2016
- }
2017
-
2018
1740
  type Permission =
2019
1741
  | 'balances'
2020
1742
  | 'ownership'
2021
1743
  | 'payment_method'
2022
1744
  | 'transactions';
2023
1745
 
2024
- type Prefetch =
2025
- | 'balances'
2026
- | 'inferred_balances'
2027
- | 'ownership'
2028
- | 'transactions';
1746
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
2029
1747
  }
2030
1748
 
2031
1749
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -2036,30 +1754,6 @@ declare module 'stripe' {
2036
1754
 
2037
1755
  type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid';
2038
1756
 
2039
- interface Permissions {
2040
- /**
2041
- * Permissions for updating the Checkout Session.
2042
- */
2043
- update: Permissions.Update | null;
2044
- }
2045
-
2046
- namespace Permissions {
2047
- interface Update {
2048
- /**
2049
- * Determines which entity is allowed to update the shipping details.
2050
- *
2051
- * 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.
2052
- *
2053
- * 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.
2054
- */
2055
- shipping_details: Update.ShippingDetails | null;
2056
- }
2057
-
2058
- namespace Update {
2059
- type ShippingDetails = 'client_only' | 'server_only';
2060
- }
2061
- }
2062
-
2063
1757
  interface PhoneNumberCollection {
2064
1758
  /**
2065
1759
  * Indicates whether phone number collection is enabled for the session
@@ -2455,7 +2149,7 @@ declare module 'stripe' {
2455
2149
 
2456
2150
  type Status = 'complete' | 'expired' | 'open';
2457
2151
 
2458
- type SubmitType = 'auto' | 'book' | 'donate' | 'pay';
2152
+ type SubmitType = 'auto' | 'book' | 'donate' | 'pay' | 'subscribe';
2459
2153
 
2460
2154
  interface TaxIdCollection {
2461
2155
  /**
@@ -2566,7 +2260,7 @@ declare module 'stripe' {
2566
2260
  }
2567
2261
  }
2568
2262
 
2569
- type UiMode = 'custom' | 'embedded' | 'hosted';
2263
+ type UiMode = 'embedded' | 'hosted';
2570
2264
  }
2571
2265
  }
2572
2266
  }