# 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 CreateExternalApprovalResponseBody(object):
    _types = {
        "approval_code": str,
    }

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

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


class CreateExternalApprovalResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_external_approval_response_body = CreateExternalApprovalResponseBody()

    def approval_code(self, approval_code: str) -> "CreateExternalApprovalResponseBodyBuilder":
        self._create_external_approval_response_body.approval_code = approval_code
        return self

    def build(self) -> "CreateExternalApprovalResponseBody":
        return self._create_external_approval_response_body
