* 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>
27 lines
564 B
Python
27 lines
564 B
Python
import datetime
|
|
from typing import Dict, Optional
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
from ..models.billing_info import BillingInfo
|
|
from ..models.card_details import CardDetails
|
|
from ..models.payment_method_type import PaymentMethodType
|
|
|
|
|
|
class PaymentMethod(BaseModel):
|
|
"""A payment method."""
|
|
|
|
billing_info: BillingInfo
|
|
|
|
card: Optional[CardDetails] = None
|
|
|
|
created_at: datetime.datetime
|
|
|
|
id: Optional[str] = None
|
|
|
|
metadata: Dict[str, str] = {}
|
|
|
|
type: PaymentMethodType
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|