Class: Telnyx::Models::Whatsapp::WhatsappTemplateFooterComponent

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

Defined Under Namespace

Modules: Type

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

Some parameter documentations has been truncated, see Telnyx::Models::Whatsapp::WhatsappTemplateFooterComponent for more details.

Optional footer displayed at the bottom of the message. Does not support variables.

Parameters:

  • type (Symbol, Telnyx::Models::Whatsapp::WhatsappTemplateFooterComponent::Type)
  • code_expiration_minutes (Integer) (defaults to: nil)

    OTP code expiration time in minutes. Used in AUTHENTICATION template footers ins

  • text (String) (defaults to: nil)

    Footer text. Maximum 60 characters. For non-authentication templates.



# File 'lib/telnyx/models/whatsapp/whatsapp_template_footer_component.rb', line 25

Instance Attribute Details

#code_expiration_minutesInteger?

OTP code expiration time in minutes. Used in AUTHENTICATION template footers instead of free-form text.

Returns:

  • (Integer, nil)


17
# File 'lib/telnyx/models/whatsapp/whatsapp_template_footer_component.rb', line 17

optional :code_expiration_minutes, Integer

#textString?

Footer text. Maximum 60 characters. For non-authentication templates.

Returns:

  • (String, nil)


23
# File 'lib/telnyx/models/whatsapp/whatsapp_template_footer_component.rb', line 23

optional :text, String

#typeSymbol, Telnyx::Models::Whatsapp::WhatsappTemplateFooterComponent::Type



10
# File 'lib/telnyx/models/whatsapp/whatsapp_template_footer_component.rb', line 10

required :type, enum: -> { Telnyx::Whatsapp::WhatsappTemplateFooterComponent::Type }