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

from typing import Optional

from pydantic import Field as FieldInfo

from .theater import Theater
from ..account import Account
from ....._models import BaseModel

__all__ = ["MinifiedShow"]


class MinifiedShow(BaseModel):
    id: int
    """Numeric identifier for a resource"""

    api_type: str = FieldInfo(alias="_type")

    is_two_parts: bool = FieldInfo(alias="isTwoParts")
    """
    Whether or not this show is presented in 2 parts. If true, we alter the Calendar
    UI to support a 2-part purchase. N.B. This is intended only for Harry Potter and
    the Cursed Child regular tickets (for BOTH Part 1 & Part 2, together only).
    """

    name: str
    """Show name"""

    text_color: str = FieldInfo(alias="textColor")
    """Color in hex "FFFFFF" | "FFF" (nullable, valid hex color)"""

    theme_color: str = FieldInfo(alias="themeColor")
    """Color in hex "FFFFFF" | "FFF" (nullable, valid hex color)"""

    timezone: str
    """Timezone e.g. America/New_York, Europe/London (ISO)"""

    account: Optional[Account] = None
    """TodayTix partner account"""

    poster_image_square_url: Optional[str] = FieldInfo(alias="posterImageSquareUrl", default=None)
    """A link points to an external resource. For images we using IMGX.

    To get the right size see link "https://docs.imgix.com/apis/url/size"
    """

    poster_url: Optional[str] = FieldInfo(alias="posterUrl", default=None)
    """A link points to an external resource. For images we using IMGX.

    To get the right size see link "https://docs.imgix.com/apis/url/size"
    """

    theater: Optional[Theater] = None
