stripe 15.12.0-beta.1 → 16.0.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 (167) hide show
  1. package/CHANGELOG.md +155 -746
  2. package/README.md +0 -33
  3. package/VERSION +1 -1
  4. package/cjs/RequestSender.js +5 -66
  5. package/cjs/StripeResource.js +1 -1
  6. package/cjs/apiVersion.js +2 -3
  7. package/cjs/multipart.js +1 -1
  8. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  9. package/cjs/resources/Invoices.js +0 -25
  10. package/cjs/resources/OAuth.js +1 -1
  11. package/cjs/resources/PaymentIntents.js +0 -4
  12. package/cjs/resources/Quotes.js +0 -32
  13. package/cjs/resources/SubscriptionSchedules.js +0 -4
  14. package/cjs/resources/Terminal/Readers.js +0 -12
  15. package/cjs/resources/TestHelpers/Issuing/Authorizations.js +4 -0
  16. package/cjs/resources.js +10 -36
  17. package/cjs/stripe.core.js +3 -6
  18. package/cjs/utils.js +3 -30
  19. package/esm/RequestSender.js +6 -67
  20. package/esm/StripeResource.js +2 -2
  21. package/esm/apiVersion.js +1 -2
  22. package/esm/multipart.js +2 -2
  23. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  24. package/esm/resources/Invoices.js +0 -25
  25. package/esm/resources/OAuth.js +2 -2
  26. package/esm/resources/PaymentIntents.js +0 -4
  27. package/esm/resources/Quotes.js +0 -32
  28. package/esm/resources/SubscriptionSchedules.js +0 -4
  29. package/esm/resources/Terminal/Readers.js +0 -12
  30. package/esm/resources/TestHelpers/Issuing/Authorizations.js +4 -0
  31. package/esm/resources.js +0 -22
  32. package/esm/stripe.core.js +3 -6
  33. package/esm/utils.js +1 -27
  34. package/package.json +5 -1
  35. package/types/AccountLinksResource.d.ts +1 -5
  36. package/types/AccountSessions.d.ts +0 -15
  37. package/types/AccountSessionsResource.d.ts +0 -205
  38. package/types/Accounts.d.ts +1 -88
  39. package/types/AccountsResource.d.ts +1 -205
  40. package/types/BalanceTransactionSources.d.ts +0 -1
  41. package/types/Capabilities.d.ts +27 -7
  42. package/types/Charges.d.ts +0 -67
  43. package/types/ChargesResource.d.ts +0 -1294
  44. package/types/Checkout/Sessions.d.ts +3 -24
  45. package/types/Checkout/SessionsResource.d.ts +3 -17
  46. package/types/ConfirmationTokens.d.ts +0 -83
  47. package/types/Coupons.d.ts +1 -1
  48. package/types/CouponsResource.d.ts +1 -1
  49. package/types/CreditNotes.d.ts +0 -21
  50. package/types/CreditNotesResource.d.ts +0 -51
  51. package/types/CustomerSessions.d.ts +0 -55
  52. package/types/CustomerSessionsResource.d.ts +0 -55
  53. package/types/CustomersResource.d.ts +4 -4
  54. package/types/Disputes.d.ts +0 -167
  55. package/types/DisputesResource.d.ts +0 -120
  56. package/types/EventTypes.d.ts +0 -426
  57. package/types/Events.d.ts +0 -83
  58. package/types/FinancialConnections/Accounts.d.ts +1 -29
  59. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  60. package/types/FinancialConnections/Sessions.d.ts +1 -44
  61. package/types/FinancialConnections/SessionsResource.d.ts +1 -33
  62. package/types/InvoiceItems.d.ts +0 -5
  63. package/types/InvoiceItemsResource.d.ts +0 -98
  64. package/types/InvoiceLineItems.d.ts +0 -22
  65. package/types/Invoices.d.ts +3 -111
  66. package/types/InvoicesResource.d.ts +2171 -6311
  67. package/types/Issuing/Authorizations.d.ts +173 -0
  68. package/types/Issuing/CardholdersResource.d.ts +1 -2
  69. package/types/Issuing/Cards.d.ts +0 -34
  70. package/types/Issuing/CardsResource.d.ts +0 -125
  71. package/types/Issuing/Transactions.d.ts +112 -6
  72. package/types/LineItems.d.ts +0 -7
  73. package/types/Mandates.d.ts +0 -77
  74. package/types/PaymentIntents.d.ts +1 -463
  75. package/types/PaymentIntentsResource.d.ts +3360 -6731
  76. package/types/PaymentLinks.d.ts +1 -0
  77. package/types/PaymentLinksResource.d.ts +15 -1
  78. package/types/PaymentMethods.d.ts +0 -62
  79. package/types/PaymentMethodsResource.d.ts +12 -124
  80. package/types/Prices.d.ts +0 -22
  81. package/types/PricesResource.d.ts +0 -22
  82. package/types/Products.d.ts +0 -39
  83. package/types/ProductsResource.d.ts +0 -36
  84. package/types/Quotes.d.ts +1 -578
  85. package/types/QuotesResource.d.ts +266 -3175
  86. package/types/SetupAttempts.d.ts +0 -8
  87. package/types/SetupIntents.d.ts +1 -104
  88. package/types/SetupIntentsResource.d.ts +9 -527
  89. package/types/Sources.d.ts +0 -23
  90. package/types/SubscriptionItems.d.ts +0 -21
  91. package/types/SubscriptionItemsResource.d.ts +0 -109
  92. package/types/SubscriptionSchedules.d.ts +0 -164
  93. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  94. package/types/Subscriptions.d.ts +1 -41
  95. package/types/SubscriptionsResource.d.ts +2 -337
  96. package/types/Tax/Calculations.d.ts +2 -1
  97. package/types/Tax/CalculationsResource.d.ts +4 -3
  98. package/types/Tax/Transactions.d.ts +2 -1
  99. package/types/TaxIds.d.ts +2 -1
  100. package/types/TaxIdsResource.d.ts +2 -1
  101. package/types/Terminal/ConnectionTokens.d.ts +1 -1
  102. package/types/Terminal/ConnectionTokensResource.d.ts +1 -1
  103. package/types/Terminal/Readers.d.ts +0 -278
  104. package/types/Terminal/ReadersResource.d.ts +0 -208
  105. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -55
  106. package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +480 -7
  107. package/types/TestHelpers/Issuing/TransactionsResource.d.ts +262 -14
  108. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  109. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  110. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  111. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  112. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  113. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  114. package/types/WebhookEndpointsResource.d.ts +2 -51
  115. package/types/index.d.ts +0 -62
  116. package/types/lib.d.ts +1 -13
  117. package/types/test/typescriptTest.ts +3 -3
  118. package/cjs/resources/AccountNotices.js +0 -21
  119. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  120. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  121. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  122. package/cjs/resources/GiftCards/Cards.js +0 -23
  123. package/cjs/resources/GiftCards/Transactions.js +0 -33
  124. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  125. package/cjs/resources/Margins.js +0 -22
  126. package/cjs/resources/Orders.js +0 -24
  127. package/cjs/resources/QuotePhases.js +0 -22
  128. package/cjs/resources/Tax/Forms.js +0 -20
  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/GiftCards/Cards.js +0 -20
  134. package/esm/resources/GiftCards/Transactions.js +0 -30
  135. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  136. package/esm/resources/Margins.js +0 -19
  137. package/esm/resources/Orders.js +0 -21
  138. package/esm/resources/QuotePhases.js +0 -19
  139. package/esm/resources/Tax/Forms.js +0 -17
  140. package/types/AccountNotices.d.ts +0 -110
  141. package/types/AccountNoticesResource.d.ts +0 -98
  142. package/types/Capital/FinancingOffers.d.ts +0 -188
  143. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  144. package/types/Capital/FinancingSummary.d.ts +0 -106
  145. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  146. package/types/Capital/FinancingTransactions.d.ts +0 -135
  147. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  148. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  149. package/types/GiftCards/Cards.d.ts +0 -118
  150. package/types/GiftCards/CardsResource.d.ts +0 -159
  151. package/types/GiftCards/Transactions.d.ts +0 -129
  152. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  153. package/types/InvoicePayments.d.ts +0 -91
  154. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -446
  155. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1017
  156. package/types/Margins.d.ts +0 -56
  157. package/types/MarginsResource.d.ts +0 -114
  158. package/types/Orders.d.ts +0 -1056
  159. package/types/OrdersResource.d.ts +0 -2709
  160. package/types/PlatformTaxFees.d.ts +0 -35
  161. package/types/QuoteLines.d.ts +0 -634
  162. package/types/QuotePhases.d.ts +0 -198
  163. package/types/QuotePhasesResource.d.ts +0 -67
  164. package/types/QuotePreviewInvoices.d.ts +0 -1514
  165. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -778
  166. package/types/Tax/Forms.d.ts +0 -133
  167. package/types/Tax/FormsResource.d.ts +0 -90
