Class: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Header

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

Defined Under Namespace

Modules: Format Classes: Example

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

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

Optional header displayed at the top of the message.

Parameters:



# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 122

Instance Attribute Details

#exampleTelnyx::Models::Whatsapp::TemplateCreateParams::Component::Header::Example?

Sample values for header variables.



113
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 113

optional :example, -> { Telnyx::Whatsapp::TemplateCreateParams::Component::Header::Example }

#file_formatSymbol, Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Header::Format

Header format type: TEXT (supports one variable), IMAGE, VIDEO, DOCUMENT, or LOCATION.



100
101
102
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 100

required :file_format,
enum: -> { Telnyx::Whatsapp::TemplateCreateParams::Component::Header::Format },
api_name: :format

#textString?

Header text. Required when format is TEXT. Supports one variable ({1}). Variables cannot be at the start or end.

Returns:

  • (String, nil)


120
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 120

optional :text, String

#typeSymbol, :HEADER

Returns:

  • (Symbol, :HEADER)


107
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 107

required :type, const: :HEADER

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 150