* use default values for non-required properties if a default is specified * generate client * I have generated the latest API! --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
23 lines
413 B
Python
23 lines
413 B
Python
from typing import Dict, Optional
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
|
|
|
|
class Coupon(BaseModel):
|
|
"""The resource representing a Coupon."""
|
|
|
|
amount_off: Optional[float] = None
|
|
|
|
deleted: bool = False
|
|
|
|
id: Optional[str] = None
|
|
|
|
metadata: Dict[str, str] = {}
|
|
|
|
name: Optional[str] = None
|
|
|
|
percent_off: Optional[float] = None
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|