Class: Telnyx::Models::EmailTemplateCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::EmailTemplateCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/telnyx/models/email_template_create_params.rb,
sig/telnyx/models/email_template_create_params.rbs
Overview
Instance Attribute Summary collapse
-
#html_body ⇒ String?
Liquid template HTML body.
- #idempotency_key ⇒ String?
-
#name ⇒ String
Letters, numbers, spaces, hyphens, and underscores only.
-
#subject ⇒ String?
Liquid template subject.
-
#text_body ⇒ String?
Liquid template text body.
-
#variables ⇒ Array<String>?
Template variables.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
- #initialize(name:, html_body: nil, subject: nil, text_body: nil, variables: nil, idempotency_key: nil, request_options: {}) ⇒ Object constructor
- #to_hash ⇒ {
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(name:, html_body: nil, subject: nil, text_body: nil, variables: nil, idempotency_key: nil, request_options: {}) ⇒ Object
|
|
# File 'lib/telnyx/models/email_template_create_params.rb', line 45
|
Instance Attribute Details
#html_body ⇒ String?
Liquid template HTML body.
20 |
# File 'lib/telnyx/models/email_template_create_params.rb', line 20 optional :html_body, String, nil?: true |
#idempotency_key ⇒ String?
43 |
# File 'lib/telnyx/models/email_template_create_params.rb', line 43 optional :idempotency_key, String |
#name ⇒ String
Letters, numbers, spaces, hyphens, and underscores only.
14 |
# File 'lib/telnyx/models/email_template_create_params.rb', line 14 required :name, String |
#subject ⇒ String?
Liquid template subject.
26 |
# File 'lib/telnyx/models/email_template_create_params.rb', line 26 optional :subject, String, nil?: true |
#text_body ⇒ String?
Liquid template text body.
32 |
# File 'lib/telnyx/models/email_template_create_params.rb', line 32 optional :text_body, String, nil?: true |
#variables ⇒ Array<String>?
Template variables. Auto-extracted from subject/body fields when absent.
38 |
# File 'lib/telnyx/models/email_template_create_params.rb', line 38 optional :variables, Telnyx::Internal::Type::ArrayOf[String] |
Instance Method Details
#to_hash ⇒ {
44 |
# File 'sig/telnyx/models/email_template_create_params.rbs', line 44
def to_hash: -> {
|