Class: Sentdm::Models::MessageEventPayload
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Sentdm::Models::MessageEventPayload
- Defined in:
- lib/sentdm/models/message_event_payload.rb,
sig/sentdm/models/message_event_payload.rbs
Instance Attribute Summary collapse
-
#account_id ⇒ String?
The account the message belongs to.
-
#agent_id ⇒ String?
The agent attributed to the send, when the send was attributed to one.
-
#channel ⇒ String?
The channel the message went out on, for example sms or whatsapp.
-
#message_id ⇒ String?
The message this event describes.
-
#message_status ⇒ String?
The status the message just reached, for example SENT, DELIVERED, or FAILED.
-
#outbound_number ⇒ String?
The recipient's number in E.164 format.
-
#template_id ⇒ String?
The template the message was sent from, when it was sent from one.
-
#template_name ⇒ String?
Name of the template the message was sent from.
-
#updated_at ⇒ String?
When the message reached MessageStatus, in UTC (yyyy-MM-ddTHH:mm:ssZ).
Instance Method Summary collapse
-
#initialize(account_id: nil, agent_id: nil, channel: nil, message_id: nil, message_status: nil, outbound_number: nil, template_id: nil, template_name: nil, updated_at: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see MessageEventPayload for more details.
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(account_id: nil, agent_id: nil, channel: nil, message_id: nil, message_status: nil, outbound_number: nil, template_id: nil, template_name: nil, updated_at: nil) ⇒ Object
Some parameter documentations has been truncated, see Sentdm::Models::MessageEventPayload for more details.
Body of an outbound message lifecycle event. Delivered once per status change, so a single message produces several of these as it moves toward a terminal status.
|
|
# File 'lib/sentdm/models/message_event_payload.rb', line 65
|
Instance Attribute Details
#account_id ⇒ String?
The account the message belongs to.
10 |
# File 'lib/sentdm/models/message_event_payload.rb', line 10 optional :account_id, String |
#agent_id ⇒ String?
The agent attributed to the send, when the send was attributed to one.
16 |
# File 'lib/sentdm/models/message_event_payload.rb', line 16 optional :agent_id, String, nil?: true |
#channel ⇒ String?
The channel the message went out on, for example sms or whatsapp. A message that falls back to another channel reports the channel actually used.
23 |
# File 'lib/sentdm/models/message_event_payload.rb', line 23 optional :channel, String |
#message_id ⇒ String?
The message this event describes. Stable across every event in the message's lifecycle, so use it to correlate them.
30 |
# File 'lib/sentdm/models/message_event_payload.rb', line 30 optional :message_id, String |
#message_status ⇒ String?
The status the message just reached, for example SENT, DELIVERED, or FAILED. Sent means dispatched and delivered means confirmed, so treat them as distinct outcomes.
38 |
# File 'lib/sentdm/models/message_event_payload.rb', line 38 optional :message_status, String |
#outbound_number ⇒ String?
The recipient's number in E.164 format.
44 |
# File 'lib/sentdm/models/message_event_payload.rb', line 44 optional :outbound_number, String |
#template_id ⇒ String?
The template the message was sent from, when it was sent from one.
50 |
# File 'lib/sentdm/models/message_event_payload.rb', line 50 optional :template_id, String, nil?: true |
#template_name ⇒ String?
Name of the template the message was sent from. Omitted when the message wasn't template-based.
57 |
# File 'lib/sentdm/models/message_event_payload.rb', line 57 optional :template_name, String, nil?: true |
#updated_at ⇒ String?
When the message reached MessageStatus, in UTC (yyyy-MM-ddTHH:mm:ssZ).
63 |
# File 'lib/sentdm/models/message_event_payload.rb', line 63 optional :updated_at, String |
Instance Method Details
#to_hash ⇒ {
59 |
# File 'sig/sentdm/models/message_event_payload.rbs', line 59
def to_hash: -> {
|