Debian Codegraph @

stripe/v2/billing/_meter_event_adjustment.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from stripe._stripe_object import StripeObject
4 from typing import ClassVar
5 from typing_extensions import Literal
6
7
8 class MeterEventAdjustment(StripeObject):
9 """
10 A Meter Event Adjustment is used to cancel or modify previously recorded meter events. Meter Event Adjustments allow you to correct billing data by canceling individual events or event ranges, with tracking of adjustment status and creation time.
11 """
12
13 OBJECT_NAME: ClassVar[Literal["v2.billing.meter_event_adjustment"]] = (
14 "v2.billing.meter_event_adjustment"
15 )
16
17 class Cancel(StripeObject):
18 identifier: str
19 """
20 Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them.
21 """
22
23 cancel: Cancel
24 """
25 Specifies which event to cancel.
26 """
27 created: str
28 """
29 The time the adjustment was created.
30 """
31 event_name: str
32 """
33 The name of the meter event. Corresponds with the `event_name` field on a meter.
34 """
35 id: str
36 """
37 The unique id of this meter event adjustment.
38 """
39 livemode: bool
40 """
41 Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
42 """
43 object: Literal["v2.billing.meter_event_adjustment"]
44 """
45 String representing the object's type. Objects of the same type share the same value of the object field.
46 """
47 status: Literal["complete", "pending"]
48 """
49 Open Enum. The meter event adjustment's status.
50 """
51 type: Literal["cancel"]
52 """
53 Open Enum. Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
54 """
55 _inner_class_types = {"cancel": Cancel}