Sarraf API
    Preparing search index...

    Interface HttpRequest

    interface HttpRequest {
        body?: unknown;
        headers?: Record<string, string>;
        method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
        moneyMoving?: boolean;
        operation?: string;
        provider?: ProviderId;
        query?: Record<string, string | number | boolean | undefined>;
        retryable?: boolean;
        timeoutMs?: number;
        url: string;
    }
    Index
    body?: unknown

    JSON-serialized unless it is a string, FormData or URLSearchParams (sent as is).

    headers?: Record<string, string>
    method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"
    moneyMoving?: boolean

    Moves money (create payment, refund, void). Never retried, and a timeout becomes TIMEOUT_UNKNOWN_OUTCOME so the caller queries status instead of retrying blindly.

    operation?: string

    Short label for logs, e.g. "paymob.createIntention".

    provider?: ProviderId
    query?: Record<string, string | number | boolean | undefined>
    retryable?: boolean

    Safe to retry on network errors, 429 and 5xx. Defaults to true for GET.

    timeoutMs?: number
    url: string