Skip to content

Commit

Permalink
Merge branch 'master' into helenye-event-types
Browse files Browse the repository at this point in the history
  • Loading branch information
helenye-stripe authored Oct 18, 2024
2 parents 6167050 + 62e89af commit ec78acb
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 ec78acb

Please sign in to comment.