@cfxlabsinc/b2b-services
    Preparing search index...

    What the detail shows, with every name and label resolved by the caller.

    type ApprovalRequestView = {
        attachments: { href: string; name: string }[];
        createdAt: string;
        estimate: {
            debit: string;
            debitCurrency: string;
            fee: string;
            feeCurrency: string;
            quotedAt: string;
            stale?: boolean;
        };
        id: string;
        makeAgainHref: string
        | null;
        note: string | null;
        railLabel: string;
        reason: { by: string | null; message: string } | null;
        recipientAmount: string;
        recipientCurrency: string;
        recipientName: string;
        requesterName: string;
        ruleNames: string[];
        status: ApprovalRequestStatus;
        statusLabel: string;
        steps: ApprovalRequestStepView[];
        transactionHref: string | null;
    }
    Index
    attachments: { href: string; name: string }[]
    createdAt: string
    estimate: {
        debit: string;
        debitCurrency: string;
        fee: string;
        feeCurrency: string;
        quotedAt: string;
        stale?: boolean;
    }

    Type Declaration

    • debit: string
    • debitCurrency: string
    • fee: string
    • feeCurrency: string
    • quotedAt: string
    • Optionalstale?: boolean

      Set by the caller, which owns the clock: the quote is old enough that the figures may have moved.

    id: string
    makeAgainHref: string | null

    The prefilled payment form; set where Make again applies.

    note: string | null
    railLabel: string

    The product description: "Domestic US wire payout".

    reason: { by: string | null; message: string } | null

    Customer-safe text for a declined, failed or cancelled request. by is a display name: the service stores the user's id in reason.by, so resolve it first (a decision row carries approverName).

    recipientAmount: string

    Decimal string; what approvers approve.

    recipientCurrency: string
    recipientName: string
    requesterName: string
    ruleNames: string[]

    The rules that matched, by name.

    statusLabel: string
    transactionHref: string | null

    Set on COMPLETED.