stripe 16.9.0 → 16.11.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 (165) hide show
  1. package/CHANGELOG.md +832 -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/FinancialConnections/Institutions.js +17 -0
  14. package/cjs/resources/GiftCards/Cards.js +23 -0
  15. package/cjs/resources/GiftCards/Transactions.js +33 -0
  16. package/cjs/resources/Invoices.js +17 -0
  17. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  18. package/cjs/resources/Margins.js +22 -0
  19. package/cjs/resources/OAuth.js +1 -1
  20. package/cjs/resources/Orders.js +24 -0
  21. package/cjs/resources/PaymentIntents.js +4 -0
  22. package/cjs/resources/QuotePhases.js +22 -0
  23. package/cjs/resources/Quotes.js +32 -0
  24. package/cjs/resources/SubscriptionSchedules.js +4 -0
  25. package/cjs/resources/Tax/Associations.js +9 -0
  26. package/cjs/resources/Tax/Forms.js +20 -0
  27. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  28. package/cjs/resources/Terminal/Readers.js +12 -0
  29. package/cjs/resources.js +42 -10
  30. package/cjs/stripe.core.js +6 -3
  31. package/cjs/utils.js +30 -3
  32. package/esm/RequestSender.js +67 -6
  33. package/esm/StripeResource.js +2 -2
  34. package/esm/apiVersion.js +1 -0
  35. package/esm/multipart.js +2 -2
  36. package/esm/resources/AccountNotices.js +18 -0
  37. package/esm/resources/Capital/FinancingOffers.js +18 -0
  38. package/esm/resources/Capital/FinancingSummary.js +9 -0
  39. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  40. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  41. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  42. package/esm/resources/GiftCards/Cards.js +20 -0
  43. package/esm/resources/GiftCards/Transactions.js +30 -0
  44. package/esm/resources/Invoices.js +17 -0
  45. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  46. package/esm/resources/Margins.js +19 -0
  47. package/esm/resources/OAuth.js +2 -2
  48. package/esm/resources/Orders.js +21 -0
  49. package/esm/resources/PaymentIntents.js +4 -0
  50. package/esm/resources/QuotePhases.js +19 -0
  51. package/esm/resources/Quotes.js +32 -0
  52. package/esm/resources/SubscriptionSchedules.js +4 -0
  53. package/esm/resources/Tax/Associations.js +6 -0
  54. package/esm/resources/Tax/Forms.js +17 -0
  55. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  56. package/esm/resources/Terminal/Readers.js +12 -0
  57. package/esm/resources.js +28 -0
  58. package/esm/stripe.core.js +6 -3
  59. package/esm/utils.js +27 -1
  60. package/package.json +1 -1
  61. package/types/AccountLinksResource.d.ts +5 -1
  62. package/types/AccountNotices.d.ts +113 -0
  63. package/types/AccountNoticesResource.d.ts +98 -0
  64. package/types/AccountSessions.d.ts +45 -0
  65. package/types/AccountSessionsResource.d.ts +278 -0
  66. package/types/Accounts.d.ts +113 -1
  67. package/types/AccountsResource.d.ts +270 -0
  68. package/types/Billing/AlertsResource.d.ts +10 -0
  69. package/types/Billing/MeterErrorReports.d.ts +106 -0
  70. package/types/Capital/FinancingOffers.d.ts +188 -0
  71. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  72. package/types/Capital/FinancingSummary.d.ts +106 -0
  73. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  74. package/types/Capital/FinancingTransactions.d.ts +135 -0
  75. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  76. package/types/Charges.d.ts +71 -0
  77. package/types/ChargesResource.d.ts +1294 -0
  78. package/types/Checkout/Sessions.d.ts +297 -5
  79. package/types/Checkout/SessionsResource.d.ts +351 -6
  80. package/types/ConfirmationTokens.d.ts +67 -0
  81. package/types/Coupons.d.ts +1 -1
  82. package/types/CouponsResource.d.ts +1 -1
  83. package/types/CreditNotes.d.ts +21 -0
  84. package/types/CreditNotesResource.d.ts +51 -0
  85. package/types/CustomersResource.d.ts +3 -0
  86. package/types/Disputes.d.ts +152 -0
  87. package/types/DisputesResource.d.ts +120 -0
  88. package/types/EventTypes.d.ts +477 -0
  89. package/types/Events.d.ts +86 -0
  90. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  91. package/types/FinancialConnections/Accounts.d.ts +29 -1
  92. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  93. package/types/FinancialConnections/Institutions.d.ts +93 -0
  94. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  95. package/types/FinancialConnections/Sessions.d.ts +49 -1
  96. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  97. package/types/GiftCards/Cards.d.ts +118 -0
  98. package/types/GiftCards/CardsResource.d.ts +159 -0
  99. package/types/GiftCards/Transactions.d.ts +129 -0
  100. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  101. package/types/InvoiceItems.d.ts +5 -0
  102. package/types/InvoiceItemsResource.d.ts +98 -0
  103. package/types/InvoiceLineItems.d.ts +22 -0
  104. package/types/InvoicePayments.d.ts +138 -0
  105. package/types/Invoices.d.ts +117 -1
  106. package/types/InvoicesResource.d.ts +5457 -1799
  107. package/types/Issuing/CardholdersResource.d.ts +2 -1
  108. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  109. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  110. package/types/LineItems.d.ts +7 -0
  111. package/types/Mandates.d.ts +77 -0
  112. package/types/Margins.d.ts +56 -0
  113. package/types/MarginsResource.d.ts +114 -0
  114. package/types/Orders.d.ts +1084 -0
  115. package/types/OrdersResource.d.ts +2765 -0
  116. package/types/PaymentIntents.d.ts +503 -1
  117. package/types/PaymentIntentsResource.d.ts +7003 -3400
  118. package/types/PaymentLinks.d.ts +2 -0
  119. package/types/PaymentLinksResource.d.ts +4 -0
  120. package/types/PaymentMethodConfigurations.d.ts +36 -0
  121. package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
  122. package/types/PaymentMethods.d.ts +67 -0
  123. package/types/PaymentMethodsResource.d.ts +88 -0
  124. package/types/Prices.d.ts +22 -0
  125. package/types/PricesResource.d.ts +22 -0
  126. package/types/Products.d.ts +39 -0
  127. package/types/ProductsResource.d.ts +36 -0
  128. package/types/QuoteLines.d.ts +634 -0
  129. package/types/QuotePhases.d.ts +198 -0
  130. package/types/QuotePhasesResource.d.ts +67 -0
  131. package/types/QuotePreviewInvoices.d.ts +1532 -0
  132. package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
  133. package/types/Quotes.d.ts +596 -1
  134. package/types/QuotesResource.d.ts +2526 -194
  135. package/types/SetupAttempts.d.ts +10 -0
  136. package/types/SetupIntents.d.ts +111 -1
  137. package/types/SetupIntentsResource.d.ts +522 -3
  138. package/types/Sources.d.ts +23 -0
  139. package/types/SubscriptionItems.d.ts +21 -0
  140. package/types/SubscriptionItemsResource.d.ts +109 -0
  141. package/types/SubscriptionSchedules.d.ts +200 -0
  142. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  143. package/types/Subscriptions.d.ts +82 -1
  144. package/types/SubscriptionsResource.d.ts +347 -2
  145. package/types/Tax/Associations.d.ts +126 -0
  146. package/types/Tax/AssociationsResource.d.ts +29 -0
  147. package/types/Tax/Forms.d.ts +133 -0
  148. package/types/Tax/FormsResource.d.ts +90 -0
  149. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  150. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  151. package/types/Terminal/Readers.d.ts +278 -0
  152. package/types/Terminal/ReadersResource.d.ts +212 -4
  153. package/types/TestHelpers/ConfirmationTokensResource.d.ts +63 -0
  154. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  155. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  156. package/types/Transfers.d.ts +1 -1
  157. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  158. package/types/Treasury/FinancialAccountsResource.d.ts +10 -0
  159. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  160. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  161. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  162. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  163. package/types/WebhookEndpointsResource.d.ts +56 -0
  164. package/types/index.d.ts +71 -0
  165. package/types/lib.d.ts +12 -0
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' />
@@ -23,6 +24,9 @@
23
24
  ///<reference path='./Billing/MetersResource.d.ts' />
