# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .offer_custom_field_config_option import OfferCustomFieldConfigOption


class OfferCustomFieldConfig(object):
    _types = {
        "options": List[OfferCustomFieldConfigOption],
    }

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

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


class OfferCustomFieldConfigBuilder(object):
    def __init__(self) -> None:
        self._offer_custom_field_config = OfferCustomFieldConfig()

    def options(self, options: List[OfferCustomFieldConfigOption]) -> "OfferCustomFieldConfigBuilder":
        self._offer_custom_field_config.options = options
        return self

    def build(self) -> "OfferCustomFieldConfig":
        return self._offer_custom_field_config
