Program Manager

The entitlement manager determines what a beneficiary is entitled to for a given cycle.

g2p_programs.models.managers.program_manager provides the class BaseProgramManager define the interface for this manager. DefaultProgramManager is the default implementation.

class g2p_programs.models.managers.program_manager.BaseProgramManager(*args: Any, **kwargs: Any)[source]
last_cycle()[source]

Returns the last cycle of the program Returns:

cycle: the last cycle of the program

new_cycle()[source]

Create the next cycle of the program Returns:

cycle: the newly created cycle

class g2p_programs.models.managers.program_manager.DefaultProgramManager(*args: Any, **kwargs: Any)[source]
last_cycle()[source]

Returns the last cycle of the program Returns:

cycle: the last cycle of the program

new_cycle()[source]

Create the next cycle of the program Returns:

cycle: the newly created cycle