# 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 .external_offer import ExternalOffer


class CreateExternalOfferResponseBody(object):
    _types = {
        "external_offer": ExternalOffer,
    }

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

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


class CreateExternalOfferResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_external_offer_response_body = CreateExternalOfferResponseBody()

    def external_offer(self, external_offer: ExternalOffer) -> "CreateExternalOfferResponseBodyBuilder":
        self._create_external_offer_response_body.external_offer = external_offer
        return self

    def build(self) -> "CreateExternalOfferResponseBody":
        return self._create_external_offer_response_body
