Class: Zavudev::Models::Template
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Zavudev::Models::Template
- Defined in:
- lib/zavudev/models/template.rb
Overview
Defined Under Namespace
Modules: Status Classes: Button, Whatsapp
Instance Attribute Summary collapse
-
#add_security_recommendation ⇒ Boolean?
Add ‘Do not share this code’ disclaimer.
-
#body ⇒ String
Default template body with variables: {1}, {2}, or named variables like {contact{contact.first_name}.
-
#buttons ⇒ Array<Zavudev::Models::Template::Button>?
Template buttons.
-
#category ⇒ Symbol, Zavudev::Models::WhatsappCategory
WhatsApp template category.
-
#code_expiration_minutes ⇒ Integer?
Code expiration time in minutes.
- #created_at ⇒ Time?
-
#footer ⇒ String?
Footer text for the template.
-
#header_content ⇒ String?
Header content (text or media URL).
-
#header_type ⇒ String?
Type of header (text, image, video, document).
- #id ⇒ String
-
#instagram_body ⇒ String?
Channel-specific body for Instagram messages.
-
#language ⇒ String
Language code.
-
#name ⇒ String
Template name.
-
#sms_body ⇒ String?
Channel-specific body for SMS messages.
- #status ⇒ Symbol, ...
-
#telegram_body ⇒ String?
Channel-specific body for Telegram messages.
- #updated_at ⇒ Time?
-
#variables ⇒ Array<String>?
List of variable names for documentation.
-
#whatsapp ⇒ Zavudev::Models::Template::Whatsapp?
WhatsApp-specific template information.
Class Method Summary collapse
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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
This class inherits a constructor from Zavudev::Internal::Type::BaseModel
Instance Attribute Details
#add_security_recommendation ⇒ Boolean?
Add ‘Do not share this code’ disclaimer. Only for AUTHENTICATION templates.
41 42 43 |
# File 'lib/zavudev/models/template.rb', line 41 optional :add_security_recommendation, Zavudev::Internal::Type::Boolean, api_name: :addSecurityRecommendation |
#body ⇒ String
Default template body with variables: {1}, {2}, or named variables like Zavudev::Models::Template.{contact{contact.first_name}. Used when no channel-specific body is set.
17 |
# File 'lib/zavudev/models/template.rb', line 17 required :body, String |
#buttons ⇒ Array<Zavudev::Models::Template::Button>?
Template buttons.
49 |
# File 'lib/zavudev/models/template.rb', line 49 optional :buttons, -> { Zavudev::Internal::Type::ArrayOf[Zavudev::Template::Button] } |
#category ⇒ Symbol, Zavudev::Models::WhatsappCategory
WhatsApp template category.
23 |
# File 'lib/zavudev/models/template.rb', line 23 required :category, enum: -> { Zavudev::WhatsappCategory } |
#code_expiration_minutes ⇒ Integer?
Code expiration time in minutes. Only for AUTHENTICATION templates.
55 |
# File 'lib/zavudev/models/template.rb', line 55 optional :code_expiration_minutes, Integer, api_name: :codeExpirationMinutes |
#created_at ⇒ Time?
60 |
# File 'lib/zavudev/models/template.rb', line 60 optional :created_at, Time, api_name: :createdAt |
#footer ⇒ String?
Footer text for the template.
66 |
# File 'lib/zavudev/models/template.rb', line 66 optional :footer, String |
#header_content ⇒ String?
Header content (text or media URL).
72 |
# File 'lib/zavudev/models/template.rb', line 72 optional :header_content, String, api_name: :headerContent |
#header_type ⇒ String?
Type of header (text, image, video, document).
78 |
# File 'lib/zavudev/models/template.rb', line 78 optional :header_type, String, api_name: :headerType |
#id ⇒ String
10 |
# File 'lib/zavudev/models/template.rb', line 10 required :id, String |
#instagram_body ⇒ String?
Channel-specific body for Instagram messages. Falls back to ‘body` if not set.
84 |
# File 'lib/zavudev/models/template.rb', line 84 optional :instagram_body, String, api_name: :instagramBody |
#language ⇒ String
Language code.
29 |
# File 'lib/zavudev/models/template.rb', line 29 required :language, String |
#name ⇒ String
Template name. For WhatsApp, must match the approved template name in Meta.
35 |
# File 'lib/zavudev/models/template.rb', line 35 required :name, String |
#sms_body ⇒ String?
Channel-specific body for SMS messages. Falls back to ‘body` if not set.
90 |
# File 'lib/zavudev/models/template.rb', line 90 optional :sms_body, String, api_name: :smsBody |
#status ⇒ Symbol, ...
95 |
# File 'lib/zavudev/models/template.rb', line 95 optional :status, enum: -> { Zavudev::Template::Status } |
#telegram_body ⇒ String?
Channel-specific body for Telegram messages. Falls back to ‘body` if not set.
101 |
# File 'lib/zavudev/models/template.rb', line 101 optional :telegram_body, String, api_name: :telegramBody |
#updated_at ⇒ Time?
106 |
# File 'lib/zavudev/models/template.rb', line 106 optional :updated_at, Time, api_name: :updatedAt |
#variables ⇒ Array<String>?
List of variable names for documentation.
112 |
# File 'lib/zavudev/models/template.rb', line 112 optional :variables, Zavudev::Internal::Type::ArrayOf[String] |
#whatsapp ⇒ Zavudev::Models::Template::Whatsapp?
WhatsApp-specific template information.
118 |
# File 'lib/zavudev/models/template.rb', line 118 optional :whatsapp, -> { Zavudev::Template::Whatsapp } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/zavudev/models/template.rb', line 238
|