Skip to content

Commit

Permalink
update object tags for meter-related classes (#1415)
Browse files Browse the repository at this point in the history
* update object tags

* fix tests
  • Loading branch information
xavdid-stripe authored Oct 18, 2024
1 parent 1e8ee47 commit 62e89af
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions stripe/v2/billing/_meter_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class MeterEvent(StripeObject):
Fix me empty_doc_string.
"""

OBJECT_NAME: ClassVar[Literal["billing.meter_event"]] = (
"billing.meter_event"
OBJECT_NAME: ClassVar[Literal["v2.billing.meter_event"]] = (
"v2.billing.meter_event"
)
created: str
"""
Expand All @@ -29,7 +29,7 @@ class MeterEvent(StripeObject):
"""
Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
"""
object: Literal["billing.meter_event"]
object: Literal["v2.billing.meter_event"]
"""
String representing the object's type. Objects of the same type share the same value of the object field.
"""
Expand Down
6 changes: 3 additions & 3 deletions stripe/v2/billing/_meter_event_adjustment.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@


class MeterEventAdjustment(StripeObject):
OBJECT_NAME: ClassVar[Literal["billing.meter_event_adjustment"]] = (
"billing.meter_event_adjustment"
OBJECT_NAME: ClassVar[Literal["v2.billing.meter_event_adjustment"]] = (
"v2.billing.meter_event_adjustment"
)

class Cancel(StripeObject):
Expand Down Expand Up @@ -36,7 +36,7 @@ class Cancel(StripeObject):
"""
Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
"""
object: Literal["billing.meter_event_adjustment"]
object: Literal["v2.billing.meter_event_adjustment"]
"""
String representing the object's type. Objects of the same type share the same value of the object field.
"""
Expand Down
6 changes: 3 additions & 3 deletions stripe/v2/billing/_meter_event_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@


class MeterEventSession(StripeObject):
OBJECT_NAME: ClassVar[Literal["billing.meter_event_session"]] = (
"billing.meter_event_session"
OBJECT_NAME: ClassVar[Literal["v2.billing.meter_event_session"]] = (
"v2.billing.meter_event_session"
)
authentication_token: str
"""
Expand All @@ -30,7 +30,7 @@ class MeterEventSession(StripeObject):
"""
Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
"""
object: Literal["billing.meter_event_session"]
object: Literal["v2.billing.meter_event_session"]
"""
String representing the object's type. Objects of the same type share the same value of the object field.
"""
2 changes: 1 addition & 1 deletion tests/test_raw_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def test_preview_request_post(
http_client_mock.stub_request(
"post",
path=self.POST_REL_URL_V2,
rbody='{"id": "bmes_123", "object": "billing.meter_event_session"}',
rbody='{"id": "bmes_123", "object": "v2.billing.meter_event_session"}',
rcode=200,
rheaders={},
)
Expand Down

0 comments on commit 62e89af

Please sign in to comment.