@kepas/daraja-js
    Preparing search index...

    Interface B2bResult

    Optional, additive fields parsers layer onto a result when the code is catalogued. resultCode/resultDesc/success are never replaced — these only ADD a human meaning + retry/terminal hints.

    interface B2bResult {
        catalogued?: boolean;
        conversationId: string;
        meaning?: string;
        originatorConversationId: string;
        params: Record<string, unknown>;
        resultCode: number;
        resultDesc: string;
        retriable?: boolean;
        success: boolean;
        terminal?: boolean;
        transactionId: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    catalogued?: boolean

    True when the (scope, resultCode) pair is in the proven catalog.

    conversationId: string
    meaning?: string

    Catalogued, actionable meaning (or Safaricom's text); undefined if unproven.

    originatorConversationId: string
    params: Record<string, unknown>
    resultCode: number
    resultDesc: string
    retriable?: boolean
    success: boolean
    terminal?: boolean
    transactionId: string