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: positional ({1}, {2}) or named ({customer_name}, {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.
44 45 46 |
# File 'lib/zavudev/models/template.rb', line 44 optional :add_security_recommendation, Zavudev::Internal::Type::Boolean, api_name: :addSecurityRecommendation |
#body ⇒ String
Default template body with variables: positional ({1}, {2}) or named ({customer_name}, Zavudev::Models::Template.{contact{contact.first_name}). Templates created in Zavu are submitted to Meta as positional; templates imported from a WhatsApp Business Account keep their original format (named or positional). Used when no channel-specific body is set.
20 |
# File 'lib/zavudev/models/template.rb', line 20 required :body, String |
#buttons ⇒ Array<Zavudev::Models::Template::Button>?
Template buttons.
52 |
# File 'lib/zavudev/models/template.rb', line 52 optional :buttons, -> { Zavudev::Internal::Type::ArrayOf[Zavudev::Template::Button] } |
#category ⇒ Symbol, Zavudev::Models::WhatsappCategory
WhatsApp template category.
26 |
# File 'lib/zavudev/models/template.rb', line 26 required :category, enum: -> { Zavudev::WhatsappCategory } |
#code_expiration_minutes ⇒ Integer?
Code expiration time in minutes. Only for AUTHENTICATION templates.
58 |
# File 'lib/zavudev/models/template.rb', line 58 optional :code_expiration_minutes, Integer, api_name: :codeExpirationMinutes |
#created_at ⇒ Time?
63 |
# File 'lib/zavudev/models/template.rb', line 63 optional :created_at, Time, api_name: :createdAt |
#footer ⇒ String?
Footer text for the template.
69 |
# File 'lib/zavudev/models/template.rb', line 69 optional :footer, String |
#header_content ⇒ String?
Header content (text or media URL).
75 |
# File 'lib/zavudev/models/template.rb', line 75 optional :header_content, String, api_name: :headerContent |
#header_type ⇒ String?
Type of header (text, image, video, document).
81 |
# File 'lib/zavudev/models/template.rb', line 81 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.
87 |
# File 'lib/zavudev/models/template.rb', line 87 optional :instagram_body, String, api_name: :instagramBody |
#language ⇒ String
Language code.
32 |
# File 'lib/zavudev/models/template.rb', line 32 required :language, String |
#name ⇒ String
Template name. For WhatsApp, must match the approved template name in Meta.
38 |
# File 'lib/zavudev/models/template.rb', line 38 required :name, String |
#sms_body ⇒ String?
Channel-specific body for SMS messages. Falls back to ‘body` if not set.
93 |
# File 'lib/zavudev/models/template.rb', line 93 optional :sms_body, String, api_name: :smsBody |
#status ⇒ Symbol, ...
98 |
# File 'lib/zavudev/models/template.rb', line 98 optional :status, enum: -> { Zavudev::Template::Status } |
#telegram_body ⇒ String?
Channel-specific body for Telegram messages. Falls back to ‘body` if not set.
104 |
# File 'lib/zavudev/models/template.rb', line 104 optional :telegram_body, String, api_name: :telegramBody |
#updated_at ⇒ Time?
109 |
# File 'lib/zavudev/models/template.rb', line 109 optional :updated_at, Time, api_name: :updatedAt |
#variables ⇒ Array<String>?
List of variable names for documentation.
115 |
# File 'lib/zavudev/models/template.rb', line 115 optional :variables, Zavudev::Internal::Type::ArrayOf[String] |
#whatsapp ⇒ Zavudev::Models::Template::Whatsapp?
WhatsApp-specific template information.
121 |
# File 'lib/zavudev/models/template.rb', line 121 optional :whatsapp, -> { Zavudev::Template::Whatsapp } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/zavudev/models/template.rb', line 253
|