Class: Telnyx::Models::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/ai/telephony_settings.rb

Overview

Defined Under Namespace

Modules: Action Classes: VoicemailMessage

Instance Attribute Summary collapse

Class Method 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(action: nil, voicemail_message: nil) ⇒ Object

Some parameter documentations has been truncated, see Telnyx::Models::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected for more details.

Action to take when voicemail is detected.

Parameters:



# File 'lib/telnyx/models/ai/telephony_settings.rb', line 239

Instance Attribute Details

#actionSymbol, ...

The action to take when voicemail is detected.



228
229
# File 'lib/telnyx/models/ai/telephony_settings.rb', line 228

optional :action,
enum: -> { Telnyx::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::Action }

#voicemail_messageTelnyx::Models::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::VoicemailMessage?

Configuration for the voicemail message to leave. Only applicable when action is ‘leave_message_and_stop_assistant’.



236
237
# File 'lib/telnyx/models/ai/telephony_settings.rb', line 236

optional :voicemail_message,
-> { Telnyx::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::VoicemailMessage }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/telnyx/models/ai/telephony_settings.rb', line 260