Debian Codegraph @

stripe/params/v2/billing/_meter_event_create_params.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from typing import Dict
4 from typing_extensions import NotRequired, TypedDict
5
6
7 class MeterEventCreateParams(TypedDict):
8 event_name: str
9 """
10 The name of the meter event. Corresponds with the `event_name` field on a meter.
11 """
12 identifier: NotRequired[str]
13 """
14 A unique identifier for the event. If not provided, one will be generated.
15 We recommend using a globally unique identifier for this. We'll enforce
16 uniqueness within a rolling 24 hour period.
17 """
18 payload: Dict[str, str]
19 """
20 The payload of the event. This must contain the fields corresponding to a meter's
21 `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and
22 `value_settings.event_payload_key` (default is `value`). Read more about
23 the
24 [payload](https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage#payload-key-overrides).
25 """
26 timestamp: NotRequired[str]
27 """
28 The time of the event. Must be within the past 35 calendar days or up to
29 5 minutes in the future. Defaults to current timestamp if not specified.
30 """