72 lines
1.4 KiB
Dart
72 lines
1.4 KiB
Dart
import 'package:hl_lieferservice/model/delivery.dart';
|
|
import 'package:hl_lieferservice/model/tour.dart';
|
|
|
|
abstract class DeliveryEvent {}
|
|
|
|
class LoadDeliveryEvent extends DeliveryEvent {
|
|
LoadDeliveryEvent({required this.delivery});
|
|
|
|
Delivery delivery;
|
|
}
|
|
|
|
class UnscanArticleEvent extends DeliveryEvent {
|
|
UnscanArticleEvent({
|
|
required this.articleId,
|
|
required this.newAmount,
|
|
required this.reason,
|
|
});
|
|
|
|
String articleId;
|
|
String reason;
|
|
int newAmount;
|
|
}
|
|
|
|
class ResetScanAmountEvent extends DeliveryEvent {
|
|
ResetScanAmountEvent({required this.articleId});
|
|
|
|
String articleId;
|
|
}
|
|
|
|
class AddDiscountEvent extends DeliveryEvent {
|
|
AddDiscountEvent({
|
|
required this.deliveryId,
|
|
required this.value,
|
|
required this.reason,
|
|
});
|
|
|
|
String deliveryId;
|
|
String reason;
|
|
int value;
|
|
}
|
|
|
|
class RemoveDiscountEvent extends DeliveryEvent {
|
|
RemoveDiscountEvent({required this.deliveryId});
|
|
|
|
String deliveryId;
|
|
}
|
|
|
|
class UpdateDiscountEvent extends DeliveryEvent {
|
|
UpdateDiscountEvent({
|
|
required this.deliveryId,
|
|
required this.value,
|
|
required this.reason,
|
|
});
|
|
|
|
String deliveryId;
|
|
String? reason;
|
|
int? value;
|
|
}
|
|
|
|
class UpdateDeliveryOption extends DeliveryEvent {
|
|
UpdateDeliveryOption({required this.key, required this.value});
|
|
|
|
String key;
|
|
dynamic value;
|
|
}
|
|
|
|
class UpdateSelectedPaymentMethod extends DeliveryEvent {
|
|
UpdateSelectedPaymentMethod({required this.payment});
|
|
|
|
Payment payment;
|
|
}
|