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

    Manage customer deposit bank partners.

    Index
    • Editor-facing split view: the customer's explicitly-stored partners and the DB-driven defaults, kept separate rather than merged.

      The merged get view is wrong to edit against: it folds defaults into the list, so a naive get→save round-trip would freeze today's inherited defaults as explicit per-customer picks (and they'd stop tracking future default changes). An editor writes back only the stored set via upsert; the defaults are presented as read-only context so the operator sees what an empty override inherits. assignable is every partner bank the schema permits that also exists in the bank table (enriched with name/routing) — the only banks upsert will accept without toBankPartner throwing.

      Parameters

      • __namedParameters: { customerId: string }

      Returns Promise<
          {
              ok: true;
              value: | {
                  assignable: CustomerBankPartner[];
                  defaults: CustomerBankPartner[];
                  stored: CustomerBankPartner[];
              }
              | null;
          },
      >

      null if the customer does not exist.