stripe 17.2.0-beta.2 → 17.2.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 (183) hide show
  1. package/CHANGELOG.md +117 -899
  2. package/README.md +4 -4
  3. package/VERSION +1 -1
  4. package/cjs/Webhooks.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 -4
  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/Cards.js +0 -4
  12. package/cjs/resources/V2/Core/Events.js +50 -7
  13. package/cjs/resources.js +10 -42
  14. package/cjs/stripe.core.js +1 -1
  15. package/esm/Webhooks.js +1 -1
  16. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  17. package/esm/resources/Invoices.js +0 -17
  18. package/esm/resources/PaymentIntents.js +0 -4
  19. package/esm/resources/Quotes.js +0 -32
  20. package/esm/resources/SubscriptionSchedules.js +0 -4
  21. package/esm/resources/Terminal/Readers.js +0 -12
  22. package/esm/resources/TestHelpers/Issuing/Cards.js +0 -4
  23. package/esm/resources/V2/Core/Events.js +50 -7
  24. package/esm/resources.js +0 -29
  25. package/esm/stripe.core.js +1 -1
  26. package/package.json +1 -1
  27. package/types/AccountLinksResource.d.ts +1 -5
  28. package/types/AccountSessions.d.ts +5 -75
  29. package/types/AccountSessionsResource.d.ts +5 -354
  30. package/types/Accounts.d.ts +3 -127
  31. package/types/AccountsResource.d.ts +2 -296
  32. package/types/Billing/CreditGrants.d.ts +2 -2
  33. package/types/Billing/CreditGrantsResource.d.ts +2 -2
  34. package/types/Billing/Meters.d.ts +0 -2
  35. package/types/Charges.d.ts +0 -152
  36. package/types/ChargesResource.d.ts +0 -1294
  37. package/types/Checkout/Sessions.d.ts +5 -309
  38. package/types/Checkout/SessionsResource.d.ts +5 -356
  39. package/types/ConfirmationTokens.d.ts +0 -137
  40. package/types/Coupons.d.ts +1 -1
  41. package/types/CouponsResource.d.ts +1 -1
  42. package/types/CreditNotes.d.ts +0 -21
  43. package/types/CreditNotesResource.d.ts +0 -51
  44. package/types/CustomersResource.d.ts +2 -22
  45. package/types/Disputes.d.ts +0 -152
  46. package/types/DisputesResource.d.ts +0 -120
  47. package/types/EventTypes.d.ts +2 -564
  48. package/types/Events.d.ts +0 -91
  49. package/types/FinancialConnections/Accounts.d.ts +1 -29
  50. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  51. package/types/FinancialConnections/Sessions.d.ts +1 -49
  52. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  53. package/types/Forwarding/Requests.d.ts +0 -5
  54. package/types/InvoiceItems.d.ts +0 -5
  55. package/types/InvoiceItemsResource.d.ts +0 -98
  56. package/types/InvoiceLineItems.d.ts +1 -31
  57. package/types/Invoices.d.ts +3 -134
  58. package/types/InvoicesResource.d.ts +1836 -5515
  59. package/types/Issuing/Authorizations.d.ts +1 -1
  60. package/types/Issuing/AuthorizationsResource.d.ts +1 -1
  61. package/types/Issuing/CardholdersResource.d.ts +1 -2
  62. package/types/Issuing/Transactions.d.ts +0 -2
  63. package/types/Issuing/TransactionsResource.d.ts +0 -5
  64. package/types/LineItems.d.ts +0 -7
  65. package/types/Mandates.d.ts +0 -85
  66. package/types/PaymentIntents.d.ts +1 -643
  67. package/types/PaymentIntentsResource.d.ts +3463 -7739
  68. package/types/PaymentLinks.d.ts +0 -3
  69. package/types/PaymentLinksResource.d.ts +0 -6
  70. package/types/PaymentMethodConfigurations.d.ts +0 -36
  71. package/types/PaymentMethodConfigurationsResource.d.ts +2 -52
  72. package/types/PaymentMethods.d.ts +0 -137
  73. package/types/PaymentMethodsResource.d.ts +0 -158
  74. package/types/Persons.d.ts +1 -1
  75. package/types/Prices.d.ts +0 -22
  76. package/types/PricesResource.d.ts +0 -22
  77. package/types/Products.d.ts +0 -39
  78. package/types/ProductsResource.d.ts +0 -36
  79. package/types/Quotes.d.ts +1 -591
  80. package/types/QuotesResource.d.ts +199 -2531
  81. package/types/SetupAttempts.d.ts +0 -19
  82. package/types/SetupIntents.d.ts +1 -112
  83. package/types/SetupIntentsResource.d.ts +3 -669
  84. package/types/Sources.d.ts +0 -23
  85. package/types/SubscriptionItems.d.ts +0 -21
  86. package/types/SubscriptionItemsResource.d.ts +0 -109
  87. package/types/SubscriptionSchedules.d.ts +0 -200
  88. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  89. package/types/Subscriptions.d.ts +1 -82
  90. package/types/SubscriptionsResource.d.ts +3 -348
  91. package/types/Tax/CalculationLineItems.d.ts +0 -1
  92. package/types/Tax/Calculations.d.ts +1 -33
  93. package/types/Tax/CalculationsResource.d.ts +1 -7
  94. package/types/Tax/Registrations.d.ts +0 -82
  95. package/types/Tax/RegistrationsResource.d.ts +0 -109
  96. package/types/Tax/Transactions.d.ts +1 -8
  97. package/types/TaxIds.d.ts +1 -7
  98. package/types/TaxIdsResource.d.ts +1 -7
  99. package/types/TaxRates.d.ts +0 -25
  100. package/types/TaxRatesResource.d.ts +0 -2
  101. package/types/Terminal/Readers.d.ts +0 -278
  102. package/types/Terminal/ReadersResource.d.ts +0 -215
  103. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -112
  104. package/types/TestHelpers/Issuing/CardsResource.d.ts +0 -22
  105. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  106. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  107. package/types/TokensResource.d.ts +1 -1
  108. package/types/Treasury/FinancialAccounts.d.ts +1 -6
  109. package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
  110. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  111. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  112. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  113. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  114. package/types/UsageRecordSummaries.d.ts +1 -1
  115. package/types/V2/Billing/MeterEventAdjustments.d.ts +1 -1
  116. package/types/V2/Billing/MeterEventSessions.d.ts +1 -1
  117. package/types/V2/Billing/MeterEvents.d.ts +1 -1
  118. package/types/V2/EventTypes.d.ts +3 -1
  119. package/types/WebhookEndpointsResource.d.ts +0 -66
  120. package/types/index.d.ts +0 -53
  121. package/cjs/resources/AccountNotices.js +0 -21
  122. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  123. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  124. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  125. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  126. package/cjs/resources/GiftCards/Cards.js +0 -23
  127. package/cjs/resources/GiftCards/Transactions.js +0 -33
  128. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  129. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  130. package/cjs/resources/Margins.js +0 -22
  131. package/cjs/resources/Orders.js +0 -24
  132. package/cjs/resources/Tax/Associations.js +0 -9
  133. package/cjs/resources/Tax/Forms.js +0 -20
  134. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  135. package/esm/resources/AccountNotices.js +0 -18
  136. package/esm/resources/Capital/FinancingOffers.js +0 -18
  137. package/esm/resources/Capital/FinancingSummary.js +0 -9
  138. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  139. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  140. package/esm/resources/GiftCards/Cards.js +0 -20
  141. package/esm/resources/GiftCards/Transactions.js +0 -30
  142. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  143. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  144. package/esm/resources/Margins.js +0 -19
  145. package/esm/resources/Orders.js +0 -21
  146. package/esm/resources/Tax/Associations.js +0 -6
  147. package/esm/resources/Tax/Forms.js +0 -17
  148. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  149. package/types/AccountNotices.d.ts +0 -113
  150. package/types/AccountNoticesResource.d.ts +0 -98
  151. package/types/Billing/MeterErrorReports.d.ts +0 -106
  152. package/types/Capital/FinancingOffers.d.ts +0 -188
  153. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  154. package/types/Capital/FinancingSummary.d.ts +0 -106
  155. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  156. package/types/Capital/FinancingTransactions.d.ts +0 -135
  157. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  158. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  159. package/types/FinancialConnections/Institutions.d.ts +0 -93
  160. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  161. package/types/GiftCards/Cards.d.ts +0 -118
  162. package/types/GiftCards/CardsResource.d.ts +0 -159
  163. package/types/GiftCards/Transactions.d.ts +0 -129
  164. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  165. package/types/InvoicePayments.d.ts +0 -138
  166. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  167. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  168. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  169. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  170. package/types/Issuing/Settlements.d.ts +0 -103
  171. package/types/Margins.d.ts +0 -56
  172. package/types/MarginsResource.d.ts +0 -114
  173. package/types/Orders.d.ts +0 -1154
  174. package/types/OrdersResource.d.ts +0 -2911
  175. package/types/QuoteLines.d.ts +0 -634
  176. package/types/QuotePreviewInvoices.d.ts +0 -1596
  177. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  178. package/types/Tax/Associations.d.ts +0 -126
  179. package/types/Tax/AssociationsResource.d.ts +0 -29
  180. package/types/Tax/Forms.d.ts +0 -133
  181. package/types/Tax/FormsResource.d.ts +0 -90
  182. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  183. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
