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

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2
from ..core.unchecked_base_model import UncheckedBaseModel
from .billing_breakdown_v1response_resolution import BillingBreakdownV1ResponseResolution
from .billing_breakdown_v1response_results_item import BillingBreakdownV1ResponseResultsItem


class BillingBreakdownV1Response(UncheckedBaseModel):
    start: str = pydantic.Field()
    """
    Start date of the billing summmary period
    """

    end: str = pydantic.Field()
    """
    End date of the billing summary period
    """

    resolution: BillingBreakdownV1ResponseResolution
    results: typing.List[BillingBreakdownV1ResponseResultsItem]

    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
