@cfxlabsinc/b2b-services
    Preparing search index...
    BankInternalTransfer: Pick<
        SelectBankInternalTransfer,
        "createdAt"
        | "updatedAt",
    > & {
        credits: BankInternalTransferLeg[];
        data: SelectBankInternalTransfer["data"];
        deadline: { at: Date; passed: boolean } | null;
        debits: BankInternalTransferLeg[];
        id: string;
        outstandingLeg: "DEBIT" | "CREDIT" | "DEBIT_AND_CREDIT" | null;
        outstandingLegDescription: string | null;
        status: SelectBankInternalTransfer["status"];
        statusDescription: string;
        victorTransactionId: string | undefined;
    }

    Type Declaration

    • credits: BankInternalTransferLeg[]

      CREDIT legs, oldest posting first; once COMPLETED they total the same as debits.

    • data: SelectBankInternalTransfer["data"]
    • deadline: { at: Date; passed: boolean } | null

      When the deadline (deadlineOf) ends and whether it has passed; null with no leg outstanding, before the clock starts, or for a sweep still inside SWEEP_SETTLE_TIME. The stale filter returns the transfers whose deadline passed, and no others.

    • debits: BankInternalTransferLeg[]

      DEBIT legs, oldest posting first. A PENDING transfer holds only the legs attached so far.

    • id: string
    • outstandingLeg: "DEBIT" | "CREDIT" | "DEBIT_AND_CREDIT" | null

      The side whose legs total less than the amount on a pending transfer the operator workflow started, or on an orphaned deposit sweep (orphanedDepositSweepSql); null on any other transfer.

    • outstandingLegDescription: string | null
    • status: SelectBankInternalTransfer["status"]
    • statusDescription: string
    • victorTransactionId: string | undefined