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

import typing

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


class OrganizationResponseSchema(UniversalBaseModel):
    """
    Contains data specific to entities of the `organization` type.
    """

    business_structure: typing.Optional[EntityBusinessStructure] = pydantic.Field(default=None)
    """
    Business structure of the company
    """

    directors_provided: typing.Optional[bool] = None
    executives_provided: typing.Optional[bool] = None
    legal_entity_id: typing.Optional[str] = pydantic.Field(default=None)
    """
    A code which identifies uniquely a party of a transaction worldwide
    """

    legal_name: str = pydantic.Field()
    """
    The legal name of the organization.
    """

    owners_provided: typing.Optional[bool] = None
    representative_provided: typing.Optional[bool] = None

    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
