Class: Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Body

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

Defined Under Namespace

Classes: Example

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

Some parameter documentations has been truncated, see Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Body for more details.

The main text content of the message. Supports multiple variable parameters ({1}, {2}, etc.). Variables cannot be at the start or end. Maximum 1024 characters.

Parameters:



# File 'lib/telnyx/models/whatsapp_message_template_update_params.rb', line 172

Instance Attribute Details

#exampleTelnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Body::Example?

Sample values for body variables. Required when body text contains parameters.



162
# File 'lib/telnyx/models/whatsapp_message_template_update_params.rb', line 162

optional :example, -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::Body::Example }

#textString?

Body text content. Use {1}, {2}, etc. for variable placeholders. Required for MARKETING and UTILITY templates. Optional for AUTHENTICATION templates where Meta provides the built-in OTP body.

Returns:

  • (String, nil)


170
# File 'lib/telnyx/models/whatsapp_message_template_update_params.rb', line 170

optional :text, String

#typeSymbol, :BODY

Returns:

  • (Symbol, :BODY)


156
# File 'lib/telnyx/models/whatsapp_message_template_update_params.rb', line 156

required :type, const: :BODY