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

    Type Alias ManualBankAccount

    Admin-tier projection of a manual_bank_account row. id is the external id; every FK is projected as the referenced row's external id, so nothing internal leaks across the service boundary.

    type ManualBankAccount = {
        accountNumber: string | null;
        bankId: string | null;
        bankName: string | null;
        createdAt: Date;
        currency: string;
        customerId: string | null;
        customerName: string | null;
        discoveredFrom: "MANUAL" | "OBSERVED";
        id: string;
        identityId: string | null;
        key: string;
        ledgerAccountId: string | null;
        memo: string | null;
        name: string;
        notes: string | null;
        organizationId: string | null;
        parentKey: string | null;
        provider: string | null;
        providerAccountId: string | null;
        registeredBy: string | null;
        routingNumber: string | null;
        status: "ACTIVE" | "CLOSED" | "DELETED";
        type: ManualBankAccountType;
        updatedAt: Date;
    }
    Index
    accountNumber: string | null
    bankId: string | null

    The bank slug, or null when the counterparty's bank is not a CFX partner.

    bankName: string | null
    createdAt: Date
    currency: string
    customerId: string | null
    customerName: string | null

    Resolved alongside customerId so a selector trigger can show a name rather than an id.

    discoveredFrom: "MANUAL" | "OBSERVED"
    id: string
    identityId: string | null
    key: string

    This registration's row key in b2b.bank_account_view, so a caller can look the account up there without reassembling the key — including when the view resolves the key to a different arm, which is exactly the case a caller cannot reconstruct on its own (§ 4.7).

    ledgerAccountId: string | null
    memo: string | null
    name: string
    notes: string | null
    organizationId: string | null
    parentKey: string | null
    provider: string | null
    providerAccountId: string | null
    registeredBy: string | null
    routingNumber: string | null
    status: "ACTIVE" | "CLOSED" | "DELETED"
    type: ManualBankAccountType
    updatedAt: Date