feat: send notifications when subscription tier changes (#59) #63
Reference in New Issue
Block a user
Delete Branch "issue-59-tier-change-notifications"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes #59
Changes
TemplateKeytype with'subscription_tier_change'007_subscription_tier_change_template.sqlwith responsive HTML email templatesendTierChangeNotification()toNotificationsServiceSubscriptionsServicemethods (upgrade, downgrade, adminOverride)grace-period.job.tsfor auto-downgradesTest Plan
Generated with Claude Code
The TemplateService only supports {{variable}} substitution, not Handlebars-style conditionals. Changed to use a single {{additionalInfo}} variable that is built in the service code based on upgrade/downgrade status. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>