import '../domain/product_draft.dart';
import '../domain/product_publishing_repository.dart';

/// Use case: update only the name of a single product by its [id].
///
/// This is a narrow name mutation — not a generic product edit.
class UpdateProductName {
  final ProductPublishingRepository repository;

  UpdateProductName(this.repository);

  Future<ProductDraft> call(String id, String name) => repository.updateProductName(id, name);
}
