# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import List, Optional

from .._models import BaseModel
from .company_legal_form import CompanyLegalForm
from .company_register_type import CompanyRegisterType

__all__ = ["SearchFindCompaniesResponse", "Result"]


class Result(BaseModel):
    active: bool
    """Company status - true if active, false if inactive."""

    company_id: str
    """Unique company identifier. Example: DE-HRB-F1103-267645"""

    legal_form: CompanyLegalForm
    """
    Legal form of the company. Example: "gmbh" for Gesellschaft mit beschränkter
    Haftung
    """

    name: str
    """Official registered company name. Example: "Max Mustermann GmbH" """

    register_court: str
    """Court where the company is registered. Example: "Berlin (Charlottenburg)" """

    register_number: str
    """Registration number in the company register. Example: "230633" """

    register_type: CompanyRegisterType
    """Type of company register. Example: "HRB" for Commercial Register B"""

    country: Optional[str] = None
    """
    Country where the company is registered using ISO 3166-1 alpha-2 code. Example:
    "DE" for Germany
    """


class SearchFindCompaniesResponse(BaseModel):
    results: List[Result]
    """
    List of companies matching the search criteria. Limited to a maximum of 10
    results per query.
    """
