30 lines
654 B
Dart
30 lines
654 B
Dart
import '../../domain/entities/payment_card.dart';
|
|
|
|
sealed class PaymentConfirmEvent {}
|
|
|
|
class PaymentConfirmStarted extends PaymentConfirmEvent {
|
|
final int orderId;
|
|
PaymentConfirmStarted(this.orderId);
|
|
}
|
|
|
|
class PaymentCardChanged extends PaymentConfirmEvent {
|
|
final PaymentCard card;
|
|
PaymentCardChanged(this.card);
|
|
}
|
|
|
|
class SelectBalancePressed extends PaymentConfirmEvent {}
|
|
|
|
class PayRide extends PaymentConfirmEvent {
|
|
final int orderId;
|
|
final int? cardId;
|
|
final bool isBalance;
|
|
final List<int> photoIds;
|
|
|
|
PayRide({
|
|
required this.orderId,
|
|
required this.cardId,
|
|
required this.isBalance,
|
|
required this.photoIds,
|
|
});
|
|
}
|