# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .check_failed_account_info import CheckFailedAccountInfo


class ReconciliationReferralAccountResponseBody(object):
    _types = {
        "check_failed_list": List[CheckFailedAccountInfo],
    }

    def __init__(self, d=None):
        self.check_failed_list: Optional[List[CheckFailedAccountInfo]] = None
        init(self, d, self._types)

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


class ReconciliationReferralAccountResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._reconciliation_referral_account_response_body = ReconciliationReferralAccountResponseBody()

    def check_failed_list(self, check_failed_list: List[
        CheckFailedAccountInfo]) -> "ReconciliationReferralAccountResponseBodyBuilder":
        self._reconciliation_referral_account_response_body.check_failed_list = check_failed_list
        return self

    def build(self) -> "ReconciliationReferralAccountResponseBody":
        return self._reconciliation_referral_account_response_body
