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

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

  UpdateProductPrice(this.repository);

  Future<ProductDraft> call(String id, double price) => repository.updateProductPrice(id, price);
}
