* better default types Signed-off-by: Jess Frazelle <github@jessfraz.com> * more mypy fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * more fixes for mypy Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix mypy; Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix mypy; Signed-off-by: Jess Frazelle <github@jessfraz.com> * I have generated the latest API! --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
34 lines
667 B
Python
34 lines
667 B
Python
import datetime
|
|
from typing import Dict, Optional
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
from ..models.address_details import AddressDetails
|
|
from ..models.currency import Currency
|
|
|
|
|
|
class Customer(BaseModel):
|
|
"""The resource representing a payment \"Customer\"."""
|
|
|
|
address: Optional[AddressDetails] = None
|
|
|
|
balance: float = 0.0
|
|
|
|
created_at: datetime.datetime
|
|
|
|
currency: Currency = "usd" # type: ignore
|
|
|
|
delinquent: bool = False
|
|
|
|
email: Optional[str] = None
|
|
|
|
id: Optional[str] = None
|
|
|
|
metadata: Dict[str, str] = {}
|
|
|
|
name: Optional[str] = None
|
|
|
|
phone: str = ""
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|