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

from ..core.pydantic_utilities import UniversalBaseModel
import typing
from .crm_deal_line_item import CrmDealLineItem
from ..core.pydantic_utilities import IS_PYDANTIC_V2
import pydantic


class CompanyCrmDealsResponseData(UniversalBaseModel):
    deal_arr: str
    deal_external_id: str
    deal_mrr: str
    deal_name: typing.Optional[str] = None
    line_items: typing.List[CrmDealLineItem]

    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
