Skip to content

Move V2.Event API resources to V2.Core.Events#3200

Merged
xavdid-stripe merged 3 commits intomasterfrom
jar/move-v2-event-resources
Sep 29, 2025
Merged

Move V2.Event API resources to V2.Core.Events#3200
xavdid-stripe merged 3 commits intomasterfrom
jar/move-v2-event-resources

Conversation

@xavdid-stripe
Copy link
Copy Markdown
Contributor

@xavdid-stripe xavdid-stripe commented Sep 27, 2025

Why?

In 2024-09-30.acacia (docs), we released our new V2 Event system, found under the /v2/core/events API endpoint. When we put them in our in SDKs, for presentation reasons, we put these new resources in the Stripe.V2.Event namespace.

We've realized that dropping Core from the SDK namespace adds more confusion than good, so we're putting the v2 Event resource into the Stripe.V2.Core namespace, where you'd expect to find it in the first place.

There's no change to specific event classes, like V1BillingMeterErrorReportTriggeredEvent. Those are, and will continue to be, under Stripe.Events.

What?

  • moved all resources from V2.Events to V2.Core.Events
  • updated tests

Changelog

  • ⚠️ Move all V2 Event-related classes (Event, EventDestination,EventReason etc) from Stripe.V2 to Stripe.V2.Core. They now correctly match their API path and are in line with all other resources. To update your code:
    • Stripe.V2.Event -> Stripe.V2.Core.Event
    • Stripe.V2.EventDestination -> Stripe.V2.Core.EventDestination
    • Stripe.V2.EventReason -> Stripe.V2.Core.EventReason
    • Stripe.V2.EventReasonRequest -> Stripe.V2.Core.EventReasonRequest
    • Stripe.V2.EventRelatedObject -> Stripe.V2.Core.EventRelatedObject
  • Existing event types (like Stripe.Events.V1BillingMeterErrorReportTriggeredEvent) haven't moved.

jar-stripe and others added 3 commits September 25, 2025 16:44
…ventDestination and V2.EventNotification to V2.Core, and UnknownEventNotification to Stripe.Events
@xavdid-stripe xavdid-stripe marked this pull request as ready for review September 27, 2025 01:06
@xavdid-stripe xavdid-stripe requested a review from a team as a code owner September 27, 2025 01:06
@xavdid-stripe xavdid-stripe requested review from helenye-stripe and jar-stripe and removed request for a team September 27, 2025 01:06
@xavdid-stripe xavdid-stripe enabled auto-merge (squash) September 27, 2025 02:03
@xavdid-stripe xavdid-stripe merged commit d72c079 into master Sep 29, 2025
4 of 5 checks passed
@xavdid-stripe xavdid-stripe deleted the jar/move-v2-event-resources branch September 29, 2025 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants