stripe 16.4.0-beta.1 → 16.4.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 (151) hide show
  1. package/CHANGELOG.md +130 -767
  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 -38
  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 -24
  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 -205
  36. package/types/Accounts.d.ts +1 -88
  37. package/types/AccountsResource.d.ts +0 -204
  38. package/types/Charges.d.ts +0 -67
  39. package/types/ChargesResource.d.ts +0 -1294
  40. package/types/Checkout/Sessions.d.ts +1 -28
  41. package/types/Checkout/SessionsResource.d.ts +1 -15
  42. package/types/ConfirmationTokens.d.ts +5 -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 +3 -120
  50. package/types/EventTypes.d.ts +17 -426
  51. package/types/Events.d.ts +1 -83
  52. package/types/EventsResource.d.ts +1 -1
  53. package/types/FinancialConnections/Accounts.d.ts +1 -29
  54. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  55. package/types/FinancialConnections/Sessions.d.ts +1 -49
  56. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  57. package/types/Identity/VerificationReports.d.ts +1 -1
  58. package/types/InvoiceItems.d.ts +0 -5
  59. package/types/InvoiceItemsResource.d.ts +0 -98
  60. package/types/InvoiceLineItems.d.ts +0 -22
  61. package/types/Invoices.d.ts +2 -116
  62. package/types/InvoicesResource.d.ts +1784 -5359
  63. package/types/Issuing/CardholdersResource.d.ts +1 -2
  64. package/types/LineItems.d.ts +0 -7
  65. package/types/Mandates.d.ts +0 -77
  66. package/types/PaymentIntents.d.ts +1 -469
  67. package/types/PaymentIntentsResource.d.ts +3377 -6725
  68. package/types/PaymentMethodDomains.d.ts +1 -1
  69. package/types/PaymentMethods.d.ts +0 -62
  70. package/types/PaymentMethodsResource.d.ts +0 -110
  71. package/types/Prices.d.ts +0 -22
  72. package/types/PricesResource.d.ts +0 -22
  73. package/types/Products.d.ts +0 -39
  74. package/types/ProductsResource.d.ts +0 -36
  75. package/types/Quotes.d.ts +1 -578
  76. package/types/QuotesResource.d.ts +266 -3175
  77. package/types/SetupAttempts.d.ts +0 -9
  78. package/types/SetupIntents.d.ts +1 -110
  79. package/types/SetupIntentsResource.d.ts +3 -498
  80. package/types/Sources.d.ts +0 -23
  81. package/types/SubscriptionItems.d.ts +0 -21
  82. package/types/SubscriptionItemsResource.d.ts +0 -109
  83. package/types/SubscriptionSchedules.d.ts +0 -164
  84. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  85. package/types/Subscriptions.d.ts +3 -47
  86. package/types/SubscriptionsResource.d.ts +6 -349
  87. package/types/Terminal/Readers.d.ts +2 -279
  88. package/types/Terminal/ReadersResource.d.ts +1 -208
  89. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -55
  90. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  91. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  92. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  93. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  94. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  95. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  96. package/types/WebhookEndpointsResource.d.ts +2 -50
  97. package/types/index.d.ts +0 -64
  98. package/types/lib.d.ts +0 -12
  99. package/cjs/resources/AccountNotices.js +0 -21
  100. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  101. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  102. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  103. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  104. package/cjs/resources/GiftCards/Cards.js +0 -23
  105. package/cjs/resources/GiftCards/Transactions.js +0 -33
  106. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  107. package/cjs/resources/Margins.js +0 -22
  108. package/cjs/resources/Orders.js +0 -24
  109. package/cjs/resources/QuotePhases.js +0 -22
  110. package/cjs/resources/Tax/Forms.js +0 -20
  111. package/esm/resources/AccountNotices.js +0 -18
  112. package/esm/resources/Capital/FinancingOffers.js +0 -18
  113. package/esm/resources/Capital/FinancingSummary.js +0 -9
  114. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  115. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  116. package/esm/resources/GiftCards/Cards.js +0 -20
  117. package/esm/resources/GiftCards/Transactions.js +0 -30
  118. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  119. package/esm/resources/Margins.js +0 -19
  120. package/esm/resources/Orders.js +0 -21
  121. package/esm/resources/QuotePhases.js +0 -19
  122. package/esm/resources/Tax/Forms.js +0 -17
  123. package/types/AccountNotices.d.ts +0 -110
  124. package/types/AccountNoticesResource.d.ts +0 -98
  125. package/types/Capital/FinancingOffers.d.ts +0 -188
  126. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  127. package/types/Capital/FinancingSummary.d.ts +0 -106
  128. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  129. package/types/Capital/FinancingTransactions.d.ts +0 -135
  130. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  131. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  132. package/types/FinancialConnections/Institutions.d.ts +0 -93
  133. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  134. package/types/GiftCards/Cards.d.ts +0 -118
  135. package/types/GiftCards/CardsResource.d.ts +0 -159
  136. package/types/GiftCards/Transactions.d.ts +0 -129
  137. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  138. package/types/InvoicePayments.d.ts +0 -91
  139. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -446
  140. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1017
  141. package/types/Margins.d.ts +0 -56
  142. package/types/MarginsResource.d.ts +0 -114
  143. package/types/Orders.d.ts +0 -1057
  144. package/types/OrdersResource.d.ts +0 -2711
  145. package/types/QuoteLines.d.ts +0 -634
  146. package/types/QuotePhases.d.ts +0 -198
  147. package/types/QuotePhasesResource.d.ts +0 -67
  148. package/types/QuotePreviewInvoices.d.ts +0 -1530
  149. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -778
  150. package/types/Tax/Forms.d.ts +0 -133
  151. package/types/Tax/FormsResource.d.ts +0 -90
