stripe 16.6.0-beta.1 → 16.6.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 (159) hide show
  1. package/CHANGELOG.md +116 -778
  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 +1 -2
  7. package/cjs/multipart.js +1 -1
  8. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  9. package/cjs/resources/Invoices.js +0 -13
  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.js +10 -42
  16. package/cjs/stripe.core.js +3 -6
  17. package/cjs/utils.js +3 -30
  18. package/esm/RequestSender.js +6 -67
  19. package/esm/StripeResource.js +2 -2
  20. package/esm/apiVersion.js +0 -1
  21. package/esm/multipart.js +2 -2
  22. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  23. package/esm/resources/Invoices.js +0 -13
  24. package/esm/resources/OAuth.js +2 -2
  25. package/esm/resources/PaymentIntents.js +0 -4
  26. package/esm/resources/Quotes.js +0 -32
  27. package/esm/resources/SubscriptionSchedules.js +0 -4
  28. package/esm/resources/Terminal/Readers.js +0 -12
  29. package/esm/resources.js +0 -28
  30. package/esm/stripe.core.js +3 -6
  31. package/esm/utils.js +1 -27
  32. package/package.json +1 -1
  33. package/types/AccountLinksResource.d.ts +1 -5
  34. package/types/AccountSessions.d.ts +0 -15
  35. package/types/AccountSessionsResource.d.ts +0 -163
  36. package/types/Accounts.d.ts +1 -106
  37. package/types/AccountsResource.d.ts +0 -246
  38. package/types/Charges.d.ts +0 -72
  39. package/types/ChargesResource.d.ts +0 -1294
  40. package/types/Checkout/Sessions.d.ts +62 -29
  41. package/types/Checkout/SessionsResource.d.ts +64 -16
  42. package/types/ConfirmationTokens.d.ts +0 -62
  43. package/types/Coupons.d.ts +1 -1
  44. package/types/CouponsResource.d.ts +1 -1
  45. package/types/CreditNotes.d.ts +0 -21
  46. package/types/CreditNotesResource.d.ts +0 -51
  47. package/types/CustomersResource.d.ts +0 -2
  48. package/types/Disputes.d.ts +0 -168
  49. package/types/DisputesResource.d.ts +0 -120
  50. package/types/EventTypes.d.ts +0 -426
  51. package/types/Events.d.ts +0 -83
  52. package/types/FinancialConnections/Accounts.d.ts +3 -31
  53. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  54. package/types/FinancialConnections/Sessions.d.ts +1 -49
  55. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  56. package/types/InvoiceItems.d.ts +0 -5
  57. package/types/InvoiceItemsResource.d.ts +0 -98
  58. package/types/InvoiceLineItems.d.ts +0 -22
  59. package/types/Invoices.d.ts +2 -116
  60. package/types/InvoicesResource.d.ts +1782 -5359
  61. package/types/Issuing/CardholdersResource.d.ts +1 -2
  62. package/types/LineItems.d.ts +0 -7
  63. package/types/Mandates.d.ts +0 -77
  64. package/types/PaymentIntents.d.ts +79 -491
  65. package/types/PaymentIntentsResource.d.ts +3625 -6925
  66. package/types/PaymentMethodConfigurations.d.ts +0 -36
  67. package/types/PaymentMethodConfigurationsResource.d.ts +0 -50
  68. package/types/PaymentMethods.d.ts +0 -62
  69. package/types/PaymentMethodsResource.d.ts +0 -110
  70. package/types/Prices.d.ts +0 -22
  71. package/types/PricesResource.d.ts +0 -22
  72. package/types/Products.d.ts +0 -39
  73. package/types/ProductsResource.d.ts +0 -36
  74. package/types/Quotes.d.ts +1 -578
  75. package/types/QuotesResource.d.ts +266 -3175
  76. package/types/SetupAttempts.d.ts +1 -9
  77. package/types/SetupIntents.d.ts +3 -111
  78. package/types/SetupIntentsResource.d.ts +4 -499
  79. package/types/Sources.d.ts +0 -23
  80. package/types/SubscriptionItems.d.ts +0 -21
  81. package/types/SubscriptionItemsResource.d.ts +1 -110
  82. package/types/SubscriptionSchedules.d.ts +0 -164
  83. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  84. package/types/Subscriptions.d.ts +1 -46
  85. package/types/SubscriptionsResource.d.ts +4 -349
  86. package/types/Terminal/Readers.d.ts +0 -278
  87. package/types/Terminal/ReadersResource.d.ts +0 -208
  88. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -55
  89. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  90. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  91. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  92. package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
  93. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  94. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  95. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  96. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  97. package/types/WebhookEndpointsResource.d.ts +0 -50
  98. package/types/index.d.ts +0 -69
  99. package/types/lib.d.ts +0 -12
  100. package/cjs/resources/AccountNotices.js +0 -21
  101. package/cjs/resources/Billing/Alerts.js +0 -27
  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/Margins.js +0 -22
  110. package/cjs/resources/Orders.js +0 -24
  111. package/cjs/resources/QuotePhases.js +0 -22
  112. package/cjs/resources/Tax/Associations.js +0 -9
  113. package/cjs/resources/Tax/Forms.js +0 -20
  114. package/esm/resources/AccountNotices.js +0 -18
  115. package/esm/resources/Billing/Alerts.js +0 -24
  116. package/esm/resources/Capital/FinancingOffers.js +0 -18
  117. package/esm/resources/Capital/FinancingSummary.js +0 -9
  118. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  119. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  120. package/esm/resources/GiftCards/Cards.js +0 -20
  121. package/esm/resources/GiftCards/Transactions.js +0 -30
  122. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  123. package/esm/resources/Margins.js +0 -19
  124. package/esm/resources/Orders.js +0 -21
  125. package/esm/resources/QuotePhases.js +0 -19
  126. package/esm/resources/Tax/Associations.js +0 -6
  127. package/esm/resources/Tax/Forms.js +0 -17
  128. package/types/AccountNotices.d.ts +0 -113
  129. package/types/AccountNoticesResource.d.ts +0 -98
  130. package/types/Billing/AlertsResource.d.ts +0 -176
  131. package/types/Capital/FinancingOffers.d.ts +0 -188
  132. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  133. package/types/Capital/FinancingSummary.d.ts +0 -106
  134. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  135. package/types/Capital/FinancingTransactions.d.ts +0 -135
  136. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  137. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  138. package/types/FinancialConnections/Institutions.d.ts +0 -93
  139. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  140. package/types/GiftCards/Cards.d.ts +0 -118
  141. package/types/GiftCards/CardsResource.d.ts +0 -159
  142. package/types/GiftCards/Transactions.d.ts +0 -129
  143. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  144. package/types/InvoicePayments.d.ts +0 -138
  145. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -446
  146. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1017
  147. package/types/Margins.d.ts +0 -56
  148. package/types/MarginsResource.d.ts +0 -114
  149. package/types/Orders.d.ts +0 -1057
  150. package/types/OrdersResource.d.ts +0 -2711
  151. package/types/QuoteLines.d.ts +0 -634
  152. package/types/QuotePhases.d.ts +0 -198
  153. package/types/QuotePhasesResource.d.ts +0 -67
  154. package/types/QuotePreviewInvoices.d.ts +0 -1528
  155. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -778
  156. package/types/Tax/Associations.d.ts +0 -126
  157. package/types/Tax/AssociationsResource.d.ts +0 -29
  158. package/types/Tax/Forms.d.ts +0 -133
  159. 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
  */
