stripe 17.2.0-beta.2 → 17.2.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 (183) hide show
  1. package/CHANGELOG.md +117 -899
  2. package/README.md +4 -4
  3. package/VERSION +1 -1
  4. package/cjs/Webhooks.js +1 -1
  5. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  6. package/cjs/resources/Invoices.js +0 -17
  7. package/cjs/resources/PaymentIntents.js +0 -4
  8. package/cjs/resources/Quotes.js +0 -32
  9. package/cjs/resources/SubscriptionSchedules.js +0 -4
  10. package/cjs/resources/Terminal/Readers.js +0 -12
  11. package/cjs/resources/TestHelpers/Issuing/Cards.js +0 -4
  12. package/cjs/resources/V2/Core/Events.js +50 -7
  13. package/cjs/resources.js +10 -42
  14. package/cjs/stripe.core.js +1 -1
  15. package/esm/Webhooks.js +1 -1
  16. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  17. package/esm/resources/Invoices.js +0 -17
  18. package/esm/resources/PaymentIntents.js +0 -4
  19. package/esm/resources/Quotes.js +0 -32
  20. package/esm/resources/SubscriptionSchedules.js +0 -4
  21. package/esm/resources/Terminal/Readers.js +0 -12
  22. package/esm/resources/TestHelpers/Issuing/Cards.js +0 -4
  23. package/esm/resources/V2/Core/Events.js +50 -7
  24. package/esm/resources.js +0 -29
  25. package/esm/stripe.core.js +1 -1
  26. package/package.json +1 -1
  27. package/types/AccountLinksResource.d.ts +1 -5
  28. package/types/AccountSessions.d.ts +5 -75
  29. package/types/AccountSessionsResource.d.ts +5 -354
  30. package/types/Accounts.d.ts +3 -127
  31. package/types/AccountsResource.d.ts +2 -296
  32. package/types/Billing/CreditGrants.d.ts +2 -2
  33. package/types/Billing/CreditGrantsResource.d.ts +2 -2
  34. package/types/Billing/Meters.d.ts +0 -2
  35. package/types/Charges.d.ts +0 -152
  36. package/types/ChargesResource.d.ts +0 -1294
  37. package/types/Checkout/Sessions.d.ts +5 -309
  38. package/types/Checkout/SessionsResource.d.ts +5 -356
  39. package/types/ConfirmationTokens.d.ts +0 -137
  40. package/types/Coupons.d.ts +1 -1
  41. package/types/CouponsResource.d.ts +1 -1
  42. package/types/CreditNotes.d.ts +0 -21
  43. package/types/CreditNotesResource.d.ts +0 -51
  44. package/types/CustomersResource.d.ts +2 -22
  45. package/types/Disputes.d.ts +0 -152
  46. package/types/DisputesResource.d.ts +0 -120
  47. package/types/EventTypes.d.ts +2 -564
  48. package/types/Events.d.ts +0 -91
  49. package/types/FinancialConnections/Accounts.d.ts +1 -29
  50. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  51. package/types/FinancialConnections/Sessions.d.ts +1 -49
  52. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  53. package/types/Forwarding/Requests.d.ts +0 -5
  54. package/types/InvoiceItems.d.ts +0 -5
  55. package/types/InvoiceItemsResource.d.ts +0 -98
  56. package/types/InvoiceLineItems.d.ts +1 -31
  57. package/types/Invoices.d.ts +3 -134
  58. package/types/InvoicesResource.d.ts +1836 -5515
  59. package/types/Issuing/Authorizations.d.ts +1 -1
  60. package/types/Issuing/AuthorizationsResource.d.ts +1 -1
  61. package/types/Issuing/CardholdersResource.d.ts +1 -2
  62. package/types/Issuing/Transactions.d.ts +0 -2
  63. package/types/Issuing/TransactionsResource.d.ts +0 -5
  64. package/types/LineItems.d.ts +0 -7
  65. package/types/Mandates.d.ts +0 -85
  66. package/types/PaymentIntents.d.ts +1 -643
  67. package/types/PaymentIntentsResource.d.ts +3463 -7739
  68. package/types/PaymentLinks.d.ts +0 -3
  69. package/types/PaymentLinksResource.d.ts +0 -6
  70. package/types/PaymentMethodConfigurations.d.ts +0 -36
  71. package/types/PaymentMethodConfigurationsResource.d.ts +2 -52
  72. package/types/PaymentMethods.d.ts +0 -137
  73. package/types/PaymentMethodsResource.d.ts +0 -158
  74. package/types/Persons.d.ts +1 -1
  75. package/types/Prices.d.ts +0 -22
  76. package/types/PricesResource.d.ts +0 -22
  77. package/types/Products.d.ts +0 -39
  78. package/types/ProductsResource.d.ts +0 -36
  79. package/types/Quotes.d.ts +1 -591
  80. package/types/QuotesResource.d.ts +199 -2531
  81. package/types/SetupAttempts.d.ts +0 -19
  82. package/types/SetupIntents.d.ts +1 -112
  83. package/types/SetupIntentsResource.d.ts +3 -669
  84. package/types/Sources.d.ts +0 -23
  85. package/types/SubscriptionItems.d.ts +0 -21
  86. package/types/SubscriptionItemsResource.d.ts +0 -109
  87. package/types/SubscriptionSchedules.d.ts +0 -200
  88. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  89. package/types/Subscriptions.d.ts +1 -82
  90. package/types/SubscriptionsResource.d.ts +3 -348
  91. package/types/Tax/CalculationLineItems.d.ts +0 -1
  92. package/types/Tax/Calculations.d.ts +1 -33
  93. package/types/Tax/CalculationsResource.d.ts +1 -7
  94. package/types/Tax/Registrations.d.ts +0 -82
  95. package/types/Tax/RegistrationsResource.d.ts +0 -109
  96. package/types/Tax/Transactions.d.ts +1 -8
  97. package/types/TaxIds.d.ts +1 -7
  98. package/types/TaxIdsResource.d.ts +1 -7
  99. package/types/TaxRates.d.ts +0 -25
  100. package/types/TaxRatesResource.d.ts +0 -2
  101. package/types/Terminal/Readers.d.ts +0 -278
  102. package/types/Terminal/ReadersResource.d.ts +0 -215
  103. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -112
  104. package/types/TestHelpers/Issuing/CardsResource.d.ts +0 -22
  105. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  106. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  107. package/types/TokensResource.d.ts +1 -1
  108. package/types/Treasury/FinancialAccounts.d.ts +1 -6
  109. package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
  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/UsageRecordSummaries.d.ts +1 -1
  115. package/types/V2/Billing/MeterEventAdjustments.d.ts +1 -1
  116. package/types/V2/Billing/MeterEventSessions.d.ts +1 -1
  117. package/types/V2/Billing/MeterEvents.d.ts +1 -1
  118. package/types/V2/EventTypes.d.ts +3 -1
  119. package/types/WebhookEndpointsResource.d.ts +0 -66
  120. package/types/index.d.ts +0 -53
  121. package/cjs/resources/AccountNotices.js +0 -21
  122. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  123. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  124. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  125. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  126. package/cjs/resources/GiftCards/Cards.js +0 -23
  127. package/cjs/resources/GiftCards/Transactions.js +0 -33
  128. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  129. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  130. package/cjs/resources/Margins.js +0 -22
  131. package/cjs/resources/Orders.js +0 -24
  132. package/cjs/resources/Tax/Associations.js +0 -9
  133. package/cjs/resources/Tax/Forms.js +0 -20
  134. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  135. package/esm/resources/AccountNotices.js +0 -18
  136. package/esm/resources/Capital/FinancingOffers.js +0 -18
  137. package/esm/resources/Capital/FinancingSummary.js +0 -9
  138. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  139. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  140. package/esm/resources/GiftCards/Cards.js +0 -20
  141. package/esm/resources/GiftCards/Transactions.js +0 -30
  142. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  143. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  144. package/esm/resources/Margins.js +0 -19
  145. package/esm/resources/Orders.js +0 -21
  146. package/esm/resources/Tax/Associations.js +0 -6
  147. package/esm/resources/Tax/Forms.js +0 -17
  148. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  149. package/types/AccountNotices.d.ts +0 -113
  150. package/types/AccountNoticesResource.d.ts +0 -98
  151. package/types/Billing/MeterErrorReports.d.ts +0 -106
  152. package/types/Capital/FinancingOffers.d.ts +0 -188
  153. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  154. package/types/Capital/FinancingSummary.d.ts +0 -106
  155. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  156. package/types/Capital/FinancingTransactions.d.ts +0 -135
  157. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  158. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  159. package/types/FinancialConnections/Institutions.d.ts +0 -93
  160. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  161. package/types/GiftCards/Cards.d.ts +0 -118
  162. package/types/GiftCards/CardsResource.d.ts +0 -159
  163. package/types/GiftCards/Transactions.d.ts +0 -129
  164. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  165. package/types/InvoicePayments.d.ts +0 -138
  166. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  167. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  168. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  169. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  170. package/types/Issuing/Settlements.d.ts +0 -103
  171. package/types/Margins.d.ts +0 -56
  172. package/types/MarginsResource.d.ts +0 -114
  173. package/types/Orders.d.ts +0 -1154
  174. package/types/OrdersResource.d.ts +0 -2911
  175. package/types/QuoteLines.d.ts +0 -634
  176. package/types/QuotePreviewInvoices.d.ts +0 -1596
  177. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  178. package/types/Tax/Associations.d.ts +0 -126
  179. package/types/Tax/AssociationsResource.d.ts +0 -29
  180. package/types/Tax/Forms.d.ts +0 -133
  181. package/types/Tax/FormsResource.d.ts +0 -90
  182. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  183. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
