* 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>
28 lines
545 B
Python
28 lines
545 B
Python
from typing import Optional
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
from ..models.payment_method_card_checks import PaymentMethodCardChecks
|
|
|
|
|
|
class CardDetails(BaseModel):
|
|
"""The card details of a payment method."""
|
|
|
|
brand: Optional[str] = None
|
|
|
|
checks: PaymentMethodCardChecks = {}
|
|
|
|
country: Optional[str] = None
|
|
|
|
exp_month: int = 0
|
|
|
|
exp_year: int = 0
|
|
|
|
fingerprint: Optional[str] = None
|
|
|
|
funding: Optional[str] = None
|
|
|
|
last4: Optional[str] = None
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|