stripe 18.5.0-beta.2 → 18.6.0-alpha.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 (200) hide show
  1. package/CHANGELOG.md +108 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +5 -3
  4. package/VERSION +1 -1
  5. package/cjs/Error.js +63 -55
  6. package/cjs/RequestSender.js +7 -4
  7. package/cjs/apiVersion.js +1 -1
  8. package/cjs/resources/Mandates.js +5 -0
  9. package/cjs/resources/Subscriptions.js +4 -0
  10. package/cjs/resources/V2/Billing/BillSettings/Versions.js +17 -0
  11. package/cjs/resources/V2/Billing/BillSettings.js +27 -0
  12. package/cjs/resources/V2/Billing/Cadences.js +23 -0
  13. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +17 -0
  14. package/cjs/resources/V2/Billing/CollectionSettings.js +30 -0
  15. package/cjs/resources/V2/Billing/CustomPricingUnits.js +25 -0
  16. package/cjs/resources/V2/Billing/Intents/Actions.js +17 -0
  17. package/cjs/resources/V2/Billing/Intents.js +36 -0
  18. package/cjs/resources/V2/Billing/LicenseFeeSubscriptions.js +12 -0
  19. package/cjs/resources/V2/Billing/LicenseFees/Versions.js +17 -0
  20. package/cjs/resources/V2/Billing/LicenseFees.js +27 -0
  21. package/cjs/resources/V2/Billing/LicensedItems.js +25 -0
  22. package/cjs/resources/V2/Billing/MeteredItems.js +22 -0
  23. package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +17 -0
  24. package/cjs/resources/V2/Billing/PricingPlans/Components.js +29 -0
  25. package/cjs/resources/V2/Billing/PricingPlans/Versions.js +17 -0
  26. package/cjs/resources/V2/Billing/PricingPlans.js +29 -0
  27. package/cjs/resources/V2/Billing/Profiles.js +19 -0
  28. package/cjs/resources/V2/Billing/RateCardSubscriptions.js +29 -0
  29. package/cjs/resources/V2/Billing/RateCards/Rates.js +25 -0
  30. package/cjs/resources/V2/Billing/RateCards/Versions.js +17 -0
  31. package/cjs/resources/V2/Billing/RateCards.js +29 -0
  32. package/cjs/resources/V2/Billing/ServiceActions.js +16 -0
  33. package/cjs/resources/V2/Core/ClaimableSandboxes.js +12 -0
  34. package/cjs/resources/V2/Reporting/ReportRuns.js +13 -0
  35. package/cjs/resources/V2/Reporting/Reports.js +12 -0
  36. package/cjs/resources/V2/Tax/AutomaticRules.js +22 -0
  37. package/cjs/resources.js +64 -24
  38. package/cjs/stripe.core.js +27 -1
  39. package/esm/Error.js +50 -43
  40. package/esm/RequestSender.js +7 -4
  41. package/esm/apiVersion.js +1 -1
  42. package/esm/resources/Mandates.js +5 -0
  43. package/esm/resources/Subscriptions.js +4 -0
  44. package/esm/resources/V2/Billing/BillSettings/Versions.js +14 -0
  45. package/esm/resources/V2/Billing/BillSettings.js +24 -0
  46. package/esm/resources/V2/Billing/Cadences.js +20 -0
  47. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +14 -0
  48. package/esm/resources/V2/Billing/CollectionSettings.js +27 -0
  49. package/esm/resources/V2/Billing/CustomPricingUnits.js +22 -0
  50. package/esm/resources/V2/Billing/Intents/Actions.js +14 -0
  51. package/esm/resources/V2/Billing/Intents.js +33 -0
  52. package/esm/resources/V2/Billing/LicenseFeeSubscriptions.js +9 -0
  53. package/esm/resources/V2/Billing/LicenseFees/Versions.js +14 -0
  54. package/esm/resources/V2/Billing/LicenseFees.js +24 -0
  55. package/esm/resources/V2/Billing/LicensedItems.js +22 -0
  56. package/esm/resources/V2/Billing/MeteredItems.js +19 -0
  57. package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +14 -0
  58. package/esm/resources/V2/Billing/PricingPlans/Components.js +26 -0
  59. package/esm/resources/V2/Billing/PricingPlans/Versions.js +14 -0
  60. package/esm/resources/V2/Billing/PricingPlans.js +26 -0
  61. package/esm/resources/V2/Billing/Profiles.js +16 -0
  62. package/esm/resources/V2/Billing/RateCardSubscriptions.js +26 -0
  63. package/esm/resources/V2/Billing/RateCards/Rates.js +22 -0
  64. package/esm/resources/V2/Billing/RateCards/Versions.js +14 -0
  65. package/esm/resources/V2/Billing/RateCards.js +26 -0
  66. package/esm/resources/V2/Billing/ServiceActions.js +13 -0
  67. package/esm/resources/V2/Core/ClaimableSandboxes.js +9 -0
  68. package/esm/resources/V2/Reporting/ReportRuns.js +10 -0
  69. package/esm/resources/V2/Reporting/Reports.js +9 -0
  70. package/esm/resources/V2/Tax/AutomaticRules.js +19 -0
  71. package/esm/resources.js +45 -5
  72. package/esm/stripe.core.js +27 -1
  73. package/package.json +1 -1
  74. package/types/AccountSessions.d.ts +45 -0
  75. package/types/AccountSessionsResource.d.ts +76 -13
  76. package/types/Accounts.d.ts +2 -2
  77. package/types/Balance.d.ts +2 -7
  78. package/types/BalanceSettings.d.ts +52 -46
  79. package/types/BalanceSettingsResource.d.ts +55 -46
  80. package/types/Billing/AlertTriggereds.d.ts +16 -1
  81. package/types/Billing/Alerts.d.ts +116 -1
  82. package/types/Billing/AlertsResource.d.ts +93 -2
  83. package/types/Billing/CreditBalanceSummary.d.ts +118 -2
  84. package/types/Billing/CreditBalanceSummaryResource.d.ts +12 -0
  85. package/types/Billing/CreditBalanceTransactions.d.ts +118 -2
  86. package/types/Billing/CreditGrants.d.ts +71 -1
  87. package/types/Billing/CreditGrantsResource.d.ts +32 -1
  88. package/types/Billing/MeterUsageRows.d.ts +1 -1
  89. package/types/Billing/Meters.d.ts +1 -1
  90. package/types/Billing/MetersResource.d.ts +1 -1
  91. package/types/BillingPortal/Configurations.d.ts +5 -0
  92. package/types/BillingPortal/ConfigurationsResource.d.ts +10 -0
  93. package/types/Charges.d.ts +71 -5
  94. package/types/Checkout/Sessions.d.ts +128 -2
  95. package/types/Checkout/SessionsResource.d.ts +167 -3
  96. package/types/CreditNotesResource.d.ts +3 -3
  97. package/types/Disputes.d.ts +7 -2
  98. package/types/Errors.d.ts +51 -45
  99. package/types/FileLinksResource.d.ts +1 -1
  100. package/types/Files.d.ts +1 -0
  101. package/types/FilesResource.d.ts +3 -1
  102. package/types/InvoiceItems.d.ts +104 -2
  103. package/types/InvoiceLineItems.d.ts +113 -2
  104. package/types/InvoicePaymentsResource.d.ts +3 -0
  105. package/types/Invoices.d.ts +19 -2
  106. package/types/InvoicesResource.d.ts +64 -0
  107. package/types/Mandates.d.ts +58 -1
  108. package/types/MandatesResource.d.ts +31 -0
  109. package/types/PaymentAttemptRecords.d.ts +154 -9
  110. package/types/PaymentAttemptRecordsResource.d.ts +5 -0
  111. package/types/PaymentIntents.d.ts +136 -2
  112. package/types/PaymentIntentsResource.d.ts +280 -3
  113. package/types/PaymentLinksResource.d.ts +1 -1
  114. package/types/PaymentMethods.d.ts +5 -0
  115. package/types/PaymentRecords.d.ts +154 -9
  116. package/types/PaymentRecordsResource.d.ts +24 -3
  117. package/types/Payouts.d.ts +1 -1
  118. package/types/PromotionCodes.d.ts +5 -2
  119. package/types/QuotePreviewInvoices.d.ts +19 -2
  120. package/types/QuotePreviewSubscriptionSchedules.d.ts +47 -0
  121. package/types/SetupAttempts.d.ts +7 -1
  122. package/types/SetupIntents.d.ts +95 -1
  123. package/types/SetupIntentsResource.d.ts +207 -0
  124. package/types/SubscriptionSchedules.d.ts +47 -0
  125. package/types/SubscriptionSchedulesResource.d.ts +112 -0
  126. package/types/Subscriptions.d.ts +5 -0
  127. package/types/SubscriptionsResource.d.ts +145 -7
  128. package/types/Terminal/Configurations.d.ts +28 -0
  129. package/types/Terminal/ConfigurationsResource.d.ts +72 -0
  130. package/types/TestHelpers/Terminal/ReadersResource.d.ts +28 -1
  131. package/types/V2/Billing/BillSettingVersions.d.ts +97 -0
  132. package/types/V2/Billing/BillSettings/VersionsResource.d.ts +58 -0
  133. package/types/V2/Billing/BillSettings.d.ts +120 -0
  134. package/types/V2/Billing/BillSettingsResource.d.ts +241 -0
  135. package/types/V2/Billing/Cadences.d.ts +354 -0
  136. package/types/V2/Billing/CadencesResource.d.ts +489 -0
  137. package/types/V2/Billing/CollectionSettingVersions.d.ts +314 -0
  138. package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +62 -0
  139. package/types/V2/Billing/CollectionSettings.d.ts +337 -0
  140. package/types/V2/Billing/CollectionSettingsResource.d.ts +675 -0
  141. package/types/V2/Billing/CustomPricingUnits.d.ts +56 -0
  142. package/types/V2/Billing/CustomPricingUnitsResource.d.ts +122 -0
  143. package/types/V2/Billing/IntentActions.d.ts +458 -0
  144. package/types/V2/Billing/Intents/ActionsResource.d.ts +58 -0
  145. package/types/V2/Billing/Intents.d.ts +117 -0
  146. package/types/V2/Billing/IntentsResource.d.ts +574 -0
  147. package/types/V2/Billing/LicenseFeeSubscriptions.d.ts +64 -0
  148. package/types/V2/Billing/LicenseFeeSubscriptionsResource.d.ts +28 -0
  149. package/types/V2/Billing/LicenseFeeVersions.d.ts +106 -0
  150. package/types/V2/Billing/LicenseFees/VersionsResource.d.ts +58 -0
  151. package/types/V2/Billing/LicenseFees.d.ts +163 -0
  152. package/types/V2/Billing/LicenseFeesResource.d.ts +290 -0
  153. package/types/V2/Billing/LicensedItems.d.ts +73 -0
  154. package/types/V2/Billing/LicensedItemsResource.d.ts +157 -0
  155. package/types/V2/Billing/MeteredItems.d.ts +101 -0
  156. package/types/V2/Billing/MeteredItemsResource.d.ts +189 -0
  157. package/types/V2/Billing/PricingPlanComponents.d.ts +109 -0
  158. package/types/V2/Billing/PricingPlanSubscriptions.d.ts +134 -0
  159. package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +93 -0
  160. package/types/V2/Billing/PricingPlanVersions.d.ts +49 -0
  161. package/types/V2/Billing/PricingPlans/ComponentsResource.d.ts +197 -0
  162. package/types/V2/Billing/PricingPlans/VersionsResource.d.ts +58 -0
  163. package/types/V2/Billing/PricingPlans.d.ts +84 -0
  164. package/types/V2/Billing/PricingPlansResource.d.ts +151 -0
  165. package/types/V2/Billing/Profiles.d.ts +70 -0
  166. package/types/V2/Billing/ProfilesResource.d.ts +150 -0
  167. package/types/V2/Billing/RateCardRates.d.ts +138 -0
  168. package/types/V2/Billing/RateCardSubscriptions.d.ts +134 -0
  169. package/types/V2/Billing/RateCardSubscriptionsResource.d.ts +157 -0
  170. package/types/V2/Billing/RateCardVersions.d.ts +39 -0
  171. package/types/V2/Billing/RateCards/RatesResource.d.ts +209 -0
  172. package/types/V2/Billing/RateCards/VersionsResource.d.ts +58 -0
  173. package/types/V2/Billing/RateCards.d.ts +98 -0
  174. package/types/V2/Billing/RateCardsResource.d.ts +162 -0
  175. package/types/V2/Billing/ServiceActions.d.ts +240 -0
  176. package/types/V2/Billing/ServiceActionsResource.d.ts +302 -0
  177. package/types/V2/Core/Accounts/PersonsResource.d.ts +32 -0
  178. package/types/V2/Core/Accounts.d.ts +49 -0
  179. package/types/V2/Core/AccountsResource.d.ts +78 -0
  180. package/types/V2/Core/ClaimableSandboxes.d.ts +349 -0
  181. package/types/V2/Core/ClaimableSandboxesResource.d.ts +310 -0
  182. package/types/V2/Core/Persons.d.ts +16 -0
  183. package/types/V2/EventTypes.d.ts +3682 -632
  184. package/types/V2/Events.d.ts +7 -0
  185. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +7 -2
  186. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +5 -0
  187. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +1 -1
  188. package/types/V2/MoneyManagement/TransactionEntries.d.ts +7 -0
  189. package/types/V2/MoneyManagement/Transactions.d.ts +7 -0
  190. package/types/V2/Reporting/ReportRuns.d.ts +178 -0
  191. package/types/V2/Reporting/ReportRunsResource.d.ts +99 -0
  192. package/types/V2/Reporting/Reports.d.ts +120 -0
  193. package/types/V2/Reporting/ReportsResource.d.ts +30 -0
  194. package/types/V2/Tax/AutomaticRules.d.ts +53 -0
  195. package/types/V2/Tax/AutomaticRulesResource.d.ts +102 -0
  196. package/types/WebhookEndpointsResource.d.ts +2 -1
  197. package/types/Webhooks.d.ts +2 -0
  198. package/types/index.d.ts +125 -5
  199. package/types/lib.d.ts +1 -1
  200. package/types/test/typescriptTest.ts +3 -3
