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

    Hides a netted group of one customer's transactions, all or none, and releases a group again. The rule itself is checkHideable.

    Index
    instance: (...args: []) => TransactionHideAdminService = ...

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

    • The hide group a transaction belongs to, or null when it is not hidden.

      Parameters

      • __namedParameters: { customerId: string; transactionId: string }

      Returns Promise<
          | {
              groupId: string;
              hiddenAt: Date;
              hiddenBy: string;
              transactionIds: string[];
          }
          | null,
      >

    • Parameters

      • __namedParameters: { customerId: string; hiddenBy: string; transactionIds: string[] }

      Returns Promise<
          | { ok: true; value: { groupId: string; transactionIds: string[] } }
          | {
              error:
                  | ServiceError<
                      "TRANSACTION_SELECTION_EMPTY"
                      | "TRANSACTION_ALREADY_HIDDEN",
                  >
                  | HideCheckError;
              ok: false;
          },
      >