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

import typing_extensions
import typing_extensions
import typing
from .device_code_paired_event_data import DeviceCodePairedEventDataParams


class DeviceCodePairedEventParams(typing_extensions.TypedDict):
    """
    Published when a Square Terminal has been paired with a
    Terminal API client and the device_id of the paired Square Terminal is
    available.
    """

    merchant_id: typing_extensions.NotRequired[typing.Optional[str]]
    """
    The ID of the target merchant associated with the event.
    """

    location_id: typing_extensions.NotRequired[typing.Optional[str]]
    """
    The ID of the target location associated with the event.
    """

    type: typing_extensions.NotRequired[typing.Optional[str]]
    """
    The type of event this represents, `"device.code.paired"`.
    """

    event_id: typing_extensions.NotRequired[typing.Optional[str]]
    """
    A unique ID for the event.
    """

    created_at: typing_extensions.NotRequired[str]
    """
    RFC 3339 timestamp of when the event was created.
    """

    data: typing_extensions.NotRequired[DeviceCodePairedEventDataParams]
    """
    Data associated with the event.
    """
