Service Layer medium complexity mobile
1
Dependencies
1
Dependents
9
Entities
0
Integrations

Description

Handles all business logic for retrieving, validating, and sharing digital peer mentor certificates. Communicates with the REST API to fetch current certification status and generates shareable certificate representations as images or PDFs.

Feature: Digital Peer Mentor Certificate

certificate-service

Responsibilities

  • Fetch current user certification from REST API including validity dates and issuing organization
  • Determine certificate status (active, expiring within 30 days, expired) based on expiry date
  • Generate shareable certificate as image or PDF for native share sheet export
  • Calculate days remaining until expiry and trigger appropriate renewal prompts
  • Coordinate with push notification system for server-side expiry reminders

Interfaces

getCertificate(userId)
getCertificateStatus(certification)
generateShareableImage(certification)
generateShareablePdf(certification)
getDaysUntilExpiry(certification)
checkRenewalEligibility(certificationTypeId)
refreshCertificateFromApi()
getExpiryNotificationSchedule(certification)

Relationships

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component