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

    Interface RecordedUnresolvedCheckoutAttempt

    One unresolved attempt as read back from persistence.

    It is UnresolvedCheckoutAttempt plus the database time the attempt became durable. The time is read rather than supplied so the record and the moment it happened can never disagree, and it survives process restart, which is what makes the uncertainty visible after a reload rather than lost with the page.

    interface RecordedUnresolvedCheckoutAttempt {
        currency: string;
        grossAmountMinor: number;
        operationId: string;
        outcome: "unknown";
        providerReference: string | null;
        recordedAt: Date;
    }

    Hierarchy (View Summary)

    Index
    currency: string
    grossAmountMinor: number

    Gross amount the attempt asked for, in integer SEK minor units.

    operationId: string

    Stable application-owned identity of the checkout operation.

    Unique and application-owned, never a provider identifier, so a repeat of the same operation cannot record a second attempt.

    outcome: "unknown"

    Always unknown; this is what makes the record an unresolved one.

    providerReference: string | null

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

    recordedAt: Date

    Database time at which the unresolved attempt was recorded.