Class: Sentdm::Models::MessageRetrieveStatusResponse::Data::Event

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/sentdm/models/message_retrieve_status_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(id: nil, active_contact_price: nil, channel: nil, contact_id: nil, created_at: nil, customer_id: nil, direction: nil, events: nil, message_body: nil, phone: nil, phone_international: nil, price: nil, region_code: nil, status: nil, template_category: nil, template_id: nil, template_name: nil) ⇒ Object

Some parameter documentations has been truncated, see Sentdm::Models::MessageRetrieveStatusResponse::Data for more details.

Message response for v3 API — same shape as v2 with snake_case JSON conventions

Parameters:

  • id (String) (defaults to: nil)
  • active_contact_price (Float, nil) (defaults to: nil)
  • channel (String) (defaults to: nil)
  • contact_id (String) (defaults to: nil)
  • created_at (Time) (defaults to: nil)
  • customer_id (String) (defaults to: nil)
  • direction (String) (defaults to: nil)
  • events (Array<Sentdm::Models::MessageRetrieveStatusResponse::Data::Event>, nil) (defaults to: nil)
  • message_body (Sentdm::Models::MessageRetrieveStatusResponse::Data::MessageBody, nil) (defaults to: nil)

    Structured message body format for database storage.

  • phone (String) (defaults to: nil)
  • phone_international (String) (defaults to: nil)
  • price (Float, nil) (defaults to: nil)
  • region_code (String) (defaults to: nil)
  • status (String) (defaults to: nil)
  • template_category (String, nil) (defaults to: nil)
  • template_id (String, nil) (defaults to: nil)
  • template_name (String, nil) (defaults to: nil)


175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'lib/sentdm/models/message_retrieve_status_response.rb', line 175

class Event < Sentdm::Internal::Type::BaseModel
  # @!attribute description
  #
  #   @return [String, nil]
  optional :description, String, nil?: true

  # @!attribute status
  #
  #   @return [String, nil]
  optional :status, String

  # @!attribute timestamp
  #
  #   @return [Time, nil]
  optional :timestamp, Time

  # @!method initialize(description: nil, status: nil, timestamp: nil)
  #   Represents a status change event in a message's lifecycle (v3)
  #
  #   @param description [String, nil]
  #   @param status [String]
  #   @param timestamp [Time]
end

Instance Attribute Details

#descriptionString?

Returns:

  • (String, nil)


179
# File 'lib/sentdm/models/message_retrieve_status_response.rb', line 179

optional :description, String, nil?: true

#statusString?

Returns:

  • (String, nil)


184
# File 'lib/sentdm/models/message_retrieve_status_response.rb', line 184

optional :status, String

#timestampTime?

Returns:

  • (Time, nil)


189
# File 'lib/sentdm/models/message_retrieve_status_response.rb', line 189

optional :timestamp, Time