# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init


class LumpSumPaymentDetailForCreate(object):
    _types = {
        "issuance_amount": str,
        "issuance_status": str,
        "issuance_way": str,
        "issuance_time": str,
        "belong_time": str,
        "issuance_country_region_id": str,
        "issuance_pay_group_id": str,
    }

    def __init__(self, d=None):
        self.issuance_amount: Optional[str] = None
        self.issuance_status: Optional[str] = None
        self.issuance_way: Optional[str] = None
        self.issuance_time: Optional[str] = None
        self.belong_time: Optional[str] = None
        self.issuance_country_region_id: Optional[str] = None
        self.issuance_pay_group_id: Optional[str] = None
        init(self, d, self._types)

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


class LumpSumPaymentDetailForCreateBuilder(object):
    def __init__(self) -> None:
        self._lump_sum_payment_detail_for_create = LumpSumPaymentDetailForCreate()

    def issuance_amount(self, issuance_amount: str) -> "LumpSumPaymentDetailForCreateBuilder":
        self._lump_sum_payment_detail_for_create.issuance_amount = issuance_amount
        return self

    def issuance_status(self, issuance_status: str) -> "LumpSumPaymentDetailForCreateBuilder":
        self._lump_sum_payment_detail_for_create.issuance_status = issuance_status
        return self

    def issuance_way(self, issuance_way: str) -> "LumpSumPaymentDetailForCreateBuilder":
        self._lump_sum_payment_detail_for_create.issuance_way = issuance_way
        return self

    def issuance_time(self, issuance_time: str) -> "LumpSumPaymentDetailForCreateBuilder":
        self._lump_sum_payment_detail_for_create.issuance_time = issuance_time
        return self

    def belong_time(self, belong_time: str) -> "LumpSumPaymentDetailForCreateBuilder":
        self._lump_sum_payment_detail_for_create.belong_time = belong_time
        return self

    def issuance_country_region_id(self, issuance_country_region_id: str) -> "LumpSumPaymentDetailForCreateBuilder":
        self._lump_sum_payment_detail_for_create.issuance_country_region_id = issuance_country_region_id
        return self

    def issuance_pay_group_id(self, issuance_pay_group_id: str) -> "LumpSumPaymentDetailForCreateBuilder":
        self._lump_sum_payment_detail_for_create.issuance_pay_group_id = issuance_pay_group_id
        return self

    def build(self) -> "LumpSumPaymentDetailForCreate":
        return self._lump_sum_payment_detail_for_create
