Debian Codegraph @

stripe/params/billing/_meter_event_adjustment_create_params.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from stripe._request_options import RequestOptions
4 from typing import List
5 from typing_extensions import Literal, NotRequired, TypedDict
6
7
8 class MeterEventAdjustmentCreateParams(RequestOptions):
9 cancel: NotRequired["MeterEventAdjustmentCreateParamsCancel"]
10 """
11 Specifies which event to cancel.
12 """
13 event_name: str
14 """
15 The name of the meter event. Corresponds with the `event_name` field on a meter.
16 """
17 expand: NotRequired[List[str]]
18 """
19 Specifies which fields in the response should be expanded.
20 """
21 type: Literal["cancel"]
22 """
23 Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
24 """
25
26
27 class MeterEventAdjustmentCreateParamsCancel(TypedDict):
28 identifier: NotRequired[str]
29 """
30 Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them.
31 """