# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class OpenApiUpdateVendor(object):
    _types = {
        "id": int,
    }

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

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


class OpenApiUpdateVendorBuilder(object):
    def __init__(self) -> None:
        self._open_api_update_vendor = OpenApiUpdateVendor()

    def id(self, id: int) -> "OpenApiUpdateVendorBuilder":
        self._open_api_update_vendor.id = id
        return self

    def build(self) -> "OpenApiUpdateVendor":
        return self._open_api_update_vendor
