Class: Zavudev::Models::TemplateCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/zavudev/models/template_create_params.rb

Overview

Defined Under Namespace

Modules: HeaderType Classes: Button

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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_recommendationBoolean?

Add ‘Do not share this code’ disclaimer. Only for AUTHENTICATION templates.

Returns:

  • (Boolean, nil)


30
31
32
# File 'lib/zavudev/models/template_create_params.rb', line 30

optional :add_security_recommendation,
Zavudev::Internal::Type::Boolean,
api_name: :addSecurityRecommendation

#bodyString

Default template body. Used when no channel-specific body is set.

Returns:

  • (String)


14
# File 'lib/zavudev/models/template_create_params.rb', line 14

required :body, String

#buttonsArray<Zavudev::Models::TemplateCreateParams::Button>?

Template buttons (max 3).



38
# File 'lib/zavudev/models/template_create_params.rb', line 38

optional :buttons, -> { Zavudev::Internal::Type::ArrayOf[Zavudev::TemplateCreateParams::Button] }

#code_expiration_minutesInteger?

Code expiration time in minutes. Only for AUTHENTICATION templates.

Returns:

  • (Integer, nil)


44
# File 'lib/zavudev/models/template_create_params.rb', line 44

optional :code_expiration_minutes, Integer, api_name: :codeExpirationMinutes

Footer text for the template.

Returns:

  • (String, nil)


50
# File 'lib/zavudev/models/template_create_params.rb', line 50

optional :footer, String

#header_contentString?

Header content (text string or media URL).

Returns:

  • (String, nil)


56
# File 'lib/zavudev/models/template_create_params.rb', line 56

optional :header_content, String, api_name: :headerContent

#header_typeSymbol, ...

Type of header for the template.



62
# File 'lib/zavudev/models/template_create_params.rb', line 62

optional :header_type, enum: -> { Zavudev::TemplateCreateParams::HeaderType }, api_name: :headerType

#instagram_bodyString?

Channel-specific body for Instagram. Falls back to ‘body` if not set.

Returns:

  • (String, nil)


68
# File 'lib/zavudev/models/template_create_params.rb', line 68

optional :instagram_body, String, api_name: :instagramBody

#languageString

Returns:

  • (String)


19
# File 'lib/zavudev/models/template_create_params.rb', line 19

required :language, String

#nameString

Returns:

  • (String)


24
# File 'lib/zavudev/models/template_create_params.rb', line 24

required :name, String

#sms_bodyString?

Channel-specific body for SMS. Falls back to ‘body` if not set.

Returns:

  • (String, nil)


74
# File 'lib/zavudev/models/template_create_params.rb', line 74

optional :sms_body, String, api_name: :smsBody

#telegram_bodyString?

Channel-specific body for Telegram. Falls back to ‘body` if not set.

Returns:

  • (String, nil)


80
# File 'lib/zavudev/models/template_create_params.rb', line 80

optional :telegram_body, String, api_name: :telegramBody

#variablesArray<String>?

Returns:

  • (Array<String>, nil)


85
# File 'lib/zavudev/models/template_create_params.rb', line 85

optional :variables, Zavudev::Internal::Type::ArrayOf[String]

#whatsapp_categorySymbol, ...

WhatsApp template category.

Returns:



91
# File 'lib/zavudev/models/template_create_params.rb', line 91

optional :whatsapp_category, enum: -> { Zavudev::WhatsappCategory }, api_name: :whatsappCategory

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/zavudev/models/template_create_params.rb', line 205