# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init
from lark_oapi.event.context import EventContext
from .organization_domain_event_data import OrganizationDomainEventData


class P2CorehrLocationUpdatedV2Data(object):
    _types = {
        "location_id": str,
        "field_changes": List[str],
        "sub_events": List[OrganizationDomainEventData],
    }

    def __init__(self, d=None):
        self.location_id: Optional[str] = None
        self.field_changes: Optional[List[str]] = None
        self.sub_events: Optional[List[OrganizationDomainEventData]] = None
        init(self, d, self._types)


class P2CorehrLocationUpdatedV2(EventContext):
    _types = {
        "event": P2CorehrLocationUpdatedV2Data
    }

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