@@ -36,38 +36,11 @@ declare module 'stripe' {
36
36
  */
37
37
  balances?: Components.Balances;
38
38
 
39
- capital_financing_promotion?: Components.CapitalFinancingPromotion;
40
-
41
- /**
42
- * Configuration for the capital overview embedded component.
43
- */
44
- capital_overview?: Components.CapitalOverview;
45
-
46
39
  /**
47
40
  * Configuration for the documents embedded component.
48
41
  */
49
42
  documents?: Components.Documents;
50
43
 
51
- /**
52
- * Configuration for the financial account component.
53
- */
54
- financial_account?: Components.FinancialAccount;
55
-
56
- /**
57
- * Configuration for the financial account transactions component.
58
- */
59
- financial_account_transactions?: Components.FinancialAccountTransactions;
60
-
61
- /**
62
- * Configuration for the issuing card component.
63
- */
64
- issuing_card?: Components.IssuingCard;
65
-
66
- /**
67
- * Configuration for the issuing cards list component.
68
- */
69
- issuing_cards_list?: Components.IssuingCardsList;
70
-
71
44
  /**
72
45
  * Configuration for the notification banner embedded component.
73
46
  */
@@ -78,11 +51,6 @@ declare module 'stripe' {
78
51
  */
79
52
  payment_details?: Components.PaymentDetails;
80
53
 
81
- /**
82
- * Configuration for the payment method settings embedded component.
83
- */
84
- payment_method_settings?: Components.PaymentMethodSettings;
85
-
86
54
  /**
87
55
  * Configuration for the payments embedded component.
88
56
  */
@@ -97,16 +65,6 @@ declare module 'stripe' {
97
65
  * Configuration for the payouts list embedded component.
98
66
  */
99
67
  payouts_list?: Components.PayoutsList;
100
-
101
- /**
102
- * Configuration for the tax registrations embedded component.
103
- */
104
- tax_registrations?: Components.TaxRegistrations;
105
-
106
- /**
107
- * Configuration for the tax settings embedded component.
108
- */
109
- tax_settings?: Components.TaxSettings;
110
68
  }
111
69
 
112
70
  namespace Components {
@@ -188,38 +146,6 @@ declare module 'stripe' {
188
146
  }
189
147
  }
190
148
 
191
- interface CapitalFinancingPromotion {
192
- /**
193
- * Whether the embedded component is enabled.
194
- */
195
- enabled: boolean;
196
-
197
- /**
198
- * The list of features enabled in the embedded component.
199
- */
200
- features?: CapitalFinancingPromotion.Features;
201
- }
202
-
203
- namespace CapitalFinancingPromotion {
204
- interface Features {}
205
- }
206
-
207
- interface CapitalOverview {
208
- /**
209
- * Whether the embedded component is enabled.
210
- */
211
- enabled: boolean;
212
-
213
- /**
214
- * The list of features enabled in the embedded component.
215
- */
216
- features?: CapitalOverview.Features;
217
- }
218
-
219
- namespace CapitalOverview {
220
- interface Features {}
221
- }
222
-
223
149
  interface Documents {
224
150
  /**
225
151
  * Whether the embedded component is enabled.
@@ -236,89 +162,6 @@ declare module 'stripe' {
236
162
  interface Features {}
237
163
  }
238
164
 
239
- interface FinancialAccount {
240
- /**
241
- * Whether the embedded component is enabled.
242
- */
243
- enabled: boolean;
244
-
245
- features?: FinancialAccount.Features;
246
- }
247
-
248
- namespace FinancialAccount {
249
- interface Features {
250
- /**
251
- * Whether to allow external accounts to be linked for money transfer.
252
- */
253
- external_account_collection?: boolean;
254
-
255
- /**
256
- * Whether to allow money movement features.
257
- */
258
- money_movement?: boolean;
259
- }
260
- }
261
-
262
- interface FinancialAccountTransactions {
263
- /**
264
- * Whether the embedded component is enabled.
265
- */
266
- enabled: boolean;
267
-
268
- features?: FinancialAccountTransactions.Features;
269
- }
270
-
271
- namespace FinancialAccountTransactions {
272
- interface Features {
273
- /**
274
- * Whether to allow card spend dispute features.
275
- */
276
- card_spend_dispute_management?: boolean;
277
- }
278
- }
279
-
280
- interface IssuingCard {
281
- /**
282
- * Whether the embedded component is enabled.
283
- */
284
- enabled: boolean;
285
-
286
- /**
287
- * The list of features enabled in the embedded component.
288
- */
289
- features?: IssuingCard.Features;
290
- }
291
-
292
- namespace IssuingCard {
293
- interface Features {}
294
- }
295
-
296
- interface IssuingCardsList {
297
- /**
298
- * Whether the embedded component is enabled.
299
- */
300
- enabled: boolean;
301
-
302
- /**
303
- * The list of features enabled in the embedded component.
304
- */
305
- features?: IssuingCardsList.Features;
306
- }
307
-
308
- namespace IssuingCardsList {
309
- interface Features {
310
- /**
311
- * Whether to allow card management features.
312
- */
313
- card_management?: boolean;
314
-
315
- /**
316
- * Whether to allow cardholder management features.
317
- */
318
- cardholder_management?: boolean;
319
- }
320
- }
321
-
322
165
  interface NotificationBanner {
323
166
  /**
324
167
  * Whether the embedded component is enabled.
@@ -376,22 +219,6 @@ declare module 'stripe' {
376
219
  }
377
220
  }
378
221
 
379
- interface PaymentMethodSettings {
380
- /**
381
- * Whether the embedded component is enabled.
382
- */
383
- enabled: boolean;
384
-
385
- /**
386
- * The list of features enabled in the embedded component.
387
- */
388
- features?: PaymentMethodSettings.Features;
389
- }
390
-
391
- namespace PaymentMethodSettings {
392
- interface Features {}
393
- }
394
-
395
222
  interface Payments {
396
223
  /**
397
224
  * Whether the embedded component is enabled.
@@ -479,38 +306,6 @@ declare module 'stripe' {
479
306
  namespace PayoutsList {
480
307
  interface Features {}
481
308
  }
482
-
483
- interface TaxRegistrations {
484
- /**
485
- * Whether the embedded component is enabled.
486
- */
487
- enabled: boolean;
488
-
489
- /**
490
- * The list of features enabled in the embedded component.
491
- */
492
- features?: TaxRegistrations.Features;
493
- }
494
-
495
- namespace TaxRegistrations {
496
- interface Features {}
497
- }
498
-
499
- interface TaxSettings {
500
- /**
501
- * Whether the embedded component is enabled.
502
- */
503
- enabled: boolean;
504
-
505
- /**
506
- * The list of features enabled in the embedded component.
507
- */
508
- features?: TaxSettings.Features;
509
- }
510
-
511
- namespace TaxSettings {
512
- interface Features {}
513
- }
514
309
  }
515
310
  }
