@cfxlabsinc/b2b-services
    Preparing search index...
    Index
    instance: (...args: []) => RedemptionWorkflowService = ...

    The process service, starting runs on the queue the temporal namespace names.

    • Parameters

      • __namedParameters: {
            amount: number;
            customerId: string;
            idempotencyKey?: string;
            ledgerAccountId: string;
            withdrawalId?: string;
        }
        • amount: number
        • customerId: string
        • OptionalidempotencyKey?: string

          Client-supplied dedupe token for standalone redemptions (no withdrawalId). Ignored when withdrawalId is present — the withdrawal id remains the idempotency key, exactly as before.

        • ledgerAccountId: string
        • OptionalwithdrawalId?: string

      Returns Promise<
          Pick<
              {
                  achBatchId?: string;
                  amount: string;
                  commitId?: string;
                  commitTxId?: string;
                  createdAt: Date;
                  fees?: { amount: string; ledgerAccountId: string }[];
                  id: string;
                  idempotencyKey: string;
                  initiateTxId?: string;
                  ledgerAccountId: string | null;
                  sourceWalletAddress: string | null;
                  status: "FAILED" | "PROCESSING" | "COMPLETED" | "RETURNED";
                  updatedAt: Date;
                  voidRefund?: { ledgerAccountId: string } | { owner: string };
                  voidTxId?: string;
                  withdrawalId?: string;
              },
              "id",
          >,
      >