stripe 17.5.0-beta.3 → 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 (175) hide show
  1. package/CHANGELOG.md +131 -1005
  2. package/README.md +33 -1
  3. package/VERSION +1 -1
  4. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  5. package/cjs/resources/Invoices.js +0 -17
  6. package/cjs/resources/PaymentIntents.js +0 -8
  7. package/cjs/resources/Quotes.js +0 -32
  8. package/cjs/resources/SubscriptionSchedules.js +0 -4
  9. package/cjs/resources/Terminal/Readers.js +0 -12
  10. package/cjs/resources.js +10 -48
  11. package/cjs/stripe.core.js +1 -1
  12. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  13. package/esm/resources/Invoices.js +0 -17
  14. package/esm/resources/PaymentIntents.js +0 -8
  15. package/esm/resources/Quotes.js +0 -32
  16. package/esm/resources/SubscriptionSchedules.js +0 -4
  17. package/esm/resources/Terminal/Readers.js +0 -12
  18. package/esm/resources.js +0 -33
  19. package/esm/stripe.core.js +1 -1
  20. package/package.json +1 -1
  21. package/types/AccountLinksResource.d.ts +1 -5
  22. package/types/AccountSessions.d.ts +0 -45
  23. package/types/AccountSessionsResource.d.ts +0 -355
  24. package/types/Accounts.d.ts +1 -190
  25. package/types/AccountsResource.d.ts +0 -520
  26. package/types/Charges.d.ts +0 -138
  27. package/types/ChargesResource.d.ts +0 -1294
  28. package/types/Checkout/Sessions.d.ts +6 -340
  29. package/types/Checkout/SessionsResource.d.ts +5 -445
  30. package/types/ConfirmationTokens.d.ts +0 -99
  31. package/types/Coupons.d.ts +1 -1
  32. package/types/CouponsResource.d.ts +1 -1
  33. package/types/CreditNotes.d.ts +0 -21
  34. package/types/CreditNotesResource.d.ts +0 -51
  35. package/types/CustomersResource.d.ts +4 -9
  36. package/types/Disputes.d.ts +2 -2
  37. package/types/DisputesResource.d.ts +2 -2
  38. package/types/EventTypes.d.ts +0 -596
  39. package/types/Events.d.ts +0 -93
  40. package/types/FinancialConnections/Accounts.d.ts +1 -29
  41. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  42. package/types/FinancialConnections/Sessions.d.ts +1 -49
  43. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  44. package/types/InvoiceItems.d.ts +0 -5
  45. package/types/InvoiceItemsResource.d.ts +0 -98
  46. package/types/InvoiceLineItems.d.ts +1 -28
  47. package/types/Invoices.d.ts +4 -138
  48. package/types/InvoicesResource.d.ts +1886 -5568
  49. package/types/Issuing/Authorizations.d.ts +0 -1
  50. package/types/Issuing/CardholdersResource.d.ts +1 -2
  51. package/types/Issuing/Transactions.d.ts +0 -2
  52. package/types/Issuing/TransactionsResource.d.ts +0 -5
  53. package/types/LineItems.d.ts +0 -32
  54. package/types/Mandates.d.ts +0 -77
  55. package/types/PaymentIntents.d.ts +1 -644
  56. package/types/PaymentIntentsResource.d.ts +3768 -8055
  57. package/types/PaymentLinks.d.ts +0 -6
  58. package/types/PaymentLinksResource.d.ts +0 -12
  59. package/types/PaymentMethodConfigurations.d.ts +0 -180
  60. package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
  61. package/types/PaymentMethods.d.ts +0 -99
  62. package/types/PaymentMethodsResource.d.ts +0 -133
  63. package/types/Prices.d.ts +0 -22
  64. package/types/PricesResource.d.ts +0 -22
  65. package/types/Products.d.ts +0 -39
  66. package/types/ProductsResource.d.ts +0 -36
  67. package/types/Quotes.d.ts +1 -591
  68. package/types/QuotesResource.d.ts +199 -2531
  69. package/types/Refunds.d.ts +0 -14
  70. package/types/SetupAttempts.d.ts +0 -38
  71. package/types/SetupIntents.d.ts +1 -111
  72. package/types/SetupIntentsResource.d.ts +3 -645
  73. package/types/Sources.d.ts +0 -23
  74. package/types/SubscriptionItems.d.ts +0 -21
  75. package/types/SubscriptionItemsResource.d.ts +0 -109
  76. package/types/SubscriptionSchedules.d.ts +0 -200
  77. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  78. package/types/Subscriptions.d.ts +1 -91
  79. package/types/SubscriptionsResource.d.ts +2 -369
  80. package/types/Tax/Calculations.d.ts +2 -1
  81. package/types/Tax/CalculationsResource.d.ts +2 -1
  82. package/types/Tax/Registrations.d.ts +189 -0
  83. package/types/Tax/RegistrationsResource.d.ts +252 -0
  84. package/types/Tax/Transactions.d.ts +2 -1
  85. package/types/TaxIds.d.ts +2 -1
  86. package/types/TaxIdsResource.d.ts +2 -1
  87. package/types/Terminal/Readers.d.ts +0 -310
  88. package/types/Terminal/ReadersResource.d.ts +0 -215
  89. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -104
  90. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  91. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  92. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  93. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  94. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  95. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  96. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  97. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  98. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  99. package/types/WebhookEndpointsResource.d.ts +0 -70
  100. package/types/index.d.ts +0 -62
  101. package/cjs/resources/AccountNotices.js +0 -21
  102. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  103. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  104. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  105. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  106. package/cjs/resources/GiftCards/Cards.js +0 -23
  107. package/cjs/resources/GiftCards/Transactions.js +0 -33
  108. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  109. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  110. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  111. package/cjs/resources/Margins.js +0 -22
  112. package/cjs/resources/Orders.js +0 -24
  113. package/cjs/resources/PaymentAttemptRecords.js +0 -17
  114. package/cjs/resources/PaymentRecords.js +0 -29
  115. package/cjs/resources/Tax/Associations.js +0 -9
  116. package/cjs/resources/Tax/Forms.js +0 -20
  117. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  118. package/esm/resources/AccountNotices.js +0 -18
  119. package/esm/resources/Capital/FinancingOffers.js +0 -18
  120. package/esm/resources/Capital/FinancingSummary.js +0 -9
  121. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  122. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  123. package/esm/resources/GiftCards/Cards.js +0 -20
  124. package/esm/resources/GiftCards/Transactions.js +0 -30
  125. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  126. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  127. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  128. package/esm/resources/Margins.js +0 -19
  129. package/esm/resources/Orders.js +0 -21
  130. package/esm/resources/PaymentAttemptRecords.js +0 -14
  131. package/esm/resources/PaymentRecords.js +0 -26
  132. package/esm/resources/Tax/Associations.js +0 -6
  133. package/esm/resources/Tax/Forms.js +0 -17
  134. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  135. package/types/AccountNotices.d.ts +0 -113
  136. package/types/AccountNoticesResource.d.ts +0 -98
  137. package/types/Billing/MeterErrorReports.d.ts +0 -106
  138. package/types/Capital/FinancingOffers.d.ts +0 -188
  139. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  140. package/types/Capital/FinancingSummary.d.ts +0 -106
  141. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  142. package/types/Capital/FinancingTransactions.d.ts +0 -135
  143. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  144. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  145. package/types/FinancialConnections/Institutions.d.ts +0 -93
  146. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  147. package/types/GiftCards/Cards.d.ts +0 -118
  148. package/types/GiftCards/CardsResource.d.ts +0 -159
  149. package/types/GiftCards/Transactions.d.ts +0 -129
  150. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  151. package/types/InvoicePayments.d.ts +0 -113
  152. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  153. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  154. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  155. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  156. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  157. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  158. package/types/Issuing/Settlements.d.ts +0 -103
  159. package/types/Margins.d.ts +0 -56
  160. package/types/MarginsResource.d.ts +0 -114
  161. package/types/Orders.d.ts +0 -1178
  162. package/types/OrdersResource.d.ts +0 -2959
  163. package/types/PaymentAttemptRecords.d.ts +0 -242
  164. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  165. package/types/PaymentRecords.d.ts +0 -242
  166. package/types/PaymentRecordsResource.d.ts +0 -455
  167. package/types/QuoteLines.d.ts +0 -634
  168. package/types/QuotePreviewInvoices.d.ts +0 -1652
  169. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -824
  170. package/types/Tax/Associations.d.ts +0 -126
  171. package/types/Tax/AssociationsResource.d.ts +0 -29
  172. package/types/Tax/Forms.d.ts +0 -220
  173. package/types/Tax/FormsResource.d.ts +0 -107
  174. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  175. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
