stripe 17.5.0-beta.2 → 17.5.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 (186) hide show
  1. package/CHANGELOG.md +132 -996
  2. package/README.md +33 -1
  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.js +10 -48
  12. package/cjs/stripe.core.js +1 -1
  13. package/esm/apiVersion.js +1 -1
  14. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  15. package/esm/resources/Invoices.js +0 -17
  16. package/esm/resources/PaymentIntents.js +0 -8
  17. package/esm/resources/Quotes.js +0 -32
  18. package/esm/resources/SubscriptionSchedules.js +0 -4
  19. package/esm/resources/Terminal/Readers.js +0 -12
  20. package/esm/resources.js +0 -33
  21. package/esm/stripe.core.js +1 -1
  22. package/package.json +1 -1
  23. package/types/AccountLinksResource.d.ts +1 -5
  24. package/types/AccountSessions.d.ts +5 -50
  25. package/types/AccountSessionsResource.d.ts +5 -360
  26. package/types/Accounts.d.ts +5 -194
  27. package/types/AccountsResource.d.ts +0 -520
  28. package/types/Billing/CreditBalanceTransactions.d.ts +20 -1
  29. package/types/Capabilities.d.ts +2 -2
  30. package/types/Cards.d.ts +14 -0
  31. package/types/Charges.d.ts +10 -136
  32. package/types/ChargesResource.d.ts +0 -1294
  33. package/types/Checkout/Sessions.d.ts +25 -323
  34. package/types/Checkout/SessionsResource.d.ts +5 -445
  35. package/types/ConfirmationTokens.d.ts +7 -99
  36. package/types/Coupons.d.ts +1 -1
  37. package/types/CouponsResource.d.ts +1 -1
  38. package/types/CreditNotes.d.ts +0 -21
  39. package/types/CreditNotesResource.d.ts +0 -51
  40. package/types/CustomersResource.d.ts +42 -11
  41. package/types/Disputes.d.ts +22 -0
  42. package/types/DisputesResource.d.ts +12 -0
  43. package/types/EventTypes.d.ts +0 -596
  44. package/types/Events.d.ts +0 -93
  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/Forwarding/Requests.d.ts +2 -1
  50. package/types/Forwarding/RequestsResource.d.ts +2 -1
  51. package/types/InvoiceItems.d.ts +0 -5
  52. package/types/InvoiceItemsResource.d.ts +0 -98
  53. package/types/InvoiceLineItems.d.ts +1 -28
  54. package/types/Invoices.d.ts +23 -139
  55. package/types/InvoicesResource.d.ts +1907 -5535
  56. package/types/Issuing/Authorizations.d.ts +5 -0
  57. package/types/Issuing/CardholdersResource.d.ts +1 -2
  58. package/types/Issuing/Transactions.d.ts +5 -2
  59. package/types/Issuing/TransactionsResource.d.ts +0 -5
  60. package/types/LineItems.d.ts +0 -32
  61. package/types/Mandates.d.ts +0 -77
  62. package/types/PaymentIntents.d.ts +1 -644
  63. package/types/PaymentIntentsResource.d.ts +3768 -8055
  64. package/types/PaymentLinks.d.ts +0 -6
  65. package/types/PaymentLinksResource.d.ts +0 -12
  66. package/types/PaymentMethodConfigurations.d.ts +0 -180
  67. package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
  68. package/types/PaymentMethods.d.ts +7 -99
  69. package/types/PaymentMethodsResource.d.ts +0 -133
  70. package/types/Payouts.d.ts +1 -1
  71. package/types/Persons.d.ts +2 -2
  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 +0 -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 +7 -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 +1 -91
  88. package/types/SubscriptionsResource.d.ts +2 -369
  89. package/types/Tax/Calculations.d.ts +21 -2
  90. package/types/Tax/CalculationsResource.d.ts +21 -2
  91. package/types/Tax/Registrations.d.ts +189 -0
  92. package/types/Tax/RegistrationsResource.d.ts +252 -0
  93. package/types/Tax/Transactions.d.ts +21 -2
  94. package/types/TaxIds.d.ts +21 -2
  95. package/types/TaxIdsResource.d.ts +21 -2
  96. package/types/Terminal/Readers.d.ts +0 -278
  97. package/types/Terminal/ReadersResource.d.ts +0 -215
  98. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -104
  99. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  100. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  101. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  102. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  103. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  104. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  105. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  106. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  107. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  108. package/types/WebhookEndpointsResource.d.ts +2 -71
  109. package/types/index.d.ts +0 -62
  110. package/types/lib.d.ts +1 -1
  111. package/types/test/typescriptTest.ts +3 -3
  112. package/cjs/resources/AccountNotices.js +0 -21
  113. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  114. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  115. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  116. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  117. package/cjs/resources/GiftCards/Cards.js +0 -23
  118. package/cjs/resources/GiftCards/Transactions.js +0 -33
  119. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  120. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  121. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  122. package/cjs/resources/Margins.js +0 -22
  123. package/cjs/resources/Orders.js +0 -24
  124. package/cjs/resources/PaymentAttemptRecords.js +0 -17
  125. package/cjs/resources/PaymentRecords.js +0 -29
  126. package/cjs/resources/Tax/Associations.js +0 -9
  127. package/cjs/resources/Tax/Forms.js +0 -20
  128. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  129. package/esm/resources/AccountNotices.js +0 -18
  130. package/esm/resources/Capital/FinancingOffers.js +0 -18
  131. package/esm/resources/Capital/FinancingSummary.js +0 -9
  132. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  133. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  134. package/esm/resources/GiftCards/Cards.js +0 -20
  135. package/esm/resources/GiftCards/Transactions.js +0 -30
  136. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  137. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  138. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  139. package/esm/resources/Margins.js +0 -19
  140. package/esm/resources/Orders.js +0 -21
  141. package/esm/resources/PaymentAttemptRecords.js +0 -14
  142. package/esm/resources/PaymentRecords.js +0 -26
  143. package/esm/resources/Tax/Associations.js +0 -6
  144. package/esm/resources/Tax/Forms.js +0 -17
  145. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  146. package/types/AccountNotices.d.ts +0 -113
  147. package/types/AccountNoticesResource.d.ts +0 -98
  148. package/types/Billing/MeterErrorReports.d.ts +0 -106
  149. package/types/Capital/FinancingOffers.d.ts +0 -188
  150. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  151. package/types/Capital/FinancingSummary.d.ts +0 -106
  152. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  153. package/types/Capital/FinancingTransactions.d.ts +0 -135
  154. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  155. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  156. package/types/FinancialConnections/Institutions.d.ts +0 -93
  157. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  158. package/types/GiftCards/Cards.d.ts +0 -118
  159. package/types/GiftCards/CardsResource.d.ts +0 -159
  160. package/types/GiftCards/Transactions.d.ts +0 -129
  161. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  162. package/types/InvoicePayments.d.ts +0 -113
  163. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  164. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  165. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  166. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  167. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  168. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  169. package/types/Issuing/Settlements.d.ts +0 -103
  170. package/types/Margins.d.ts +0 -56
  171. package/types/MarginsResource.d.ts +0 -114
  172. package/types/Orders.d.ts +0 -1160
  173. package/types/OrdersResource.d.ts +0 -2923
  174. package/types/PaymentAttemptRecords.d.ts +0 -242
  175. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  176. package/types/PaymentRecords.d.ts +0 -259
  177. package/types/PaymentRecordsResource.d.ts +0 -455
  178. package/types/QuoteLines.d.ts +0 -634
  179. package/types/QuotePreviewInvoices.d.ts +0 -1634
  180. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -824
  181. package/types/Tax/Associations.d.ts +0 -126
  182. package/types/Tax/AssociationsResource.d.ts +0 -29
  183. package/types/Tax/Forms.d.ts +0 -220
  184. package/types/Tax/FormsResource.d.ts +0 -107
  185. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  186. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