24
25
  ///<reference path='./BillingPortal/ConfigurationsResource.d.ts' />
25
26
  ///<reference path='./BillingPortal/SessionsResource.d.ts' />
27
+ ///<reference path='./Capital/FinancingOffersResource.d.ts' />
28
+ ///<reference path='./Capital/FinancingSummaryResource.d.ts' />
29
+ ///<reference path='./Capital/FinancingTransactionsResource.d.ts' />
26
30
  ///<reference path='./ChargesResource.d.ts' />
27
31
  ///<reference path='./Checkout/SessionsResource.d.ts' />
28
32
  ///<reference path='./Climate/OrdersResource.d.ts' />
@@ -43,9 +47,12 @@
43
47
  ///<reference path='./FileLinksResource.d.ts' />
44
48
  ///<reference path='./FilesResource.d.ts' />
45
49
  ///<reference path='./FinancialConnections/AccountsResource.d.ts' />
50
+ ///<reference path='./FinancialConnections/InstitutionsResource.d.ts' />
46
51
  ///<reference path='./FinancialConnections/SessionsResource.d.ts' />
47
52
  ///<reference path='./FinancialConnections/TransactionsResource.d.ts' />
48
53
  ///<reference path='./Forwarding/RequestsResource.d.ts' />
54
+ ///<reference path='./GiftCards/CardsResource.d.ts' />
55
+ ///<reference path='./GiftCards/TransactionsResource.d.ts' />
49
56
  ///<reference path='./Identity/VerificationReportsResource.d.ts' />