@@ -40,7 +40,7 @@ declare module 'stripe' {
40
40
  capabilities?: Account.Capabilities;
41
41
 
42
42
  /**
43
- * Whether the account can process charges.
43
+ * Whether the account can create live charges.
44
44
  */
45
45
  charges_enabled: boolean;
46
46
 
@@ -85,11 +85,6 @@ declare module 'stripe' {
85
85
 
86
86
  future_requirements?: Account.FutureRequirements;
87
87
 
88
- /**
89
- * The groups associated with the account.
90
- */
91
- groups?: Account.Groups | null;
92
-
93
88
  /**
94
89
  * This is an object representing a person associated with a Stripe account.
95
90
  *
@@ -105,14 +100,12 @@ declare module 'stripe' {
105
100
  metadata?: Stripe.Metadata;
106
101
 
107
102
  /**
108
- * Whether the funds in this account can be paid out.
103
+ * Whether Stripe can send payouts to this account.
109
104
  */
110
105
  payouts_enabled: boolean;
111
106
 
112
107
  requirements?: Account.Requirements;
113
108
 
114
- risk_controls?: Account.RiskControls;
115
-
116
109
  /**
117
110
  * Options for customizing how the account functions within Stripe.
118
111
  */
@@ -354,11 +347,6 @@ declare module 'stripe' {
354
347
  */
355
348
  link_payments?: Capabilities.LinkPayments;
356
349
 
357
- /**
358
- * The status of the MB WAY payments capability of the account, or whether the account can directly process MB WAY charges.
359
- */
360
- mb_way_payments?: Capabilities.MbWayPayments;
361
-
362
350
  /**
363
351
  * The status of the MobilePay capability of the account, or whether the account can directly process MobilePay charges.
364
352
  */
@@ -389,26 +377,11 @@ declare module 'stripe' {
389
377
  */
390
378
  paynow_payments?: Capabilities.PaynowPayments;
391
379
 
392
- /**
393
- * The status of the PayPal payments capability of the account, or whether the account can directly process PayPal charges.
394
- */
395
- paypal_payments?: Capabilities.PaypalPayments;
396
-
397
- /**
398
- * The status of the PayTo capability of the account, or whether the account can directly process PayTo charges.
399
- */
400
- payto_payments?: Capabilities.PaytoPayments;
401
-
402
380
  /**
403
381
  * The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges.
404
382
  */
405
383
  promptpay_payments?: Capabilities.PromptpayPayments;
406
384
 
407
- /**
408
- * The status of the Rechnung capability of the account, or whether the account can directly process Rechnung payments.
409
- */
410
- rechnung_payments?: Capabilities.RechnungPayments;
411
-
412
385
  /**
413
386
  * The status of the RevolutPay capability of the account, or whether the account can directly process RevolutPay payments.
414
387
  */
@@ -530,8 +503,6 @@ declare module 'stripe' {
530
503
 
531
504
  type LinkPayments = 'active' | 'inactive' | 'pending';
532
505
 
533
- type MbWayPayments = 'active' | 'inactive' | 'pending';
534
-
535
506
  type MobilepayPayments = 'active' | 'inactive' | 'pending';
536
507
 
537
508
  type MultibancoPayments = 'active' | 'inactive' | 'pending';
@@ -544,14 +515,8 @@ declare module 'stripe' {
544
515
 
545
516
  type PaynowPayments = 'active' | 'inactive' | 'pending';
546
517
 
547
- type PaypalPayments = 'active' | 'inactive' | 'pending';
548
-
549
- type PaytoPayments = 'active' | 'inactive' | 'pending';
550
-
551
518
  type PromptpayPayments = 'active' | 'inactive' | 'pending';
552
519
 
553
- type RechnungPayments = 'active' | 'inactive' | 'pending';
554
-
555
520
  type RevolutPayPayments = 'active' | 'inactive' | 'pending';
556
521
 
557
522
  type SepaBankTransferPayments = 'active' | 'inactive' | 'pending';
@@ -815,10 +780,6 @@ declare module 'stripe' {
815
780
  }
816
781
 
817
782
  interface Controller {
818
- application?: Controller.Application;
819
-
820
- dashboard?: Controller.Dashboard;
821
-
822
783
  fees?: Controller.Fees;
823
784
 
824
785
  /**
@@ -842,34 +803,6 @@ declare module 'stripe' {
842
803
  }
843
804
 
844
805
  namespace Controller {
845
- interface Application {
846
- /**
847
- * `true` if the Connect application is responsible for negative balances and should manage credit and fraud risk on the account.
848
- */
849
- loss_liable: boolean;
850
-
851
- /**
852
- * `true` if the Connect application is responsible for onboarding the account.
853
- */
854
- onboarding_owner: boolean;
855
-
856
- /**
857
- * `true` if the Connect application is responsible for paying Stripe fees on pricing-control eligible products.
858
- */
859
- pricing_controls: boolean;
860
- }
861
-
862
- interface Dashboard {
863
- /**
864
- * Whether this account has access to the full Stripe dashboard (`full`), to the Express dashboard (`express`), or to no dashboard (`none`).
865
- */
866
- type: Dashboard.Type;
867
- }
868
-
869
- namespace Dashboard {
870
- type Type = 'express' | 'full' | 'none';
871
- }
872
-
873
806
  interface Fees {
874
807
  /**
875
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).
@@ -882,8 +815,7 @@ declare module 'stripe' {
882
815
  | 'account'
883
816
  | 'application'
884
817
  | 'application_custom'
885
- | 'application_express'
886
- | 'application_unified_accounts_beta';
818
+ | 'application_express';
887
819
  }
888
820
 
889
821
  interface Losses {
@@ -1080,13 +1012,6 @@ declare module 'stripe' {
1080
1012
  }
1081
1013
  }
1082
1014
 
1083
- interface Groups {
1084
- /**
1085
- * The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
1086
- */
1087
- payments_pricing: string | null;
1088
- }
1089
-
1090
1015
  interface Requirements {
1091
1016
  /**
1092
1017
  * Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
@@ -1254,35 +1179,11 @@ declare module 'stripe' {
1254
1179
  }
1255
1180
  }
1256
1181
 
1257
- interface RiskControls {
1258
- charges: RiskControls.Charges;
1259
-
1260
- payouts: RiskControls.Payouts;
1261
- }
1262
-
1263
- namespace RiskControls {
1264
- interface Charges {
1265
- /**
1266
- * Whether a pause of the risk control has been requested.
1267
- */
1268
- pause_requested: boolean;
1269
- }
1270
-
1271
- interface Payouts {
1272
- /**
1273
- * Whether a pause of the risk control has been requested.
1274
- */
1275
- pause_requested: boolean;
1276
- }
1277
- }
1278
-
1279
1182
  interface Settings {
1280
1183
  bacs_debit_payments?: Settings.BacsDebitPayments;
1281
1184
 
1282
1185
  branding: Settings.Branding;
1283
1186
 
1284
- capital?: Settings.Capital;
1285
-
1286
1187
  card_issuing?: Settings.CardIssuing;
1287
1188
 
1288
1189
  card_payments: Settings.CardPayments;
@@ -1297,8 +1198,6 @@ declare module 'stripe' {
1297
1198
 
1298
1199
  sepa_debit_payments?: Settings.SepaDebitPayments;
1299
1200
 
1300
- tax_forms?: Settings.TaxForms;
1301
-
1302
1201
  treasury?: Settings.Treasury;
1303
1202
  }
1304
1203
 
@@ -1337,22 +1236,6 @@ declare module 'stripe' {
1337
1236
  secondary_color: string | null;
1338
1237
  }
1339
1238
 
1340
- interface Capital {
1341
- /**
1342
- * Per-currency mapping of user-selected destination accounts used to pay out loans.
1343
- */
1344
- payout_destination?: {
1345
- [key: string]: string;
1346
- };
1347
-
1348
- /**
1349
- * Per-currency mapping of all destination accounts eligible to receive loan payouts.
1350
- */
1351
- payout_destination_selector?: {
1352
- [key: string]: Array<string>;
1353
- };
1354
- }
1355
-
1356
1239
  interface CardIssuing {
1357
1240
  tos_acceptance?: CardIssuing.TosAcceptance;
1358
1241
  }
@@ -1500,13 +1383,6 @@ declare module 'stripe' {
1500
1383
  creditor_id?: string;
1501
1384
  }
1502
1385
 
1503
- interface TaxForms {
1504
- /**
1505
- * Whether the account opted out of receiving their tax forms by postal delivery.
1506
- */
1507
- consented_to_paperless_delivery: boolean;
1508
- }
1509
-
1510
1386
  interface Treasury {
1511
1387
  tos_acceptance?: Treasury.TosAcceptance;
1512
1388
  }