@@ -188,38 +156,6 @@ declare module 'stripe' {
188
156
  }
189
157
  }
190
158
 
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
159
  interface Documents {
224
160
  /**
225
161
  * Whether the embedded component is enabled.
@@ -236,89 +172,6 @@ declare module 'stripe' {
236
172
  interface Features {}
237
173
  }
238
174
 
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
175
  interface NotificationBanner {
323
176
  /**
324
177
  * Whether the embedded component is enabled.
@@ -376,22 +229,6 @@ declare module 'stripe' {
376
229
  }
377
230
  }
378
231
 
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
232
  interface Payments {
396
233
  /**
397
234
  * Whether the embedded component is enabled.
@@ -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,35 +1177,11 @@ 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
 
1261
1183
  branding: Settings.Branding;
1262
1184
 
1263
- capital?: Settings.Capital;
1264
-
1265
1185
  card_issuing?: Settings.CardIssuing;
1266
1186
 
1267
1187
  card_payments: Settings.CardPayments;
@@ -1276,8 +1196,6 @@ declare module 'stripe' {
1276
1196
 
1277
1197
  sepa_debit_payments?: Settings.SepaDebitPayments;
1278
1198
 
1279
- tax_forms?: Settings.TaxForms;
1280
-
1281
1199
  treasury?: Settings.Treasury;
1282
1200
  }
1283
1201
 
@@ -1316,22 +1234,6 @@ declare module 'stripe' {
1316
1234
  secondary_color: string | null;
1317
1235
  }
1318
1236
 
1319
- interface Capital {
1320
- /**
1321
- * Per-currency mapping of user-selected destination accounts used to pay out loans.
1322
- */
1323
- payout_destination?: {
1324
- [key: string]: string;
1325
- };
1326
-
1327
- /**
1328
- * Per-currency mapping of all destination accounts eligible to receive loan payouts.
1329
- */
1330
- payout_destination_selector?: {
1331
- [key: string]: Array<string>;
1332
- };
1333
- }
1334
-
1335
1237
  interface CardIssuing {
1336
1238
  tos_acceptance?: CardIssuing.TosAcceptance;
1337
1239
  }
@@ -1479,13 +1381,6 @@ declare module 'stripe' {
1479
1381
  creditor_id?: string;
1480
1382
  }
1481
1383
 
1482
- interface TaxForms {
1483
- /**
1484
- * Whether the account opted out of receiving their tax forms by postal delivery.
1485
- */
1486
- consented_to_paperless_delivery: boolean;
1487
- }
1488
-
1489
1384
  interface Treasury {
1490
1385
  tos_acceptance?: Treasury.TosAcceptance;
1491
1386
  }