50
57
  ///<reference path='./Identity/VerificationSessionsResource.d.ts' />
51
58
  ///<reference path='./InvoiceItemsResource.d.ts' />
@@ -53,12 +60,15 @@
53
60
  ///<reference path='./Issuing/AuthorizationsResource.d.ts' />
54
61
  ///<reference path='./Issuing/CardholdersResource.d.ts' />
55
62
  ///<reference path='./Issuing/CardsResource.d.ts' />
63
+ ///<reference path='./Issuing/CreditUnderwritingRecordsResource.d.ts' />
56
64
  ///<reference path='./Issuing/DisputesResource.d.ts' />
57
65
  ///<reference path='./Issuing/PersonalizationDesignsResource.d.ts' />
58
66
  ///<reference path='./Issuing/PhysicalBundlesResource.d.ts' />
59
67
  ///<reference path='./Issuing/TokensResource.d.ts' />
60
68
  ///<reference path='./Issuing/TransactionsResource.d.ts' />
61
69
  ///<reference path='./MandatesResource.d.ts' />
70
+ ///<reference path='./MarginsResource.d.ts' />
71
+ ///<reference path='./OrdersResource.d.ts' />
62
72
  ///<reference path='./PaymentIntentsResource.d.ts' />
63
73
  ///<reference path='./PaymentLinksResource.d.ts' />
64
74
  ///<reference path='./PaymentMethodConfigurationsResource.d.ts' />
@@ -69,6 +79,7 @@
69
79
  ///<reference path='./PricesResource.d.ts' />
70
80
  ///<reference path='./ProductsResource.d.ts' />
71
81
  ///<reference path='./PromotionCodesResource.d.ts' />
82
+ ///<reference path='./QuotePhasesResource.d.ts' />
72
83
  ///<reference path='./QuotesResource.d.ts' />
73
84
  ///<reference path='./Radar/EarlyFraudWarningsResource.d.ts' />
74
85
  ///<reference path='./Radar/ValueListItemsResource.d.ts' />
@@ -85,7 +96,9 @@
85
96
  ///<reference path='./SubscriptionItemsResource.d.ts' />
86
97
  ///<reference path='./SubscriptionSchedulesResource.d.ts' />
87
98
  ///<reference path='./SubscriptionsResource.d.ts' />
99
+ ///<reference path='./Tax/AssociationsResource.d.ts' />
88
100
  ///<reference path='./Tax/CalculationsResource.d.ts' />
101
+ ///<reference path='./Tax/FormsResource.d.ts' />
89
102
  ///<reference path='./Tax/RegistrationsResource.d.ts' />
90
103
  ///<reference path='./Tax/SettingsResource.d.ts' />
91
104
  ///<reference path='./Tax/TransactionsResource.d.ts' />
@@ -95,6 +108,7 @@
95
108
  ///<reference path='./Terminal/ConfigurationsResource.d.ts' />
96
109
  ///<reference path='./Terminal/ConnectionTokensResource.d.ts' />
97
110
  ///<reference path='./Terminal/LocationsResource.d.ts' />
