telnyx 5.62.0 → 5.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/conversation_add_message_params.rb +4 -4
- data/lib/telnyx/models/porting_orders/phone_number_block_list_params.rb +7 -7
- data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +0 -2
- data/lib/telnyx/models/voice_clone_create_params.rb +0 -2
- data/lib/telnyx/models/voice_clone_data.rb +0 -2
- data/lib/telnyx/models/voice_clone_list_params.rb +0 -2
- data/lib/telnyx/models/voice_design_create_params.rb +0 -2
- data/lib/telnyx/models/voice_design_data.rb +0 -2
- data/lib/telnyx/models/voice_design_list_response.rb +0 -2
- data/lib/telnyx/models/voice_design_rename_response.rb +0 -2
- data/lib/telnyx/models/whatsapp/template_create_params.rb +78 -136
- data/lib/telnyx/models/whatsapp_message_template_update_params.rb +77 -135
- data/lib/telnyx/models/x402/credit_account_settle_params.rb +4 -4
- data/lib/telnyx/resources/whatsapp/templates.rb +1 -1
- data/lib/telnyx/resources/whatsapp_message_templates.rb +1 -1
- data/lib/telnyx/resources/x402/credit_account.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/rbi/telnyx/models/ai/conversation_add_message_params.rbi +5 -5
- data/rbi/telnyx/models/porting_orders/phone_number_block_list_params.rbi +18 -18
- data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +0 -10
- data/rbi/telnyx/models/voice_clone_create_params.rbi +0 -7
- data/rbi/telnyx/models/voice_clone_data.rbi +0 -4
- data/rbi/telnyx/models/voice_clone_list_params.rbi +0 -10
- data/rbi/telnyx/models/voice_design_create_params.rbi +0 -10
- data/rbi/telnyx/models/voice_design_data.rbi +0 -4
- data/rbi/telnyx/models/voice_design_list_response.rbi +0 -10
- data/rbi/telnyx/models/voice_design_rename_response.rbi +0 -10
- data/rbi/telnyx/models/whatsapp/template_create_params.rbi +115 -294
- data/rbi/telnyx/models/whatsapp_message_template_update_params.rbi +120 -299
- data/rbi/telnyx/models/x402/credit_account_settle_params.rbi +6 -6
- data/rbi/telnyx/resources/whatsapp/templates.rbi +5 -5
- data/rbi/telnyx/resources/whatsapp_message_templates.rbi +5 -5
- data/rbi/telnyx/resources/x402/credit_account.rbi +2 -2
- data/sig/telnyx/models/ai/conversation_add_message_params.rbs +5 -5
- data/sig/telnyx/models/porting_orders/phone_number_block_list_params.rbs +5 -5
- data/sig/telnyx/models/voice_clone_create_from_upload_params.rbs +1 -3
- data/sig/telnyx/models/voice_clone_create_params.rbs +1 -3
- data/sig/telnyx/models/voice_clone_data.rbs +1 -3
- data/sig/telnyx/models/voice_clone_list_params.rbs +1 -3
- data/sig/telnyx/models/voice_design_create_params.rbs +1 -3
- data/sig/telnyx/models/voice_design_data.rbs +1 -3
- data/sig/telnyx/models/voice_design_list_response.rbs +1 -3
- data/sig/telnyx/models/voice_design_rename_response.rbs +1 -3
- data/sig/telnyx/models/whatsapp/template_create_params.rbs +82 -136
- data/sig/telnyx/models/whatsapp_message_template_update_params.rbs +82 -136
- data/sig/telnyx/models/x402/credit_account_settle_params.rbs +5 -5
- data/sig/telnyx/resources/x402/credit_account.rbs +1 -1
- metadata +2 -2
|
@@ -56,49 +56,49 @@ module Telnyx
|
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
type component =
|
|
59
|
-
Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
60
|
-
| Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
61
|
-
| Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
62
|
-
| Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
63
|
-
| Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
59
|
+
Telnyx::Whatsapp::TemplateCreateParams::Component::Header
|
|
60
|
+
| Telnyx::Whatsapp::TemplateCreateParams::Component::Body
|
|
61
|
+
| Telnyx::Whatsapp::TemplateCreateParams::Component::Footer
|
|
62
|
+
| Telnyx::Whatsapp::TemplateCreateParams::Component::Buttons
|
|
63
|
+
| Telnyx::Whatsapp::TemplateCreateParams::Component::Carousel
|
|
64
64
|
|
|
65
65
|
module Component
|
|
66
66
|
extend Telnyx::Internal::Type::Union
|
|
67
67
|
|
|
68
|
-
type
|
|
68
|
+
type header =
|
|
69
69
|
{
|
|
70
|
-
|
|
71
|
-
type:
|
|
72
|
-
example: Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
70
|
+
file_format: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Header::format_,
|
|
71
|
+
type: :HEADER,
|
|
72
|
+
example: Telnyx::Whatsapp::TemplateCreateParams::Component::Header::Example,
|
|
73
73
|
text: String
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
class
|
|
77
|
-
attr_accessor
|
|
76
|
+
class Header < Telnyx::Internal::Type::BaseModel
|
|
77
|
+
attr_accessor file_format: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Header::format_
|
|
78
78
|
|
|
79
|
-
attr_accessor type:
|
|
79
|
+
attr_accessor type: :HEADER
|
|
80
80
|
|
|
81
|
-
attr_reader example: Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
81
|
+
attr_reader example: Telnyx::Whatsapp::TemplateCreateParams::Component::Header::Example?
|
|
82
82
|
|
|
83
83
|
def example=: (
|
|
84
|
-
Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
85
|
-
) -> Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
84
|
+
Telnyx::Whatsapp::TemplateCreateParams::Component::Header::Example
|
|
85
|
+
) -> Telnyx::Whatsapp::TemplateCreateParams::Component::Header::Example
|
|
86
86
|
|
|
87
87
|
attr_reader text: String?
|
|
88
88
|
|
|
89
89
|
def text=: (String) -> String
|
|
90
90
|
|
|
91
91
|
def initialize: (
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
?
|
|
95
|
-
?
|
|
92
|
+
file_format: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Header::format_,
|
|
93
|
+
?example: Telnyx::Whatsapp::TemplateCreateParams::Component::Header::Example,
|
|
94
|
+
?text: String,
|
|
95
|
+
?type: :HEADER
|
|
96
96
|
) -> void
|
|
97
97
|
|
|
98
98
|
def to_hash: -> {
|
|
99
|
-
|
|
100
|
-
type:
|
|
101
|
-
example: Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
99
|
+
file_format: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Header::format_,
|
|
100
|
+
type: :HEADER,
|
|
101
|
+
example: Telnyx::Whatsapp::TemplateCreateParams::Component::Header::Example,
|
|
102
102
|
text: String
|
|
103
103
|
}
|
|
104
104
|
|
|
@@ -113,17 +113,7 @@ module Telnyx
|
|
|
113
113
|
DOCUMENT: :DOCUMENT
|
|
114
114
|
LOCATION: :LOCATION
|
|
115
115
|
|
|
116
|
-
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
type type_ = :HEADER
|
|
120
|
-
|
|
121
|
-
module Type
|
|
122
|
-
extend Telnyx::Internal::Type::Enum
|
|
123
|
-
|
|
124
|
-
HEADER: :HEADER
|
|
125
|
-
|
|
126
|
-
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateHeaderComponent::type_]
|
|
116
|
+
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Header::format_]
|
|
127
117
|
end
|
|
128
118
|
|
|
129
119
|
type example =
|
|
@@ -150,48 +140,38 @@ module Telnyx
|
|
|
150
140
|
end
|
|
151
141
|
end
|
|
152
142
|
|
|
153
|
-
type
|
|
143
|
+
type body =
|
|
154
144
|
{
|
|
155
|
-
type:
|
|
156
|
-
example: Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
145
|
+
type: :BODY,
|
|
146
|
+
example: Telnyx::Whatsapp::TemplateCreateParams::Component::Body::Example,
|
|
157
147
|
text: String
|
|
158
148
|
}
|
|
159
149
|
|
|
160
|
-
class
|
|
161
|
-
attr_accessor type:
|
|
150
|
+
class Body < Telnyx::Internal::Type::BaseModel
|
|
151
|
+
attr_accessor type: :BODY
|
|
162
152
|
|
|
163
|
-
attr_reader example: Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
153
|
+
attr_reader example: Telnyx::Whatsapp::TemplateCreateParams::Component::Body::Example?
|
|
164
154
|
|
|
165
155
|
def example=: (
|
|
166
|
-
Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
167
|
-
) -> Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
156
|
+
Telnyx::Whatsapp::TemplateCreateParams::Component::Body::Example
|
|
157
|
+
) -> Telnyx::Whatsapp::TemplateCreateParams::Component::Body::Example
|
|
168
158
|
|
|
169
159
|
attr_reader text: String?
|
|
170
160
|
|
|
171
161
|
def text=: (String) -> String
|
|
172
162
|
|
|
173
163
|
def initialize: (
|
|
174
|
-
|
|
175
|
-
?
|
|
176
|
-
?
|
|
164
|
+
?example: Telnyx::Whatsapp::TemplateCreateParams::Component::Body::Example,
|
|
165
|
+
?text: String,
|
|
166
|
+
?type: :BODY
|
|
177
167
|
) -> void
|
|
178
168
|
|
|
179
169
|
def to_hash: -> {
|
|
180
|
-
type:
|
|
181
|
-
example: Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
170
|
+
type: :BODY,
|
|
171
|
+
example: Telnyx::Whatsapp::TemplateCreateParams::Component::Body::Example,
|
|
182
172
|
text: String
|
|
183
173
|
}
|
|
184
174
|
|
|
185
|
-
type type_ = :BODY
|
|
186
|
-
|
|
187
|
-
module Type
|
|
188
|
-
extend Telnyx::Internal::Type::Enum
|
|
189
|
-
|
|
190
|
-
BODY: :BODY
|
|
191
|
-
|
|
192
|
-
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateBodyComponent::type_]
|
|
193
|
-
end
|
|
194
|
-
|
|
195
175
|
type example = { body_text: ::Array[::Array[String]] }
|
|
196
176
|
|
|
197
177
|
class Example < Telnyx::Internal::Type::BaseModel
|
|
@@ -207,15 +187,11 @@ module Telnyx
|
|
|
207
187
|
end
|
|
208
188
|
end
|
|
209
189
|
|
|
210
|
-
type
|
|
211
|
-
{
|
|
212
|
-
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateFooterComponent::type_,
|
|
213
|
-
code_expiration_minutes: Integer,
|
|
214
|
-
text: String
|
|
215
|
-
}
|
|
190
|
+
type footer =
|
|
191
|
+
{ type: :FOOTER, code_expiration_minutes: Integer, text: String }
|
|
216
192
|
|
|
217
|
-
class
|
|
218
|
-
attr_accessor type:
|
|
193
|
+
class Footer < Telnyx::Internal::Type::BaseModel
|
|
194
|
+
attr_accessor type: :FOOTER
|
|
219
195
|
|
|
220
196
|
attr_reader code_expiration_minutes: Integer?
|
|
221
197
|
|
|
@@ -226,58 +202,48 @@ module Telnyx
|
|
|
226
202
|
def text=: (String) -> String
|
|
227
203
|
|
|
228
204
|
def initialize: (
|
|
229
|
-
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateFooterComponent::type_,
|
|
230
205
|
?code_expiration_minutes: Integer,
|
|
231
|
-
?text: String
|
|
206
|
+
?text: String,
|
|
207
|
+
?type: :FOOTER
|
|
232
208
|
) -> void
|
|
233
209
|
|
|
234
210
|
def to_hash: -> {
|
|
235
|
-
type:
|
|
211
|
+
type: :FOOTER,
|
|
236
212
|
code_expiration_minutes: Integer,
|
|
237
213
|
text: String
|
|
238
214
|
}
|
|
239
|
-
|
|
240
|
-
type type_ = :FOOTER
|
|
241
|
-
|
|
242
|
-
module Type
|
|
243
|
-
extend Telnyx::Internal::Type::Enum
|
|
244
|
-
|
|
245
|
-
FOOTER: :FOOTER
|
|
246
|
-
|
|
247
|
-
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateFooterComponent::type_]
|
|
248
|
-
end
|
|
249
215
|
end
|
|
250
216
|
|
|
251
|
-
type
|
|
217
|
+
type buttons =
|
|
252
218
|
{
|
|
253
|
-
buttons: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
254
|
-
type:
|
|
219
|
+
buttons: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::Buttons::Button],
|
|
220
|
+
type: :BUTTONS
|
|
255
221
|
}
|
|
256
222
|
|
|
257
|
-
class
|
|
258
|
-
attr_accessor buttons: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
223
|
+
class Buttons < Telnyx::Internal::Type::BaseModel
|
|
224
|
+
attr_accessor buttons: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::Buttons::Button]
|
|
259
225
|
|
|
260
|
-
attr_accessor type:
|
|
226
|
+
attr_accessor type: :BUTTONS
|
|
261
227
|
|
|
262
228
|
def initialize: (
|
|
263
|
-
buttons: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
264
|
-
type:
|
|
229
|
+
buttons: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::Buttons::Button],
|
|
230
|
+
?type: :BUTTONS
|
|
265
231
|
) -> void
|
|
266
232
|
|
|
267
233
|
def to_hash: -> {
|
|
268
|
-
buttons: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
269
|
-
type:
|
|
234
|
+
buttons: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::Buttons::Button],
|
|
235
|
+
type: :BUTTONS
|
|
270
236
|
}
|
|
271
237
|
|
|
272
238
|
type button =
|
|
273
239
|
{
|
|
274
|
-
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::
|
|
240
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::type_,
|
|
275
241
|
autofill_text: String,
|
|
276
242
|
example: ::Array[String],
|
|
277
|
-
flow_action: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::
|
|
243
|
+
flow_action: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::flow_action,
|
|
278
244
|
flow_id: String,
|
|
279
245
|
navigate_screen: String,
|
|
280
|
-
otp_type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::
|
|
246
|
+
otp_type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::otp_type,
|
|
281
247
|
package_name: String,
|
|
282
248
|
phone_number: String,
|
|
283
249
|
signature_hash: String,
|
|
@@ -287,7 +253,7 @@ module Telnyx
|
|
|
287
253
|
}
|
|
288
254
|
|
|
289
255
|
class Button < Telnyx::Internal::Type::BaseModel
|
|
290
|
-
attr_accessor type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::
|
|
256
|
+
attr_accessor type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::type_
|
|
291
257
|
|
|
292
258
|
attr_reader autofill_text: String?
|
|
293
259
|
|
|
@@ -297,11 +263,11 @@ module Telnyx
|
|
|
297
263
|
|
|
298
264
|
def example=: (::Array[String]) -> ::Array[String]
|
|
299
265
|
|
|
300
|
-
attr_reader flow_action: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::
|
|
266
|
+
attr_reader flow_action: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::flow_action?
|
|
301
267
|
|
|
302
268
|
def flow_action=: (
|
|
303
|
-
Telnyx::Models::Whatsapp::TemplateCreateParams::Component::
|
|
304
|
-
) -> Telnyx::Models::Whatsapp::TemplateCreateParams::Component::
|
|
269
|
+
Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::flow_action
|
|
270
|
+
) -> Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::flow_action
|
|
305
271
|
|
|
306
272
|
attr_reader flow_id: String?
|
|
307
273
|
|
|
@@ -311,11 +277,11 @@ module Telnyx
|
|
|
311
277
|
|
|
312
278
|
def navigate_screen=: (String) -> String
|
|
313
279
|
|
|
314
|
-
attr_reader otp_type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::
|
|
280
|
+
attr_reader otp_type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::otp_type?
|
|
315
281
|
|
|
316
282
|
def otp_type=: (
|
|
317
|
-
Telnyx::Models::Whatsapp::TemplateCreateParams::Component::
|
|
318
|
-
) -> Telnyx::Models::Whatsapp::TemplateCreateParams::Component::
|
|
283
|
+
Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::otp_type
|
|
284
|
+
) -> Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::otp_type
|
|
319
285
|
|
|
320
286
|
attr_reader package_name: String?
|
|
321
287
|
|
|
@@ -342,13 +308,13 @@ module Telnyx
|
|
|
342
308
|
def zero_tap_terms_accepted=: (bool) -> bool
|
|
343
309
|
|
|
344
310
|
def initialize: (
|
|
345
|
-
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::
|
|
311
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::type_,
|
|
346
312
|
?autofill_text: String,
|
|
347
313
|
?example: ::Array[String],
|
|
348
|
-
?flow_action: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::
|
|
314
|
+
?flow_action: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::flow_action,
|
|
349
315
|
?flow_id: String,
|
|
350
316
|
?navigate_screen: String,
|
|
351
|
-
?otp_type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::
|
|
317
|
+
?otp_type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::otp_type,
|
|
352
318
|
?package_name: String,
|
|
353
319
|
?phone_number: String,
|
|
354
320
|
?signature_hash: String,
|
|
@@ -358,13 +324,13 @@ module Telnyx
|
|
|
358
324
|
) -> void
|
|
359
325
|
|
|
360
326
|
def to_hash: -> {
|
|
361
|
-
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::
|
|
327
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::type_,
|
|
362
328
|
autofill_text: String,
|
|
363
329
|
example: ::Array[String],
|
|
364
|
-
flow_action: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::
|
|
330
|
+
flow_action: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::flow_action,
|
|
365
331
|
flow_id: String,
|
|
366
332
|
navigate_screen: String,
|
|
367
|
-
otp_type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::
|
|
333
|
+
otp_type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::otp_type,
|
|
368
334
|
package_name: String,
|
|
369
335
|
phone_number: String,
|
|
370
336
|
signature_hash: String,
|
|
@@ -386,7 +352,7 @@ module Telnyx
|
|
|
386
352
|
COPY_CODE: :COPY_CODE
|
|
387
353
|
FLOW: :FLOW
|
|
388
354
|
|
|
389
|
-
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::
|
|
355
|
+
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::type_]
|
|
390
356
|
end
|
|
391
357
|
|
|
392
358
|
type flow_action = :navigate | :data_exchange
|
|
@@ -397,7 +363,7 @@ module Telnyx
|
|
|
397
363
|
NAVIGATE: :navigate
|
|
398
364
|
DATA_EXCHANGE: :data_exchange
|
|
399
365
|
|
|
400
|
-
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::
|
|
366
|
+
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::flow_action]
|
|
401
367
|
end
|
|
402
368
|
|
|
403
369
|
type otp_type = :COPY_CODE | :ONE_TAP
|
|
@@ -408,40 +374,30 @@ module Telnyx
|
|
|
408
374
|
COPY_CODE: :COPY_CODE
|
|
409
375
|
ONE_TAP: :ONE_TAP
|
|
410
376
|
|
|
411
|
-
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::
|
|
377
|
+
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::otp_type]
|
|
412
378
|
end
|
|
413
379
|
end
|
|
414
|
-
|
|
415
|
-
type type_ = :BUTTONS
|
|
416
|
-
|
|
417
|
-
module Type
|
|
418
|
-
extend Telnyx::Internal::Type::Enum
|
|
419
|
-
|
|
420
|
-
BUTTONS: :BUTTONS
|
|
421
|
-
|
|
422
|
-
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::type_]
|
|
423
|
-
end
|
|
424
380
|
end
|
|
425
381
|
|
|
426
|
-
type
|
|
382
|
+
type carousel =
|
|
427
383
|
{
|
|
428
|
-
cards: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
429
|
-
type:
|
|
384
|
+
cards: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::Carousel::Card],
|
|
385
|
+
type: :CAROUSEL
|
|
430
386
|
}
|
|
431
387
|
|
|
432
|
-
class
|
|
433
|
-
attr_accessor cards: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
388
|
+
class Carousel < Telnyx::Internal::Type::BaseModel
|
|
389
|
+
attr_accessor cards: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::Carousel::Card]
|
|
434
390
|
|
|
435
|
-
attr_accessor type:
|
|
391
|
+
attr_accessor type: :CAROUSEL
|
|
436
392
|
|
|
437
393
|
def initialize: (
|
|
438
|
-
cards: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
439
|
-
type:
|
|
394
|
+
cards: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::Carousel::Card],
|
|
395
|
+
?type: :CAROUSEL
|
|
440
396
|
) -> void
|
|
441
397
|
|
|
442
398
|
def to_hash: -> {
|
|
443
|
-
cards: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::
|
|
444
|
-
type:
|
|
399
|
+
cards: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::Carousel::Card],
|
|
400
|
+
type: :CAROUSEL
|
|
445
401
|
}
|
|
446
402
|
|
|
447
403
|
type card = { components: ::Array[::Hash[Symbol, top]] }
|
|
@@ -459,16 +415,6 @@ module Telnyx
|
|
|
459
415
|
|
|
460
416
|
def to_hash: -> { components: ::Array[::Hash[Symbol, top]] }
|
|
461
417
|
end
|
|
462
|
-
|
|
463
|
-
type type_ = :CAROUSEL
|
|
464
|
-
|
|
465
|
-
module Type
|
|
466
|
-
extend Telnyx::Internal::Type::Enum
|
|
467
|
-
|
|
468
|
-
CAROUSEL: :CAROUSEL
|
|
469
|
-
|
|
470
|
-
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateCarouselComponent::type_]
|
|
471
|
-
end
|
|
472
418
|
end
|
|
473
419
|
|
|
474
420
|
def self?.variants: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::component]
|