stripe 14.25.0 → 15.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.
package/CHANGELOG.md CHANGED
@@ -1,36 +1,84 @@
1
1
  # Changelog
2
2
 
3
+ ## 15.0.0 - 2024-04-10
4
+ * [#2057](https://github.com/stripe/stripe-node/pull/2057)
5
+
6
+ * This release changes the pinned API version to `2024-04-10`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-04-10) and carefully review the API changes before upgrading.
7
+
8
+ ### ⚠️ Breaking changes
9
+
10
+ * Rename event type `InvoiceitemCreatedEvent` to `InvoiceItemCreatedEvent`
11
+ * Rename event type `InvoiceitemDeletedEvent` to `InvoiceItemDeletedEvent`
12
+ * Rename `features` to `marketing_features` on `ProductCreateOptions`, `ProductUpdateOptions`, and `Product`.
13
+
14
+ #### ⚠️ Removal of enum values, properties and events that are no longer part of the publicly documented Stripe API
15
+
16
+ * Remove `subscription_pause` from the below as the feature to pause subscription on the portal has been deprecated.
17
+ * `BillingPortal.Configuration.Features`
18
+ * `BillingPortal.ConfigurationCreateParams.Features`
19
+ * `BillingPortal.ConfigurationUpdateParams.Features`
20
+ * Remove the below deprecated values for the type `BalanceTransaction.Type`
21
+ * `obligation_inbound`
22
+ * `obligation_payout`
23
+ * `obligation_payout_failure`
24
+ * `'obligation_reversal_outbound'`
25
+ * Remove deprecated value `various` for the type `Climate.Supplier.RemovalPathway`
26
+ * Remove deprecated events
27
+ * `invoiceitem.updated`
28
+ * `order.created`
29
+ * `recipient.created`
30
+ * `recipient.deleted`
31
+ * `recipient.updated`
32
+ * `sku.created`
33
+ * `sku.deleted`
34
+ * `sku.updated`
35
+ * Remove types for the deprecated events
36
+ * `InvoiceItemUpdatedEvent`
37
+ * `OrderCreatedEvent`
38
+ * `RecipientCreatedEvent`
39
+ * `RecipientDeletedEvent`
40
+ * `RecipientUpdatedEvent`
41
+ * `SKUCreatedEvent`
42
+ * `SKUDeletedEvent`
43
+ * Remove the deprecated value `include_and_require` for the type`InvoiceCreateParams.PendingInvoiceItemsBehavior`
44
+ * Remove the deprecated value `service_tax` for the types `TaxRate.TaxType`, `TaxRateCreateParams.TaxType`, `TaxRateUpdateParams.TaxType`, and `InvoiceUpdateLineItemParams.TaxAmount.TaxRateData`
45
+ * Remove `request_incremental_authorization` from `PaymentIntentCreateParams.PaymentMethodOptions.CardPresent`, `PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent` and `PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent`
46
+ * Remove support for `id_bank_transfer`, `multibanco`, `netbanking`, `pay_by_bank`, and `upi` on `PaymentMethodConfiguration`
47
+ * Remove the deprecated value `obligation` for the type `Reporting.ReportRunCreateParams.Parameters.ReportingCategory`
48
+ * Remove the deprecated value `challenge_only` from the type `SetupIntent.PaymentMethodOptions.Card.RequestThreeDSecure`
49
+ * Remove the legacy field `rendering_options` in `Invoice`, `InvoiceCreateOptions` and `InvoiceUpdateOptions`. Use `rendering` instead.
50
+
3
51
  ## 14.25.0 - 2024-04-09
