Class: ExpressHoldAlertMailer

Inherits:
InternalNotificationMailer show all
Defined in:
app/mailers/express_hold_alert_mailer.rb

Overview

Escalating alerts for express-shipping sales orders still in credit hold as the
warehouse cutoff nears. Fired by Order::SendExpressHoldAlerts; both actions
render the shared +alert+ template.

Instance Method Summary collapse

Methods inherited from InternalNotificationMailer

#default_url_options

Methods included from SendgridSmtpApi::InternalMailerHeaders

#mail

Methods inherited from ApplicationMailer

#null_mail

Instance Method Details

#urgent(order) ⇒ Object

~30 minutes before the warehouse closes.



11
# File 'app/mailers/express_hold_alert_mailer.rb', line 11

def urgent(order) = build_alert(order, level: 'URGENT', window: '30min')

#warning(order) ⇒ Object

~2 hours before the warehouse closes.



8
# File 'app/mailers/express_hold_alert_mailer.rb', line 8

def warning(order) = build_alert(order, level: 'IMPORTANT', window: '2 hours')