import '../domain/order_action_result.dart';
import '../domain/orders_repository.dart';

/// Use case: append a note to an existing order.
class AddOrderNote {
  final OrdersRepository repository;

  AddOrderNote(this.repository);

  Future<OrderActionResult> call(String id, String note) => repository.addOrderNote(id, note);
}
