Files
kittycad.py/kittycad/models/card_details.py
Jess Frazelle cf1e048bea fix mypy (#267)
* 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>
2024-09-10 14:35:25 -07:00

28 lines
561 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 = {} # type: ignore
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=())