@@ -39,11 +39,6 @@ declare module 'stripe' {
39
39
  * Initiating payment method details for the object.
40
40
  */
41
41
  initiating_payment_method_details?: ReceivedDebitCreateParams.InitiatingPaymentMethodDetails;
42
-
43
- /**
44
- * Details about the network used for the ReceivedDebit.
45
- */
46
- network_details?: ReceivedDebitCreateParams.NetworkDetails;
47
42
  }
48
43
 
49
44
  namespace ReceivedDebitCreateParams {
@@ -77,27 +72,6 @@ declare module 'stripe' {
77
72
  routing_number?: string;
78
73
  }
79
74
  }
80
-
81
- interface NetworkDetails {
82
- /**
83
- * Optional fields for `ach`.
84
- */
85
- ach?: NetworkDetails.Ach;
86
-
87
- /**
88
- * The type of flow that originated the ReceivedDebit.
89
- */
90
- type: 'ach';
91
- }
92
-
93
- namespace NetworkDetails {
94
- interface Ach {
95
- /**
96
- * Addenda record data associated with this ReceivedDebit.
97
- */
98
- addenda?: string;
99
- }
100
- }
101
75
  }
102
76
  }
103
77
 
@@ -76,11 +76,6 @@ declare module 'stripe' {
76
76
  */
77
77
  metadata: Stripe.Metadata;
78
78
 
79
- /**
80
- * Details about the network used for the OutboundTransfer.
81
- */
82
- network_details?: OutboundTransfer.NetworkDetails | null;
83
-
84
79
  /**
85
80
  * Details about a returned OutboundTransfer. Only set when the status is `returned`.
86
81
  */
@@ -187,27 +182,6 @@ declare module 'stripe' {
187
182
  }
188
183
  }
189
184
 
190
- interface NetworkDetails {
191
- /**
192
- * Details about an ACH transaction.
193
- */
194
- ach?: NetworkDetails.Ach | null;
195
-
196
- /**
197
- * The type of flow that originated the OutboundTransfer.
198
- */
199
- type: 'ach';
200
- }
201
-
202
- namespace NetworkDetails {
203
- interface Ach {
204
- /**
205
- * ACH Addenda record
206
- */
207
- addenda: string | null;
208
- }
209
- }
210
-
211
185
  interface ReturnedDetails {
212
186
  /**
213
187
  * Reason for the return.
@@ -44,11 +44,6 @@ declare module 'stripe' {
44
44
  */
45
45
  metadata?: Stripe.MetadataParam;
46
46
 
47
- /**
48
- * Details about the network used for the OutboundTransfer.
49
- */
50
- network_details?: OutboundTransferCreateParams.NetworkDetails;
51
-
52
47
  /**
53
48
  * Statement descriptor to be shown on the receiving end of an OutboundTransfer. Maximum 10 characters for `ach` transfers or 140 characters for `us_domestic_wire` transfers. The default value is "transfer".
54
49
  */
@@ -77,27 +72,6 @@ declare module 'stripe' {
77
72
  type Network = 'ach' | 'us_domestic_wire';
78
73
  }
79
74
  }
80
-
81
- interface NetworkDetails {
82
- /**
83
- * Optional fields for `ach`.
84
- */
85
- ach?: NetworkDetails.Ach;
86
-
87
- /**
88
- * The type of flow that originated the OutboundTransfer.
89
- */
90
- type: 'ach';
91
- }
92
-
93
- namespace NetworkDetails {
94
- interface Ach {
95
- /**
96
- * Addenda record data associated with this OutboundTransfer.
97
- */
98
- addenda?: string;
99
- }
100
- }
101
75
  }
102
76
 
