Class: Telnyx::Models::Whatsapp::TemplateCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::Whatsapp::TemplateCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/telnyx/models/whatsapp/template_create_params.rb
Overview
Defined Under Namespace
Instance Attribute Summary collapse
-
#category ⇒ Symbol, Telnyx::Models::Whatsapp::TemplateCreateParams::Category
Template category: AUTHENTICATION, UTILITY, or MARKETING.
-
#components ⇒ Array<Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Header, Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Body, Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Footer, Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons, Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Carousel>
Template components defining message structure.
-
#language ⇒ String
Template language code (e.g. en_US, es, pt_BR).
-
#name ⇒ String
Template name.
-
#waba_id ⇒ String
The WhatsApp Business Account ID.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(category:, components:, language:, name:, waba_id:, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see TemplateCreateParams for more details.
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(category:, components:, language:, name:, waba_id:, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Telnyx::Models::Whatsapp::TemplateCreateParams for more details.
|
|
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 44
|
Instance Attribute Details
#category ⇒ Symbol, Telnyx::Models::Whatsapp::TemplateCreateParams::Category
Template category: AUTHENTICATION, UTILITY, or MARKETING.
15 |
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 15 required :category, enum: -> { Telnyx::Whatsapp::TemplateCreateParams::Category } |
#components ⇒ Array<Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Header, Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Body, Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Footer, Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons, Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Carousel>
Template components defining message structure. Passed through to Meta Graph API. Templates with variables must include example values. Supports HEADER, BODY, FOOTER, BUTTONS, CAROUSEL and any future Meta component types.
23 24 |
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 23 required :components, -> { Telnyx::Internal::Type::ArrayOf[union: Telnyx::Whatsapp::TemplateCreateParams::Component] } |
#language ⇒ String
Template language code (e.g. en_US, es, pt_BR).
30 |
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 30 required :language, String |
#name ⇒ String
Template name. Lowercase letters, numbers, and underscores only.
36 |
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 36 required :name, String |
#waba_id ⇒ String
The WhatsApp Business Account ID.
42 |
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 42 required :waba_id, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 68
|