4
52
  * [#2059](https://github.com/stripe/stripe-node/pull/2059) Update generated code
5
- * Add support for new resources `Entitlements.ActiveEntitlement` and `Entitlements.Feature`
6
- * Add support for `list` and `retrieve` methods on resource `ActiveEntitlement`
7
- * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Feature`
8
- * Add support for `controller` on `AccountCreateParams`
9
- * Add support for `fees`, `losses`, `requirement_collection`, and `stripe_dashboard` on `Account.controller`
10
- * Add support for new value `none` on enum `Account.type`
11
- * Add support for `event_name` on `Billing.MeterEventAdjustmentCreateParams` and `Billing.MeterEventAdjustment`
12
- * Add support for `cancel` and `type` on `Billing.MeterEventAdjustment`
13
-
53
+ * Add support for new resources `Entitlements.ActiveEntitlement` and `Entitlements.Feature`
54
+ * Add support for `list` and `retrieve` methods on resource `ActiveEntitlement`
55
+ * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Feature`
56
+ * Add support for `controller` on `AccountCreateParams`
57
+ * Add support for `fees`, `losses`, `requirement_collection`, and `stripe_dashboard` on `Account.controller`
58
+ * Add support for new value `none` on enum `Account.type`
59
+ * Add support for `event_name` on `Billing.MeterEventAdjustmentCreateParams` and `Billing.MeterEventAdjustment`
60
+ * Add support for `cancel` and `type` on `Billing.MeterEventAdjustment`
61
+
14
62
 
15
63
  ## 14.24.0 - 2024-04-04
16
64
  * [#2053](https://github.com/stripe/stripe-node/pull/2053) Update generated code
17
- * Change `Charge.payment_method_details.us_bank_account.payment_reference`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.hosted_instructions_url`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.mobile_auth_url`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.data`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.image_url_png`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.image_url_svg`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code`, and `PaymentIntent.payment_method_options.swish.reference` to be required
18
- * Change type of `Checkout.SessionCreateParams.payment_method_options.swish.reference` from `emptyable(string)` to `string`
19
- * Add support for `subscription_item` on `Discount`
20
- * Add support for `email` and `phone` on `Identity.VerificationReport`, `Identity.VerificationSession.options`, `Identity.VerificationSession.verified_outputs`, `Identity.VerificationSessionCreateParams.options`, and `Identity.VerificationSessionUpdateParams.options`
21
- * Add support for `verification_flow` on `Identity.VerificationReport`, `Identity.VerificationSessionCreateParams`, and `Identity.VerificationSession`
22
- * Add support for new value `verification_flow` on enums `Identity.VerificationReport.type` and `Identity.VerificationSession.type`
23
- * Add support for `provided_details` on `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionUpdateParams`, and `Identity.VerificationSession`
24
- * Change `Identity.VerificationSessionCreateParams.type` to be optional
25
- * Add support for new values `email_unverified_other`, `email_verification_declined`, `phone_unverified_other`, and `phone_verification_declined` on enum `Identity.VerificationSession.last_error.code`
26
- * Add support for `promotion_code` on `InvoiceCreateParams.discounts[]`, `InvoiceItemCreateParams.discounts[]`, `InvoiceItemUpdateParams.discounts[]`, `InvoiceUpdateParams.discounts[]`, `QuoteCreateParams.discounts[]`, and `QuoteUpdateParams.discounts[]`
27
- * Add support for `discounts` on `InvoiceUpcomingLinesParams.subscription_items[]`, `InvoiceUpcomingParams.subscription_items[]`, `QuoteCreateParams.line_items[]`, `QuoteUpdateParams.line_items[]`, `SubscriptionCreateParams.add_invoice_items[]`, `SubscriptionCreateParams.items[]`, `SubscriptionCreateParams`, `SubscriptionItemCreateParams`, `SubscriptionItemUpdateParams`, `SubscriptionItem`, `SubscriptionSchedule.phases[].add_invoice_items[]`, `SubscriptionSchedule.phases[].items[]`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleCreateParams.phases[].items[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleUpdateParams.phases[].items[]`, `SubscriptionScheduleUpdateParams.phases[]`, `SubscriptionUpdateParams.add_invoice_items[]`, `SubscriptionUpdateParams.items[]`, `SubscriptionUpdateParams`, and `Subscription`
28
- * Change type of `Invoice.discounts` from `array(expandable(deletable($Discount))) | null` to `array(expandable(deletable($Discount)))`
29
- * Add support for `allowed_merchant_countries` and `blocked_merchant_countries` on `Issuing.Card.spending_controls`, `Issuing.CardCreateParams.spending_controls`, `Issuing.CardUpdateParams.spending_controls`, `Issuing.Cardholder.spending_controls`, `Issuing.CardholderCreateParams.spending_controls`, and `Issuing.CardholderUpdateParams.spending_controls`
30
- * Add support for `zip` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
31
- * Add support for `offline` on `SetupAttempt.payment_method_details.card_present`
32
- * Add support for `card_present` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options`
33
- * Add support for new value `mobile_phone_reader` on enums `Terminal.Reader.device_type` and `Terminal.ReaderListParams.device_type`
65
+ * Change `Charge.payment_method_details.us_bank_account.payment_reference`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.hosted_instructions_url`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.mobile_auth_url`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.data`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.image_url_png`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.image_url_svg`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code`, and `PaymentIntent.payment_method_options.swish.reference` to be required
66
+ * Change type of `Checkout.SessionCreateParams.payment_method_options.swish.reference` from `emptyable(string)` to `string`
67
+ * Add support for `subscription_item` on `Discount`
68
+ * Add support for `email` and `phone` on `Identity.VerificationReport`, `Identity.VerificationSession.options`, `Identity.VerificationSession.verified_outputs`, `Identity.VerificationSessionCreateParams.options`, and `Identity.VerificationSessionUpdateParams.options`
69
+ * Add support for `verification_flow` on `Identity.VerificationReport`, `Identity.VerificationSessionCreateParams`, and `Identity.VerificationSession`
70
+ * Add support for new value `verification_flow` on enums `Identity.VerificationReport.type` and `Identity.VerificationSession.type`
71
+ * Add support for `provided_details` on `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionUpdateParams`, and `Identity.VerificationSession`
72
+ * Change `Identity.VerificationSessionCreateParams.type` to be optional
73
+ * Add support for new values `email_unverified_other`, `email_verification_declined`, `phone_unverified_other`, and `phone_verification_declined` on enum `Identity.VerificationSession.last_error.code`
74
+ * Add support for `promotion_code` on `InvoiceCreateParams.discounts[]`, `InvoiceItemCreateParams.discounts[]`, `InvoiceItemUpdateParams.discounts[]`, `InvoiceUpdateParams.discounts[]`, `QuoteCreateParams.discounts[]`, and `QuoteUpdateParams.discounts[]`
75
+ * Add support for `discounts` on `InvoiceUpcomingLinesParams.subscription_items[]`, `InvoiceUpcomingParams.subscription_items[]`, `QuoteCreateParams.line_items[]`, `QuoteUpdateParams.line_items[]`, `SubscriptionCreateParams.add_invoice_items[]`, `SubscriptionCreateParams.items[]`, `SubscriptionCreateParams`, `SubscriptionItemCreateParams`, `SubscriptionItemUpdateParams`, `SubscriptionItem`, `SubscriptionSchedule.phases[].add_invoice_items[]`, `SubscriptionSchedule.phases[].items[]`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleCreateParams.phases[].items[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleUpdateParams.phases[].items[]`, `SubscriptionScheduleUpdateParams.phases[]`, `SubscriptionUpdateParams.add_invoice_items[]`, `SubscriptionUpdateParams.items[]`, `SubscriptionUpdateParams`, and `Subscription`
76
+ * Change type of `Invoice.discounts` from `array(expandable(deletable($Discount))) | null` to `array(expandable(deletable($Discount)))`
77
+ * Add support for `allowed_merchant_countries` and `blocked_merchant_countries` on `Issuing.Card.spending_controls`, `Issuing.CardCreateParams.spending_controls`, `Issuing.CardUpdateParams.spending_controls`, `Issuing.Cardholder.spending_controls`, `Issuing.CardholderCreateParams.spending_controls`, and `Issuing.CardholderUpdateParams.spending_controls`
78
+ * Add support for `zip` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
79
+ * Add support for `offline` on `SetupAttempt.payment_method_details.card_present`
80
+ * Add support for `card_present` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options`
81
+ * Add support for new value `mobile_phone_reader` on enums `Terminal.Reader.device_type` and `Terminal.ReaderListParams.device_type`
34
82
 
35
83
  ## 14.23.0 - 2024-03-28
36
84
  * [#2046](https://github.com/stripe/stripe-node/pull/2046) Update generated code
package/VERSION CHANGED
@@ -1 +1 @@
1
- 14.25.0
1
+ 15.0.0
package/cjs/apiVersion.js CHANGED
@@ -2,4 +2,4 @@
2
2
  // File generated from our OpenAPI spec
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ApiVersion = void 0;
5
- exports.ApiVersion = '2023-10-16';
5
+ exports.ApiVersion = '2024-04-10';
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
34
34
  ];
35
35
  const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
36
36
  function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
37
- Stripe.PACKAGE_VERSION = '14.25.0';
37
+ Stripe.PACKAGE_VERSION = '15.0.0';
38
38
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
39
39
  Stripe.StripeResource = StripeResource_js_1.StripeResource;
40
40
  Stripe.resources = resources;
package/esm/apiVersion.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // File generated from our OpenAPI spec
2
- export const ApiVersion = '2023-10-16';
2
+ export const ApiVersion = '2024-04-10';
@@ -31,7 +31,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
31
31
  ];
32
32
  const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
33
33
  export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
34
- Stripe.PACKAGE_VERSION = '14.25.0';
34
+ Stripe.PACKAGE_VERSION = '15.0.0';
35
35
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
36
36
  Stripe.StripeResource = StripeResource;
37
37
  Stripe.resources = resources;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "14.25.0",
3
+ "version": "15.0.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -153,11 +153,7 @@ declare module 'stripe' {
153
153
  | 'transfer'
154
154
  | 'transfer_cancel'
155
155
  | 'transfer_failure'
156
- | 'transfer_refund'
157
- | 'obligation_inbound'
158
- | 'obligation_payout'
159
- | 'obligation_payout_failure'
160
- | 'obligation_reversal_outbound';
156
+ | 'transfer_refund';
161
157
  }
162
158
  }
163
159
  }
