# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from lark_oapi.event.context import EventContext
from .ticket_event import TicketEvent
from .ticket_event_update_info import TicketEventUpdateInfo


class P2HelpdeskTicketUpdatedV1Data(object):
    _types = {
        "object": TicketEvent,
        "old_object": TicketEventUpdateInfo,
    }

    def __init__(self, d=None):
        self.object: Optional[TicketEvent] = None
        self.old_object: Optional[TicketEventUpdateInfo] = None
        init(self, d, self._types)


class P2HelpdeskTicketUpdatedV1(EventContext):
    _types = {
        "event": P2HelpdeskTicketUpdatedV1Data
    }

    def __init__(self, d=None):
        super().__init__(d)
        self._types.update(super()._types)
        self.event: Optional[P2HelpdeskTicketUpdatedV1Data] = None
        init(self, d, self._types)
