From 64e749bed5b74d66a00a783517571dda3d7257a8 Mon Sep 17 00:00:00 2001 From: prathmesh-stripe <165320323+prathmesh-stripe@users.noreply.github.com> Date: Fri, 27 Sep 2024 20:04:56 -0400 Subject: [PATCH] Fix type of Billing Meter Event (#1758) * Fix type of Billing Meter Event * Added link to jira --- lib/Util/ObjectTypes.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Util/ObjectTypes.php b/lib/Util/ObjectTypes.php index 50129a4ab..f753b3f14 100644 --- a/lib/Util/ObjectTypes.php +++ b/lib/Util/ObjectTypes.php @@ -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,