"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from .paymentprocessor import PaymentProcessor
from polar_sdk.types import BaseModel
from typing import Optional
from typing_extensions import NotRequired, TypedDict


class CustomerOrderConfirmPaymentTypedDict(TypedDict):
    r"""Schema to confirm a retry payment using a Stripe confirmation token."""

    confirmation_token_id: str
    r"""ID of the Stripe confirmation token."""
    payment_processor: NotRequired[PaymentProcessor]


class CustomerOrderConfirmPayment(BaseModel):
    r"""Schema to confirm a retry payment using a Stripe confirmation token."""

    confirmation_token_id: str
    r"""ID of the Stripe confirmation token."""

    payment_processor: Optional[PaymentProcessor] = None