111
+ ///<reference path='./Terminal/ReaderCollectedDataResource.d.ts' />
98
112
  ///<reference path='./Terminal/ReadersResource.d.ts' />
99
113
  ///<reference path='./TestHelpers/ConfirmationTokensResource.d.ts' />
100
114
  ///<reference path='./TestHelpers/CustomersResource.d.ts' />
@@ -125,6 +139,7 @@
125
139
  ///<reference path='./Treasury/TransactionsResource.d.ts' />
126
140
  ///<reference path='./WebhookEndpointsResource.d.ts' />
127
141
  ///<reference path='./AccountLinks.d.ts' />
142
+ ///<reference path='./AccountNotices.d.ts' />
128
143
  ///<reference path='./AccountSessions.d.ts' />
129
144
  ///<reference path='./Accounts.d.ts' />
130
145
  ///<reference path='./ApplePayDomains.d.ts' />
@@ -137,6 +152,7 @@
137
152
  ///<reference path='./BankAccounts.d.ts' />
138
153
  ///<reference path='./Billing/AlertTriggereds.d.ts' />
139
154
  ///<reference path='./Billing/Alerts.d.ts' />
155
+ ///<reference path='./Billing/MeterErrorReports.d.ts' />
140
156
  ///<reference path='./Billing/MeterEventAdjustments.d.ts' />
141
157
  ///<reference path='./Billing/MeterEventSummaries.d.ts' />
142
158
  ///<reference path='./Billing/MeterEvents.d.ts' />
@@ -144,6 +160,9 @@
144
160
  ///<reference path='./BillingPortal/Configurations.d.ts' />
145
161
  ///<reference path='./BillingPortal/Sessions.d.ts' />
146
162
  ///<reference path='./Capabilities.d.ts' />
163
+ ///<reference path='./Capital/FinancingOffers.d.ts' />
164
+ ///<reference path='./Capital/FinancingSummary.d.ts' />
165
+ ///<reference path='./Capital/FinancingTransactions.d.ts' />
147
166
  ///<reference path='./Cards.d.ts' />
148
167
  ///<reference path='./CashBalances.d.ts' />
149
168
  ///<reference path='./Charges.d.ts' />
@@ -174,21 +193,27 @@
174
193
  ///<reference path='./FeeRefunds.d.ts' />
175
194
  ///<reference path='./FileLinks.d.ts' />
176
195
  ///<reference path='./Files.d.ts' />
196
+ ///<reference path='./FinancialConnections/AccountInferredBalances.d.ts' />
177
197
  ///<reference path='./FinancialConnections/AccountOwners.d.ts' />
178
198
  ///<reference path='./FinancialConnections/AccountOwnerships.d.ts' />
179
199
  ///<reference path='./FinancialConnections/Accounts.d.ts' />
200
+ ///<reference path='./FinancialConnections/Institutions.d.ts' />
180
201
  ///<reference path='./FinancialConnections/Sessions.d.ts' />
181
202
  ///<reference path='./FinancialConnections/Transactions.d.ts' />
182
203
  ///<reference path='./Forwarding/Requests.d.ts' />
183
204
  ///<reference path='./FundingInstructions.d.ts' />
205
+ ///<reference path='./GiftCards/Cards.d.ts' />
206
+ ///<reference path='./GiftCards/Transactions.d.ts' />
184
207
  ///<reference path='./Identity/VerificationReports.d.ts' />
185
208
  ///<reference path='./Identity/VerificationSessions.d.ts' />
186
209
  ///<reference path='./InvoiceItems.d.ts' />
187
210
  ///<reference path='./InvoiceLineItems.d.ts' />
211
+ ///<reference path='./InvoicePayments.d.ts' />
188
212
  ///<reference path='./Invoices.d.ts' />
189
213
  ///<reference path='./Issuing/Authorizations.d.ts' />
190
214
  ///<reference path='./Issuing/Cardholders.d.ts' />
191
215
  ///<reference path='./Issuing/Cards.d.ts' />
216
+ ///<reference path='./Issuing/CreditUnderwritingRecords.d.ts' />
192
217
  ///<reference path='./Issuing/Disputes.d.ts' />
193
218
  ///<reference path='./Issuing/PersonalizationDesigns.d.ts' />
194
219
  ///<reference path='./Issuing/PhysicalBundles.d.ts' />
