Coupon applied notification (MAIL-13).
Sent when a discount is applied via an action module
(Accrue.Billing.apply_promotion_code/3) or when Stripe emits
invoice.updated with a new discount. Body references the coupon
(name, percent_off / formatted_amount_off) and the associated
promotion code. Does NOT embed shared invoice components.
Summary
Functions
Returns the raw MJML template. Useful for debugging rendering issues.
Safely render the MJML template using Phoenix.HTML