Class: Telnyx::Models::WhatsappInteractive::Action

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

Overview

See Also:

Defined Under Namespace

Classes: Button, Card, Parameters, Section

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(display_text: nil, url: nil) ⇒ Object

Parameters:

  • display_text (String) (defaults to: nil)

    button label text, 20 character maximum

  • url (String) (defaults to: nil)

    button URL to load when tapped by the user



# File 'lib/telnyx/models/whatsapp_interactive.rb', line 271

Instance Attribute Details

#buttonString?

Returns:

  • (String, nil)


43
# File 'lib/telnyx/models/whatsapp_interactive.rb', line 43

optional :button, String

#buttonsArray<Telnyx::Models::WhatsappInteractive::Action::Button>?



48
# File 'lib/telnyx/models/whatsapp_interactive.rb', line 48

optional :buttons, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::WhatsappInteractive::Action::Button] }

#cardsArray<Telnyx::Models::WhatsappInteractive::Action::Card>?



53
# File 'lib/telnyx/models/whatsapp_interactive.rb', line 53

optional :cards, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::WhatsappInteractive::Action::Card] }

#catalog_idString?

Returns:

  • (String, nil)


58
# File 'lib/telnyx/models/whatsapp_interactive.rb', line 58

optional :catalog_id, String

#modeString?

Returns:

  • (String, nil)


63
# File 'lib/telnyx/models/whatsapp_interactive.rb', line 63

optional :mode, String

#nameString?

Returns:

  • (String, nil)


68
# File 'lib/telnyx/models/whatsapp_interactive.rb', line 68

optional :name, String

#parametersTelnyx::Models::WhatsappInteractive::Action::Parameters?



73
# File 'lib/telnyx/models/whatsapp_interactive.rb', line 73

optional :parameters, -> { Telnyx::WhatsappInteractive::Action::Parameters }

#product_retailer_idString?

Returns:

  • (String, nil)


78
# File 'lib/telnyx/models/whatsapp_interactive.rb', line 78

optional :product_retailer_id, String

#sectionsArray<Telnyx::Models::WhatsappInteractive::Action::Section>?



83
# File 'lib/telnyx/models/whatsapp_interactive.rb', line 83

optional :sections, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::WhatsappInteractive::Action::Section] }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/telnyx/models/whatsapp_interactive.rb', line 137