# 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


class P2CorehrProbationUpdatedV2Data(object):
    _types = {
        "employment_id": str,
        "probation_status": str,
        "actual_probation_end_date": str,
    }

    def __init__(self, d=None):
        self.employment_id: Optional[str] = None
        self.probation_status: Optional[str] = None
        self.actual_probation_end_date: Optional[str] = None
        init(self, d, self._types)


class P2CorehrProbationUpdatedV2(EventContext):
    _types = {
        "event": P2CorehrProbationUpdatedV2Data
    }

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