@@ -197,6 +222,8 @@
197
222
  ///<reference path='./LineItems.d.ts' />
198
223
  ///<reference path='./LoginLinks.d.ts' />
199
224
  ///<reference path='./Mandates.d.ts' />
225
+ ///<reference path='./Margins.d.ts' />
226
+ ///<reference path='./Orders.d.ts' />
200
227
  ///<reference path='./PaymentIntents.d.ts' />
201
228
  ///<reference path='./PaymentLinks.d.ts' />
202
229
  ///<reference path='./PaymentMethodConfigurations.d.ts' />
@@ -209,6 +236,10 @@
209
236
  ///<reference path='./ProductFeatures.d.ts' />
210
237
  ///<reference path='./Products.d.ts' />
211
238
  ///<reference path='./PromotionCodes.d.ts' />
239
+ ///<reference path='./QuoteLines.d.ts' />
240
+ ///<reference path='./QuotePhases.d.ts' />
241
+ ///<reference path='./QuotePreviewInvoices.d.ts' />
242
+ ///<reference path='./QuotePreviewSubscriptionSchedules.d.ts' />
212
243
  ///<reference path='./Quotes.d.ts' />
213
244
  ///<reference path='./Radar/EarlyFraudWarnings.d.ts' />
214
245
  ///<reference path='./Radar/ValueListItems.d.ts' />
@@ -228,8 +259,10 @@
228
259
  ///<reference path='./SubscriptionItems.d.ts' />
229
260
  ///<reference path='./SubscriptionSchedules.d.ts' />
230
261
  ///<reference path='./Subscriptions.d.ts' />
262
+ ///<reference path='./Tax/Associations.d.ts' />
231
263
  ///<reference path='./Tax/CalculationLineItems.d.ts' />
232
264
  ///<reference path='./Tax/Calculations.d.ts' />
265
+ ///<reference path='./Tax/Forms.d.ts' />
233
266
  ///<reference path='./Tax/Registrations.d.ts' />
234
267
  ///<reference path='./Tax/Settings.d.ts' />
235
268
  ///<reference path='./Tax/TransactionLineItems.d.ts' />
@@ -241,6 +274,7 @@
241
274
  ///<reference path='./Terminal/Configurations.d.ts' />
242
275
  ///<reference path='./Terminal/ConnectionTokens.d.ts' />
243
276
  ///<reference path='./Terminal/Locations.d.ts' />
277
+ ///<reference path='./Terminal/ReaderCollectedData.d.ts' />
244
278
  ///<reference path='./Terminal/Readers.d.ts' />
245
279
  ///<reference path='./TestHelpers/TestClocks.d.ts' />
246
280
  ///<reference path='./Tokens.d.ts' />
