import '../domain/inventory_adjustment_result.dart';
import '../domain/inventory_repository.dart';

/// Use case: adjust the quantity of an inventory item by a delta.
///
/// A positive [delta] adds stock; a negative [delta] removes stock.
class AdjustInventoryQuantity {
  final InventoryRepository repository;

  AdjustInventoryQuantity(this.repository);

  Future<InventoryAdjustmentResult> call(String id, int delta, String reason) =>
      repository.adjustQuantity(id, delta, reason);
}
