# Generated by ariadne-codegen
# Source: metasrht/graphql/

from typing import Literal, Optional

from pydantic import Field

from .base_model import BaseModel
from .enums import PaymentIntentStatus


class FinalizePaymentIntent(BaseModel):
    intent: "FinalizePaymentIntentIntent"


class FinalizePaymentIntentIntent(BaseModel):
    typename__: Literal["PaymentIntent", "StripePaymentIntent"] = Field(
        alias="__typename"
    )
    id: str
    outcome: Optional["FinalizePaymentIntentIntentOutcome"]


class FinalizePaymentIntentIntentOutcome(BaseModel):
    status: PaymentIntentStatus
    error: Optional[str]


FinalizePaymentIntent.model_rebuild()
FinalizePaymentIntentIntent.model_rebuild()