516
311
 
@@ -106,8 +106,6 @@ declare module 'stripe' {
106
106
 
107
107
  requirements?: Account.Requirements;
108
108
 
109
- risk_controls?: Account.RiskControls;
110
-
111
109
  /**
112
110
  * Options for customizing how the account functions within Stripe.
113
111
  */
@@ -379,26 +377,11 @@ declare module 'stripe' {
379
377
  */
380
378
  paynow_payments?: Capabilities.PaynowPayments;
381
379
 
382
- /**
383
- * The status of the PayPal payments capability of the account, or whether the account can directly process PayPal charges.
384
- */
385
- paypal_payments?: Capabilities.PaypalPayments;
386
-
387
- /**
388
- * The status of the PayTo capability of the account, or whether the account can directly process PayTo charges.
389
- */
390
- payto_payments?: Capabilities.PaytoPayments;
391
-
392
380
  /**
393
381
  * The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges.
394
382
  */
395
383
  promptpay_payments?: Capabilities.PromptpayPayments;
396
384
 
397
- /**
398
- * The status of the Rechnung capability of the account, or whether the account can directly process Rechnung payments.
399
- */
400
- rechnung_payments?: Capabilities.RechnungPayments;
401
-
402
385
  /**
403
386
  * The status of the RevolutPay capability of the account, or whether the account can directly process RevolutPay payments.
404
387
  */
@@ -532,14 +515,8 @@ declare module 'stripe' {
532
515
 
533
516
  type PaynowPayments = 'active' | 'inactive' | 'pending';
534
517
 
535
- type PaypalPayments = 'active' | 'inactive' | 'pending';
536
-
537
- type PaytoPayments = 'active' | 'inactive' | 'pending';
538
-
539
518
  type PromptpayPayments = 'active' | 'inactive' | 'pending';
540
519
 
541
- type RechnungPayments = 'active' | 'inactive' | 'pending';
542
-
543
520
  type RevolutPayPayments = 'active' | 'inactive' | 'pending';
544
521
 
545
522
  type SepaBankTransferPayments = 'active' | 'inactive' | 'pending';
@@ -803,10 +780,6 @@ declare module 'stripe' {
803
780
  }
804
781
 
805
782
  interface Controller {
806
- application?: Controller.Application;
807
-
808
- dashboard?: Controller.Dashboard;
809
-
810
783
  fees?: Controller.Fees;
811
784
 
812
785
  /**
@@ -830,34 +803,6 @@ declare module 'stripe' {
830
803
  }
831
804
 
832
805
  namespace Controller {
833
- interface Application {
834
- /**
835
- * `true` if the Connect application is responsible for negative balances and should manage credit and fraud risk on the account.
836
- */
837
- loss_liable: boolean;
838
-
839
- /**
840
- * `true` if the Connect application is responsible for onboarding the account.
841
- */
842
- onboarding_owner: boolean;
843
-
844
- /**
845
- * `true` if the Connect application is responsible for paying Stripe fees on pricing-control eligible products.
846
- */
847
- pricing_controls: boolean;
848
- }
849
-
850
- interface Dashboard {
851
- /**
852
- * Whether this account has access to the full Stripe dashboard (`full`), to the Express dashboard (`express`), or to no dashboard (`none`).
853
- */
854
- type: Dashboard.Type;
855
- }
856
-
857
- namespace Dashboard {
858
- type Type = 'express' | 'full' | 'none';
859
- }
860
-
861
806
  interface Fees {
862
807
  /**
863
808
  * A value indicating the responsible payer of a bundle of Stripe fees for pricing-control eligible products on this account. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior).
@@ -870,8 +815,7 @@ declare module 'stripe' {
870
815
  | 'account'
871
816
  | 'application'
872
817
  | 'application_custom'
873
- | 'application_express'
874
- | 'application_unified_accounts_beta';
818
+ | 'application_express';
875
819
  }
876
820
 
877
821
  interface Losses {
@@ -1233,28 +1177,6 @@ declare module 'stripe' {
1233
1177
  }
1234
1178
  }
1235
1179
 
1236
- interface RiskControls {
1237
- charges: RiskControls.Charges;
1238
-
1239
- payouts: RiskControls.Payouts;
1240
- }
1241
-
1242
- namespace RiskControls {
1243
- interface Charges {
1244
- /**
1245
- * Whether a pause of the risk control has been requested.
1246
- */
1247
- pause_requested: boolean;
1248
- }
1249
-
1250
- interface Payouts {
1251
- /**
1252
- * Whether a pause of the risk control has been requested.
1253
- */
1254
- pause_requested: boolean;
1255
- }
1256
- }
1257
-
1258
1180
  interface Settings {
1259
1181
  bacs_debit_payments?: Settings.BacsDebitPayments;
1260
1182
 
@@ -1274,8 +1196,6 @@ declare module 'stripe' {
1274
1196
 
1275
1197
  sepa_debit_payments?: Settings.SepaDebitPayments;
1276
1198
 
1277
- tax_forms?: Settings.TaxForms;
1278
-
1279
1199
  treasury?: Settings.Treasury;
1280
1200
  }
1281
1201
 
@@ -1461,13 +1381,6 @@ declare module 'stripe' {
1461
1381
  creditor_id?: string;
1462
1382
  }
1463
1383
 
1464
- interface TaxForms {
1465
- /**
1466
- * Whether the account opted out of receiving their tax forms by postal delivery.
1467
- */
1468
- consented_to_paperless_delivery: boolean;
1469
- }
1470
-
1471
1384
  interface Treasury {
1472
1385
  tos_acceptance?: Treasury.TosAcceptance;
1473
1386
  }