# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .application_offer import ApplicationOffer


class OfferApplicationResponseBody(object):
    _types = {
        "offer": ApplicationOffer,
    }

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

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


class OfferApplicationResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._offer_application_response_body = OfferApplicationResponseBody()

    def offer(self, offer: ApplicationOffer) -> "OfferApplicationResponseBodyBuilder":
        self._offer_application_response_body.offer = offer
        return self

    def build(self) -> "OfferApplicationResponseBody":
        return self._offer_application_response_body