@@ -282,6 +316,7 @@ declare module 'stripe' {
282
316
 
283
317
  // Fields: The beginning of the section generated from our OpenAPI spec
284
318
  accountLinks: Stripe.AccountLinksResource;
319
+ accountNotices: Stripe.AccountNoticesResource;
285
320
  accountSessions: Stripe.AccountSessionsResource;
286
321
  accounts: Stripe.AccountsResource;
287
322
  applePayDomains: Stripe.ApplePayDomainsResource;
@@ -304,6 +339,8 @@ declare module 'stripe' {
304
339
  invoiceItems: Stripe.InvoiceItemsResource;
305
340
  invoices: Stripe.InvoicesResource;
306
341
  mandates: Stripe.MandatesResource;
342
+ margins: Stripe.MarginsResource;
343
+ orders: Stripe.OrdersResource;
307
344
  paymentIntents: Stripe.PaymentIntentsResource;
308
345
  paymentLinks: Stripe.PaymentLinksResource;
309
346
  paymentMethodConfigurations: Stripe.PaymentMethodConfigurationsResource;
@@ -314,6 +351,7 @@ declare module 'stripe' {
314
351
  prices: Stripe.PricesResource;
315
352
  products: Stripe.ProductsResource;
316
353
  promotionCodes: Stripe.PromotionCodesResource;
354
+ quotePhases: Stripe.QuotePhasesResource;
317
355
  quotes: Stripe.QuotesResource;
318
356
  refunds: Stripe.RefundsResource;
319
357
  reviews: Stripe.ReviewsResource;
@@ -344,6 +382,11 @@ declare module 'stripe' {
344
382
  configurations: Stripe.BillingPortal.ConfigurationsResource;
345
383
  sessions: Stripe.BillingPortal.SessionsResource;
346
384
  };
385
+ capital: {
386
+ financingOffers: Stripe.Capital.FinancingOffersResource;
387
+ financingSummary: Stripe.Capital.FinancingSummaryResource;
388
+ financingTransactions: Stripe.Capital.FinancingTransactionsResource;
389
+ };
347
390
  checkout: {
348
391
  sessions: Stripe.Checkout.SessionsResource;
349
392
  };
@@ -358,12 +401,17 @@ declare module 'stripe' {
358
401
  };
359
402
  financialConnections: {
360
403
  accounts: Stripe.FinancialConnections.AccountsResource;
404
+ institutions: Stripe.FinancialConnections.InstitutionsResource;
361
405
  sessions: Stripe.FinancialConnections.SessionsResource;
362
406
  transactions: Stripe.FinancialConnections.TransactionsResource;
363
407
  };
364
408
  forwarding: {
365
409
  requests: Stripe.Forwarding.RequestsResource;
366
410
  };
411
+ giftCards: {
412
+ cards: Stripe.GiftCards.CardsResource;
413
+ transactions: Stripe.GiftCards.TransactionsResource;
414
+ };
367
415
  identity: {
368
416
  verificationReports: Stripe.Identity.VerificationReportsResource;
369
417
  verificationSessions: Stripe.Identity.VerificationSessionsResource;
@@ -372,6 +420,7 @@ declare module 'stripe' {
372
420
  authorizations: Stripe.Issuing.AuthorizationsResource;
373
421
  cards: Stripe.Issuing.CardsResource;
374
422
  cardholders: Stripe.Issuing.CardholdersResource;
423
+ creditUnderwritingRecords: Stripe.Issuing.CreditUnderwritingRecordsResource;
375
424
  disputes: Stripe.Issuing.DisputesResource;
376
425
  personalizationDesigns: Stripe.Issuing.PersonalizationDesignsResource;
377
426
  physicalBundles: Stripe.Issuing.PhysicalBundlesResource;
@@ -391,7 +440,9 @@ declare module 'stripe' {
391
440
  scheduledQueryRuns: Stripe.Sigma.ScheduledQueryRunsResource;
392
441
  };
393
442
  tax: {
443
+ associations: Stripe.Tax.AssociationsResource;
394
444
  calculations: Stripe.Tax.CalculationsResource;
445
+ forms: Stripe.Tax.FormsResource;
395
446
  registrations: Stripe.Tax.RegistrationsResource;
396
447
  settings: Stripe.Tax.SettingsResource;
397
448
  transactions: Stripe.Tax.TransactionsResource;
@@ -401,6 +452,7 @@ declare module 'stripe' {
401
452
  connectionTokens: Stripe.Terminal.ConnectionTokensResource;
402
453
  locations: Stripe.Terminal.LocationsResource;
403
454
  readers: Stripe.Terminal.ReadersResource;
455
+ readerCollectedData: Stripe.Terminal.ReaderCollectedDataResource;
404
456
  };
405
457
  testHelpers: {
406
458
  confirmationTokens: Stripe.TestHelpers.ConfirmationTokensResource;
@@ -456,6 +508,25 @@ declare module 'stripe' {
456
508
  event: 'response',
457
509
  handler: (event: Stripe.ResponseEvent) => void
458
510
  ): void;
511
+
512
+ /**
513
+ * Allows for sending "raw" requests to the Stripe API, which can be used for
514
+ * testing new API endpoints or performing requests that the library does
515
+ * not support yet.
516
+ *
517
+ * This is an experimental interface and is not yet stable.
518
+ *
519
+ * @param method - HTTP request method, 'GET', 'POST', or 'DELETE'
520
+ * @param path - The path of the request, e.g. '/v1/beta_endpoint'
521
+ * @param params - The parameters to include in the request body.
522
+ * @param options - Additional request options.
523
+ */
524
+ rawRequest(
525
+ method: string,
526
+ path: string,
527
+ params?: {[key: string]: unknown},
528
+ options?: Stripe.RawRequestOptions
529
+ ): Promise<Stripe.Response<unknown>>;
459
530
  }
460
531
 
461
532
  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};