Service Layer low complexity backend
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Manages opt-out requests for marketing-adjacent emails in compliance with Norwegian Markedsføringsloven, maintaining a per-user suppression list while keeping transactional messages exempt.

Feature: Email/SMS Notifications

unsubscribe-handler

Responsibilities

  • Process unsubscribe link clicks and persist updated communication preferences for the user
  • Maintain a suppression list blocking future marketing-adjacent emails to opted-out users
  • Ensure transactional messages such as expense decisions and assignment receipts bypass suppression

Interfaces

unsubscribe(userId, emailCategory)
isUnsubscribed(userId, emailCategory)
resubscribe(userId, emailCategory)
getSuppressedCategories(userId)