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

/// Use case: delete a product from the catalog.
///
/// Delegates to [ProductPublishingRepository.deleteProduct].
/// When [force] is `true` the product is permanently deleted; otherwise it is
/// moved to trash (WooCommerce default).
class DeleteProduct {
  final ProductPublishingRepository _repository;

  const DeleteProduct(this._repository);

  Future<void> call(String id, {bool force = false}) {
    return _repository.deleteProduct(id, force: force);
  }
}