@@ -96,8 +96,6 @@ declare module 'stripe' {
96
96
  subscription_cancel: Features.SubscriptionCancel;
97
97
 
98
98
  subscription_update: Features.SubscriptionUpdate;
99
-
100
- subscription_pause: Features.SubscriptionPause;
101
99
  }
102
100
 
103
101
  namespace Features {
@@ -189,13 +187,6 @@ declare module 'stripe' {
189
187
  | 'none';
190
188
  }
191
189
 
192
- interface SubscriptionPause {
193
- /**
194
- * Whether the feature is enabled.
195
- */
196
- enabled: boolean;
197
- }
198
-
199
190
  interface SubscriptionUpdate {
200
191
  /**
201
192
  * The types of subscription updates that are supported for items listed in the `products` attribute. When empty, subscriptions are not updateable.
@@ -78,11 +78,6 @@ declare module 'stripe' {
78
78
  * Information about updating subscriptions in the portal.
79
79
  */
80
80
  subscription_update?: Features.SubscriptionUpdate;
81
-
82
- /**
83
- * Information about pausing subscriptions in the portal.
84
- */
85
- subscription_pause?: Features.SubscriptionPause;
86
81
  }
87
82
 
88
83
  namespace Features {
@@ -179,13 +174,6 @@ declare module 'stripe' {
179
174
  | 'none';
180
175
  }
181
176
 
182
- interface SubscriptionPause {
183
- /**
184
- * Whether the feature is enabled.
185
- */
186
- enabled: boolean;
187
- }
188
-
189
177
  interface SubscriptionUpdate {
190
178
  /**
191
179
  * The types of subscription updates that are supported. When empty, subscriptions are not updateable.
@@ -327,11 +315,6 @@ declare module 'stripe' {
327
315
  * Information about updating subscriptions in the portal.
328
316
  */
329
317
  subscription_update?: Features.SubscriptionUpdate;
330
-
331
- /**
332
- * Information about pausing subscriptions in the portal.
333
- */
334
- subscription_pause?: Features.SubscriptionPause;
335
318
  }
336
319
 
337
320
  namespace Features {
@@ -428,13 +411,6 @@ declare module 'stripe' {
428
411
  | 'none';
429
412
  }
430
413
 
431
- interface SubscriptionPause {
432
- /**
433
- * Whether the feature is enabled.
434
- */
435
- enabled: boolean;
436
- }
437
-
438
414
  interface SubscriptionUpdate {
439
415
  /**
440
416
  * The types of subscription updates that are supported. When empty, subscriptions are not updateable.
@@ -74,8 +74,7 @@ declare module 'stripe' {
74
74
  type RemovalPathway =
75
75
  | 'biomass_carbon_removal_and_storage'
76
76
  | 'direct_air_capture'
77
- | 'enhanced_weathering'
78
- | 'various';
77
+ | 'enhanced_weathering';
79
78
  }
80
79
  }
81
80
  }
@@ -97,8 +97,8 @@ declare module 'stripe' {
97
97
  | InvoiceUpcomingEvent
98
98
  | InvoiceUpdatedEvent
99
99
  | InvoiceVoidedEvent
100
- | InvoiceitemCreatedEvent
101
- | InvoiceitemDeletedEvent
100
+ | InvoiceItemCreatedEvent
101
+ | InvoiceItemDeletedEvent
102
102
  | IssuingAuthorizationCreatedEvent
103
103
  | IssuingAuthorizationRequestEvent
104
104
  | IssuingAuthorizationUpdatedEvent
@@ -228,15 +228,7 @@ declare module 'stripe' {
228
228
  | TreasuryReceivedCreditCreatedEvent
229
229
  | TreasuryReceivedCreditFailedEvent
230
230
  | TreasuryReceivedCreditSucceededEvent
231
- | TreasuryReceivedDebitCreatedEvent
232
- | InvoiceitemUpdatedEvent
233
- | OrderCreatedEvent
234
- | RecipientCreatedEvent
235
- | RecipientDeletedEvent
236
- | RecipientUpdatedEvent
237
- | SkuCreatedEvent
238
- | SkuDeletedEvent
239
- | SkuUpdatedEvent;
231
+ | TreasuryReceivedDebitCreatedEvent;
240
232
 
241
233
  /**
242
234
  * Occurs whenever a user authorizes an application. Sent to the related application only.
@@ -1748,12 +1740,12 @@ declare module 'stripe' {
1748
1740
  /**
1749
1741
  * Occurs whenever an invoice item is created.
1750
1742
  */
1751
- interface InvoiceitemCreatedEvent extends EventBase {
1743
+ interface InvoiceItemCreatedEvent extends EventBase {
1752
1744
  type: 'invoiceitem.created';
1753
- data: InvoiceitemCreatedEvent.Data;
1745
+ data: InvoiceItemCreatedEvent.Data;
1754
1746
  }
1755
1747
 
1756
- namespace InvoiceitemCreatedEvent {
1748
+ namespace InvoiceItemCreatedEvent {
1757
1749
  interface Data extends Stripe.Event.Data {
1758
1750
  object: Stripe.InvoiceItem;
1759
1751
 
@@ -1764,12 +1756,12 @@ declare module 'stripe' {
1764
1756
  /**
1765
1757
  * Occurs whenever an invoice item is deleted.
1766
1758
  */
1767
- interface InvoiceitemDeletedEvent extends EventBase {
1759
+ interface InvoiceItemDeletedEvent extends EventBase {
1768
1760
  type: 'invoiceitem.deleted';
1769
- data: InvoiceitemDeletedEvent.Data;
1761
+ data: InvoiceItemDeletedEvent.Data;
1770
1762
  }
1771
1763
 
1772
- namespace InvoiceitemDeletedEvent {
1764
+ namespace InvoiceItemDeletedEvent {
1773
1765
  interface Data extends Stripe.Event.Data {
1774
1766
  object: Stripe.InvoiceItem;
1775
1767
 
@@ -3859,101 +3851,5 @@ declare module 'stripe' {
3859
3851
  previous_attributes?: Partial<Stripe.Treasury.ReceivedDebit>;
3860
3852
  }
3861
3853
  }
3862
-
3863
- /**
3864
- * The "invoiceitem.updated" event is deprecated and will be removed in the next major version
3865
- */
3866
- interface InvoiceitemUpdatedEvent extends EventBase {
3867
- type: 'invoiceitem.updated';
3868
- data: InvoiceitemUpdatedEvent.Data;
3869
- }
3870
-
3871
- namespace InvoiceitemUpdatedEvent {
3872
- interface Data extends Stripe.Event.Data {}
3873
- }
3874
-
3875
- /**
3876
- * The "order.created" event is deprecated and will be removed in the next major version
3877
- */
3878
- interface OrderCreatedEvent extends EventBase {
3879
- type: 'order.created';
3880
- data: OrderCreatedEvent.Data;
3881
- }
3882
-
3883
- namespace OrderCreatedEvent {
3884
- interface Data extends Stripe.Event.Data {}
3885
- }
3886
-
3887
- /**
3888
- * The "recipient.created" event is deprecated and will be removed in the next major version
3889
- */
3890
- interface RecipientCreatedEvent extends EventBase {
3891
- type: 'recipient.created';
3892
- data: RecipientCreatedEvent.Data;
3893
- }
3894
-
3895
- namespace RecipientCreatedEvent {
3896
- interface Data extends Stripe.Event.Data {}
3897
- }
3898
-
3899
- /**
3900
- * The "recipient.deleted" event is deprecated and will be removed in the next major version
3901
- */
3902
- interface RecipientDeletedEvent extends EventBase {
3903
- type: 'recipient.deleted';
3904
- data: RecipientDeletedEvent.Data;
3905
- }
3906
-
3907
- namespace RecipientDeletedEvent {
3908
- interface Data extends Stripe.Event.Data {}
3909
- }
3910
-
3911
- /**
3912
- * The "recipient.updated" event is deprecated and will be removed in the next major version
3913
- */
3914
- interface RecipientUpdatedEvent extends EventBase {
3915
- type: 'recipient.updated';
3916
- data: RecipientUpdatedEvent.Data;
3917
- }
3918
-
3919
- namespace RecipientUpdatedEvent {
3920
- interface Data extends Stripe.Event.Data {}
3921
- }
3922
-
3923
- /**
3924
- * The "sku.created" event is deprecated and will be removed in the next major version
3925
- */
3926
- interface SkuCreatedEvent extends EventBase {
3927
- type: 'sku.created';
3928
- data: SkuCreatedEvent.Data;
3929
- }
3930
-
3931
- namespace SkuCreatedEvent {
3932
- interface Data extends Stripe.Event.Data {}
3933
- }
3934
-
3935
- /**
3936
- * The "sku.deleted" event is deprecated and will be removed in the next major version
3937
- */
3938
- interface SkuDeletedEvent extends EventBase {
3939
- type: 'sku.deleted';
3940
- data: SkuDeletedEvent.Data;
3941
- }
3942
-
3943
- namespace SkuDeletedEvent {
3944
- interface Data extends Stripe.Event.Data {}
3945
- }
3946
-
3947
- /**
3948
- * The "sku.updated" event is deprecated and will be removed in the next major version
3949
- */
3950
- interface SkuUpdatedEvent extends EventBase {
3951
- type: 'sku.updated';
3952
- data: SkuUpdatedEvent.Data;
3953
- }
3954
-
3955
- namespace SkuUpdatedEvent {
3956
- interface Data extends Stripe.Event.Data {}
3957
- }
3958
3854
  }
3959
3855
  }
package/types/Events.d.ts CHANGED
@@ -259,15 +259,7 @@ declare module 'stripe' {
259
259
  | 'treasury.received_credit.created'
260
260
  | 'treasury.received_credit.failed'
261
261
  | 'treasury.received_credit.succeeded'
262
- | 'treasury.received_debit.created'
263
- | 'invoiceitem.updated'
264
- | 'order.created'
265
- | 'recipient.created'
266
- | 'recipient.deleted'
267
- | 'recipient.updated'
268
- | 'sku.created'
269
- | 'sku.deleted'
270
- | 'sku.updated';
262
+ | 'treasury.received_debit.created';
271
263
  }
272
264
 
273
265
  /**
@@ -377,11 +377,6 @@ declare module 'stripe' {
377
377
  */
378
378
  rendering: Invoice.Rendering | null;
379
379
 
380
- /**
381
- * This is a legacy field that will be removed soon. For details about `rendering_options`, refer to `rendering` instead. Options for invoice PDF rendering.
382
- */
383
- rendering_options: Invoice.RenderingOptions | null;
384
-
385
380
  /**
386
381
  * The details of the cost of shipping, including the ShippingRate applied on the invoice.
387
382
  */
@@ -1187,13 +1182,6 @@ declare module 'stripe' {
1187
1182
  }
1188
1183
  }
1189
1184
 
1190
- interface RenderingOptions {
1191
- /**
1192
- * How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
1193
- */
1194
- amount_tax_display: string | null;
1195
- }
1196
-
1197
1185
  interface ShippingCost {
1198
1186
  /**
1199
1187
  * Total shipping cost before any taxes are applied.
@@ -133,13 +133,6 @@ declare module 'stripe' {
133
133
  */
134
134
  rendering?: InvoiceCreateParams.Rendering;
135
135
 
136
- /**
137
- * This is a legacy field that will be removed soon. For details about `rendering_options`, refer to `rendering` instead. Options for invoice PDF rendering.
138
- */
139
- rendering_options?: Stripe.Emptyable<
140
- InvoiceCreateParams.RenderingOptions
141
- >;
142
-
143
136
  /**
144
137
  * Settings for the cost of shipping for this invoice.
145
138
  */
@@ -514,10 +507,7 @@ declare module 'stripe' {
514
507
  | 'wechat_pay';
515
508
  }
516
509
 
517
- type PendingInvoiceItemsBehavior =
518
- | 'exclude'
519
- | 'include'
520
- | 'include_and_require';
510
+ type PendingInvoiceItemsBehavior = 'exclude' | 'include';
521
511
 
522
512
  interface Rendering {
523
513
  /**
@@ -548,19 +538,6 @@ declare module 'stripe' {
548
538
  }
549
539
  }
550
540
 
551
- interface RenderingOptions {
552
- /**
553
- * How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
554
- */
555
- amount_tax_display?: Stripe.Emptyable<
556
- RenderingOptions.AmountTaxDisplay
557
- >;
558
- }
559
-
560
- namespace RenderingOptions {
561
- type AmountTaxDisplay = 'exclude_tax' | 'include_inclusive_tax';
562
- }
563
-
564
541
  interface ShippingCost {
565
542
  /**
566
543
  * The ID of the shipping rate to use for this order.
@@ -847,13 +824,6 @@ declare module 'stripe' {
847
824
  */
848
825
  rendering?: InvoiceUpdateParams.Rendering;
849
826
 
850
- /**
851
- * This is a legacy field that will be removed soon. For details about `rendering_options`, refer to `rendering` instead. Options for invoice PDF rendering.
852
- */
853
- rendering_options?: Stripe.Emptyable<
854
- InvoiceUpdateParams.RenderingOptions
855
- >;
856
-
857
827
  /**
858
828
  * Settings for the cost of shipping for this invoice.
859
829
  */
@@ -1240,19 +1210,6 @@ declare module 'stripe' {
1240
1210
  }
1241
1211
  }
1242
1212
 
1243
- interface RenderingOptions {
1244
- /**
1245
- * How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
1246
- */
1247
- amount_tax_display?: Stripe.Emptyable<
1248
- RenderingOptions.AmountTaxDisplay
1249
- >;
1250
- }
1251
-
1252
- namespace RenderingOptions {
1253
- type AmountTaxDisplay = 'exclude_tax' | 'include_inclusive_tax';
1254
- }
1255
-
1256
1213
  interface ShippingCost {
1257
1214
  /**
1258
1215
  * The ID of the shipping rate to use for this order.
@@ -3031,8 +2988,7 @@ declare module 'stripe' {
3031
2988
  | 'qst'
3032
2989
  | 'rst'
3033
2990
  | 'sales_tax'
3034
- | 'vat'
3035
- | 'service_tax';
2991
+ | 'vat';
3036
2992
  }
3037
2993
  }
3038
2994
  }
@@ -1557,15 +1557,6 @@ declare module 'stripe' {
1557
1557
  * Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support.
1558
1558
  */
1559
1559
  request_incremental_authorization_support?: boolean;
1560
-
1561
- /**
1562
- * This field was released by mistake and will be removed in the next major version
1563
- */
1564
- request_incremental_authorization?: CardPresent.RequestIncrementalAuthorization;
1565
- }
1566
-
1567
- namespace CardPresent {
1568
- type RequestIncrementalAuthorization = 'if_available' | 'never';
1569
1560
  }
1570
1561
 
1571
1562
  interface Cashapp {
@@ -3755,15 +3746,6 @@ declare module 'stripe' {
3755
3746
  * Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support.
3756
3747
  */
3757
3748
  request_incremental_authorization_support?: boolean;
3758
-
3759
- /**
3760
- * This field was released by mistake and will be removed in the next major version
3761
- */
3762
- request_incremental_authorization?: CardPresent.RequestIncrementalAuthorization;
3763
- }
3764
-
3765
- namespace CardPresent {
3766
- type RequestIncrementalAuthorization = 'if_available' | 'never';
3767
3749
  }
3768
3750
 
3769
3751
  interface Cashapp {
@@ -6098,15 +6080,6 @@ declare module 'stripe' {
6098
6080
  * Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support.
6099
6081
  */
6100
6082
  request_incremental_authorization_support?: boolean;
6101
-
6102
- /**
6103
- * This field was released by mistake and will be removed in the next major version
6104
- */
6105
- request_incremental_authorization?: CardPresent.RequestIncrementalAuthorization;
6106
- }
6107
-
6108
- namespace CardPresent {
6109
- type RequestIncrementalAuthorization = 'if_available' | 'never';
6110
6083
  }
6111
6084
 
6112
6085
  interface Cashapp {
@@ -77,8 +77,6 @@ declare module 'stripe' {
77
77
 
78
78
  grabpay?: PaymentMethodConfiguration.Grabpay;
79
79
 
80
- id_bank_transfer?: PaymentMethodConfiguration.IdBankTransfer;
81
-
82
80
  ideal?: PaymentMethodConfiguration.Ideal;
83
81
 
84
82
  /**
@@ -99,15 +97,11 @@ declare module 'stripe' {
99
97
  */
100
98
  livemode: boolean;
101
99
 
102
- multibanco?: PaymentMethodConfiguration.Multibanco;
103
-
104
100
  /**
105
101
  * The configuration's name.
106
102
  */
107
103
  name: string;
108
104
 
109
- netbanking?: PaymentMethodConfiguration.Netbanking;
110
-
111
105
  oxxo?: PaymentMethodConfiguration.Oxxo;
112
106
 
113
107
  p24?: PaymentMethodConfiguration.P24;
@@ -117,8 +111,6 @@ declare module 'stripe' {
117
111
  */
118
112
  parent: string | null;
119
113
 
120
- pay_by_bank?: PaymentMethodConfiguration.PayByBank;
121
-
122
114
  paynow?: PaymentMethodConfiguration.Paynow;
123
115
 
124
116
  paypal?: PaymentMethodConfiguration.Paypal;
@@ -131,8 +123,6 @@ declare module 'stripe' {
131
123
 
132
124
  sofort?: PaymentMethodConfiguration.Sofort;
133
125
 
134
- upi?: PaymentMethodConfiguration.Upi;
135
-
136
126
  us_bank_account?: PaymentMethodConfiguration.UsBankAccount;
137
127
 
138
128
  wechat_pay?: PaymentMethodConfiguration.WechatPay;
@@ -787,40 +777,6 @@ declare module 'stripe' {
787
777
  }
788
778
  }
789
779
 
790
- interface IdBankTransfer {
791
- /**
792
- * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
793
- */
794
- available: boolean;
795
-
796
- display_preference: IdBankTransfer.DisplayPreference;
797
- }
798
-
799
- namespace IdBankTransfer {
800
- interface DisplayPreference {
801
- /**
802
- * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
803
- */
804
- overridable: boolean | null;
805
-
806
- /**
807
- * The account's display preference.
808
- */
809
- preference: DisplayPreference.Preference;
810
-
811
- /**
812
- * The effective display preference value.
813
- */
814
- value: DisplayPreference.Value;
815
- }
816
-
817
- namespace DisplayPreference {
818
- type Preference = 'none' | 'off' | 'on';
819
-
820
- type Value = 'off' | 'on';
821
- }
822
- }
823
-
824
780
  interface Ideal {
825
781
  /**
826
782
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -991,74 +947,6 @@ declare module 'stripe' {
991
947
  }
992
948
  }
993
949
 
994
- interface Multibanco {
995
- /**
996
- * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
997
- */
998
- available: boolean;
999
-
1000
- display_preference: Multibanco.DisplayPreference;
1001
- }
1002
-
1003
- namespace Multibanco {
1004
- interface DisplayPreference {
1005
- /**
1006
- * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1007
- */
1008
- overridable: boolean | null;
1009
-
1010
- /**
1011
- * The account's display preference.
1012
- */
1013
- preference: DisplayPreference.Preference;
1014
-
1015
- /**
1016
- * The effective display preference value.
1017
- */
1018
- value: DisplayPreference.Value;
1019
- }
1020
-
1021
- namespace DisplayPreference {
1022
- type Preference = 'none' | 'off' | 'on';
1023
-
1024
- type Value = 'off' | 'on';
1025
- }
1026
- }
1027
-
1028
- interface Netbanking {
1029
- /**
1030
- * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
1031
- */
1032
- available: boolean;
1033
-
1034
- display_preference: Netbanking.DisplayPreference;
1035
- }
1036
-
1037
- namespace Netbanking {
1038
- interface DisplayPreference {
1039
- /**
1040
- * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1041
- */
1042
- overridable: boolean | null;
1043
-
1044
- /**
1045
- * The account's display preference.
1046
- */
1047
- preference: DisplayPreference.Preference;
1048
-
1049
- /**
1050
- * The effective display preference value.
1051
- */
1052
- value: DisplayPreference.Value;
1053
- }
1054
-
1055
- namespace DisplayPreference {
1056
- type Preference = 'none' | 'off' | 'on';
1057
-
1058
- type Value = 'off' | 'on';
1059
- }
1060
- }
1061
-
1062
950
  interface Oxxo {
1063
951
  /**
1064
952
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -1127,40 +1015,6 @@ declare module 'stripe' {
1127
1015
  }
1128
1016
  }
1129
1017
 
1130
- interface PayByBank {
1131
- /**
1132
- * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
1133
- */
1134
- available: boolean;
1135
-
1136
- display_preference: PayByBank.DisplayPreference;
1137
- }
1138
-
1139
- namespace PayByBank {
1140
- interface DisplayPreference {
1141
- /**
1142
- * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1143
- */
1144
- overridable: boolean | null;
1145
-
1146
- /**
1147
- * The account's display preference.
1148
- */
1149
- preference: DisplayPreference.Preference;
1150
-
1151
- /**
1152
- * The effective display preference value.
1153
- */
1154
- value: DisplayPreference.Value;
1155
- }
1156
-
1157
- namespace DisplayPreference {
1158
- type Preference = 'none' | 'off' | 'on';
1159
-
1160
- type Value = 'off' | 'on';
1161
- }
1162
- }
1163
-
1164
1018
  interface Paynow {
1165
1019
  /**
1166
1020
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -1365,40 +1219,6 @@ declare module 'stripe' {
1365
1219
  }
1366
1220
  }
1367
1221
 
1368
- interface Upi {
1369
- /**
1370
- * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
1371
- */
1372
- available: boolean;
1373
-
1374
- display_preference: Upi.DisplayPreference;
1375
- }
1376
-
1377
- namespace Upi {
1378
- interface DisplayPreference {
1379
- /**
1380
- * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1381
- */
1382
- overridable: boolean | null;
1383
-
1384
- /**
1385
- * The account's display preference.
1386
- */
1387
- preference: DisplayPreference.Preference;
1388
-
1389
- /**
1390
- * The effective display preference value.
1391
- */
1392
- value: DisplayPreference.Value;
1393
- }
1394
-
1395
- namespace DisplayPreference {
1396
- type Preference = 'none' | 'off' | 'on';
1397
-
1398
- type Value = 'off' | 'on';
1399
- }
1400
- }
1401
-
1402
1222
  interface UsBankAccount {
1403
1223
  /**
1404
1224
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -68,11 +68,6 @@ declare module 'stripe' {
68
68
  */
69
69
  description: string | null;
70
70
 
71
- /**
72
- * A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table).
73
- */
74
- features: Array<Product.Feature>;
75
-
76
71
  /**
77
72
  * A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
78
73
  */
@@ -83,6 +78,11 @@ declare module 'stripe' {
83
78
  */
84
79
  livemode: boolean;
85
80
 
81
+ /**
82
+ * A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table).
83
+ */
84
+ marketing_features: Array<Product.MarketingFeature>;
85
+
86
86
  /**
87
87
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
88
88
  */
@@ -135,7 +135,7 @@ declare module 'stripe' {
135
135
  }
136
136
 
137
137
  namespace Product {
138
- interface Feature {
138
+ interface MarketingFeature {
139
139
  /**
140
140
  * The marketing feature name. Up to 80 characters long.
141
141
  */
@@ -28,11 +28,6 @@ declare module 'stripe' {
28
28
  */
29
29
  expand?: Array<string>;
30
30
 
31
- /**
32
- * A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table).
33
- */
34
- features?: Array<ProductCreateParams.Feature>;
35
-
36
31
  /**
37
32
  * An identifier will be randomly generated by Stripe. You can optionally override this ID, but the ID must be unique across all products in your Stripe account.
38
33
  */
@@ -43,6 +38,11 @@ declare module 'stripe' {
43
38
  */
44
39
  images?: Array<string>;
45
40
 
41
+ /**
42
+ * A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table).
43
+ */
44
+ marketing_features?: Array<ProductCreateParams.MarketingFeature>;
45
+
46
46
  /**
47
47
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
48
48
  */
@@ -222,7 +222,7 @@ declare module 'stripe' {
222
222
  type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
223
223
  }
224
224
 
225
- interface Feature {
225
+ interface MarketingFeature {
226
226
  /**
227
227
  * The marketing feature name. Up to 80 characters long.
228
228
  */
@@ -283,14 +283,16 @@ declare module 'stripe' {
283
283
  expand?: Array<string>;
284
284
 
285
285
  /**
286
- * A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table).
286
+ * A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
287
287
  */
288
- features?: Stripe.Emptyable<Array<ProductUpdateParams.Feature>>;
288
+ images?: Stripe.Emptyable<Array<string>>;
289
289
 
290
290
  /**
291
- * A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
291
+ * A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table).
292
292
  */
293
- images?: Stripe.Emptyable<Array<string>>;
293
+ marketing_features?: Stripe.Emptyable<
294
+ Array<ProductUpdateParams.MarketingFeature>
295
+ >;
294
296
 
295
297
  /**
296
298
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
@@ -339,7 +341,7 @@ declare module 'stripe' {
339
341
  }
340
342
 
341
343
  namespace ProductUpdateParams {
342
- interface Feature {
344
+ interface MarketingFeature {
343
345
  /**
344
346
  * The marketing feature name. Up to 80 characters long.
345
347
  */
@@ -101,8 +101,7 @@ declare module 'stripe' {
101
101
  | 'topup_reversal'
102
102
  | 'transfer'
103
103
  | 'transfer_reversal'
104
- | 'unreconciled_customer_funds'
105
- | 'obligation';
104
+ | 'unreconciled_customer_funds';
106
105
 
107
106
  type Timezone =
108
107
  | 'Africa/Abidjan'
@@ -724,11 +724,7 @@ declare module 'stripe' {
724
724
  | 'unknown'
725
725
  | 'visa';
726
726
 
727
- type RequestThreeDSecure =
728
- | 'any'
729
- | 'automatic'
730
- | 'challenge'
731
- | 'challenge_only';
727
+ type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
732
728
  }
733
729
 
734
730
  interface CardPresent {}
@@ -112,8 +112,7 @@ declare module 'stripe' {
112
112
  | 'qst'
113
113
  | 'rst'
114
114
  | 'sales_tax'
115
- | 'vat'
116
- | 'service_tax';
115
+ | 'vat';
117
116
  }
118
117
  }
119
118
  }
@@ -72,8 +72,7 @@ declare module 'stripe' {
72
72
  | 'qst'
73
73
  | 'rst'
74
74
  | 'sales_tax'
75
- | 'vat'
76
- | 'service_tax';
75
+ | 'vat';
77
76
  }
78
77
 
79
78
  interface TaxRateRetrieveParams {
@@ -143,8 +142,7 @@ declare module 'stripe' {
143
142
  | 'qst'
144
143
  | 'rst'
145
144
  | 'sales_tax'
146
- | 'vat'
147
- | 'service_tax';
145
+ | 'vat';
148
146
  }
149
147
 
150
148
  interface TaxRateListParams extends PaginationParams {
@@ -140,7 +140,8 @@ declare module 'stripe' {
140
140
  | '2022-08-01'
141
141
  | '2022-11-15'
142
142
  | '2023-08-16'
143
- | '2023-10-16';
143
+ | '2023-10-16'
144
+ | '2024-04-10';
144
145
 
145
146
  type EnabledEvent =
146
147
  | '*'
@@ -369,15 +370,7 @@ declare module 'stripe' {
369
370
  | 'treasury.received_credit.created'
370
371
  | 'treasury.received_credit.failed'
371
372
  | 'treasury.received_credit.succeeded'
372
- | 'treasury.received_debit.created'
373
- | 'invoiceitem.updated'
374
- | 'order.created'
375
- | 'recipient.created'
376
- | 'recipient.deleted'
377
- | 'recipient.updated'
378
- | 'sku.created'
379
- | 'sku.deleted'
380
- | 'sku.updated';
373
+ | 'treasury.received_debit.created';
381
374
  }
382
375
 
383
376
  interface WebhookEndpointRetrieveParams {
@@ -647,15 +640,7 @@ declare module 'stripe' {
647
640
  | 'treasury.received_credit.created'
648
641
  | 'treasury.received_credit.failed'
649
642
  | 'treasury.received_credit.succeeded'
650
- | 'treasury.received_debit.created'
651
- | 'invoiceitem.updated'
652
- | 'order.created'
653
- | 'recipient.created'
654
- | 'recipient.deleted'
655
- | 'recipient.updated'
656
- | 'sku.created'
657
- | 'sku.deleted'
658
- | 'sku.updated';
643
+ | 'treasury.received_debit.created';
659
644
  }
660
645
 
661
646
  interface WebhookEndpointListParams extends PaginationParams {
package/types/lib.d.ts CHANGED
@@ -27,7 +27,7 @@ declare module 'stripe' {
27
27
  }): (...args: any[]) => Response<ResponseObject>; //eslint-disable-line @typescript-eslint/no-explicit-any
28
28
  static MAX_BUFFERED_REQUEST_METRICS: number;
29
29
  }
30
- export type LatestApiVersion = '2023-10-16';
30
+ export type LatestApiVersion = '2024-04-10';
31
31
  export type HttpAgent = Agent;
32
32
  export type HttpProtocol = 'http' | 'https';
33
33
 
@@ -9,7 +9,7 @@
9
9
  import Stripe from 'stripe';
10
10
 
11
11
  let stripe = new Stripe('sk_test_123', {
12
- apiVersion: '2023-10-16',
12
+ apiVersion: '2024-04-10',
13
13
  });
14
14
 
15
15
  stripe = new Stripe('sk_test_123');
@@ -26,7 +26,7 @@ stripe = new Stripe('sk_test_123', {
26
26
 
27
27
  // Check config object.
28
28
  stripe = new Stripe('sk_test_123', {
29
- apiVersion: '2023-10-16',
29
+ apiVersion: '2024-04-10',
30
30
  typescript: true,
31
31
  maxNetworkRetries: 1,
32
32
  timeout: 1000,
@@ -44,7 +44,7 @@ stripe = new Stripe('sk_test_123', {
44
44
  description: 'test',
45
45
  };
46
46
  const opts: Stripe.RequestOptions = {
47
- apiVersion: '2023-10-16',
47
+ apiVersion: '2024-04-10',
48
48
  };
49
49
  const customer: Stripe.Customer = await stripe.customers.create(params, opts);
50
50