@@ -68,16 +68,6 @@ declare module 'stripe' {
68
68
  */
69
69
  livemode: boolean;
70
70
 
71
- /**
72
- * The amount of margin calculated per margin for this line item.
73
- */
74
- margin_amounts?: Array<InvoiceLineItem.MarginAmount> | null;
75
-
76
- /**
77
- * The margins applied to the line item. When set, the `default_margins` on the invoice do not apply to the line item. Use `expand[]=margins` to expand each margin.
78
- */
79
- margins?: Array<string | Stripe.Margin> | null;
80
-
81
71
  /**
82
72
  * 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. Note that for line items with `type=subscription`, `metadata` reflects the current metadata from the subscription associated with the line item, unless the invoice line was directly updated with different metadata after creation.
83
73
  */
@@ -90,9 +80,6 @@ declare module 'stripe' {
90
80
  */
91
81
  plan: Stripe.Plan | null;
92
82
 
93
- /**
94
- * Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this line item.
95
- */
96
83
  pretax_credit_amounts?: Array<InvoiceLineItem.PretaxCreditAmount> | null;
97
84
 
98
85
  /**
@@ -159,18 +146,6 @@ declare module 'stripe' {
159
146
  discount: string | Stripe.Discount | Stripe.DeletedDiscount;
160
147
  }
161
148
 
162
- interface MarginAmount {
163
- /**
164
- * The amount, in cents (or local equivalent), of the reduction in line item amount.
165
- */
166
- amount: number;
167
-
168
- /**
169
- * The margin that was applied to get this margin amount.
170
- */
171
- margin: string | Stripe.Margin;
172
- }
173
-
174
149
  interface Period {
175
150
  /**
176
151
  * The end of the period, which must be greater than or equal to the start. This value is inclusive.
@@ -202,11 +177,6 @@ declare module 'stripe' {
202
177
  */
203
178
  discount?: string | Stripe.Discount | Stripe.DeletedDiscount;
204
179
 
205
- /**
206
- * The margin that was applied to get this pretax credit amount.
207
- */
208
- margin?: string | Stripe.Margin;
209
-
210
180
  /**
211
181
  * Type of the pretax credit amount referenced.
212
182
  */
@@ -214,7 +184,7 @@ declare module 'stripe' {
214
184
  }
215
185
 
216
186
  namespace PretaxCreditAmount {
217
- type Type = 'credit_balance_transaction' | 'discount' | 'margin';
187
+ type Type = 'credit_balance_transaction' | 'discount';
218
188
  }
219
189
 
220
190
  interface ProrationDetails {
@@ -104,11 +104,6 @@ declare module 'stripe' {
104
104
  */
105
105
  amount_shipping: number;
106
106
 
107
- /**
108
- * List of expected payments and corresponding due dates. This value will be null for invoices where collection_method=charge_automatically.
109
- */
110
- amounts_due?: Array<Invoice.AmountsDue> | null;
111
-
112
107
  /**
113
108
  * ID of the Connect Application that created the invoice.
114
109
  */
@@ -223,11 +218,6 @@ declare module 'stripe' {
223
218
  */
224
219
  customer_tax_ids?: Array<Invoice.CustomerTaxId> | null;
225
220
 
226
- /**
227
- * The margins applied to the invoice. Can be overridden by line item `margins`. Use `expand[]=default_margins` to expand each margin.
228
- */
229
- default_margins?: Array<string | Stripe.Margin> | null;
230
-
231
221
  /**
232
222
  * ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
233
223
  */
@@ -357,11 +347,6 @@ declare module 'stripe' {
357
347
 
358
348
  payment_settings: Invoice.PaymentSettings;
359
349
 
360
- /**
361
- * Payments for this invoice
362
- */
363
- payments?: ApiList<Stripe.InvoicePayment>;
364
-
365
350
  /**
366
351
  * End of the usage period during which invoice items were added to this invoice. This looks back one period for a subscription invoice. Use the [line item period](https://stripe.com/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price.
367
352
  */
@@ -476,14 +461,6 @@ declare module 'stripe' {
476
461
  */
477
462
  total_excluding_tax: number | null;
478
463
 
479
- /**
480
- * The aggregate amounts calculated per margin across all line items.
481
- */
482
- total_margin_amounts?: Array<Invoice.TotalMarginAmount> | null;
483
-
484
- /**
485
- * Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this invoice. This is a combined list of total_pretax_credit_amounts across all invoice line items.
486
- */
487
464
  total_pretax_credit_amounts?: Array<
488
465
  Invoice.TotalPretaxCreditAmount
489
466
  > | null;
@@ -505,52 +482,6 @@ declare module 'stripe' {
505
482
  }
506
483
 
507
484
  namespace Invoice {
508
- interface AmountsDue {
509
- /**
510
- * Incremental amount due for this payment in cents (or local equivalent).
511
- */
512
- amount: number;
513
-
514
- /**
515
- * The amount in cents (or local equivalent) that was paid for this payment.
516
- */
517
- amount_paid: number;
518
-
519
- /**
520
- * The difference between the payment's amount and amount_paid, in cents (or local equivalent).
521
- */
522
- amount_remaining: number;
523
-
524
- /**
525
- * Number of days from when invoice is finalized until the payment is due.
526
- */
527
- days_until_due: number | null;
528
-
529
- /**
530
- * An arbitrary string attached to the object. Often useful for displaying to users.
531
- */
532
- description: string | null;
533
-
534
- /**
535
- * Date on which a payment plan's payment is due.
536
- */
537
- due_date: number | null;
538
-
539
- /**
540
- * Timestamp when the payment was paid.
541
- */
542
- paid_at: number | null;
543
-
544
- /**
545
- * The status of the payment, one of `open`, `paid`, or `past_due`
546
- */
547
- status: AmountsDue.Status;
548
- }
549
-
550
- namespace AmountsDue {
551
- type Status = 'open' | 'paid' | 'past_due';
552
- }
553
-
554
485
  interface AutomaticTax {
555
486
  /**
556
487
  * Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/docs/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.
@@ -629,7 +560,7 @@ declare module 'stripe' {
629
560
 
630
561
  interface CustomerTaxId {
631
562
  /**
632
- * 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`, `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`
563
+ * 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`, `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`, or `unknown`
633
564
  */
634
565
  type: CustomerTaxId.Type;
635
566
 
@@ -651,7 +582,6 @@ declare module 'stripe' {
651
582
  | 'bo_tin'
652
583
  | 'br_cnpj'
653
584
  | 'br_cpf'
654
- | 'by_tin'
655
585
  | 'ca_bn'
656
586
  | 'ca_gst_hst'
657
587
  | 'ca_pst_bc'
@@ -687,8 +617,6 @@ declare module 'stripe' {
687
617
  | 'kr_brn'
688
618
  | 'kz_bin'
689
619
  | 'li_uid'
690
- | 'ma_vat'
691
- | 'md_vat'
692
620
  | 'mx_rfc'
693
621
  | 'my_frp'
694
622
  | 'my_itn'
@@ -712,13 +640,10 @@ declare module 'stripe' {
712
640
  | 'th_vat'
713
641
  | 'tr_tin'
714
642
  | 'tw_vat'
715
- | 'tz_vat'
716
643
  | 'ua_vat'
717
644
  | 'unknown'
718
645
  | 'us_ein'
719
646
  | 'uy_ruc'
720
- | 'uz_tin'
721
- | 'uz_vat'
722
647
  | 've_rif'
723
648
  | 'vn_tin'
724
649
  | 'za_vat';
@@ -912,15 +837,11 @@ declare module 'stripe' {
912
837
  | 'email_invalid'
913
838
  | 'expired_card'
914
839
  | 'financial_connections_account_inactive'
915
- | 'financial_connections_institution_unavailable'
916
840
  | 'financial_connections_no_successful_transaction_refresh'
917
841
  | 'forwarding_api_inactive'
918
842
  | 'forwarding_api_invalid_parameter'
919
843
  | 'forwarding_api_upstream_connection_error'
920
844
  | 'forwarding_api_upstream_connection_timeout'
921
- | 'gift_card_balance_insufficient'
922
- | 'gift_card_code_exists'
923
- | 'gift_card_inactive'
924
845
  | 'idempotency_key_in_use'
925
846
  | 'incorrect_address'
926
847
  | 'incorrect_cvc'
@@ -994,7 +915,6 @@ declare module 'stripe' {
994
915
  | 'payment_method_unexpected_state'
995
916
  | 'payment_method_unsupported_type'
996
917
  | 'payout_reconciliation_not_ready'
997
- | 'payout_statement_descriptor_profanity'
998
918
  | 'payouts_limit_exceeded'
999
919
  | 'payouts_not_allowed'
1000
920
  | 'platform_account_required'
@@ -1011,7 +931,6 @@ declare module 'stripe' {
1011
931
  | 'return_intent_already_processed'
1012
932
  | 'routing_number_invalid'
1013
933
  | 'secret_key_required'
1014
- | 'sensitive_data_access_expired'
1015
934
  | 'sepa_unsupported_account'
1016
935
  | 'setup_attempt_failed'
1017
936
  | 'setup_intent_authentication_failure'
@@ -1029,7 +948,6 @@ declare module 'stripe' {
1029
948
  | 'taxes_calculation_failed'
1030
949
  | 'terminal_location_country_unsupported'
1031
950
  | 'terminal_reader_busy'
1032
- | 'terminal_reader_collected_data_invalid'
1033
951
  | 'terminal_reader_hardware_fault'
1034
952
  | 'terminal_reader_invalid_location_for_activation'
1035
953
  | 'terminal_reader_invalid_location_for_payment'
@@ -1229,11 +1147,6 @@ declare module 'stripe' {
1229
1147
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
1230
1148
  */
1231
1149
  account_subcategories?: Array<Filters.AccountSubcategory>;
1232
-
1233
- /**
1234
- * The institution to use to filter for possible accounts to link.
1235
- */
1236
- institution?: string;
1237
1150
  }
1238
1151
 
1239
1152
  namespace Filters {
@@ -1246,11 +1159,7 @@ declare module 'stripe' {
1246
1159
  | 'payment_method'
1247
1160
  | 'transactions';
1248
1161
 
1249
- type Prefetch =
1250
- | 'balances'
1251
- | 'inferred_balances'
1252
- | 'ownership'
1253
- | 'transactions';
1162
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
1254
1163
  }
1255
1164
 
1256
1165
  type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
@@ -1451,29 +1360,6 @@ declare module 'stripe' {
1451
1360
  * *Note: This attribute is populated only for invoices created on or after June 29, 2023.*
1452
1361
  */
1453
1362
  metadata: Stripe.Metadata | null;
1454
-
1455
- /**
1456
- * If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
1457
- */
1458
- pause_collection?: SubscriptionDetails.PauseCollection | null;
1459
- }
1460
-
1461
- namespace SubscriptionDetails {
1462
- interface PauseCollection {
1463
- /**
1464
- * The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
1465
- */
1466
- behavior: PauseCollection.Behavior;
1467
-
1468
- /**
1469
- * The time after which the subscription will resume collecting payments.
1470
- */
1471
- resumes_at: number | null;
1472
- }
1473
-
1474
- namespace PauseCollection {
1475
- type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
1476
- }
1477
1363
  }
1478
1364
 
1479
1365
  interface ThresholdReason {
@@ -1514,18 +1400,6 @@ declare module 'stripe' {
1514
1400
  discount: string | Stripe.Discount | Stripe.DeletedDiscount;
1515
1401
  }
1516
1402
 
1517
- interface TotalMarginAmount {
1518
- /**
1519
- * The amount, in cents (or local equivalent), of the reduction in line item amount.
1520
- */
1521
- amount: number;
1522
-
1523
- /**
1524
- * The margin that was applied to get this margin amount.
1525
- */
1526
- margin: string | Stripe.Margin;
1527
- }
1528
-
1529
1403
  interface TotalPretaxCreditAmount {
1530
1404
  /**
1531
1405
  * The amount, in cents (or local equivalent), of the pretax credit amount.
@@ -1545,11 +1419,6 @@ declare module 'stripe' {
1545
1419
  */
1546
1420
  discount?: string | Stripe.Discount | Stripe.DeletedDiscount;
1547
1421
 
1548
- /**
1549
- * The margin that was applied to get this pretax credit amount.
1550
- */
1551
- margin?: string | Stripe.Margin;
1552
-
1553
1422
  /**
1554
1423
  * Type of the pretax credit amount referenced.
1555
1424
  */
@@ -1557,7 +1426,7 @@ declare module 'stripe' {
1557
1426
  }
1558
1427
 
1559
1428
  namespace TotalPretaxCreditAmount {
1560
- type Type = 'credit_balance_transaction' | 'discount' | 'margin';
1429
+ type Type = 'credit_balance_transaction' | 'discount';
1561
1430
  }
1562
1431
 
1563
1432
  interface TotalTaxAmount {