Class: Events::SmsSendFailed

Inherits:
ApplicationEvent show all
Defined in:
app/events/events.rb

Overview

Published by SmsMessage state machine after_transition to :exception. Carries
Twilio's ErrorCode so subscribers can route by responsibility: recipient-side
codes (30006 / 21614) demote the recipient's contact_point sms_status; sender-
side codes (30032 / 30034 / 21408) flag a sender-number health issue without
touching the recipient. See SmsRecipientDemoteHandler / SmsSenderUnverifiedAlertHandler.
data: { sms_message_id:, sender:, recipient:, error_code:, recipient_party_id: }

Method Summary

Methods inherited from ApplicationEvent

#data