# 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 P2CorehrApprovalGroupsUpdatedV2Data(object):
    _types = {
        "approval_group_id": str,
        "process_id": str,
        "approval_group_status": int,
        "topic": str,
        "adjust_reason": str,
        "effective_date": str,
        "created_by": str,
        "draft_id": str,
        "draft_status": int,
        "approval_group_status_v2": int,
    }

    def __init__(self, d=None):
        self.approval_group_id: Optional[str] = None
        self.process_id: Optional[str] = None
        self.approval_group_status: Optional[int] = None
        self.topic: Optional[str] = None
        self.adjust_reason: Optional[str] = None
        self.effective_date: Optional[str] = None
        self.created_by: Optional[str] = None
        self.draft_id: Optional[str] = None
        self.draft_status: Optional[int] = None
        self.approval_group_status_v2: Optional[int] = None
        init(self, d, self._types)


class P2CorehrApprovalGroupsUpdatedV2(EventContext):
    _types = {
        "event": P2CorehrApprovalGroupsUpdatedV2Data
    }

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