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

    Interface RecordedCheckoutAttempt

    The durable checkout facts of one order as they are read back from persistence.

    It is OrderCheckoutAttempt plus the database time at which the confirmed attempt was committed. The recorded time is read rather than supplied, so a checkout fact and the moment it became durable can never disagree, and it survives later catalog changes, fulfillment transitions, and delivery exactly as the rest of the order does.

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

    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.

    recordedAt: Date

    Database time at which the confirmed attempt was committed.