import '../entities/standing_order.dart';
import '../repositories/standing_orders_repository.dart';

class ToggleStandingOrder {
  final StandingOrdersRepository _repository;

  ToggleStandingOrder(this._repository);

  Future<StandingOrder> execute(String id, bool isActive) {
    return _repository.toggleActive(id, isActive);
  }
}
