stripe 16.0.0 → 16.2.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 (154) hide show
  1. package/CHANGELOG.md +761 -109
  2. package/README.md +33 -0
  3. package/VERSION +1 -1
  4. package/cjs/RequestSender.js +66 -5
  5. package/cjs/StripeResource.js +1 -1
  6. package/cjs/apiVersion.js +2 -1
  7. package/cjs/multipart.js +1 -1
  8. package/cjs/resources/AccountNotices.js +21 -0
  9. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  10. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  11. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  12. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  13. package/cjs/resources/GiftCards/Cards.js +23 -0
  14. package/cjs/resources/GiftCards/Transactions.js +33 -0
  15. package/cjs/resources/Invoices.js +25 -0
  16. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  17. package/cjs/resources/Margins.js +22 -0
  18. package/cjs/resources/OAuth.js +1 -1
  19. package/cjs/resources/Orders.js +24 -0
  20. package/cjs/resources/PaymentIntents.js +4 -0
  21. package/cjs/resources/QuotePhases.js +22 -0
  22. package/cjs/resources/Quotes.js +32 -0
  23. package/cjs/resources/SubscriptionSchedules.js +4 -0
  24. package/cjs/resources/Tax/Forms.js +20 -0
  25. package/cjs/resources/Terminal/Readers.js +12 -0
  26. package/cjs/resources.js +36 -10
  27. package/cjs/stripe.core.js +6 -3
  28. package/cjs/utils.js +30 -3
  29. package/esm/RequestSender.js +67 -6
  30. package/esm/StripeResource.js +2 -2
  31. package/esm/apiVersion.js +1 -0
  32. package/esm/multipart.js +2 -2
  33. package/esm/resources/AccountNotices.js +18 -0
  34. package/esm/resources/Capital/FinancingOffers.js +18 -0
  35. package/esm/resources/Capital/FinancingSummary.js +9 -0
  36. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  37. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  38. package/esm/resources/GiftCards/Cards.js +20 -0
  39. package/esm/resources/GiftCards/Transactions.js +30 -0
  40. package/esm/resources/Invoices.js +25 -0
  41. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  42. package/esm/resources/Margins.js +19 -0
  43. package/esm/resources/OAuth.js +2 -2
  44. package/esm/resources/Orders.js +21 -0
  45. package/esm/resources/PaymentIntents.js +4 -0
  46. package/esm/resources/QuotePhases.js +19 -0
  47. package/esm/resources/Quotes.js +32 -0
  48. package/esm/resources/SubscriptionSchedules.js +4 -0
  49. package/esm/resources/Tax/Forms.js +17 -0
  50. package/esm/resources/Terminal/Readers.js +12 -0
  51. package/esm/resources.js +22 -0
  52. package/esm/stripe.core.js +6 -3
  53. package/esm/utils.js +27 -1
  54. package/package.json +1 -1
  55. package/types/AccountLinksResource.d.ts +5 -1
  56. package/types/AccountNotices.d.ts +110 -0
  57. package/types/AccountNoticesResource.d.ts +98 -0
  58. package/types/AccountSessions.d.ts +15 -0
  59. package/types/AccountSessionsResource.d.ts +205 -0
  60. package/types/Accounts.d.ts +88 -1
  61. package/types/AccountsResource.d.ts +204 -0
  62. package/types/Billing/MetersResource.d.ts +6 -2
  63. package/types/Capabilities.d.ts +1 -1
  64. package/types/Capital/FinancingOffers.d.ts +188 -0
  65. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  66. package/types/Capital/FinancingSummary.d.ts +106 -0
  67. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  68. package/types/Capital/FinancingTransactions.d.ts +135 -0
  69. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  70. package/types/Charges.d.ts +67 -0
  71. package/types/ChargesResource.d.ts +1294 -0
  72. package/types/Checkout/Sessions.d.ts +36 -1
  73. package/types/Checkout/SessionsResource.d.ts +15 -1
  74. package/types/ConfirmationTokens.d.ts +83 -0
  75. package/types/Coupons.d.ts +1 -1
  76. package/types/CouponsResource.d.ts +1 -1
  77. package/types/CreditNotes.d.ts +21 -0
  78. package/types/CreditNotesResource.d.ts +72 -0
  79. package/types/CustomerSessions.d.ts +48 -0
  80. package/types/CustomerSessionsResource.d.ts +48 -0
  81. package/types/CustomersResource.d.ts +2 -0
  82. package/types/Disputes.d.ts +167 -0
  83. package/types/DisputesResource.d.ts +120 -0
  84. package/types/EventTypes.d.ts +426 -0
  85. package/types/Events.d.ts +83 -0
  86. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  87. package/types/FinancialConnections/Accounts.d.ts +29 -1
  88. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  89. package/types/FinancialConnections/Sessions.d.ts +58 -1
  90. package/types/FinancialConnections/SessionsResource.d.ts +47 -1
  91. package/types/GiftCards/Cards.d.ts +118 -0
  92. package/types/GiftCards/CardsResource.d.ts +159 -0
  93. package/types/GiftCards/Transactions.d.ts +129 -0
  94. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  95. package/types/InvoiceItems.d.ts +5 -0
  96. package/types/InvoiceItemsResource.d.ts +98 -0
  97. package/types/InvoiceLineItems.d.ts +22 -0
  98. package/types/InvoicePayments.d.ts +91 -0
  99. package/types/Invoices.d.ts +123 -1
  100. package/types/InvoicesResource.d.ts +6477 -2302
  101. package/types/Issuing/CardholdersResource.d.ts +2 -1
  102. package/types/Issuing/Cards.d.ts +34 -0
  103. package/types/Issuing/CardsResource.d.ts +125 -0
  104. package/types/Issuing/CreditUnderwritingRecords.d.ts +446 -0
  105. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1017 -0
  106. package/types/LineItems.d.ts +7 -0
  107. package/types/Mandates.d.ts +77 -0
  108. package/types/Margins.d.ts +56 -0
  109. package/types/MarginsResource.d.ts +114 -0
  110. package/types/Orders.d.ts +1057 -0
  111. package/types/OrdersResource.d.ts +2711 -0
  112. package/types/PaymentIntents.d.ts +476 -1
  113. package/types/PaymentIntentsResource.d.ts +6735 -3354
  114. package/types/PaymentLinks.d.ts +4 -1
  115. package/types/PaymentLinksResource.d.ts +8 -2
  116. package/types/PaymentMethods.d.ts +62 -0
  117. package/types/PaymentMethodsResource.d.ts +110 -0
  118. package/types/Prices.d.ts +22 -0
  119. package/types/PricesResource.d.ts +22 -0
  120. package/types/Products.d.ts +39 -0
  121. package/types/ProductsResource.d.ts +36 -0
  122. package/types/QuoteLines.d.ts +634 -0
  123. package/types/QuotePhases.d.ts +198 -0
  124. package/types/QuotePhasesResource.d.ts +67 -0
  125. package/types/QuotePreviewInvoices.d.ts +1528 -0
  126. package/types/QuotePreviewSubscriptionSchedules.d.ts +778 -0
  127. package/types/Quotes.d.ts +578 -1
  128. package/types/QuotesResource.d.ts +3174 -265
  129. package/types/SetupAttempts.d.ts +8 -0
  130. package/types/SetupIntents.d.ts +117 -1
  131. package/types/SetupIntentsResource.d.ts +531 -3
  132. package/types/Sources.d.ts +23 -0
  133. package/types/SubscriptionItems.d.ts +21 -0
  134. package/types/SubscriptionItemsResource.d.ts +109 -0
  135. package/types/SubscriptionSchedules.d.ts +164 -0
  136. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  137. package/types/Subscriptions.d.ts +54 -1
  138. package/types/SubscriptionsResource.d.ts +369 -2
  139. package/types/Tax/Forms.d.ts +133 -0
  140. package/types/Tax/FormsResource.d.ts +90 -0
  141. package/types/Terminal/Configurations.d.ts +14 -0
  142. package/types/Terminal/ConfigurationsResource.d.ts +36 -0
  143. package/types/Terminal/Readers.d.ts +278 -0
  144. package/types/Terminal/ReadersResource.d.ts +208 -0
  145. package/types/TestHelpers/ConfirmationTokensResource.d.ts +55 -0
  146. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  147. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  148. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  149. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  150. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  151. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  152. package/types/WebhookEndpointsResource.d.ts +50 -0
  153. package/types/index.d.ts +61 -0
  154. package/types/lib.d.ts +12 -0
