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

from ..core.unchecked_base_model import UncheckedBaseModel
import typing
import pydantic
from .gift_card_customer_linked_event_object import GiftCardCustomerLinkedEventObject
from ..core.pydantic_utilities import IS_PYDANTIC_V2


class GiftCardCustomerLinkedEventData(UncheckedBaseModel):
    """
    The data associated with a `gift_card.customer_linked` event.
    """

    type: typing.Optional[str] = pydantic.Field(default=None)
    """
    The type of object affected by the event. For this event, the value is `gift_card`.
    """

    id: typing.Optional[str] = pydantic.Field(default=None)
    """
    The ID of the updated gift card.
    """

    object: typing.Optional[GiftCardCustomerLinkedEventObject] = pydantic.Field(default=None)
    """
    An object that contains the updated gift card and the ID of the linked customer.
    """

    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
