sdk/oapiSdk/lark_oapi/api/compensation/v1/model/currency.py

37 lines
908 B
Python

# 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 Currency(object):
_types = {
"code": str,
"currency_id": str,
}
def __init__(self, d=None):
self.code: Optional[str] = None
self.currency_id: Optional[str] = None
init(self, d, self._types)
@staticmethod
def builder() -> "CurrencyBuilder":
return CurrencyBuilder()
class CurrencyBuilder(object):
def __init__(self) -> None:
self._currency = Currency()
def code(self, code: str) -> "CurrencyBuilder":
self._currency.code = code
return self
def currency_id(self, currency_id: str) -> "CurrencyBuilder":
self._currency.currency_id = currency_id
return self
def build(self) -> "Currency":
return self._currency