@@ -152,6 +152,8 @@ declare module 'stripe' {
152
152
  | 'account.external_account.deleted'
153
153
  | 'account.external_account.updated'
154
154
  | 'account.updated'
155
+ | 'account_notice.created'
156
+ | 'account_notice.updated'
155
157
  | 'application_fee.created'
156
158
  | 'application_fee.refund.updated'
157
159
  | 'application_fee.refunded'
@@ -160,6 +162,15 @@ declare module 'stripe' {
160
162
  | 'billing_portal.configuration.updated'
161
163
  | 'billing_portal.session.created'
162
164
  | 'capability.updated'
165
+ | 'capital.financing_offer.accepted'
166
+ | 'capital.financing_offer.canceled'
167
+ | 'capital.financing_offer.created'
168
+ | 'capital.financing_offer.expired'
169
+ | 'capital.financing_offer.fully_repaid'
170
+ | 'capital.financing_offer.paid_out'
171
+ | 'capital.financing_offer.rejected'
172
+ | 'capital.financing_offer.replacement_created'
173
+ | 'capital.financing_transaction.created'
163
174
  | 'cash_balance.funds_available'
164
175
  | 'charge.captured'
165
176
  | 'charge.dispute.closed'
@@ -200,7 +211,10 @@ declare module 'stripe' {
200
211
  | 'customer.source.deleted'
201
212
  | 'customer.source.expiring'
202
213
  | 'customer.source.updated'
214
+ | 'customer.subscription.collection_paused'
215
+ | 'customer.subscription.collection_resumed'
203
216
  | 'customer.subscription.created'
217
+ | 'customer.subscription.custom_event'
204
218
  | 'customer.subscription.deleted'
205
219
  | 'customer.subscription.paused'
206
220
  | 'customer.subscription.pending_update_applied'
@@ -220,8 +234,10 @@ declare module 'stripe' {
220
234
  | 'financial_connections.account.disconnected'
221
235
  | 'financial_connections.account.reactivated'
222
236
  | 'financial_connections.account.refreshed_balance'
237
+ | 'financial_connections.account.refreshed_inferred_balances'
223
238
  | 'financial_connections.account.refreshed_ownership'
224
239
  | 'financial_connections.account.refreshed_transactions'
240
+ | 'financial_connections.session.updated'
225
241
  | 'identity.verification_session.canceled'
226
242
  | 'identity.verification_session.created'
227
243
  | 'identity.verification_session.processing'
@@ -234,6 +250,7 @@ declare module 'stripe' {
234
250
  | 'invoice.finalized'
235
251
  | 'invoice.marked_uncollectible'
236
252
  | 'invoice.paid'
253
+ | 'invoice.payment.overpaid'
237
254
  | 'invoice.payment_action_required'
238
255
  | 'invoice.payment_failed'
239
256
  | 'invoice.payment_succeeded'
@@ -298,10 +315,16 @@ declare module 'stripe' {
298
315
  | 'product.updated'
299
316
  | 'promotion_code.created'
300
317
  | 'promotion_code.updated'
318
+ | 'quote.accept_failed'
301
319
  | 'quote.accepted'
320
+ | 'quote.accepting'
302
321
  | 'quote.canceled'
303
322
  | 'quote.created'
323
+ | 'quote.draft'
304
324
  | 'quote.finalized'
325
+ | 'quote.reestimate_failed'
326
+ | 'quote.reestimated'
327
+ | 'quote.stale'
305
328
  | 'radar.early_fraud_warning.created'
306
329
  | 'radar.early_fraud_warning.updated'
307
330
  | 'refund.created'
@@ -331,11 +354,13 @@ declare module 'stripe' {
331
354
  | 'subscription_schedule.expiring'
332
355
  | 'subscription_schedule.released'
333
356
  | 'subscription_schedule.updated'
357
+ | 'tax.form.updated'
334
358
  | 'tax.settings.updated'
335
359
  | 'tax_rate.created'
336
360
  | 'tax_rate.updated'
337
361
  | 'terminal.reader.action_failed'
338
362
  | 'terminal.reader.action_succeeded'
363
+ | 'terminal.reader.action_updated'
339
364
  | 'test_helpers.test_clock.advancing'
340
365
  | 'test_helpers.test_clock.created'
341
366
  | 'test_helpers.test_clock.deleted'
@@ -429,6 +454,8 @@ declare module 'stripe' {
429
454
  | 'account.external_account.deleted'
430
455
  | 'account.external_account.updated'
431
456
  | 'account.updated'
457
+ | 'account_notice.created'
458
+ | 'account_notice.updated'
432
459
  | 'application_fee.created'
433
460
  | 'application_fee.refund.updated'
434
461
  | 'application_fee.refunded'
@@ -437,6 +464,15 @@ declare module 'stripe' {
437
464
  | 'billing_portal.configuration.updated'
438
465
  | 'billing_portal.session.created'
439
466
  | 'capability.updated'
467
+ | 'capital.financing_offer.accepted'
468
+ | 'capital.financing_offer.canceled'
469
+ | 'capital.financing_offer.created'
470
+ | 'capital.financing_offer.expired'
471
+ | 'capital.financing_offer.fully_repaid'
472
+ | 'capital.financing_offer.paid_out'
473
+ | 'capital.financing_offer.rejected'
474
+ | 'capital.financing_offer.replacement_created'
475
+ | 'capital.financing_transaction.created'
440
476
  | 'cash_balance.funds_available'
441
477
  | 'charge.captured'
442
478
  | 'charge.dispute.closed'
@@ -477,7 +513,10 @@ declare module 'stripe' {
477
513
  | 'customer.source.deleted'
478
514
  | 'customer.source.expiring'
479
515
  | 'customer.source.updated'
516
+ | 'customer.subscription.collection_paused'
517
+ | 'customer.subscription.collection_resumed'
480
518
  | 'customer.subscription.created'
519
+ | 'customer.subscription.custom_event'
481
520
  | 'customer.subscription.deleted'
482
521
  | 'customer.subscription.paused'
483
522
  | 'customer.subscription.pending_update_applied'
@@ -497,8 +536,10 @@ declare module 'stripe' {
497
536
  | 'financial_connections.account.disconnected'
498
537
  | 'financial_connections.account.reactivated'
499
538
  | 'financial_connections.account.refreshed_balance'
539
+ | 'financial_connections.account.refreshed_inferred_balances'
500
540
  | 'financial_connections.account.refreshed_ownership'
501
541
  | 'financial_connections.account.refreshed_transactions'
542
+ | 'financial_connections.session.updated'
502
543
  | 'identity.verification_session.canceled'
503
544
  | 'identity.verification_session.created'
504
545
  | 'identity.verification_session.processing'
@@ -511,6 +552,7 @@ declare module 'stripe' {
511
552
  | 'invoice.finalized'
512
553
  | 'invoice.marked_uncollectible'
513
554
  | 'invoice.paid'
555
+ | 'invoice.payment.overpaid'
514
556
  | 'invoice.payment_action_required'
515
557
  | 'invoice.payment_failed'
516
558
  | 'invoice.payment_succeeded'
@@ -575,10 +617,16 @@ declare module 'stripe' {
575
617
  | 'product.updated'
576
618
  | 'promotion_code.created'
577
619
  | 'promotion_code.updated'
620
+ | 'quote.accept_failed'
578
621
  | 'quote.accepted'
622
+ | 'quote.accepting'
579
623
  | 'quote.canceled'
580
624
  | 'quote.created'
625
+ | 'quote.draft'
581
626
  | 'quote.finalized'
627
+ | 'quote.reestimate_failed'
628
+ | 'quote.reestimated'
629
+ | 'quote.stale'
582
630
  | 'radar.early_fraud_warning.created'
583
631
  | 'radar.early_fraud_warning.updated'
584
632
  | 'refund.created'
@@ -608,11 +656,13 @@ declare module 'stripe' {
608
656
  | 'subscription_schedule.expiring'
609
657
  | 'subscription_schedule.released'
610
658
  | 'subscription_schedule.updated'
659
+ | 'tax.form.updated'
611
660
  | 'tax.settings.updated'
612
661
  | 'tax_rate.created'
613
662
  | 'tax_rate.updated'
614
663
  | 'terminal.reader.action_failed'
615
664
  | 'terminal.reader.action_succeeded'
665
+ | 'terminal.reader.action_updated'
616
666
  | 'test_helpers.test_clock.advancing'
617
667
  | 'test_helpers.test_clock.created'
618
668
  | 'test_helpers.test_clock.deleted'
package/types/index.d.ts CHANGED
@@ -10,6 +10,7 @@
10
10
  ///<reference path='./Deprecations.d.ts' />
11
11
  // Imports: The beginning of the section generated from our OpenAPI spec
12
12
  ///<reference path='./AccountLinksResource.d.ts' />
13
+ ///<reference path='./AccountNoticesResource.d.ts' />
13
14
  ///<reference path='./AccountSessionsResource.d.ts' />
14
15
  ///<reference path='./AccountsResource.d.ts' />
15
16
  ///<reference path='./ApplePayDomainsResource.d.ts' />
@@ -22,6 +23,9 @@
22
23
  ///<reference path='./Billing/MetersResource.d.ts' />
23
24
  ///<reference path='./BillingPortal/ConfigurationsResource.d.ts' />
24
25
  ///<reference path='./BillingPortal/SessionsResource.d.ts' />
26
+ ///<reference path='./Capital/FinancingOffersResource.d.ts' />
27
+ ///<reference path='./Capital/FinancingSummaryResource.d.ts' />
28
+ ///<reference path='./Capital/FinancingTransactionsResource.d.ts' />
25
29
  ///<reference path='./ChargesResource.d.ts' />
26
30
  ///<reference path='./Checkout/SessionsResource.d.ts' />
27
31
  ///<reference path='./Climate/OrdersResource.d.ts' />
@@ -45,6 +49,8 @@
45
49
  ///<reference path='./FinancialConnections/SessionsResource.d.ts' />
46
50
  ///<reference path='./FinancialConnections/TransactionsResource.d.ts' />
47
51
  ///<reference path='./Forwarding/RequestsResource.d.ts' />
52
+ ///<reference path='./GiftCards/CardsResource.d.ts' />
53
+ ///<reference path='./GiftCards/TransactionsResource.d.ts' />
48
54
  ///<reference path='./Identity/VerificationReportsResource.d.ts' />
49
55
  ///<reference path='./Identity/VerificationSessionsResource.d.ts' />
50
56
  ///<reference path='./InvoiceItemsResource.d.ts' />
@@ -52,12 +58,15 @@
52
58
  ///<reference path='./Issuing/AuthorizationsResource.d.ts' />
53
59
  ///<reference path='./Issuing/CardholdersResource.d.ts' />
54
60
  ///<reference path='./Issuing/CardsResource.d.ts' />
61
+ ///<reference path='./Issuing/CreditUnderwritingRecordsResource.d.ts' />
55
62
  ///<reference path='./Issuing/DisputesResource.d.ts' />
56
63
  ///<reference path='./Issuing/PersonalizationDesignsResource.d.ts' />
57
64
  ///<reference path='./Issuing/PhysicalBundlesResource.d.ts' />
58
65
  ///<reference path='./Issuing/TokensResource.d.ts' />
59
66
  ///<reference path='./Issuing/TransactionsResource.d.ts' />
60
67
  ///<reference path='./MandatesResource.d.ts' />
68
+ ///<reference path='./MarginsResource.d.ts' />
69
+ ///<reference path='./OrdersResource.d.ts' />
61
70
  ///<reference path='./PaymentIntentsResource.d.ts' />
62
71
  ///<reference path='./PaymentLinksResource.d.ts' />
63
72
  ///<reference path='./PaymentMethodConfigurationsResource.d.ts' />
@@ -68,6 +77,7 @@
68
77
  ///<reference path='./PricesResource.d.ts' />
69
78
  ///<reference path='./ProductsResource.d.ts' />
70
79
  ///<reference path='./PromotionCodesResource.d.ts' />
80
+ ///<reference path='./QuotePhasesResource.d.ts' />
71
81
  ///<reference path='./QuotesResource.d.ts' />
72
82
  ///<reference path='./Radar/EarlyFraudWarningsResource.d.ts' />
73
83
  ///<reference path='./Radar/ValueListItemsResource.d.ts' />
@@ -85,6 +95,7 @@
85
95
  ///<reference path='./SubscriptionSchedulesResource.d.ts' />
86
96
  ///<reference path='./SubscriptionsResource.d.ts' />
87
97
  ///<reference path='./Tax/CalculationsResource.d.ts' />
98
+ ///<reference path='./Tax/FormsResource.d.ts' />
88
99
  ///<reference path='./Tax/RegistrationsResource.d.ts' />
89
100
  ///<reference path='./Tax/SettingsResource.d.ts' />
90
101
  ///<reference path='./Tax/TransactionsResource.d.ts' />
@@ -124,6 +135,7 @@
124
135
  ///<reference path='./Treasury/TransactionsResource.d.ts' />
125
136
  ///<reference path='./WebhookEndpointsResource.d.ts' />
126
137
  ///<reference path='./AccountLinks.d.ts' />
138
+ ///<reference path='./AccountNotices.d.ts' />
127
139
  ///<reference path='./AccountSessions.d.ts' />
128
140
  ///<reference path='./Accounts.d.ts' />
129
141
  ///<reference path='./ApplePayDomains.d.ts' />
@@ -141,6 +153,9 @@
141
153
  ///<reference path='./BillingPortal/Configurations.d.ts' />
142
154
  ///<reference path='./BillingPortal/Sessions.d.ts' />
143
155
  ///<reference path='./Capabilities.d.ts' />
156
+ ///<reference path='./Capital/FinancingOffers.d.ts' />
157
+ ///<reference path='./Capital/FinancingSummary.d.ts' />
158
+ ///<reference path='./Capital/FinancingTransactions.d.ts' />
144
159
  ///<reference path='./Cards.d.ts' />
145
160
  ///<reference path='./CashBalances.d.ts' />
146
161
  ///<reference path='./Charges.d.ts' />
@@ -171,6 +186,7 @@
171
186
  ///<reference path='./FeeRefunds.d.ts' />
172
187
  ///<reference path='./FileLinks.d.ts' />
173
188
  ///<reference path='./Files.d.ts' />
189
+ ///<reference path='./FinancialConnections/AccountInferredBalances.d.ts' />
174
190
  ///<reference path='./FinancialConnections/AccountOwners.d.ts' />
175
191
  ///<reference path='./FinancialConnections/AccountOwnerships.d.ts' />
176
192
  ///<reference path='./FinancialConnections/Accounts.d.ts' />
@@ -178,14 +194,18 @@
178
194
  ///<reference path='./FinancialConnections/Transactions.d.ts' />
179
195
  ///<reference path='./Forwarding/Requests.d.ts' />
180
196
  ///<reference path='./FundingInstructions.d.ts' />
197
+ ///<reference path='./GiftCards/Cards.d.ts' />
198
+ ///<reference path='./GiftCards/Transactions.d.ts' />
181
199
  ///<reference path='./Identity/VerificationReports.d.ts' />
182
200
  ///<reference path='./Identity/VerificationSessions.d.ts' />
183
201
  ///<reference path='./InvoiceItems.d.ts' />
184
202
  ///<reference path='./InvoiceLineItems.d.ts' />
203
+ ///<reference path='./InvoicePayments.d.ts' />
185
204
  ///<reference path='./Invoices.d.ts' />
186
205
  ///<reference path='./Issuing/Authorizations.d.ts' />
187
206
  ///<reference path='./Issuing/Cardholders.d.ts' />
188
207
  ///<reference path='./Issuing/Cards.d.ts' />
208
+ ///<reference path='./Issuing/CreditUnderwritingRecords.d.ts' />
189
209
  ///<reference path='./Issuing/Disputes.d.ts' />
190
210
  ///<reference path='./Issuing/PersonalizationDesigns.d.ts' />
191
211
  ///<reference path='./Issuing/PhysicalBundles.d.ts' />
@@ -194,6 +214,8 @@
194
214
  ///<reference path='./LineItems.d.ts' />
195
215
  ///<reference path='./LoginLinks.d.ts' />
196
216
  ///<reference path='./Mandates.d.ts' />
217
+ ///<reference path='./Margins.d.ts' />
218
+ ///<reference path='./Orders.d.ts' />
197
219
  ///<reference path='./PaymentIntents.d.ts' />
198
220
  ///<reference path='./PaymentLinks.d.ts' />
199
221
  ///<reference path='./PaymentMethodConfigurations.d.ts' />
@@ -206,6 +228,10 @@
206
228
  ///<reference path='./ProductFeatures.d.ts' />
207
229
  ///<reference path='./Products.d.ts' />
208
230
  ///<reference path='./PromotionCodes.d.ts' />
231
+ ///<reference path='./QuoteLines.d.ts' />
232
+ ///<reference path='./QuotePhases.d.ts' />
233
+ ///<reference path='./QuotePreviewInvoices.d.ts' />
234
+ ///<reference path='./QuotePreviewSubscriptionSchedules.d.ts' />
209
235
  ///<reference path='./Quotes.d.ts' />
210
236
  ///<reference path='./Radar/EarlyFraudWarnings.d.ts' />
211
237
  ///<reference path='./Radar/ValueListItems.d.ts' />
@@ -227,6 +253,7 @@
227
253
  ///<reference path='./Subscriptions.d.ts' />
228
254
  ///<reference path='./Tax/CalculationLineItems.d.ts' />
229
255
  ///<reference path='./Tax/Calculations.d.ts' />
256
+ ///<reference path='./Tax/Forms.d.ts' />
230
257
  ///<reference path='./Tax/Registrations.d.ts' />
231
258
  ///<reference path='./Tax/Settings.d.ts' />
232
259
  ///<reference path='./Tax/TransactionLineItems.d.ts' />
@@ -279,6 +306,7 @@ declare module 'stripe' {
279
306
 
280
307
  // Fields: The beginning of the section generated from our OpenAPI spec
281
308
  accountLinks: Stripe.AccountLinksResource;
309
+ accountNotices: Stripe.AccountNoticesResource;
282
310
  accountSessions: Stripe.AccountSessionsResource;
283
311
  accounts: Stripe.AccountsResource;
284
312
  applePayDomains: Stripe.ApplePayDomainsResource;
@@ -301,6 +329,8 @@ declare module 'stripe' {
301
329
  invoiceItems: Stripe.InvoiceItemsResource;
302
330
  invoices: Stripe.InvoicesResource;
303
331
  mandates: Stripe.MandatesResource;
332
+ margins: Stripe.MarginsResource;
333
+ orders: Stripe.OrdersResource;
304
334
  paymentIntents: Stripe.PaymentIntentsResource;
305
335
  paymentLinks: Stripe.PaymentLinksResource;
306
336
  paymentMethodConfigurations: Stripe.PaymentMethodConfigurationsResource;
@@ -311,6 +341,7 @@ declare module 'stripe' {
311
341
  prices: Stripe.PricesResource;
312
342
  products: Stripe.ProductsResource;
313
343
  promotionCodes: Stripe.PromotionCodesResource;
344
+ quotePhases: Stripe.QuotePhasesResource;
314
345
  quotes: Stripe.QuotesResource;
315
346
  refunds: Stripe.RefundsResource;
316
347
  reviews: Stripe.ReviewsResource;
@@ -340,6 +371,11 @@ declare module 'stripe' {
340
371
  configurations: Stripe.BillingPortal.ConfigurationsResource;
341
372
  sessions: Stripe.BillingPortal.SessionsResource;
342
373
  };
374
+ capital: {
375
+ financingOffers: Stripe.Capital.FinancingOffersResource;
376
+ financingSummary: Stripe.Capital.FinancingSummaryResource;
377
+ financingTransactions: Stripe.Capital.FinancingTransactionsResource;
378
+ };
343
379
  checkout: {
344
380
  sessions: Stripe.Checkout.SessionsResource;
345
381
  };
@@ -360,6 +396,10 @@ declare module 'stripe' {
360
396
  forwarding: {
361
397
  requests: Stripe.Forwarding.RequestsResource;
362
398
  };
399
+ giftCards: {
400
+ cards: Stripe.GiftCards.CardsResource;
401
+ transactions: Stripe.GiftCards.TransactionsResource;
402
+ };
363
403
  identity: {
364
404
  verificationReports: Stripe.Identity.VerificationReportsResource;
365
405
  verificationSessions: Stripe.Identity.VerificationSessionsResource;
@@ -368,6 +408,7 @@ declare module 'stripe' {
368
408
  authorizations: Stripe.Issuing.AuthorizationsResource;
369
409
  cards: Stripe.Issuing.CardsResource;
370
410
  cardholders: Stripe.Issuing.CardholdersResource;
411
+ creditUnderwritingRecords: Stripe.Issuing.CreditUnderwritingRecordsResource;
371
412
  disputes: Stripe.Issuing.DisputesResource;
372
413
  personalizationDesigns: Stripe.Issuing.PersonalizationDesignsResource;
373
414
  physicalBundles: Stripe.Issuing.PhysicalBundlesResource;
@@ -388,6 +429,7 @@ declare module 'stripe' {
388
429
  };
389
430
  tax: {
390
431
  calculations: Stripe.Tax.CalculationsResource;
432
+ forms: Stripe.Tax.FormsResource;
391
433
  registrations: Stripe.Tax.RegistrationsResource;
392
434
  settings: Stripe.Tax.SettingsResource;
393
435
  transactions: Stripe.Tax.TransactionsResource;
@@ -452,6 +494,25 @@ declare module 'stripe' {
452
494
  event: 'response',
453
495
  handler: (event: Stripe.ResponseEvent) => void
454
496
  ): void;
497
+
498
+ /**
499
+ * Allows for sending "raw" requests to the Stripe API, which can be used for
500
+ * testing new API endpoints or performing requests that the library does
501
+ * not support yet.
502
+ *
503
+ * This is an experimental interface and is not yet stable.
504
+ *
505
+ * @param method - HTTP request method, 'GET', 'POST', or 'DELETE'
506
+ * @param path - The path of the request, e.g. '/v1/beta_endpoint'
507
+ * @param params - The parameters to include in the request body.
508
+ * @param options - Additional request options.
509
+ */
510
+ rawRequest(
511
+ method: string,
512
+ path: string,
513
+ params?: {[key: string]: unknown},
514
+ options?: Stripe.RawRequestOptions
515
+ ): Promise<Stripe.Response<unknown>>;
455
516
  }
456
517
 
457
518
  export default Stripe;
package/types/lib.d.ts CHANGED
@@ -153,6 +153,18 @@ declare module 'stripe' {
153
153
  host?: string;
154
154
  }
155
155
 
156
+ export type RawRequestOptions = RequestOptions & {
157
+ /**
158
+ * Specify encoding for the request body. This is an experimental interface and is not yet stable.
159
+ */
160
+ apiMode?: 'standard' | 'preview';
161
+
162
+ /**
163
+ * Specify additional request headers. This is an experimental interface and is not yet stable.
164
+ */
165
+ additionalHeaders?: {[headerName: string]: string};
166
+ };
167
+
156
168
  export type Response<T> = T & {
157
169
  lastResponse: {
158
170
  headers: {[key: string]: string};