Class: Sentdm::Models::TemplateCreateParams::Definition::Button

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

Defined Under Namespace

Classes: Props

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(props:, type:, id: nil) ⇒ Object

Some parameter documentations has been truncated, see Sentdm::Models::TemplateCreateParams::Definition::Button for more details.

Interactive button in a message template

Parameters:



# File 'lib/sentdm/models/template_create_params.rb', line 652

Instance Attribute Details

#idInteger?

The unique identifier of the button (1-based index)

Returns:

  • (Integer, nil)


650
# File 'lib/sentdm/models/template_create_params.rb', line 650

optional :id, Integer

#propsSentdm::Models::TemplateCreateParams::Definition::Button::Props

Properties specific to the button type



638
# File 'lib/sentdm/models/template_create_params.rb', line 638

required :props, -> { Sentdm::TemplateCreateParams::Definition::Button::Props }

#typeString

The type of button (e.g., QUICK_REPLY, URL, PHONE_NUMBER, VOICE_CALL, COPY_CODE)

Returns:

  • (String)


644
# File 'lib/sentdm/models/template_create_params.rb', line 644

required :type, String