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

    Safe browser projection of one durable refund attempt.

    interface RefundOperation {
        attemptNumber: number;
        canResolve: boolean;
        completedAt: string | null;
        createdAt: string;
        operationId: string;
        otherReason: string | null;
        outcome: "succeeded" | "rejected" | "pending" | "cancelled" | "unknown";
        providerErrorCode: string | null;
        reason:
            | "customer-return"
            | "suspected-malfunction"
            | "suspected-fraud"
            | "duplicate-transaction"
            | "other";
    }
    Index
    attemptNumber: number

    One-based attempt number.

    canResolve: boolean

    Whether a status-only provider lookup is possible for this attempt.

    completedAt: string | null

    ISO timestamp of a definitive outcome, otherwise null.

    createdAt: string

    ISO timestamp when the attempt was claimed.

    operationId: string

    Application-owned identifier used only to read or resolve this attempt.

    otherReason: string | null

    Bounded explanation when the selected reason is other.

    outcome: "succeeded" | "rejected" | "pending" | "cancelled" | "unknown"

    Current durable outcome of the attempt.

    providerErrorCode: string | null

    Stable provider error code, when one was supplied.

    reason:
        | "customer-return"
        | "suspected-malfunction"
        | "suspected-fraud"
        | "duplicate-transaction"
        | "other"

    Provider-neutral reason selected by the operator.