@@ -145,7 +145,8 @@ declare module 'stripe' {
145
145
  | '2024-06-20'
146
146
  | '2024-09-30.acacia'
147
147
  | '2024-10-28.acacia'
148
- | '2024-11-20.acacia';
148
+ | '2024-11-20.acacia'
149
+ | '2024-12-18.acacia';
149
150
 
150
151
  type EnabledEvent =
151
152
  | '*'
@@ -155,27 +156,15 @@ declare module 'stripe' {
155
156
  | 'account.external_account.deleted'
156
157
  | 'account.external_account.updated'
157
158
  | 'account.updated'
158
- | 'account_notice.created'
159
- | 'account_notice.updated'
160
159
  | 'application_fee.created'
161
160
  | 'application_fee.refund.updated'
162
161
  | 'application_fee.refunded'
163
162
  | 'balance.available'
164
163
  | 'billing.alert.triggered'
165
- | 'billing.meter_error_report.triggered'
166
164
  | 'billing_portal.configuration.created'
167
165
  | 'billing_portal.configuration.updated'
168
166
  | 'billing_portal.session.created'
169
167
  | 'capability.updated'
170
- | 'capital.financing_offer.accepted'
171
- | 'capital.financing_offer.canceled'
172
- | 'capital.financing_offer.created'
173
- | 'capital.financing_offer.expired'
174
- | 'capital.financing_offer.fully_repaid'
175
- | 'capital.financing_offer.paid_out'
176
- | 'capital.financing_offer.rejected'
177
- | 'capital.financing_offer.replacement_created'
178
- | 'capital.financing_transaction.created'
179
168
  | 'cash_balance.funds_available'
180
169
  | 'charge.captured'
181
170
  | 'charge.dispute.closed'
@@ -216,15 +205,11 @@ declare module 'stripe' {
216
205
  | 'customer.source.deleted'
217
206
  | 'customer.source.expiring'
218
207
  | 'customer.source.updated'
219
- | 'customer.subscription.collection_paused'
220
- | 'customer.subscription.collection_resumed'
221
208
  | 'customer.subscription.created'
222
- | 'customer.subscription.custom_event'
223
209
  | 'customer.subscription.deleted'
224
210
  | 'customer.subscription.paused'
225
211
  | 'customer.subscription.pending_update_applied'
226
212
  | 'customer.subscription.pending_update_expired'
227
- | 'customer.subscription.price_migration_failed'
228
213
  | 'customer.subscription.resumed'
229
214
  | 'customer.subscription.trial_will_end'
230
215
  | 'customer.subscription.updated'
@@ -240,10 +225,8 @@ declare module 'stripe' {
240
225
  | 'financial_connections.account.disconnected'
241
226
  | 'financial_connections.account.reactivated'
242
227
  | 'financial_connections.account.refreshed_balance'
243
- | 'financial_connections.account.refreshed_inferred_balances'
244
228
  | 'financial_connections.account.refreshed_ownership'
245
229
  | 'financial_connections.account.refreshed_transactions'
246
- | 'financial_connections.session.updated'
247
230
  | 'identity.verification_session.canceled'
248
231
  | 'identity.verification_session.created'
249
232
  | 'identity.verification_session.processing'
@@ -256,11 +239,8 @@ declare module 'stripe' {
256
239
  | 'invoice.finalized'
257
240
  | 'invoice.marked_uncollectible'
258
241
  | 'invoice.overdue'
259
- | 'invoice.overpaid'
260
242
  | 'invoice.paid'
261
- | 'invoice.payment.overpaid'
262
243
  | 'invoice.payment_action_required'
263
- | 'invoice.payment_attempt_required'
264
244
  | 'invoice.payment_failed'
265
245
  | 'invoice.payment_succeeded'
266
246
  | 'invoice.sent'
@@ -283,15 +263,10 @@ declare module 'stripe' {
283
263
  | 'issuing_dispute.funds_rescinded'
284
264
  | 'issuing_dispute.submitted'
285
265
  | 'issuing_dispute.updated'
286
- | 'issuing_dispute_settlement_detail.created'
287
- | 'issuing_dispute_settlement_detail.updated'
288
- | 'issuing_fraud_liability_debit.created'
289
266
  | 'issuing_personalization_design.activated'
290
267
  | 'issuing_personalization_design.deactivated'
291
268
  | 'issuing_personalization_design.rejected'
292
269
  | 'issuing_personalization_design.updated'
293
- | 'issuing_settlement.created'
294
- | 'issuing_settlement.updated'
295
270
  | 'issuing_token.created'
296
271
  | 'issuing_token.updated'
297
272
  | 'issuing_transaction.created'
@@ -332,16 +307,10 @@ declare module 'stripe' {
332
307
  | 'product.updated'
333
308
  | 'promotion_code.created'
334
309
  | 'promotion_code.updated'
335
- | 'quote.accept_failed'
336
310
  | 'quote.accepted'
337
- | 'quote.accepting'
338
311
  | 'quote.canceled'
339
312
  | 'quote.created'
340
- | 'quote.draft'
341
313
  | 'quote.finalized'
342
- | 'quote.reestimate_failed'
343
- | 'quote.reestimated'
344
- | 'quote.stale'
345
314
  | 'radar.early_fraud_warning.created'
346
315
  | 'radar.early_fraud_warning.updated'
347
316
  | 'refund.created'
@@ -370,16 +339,13 @@ declare module 'stripe' {
370
339
  | 'subscription_schedule.completed'
371
340
  | 'subscription_schedule.created'
372
341
  | 'subscription_schedule.expiring'
373
- | 'subscription_schedule.price_migration_failed'
374
342
  | 'subscription_schedule.released'
375
343
  | 'subscription_schedule.updated'
376
- | 'tax.form.updated'
377
344
  | 'tax.settings.updated'
378
345
  | 'tax_rate.created'
379
346
  | 'tax_rate.updated'
380
347
  | 'terminal.reader.action_failed'
381
348
  | 'terminal.reader.action_succeeded'
382
- | 'terminal.reader.action_updated'
383
349
  | 'test_helpers.test_clock.advancing'
384
350
  | 'test_helpers.test_clock.created'
385
351
  | 'test_helpers.test_clock.deleted'
@@ -473,27 +439,15 @@ declare module 'stripe' {
473
439
  | 'account.external_account.deleted'
474
440
  | 'account.external_account.updated'
475
441
  | 'account.updated'
476
- | 'account_notice.created'
477
- | 'account_notice.updated'
478
442
  | 'application_fee.created'
479
443
  | 'application_fee.refund.updated'
480
444
  | 'application_fee.refunded'
481
445
  | 'balance.available'
482
446
  | 'billing.alert.triggered'
483
- | 'billing.meter_error_report.triggered'
484
447
  | 'billing_portal.configuration.created'
485
448
  | 'billing_portal.configuration.updated'
486
449
  | 'billing_portal.session.created'
487
450
  | 'capability.updated'
488
- | 'capital.financing_offer.accepted'
489
- | 'capital.financing_offer.canceled'
490
- | 'capital.financing_offer.created'
491
- | 'capital.financing_offer.expired'
492
- | 'capital.financing_offer.fully_repaid'
493
- | 'capital.financing_offer.paid_out'
494
- | 'capital.financing_offer.rejected'
495
- | 'capital.financing_offer.replacement_created'
496
- | 'capital.financing_transaction.created'
497
451
  | 'cash_balance.funds_available'
498
452
  | 'charge.captured'
499
453
  | 'charge.dispute.closed'
@@ -534,15 +488,11 @@ declare module 'stripe' {
534
488
  | 'customer.source.deleted'
535
489
  | 'customer.source.expiring'
536
490
  | 'customer.source.updated'
537
- | 'customer.subscription.collection_paused'
538
- | 'customer.subscription.collection_resumed'
539
491
  | 'customer.subscription.created'
540
- | 'customer.subscription.custom_event'
541
492
  | 'customer.subscription.deleted'
542
493
  | 'customer.subscription.paused'
543
494
  | 'customer.subscription.pending_update_applied'
544
495
  | 'customer.subscription.pending_update_expired'
545
- | 'customer.subscription.price_migration_failed'
546
496
  | 'customer.subscription.resumed'
547
497
  | 'customer.subscription.trial_will_end'
548
498
  | 'customer.subscription.updated'
@@ -558,10 +508,8 @@ declare module 'stripe' {
558
508
  | 'financial_connections.account.disconnected'
559
509
  | 'financial_connections.account.reactivated'
560
510
  | 'financial_connections.account.refreshed_balance'
561
- | 'financial_connections.account.refreshed_inferred_balances'
562
511
  | 'financial_connections.account.refreshed_ownership'
563
512
  | 'financial_connections.account.refreshed_transactions'
564
- | 'financial_connections.session.updated'
565
513
  | 'identity.verification_session.canceled'
566
514
  | 'identity.verification_session.created'
567
515
  | 'identity.verification_session.processing'
@@ -574,11 +522,8 @@ declare module 'stripe' {
574
522
  | 'invoice.finalized'
575
523
  | 'invoice.marked_uncollectible'
576
524
  | 'invoice.overdue'
577
- | 'invoice.overpaid'
578
525
  | 'invoice.paid'
579
- | 'invoice.payment.overpaid'
580
526
  | 'invoice.payment_action_required'
581
- | 'invoice.payment_attempt_required'
582
527
  | 'invoice.payment_failed'
583
528
  | 'invoice.payment_succeeded'
584
529
  | 'invoice.sent'
@@ -601,15 +546,10 @@ declare module 'stripe' {
601
546
  | 'issuing_dispute.funds_rescinded'
602
547
  | 'issuing_dispute.submitted'
603
548
  | 'issuing_dispute.updated'
604
- | 'issuing_dispute_settlement_detail.created'
605
- | 'issuing_dispute_settlement_detail.updated'
606
- | 'issuing_fraud_liability_debit.created'
607
549
  | 'issuing_personalization_design.activated'
608
550
  | 'issuing_personalization_design.deactivated'
609
551
  | 'issuing_personalization_design.rejected'
610
552
  | 'issuing_personalization_design.updated'
611
- | 'issuing_settlement.created'
612
- | 'issuing_settlement.updated'
613
553
  | 'issuing_token.created'
614
554
  | 'issuing_token.updated'
615
555
  | 'issuing_transaction.created'
@@ -650,16 +590,10 @@ declare module 'stripe' {
650
590
  | 'product.updated'
651
591
  | 'promotion_code.created'
652
592
  | 'promotion_code.updated'
653
- | 'quote.accept_failed'
654
593
  | 'quote.accepted'
655
- | 'quote.accepting'
656
594
  | 'quote.canceled'
657
595
  | 'quote.created'
658
- | 'quote.draft'
659
596
  | 'quote.finalized'
660
- | 'quote.reestimate_failed'
661
- | 'quote.reestimated'
662
- | 'quote.stale'
663
597
  | 'radar.early_fraud_warning.created'
664
598
  | 'radar.early_fraud_warning.updated'
665
599
  | 'refund.created'
@@ -688,16 +622,13 @@ declare module 'stripe' {
688
622
  | 'subscription_schedule.completed'
689
623
  | 'subscription_schedule.created'
690
624
  | 'subscription_schedule.expiring'
691
- | 'subscription_schedule.price_migration_failed'
692
625
  | 'subscription_schedule.released'
693
626
  | 'subscription_schedule.updated'
694
- | 'tax.form.updated'
695
627
  | 'tax.settings.updated'
696
628
  | 'tax_rate.created'
697
629
  | 'tax_rate.updated'
698
630
  | 'terminal.reader.action_failed'
699
631
  | 'terminal.reader.action_succeeded'
700
- | 'terminal.reader.action_updated'
701
632
  | 'test_helpers.test_clock.advancing'
702
633
  | 'test_helpers.test_clock.created'
703
634
  | 'test_helpers.test_clock.deleted'
package/types/index.d.ts CHANGED
@@ -12,7 +12,6 @@
12
12
  ///<reference path='./crypto/crypto.d.ts' />
13
13
  // Imports: The beginning of the section generated from our OpenAPI spec
14
14
  ///<reference path='./AccountLinksResource.d.ts' />
15
- ///<reference path='./AccountNoticesResource.d.ts' />
16
15
  ///<reference path='./AccountSessionsResource.d.ts' />
17
16
  ///<reference path='./AccountsResource.d.ts' />
18
17
  ///<reference path='./ApplePayDomainsResource.d.ts' />
@@ -29,9 +28,6 @@
29
28
  ///<reference path='./Billing/MetersResource.d.ts' />
30
29
  ///<reference path='./BillingPortal/ConfigurationsResource.d.ts' />
31
30
  ///<reference path='./BillingPortal/SessionsResource.d.ts' />
32
- ///<reference path='./Capital/FinancingOffersResource.d.ts' />
33
- ///<reference path='./Capital/FinancingSummaryResource.d.ts' />
34
- ///<reference path='./Capital/FinancingTransactionsResource.d.ts' />
35
31
  ///<reference path='./ChargesResource.d.ts' />
36
32
  ///<reference path='./Checkout/SessionsResource.d.ts' />
37
33
  ///<reference path='./Climate/OrdersResource.d.ts' />
@@ -52,12 +48,9 @@
52
48
  ///<reference path='./FileLinksResource.d.ts' />
53
49
  ///<reference path='./FilesResource.d.ts' />
54
50
  ///<reference path='./FinancialConnections/AccountsResource.d.ts' />
55
- ///<reference path='./FinancialConnections/InstitutionsResource.d.ts' />
56
51
  ///<reference path='./FinancialConnections/SessionsResource.d.ts' />
57
52
  ///<reference path='./FinancialConnections/TransactionsResource.d.ts' />
58
53
  ///<reference path='./Forwarding/RequestsResource.d.ts' />
59
- ///<reference path='./GiftCards/CardsResource.d.ts' />
60
- ///<reference path='./GiftCards/TransactionsResource.d.ts' />
61
54
  ///<reference path='./Identity/VerificationReportsResource.d.ts' />
62
55
  ///<reference path='./Identity/VerificationSessionsResource.d.ts' />
63
56
  ///<reference path='./InvoiceItemsResource.d.ts' />
@@ -66,24 +59,17 @@
66
59
  ///<reference path='./Issuing/AuthorizationsResource.d.ts' />
67
60
  ///<reference path='./Issuing/CardholdersResource.d.ts' />
68
61
  ///<reference path='./Issuing/CardsResource.d.ts' />
69
- ///<reference path='./Issuing/CreditUnderwritingRecordsResource.d.ts' />
70
- ///<reference path='./Issuing/DisputeSettlementDetailsResource.d.ts' />
71
62
  ///<reference path='./Issuing/DisputesResource.d.ts' />
72
- ///<reference path='./Issuing/FraudLiabilityDebitsResource.d.ts' />
73
63
  ///<reference path='./Issuing/PersonalizationDesignsResource.d.ts' />
74
64
  ///<reference path='./Issuing/PhysicalBundlesResource.d.ts' />
75
65
  ///<reference path='./Issuing/TokensResource.d.ts' />
76
66
  ///<reference path='./Issuing/TransactionsResource.d.ts' />
77
67
  ///<reference path='./MandatesResource.d.ts' />
78
- ///<reference path='./MarginsResource.d.ts' />
79
- ///<reference path='./OrdersResource.d.ts' />
80
- ///<reference path='./PaymentAttemptRecordsResource.d.ts' />
81
68
  ///<reference path='./PaymentIntentsResource.d.ts' />
82
69
  ///<reference path='./PaymentLinksResource.d.ts' />
83
70
  ///<reference path='./PaymentMethodConfigurationsResource.d.ts' />
84
71
  ///<reference path='./PaymentMethodDomainsResource.d.ts' />
85
72
  ///<reference path='./PaymentMethodsResource.d.ts' />
86
- ///<reference path='./PaymentRecordsResource.d.ts' />
87
73
  ///<reference path='./PayoutsResource.d.ts' />
88
74
  ///<reference path='./PlansResource.d.ts' />
89
75
  ///<reference path='./PricesResource.d.ts' />
@@ -105,9 +91,7 @@
105
91
  ///<reference path='./SubscriptionItemsResource.d.ts' />
106
92
  ///<reference path='./SubscriptionSchedulesResource.d.ts' />
107
93
  ///<reference path='./SubscriptionsResource.d.ts' />
108
- ///<reference path='./Tax/AssociationsResource.d.ts' />
109
94
  ///<reference path='./Tax/CalculationsResource.d.ts' />
110
- ///<reference path='./Tax/FormsResource.d.ts' />
111
95
  ///<reference path='./Tax/RegistrationsResource.d.ts' />
112
96
  ///<reference path='./Tax/SettingsResource.d.ts' />
113
97
  ///<reference path='./Tax/TransactionsResource.d.ts' />
@@ -117,7 +101,6 @@
117
101
  ///<reference path='./Terminal/ConfigurationsResource.d.ts' />
118
102
  ///<reference path='./Terminal/ConnectionTokensResource.d.ts' />
119
103
  ///<reference path='./Terminal/LocationsResource.d.ts' />
120
- ///<reference path='./Terminal/ReaderCollectedDataResource.d.ts' />
121
104
  ///<reference path='./Terminal/ReadersResource.d.ts' />
122
105
  ///<reference path='./TestHelpers/ConfirmationTokensResource.d.ts' />
123
106
  ///<reference path='./TestHelpers/CustomersResource.d.ts' />
@@ -154,7 +137,6 @@
154
137
  ///<reference path='./V2/Core/EventsResource.d.ts' />
155
138
  ///<reference path='./WebhookEndpointsResource.d.ts' />
156
139
  ///<reference path='./AccountLinks.d.ts' />
157
- ///<reference path='./AccountNotices.d.ts' />
158
140
  ///<reference path='./AccountSessions.d.ts' />
159
141
  ///<reference path='./Accounts.d.ts' />
160
142
  ///<reference path='./ApplePayDomains.d.ts' />
@@ -170,7 +152,6 @@
170
152
  ///<reference path='./Billing/CreditBalanceSummary.d.ts' />
171
153
  ///<reference path='./Billing/CreditBalanceTransactions.d.ts' />
172
154
  ///<reference path='./Billing/CreditGrants.d.ts' />
173
- ///<reference path='./Billing/MeterErrorReports.d.ts' />
174
155
  ///<reference path='./Billing/MeterEventAdjustments.d.ts' />
175
156
  ///<reference path='./Billing/MeterEventSummaries.d.ts' />
176
157
  ///<reference path='./Billing/MeterEvents.d.ts' />
@@ -178,9 +159,6 @@
178
159
  ///<reference path='./BillingPortal/Configurations.d.ts' />
179
160
  ///<reference path='./BillingPortal/Sessions.d.ts' />
180
161
  ///<reference path='./Capabilities.d.ts' />
181
- ///<reference path='./Capital/FinancingOffers.d.ts' />
182
- ///<reference path='./Capital/FinancingSummary.d.ts' />
183
- ///<reference path='./Capital/FinancingTransactions.d.ts' />
184
162
  ///<reference path='./Cards.d.ts' />
185
163
  ///<reference path='./CashBalances.d.ts' />
186
164
  ///<reference path='./Charges.d.ts' />
@@ -211,48 +189,35 @@
211
189
  ///<reference path='./FeeRefunds.d.ts' />
212
190
  ///<reference path='./FileLinks.d.ts' />
213
191
  ///<reference path='./Files.d.ts' />
214
- ///<reference path='./FinancialConnections/AccountInferredBalances.d.ts' />
215
192
  ///<reference path='./FinancialConnections/AccountOwners.d.ts' />
216
193
  ///<reference path='./FinancialConnections/AccountOwnerships.d.ts' />
217
194
  ///<reference path='./FinancialConnections/Accounts.d.ts' />
218
- ///<reference path='./FinancialConnections/Institutions.d.ts' />
219
195
  ///<reference path='./FinancialConnections/Sessions.d.ts' />
220
196
  ///<reference path='./FinancialConnections/Transactions.d.ts' />
221
197
  ///<reference path='./Forwarding/Requests.d.ts' />
222
198
  ///<reference path='./FundingInstructions.d.ts' />
223
- ///<reference path='./GiftCards/Cards.d.ts' />
224
- ///<reference path='./GiftCards/Transactions.d.ts' />
225
199
  ///<reference path='./Identity/VerificationReports.d.ts' />
226
200
  ///<reference path='./Identity/VerificationSessions.d.ts' />
227
201
  ///<reference path='./InvoiceItems.d.ts' />
228
202
  ///<reference path='./InvoiceLineItems.d.ts' />
229
- ///<reference path='./InvoicePayments.d.ts' />
230
203
  ///<reference path='./InvoiceRenderingTemplates.d.ts' />
231
204
  ///<reference path='./Invoices.d.ts' />
232
205
  ///<reference path='./Issuing/Authorizations.d.ts' />
233
206
  ///<reference path='./Issuing/Cardholders.d.ts' />
234
207
  ///<reference path='./Issuing/Cards.d.ts' />
235
- ///<reference path='./Issuing/CreditUnderwritingRecords.d.ts' />
236
- ///<reference path='./Issuing/DisputeSettlementDetails.d.ts' />
237
208
  ///<reference path='./Issuing/Disputes.d.ts' />
238
- ///<reference path='./Issuing/FraudLiabilityDebits.d.ts' />
239
209
  ///<reference path='./Issuing/PersonalizationDesigns.d.ts' />
240
210
  ///<reference path='./Issuing/PhysicalBundles.d.ts' />
241
- ///<reference path='./Issuing/Settlements.d.ts' />
242
211
  ///<reference path='./Issuing/Tokens.d.ts' />
243
212
  ///<reference path='./Issuing/Transactions.d.ts' />
244
213
  ///<reference path='./LineItems.d.ts' />
245
214
  ///<reference path='./LoginLinks.d.ts' />
246
215
  ///<reference path='./Mandates.d.ts' />
247
- ///<reference path='./Margins.d.ts' />
248
- ///<reference path='./Orders.d.ts' />
249
- ///<reference path='./PaymentAttemptRecords.d.ts' />
250
216
  ///<reference path='./PaymentIntents.d.ts' />
251
217
  ///<reference path='./PaymentLinks.d.ts' />
252
218
  ///<reference path='./PaymentMethodConfigurations.d.ts' />
253
219
  ///<reference path='./PaymentMethodDomains.d.ts' />
254
220
  ///<reference path='./PaymentMethods.d.ts' />
255
- ///<reference path='./PaymentRecords.d.ts' />
256
221
  ///<reference path='./Payouts.d.ts' />
257
222
  ///<reference path='./Persons.d.ts' />
258
223
  ///<reference path='./Plans.d.ts' />
@@ -260,9 +225,6 @@
260
225
  ///<reference path='./ProductFeatures.d.ts' />
261
226
  ///<reference path='./Products.d.ts' />
262
227
  ///<reference path='./PromotionCodes.d.ts' />
263
- ///<reference path='./QuoteLines.d.ts' />
264
- ///<reference path='./QuotePreviewInvoices.d.ts' />
265
- ///<reference path='./QuotePreviewSubscriptionSchedules.d.ts' />
266
228
  ///<reference path='./Quotes.d.ts' />
267
229
  ///<reference path='./Radar/EarlyFraudWarnings.d.ts' />
268
230
  ///<reference path='./Radar/ValueListItems.d.ts' />
@@ -282,10 +244,8 @@
282
244
  ///<reference path='./SubscriptionItems.d.ts' />
283
245
  ///<reference path='./SubscriptionSchedules.d.ts' />
284
246
  ///<reference path='./Subscriptions.d.ts' />
285
- ///<reference path='./Tax/Associations.d.ts' />
286
247
  ///<reference path='./Tax/CalculationLineItems.d.ts' />
287
248
  ///<reference path='./Tax/Calculations.d.ts' />
288
- ///<reference path='./Tax/Forms.d.ts' />
289
249
  ///<reference path='./Tax/Registrations.d.ts' />
290
250
  ///<reference path='./Tax/Settings.d.ts' />
291
251
  ///<reference path='./Tax/TransactionLineItems.d.ts' />
@@ -297,7 +257,6 @@
297
257
  ///<reference path='./Terminal/Configurations.d.ts' />
298
258
  ///<reference path='./Terminal/ConnectionTokens.d.ts' />
299
259
  ///<reference path='./Terminal/Locations.d.ts' />
300
- ///<reference path='./Terminal/ReaderCollectedData.d.ts' />
301
260
  ///<reference path='./Terminal/Readers.d.ts' />
302
261
  ///<reference path='./TestHelpers/TestClocks.d.ts' />
303
262
  ///<reference path='./Tokens.d.ts' />
@@ -344,7 +303,6 @@ declare module 'stripe' {
344
303
 
345
304
  // Fields: The beginning of the section generated from our OpenAPI spec
346
305
  accountLinks: Stripe.AccountLinksResource;
347
- accountNotices: Stripe.AccountNoticesResource;
348
306
  accountSessions: Stripe.AccountSessionsResource;
349
307
  accounts: Stripe.AccountsResource;
350
308
  applePayDomains: Stripe.ApplePayDomainsResource;
@@ -368,15 +326,11 @@ declare module 'stripe' {
368
326
  invoiceRenderingTemplates: Stripe.InvoiceRenderingTemplatesResource;
369
327
  invoices: Stripe.InvoicesResource;
370
328
  mandates: Stripe.MandatesResource;
371
- margins: Stripe.MarginsResource;
372
- orders: Stripe.OrdersResource;
373
- paymentAttemptRecords: Stripe.PaymentAttemptRecordsResource;
374
329
  paymentIntents: Stripe.PaymentIntentsResource;
375
330
  paymentLinks: Stripe.PaymentLinksResource;
376
331
  paymentMethodConfigurations: Stripe.PaymentMethodConfigurationsResource;
377
332
  paymentMethodDomains: Stripe.PaymentMethodDomainsResource;
378
333
  paymentMethods: Stripe.PaymentMethodsResource;
379
- paymentRecords: Stripe.PaymentRecordsResource;
380
334
  payouts: Stripe.PayoutsResource;
381
335
  plans: Stripe.PlansResource;
382
336
  prices: Stripe.PricesResource;
@@ -415,11 +369,6 @@ declare module 'stripe' {
415
369
  configurations: Stripe.BillingPortal.ConfigurationsResource;
416
370
  sessions: Stripe.BillingPortal.SessionsResource;
417
371
  };
418
- capital: {
419
- financingOffers: Stripe.Capital.FinancingOffersResource;
420
- financingSummary: Stripe.Capital.FinancingSummaryResource;
421
- financingTransactions: Stripe.Capital.FinancingTransactionsResource;
422
- };
423
372
  checkout: {
424
373
  sessions: Stripe.Checkout.SessionsResource;
425
374
  };
@@ -434,17 +383,12 @@ declare module 'stripe' {
434
383
  };
435
384
  financialConnections: {
436
385
  accounts: Stripe.FinancialConnections.AccountsResource;
437
- institutions: Stripe.FinancialConnections.InstitutionsResource;
438
386
  sessions: Stripe.FinancialConnections.SessionsResource;
439
387
  transactions: Stripe.FinancialConnections.TransactionsResource;
440
388
  };
441
389
  forwarding: {
442
390
  requests: Stripe.Forwarding.RequestsResource;
443
391
  };
444
- giftCards: {
445
- cards: Stripe.GiftCards.CardsResource;
446
- transactions: Stripe.GiftCards.TransactionsResource;
447
- };
448
392
  identity: {
449
393
  verificationReports: Stripe.Identity.VerificationReportsResource;
450
394
  verificationSessions: Stripe.Identity.VerificationSessionsResource;
@@ -453,10 +397,7 @@ declare module 'stripe' {
453
397
  authorizations: Stripe.Issuing.AuthorizationsResource;
454
398
  cards: Stripe.Issuing.CardsResource;
455
399
  cardholders: Stripe.Issuing.CardholdersResource;
456
- creditUnderwritingRecords: Stripe.Issuing.CreditUnderwritingRecordsResource;
457
400
  disputes: Stripe.Issuing.DisputesResource;
458
- disputeSettlementDetails: Stripe.Issuing.DisputeSettlementDetailsResource;
459
- fraudLiabilityDebits: Stripe.Issuing.FraudLiabilityDebitsResource;
460
401
  personalizationDesigns: Stripe.Issuing.PersonalizationDesignsResource;
461
402
  physicalBundles: Stripe.Issuing.PhysicalBundlesResource;
462
403
  tokens: Stripe.Issuing.TokensResource;
@@ -475,9 +416,7 @@ declare module 'stripe' {
475
416
  scheduledQueryRuns: Stripe.Sigma.ScheduledQueryRunsResource;
476
417
  };
477
418
  tax: {
478
- associations: Stripe.Tax.AssociationsResource;
479
419
  calculations: Stripe.Tax.CalculationsResource;
480
- forms: Stripe.Tax.FormsResource;
481
420
  registrations: Stripe.Tax.RegistrationsResource;
482
421
  settings: Stripe.Tax.SettingsResource;
483
422
  transactions: Stripe.Tax.TransactionsResource;
@@ -487,7 +426,6 @@ declare module 'stripe' {
487
426
  connectionTokens: Stripe.Terminal.ConnectionTokensResource;
488
427
  locations: Stripe.Terminal.LocationsResource;
489
428
  readers: Stripe.Terminal.ReadersResource;
490
- readerCollectedData: Stripe.Terminal.ReaderCollectedDataResource;
491
429
  };
492
430
  testHelpers: {
493
431
  confirmationTokens: Stripe.TestHelpers.ConfirmationTokensResource;
package/types/lib.d.ts CHANGED
@@ -27,7 +27,7 @@ declare module 'stripe' {
27
27
  }): (...args: any[]) => Response<ResponseObject>; //eslint-disable-line @typescript-eslint/no-explicit-any
28
28
  static MAX_BUFFERED_REQUEST_METRICS: number;
29
29
  }
30
- export type LatestApiVersion = '2024-11-20.acacia';
30
+ export type LatestApiVersion = '2024-12-18.acacia';
31
31
  export type HttpAgent = Agent;
32
32
  export type HttpProtocol = 'http' | 'https';
33
33
 
@@ -9,7 +9,7 @@
9
9
  import Stripe from 'stripe';
10
10
 
11
11
  let stripe = new Stripe('sk_test_123', {
12
- apiVersion: '2024-11-20.acacia',
12
+ apiVersion: '2024-12-18.acacia',
13
13
  });
14
14
 
15
15
  stripe = new Stripe('sk_test_123');
@@ -26,7 +26,7 @@ stripe = new Stripe('sk_test_123', {
26
26
 
27
27
  // Check config object.
28
28
  stripe = new Stripe('sk_test_123', {
29
- apiVersion: '2024-11-20.acacia',
29
+ apiVersion: '2024-12-18.acacia',
30
30
  typescript: true,
31
31
  maxNetworkRetries: 1,
32
32
  timeout: 1000,
@@ -44,7 +44,7 @@ stripe = new Stripe('sk_test_123', {
44
44
  description: 'test',
45
45
  };
46
46
  const opts: Stripe.RequestOptions = {
47
- apiVersion: '2024-11-20.acacia',
47
+ apiVersion: '2024-12-18.acacia',
48
48
  };
49
49
  const customer: Stripe.Customer = await stripe.customers.create(params, opts);
50
50
 
@@ -1,21 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.AccountNotices = void 0;
5
- const StripeResource_js_1 = require("../StripeResource.js");
6
- const stripeMethod = StripeResource_js_1.StripeResource.method;
7
- exports.AccountNotices = StripeResource_js_1.StripeResource.extend({
8
- retrieve: stripeMethod({
9
- method: 'GET',
10
- fullPath: '/v1/account_notices/{account_notice}',
11
- }),
12
- update: stripeMethod({
13
- method: 'POST',
14
- fullPath: '/v1/account_notices/{account_notice}',
15
- }),
16
- list: stripeMethod({
17
- method: 'GET',
18
- fullPath: '/v1/account_notices',
19
- methodType: 'list',
20
- }),
21
- });
@@ -1,21 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.FinancingOffers = void 0;
5
- const StripeResource_js_1 = require("../../StripeResource.js");
6
- const stripeMethod = StripeResource_js_1.StripeResource.method;
7
- exports.FinancingOffers = StripeResource_js_1.StripeResource.extend({
8
- retrieve: stripeMethod({
9
- method: 'GET',
10
- fullPath: '/v1/capital/financing_offers/{financing_offer}',
11
- }),
12
- list: stripeMethod({
13
- method: 'GET',
14
- fullPath: '/v1/capital/financing_offers',
15
- methodType: 'list',
16
- }),
17
- markDelivered: stripeMethod({
18
- method: 'POST',
19
- fullPath: '/v1/capital/financing_offers/{financing_offer}/mark_delivered',
20
- }),
21
- });
@@ -1,12 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.FinancingSummary = void 0;
5
- const StripeResource_js_1 = require("../../StripeResource.js");
6
- const stripeMethod = StripeResource_js_1.StripeResource.method;
7
- exports.FinancingSummary = StripeResource_js_1.StripeResource.extend({
8
- retrieve: stripeMethod({
9
- method: 'GET',
10
- fullPath: '/v1/capital/financing_summary',
11
- }),
12
- });
@@ -1,17 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.FinancingTransactions = void 0;
5
- const StripeResource_js_1 = require("../../StripeResource.js");
6
- const stripeMethod = StripeResource_js_1.StripeResource.method;
7
- exports.FinancingTransactions = StripeResource_js_1.StripeResource.extend({
8
- retrieve: stripeMethod({
9
- method: 'GET',
10
- fullPath: '/v1/capital/financing_transactions/{financing_transaction}',
11
- }),
12
- list: stripeMethod({
13
- method: 'GET',
14
- fullPath: '/v1/capital/financing_transactions',
15
- methodType: 'list',
16
- }),
17
- });
@@ -1,17 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Institutions = void 0;
5
- const StripeResource_js_1 = require("../../StripeResource.js");
6
- const stripeMethod = StripeResource_js_1.StripeResource.method;
7
- exports.Institutions = StripeResource_js_1.StripeResource.extend({
8
- retrieve: stripeMethod({
9
- method: 'GET',
10
- fullPath: '/v1/financial_connections/institutions/{institution}',
11
- }),
12
- list: stripeMethod({
13
- method: 'GET',
14
- fullPath: '/v1/financial_connections/institutions',
15
- methodType: 'list',
16
- }),
17
- });
@@ -1,23 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Cards = void 0;
5
- const StripeResource_js_1 = require("../../StripeResource.js");
6
- const stripeMethod = StripeResource_js_1.StripeResource.method;
7
- exports.Cards = StripeResource_js_1.StripeResource.extend({
8
- create: stripeMethod({ method: 'POST', fullPath: '/v1/gift_cards/cards' }),
9
- retrieve: stripeMethod({
10
- method: 'GET',
11
- fullPath: '/v1/gift_cards/cards/{id}',
12
- }),
13
- update: stripeMethod({ method: 'POST', fullPath: '/v1/gift_cards/cards/{id}' }),
14
- list: stripeMethod({
15
- method: 'GET',
16
- fullPath: '/v1/gift_cards/cards',
17
- methodType: 'list',
18
- }),
19
- validate: stripeMethod({
20
- method: 'POST',
21
- fullPath: '/v1/gift_cards/cards/validate',
22
- }),
23
- });