# 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 .bank_card import BankCard


class RecognizeBankCardResponseBody(object):
    _types = {
        "bank_card": BankCard,
    }

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

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


class RecognizeBankCardResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._recognize_bank_card_response_body = RecognizeBankCardResponseBody()

    def bank_card(self, bank_card: BankCard) -> "RecognizeBankCardResponseBodyBuilder":
        self._recognize_bank_card_response_body.bank_card = bank_card
        return self

    def build(self) -> "RecognizeBankCardResponseBody":
        return self._recognize_bank_card_response_body
