# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.enum import HttpMethod, AccessTokenType
from lark_oapi.core.model import BaseRequest
from .batch_delete_eco_account_custom_field_request_body import BatchDeleteEcoAccountCustomFieldRequestBody


class BatchDeleteEcoAccountCustomFieldRequest(BaseRequest):
    def __init__(self) -> None:
        super().__init__()
        self.request_body: Optional[BatchDeleteEcoAccountCustomFieldRequestBody] = None

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


class BatchDeleteEcoAccountCustomFieldRequestBuilder(object):

    def __init__(self) -> None:
        batch_delete_eco_account_custom_field_request = BatchDeleteEcoAccountCustomFieldRequest()
        batch_delete_eco_account_custom_field_request.http_method = HttpMethod.POST
        batch_delete_eco_account_custom_field_request.uri = "/open-apis/hire/v1/eco_account_custom_fields/batch_delete"
        batch_delete_eco_account_custom_field_request.token_types = {AccessTokenType.TENANT}
        self._batch_delete_eco_account_custom_field_request: BatchDeleteEcoAccountCustomFieldRequest = batch_delete_eco_account_custom_field_request

    def request_body(self,
                     request_body: BatchDeleteEcoAccountCustomFieldRequestBody) -> "BatchDeleteEcoAccountCustomFieldRequestBuilder":
        self._batch_delete_eco_account_custom_field_request.request_body = request_body
        self._batch_delete_eco_account_custom_field_request.body = request_body
        return self

    def build(self) -> BatchDeleteEcoAccountCustomFieldRequest:
        return self._batch_delete_eco_account_custom_field_request
