Skip to content

Commit

Permalink
Fix type of Billing Meter Event (#1758)
Browse files Browse the repository at this point in the history
* Fix type of Billing Meter Event

* Added link to jira
  • Loading branch information
prathmesh-stripe authored Sep 28, 2024
1 parent 38156c3 commit 64e749b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Util/ObjectTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ class ObjectTypes
* @var array Mapping from v2 object types to resource classes
*/
const v2Mapping = [
// V1 Class needed for fetching the right related object
// TODO: https://go/j/DEVSDK-2204 Make a more standardized fix in codegen for all languages
\Stripe\Billing\Meter::OBJECT_NAME => \Stripe\Billing\Meter::class,

// v2 object classes: The beginning of the section generated from our OpenAPI spec
\Stripe\V2\Billing\MeterEvent::OBJECT_NAME => \Stripe\V2\Billing\MeterEvent::class,
\Stripe\V2\Billing\MeterEventAdjustment::OBJECT_NAME => \Stripe\V2\Billing\MeterEventAdjustment::class,
Expand Down

0 comments on commit 64e749b

Please sign in to comment.