Class: Inttegro::MessageTemplate::CreateSMSRequest
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::MessageTemplate::CreateSMSRequest
- Defined in:
- lib/inttegro/message_template/create_sms_request.rb
Overview
Typed representation of the create sms request object in the Inttegro API.
This generated model is immutable. Construct it with .new, or decode a string-keyed API
payload with .from_hash. #serialize produces a string-keyed hash using the original wire
field names and serialized enum values.
Instance Attribute Summary collapse
-
#about ⇒ String?
readonly
Value of the
aboutfield in the Inttegro API payload. -
#channel ⇒ Inttegro::MessageTemplate::CreateSMSRequestChannel
readonly
Value of the
channelfield in the Inttegro API payload. -
#locale ⇒ String?
readonly
Value of the
localefield in the Inttegro API payload. -
#name ⇒ String
readonly
Value of the
namefield in the Inttegro API payload. -
#purpose ⇒ String
readonly
Value of the
purposefield in the Inttegro API payload. -
#sms ⇒ Inttegro::MessageTemplate::SMSContent
readonly
Value of the
smsfield in the Inttegro API payload. -
#variables ⇒ Array<Inttegro::MessageTemplate::VariableInput>?
readonly
Value of the
variablesfield in the Inttegro API payload.
Instance Attribute Details
#about ⇒ String? (readonly)
Value of the about field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: about.
62 63 64 65 66 67 68 69 70 |
# File 'lib/inttegro/message_template/create_sms_request.rb', line 62 class CreateSMSRequest < T::Struct const :about, T.nilable(String), default: nil const :channel, Inttegro::MessageTemplate::CreateSMSRequestChannel const :locale, T.nilable(String), default: nil const :name, String const :purpose, String const :sms, Inttegro::MessageTemplate::SMSContent const :variables, T.nilable(T::Array[Inttegro::MessageTemplate::VariableInput]), default: nil end |
#channel ⇒ Inttegro::MessageTemplate::CreateSMSRequestChannel (readonly)
Value of the channel field in the Inttegro API payload.
Required in the API payload. Wire name: channel.
62 63 64 65 66 67 68 69 70 |
# File 'lib/inttegro/message_template/create_sms_request.rb', line 62 class CreateSMSRequest < T::Struct const :about, T.nilable(String), default: nil const :channel, Inttegro::MessageTemplate::CreateSMSRequestChannel const :locale, T.nilable(String), default: nil const :name, String const :purpose, String const :sms, Inttegro::MessageTemplate::SMSContent const :variables, T.nilable(T::Array[Inttegro::MessageTemplate::VariableInput]), default: nil end |
#locale ⇒ String? (readonly)
Value of the locale field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: locale.
62 63 64 65 66 67 68 69 70 |
# File 'lib/inttegro/message_template/create_sms_request.rb', line 62 class CreateSMSRequest < T::Struct const :about, T.nilable(String), default: nil const :channel, Inttegro::MessageTemplate::CreateSMSRequestChannel const :locale, T.nilable(String), default: nil const :name, String const :purpose, String const :sms, Inttegro::MessageTemplate::SMSContent const :variables, T.nilable(T::Array[Inttegro::MessageTemplate::VariableInput]), default: nil end |
#name ⇒ String (readonly)
Value of the name field in the Inttegro API payload.
Required in the API payload. Wire name: name.
62 63 64 65 66 67 68 69 70 |
# File 'lib/inttegro/message_template/create_sms_request.rb', line 62 class CreateSMSRequest < T::Struct const :about, T.nilable(String), default: nil const :channel, Inttegro::MessageTemplate::CreateSMSRequestChannel const :locale, T.nilable(String), default: nil const :name, String const :purpose, String const :sms, Inttegro::MessageTemplate::SMSContent const :variables, T.nilable(T::Array[Inttegro::MessageTemplate::VariableInput]), default: nil end |
#purpose ⇒ String (readonly)
Value of the purpose field in the Inttegro API payload.
Required in the API payload. Wire name: purpose.
62 63 64 65 66 67 68 69 70 |
# File 'lib/inttegro/message_template/create_sms_request.rb', line 62 class CreateSMSRequest < T::Struct const :about, T.nilable(String), default: nil const :channel, Inttegro::MessageTemplate::CreateSMSRequestChannel const :locale, T.nilable(String), default: nil const :name, String const :purpose, String const :sms, Inttegro::MessageTemplate::SMSContent const :variables, T.nilable(T::Array[Inttegro::MessageTemplate::VariableInput]), default: nil end |
#sms ⇒ Inttegro::MessageTemplate::SMSContent (readonly)
Value of the sms field in the Inttegro API payload.
Required in the API payload. Wire name: sms.
62 63 64 65 66 67 68 69 70 |
# File 'lib/inttegro/message_template/create_sms_request.rb', line 62 class CreateSMSRequest < T::Struct const :about, T.nilable(String), default: nil const :channel, Inttegro::MessageTemplate::CreateSMSRequestChannel const :locale, T.nilable(String), default: nil const :name, String const :purpose, String const :sms, Inttegro::MessageTemplate::SMSContent const :variables, T.nilable(T::Array[Inttegro::MessageTemplate::VariableInput]), default: nil end |
#variables ⇒ Array<Inttegro::MessageTemplate::VariableInput>? (readonly)
Value of the variables field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: variables.
62 63 64 65 66 67 68 69 70 |
# File 'lib/inttegro/message_template/create_sms_request.rb', line 62 class CreateSMSRequest < T::Struct const :about, T.nilable(String), default: nil const :channel, Inttegro::MessageTemplate::CreateSMSRequestChannel const :locale, T.nilable(String), default: nil const :name, String const :purpose, String const :sms, Inttegro::MessageTemplate::SMSContent const :variables, T.nilable(T::Array[Inttegro::MessageTemplate::VariableInput]), default: nil end |