# 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


class GetAppointmentByConfirmationNumberParams(UncheckedBaseModel):
    """
    Look up an appointment by the booking confirmation number the caller quotes.

    The confirmation number is the 8-character code shown on the booking
    confirmation page (e.g. ``#01ABCDEF``). Callers may read it back with or
    without the leading ``#`` and with varied spacing; the tool normalizes
    the input and does a prefix match on the stored calendar item id.
    """

    smb_tool_type: typing.Optional[typing.Literal["get_appointment_by_confirmation_number"]] = 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