103
77
  interface OutboundTransferRetrieveParams {
@@ -66,11 +66,6 @@ declare module 'stripe' {
66
66
  */
67
67
  network: ReceivedCredit.Network;
68
68
 
69
- /**
70
- * Details specific to the money movement rails.
71
- */
72
- network_details?: ReceivedCredit.NetworkDetails | null;
73
-
74
69
  /**
75
70
  * Details describing when a ReceivedCredit may be reversed.
76
71
  */
@@ -240,27 +235,6 @@ declare module 'stripe' {
240
235
 
241
236
  type Network = 'ach' | 'card' | 'stripe' | 'us_domestic_wire';
242
237
 
243
- interface NetworkDetails {
244
- /**
245
- * Details about an ACH transaction.
246
- */
247
- ach?: NetworkDetails.Ach | null;
248
-
249
- /**
250
- * The type of flow that originated the ReceivedCredit.
251
- */
252
- type: 'ach';
253
- }
254
-
255
- namespace NetworkDetails {
256
- interface Ach {
257
- /**
258
- * ACH Addenda record
259
- */
260
- addenda: string | null;
261
- }
262
- }
263
-
264
238
  interface ReversalDetails {
265
239
  /**
266
240
  * Time before which a ReceivedCredit can be reversed.
@@ -66,11 +66,6 @@ declare module 'stripe' {
66
66
  */
67
67
  network: ReceivedDebit.Network;
68
68
 
69
- /**
70
- * Details specific to the money movement rails.
71
- */
72
- network_details?: ReceivedDebit.NetworkDetails | null;
73
-
74
69
  /**
75
70
  * Details describing when a ReceivedDebit might be reversed.
76
71
  */
@@ -194,36 +189,10 @@ declare module 'stripe' {
194
189
  * Set if the ReceivedDebit was created due to a [Payout](https://stripe.com/docs/api#payouts) object.
195
190
  */
196
191
  payout: string | null;
197
-
198
- /**
199
- * The ReceivedCredit that Capital withheld from
200
- */
201
- received_credit_capital_withholding?: string | null;
202
192
  }
203
193
 
204
194
  type Network = 'ach' | 'card' | 'stripe';
205
195
 
206
- interface NetworkDetails {
207
- /**
208
- * Details about an ACH transaction.
209
- */
210
- ach?: NetworkDetails.Ach | null;
211
-
212
- /**
213
- * The type of flow that originated the ReceivedDebit.
214
- */
215
- type: 'ach';
216
- }
217
-
218
- namespace NetworkDetails {
219
- interface Ach {
220
- /**
221
- * ACH Addenda record
222
- */
223
- addenda: string | null;
224
- }
225
- }
226
-
227
196
  interface ReversalDetails {
228
197
  /**
229
198
  * Time before which a ReceivedDebit can be reversed.
@@ -152,8 +152,6 @@ declare module 'stripe' {
152
152
  | 'account.external_account.deleted'
153
153
  | 'account.external_account.updated'
154
154
  | 'account.updated'
155
- | 'account_notice.created'
156
- | 'account_notice.updated'
157
155
  | 'application_fee.created'
158
156
  | 'application_fee.refund.updated'
159
157
  | 'application_fee.refunded'
@@ -162,15 +160,6 @@ declare module 'stripe' {
162
160
  | 'billing_portal.configuration.updated'
163
161
  | 'billing_portal.session.created'
164
162
  | 'capability.updated'
165
- | 'capital.financing_offer.accepted'
166
- | 'capital.financing_offer.canceled'
167
- | 'capital.financing_offer.created'
168
- | 'capital.financing_offer.expired'
169
- | 'capital.financing_offer.fully_repaid'
170
- | 'capital.financing_offer.paid_out'
171
- | 'capital.financing_offer.rejected'
172
- | 'capital.financing_offer.replacement_created'
173
- | 'capital.financing_transaction.created'
174
163
  | 'cash_balance.funds_available'
175
164
  | 'charge.captured'
176
165
  | 'charge.dispute.closed'
@@ -211,10 +200,7 @@ declare module 'stripe' {
211
200
  | 'customer.source.deleted'
212
201
  | 'customer.source.expiring'
213
202
  | 'customer.source.updated'
214
- | 'customer.subscription.collection_paused'
215
- | 'customer.subscription.collection_resumed'
216
203
  | 'customer.subscription.created'
217
- | 'customer.subscription.custom_event'
218
204
  | 'customer.subscription.deleted'
219
205
  | 'customer.subscription.paused'
220
206
  | 'customer.subscription.pending_update_applied'
@@ -234,10 +220,8 @@ declare module 'stripe' {
234
220
  | 'financial_connections.account.disconnected'
235
221
  | 'financial_connections.account.reactivated'
236
222
  | 'financial_connections.account.refreshed_balance'
237
- | 'financial_connections.account.refreshed_inferred_balances'
238
223
  | 'financial_connections.account.refreshed_ownership'
239
224
  | 'financial_connections.account.refreshed_transactions'
240
- | 'financial_connections.session.updated'
241
225
  | 'identity.verification_session.canceled'
242
226
  | 'identity.verification_session.created'
243
227
  | 'identity.verification_session.processing'
@@ -250,7 +234,6 @@ declare module 'stripe' {
250
234
  | 'invoice.finalized'
251
235
  | 'invoice.marked_uncollectible'
252
236
  | 'invoice.paid'
253
- | 'invoice.payment.overpaid'
254
237
  | 'invoice.payment_action_required'
255
238
  | 'invoice.payment_failed'
256
239
  | 'invoice.payment_succeeded'
@@ -270,6 +253,7 @@ declare module 'stripe' {
270
253
  | 'issuing_dispute.closed'
271
254
  | 'issuing_dispute.created'
272
255
  | 'issuing_dispute.funds_reinstated'
256
+ | 'issuing_dispute.funds_rescinded'
273
257
  | 'issuing_dispute.submitted'
274
258
  | 'issuing_dispute.updated'
275
259
  | 'issuing_personalization_design.activated'
@@ -315,16 +299,10 @@ declare module 'stripe' {
315
299
  | 'product.updated'
316
300
  | 'promotion_code.created'
317
301
  | 'promotion_code.updated'
318
- | 'quote.accept_failed'
319
302
  | 'quote.accepted'
320
- | 'quote.accepting'
321
303
  | 'quote.canceled'
322
304
  | 'quote.created'
323
- | 'quote.draft'
324
305
  | 'quote.finalized'
325
- | 'quote.reestimate_failed'
326
- | 'quote.reestimated'
327
- | 'quote.stale'
328
306
  | 'radar.early_fraud_warning.created'
329
307
  | 'radar.early_fraud_warning.updated'
330
308
  | 'refund.created'
@@ -354,13 +332,11 @@ declare module 'stripe' {
354
332
  | 'subscription_schedule.expiring'
355
333
  | 'subscription_schedule.released'
356
334
  | 'subscription_schedule.updated'
357
- | 'tax.form.updated'
358
335
  | 'tax.settings.updated'
359
336
  | 'tax_rate.created'
360
337
  | 'tax_rate.updated'
361
338
  | 'terminal.reader.action_failed'
362
339
  | 'terminal.reader.action_succeeded'
363
- | 'terminal.reader.action_updated'
364
340
  | 'test_helpers.test_clock.advancing'
365
341
  | 'test_helpers.test_clock.created'
366
342
  | 'test_helpers.test_clock.deleted'
@@ -454,8 +430,6 @@ declare module 'stripe' {
454
430
  | 'account.external_account.deleted'
455
431
  | 'account.external_account.updated'
456
432
  | 'account.updated'
457
- | 'account_notice.created'
458
- | 'account_notice.updated'
459
433
  | 'application_fee.created'
460
434
  | 'application_fee.refund.updated'
461
435
  | 'application_fee.refunded'
@@ -464,15 +438,6 @@ declare module 'stripe' {
464
438
  | 'billing_portal.configuration.updated'
465
439
  | 'billing_portal.session.created'
466
440
  | 'capability.updated'
467
- | 'capital.financing_offer.accepted'
468
- | 'capital.financing_offer.canceled'
469
- | 'capital.financing_offer.created'
470
- | 'capital.financing_offer.expired'
471
- | 'capital.financing_offer.fully_repaid'
472
- | 'capital.financing_offer.paid_out'
473
- | 'capital.financing_offer.rejected'
474
- | 'capital.financing_offer.replacement_created'
475
- | 'capital.financing_transaction.created'
476
441
  | 'cash_balance.funds_available'
477
442
  | 'charge.captured'
478
443
  | 'charge.dispute.closed'
@@ -513,10 +478,7 @@ declare module 'stripe' {
513
478
  | 'customer.source.deleted'
514
479
  | 'customer.source.expiring'
515
480
  | 'customer.source.updated'
516
- | 'customer.subscription.collection_paused'
517
- | 'customer.subscription.collection_resumed'
518
481
  | 'customer.subscription.created'
519
- | 'customer.subscription.custom_event'
520
482
  | 'customer.subscription.deleted'
521
483
  | 'customer.subscription.paused'
522
484
  | 'customer.subscription.pending_update_applied'
@@ -536,10 +498,8 @@ declare module 'stripe' {
536
498
  | 'financial_connections.account.disconnected'
537
499
  | 'financial_connections.account.reactivated'
538
500
  | 'financial_connections.account.refreshed_balance'
539
- | 'financial_connections.account.refreshed_inferred_balances'
540
501
  | 'financial_connections.account.refreshed_ownership'
541
502
  | 'financial_connections.account.refreshed_transactions'
542
- | 'financial_connections.session.updated'
543
503
  | 'identity.verification_session.canceled'
544
504
  | 'identity.verification_session.created'
545
505
  | 'identity.verification_session.processing'
@@ -552,7 +512,6 @@ declare module 'stripe' {
552
512
  | 'invoice.finalized'
553
513
  | 'invoice.marked_uncollectible'
554
514
  | 'invoice.paid'
555
- | 'invoice.payment.overpaid'
556
515
  | 'invoice.payment_action_required'
557
516
  | 'invoice.payment_failed'
558
517
  | 'invoice.payment_succeeded'
@@ -572,6 +531,7 @@ declare module 'stripe' {
572
531
  | 'issuing_dispute.closed'
573
532
  | 'issuing_dispute.created'
574
533
  | 'issuing_dispute.funds_reinstated'
534
+ | 'issuing_dispute.funds_rescinded'
575
535
  | 'issuing_dispute.submitted'
576
536
  | 'issuing_dispute.updated'
577
537
  | 'issuing_personalization_design.activated'
@@ -617,16 +577,10 @@ declare module 'stripe' {
617
577
  | 'product.updated'
618
578
  | 'promotion_code.created'
619
579
  | 'promotion_code.updated'
620
- | 'quote.accept_failed'
621
580
  | 'quote.accepted'
622
- | 'quote.accepting'
623
581
  | 'quote.canceled'
624
582
  | 'quote.created'
625
- | 'quote.draft'
626
583
  | 'quote.finalized'
627
- | 'quote.reestimate_failed'
628
- | 'quote.reestimated'
629
- | 'quote.stale'
630
584
  | 'radar.early_fraud_warning.created'
631
585
  | 'radar.early_fraud_warning.updated'
632
586
  | 'refund.created'
@@ -656,13 +610,11 @@ declare module 'stripe' {
656
610
  | 'subscription_schedule.expiring'
657
611
  | 'subscription_schedule.released'
658
612
  | 'subscription_schedule.updated'
659
- | 'tax.form.updated'
660
613
  | 'tax.settings.updated'
661
614
  | 'tax_rate.created'
662
615
  | 'tax_rate.updated'
663
616
  | 'terminal.reader.action_failed'
664
617
  | 'terminal.reader.action_succeeded'
665
- | 'terminal.reader.action_updated'
666
618
  | 'test_helpers.test_clock.advancing'
667
619
  | 'test_helpers.test_clock.created'
668
620
  | 'test_helpers.test_clock.deleted'
package/types/index.d.ts CHANGED
@@ -10,7 +10,6 @@
10
10
  ///<reference path='./Deprecations.d.ts' />
11
11
  // Imports: The beginning of the section generated from our OpenAPI spec
12
12
  ///<reference path='./AccountLinksResource.d.ts' />
13
- ///<reference path='./AccountNoticesResource.d.ts' />
14
13
  ///<reference path='./AccountSessionsResource.d.ts' />
15
14
  ///<reference path='./AccountsResource.d.ts' />
16
15
  ///<reference path='./ApplePayDomainsResource.d.ts' />
@@ -23,9 +22,6 @@
23
22
  ///<reference path='./Billing/MetersResource.d.ts' />
24
23
  ///<reference path='./BillingPortal/ConfigurationsResource.d.ts' />
25
24
  ///<reference path='./BillingPortal/SessionsResource.d.ts' />
26
- ///<reference path='./Capital/FinancingOffersResource.d.ts' />
27
- ///<reference path='./Capital/FinancingSummaryResource.d.ts' />
28
- ///<reference path='./Capital/FinancingTransactionsResource.d.ts' />
29
25
  ///<reference path='./ChargesResource.d.ts' />
30
26
  ///<reference path='./Checkout/SessionsResource.d.ts' />
31
27
  ///<reference path='./Climate/OrdersResource.d.ts' />
@@ -46,12 +42,9 @@
46
42
  ///<reference path='./FileLinksResource.d.ts' />
47
43
  ///<reference path='./FilesResource.d.ts' />
48
44
  ///<reference path='./FinancialConnections/AccountsResource.d.ts' />
49
- ///<reference path='./FinancialConnections/InstitutionsResource.d.ts' />
50
45
  ///<reference path='./FinancialConnections/SessionsResource.d.ts' />
51
46
  ///<reference path='./FinancialConnections/TransactionsResource.d.ts' />
52
47
  ///<reference path='./Forwarding/RequestsResource.d.ts' />
53
- ///<reference path='./GiftCards/CardsResource.d.ts' />
54
- ///<reference path='./GiftCards/TransactionsResource.d.ts' />
55
48
  ///<reference path='./Identity/VerificationReportsResource.d.ts' />
56
49
  ///<reference path='./Identity/VerificationSessionsResource.d.ts' />
57
50
  ///<reference path='./InvoiceItemsResource.d.ts' />
@@ -59,15 +52,12 @@
59
52
  ///<reference path='./Issuing/AuthorizationsResource.d.ts' />
60
53
  ///<reference path='./Issuing/CardholdersResource.d.ts' />
61
54
  ///<reference path='./Issuing/CardsResource.d.ts' />
62
- ///<reference path='./Issuing/CreditUnderwritingRecordsResource.d.ts' />
63
55
  ///<reference path='./Issuing/DisputesResource.d.ts' />
64
56
  ///<reference path='./Issuing/PersonalizationDesignsResource.d.ts' />
65
57
  ///<reference path='./Issuing/PhysicalBundlesResource.d.ts' />
66
58
  ///<reference path='./Issuing/TokensResource.d.ts' />
67
59
  ///<reference path='./Issuing/TransactionsResource.d.ts' />
68
60
  ///<reference path='./MandatesResource.d.ts' />
69
- ///<reference path='./MarginsResource.d.ts' />
70
- ///<reference path='./OrdersResource.d.ts' />
71
61
  ///<reference path='./PaymentIntentsResource.d.ts' />
72
62
  ///<reference path='./PaymentLinksResource.d.ts' />
73
63
  ///<reference path='./PaymentMethodConfigurationsResource.d.ts' />
@@ -78,7 +68,6 @@
78
68
  ///<reference path='./PricesResource.d.ts' />
79
69
  ///<reference path='./ProductsResource.d.ts' />
80
70
  ///<reference path='./PromotionCodesResource.d.ts' />
81
- ///<reference path='./QuotePhasesResource.d.ts' />
82
71
  ///<reference path='./QuotesResource.d.ts' />
83
72
  ///<reference path='./Radar/EarlyFraudWarningsResource.d.ts' />
84
73
  ///<reference path='./Radar/ValueListItemsResource.d.ts' />
@@ -96,7 +85,6 @@
96
85
  ///<reference path='./SubscriptionSchedulesResource.d.ts' />
97
86
  ///<reference path='./SubscriptionsResource.d.ts' />
98
87
  ///<reference path='./Tax/CalculationsResource.d.ts' />
99
- ///<reference path='./Tax/FormsResource.d.ts' />
100
88
  ///<reference path='./Tax/RegistrationsResource.d.ts' />
101
89
  ///<reference path='./Tax/SettingsResource.d.ts' />
102
90
  ///<reference path='./Tax/TransactionsResource.d.ts' />
@@ -136,7 +124,6 @@
136
124
  ///<reference path='./Treasury/TransactionsResource.d.ts' />
137
125
  ///<reference path='./WebhookEndpointsResource.d.ts' />
138
126
  ///<reference path='./AccountLinks.d.ts' />
139
- ///<reference path='./AccountNotices.d.ts' />
140
127
  ///<reference path='./AccountSessions.d.ts' />
141
128
  ///<reference path='./Accounts.d.ts' />
142
129
  ///<reference path='./ApplePayDomains.d.ts' />
@@ -154,9 +141,6 @@
154
141
  ///<reference path='./BillingPortal/Configurations.d.ts' />
155
142
  ///<reference path='./BillingPortal/Sessions.d.ts' />
156
143
  ///<reference path='./Capabilities.d.ts' />
157
- ///<reference path='./Capital/FinancingOffers.d.ts' />
158
- ///<reference path='./Capital/FinancingSummary.d.ts' />
159
- ///<reference path='./Capital/FinancingTransactions.d.ts' />
160
144
  ///<reference path='./Cards.d.ts' />
161
145
  ///<reference path='./CashBalances.d.ts' />
162
146
  ///<reference path='./Charges.d.ts' />
@@ -187,27 +171,21 @@
187
171
  ///<reference path='./FeeRefunds.d.ts' />
188
172
  ///<reference path='./FileLinks.d.ts' />
189
173
  ///<reference path='./Files.d.ts' />
190
- ///<reference path='./FinancialConnections/AccountInferredBalances.d.ts' />
191
174
  ///<reference path='./FinancialConnections/AccountOwners.d.ts' />
192
175
  ///<reference path='./FinancialConnections/AccountOwnerships.d.ts' />
193
176
  ///<reference path='./FinancialConnections/Accounts.d.ts' />
194
- ///<reference path='./FinancialConnections/Institutions.d.ts' />
195
177
  ///<reference path='./FinancialConnections/Sessions.d.ts' />
196
178
  ///<reference path='./FinancialConnections/Transactions.d.ts' />
197
179
  ///<reference path='./Forwarding/Requests.d.ts' />
198
180
  ///<reference path='./FundingInstructions.d.ts' />
199
- ///<reference path='./GiftCards/Cards.d.ts' />
200
- ///<reference path='./GiftCards/Transactions.d.ts' />
201
181
  ///<reference path='./Identity/VerificationReports.d.ts' />
202
182
  ///<reference path='./Identity/VerificationSessions.d.ts' />
203
183
  ///<reference path='./InvoiceItems.d.ts' />
204
184
  ///<reference path='./InvoiceLineItems.d.ts' />
205
- ///<reference path='./InvoicePayments.d.ts' />
206
185
  ///<reference path='./Invoices.d.ts' />
207
186
  ///<reference path='./Issuing/Authorizations.d.ts' />
208
187
  ///<reference path='./Issuing/Cardholders.d.ts' />
209
188
  ///<reference path='./Issuing/Cards.d.ts' />
210
- ///<reference path='./Issuing/CreditUnderwritingRecords.d.ts' />
211
189
  ///<reference path='./Issuing/Disputes.d.ts' />
212
190
  ///<reference path='./Issuing/PersonalizationDesigns.d.ts' />
213
191
  ///<reference path='./Issuing/PhysicalBundles.d.ts' />
@@ -216,8 +194,6 @@
216
194
  ///<reference path='./LineItems.d.ts' />
217
195
  ///<reference path='./LoginLinks.d.ts' />
218
196
  ///<reference path='./Mandates.d.ts' />
219
- ///<reference path='./Margins.d.ts' />
220
- ///<reference path='./Orders.d.ts' />
221
197
  ///<reference path='./PaymentIntents.d.ts' />
222
198
  ///<reference path='./PaymentLinks.d.ts' />
223
199
  ///<reference path='./PaymentMethodConfigurations.d.ts' />
@@ -230,10 +206,6 @@
230
206
  ///<reference path='./ProductFeatures.d.ts' />
231
207
  ///<reference path='./Products.d.ts' />
232
208
  ///<reference path='./PromotionCodes.d.ts' />
233
- ///<reference path='./QuoteLines.d.ts' />
234
- ///<reference path='./QuotePhases.d.ts' />
235
- ///<reference path='./QuotePreviewInvoices.d.ts' />
236
- ///<reference path='./QuotePreviewSubscriptionSchedules.d.ts' />
237
209
  ///<reference path='./Quotes.d.ts' />
238
210
  ///<reference path='./Radar/EarlyFraudWarnings.d.ts' />
239
211
  ///<reference path='./Radar/ValueListItems.d.ts' />
@@ -255,7 +227,6 @@
255
227
  ///<reference path='./Subscriptions.d.ts' />
256
228
  ///<reference path='./Tax/CalculationLineItems.d.ts' />
257
229
  ///<reference path='./Tax/Calculations.d.ts' />
258
- ///<reference path='./Tax/Forms.d.ts' />
259
230
  ///<reference path='./Tax/Registrations.d.ts' />
260
231
  ///<reference path='./Tax/Settings.d.ts' />
261
232
  ///<reference path='./Tax/TransactionLineItems.d.ts' />
@@ -308,7 +279,6 @@ declare module 'stripe' {
308
279
 
309
280
  // Fields: The beginning of the section generated from our OpenAPI spec
310
281
  accountLinks: Stripe.AccountLinksResource;
311
- accountNotices: Stripe.AccountNoticesResource;
312
282
  accountSessions: Stripe.AccountSessionsResource;
313
283
  accounts: Stripe.AccountsResource;
314
284
  applePayDomains: Stripe.ApplePayDomainsResource;
@@ -331,8 +301,6 @@ declare module 'stripe' {
331
301
  invoiceItems: Stripe.InvoiceItemsResource;
332
302
  invoices: Stripe.InvoicesResource;
333
303
  mandates: Stripe.MandatesResource;
334
- margins: Stripe.MarginsResource;
335
- orders: Stripe.OrdersResource;
336
304
  paymentIntents: Stripe.PaymentIntentsResource;
337
305
  paymentLinks: Stripe.PaymentLinksResource;
338
306
  paymentMethodConfigurations: Stripe.PaymentMethodConfigurationsResource;
@@ -343,7 +311,6 @@ declare module 'stripe' {
343
311
  prices: Stripe.PricesResource;
344
312
  products: Stripe.ProductsResource;
345
313
  promotionCodes: Stripe.PromotionCodesResource;
346
- quotePhases: Stripe.QuotePhasesResource;
347
314
  quotes: Stripe.QuotesResource;
348
315
  refunds: Stripe.RefundsResource;
349
316
  reviews: Stripe.ReviewsResource;
@@ -373,11 +340,6 @@ declare module 'stripe' {
373
340
  configurations: Stripe.BillingPortal.ConfigurationsResource;
374
341
  sessions: Stripe.BillingPortal.SessionsResource;
375
342
  };
376
- capital: {
377
- financingOffers: Stripe.Capital.FinancingOffersResource;
378
- financingSummary: Stripe.Capital.FinancingSummaryResource;
379
- financingTransactions: Stripe.Capital.FinancingTransactionsResource;
380
- };
381
343
  checkout: {
382
344
  sessions: Stripe.Checkout.SessionsResource;
383
345
  };
@@ -392,17 +354,12 @@ declare module 'stripe' {
392
354
  };
393
355
  financialConnections: {
394
356
  accounts: Stripe.FinancialConnections.AccountsResource;
395
- institutions: Stripe.FinancialConnections.InstitutionsResource;
396
357
  sessions: Stripe.FinancialConnections.SessionsResource;
397
358
  transactions: Stripe.FinancialConnections.TransactionsResource;
398
359
  };
399
360
  forwarding: {
400
361
  requests: Stripe.Forwarding.RequestsResource;
401
362
  };
402
- giftCards: {
403
- cards: Stripe.GiftCards.CardsResource;
404
- transactions: Stripe.GiftCards.TransactionsResource;
405
- };
406
363
  identity: {
407
364
  verificationReports: Stripe.Identity.VerificationReportsResource;
408
365
  verificationSessions: Stripe.Identity.VerificationSessionsResource;
@@ -411,7 +368,6 @@ declare module 'stripe' {
411
368
  authorizations: Stripe.Issuing.AuthorizationsResource;
412
369
  cards: Stripe.Issuing.CardsResource;
413
370
  cardholders: Stripe.Issuing.CardholdersResource;
414
- creditUnderwritingRecords: Stripe.Issuing.CreditUnderwritingRecordsResource;
415
371
  disputes: Stripe.Issuing.DisputesResource;
416
372
  personalizationDesigns: Stripe.Issuing.PersonalizationDesignsResource;
417
373
  physicalBundles: Stripe.Issuing.PhysicalBundlesResource;
@@ -432,7 +388,6 @@ declare module 'stripe' {
432
388
  };
433
389
  tax: {
434
390
  calculations: Stripe.Tax.CalculationsResource;
435
- forms: Stripe.Tax.FormsResource;
436
391
  registrations: Stripe.Tax.RegistrationsResource;
437
392
  settings: Stripe.Tax.SettingsResource;
438
393
  transactions: Stripe.Tax.TransactionsResource;
@@ -497,25 +452,6 @@ declare module 'stripe' {
497
452
  event: 'response',
498
453
  handler: (event: Stripe.ResponseEvent) => void
499
454
  ): void;
500
-
501
- /**
502
- * Allows for sending "raw" requests to the Stripe API, which can be used for
503
- * testing new API endpoints or performing requests that the library does
504
- * not support yet.
505
- *
506
- * This is an experimental interface and is not yet stable.
507
- *
508
- * @param method - HTTP request method, 'GET', 'POST', or 'DELETE'
509
- * @param path - The path of the request, e.g. '/v1/beta_endpoint'
510
- * @param params - The parameters to include in the request body.
511
- * @param options - Additional request options.
512
- */
513
- rawRequest(
514
- method: string,
515
- path: string,
516
- params?: {[key: string]: unknown},
517
- options?: Stripe.RawRequestOptions
518
- ): Promise<Stripe.Response<unknown>>;
519
455
  }
520
456
 
521
457
  export default Stripe;
package/types/lib.d.ts CHANGED
@@ -153,18 +153,6 @@ declare module 'stripe' {
153
153
  host?: string;
154
154
  }
155
155
 
156
- export type RawRequestOptions = RequestOptions & {
157
- /**
158
- * Specify encoding for the request body. This is an experimental interface and is not yet stable.
159
- */
160
- apiMode?: 'standard' | 'preview';
161
-
162
- /**
163
- * Specify additional request headers. This is an experimental interface and is not yet stable.
164
- */
165
- additionalHeaders?: {[headerName: string]: string};
166
- };
167
-
168
156
  export type Response<T> = T & {
169
157
  lastResponse: {
170
158
  headers: {[key: string]: string};
@@ -1,21 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.AccountNotices = void 0;
5
- const StripeResource_js_1 = require("../StripeResource.js");
6
- const stripeMethod = StripeResource_js_1.StripeResource.method;
7
- exports.AccountNotices = StripeResource_js_1.StripeResource.extend({
8
- retrieve: stripeMethod({
9
- method: 'GET',
10
- fullPath: '/v1/account_notices/{account_notice}',
11
- }),
12
- update: stripeMethod({
13
- method: 'POST',
14
- fullPath: '/v1/account_notices/{account_notice}',
15
- }),
16
- list: stripeMethod({
17
- method: 'GET',
18
- fullPath: '/v1/account_notices',
19
- methodType: 'list',
20
- }),
21
- });