Service Layer medium complexity backend
1
Dependencies
1
Dependents
3
Entities
0
Integrations

Description

Responsible for notifying the relevant coordinator whenever a peer mentor's pause status is activated or lifted. Resolves the correct coordinator(s) for the mentor's local association and dispatches targeted push notifications via the shared Push Notification Service. Also handles the certification-expiry edge case by sending a distinct notification variant.

Feature: Peer Mentor Pause & Temporary Deactivation

pause-notification-service

Responsibilities

  • Resolve coordinator recipients for a given mentor's local association
  • Compose pause-activation and pause-lift notification payloads
  • Dispatch notifications via Push Notification Service
  • Send certification-expiry automatic-pause notifications with appropriate copy
  • Log notification delivery for audit purposes

Interfaces

notifyPauseActivated(mentorId: String, reason: String, returnDate: DateTime?): Future<void>
notifyPauseLifted(mentorId: String): Future<void>
notifyCertificationExpiry(mentorId: String, expiryDate: DateTime): Future<void>
resolveCoordinators(mentorId: String): Future<List<String>>

Relationships

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component

Related Data Entities (3)

Data entities managed by this component