Source code for kittycad.models.payment_method

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


[docs] 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=())