# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .vat_entity import VatEntity


class VatInvoice(object):
    _types = {
        "entities": List[VatEntity],
    }

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

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


class VatInvoiceBuilder(object):
    def __init__(self) -> None:
        self._vat_invoice = VatInvoice()

    def entities(self, entities: List[VatEntity]) -> "VatInvoiceBuilder":
        self._vat_invoice.entities = entities
        return self

    def build(self) -> "VatInvoice":
        return self._vat_invoice