@@ -58,20 +58,34 @@ declare module 'stripe' {
58
58
  interface CountryOptions {
59
59
  ae?: CountryOptions.Ae;
60
60
 
61
+ al?: CountryOptions.Al;
62
+
63
+ am?: CountryOptions.Am;
64
+
65
+ ao?: CountryOptions.Ao;
66
+
61
67
  at?: CountryOptions.At;
62
68
 
63
69
  au?: CountryOptions.Au;
64
70
 
71
+ ba?: CountryOptions.Ba;
72
+
73
+ bb?: CountryOptions.Bb;
74
+
65
75
  be?: CountryOptions.Be;
66
76
 
67
77
  bg?: CountryOptions.Bg;
68
78
 
69
79
  bh?: CountryOptions.Bh;
70
80
 
81
+ bs?: CountryOptions.Bs;
82
+
71
83
  by?: CountryOptions.By;
72
84
 
73
85
  ca?: CountryOptions.Ca;
74
86
 
87
+ cd?: CountryOptions.Cd;
88
+
75
89
  ch?: CountryOptions.Ch;
76
90
 
77
91
  cl?: CountryOptions.Cl;
@@ -104,6 +118,8 @@ declare module 'stripe' {
104
118
 
105
119
  ge?: CountryOptions.Ge;
106
120
 
121
+ gn?: CountryOptions.Gn;
122
+
107
123
  gr?: CountryOptions.Gr;
108
124
 
109
125
  hr?: CountryOptions.Hr;
@@ -122,6 +138,8 @@ declare module 'stripe' {
122
138
 
123
139
  ke?: CountryOptions.Ke;
124
140
 
141
+ kh?: CountryOptions.Kh;
142
+
125
143
  kr?: CountryOptions.Kr;
126
144
 
127
145
  kz?: CountryOptions.Kz;
@@ -136,6 +154,12 @@ declare module 'stripe' {
136
154
 
137
155
  md?: CountryOptions.Md;
138
156
 
157
+ me?: CountryOptions.Me;
158
+
159
+ mk?: CountryOptions.Mk;
160
+
161
+ mr?: CountryOptions.Mr;
162
+
139
163
  mt?: CountryOptions.Mt;
140
164
 
141
165
  mx?: CountryOptions.Mx;
@@ -148,10 +172,14 @@ declare module 'stripe' {
148
172
 
149
173
  no?: CountryOptions.No;
150
174
 
175
+ np?: CountryOptions.Np;
176
+
151
177
  nz?: CountryOptions.Nz;
152
178
 
153
179
  om?: CountryOptions.Om;
154
180
 
181
+ pe?: CountryOptions.Pe;
182
+
155
183
  pl?: CountryOptions.Pl;
156
184
 
157
185
  pt?: CountryOptions.Pt;
@@ -172,19 +200,33 @@ declare module 'stripe' {
172
200
 
173
201
  sk?: CountryOptions.Sk;
174
202
 
203
+ sn?: CountryOptions.Sn;
204
+
205
+ sr?: CountryOptions.Sr;
206
+
175
207
  th?: CountryOptions.Th;
176
208
 
209
+ tj?: CountryOptions.Tj;
210
+
177
211
  tr?: CountryOptions.Tr;
178
212
 
179
213
  tz?: CountryOptions.Tz;
180
214
 
215
+ ug?: CountryOptions.Ug;
216
+
181
217
  us?: CountryOptions.Us;
182
218
 
219
+ uy?: CountryOptions.Uy;
220
+
183
221
  uz?: CountryOptions.Uz;
184
222
 
185
223
  vn?: CountryOptions.Vn;
186
224
 
187
225
  za?: CountryOptions.Za;
226
+
227
+ zm?: CountryOptions.Zm;
228
+
229
+ zw?: CountryOptions.Zw;
188
230
  }
189
231
 
190
232
  namespace CountryOptions {
@@ -195,6 +237,27 @@ declare module 'stripe' {
195
237
  type: 'standard';
196
238
  }
197
239
 
240
+ interface Al {
241
+ /**
242
+ * Type of registration in `country`.
243
+ */
244
+ type: 'standard';
245
+ }
246
+
247
+ interface Am {
248
+ /**
249
+ * Type of registration in `country`.
250
+ */
251
+ type: 'simplified';
252
+ }
253
+
254
+ interface Ao {
255
+ /**
256
+ * Type of registration in `country`.
257
+ */
258
+ type: 'standard';
259
+ }
260
+
198
261
  interface At {
199
262
  standard?: At.Standard;
200
263
 
@@ -226,6 +289,20 @@ declare module 'stripe' {
226
289
  type: 'standard';
227
290
  }
228
291
 
292
+ interface Ba {
293
+ /**
294
+ * Type of registration in `country`.
295
+ */
296
+ type: 'standard';
297
+ }
298
+
299
+ interface Bb {
300
+ /**
301
+ * Type of registration in `country`.
302
+ */
303
+ type: 'standard';
304
+ }
305
+
229
306
  interface Be {
230
307
  standard?: Be.Standard;
231
308
 
@@ -281,6 +358,13 @@ declare module 'stripe' {
281
358
  type: 'standard';
282
359
  }
283
360
 
361
+ interface Bs {
362
+ /**
363
+ * Type of registration in `country`.
364
+ */
365
+ type: 'standard';
366
+ }
367
+
284
368
  interface By {
285
369
  /**
286
370
  * Type of registration in `country`.
@@ -308,6 +392,13 @@ declare module 'stripe' {
308
392
  type Type = 'province_standard' | 'simplified' | 'standard';
309
393
  }
310
394
 
395
+ interface Cd {
396
+ /**
397
+ * Type of registration in `country`.
398
+ */
399
+ type: 'standard';
400
+ }
401
+
311
402
  interface Ch {
312
403
  /**
313
404
  * Type of registration in `country`.
@@ -556,6 +647,13 @@ declare module 'stripe' {
556
647
  type: 'simplified';
557
648
  }
558
649
 
650
+ interface Gn {
651
+ /**
652
+ * Type of registration in `country`.
653
+ */
654
+ type: 'standard';
655
+ }
656
+
559
657
  interface Gr {
560
658
  standard?: Gr.Standard;
561
659
 
@@ -704,6 +802,13 @@ declare module 'stripe' {
704
802
  type: 'simplified';
705
803
  }
706
804
 
805
+ interface Kh {
806
+ /**
807
+ * Type of registration in `country`.
808
+ */
809
+ type: 'simplified';
810
+ }
811
+
707
812
  interface Kr {
708
813
  /**
709
814
  * Type of registration in `country`.
@@ -804,6 +909,27 @@ declare module 'stripe' {
804
909
  type: 'simplified';
805
910
  }
806
911
 
912
+ interface Me {
913
+ /**
914
+ * Type of registration in `country`.
915
+ */
916
+ type: 'standard';
917
+ }
918
+
919
+ interface Mk {
920
+ /**
921
+ * Type of registration in `country`.
922
+ */
923
+ type: 'standard';
924
+ }
925
+
926
+ interface Mr {
927
+ /**
928
+ * Type of registration in `country`.
929
+ */
930
+ type: 'standard';
931
+ }
932
+
807
933
  interface Mt {
808
934
  standard?: Mt.Standard;
809
935
 
@@ -880,6 +1006,13 @@ declare module 'stripe' {
880
1006
  type: 'standard';
881
1007
  }
882
1008
 
1009
+ interface Np {
1010
+ /**
1011
+ * Type of registration in `country`.
1012
+ */
1013
+ type: 'simplified';
1014
+ }
1015
+
883
1016
  interface Nz {
884
1017
  /**
885
1018
  * Type of registration in `country`.
@@ -894,6 +1027,13 @@ declare module 'stripe' {
894
1027
  type: 'standard';
895
1028
  }
896
1029
 
1030
+ interface Pe {
1031
+ /**
1032
+ * Type of registration in `country`.
1033
+ */
1034
+ type: 'simplified';
1035
+ }
1036
+
897
1037
  interface Pl {
898
1038
  standard?: Pl.Standard;
899
1039
 
@@ -1066,6 +1206,20 @@ declare module 'stripe' {
1066
1206
  type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard';
1067
1207
  }
1068
1208
 
1209
+ interface Sn {
1210
+ /**
1211
+ * Type of registration in `country`.
1212
+ */
1213
+ type: 'simplified';
1214
+ }
1215
+
1216
+ interface Sr {
1217
+ /**
1218
+ * Type of registration in `country`.
1219
+ */
1220
+ type: 'standard';
1221
+ }
1222
+
1069
1223
  interface Th {
1070
1224
  /**
1071
1225
  * Type of registration in `country`.
@@ -1073,6 +1227,13 @@ declare module 'stripe' {
1073
1227
  type: 'simplified';
1074
1228
  }
1075
1229
 
1230
+ interface Tj {
1231
+ /**
1232
+ * Type of registration in `country`.
1233
+ */
1234
+ type: 'simplified';
1235
+ }
1236
+
1076
1237
  interface Tr {
1077
1238
  /**
1078
1239
  * Type of registration in `country`.
@@ -1087,6 +1248,13 @@ declare module 'stripe' {
1087
1248
  type: 'simplified';
1088
1249
  }
1089
1250
 
1251
+ interface Ug {
1252
+ /**
1253
+ * Type of registration in `country`.
1254
+ */
1255
+ type: 'simplified';
1256
+ }
1257
+
1090
1258
  interface Us {
1091
1259
  local_amusement_tax?: Us.LocalAmusementTax;
1092
1260
 
@@ -1156,6 +1324,13 @@ declare module 'stripe' {
1156
1324
  | 'state_sales_tax';
1157
1325
  }
1158
1326
 
1327
+ interface Uy {
1328
+ /**
1329
+ * Type of registration in `country`.
1330
+ */
1331
+ type: 'standard';
1332
+ }
1333
+
1159
1334
  interface Uz {
1160
1335
  /**
1161
1336
  * Type of registration in `country`.
@@ -1176,6 +1351,20 @@ declare module 'stripe' {
1176
1351
  */
1177
1352
  type: 'standard';
1178
1353
  }
1354
+
1355
+ interface Zm {
1356
+ /**
1357
+ * Type of registration in `country`.
1358
+ */
1359
+ type: 'simplified';
1360
+ }
1361
+
1362
+ interface Zw {
1363
+ /**
1364
+ * Type of registration in `country`.
1365
+ */
1366
+ type: 'standard';
1367
+ }
1179
1368
  }
1180
1369
 
1181
1370
  type Status = 'active' | 'expired' | 'scheduled';