2024-07-28 15:21:51 -07:00
|
|
|
from typing import Optional
|
2022-06-11 17:26:20 -07:00
|
|
|
|
2024-07-28 15:21:51 -07:00
|
|
|
from pydantic import BaseModel, ConfigDict
|
2022-06-11 17:26:20 -07:00
|
|
|
|
|
|
|
from ..models.payment_method_card_checks import PaymentMethodCardChecks
|
|
|
|
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
class CardDetails(BaseModel):
|
|
|
|
"""The card details of a payment method."""
|
2022-06-11 17:26:20 -07:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
brand: Optional[str] = None
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2024-08-20 13:10:56 -04:00
|
|
|
checks: PaymentMethodCardChecks = {}
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
country: Optional[str] = None
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2024-08-20 13:10:56 -04:00
|
|
|
exp_month: int = 0
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2024-08-20 13:10:56 -04:00
|
|
|
exp_year: int = 0
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
fingerprint: Optional[str] = None
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
funding: Optional[str] = None
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
last4: Optional[str] = None
|
2024-01-06 18:32:21 -08:00
|
|
|
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|