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

    The process default: built from each dependency's own instance().

    • Registers a Victor account as a bank_account row (provider = 'VICTOR'). Idempotent on victorId: a second create for a live account writes nothing and returns DUPLICATE, after starting its pool holders' backfills again, so a retry recovers a start that failed after the first commit.

      Parameters

      • args: {
            accountNumber: string;
            customerId?: string | null;
            name: string;
            routingNumber: string;
            type: VictorAccountType;
            victorAchCompanyId?: string | null;
            victorAchCompanyName?: string | null;
            victorId: string;
            victorLedgerProgramId?: string | null;
        }

      Returns Promise<
          | { ok: true; value: VictorAccount }
          | {
              error:
                  | GrantError
                  | ServiceError<"DUPLICATE" | "INVALID_PROGRAM_POOL">
                  | PointError;
              ok: false;
          },
      >

    • Parameters

      • args: {
            data: {
                name?: string;
                routingNumber?: string;
                victorAchCompanyId?: string | null;
                victorAchCompanyName?: string | null;
                victorLedgerProgramId?: string | null;
            };
            id: string;
        }

      Returns Promise<
          | { ok: true; value: VictorAccount }
          | {
              error:
                  | GrantError
                  | PointError
                  | ServiceError<"NOT_FOUND" | "INVALID_PROGRAM_POOL">;
              ok: false;
          },
      >