# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .vat_invoice import VatInvoice


class RecognizeVatInvoiceResponseBody(object):
    _types = {
        "vat_invoices": List[VatInvoice],
    }

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

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


class RecognizeVatInvoiceResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._recognize_vat_invoice_response_body = RecognizeVatInvoiceResponseBody()

    def vat_invoices(self, vat_invoices: List[VatInvoice]) -> "RecognizeVatInvoiceResponseBodyBuilder":
        self._recognize_vat_invoice_response_body.vat_invoices = vat_invoices
        return self

    def build(self) -> "RecognizeVatInvoiceResponseBody":
        return self._recognize_vat_invoice_response_body
