refactor: remove OrderType entity and update order types to use UiOrderType
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
Reference in New Issue
Block a user