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

    Constructors

    Methods

    • Parameters

      • args: { customerId: string; id: string }

      Returns Promise<
          {
              ok: true;
              value: | {
                  accountNumber: string;
                  achDepositInstructions: AchDepositInstructions;
                  createdAt: Date;
                  data: | { ledgerProgramId: string; provider: "VICTOR"; victorId: string }
                  | null;
                  deletedAt: Date | null;
                  id: string;
                  name: string | null;
                  provider: "VICTOR" | "BIVO" | "ROUTE_FUSION";
                  referenceId: string | null;
                  routingNumber: string;
                  rtpDepositInstructions: RtpDepositInstructions;
                  status: "PENDING" | "ACTIVE";
                  type: "US_DEPOSIT" | "US_DDA";
                  updatedAt: Date;
                  walletAddress: Address;
                  wireDepositInstructions: UsWireDepositInstructions;
              } & { customerId: string; entityId: string; ledgerAccountId: string }
              | null;
          },
      >

    • Resolves account.virtual-account.v1 activation for a specific entity (the ledger account's owning identity or organization), loading every Victor precondition the matcher inspects (customer-level Victor enrollment, ledger-account presence) so callers don't have to gather them one-by-one.

      Pass provider + ledgerAccountId to signal creation/mutation intent — the matcher only enforces Dart-parity preconditions when virtualAccountProvider === "VICTOR" (see migration 20260418004128_virtual_account_victor_preconditions). Read-only callers can omit both; the matcher falls through to the non-VICTOR catch-all rule.

      Parameters

      • args: {
            customerId: string;
            entityId: string;
            ledgerAccountId: string;
            provider?: "VICTOR" | "BIVO" | "ROUTE_FUSION";
        }

      Returns Promise<{ ok: true; value: void } | { error: ServiceError; ok: false }>

    • Parameters

      • args: {
            customerId: string;
            ids?: string[];
            ledgerAccountAddresses?: Address[];
            ledgerAccountIds?: string[];
            page?: number;
            pageSize?: number;
        }

      Returns Promise<
          {
              ok: true;
              value: {
                  hasNext: boolean;
                  items: (
                      {
                          accountNumber: string;
                          achDepositInstructions: AchDepositInstructions;
                          createdAt: Date;
                          data: | {
                              ledgerProgramId: string;
                              provider: "VICTOR";
                              victorId: string;
                          }
                          | null;
                          deletedAt: Date
                          | null;
                          id: string;
                          name: string | null;
                          provider: "VICTOR" | "BIVO" | "ROUTE_FUSION";
                          referenceId: string | null;
                          routingNumber: string;
                          rtpDepositInstructions: RtpDepositInstructions;
                          status: "PENDING" | "ACTIVE";
                          type: "US_DEPOSIT" | "US_DDA";
                          updatedAt: Date;
                          walletAddress: Address;
                          wireDepositInstructions: UsWireDepositInstructions;
                      } & {
                          customerId: string;
                          customerName: string;
                          entityId: string;
                          entityName: string;
                          ledgerAccountId: string;
                          ledgerAccountName: string;
                      }
                  )[];
              };
          },
      >