# 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 .account import Account


class EnableReferralAccountResponseBody(object):
    _types = {
        "account": Account,
    }

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

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


class EnableReferralAccountResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._enable_referral_account_response_body = EnableReferralAccountResponseBody()

    def account(self, account: Account) -> "EnableReferralAccountResponseBodyBuilder":
        self._enable_referral_account_response_body.account = account
        return self

    def build(self) -> "EnableReferralAccountResponseBody":
        return self._enable_referral_account_response_body
