# 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 .button_theme import ButtonTheme
from .card_theme import CardTheme


class PaymentPageTheme(UniversalBaseModel):
    background_color: typing.Optional[str] = None
    border_radius: typing.Optional[str] = None
    button: typing.Optional[ButtonTheme] = None
    card: typing.Optional[CardTheme] = None
    font_color: typing.Optional[str] = None
    font_family: typing.Optional[str] = None
    font_link_href: typing.Optional[str] = None
    logo_src: typing.Optional[str] = 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
