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

import typing_extensions
import typing_extensions
import typing
from .custom_attribute_definition_event_data import CustomAttributeDefinitionEventDataParams


class CustomerCustomAttributeDefinitionUpdatedPublicEventParams(typing_extensions.TypedDict):
    """
    Published when a customer [custom attribute definition](entity:CustomAttributeDefinition)
    that is visible to all applications is updated. A notification is sent when any application updates a custom
    attribute definition whose `visibility` is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.

    This event is replaced by
    [customer.custom_attribute_definition.visible.updated](webhook:customer.custom_attribute_definition.visible.updated),
    which applies to custom attribute definitions that are visible to the subscribing application.
    """

    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 `"customer.custom_attribute_definition.public.updated"`.
    """

    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[CustomAttributeDefinitionEventDataParams]
    """
    The data associated with the event that triggered the event notification.
    """
