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

from ..core.unchecked_base_model import UncheckedBaseModel
import typing
from .vendor_updated_event_object_operation import VendorUpdatedEventObjectOperation
import pydantic
from .vendor import Vendor
from ..core.pydantic_utilities import IS_PYDANTIC_V2


class VendorUpdatedEventObject(UncheckedBaseModel):
    operation: typing.Optional[VendorUpdatedEventObjectOperation] = pydantic.Field(default=None)
    """
    The operation on the vendor that caused the event to be published. The value is `UPDATED`.
    See [Operation](#type-operation) for possible values
    """

    vendor: typing.Optional[Vendor] = pydantic.Field(default=None)
    """
    The updated vendor as the result of the specified operation.
    """

    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
