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

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

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


class EnableReferralAccountRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._enable_referral_account_request_body = EnableReferralAccountRequestBody()

    def referral_account_id(self, referral_account_id: str) -> "EnableReferralAccountRequestBodyBuilder":
        self._enable_referral_account_request_body.referral_account_id = referral_account_id
        return self

    def build(self) -> "EnableReferralAccountRequestBody":
        return self._enable_referral_account_request_body
