-
-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Create a service class to serve these commands:
1- enrollment
accepts: email, course_slug, organization_id
check if the email address is not blocked and doesn't have an active enrollment with the course create an enrollment with unverified status and send the verification email.
2- unsubscribe
accepts: email, course_slug, organization_id
change the enrollment status to deactivated and deactivation reason to canceled.
3- verify
accepts: enrollment_id, otp
Check if the otp is matched and with the enrollment otp and enrollment is in the unverified status, changes the enrollment status to active, next_send_timestamp to 10 minutes from now, and updates the otp
4- course_list_email:
accepts: email, organization_id
get the list of published courses by an organization and send the list of courses with their slug, description and if the imap interface is activated for them instruction to register via email.
5- status_to_email:
accepts: email, organization_id
Check all the courses that an email address are enrolled in for the organization and send an email showing their progress for each course.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status