Versione OK Pour l'onglet événements.

This commit is contained in:
DahoudG
2025-09-15 20:15:34 +00:00
parent 8a619ee1bf
commit 12d514d866
73 changed files with 11508 additions and 674 deletions

View File

@@ -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];
}