Notification Manager

The notification managers allow notifying beneficiaries of some events happening in the programs or cycles.

g2p_programs.models.managers.notification_manager provides the class BaseNotificationManager define the interface for this manager. SMSNotificationManager is the default implementation.

class g2p_programs.models.managers.notification_manager.BaseNotificationManager(*args: Any, **kwargs: Any)[source]

This component is used to notify beneficiaries of their enrollment and other events related to the program

class g2p_programs.models.managers.notification_manager.SMSNotificationManager(*args: Any, **kwargs: Any)[source]
on_cycle_ended(program_memberships, cycle)[source]
on_cycle_ended_template = 'sms.template'
on_cycle_started(program_memberships, cycle)[source]
on_cycle_started_template = 'sms.template'
on_enrolled_in_program(program_memberships)[source]
on_enrolled_in_program_template = 'sms.template'
class g2p_programs.models.managers.notification_manager.SMSTemplate(*args: Any, **kwargs: Any)[source]
g2p_sms_id = 'g2p.program.notification.manager.sms'