forked from elevenlabs/elevenlabs-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
invoice.py
30 lines (22 loc) · 948 Bytes
/
invoice.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# This file was auto-generated by Fern from our API Definition.
import datetime as dt
import typing
from ..core.datetime_utils import serialize_datetime
try:
import pydantic.v1 as pydantic # type: ignore
except ImportError:
import pydantic # type: ignore
class Invoice(pydantic.BaseModel):
amount_due_cents: int
next_payment_attempt_unix: int
def json(self, **kwargs: typing.Any) -> str:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
return super().json(**kwargs_with_defaults)
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
return super().dict(**kwargs_with_defaults)
class Config:
frozen = True
smart_union = True
extra = pydantic.Extra.allow
json_encoders = {dt.datetime: serialize_datetime}