Accrue.Emails.CouponApplied (accrue v0.3.1)

Copy Markdown View Source

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

Functions

debug_mjml_template()

Returns the raw MJML template. Useful for debugging rendering issues.

render(assigns)

Safely render the MJML template using Phoenix.HTML

render_text(assigns)

@spec render_text(map()) :: String.t()

subject(arg1)

@spec subject(map()) :: String.t()