Foodtruck Order — TypeScript Reference - v0.1.0
    Preparing search index...

    Interface OrderCheckoutAttempt

    Confirmed checkout facts recorded with a commercial order.

    Only a confirmed succeeded attempt may reach persistence, so the outcome is a literal rather than the neutral contract's wider vocabulary. operationId is application-owned and stable; providerReference is the provider's own optional reference and never itself proves payment.

    interface OrderCheckoutAttempt {
        currency: string;
        grossAmountMinor: number;
        operationId: string;
        outcome: "succeeded";
        paymentMethod: "card" | null;
        providerPaymentReference: string | null;
        providerReference: string | null;
    }

    Hierarchy (View Summary)

    Index
    currency: string
    grossAmountMinor: number

    Gross amount actually charged, in integer SEK minor units.

    operationId: string

    Stable application-owned identity of the checkout operation.

    outcome: "succeeded"

    Always succeeded; no other outcome class is ever durable.

    paymentMethod: "card" | null

    Neutral method used for the confirmed charge, or null when unavailable.

    providerPaymentReference: string | null

    Provider's payment-level reference when available, distinct from its order reference.

    providerReference: string | null

    Provider's stable reference when it supplied one, otherwise null.