# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init


class CreateApprovalResponseBody(object):
    _types = {
        "approval_code": str,
        "approval_id": int,
    }

    def __init__(self, d=None):
        self.approval_code: Optional[str] = None
        self.approval_id: Optional[int] = None
        init(self, d, self._types)

    @staticmethod
    def builder() -> "CreateApprovalResponseBodyBuilder":
        return CreateApprovalResponseBodyBuilder()


class CreateApprovalResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_approval_response_body = CreateApprovalResponseBody()

    def approval_code(self, approval_code: str) -> "CreateApprovalResponseBodyBuilder":
        self._create_approval_response_body.approval_code = approval_code
        return self

    def approval_id(self, approval_id: int) -> "CreateApprovalResponseBodyBuilder":
        self._create_approval_response_body.approval_id = approval_id
        return self

    def build(self) -> "CreateApprovalResponseBody":
        return self._create_approval_response_body
