stripe / stripe-php

PHP library for the Stripe API.
https://stripe.com
MIT License
3.75k stars 848 forks source link

Deserialize into correct v2 EventData types #1775

Closed helenye-stripe closed 1 month ago

helenye-stripe commented 1 month ago

Currently we return generic StripeObjects for the EventData in our v2 events. This correctly calls construct_from when making v2 events (retrieve) to make sure they are typed appropriately.

This also makes it so we do not need to have BillingMeter in v2 mapping by using api mode to deserialize events.

Changelog