refactor: remove OrderType entity and update order types to use UiOrderType

This commit is contained in:
Achintha Isuru
2026-02-21 20:29:59 -05:00
parent 9817dbeec8
commit 6e50369e17
5 changed files with 20 additions and 35 deletions

View File

@@ -34,7 +34,6 @@ export 'src/entities/shifts/break/break.dart';
export 'src/adapters/shifts/break/break_adapter.dart';
// Orders & Requests
export 'src/entities/orders/order_type.dart';
export 'src/entities/orders/one_time_order.dart';
export 'src/entities/orders/one_time_order_position.dart';
export 'src/entities/orders/recurring_order.dart';

View File

@@ -1,25 +0,0 @@
import 'package:equatable/equatable.dart';
/// Represents a type of order that can be created (e.g., Rapid, One-Time).
///
/// This entity defines the identity and display metadata (keys) for the order type.
/// UI-specific properties like colors and icons are handled by the presentation layer.
class OrderType extends Equatable {
const OrderType({
required this.id,
required this.titleKey,
required this.descriptionKey,
});
/// Unique identifier for the order type.
final String id;
/// Translation key for the title.
final String titleKey;
/// Translation key for the description.
final String descriptionKey;
@override
List<Object?> get props => <Object?>[id, titleKey, descriptionKey];
}