# This file was auto-generated by Fern from our API Definition.

import datetime as dt
import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel


class BillingProductPriceResponseData(UniversalBaseModel):
    billing_scheme: str
    created_at: dt.datetime
    currency: str
    id: str
    interval: str
    is_active: bool
    meter_id: typing.Optional[str] = None
    package_size: int
    price: int
    price_decimal: typing.Optional[str] = None
    price_external_id: str
    product_external_id: str
    updated_at: dt.datetime
    usage_type: str

    if IS_PYDANTIC_V2:
        model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True)  # type: ignore # Pydantic v2
    else:

        class Config:
            frozen = True
            smart_union = True
            extra = pydantic.Extra.allow
