# 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 .offer import Offer


class GetOfferResponseBody(object):
    _types = {
        "offer": Offer,
    }

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

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


class GetOfferResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_offer_response_body = GetOfferResponseBody()

    def offer(self, offer: Offer) -> "GetOfferResponseBodyBuilder":
        self._get_offer_response_body.offer = offer
        return self

    def build(self) -> "GetOfferResponseBody":
        return self._get_offer_response_body