@@ -0,0 +1,310 @@
1
+ // File generated from our OpenAPI spec
2
+
3
+ declare module 'stripe' {
4
+ namespace Stripe {
5
+ namespace V2 {
6
+ namespace Core {
7
+ interface ClaimableSandboxCreateParams {
8
+ /**
9
+ * If true, returns a key that can be used with [Stripe's MCP server](https://docs.stripe.com/mcp).
10
+ */
11
+ enable_mcp_access: boolean;
12
+
13
+ /**
14
+ * Values that are prefilled when a user claims the sandbox.
15
+ */
16
+ prefill: ClaimableSandboxCreateParams.Prefill;
17
+ }
18
+
19
+ namespace ClaimableSandboxCreateParams {
20
+ interface Prefill {
21
+ /**
22
+ * Country in which the account holder resides, or in which the business is legally established.
23
+ * Use two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
24
+ */
25
+ country: Prefill.Country;
26
+
27
+ /**
28
+ * Email that this sandbox is meant to be claimed by. Stripe will
29
+ * notify this email address before the sandbox expires.
30
+ */
31
+ email: string;
32
+
33
+ /**
34
+ * Name for the sandbox. If not provided, this will be generated.
35
+ */
36
+ name?: string;
37
+ }
38
+
39
+ namespace Prefill {
40
+ type Country =
41
+ | 'ad'
42
+ | 'ae'
43
+ | 'af'
44
+ | 'ag'
45
+ | 'ai'
46
+ | 'al'
47
+ | 'am'
48
+ | 'ao'
49
+ | 'aq'
50
+ | 'ar'
51
+ | 'as'
52
+ | 'at'
53
+ | 'au'
54
+ | 'aw'
55
+ | 'ax'
56
+ | 'az'
57
+ | 'ba'
58
+ | 'bb'
59
+ | 'bd'
60
+ | 'be'
61
+ | 'bf'
62
+ | 'bg'
63
+ | 'bh'
64
+ | 'bi'
65
+ | 'bj'
66
+ | 'bl'
67
+ | 'bm'
68
+ | 'bn'
69
+ | 'bo'
70
+ | 'bq'
71
+ | 'br'
72
+ | 'bs'
73
+ | 'bt'
74
+ | 'bv'
75
+ | 'bw'
76
+ | 'by'
77
+ | 'bz'
78
+ | 'ca'
79
+ | 'cc'
80
+ | 'cd'
81
+ | 'cf'
82
+ | 'cg'
83
+ | 'ch'
84
+ | 'ci'
85
+ | 'ck'
86
+ | 'cl'
87
+ | 'cm'
88
+ | 'cn'
89
+ | 'co'
90
+ | 'cr'
91
+ | 'cu'
92
+ | 'cv'
93
+ | 'cw'
94
+ | 'cx'
95
+ | 'cy'
96
+ | 'cz'
97
+ | 'de'
98
+ | 'dj'
99
+ | 'dk'
100
+ | 'dm'
101
+ | 'do'
102
+ | 'dz'
103
+ | 'ec'
104
+ | 'ee'
105
+ | 'eg'
106
+ | 'eh'
107
+ | 'er'
108
+ | 'es'
109
+ | 'et'
110
+ | 'fi'
111
+ | 'fj'
112
+ | 'fk'
113
+ | 'fm'
114
+ | 'fo'
115
+ | 'fr'
116
+ | 'ga'
117
+ | 'gb'
118
+ | 'gd'
119
+ | 'ge'
120
+ | 'gf'
121
+ | 'gg'
122
+ | 'gh'
123
+ | 'gi'
124
+ | 'gl'
125
+ | 'gm'
126
+ | 'gn'
127
+ | 'gp'
128
+ | 'gq'
129
+ | 'gr'
130
+ | 'gs'
131
+ | 'gt'
132
+ | 'gu'
133
+ | 'gw'
134
+ | 'gy'
135
+ | 'hk'
136
+ | 'hm'
137
+ | 'hn'
138
+ | 'hr'
139
+ | 'ht'
140
+ | 'hu'
141
+ | 'id'
142
+ | 'ie'
143
+ | 'il'
144
+ | 'im'
145
+ | 'in'
146
+ | 'io'
147
+ | 'iq'
148
+ | 'ir'
149
+ | 'is'
150
+ | 'it'
151
+ | 'je'
152
+ | 'jm'
153
+ | 'jo'
154
+ | 'jp'
155
+ | 'ke'
156
+ | 'kg'
157
+ | 'kh'
158
+ | 'ki'
159
+ | 'km'
160
+ | 'kn'
161
+ | 'kp'
162
+ | 'kr'
163
+ | 'kw'
164
+ | 'ky'
165
+ | 'kz'
166
+ | 'la'
167
+ | 'lb'
168
+ | 'lc'
169
+ | 'li'
170
+ | 'lk'
171
+ | 'lr'
172
+ | 'ls'
173
+ | 'lt'
174
+ | 'lu'
175
+ | 'lv'
176
+ | 'ly'
177
+ | 'ma'
178
+ | 'mc'
179
+ | 'md'
180
+ | 'me'
181
+ | 'mf'
182
+ | 'mg'
183
+ | 'mh'
184
+ | 'mk'
185
+ | 'ml'
186
+ | 'mm'
187
+ | 'mn'
188
+ | 'mo'
189
+ | 'mp'
190
+ | 'mq'
191
+ | 'mr'
192
+ | 'ms'
193
+ | 'mt'
194
+ | 'mu'
195
+ | 'mv'
196
+ | 'mw'
197
+ | 'mx'
198
+ | 'my'
199
+ | 'mz'
200
+ | 'na'
201
+ | 'nc'
202
+ | 'ne'
203
+ | 'nf'
204
+ | 'ng'
205
+ | 'ni'
206
+ | 'nl'
207
+ | 'no'
208
+ | 'np'
209
+ | 'nr'
210
+ | 'nu'
211
+ | 'nz'
212
+ | 'om'
213
+ | 'pa'
214
+ | 'pe'
215
+ | 'pf'
216
+ | 'pg'
217
+ | 'ph'
218
+ | 'pk'
219
+ | 'pl'
220
+ | 'pm'
221
+ | 'pn'
222
+ | 'pr'
223
+ | 'ps'
224
+ | 'pt'
225
+ | 'pw'
226
+ | 'py'
227
+ | 'qa'
228
+ | 'qz'
229
+ | 're'
230
+ | 'ro'
231
+ | 'rs'
232
+ | 'ru'
233
+ | 'rw'
234
+ | 'sa'
235
+ | 'sb'
236
+ | 'sc'
237
+ | 'sd'
238
+ | 'se'
239
+ | 'sg'
240
+ | 'sh'
241
+ | 'si'
242
+ | 'sj'
243
+ | 'sk'
244
+ | 'sl'
245
+ | 'sm'
246
+ | 'sn'
247
+ | 'so'
248
+ | 'sr'
249
+ | 'ss'
250
+ | 'st'
251
+ | 'sv'
252
+ | 'sx'
253
+ | 'sy'
254
+ | 'sz'
255
+ | 'tc'
256
+ | 'td'
257
+ | 'tf'
258
+ | 'tg'
259
+ | 'th'
260
+ | 'tj'
261
+ | 'tk'
262
+ | 'tl'
263
+ | 'tm'
264
+ | 'tn'
265
+ | 'to'
266
+ | 'tr'
267
+ | 'tt'
268
+ | 'tv'
269
+ | 'tw'
270
+ | 'tz'
271
+ | 'ua'
272
+ | 'ug'
273
+ | 'um'
274
+ | 'us'
275
+ | 'uy'
276
+ | 'uz'
277
+ | 'va'
278
+ | 'vc'
279
+ | 've'
280
+ | 'vg'
281
+ | 'vi'
282
+ | 'vn'
283
+ | 'vu'
284
+ | 'wf'
285
+ | 'ws'
286
+ | 'xx'
287
+ | 'ye'
288
+ | 'yt'
289
+ | 'za'
290
+ | 'zm'
291
+ | 'zw';
292
+ }
293
+ }
294
+ }
295
+
296
+ namespace Core {
297
+ class ClaimableSandboxesResource {
298
+ /**
299
+ * Create an anonymous, claimable sandbox. This sandbox can be prefilled with data. The response will include
300
+ * a claim URL that allow a user to claim the account.
301
+ */
302
+ create(
303
+ params: ClaimableSandboxCreateParams,
304
+ options?: RequestOptions
305
+ ): Promise<Stripe.Response<Stripe.V2.Core.ClaimableSandbox>>;
306
+ }
307
+ }
308
+ }
309
+ }
310
+ }
@@ -915,12 +915,28 @@ declare module 'stripe' {
915
915
  namespace IdNumber {
916
916
  type Type =
917
917
  | 'ae_eid'
918
+ | 'ao_nif'
919
+ | 'az_tin'
920
+ | 'bd_brc'
921
+ | 'bd_etin'
922
+ | 'bd_nid'
918
923
  | 'br_cpf'
924
+ | 'cr_cpf'
925
+ | 'cr_dimex'
926
+ | 'cr_nite'
919
927
  | 'de_stn'
928
+ | 'do_rcn'
929
+ | 'gt_nit'
920
930
  | 'hk_id'
931
+ | 'kz_iin'
921
932
  | 'mx_rfc'
922
933
  | 'my_nric'
934
+ | 'mz_nuit'
923
935
  | 'nl_bsn'
936
+ | 'pe_dni'
937
+ | 'pk_cnic'
938
+ | 'pk_snic'
939
+ | 'sa_tin'
924
940
  | 'sg_fin'
925
941
  | 'sg_nric'
926
942
  | 'th_lc'