Versione OK Pour l'onglet événements.
This commit is contained in:
@@ -204,3 +204,97 @@ class SortCotisations extends CotisationsEvent {
|
||||
@override
|
||||
List<Object?> get props => [sortBy, ascending];
|
||||
}
|
||||
|
||||
/// Événement pour initier un paiement
|
||||
class InitiatePayment extends CotisationsEvent {
|
||||
final String cotisationId;
|
||||
final double montant;
|
||||
final String methodePaiement;
|
||||
final String numeroTelephone;
|
||||
final String? nomPayeur;
|
||||
final String? emailPayeur;
|
||||
|
||||
const InitiatePayment({
|
||||
required this.cotisationId,
|
||||
required this.montant,
|
||||
required this.methodePaiement,
|
||||
required this.numeroTelephone,
|
||||
this.nomPayeur,
|
||||
this.emailPayeur,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object?> get props => [
|
||||
cotisationId,
|
||||
montant,
|
||||
methodePaiement,
|
||||
numeroTelephone,
|
||||
nomPayeur,
|
||||
emailPayeur,
|
||||
];
|
||||
}
|
||||
|
||||
/// Événement pour vérifier le statut d'un paiement
|
||||
class CheckPaymentStatus extends CotisationsEvent {
|
||||
final String paymentId;
|
||||
|
||||
const CheckPaymentStatus(this.paymentId);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [paymentId];
|
||||
}
|
||||
|
||||
/// Événement pour annuler un paiement
|
||||
class CancelPayment extends CotisationsEvent {
|
||||
final String paymentId;
|
||||
final String cotisationId;
|
||||
|
||||
const CancelPayment({
|
||||
required this.paymentId,
|
||||
required this.cotisationId,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object?> get props => [paymentId, cotisationId];
|
||||
}
|
||||
|
||||
/// Événement pour programmer des notifications
|
||||
class ScheduleNotifications extends CotisationsEvent {
|
||||
final List<CotisationModel> cotisations;
|
||||
|
||||
const ScheduleNotifications(this.cotisations);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [cotisations];
|
||||
}
|
||||
|
||||
/// Événement pour synchroniser avec le serveur
|
||||
class SyncWithServer extends CotisationsEvent {
|
||||
final bool forceSync;
|
||||
|
||||
const SyncWithServer({this.forceSync = false});
|
||||
|
||||
@override
|
||||
List<Object?> get props => [forceSync];
|
||||
}
|
||||
|
||||
/// Événement pour appliquer des filtres avancés
|
||||
class ApplyAdvancedFilters extends CotisationsEvent {
|
||||
final Map<String, dynamic> filters;
|
||||
|
||||
const ApplyAdvancedFilters(this.filters);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [filters];
|
||||
}
|
||||
|
||||
/// Événement pour exporter des données
|
||||
class ExportCotisations extends CotisationsEvent {
|
||||
final String format; // 'pdf', 'excel', 'csv'
|
||||
final List<CotisationModel>? cotisations;
|
||||
|
||||
const ExportCotisations(this.format, {this.cotisations});
|
||||
|
||||
@override
|
||||
List<Object?> get props => [format, cotisations];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user