@pwngh/economy-lab
    Preparing search index...

    Interface ProcessorHarness

    What a Processor conformance run needs from the host: factories that produce a processor arranged to exhibit each outcome. Only accepted is required; each optional member unlocks its matching test, so a provider whose fake cannot stage a failure mode simply omits it. status returns a processor plus the providerRef to query, staged so payoutStatus for that ref reports the given canonical state.

    interface ProcessorHarness {
        accepted(): Processor;
        indeterminate?(): Processor;
        rejected?(): Processor;
        status?(
            state: "PENDING" | "SETTLED" | "RETURNED" | "FAILED" | "UNKNOWN",
        ): { processor: Processor; providerRef: string };
    }
    Index
    • Parameters

      • state: "PENDING" | "SETTLED" | "RETURNED" | "FAILED" | "UNKNOWN"

      Returns { processor: Processor; providerRef: string }