Class: SurgeAPI::Models::ConversationCreatedWebhookEvent::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/surge_api/models/conversation_created_webhook_event.rb

Overview

See Also:

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:, contact:, phone_number:) ⇒ Object

The data associated with the event

Parameters:



# File 'lib/surge_api/models/conversation_created_webhook_event.rb', line 59

Instance Attribute Details

#contactSurgeAPI::Models::Contact

A contact who has consented to receive messages



51
# File 'lib/surge_api/models/conversation_created_webhook_event.rb', line 51

required :contact, -> { SurgeAPI::Contact }

#idString

The unique identifier for the conversation

Returns:

  • (String)


45
# File 'lib/surge_api/models/conversation_created_webhook_event.rb', line 45

required :id, String

#phone_numberSurgeAPI::Models::PhoneNumber

A phone number that can be used to send and receive messages and calls



57
# File 'lib/surge_api/models/conversation_created_webhook_event.rb', line 57

required :phone_number, -> { SurgeAPI::PhoneNumber }