@cfxlabsinc/b2b-services
    Preparing search index...
    CreditCandidates:
        | {
            bankTransactionId: BankTransactionId;
            batchExternalId: BatchExternalId;
            decision: "MATCHED";
        }
        | {
            bankTransactionId: BankTransactionId;
            batchExternalIds: BatchExternalId[];
            decision: "AMBIGUOUS";
        }
        | {
            bankTransactionId: BankTransactionId;
            decision: "UNMATCHED";
            depositCandidates: string[][];
        }
        | {
            bankTransactionId: BankTransactionId;
            batchExternalIds: BatchExternalId[];
            blocked: boolean;
            decision: "WAITING";
            heldBatchExternalId: BatchExternalId
            | null;
            missingBatchDays: MissingBatchDay[];
        }

    Type Declaration

    • {
          bankTransactionId: BankTransactionId;
          batchExternalId: BatchExternalId;
          decision: "MATCHED";
      }
    • {
          bankTransactionId: BankTransactionId;
          batchExternalIds: BatchExternalId[];
          decision: "AMBIGUOUS";
      }
    • {
          bankTransactionId: BankTransactionId;
          decision: "UNMATCHED";
          depositCandidates: string[][];
      }
      • bankTransactionId: BankTransactionId
      • decision: "UNMATCHED"
      • depositCandidates: string[][]

        Each entry is one candidate: a deposit, or two that sum to the credit.

    • {
          bankTransactionId: BankTransactionId;
          batchExternalIds: BatchExternalId[];
          blocked: boolean;
          decision: "WAITING";
          heldBatchExternalId: BatchExternalId | null;
          missingBatchDays: MissingBatchDay[];
      }
      • bankTransactionId: BankTransactionId
      • batchExternalIds: BatchExternalId[]

        The complete, unclaimed batches in the window that total the credit, which it will pick from.

      • blocked: boolean

        Four weekdays have passed since the credit posted: CREDIT_WINDOW_BLOCKED.

      • decision: "WAITING"
      • heldBatchExternalId: BatchExternalId | null

        The sole candidate, held for another waiting credit; null when this credit's own window is missing a day.

      • missingBatchDays: MissingBatchDay[]