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

import typing

import typing_extensions
from .custom_attribute_event_data import CustomAttributeEventDataParams


class MerchantCustomAttributeVisibleDeletedEventParams(typing_extensions.TypedDict):
    """
    Published when a merchant [custom attribute](entity:CustomAttribute) with
    the `visibility` field set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES` is deleted.
    An application that subscribes to this event is notified when a merchant custom attribute is deleted
    by any application for which the subscribing application has read access to the merchant custom attribute.
    """

    merchant_id: typing_extensions.NotRequired[typing.Optional[str]]
    """
    The ID of the seller associated with the event that triggered the event notification.
    """

    type: typing_extensions.NotRequired[typing.Optional[str]]
    """
    The type of this event. The value is `"merchant.custom_attribute.visible.deleted"`.
    """

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

    created_at: typing_extensions.NotRequired[str]
    """
    The timestamp that indicates when the event notification was created, in RFC 3339 format.
    """

    data: typing_extensions.NotRequired[CustomAttributeEventDataParams]
    """
    The data associated with the event that triggered the event notification.
    """
