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
|
@@ -40,11 +40,11 @@ module Telnyx
|
|
|
40
40
|
T.nilable(
|
|
41
41
|
T::Array[
|
|
42
42
|
T.any(
|
|
43
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
44
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
45
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
46
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
47
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
43
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header,
|
|
44
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Body,
|
|
45
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Footer,
|
|
46
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons,
|
|
47
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Carousel
|
|
48
48
|
)
|
|
49
49
|
]
|
|
50
50
|
)
|
|
@@ -57,11 +57,11 @@ module Telnyx
|
|
|
57
57
|
components:
|
|
58
58
|
T::Array[
|
|
59
59
|
T.any(
|
|
60
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
61
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
62
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
63
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
64
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
60
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header::OrHash,
|
|
61
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Body::OrHash,
|
|
62
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Footer::OrHash,
|
|
63
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::OrHash,
|
|
64
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Carousel::OrHash
|
|
65
65
|
)
|
|
66
66
|
]
|
|
67
67
|
).void
|
|
@@ -76,11 +76,11 @@ module Telnyx
|
|
|
76
76
|
components:
|
|
77
77
|
T::Array[
|
|
78
78
|
T.any(
|
|
79
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
80
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
81
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
82
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
83
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
79
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header::OrHash,
|
|
80
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Body::OrHash,
|
|
81
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Footer::OrHash,
|
|
82
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::OrHash,
|
|
83
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Carousel::OrHash
|
|
84
84
|
)
|
|
85
85
|
],
|
|
86
86
|
request_options: Telnyx::RequestOptions::OrHash
|
|
@@ -104,11 +104,11 @@ module Telnyx
|
|
|
104
104
|
components:
|
|
105
105
|
T::Array[
|
|
106
106
|
T.any(
|
|
107
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
108
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
109
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
110
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
111
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
107
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header,
|
|
108
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Body,
|
|
109
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Footer,
|
|
110
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons,
|
|
111
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Carousel
|
|
112
112
|
)
|
|
113
113
|
],
|
|
114
114
|
request_options: Telnyx::RequestOptions
|
|
@@ -162,19 +162,19 @@ module Telnyx
|
|
|
162
162
|
Variants =
|
|
163
163
|
T.type_alias do
|
|
164
164
|
T.any(
|
|
165
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
166
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
167
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
168
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
169
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
165
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header,
|
|
166
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Body,
|
|
167
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Footer,
|
|
168
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons,
|
|
169
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Carousel
|
|
170
170
|
)
|
|
171
171
|
end
|
|
172
172
|
|
|
173
|
-
class
|
|
173
|
+
class Header < Telnyx::Internal::Type::BaseModel
|
|
174
174
|
OrHash =
|
|
175
175
|
T.type_alias do
|
|
176
176
|
T.any(
|
|
177
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
177
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header,
|
|
178
178
|
Telnyx::Internal::AnyHash
|
|
179
179
|
)
|
|
180
180
|
end
|
|
@@ -183,23 +183,19 @@ module Telnyx
|
|
|
183
183
|
# LOCATION.
|
|
184
184
|
sig do
|
|
185
185
|
returns(
|
|
186
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
186
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header::Format::OrSymbol
|
|
187
187
|
)
|
|
188
188
|
end
|
|
189
|
-
attr_accessor :
|
|
189
|
+
attr_accessor :file_format
|
|
190
190
|
|
|
191
|
-
sig
|
|
192
|
-
returns(
|
|
193
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateHeaderComponent::Type::OrSymbol
|
|
194
|
-
)
|
|
195
|
-
end
|
|
191
|
+
sig { returns(Symbol) }
|
|
196
192
|
attr_accessor :type
|
|
197
193
|
|
|
198
194
|
# Sample values for header variables.
|
|
199
195
|
sig do
|
|
200
196
|
returns(
|
|
201
197
|
T.nilable(
|
|
202
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
198
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header::Example
|
|
203
199
|
)
|
|
204
200
|
)
|
|
205
201
|
end
|
|
@@ -208,7 +204,7 @@ module Telnyx
|
|
|
208
204
|
sig do
|
|
209
205
|
params(
|
|
210
206
|
example:
|
|
211
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
207
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header::Example::OrHash
|
|
212
208
|
).void
|
|
213
209
|
end
|
|
214
210
|
attr_writer :example
|
|
@@ -224,37 +220,35 @@ module Telnyx
|
|
|
224
220
|
# Optional header displayed at the top of the message.
|
|
225
221
|
sig do
|
|
226
222
|
params(
|
|
227
|
-
|
|
228
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
229
|
-
type:
|
|
230
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateHeaderComponent::Type::OrSymbol,
|
|
223
|
+
file_format:
|
|
224
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header::Format::OrSymbol,
|
|
231
225
|
example:
|
|
232
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
233
|
-
text: String
|
|
226
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header::Example::OrHash,
|
|
227
|
+
text: String,
|
|
228
|
+
type: Symbol
|
|
234
229
|
).returns(T.attached_class)
|
|
235
230
|
end
|
|
236
231
|
def self.new(
|
|
237
232
|
# Header format type: TEXT (supports one variable), IMAGE, VIDEO, DOCUMENT, or
|
|
238
233
|
# LOCATION.
|
|
239
|
-
|
|
240
|
-
type:,
|
|
234
|
+
file_format:,
|
|
241
235
|
# Sample values for header variables.
|
|
242
236
|
example: nil,
|
|
243
237
|
# Header text. Required when format is TEXT. Supports one variable ({{1}}).
|
|
244
238
|
# Variables cannot be at the start or end.
|
|
245
|
-
text: nil
|
|
239
|
+
text: nil,
|
|
240
|
+
type: :HEADER
|
|
246
241
|
)
|
|
247
242
|
end
|
|
248
243
|
|
|
249
244
|
sig do
|
|
250
245
|
override.returns(
|
|
251
246
|
{
|
|
252
|
-
|
|
253
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
254
|
-
type:
|
|
255
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateHeaderComponent::Type::OrSymbol,
|
|
247
|
+
file_format:
|
|
248
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header::Format::OrSymbol,
|
|
249
|
+
type: Symbol,
|
|
256
250
|
example:
|
|
257
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
251
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header::Example,
|
|
258
252
|
text: String
|
|
259
253
|
}
|
|
260
254
|
)
|
|
@@ -271,7 +265,7 @@ module Telnyx
|
|
|
271
265
|
T.type_alias do
|
|
272
266
|
T.all(
|
|
273
267
|
Symbol,
|
|
274
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
268
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header::Format
|
|
275
269
|
)
|
|
276
270
|
end
|
|
277
271
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -279,62 +273,33 @@ module Telnyx
|
|
|
279
273
|
TEXT =
|
|
280
274
|
T.let(
|
|
281
275
|
:TEXT,
|
|
282
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
276
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header::Format::TaggedSymbol
|
|
283
277
|
)
|
|
284
278
|
IMAGE =
|
|
285
279
|
T.let(
|
|
286
280
|
:IMAGE,
|
|
287
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
281
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header::Format::TaggedSymbol
|
|
288
282
|
)
|
|
289
283
|
VIDEO =
|
|
290
284
|
T.let(
|
|
291
285
|
:VIDEO,
|
|
292
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
286
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header::Format::TaggedSymbol
|
|
293
287
|
)
|
|
294
288
|
DOCUMENT =
|
|
295
289
|
T.let(
|
|
296
290
|
:DOCUMENT,
|
|
297
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
291
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header::Format::TaggedSymbol
|
|
298
292
|
)
|
|
299
293
|
LOCATION =
|
|
300
294
|
T.let(
|
|
301
295
|
:LOCATION,
|
|
302
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
303
|
-
)
|
|
304
|
-
|
|
305
|
-
sig do
|
|
306
|
-
override.returns(
|
|
307
|
-
T::Array[
|
|
308
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateHeaderComponent::Format::TaggedSymbol
|
|
309
|
-
]
|
|
310
|
-
)
|
|
311
|
-
end
|
|
312
|
-
def self.values
|
|
313
|
-
end
|
|
314
|
-
end
|
|
315
|
-
|
|
316
|
-
module Type
|
|
317
|
-
extend Telnyx::Internal::Type::Enum
|
|
318
|
-
|
|
319
|
-
TaggedSymbol =
|
|
320
|
-
T.type_alias do
|
|
321
|
-
T.all(
|
|
322
|
-
Symbol,
|
|
323
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateHeaderComponent::Type
|
|
324
|
-
)
|
|
325
|
-
end
|
|
326
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
327
|
-
|
|
328
|
-
HEADER =
|
|
329
|
-
T.let(
|
|
330
|
-
:HEADER,
|
|
331
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateHeaderComponent::Type::TaggedSymbol
|
|
296
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header::Format::TaggedSymbol
|
|
332
297
|
)
|
|
333
298
|
|
|
334
299
|
sig do
|
|
335
300
|
override.returns(
|
|
336
301
|
T::Array[
|
|
337
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
302
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header::Format::TaggedSymbol
|
|
338
303
|
]
|
|
339
304
|
)
|
|
340
305
|
end
|
|
@@ -346,7 +311,7 @@ module Telnyx
|
|
|
346
311
|
OrHash =
|
|
347
312
|
T.type_alias do
|
|
348
313
|
T.any(
|
|
349
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
314
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header::Example,
|
|
350
315
|
Telnyx::Internal::AnyHash
|
|
351
316
|
)
|
|
352
317
|
end
|
|
@@ -393,27 +358,23 @@ module Telnyx
|
|
|
393
358
|
end
|
|
394
359
|
end
|
|
395
360
|
|
|
396
|
-
class
|
|
361
|
+
class Body < Telnyx::Internal::Type::BaseModel
|
|
397
362
|
OrHash =
|
|
398
363
|
T.type_alias do
|
|
399
364
|
T.any(
|
|
400
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
365
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Body,
|
|
401
366
|
Telnyx::Internal::AnyHash
|
|
402
367
|
)
|
|
403
368
|
end
|
|
404
369
|
|
|
405
|
-
sig
|
|
406
|
-
returns(
|
|
407
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateBodyComponent::Type::OrSymbol
|
|
408
|
-
)
|
|
409
|
-
end
|
|
370
|
+
sig { returns(Symbol) }
|
|
410
371
|
attr_accessor :type
|
|
411
372
|
|
|
412
373
|
# Sample values for body variables. Required when body text contains parameters.
|
|
413
374
|
sig do
|
|
414
375
|
returns(
|
|
415
376
|
T.nilable(
|
|
416
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
377
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Body::Example
|
|
417
378
|
)
|
|
418
379
|
)
|
|
419
380
|
end
|
|
@@ -422,7 +383,7 @@ module Telnyx
|
|
|
422
383
|
sig do
|
|
423
384
|
params(
|
|
424
385
|
example:
|
|
425
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
386
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Body::Example::OrHash
|
|
426
387
|
).void
|
|
427
388
|
end
|
|
428
389
|
attr_writer :example
|
|
@@ -441,31 +402,29 @@ module Telnyx
|
|
|
441
402
|
# characters.
|
|
442
403
|
sig do
|
|
443
404
|
params(
|
|
444
|
-
type:
|
|
445
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateBodyComponent::Type::OrSymbol,
|
|
446
405
|
example:
|
|
447
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
448
|
-
text: String
|
|
406
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Body::Example::OrHash,
|
|
407
|
+
text: String,
|
|
408
|
+
type: Symbol
|
|
449
409
|
).returns(T.attached_class)
|
|
450
410
|
end
|
|
451
411
|
def self.new(
|
|
452
|
-
type:,
|
|
453
412
|
# Sample values for body variables. Required when body text contains parameters.
|
|
454
413
|
example: nil,
|
|
455
414
|
# Body text content. Use {{1}}, {{2}}, etc. for variable placeholders. Required
|
|
456
415
|
# for MARKETING and UTILITY templates. Optional for AUTHENTICATION templates where
|
|
457
416
|
# Meta provides the built-in OTP body.
|
|
458
|
-
text: nil
|
|
417
|
+
text: nil,
|
|
418
|
+
type: :BODY
|
|
459
419
|
)
|
|
460
420
|
end
|
|
461
421
|
|
|
462
422
|
sig do
|
|
463
423
|
override.returns(
|
|
464
424
|
{
|
|
465
|
-
type:
|
|
466
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateBodyComponent::Type::OrSymbol,
|
|
425
|
+
type: Symbol,
|
|
467
426
|
example:
|
|
468
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
427
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Body::Example,
|
|
469
428
|
text: String
|
|
470
429
|
}
|
|
471
430
|
)
|
|
@@ -473,40 +432,11 @@ module Telnyx
|
|
|
473
432
|
def to_hash
|
|
474
433
|
end
|
|
475
434
|
|
|
476
|
-
module Type
|
|
477
|
-
extend Telnyx::Internal::Type::Enum
|
|
478
|
-
|
|
479
|
-
TaggedSymbol =
|
|
480
|
-
T.type_alias do
|
|
481
|
-
T.all(
|
|
482
|
-
Symbol,
|
|
483
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateBodyComponent::Type
|
|
484
|
-
)
|
|
485
|
-
end
|
|
486
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
487
|
-
|
|
488
|
-
BODY =
|
|
489
|
-
T.let(
|
|
490
|
-
:BODY,
|
|
491
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateBodyComponent::Type::TaggedSymbol
|
|
492
|
-
)
|
|
493
|
-
|
|
494
|
-
sig do
|
|
495
|
-
override.returns(
|
|
496
|
-
T::Array[
|
|
497
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateBodyComponent::Type::TaggedSymbol
|
|
498
|
-
]
|
|
499
|
-
)
|
|
500
|
-
end
|
|
501
|
-
def self.values
|
|
502
|
-
end
|
|
503
|
-
end
|
|
504
|
-
|
|
505
435
|
class Example < Telnyx::Internal::Type::BaseModel
|
|
506
436
|
OrHash =
|
|
507
437
|
T.type_alias do
|
|
508
438
|
T.any(
|
|
509
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
439
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Body::Example,
|
|
510
440
|
Telnyx::Internal::AnyHash
|
|
511
441
|
)
|
|
512
442
|
end
|
|
@@ -536,20 +466,16 @@ module Telnyx
|
|
|
536
466
|
end
|
|
537
467
|
end
|
|
538
468
|
|
|
539
|
-
class
|
|
469
|
+
class Footer < Telnyx::Internal::Type::BaseModel
|
|
540
470
|
OrHash =
|
|
541
471
|
T.type_alias do
|
|
542
472
|
T.any(
|
|
543
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
473
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Footer,
|
|
544
474
|
Telnyx::Internal::AnyHash
|
|
545
475
|
)
|
|
546
476
|
end
|
|
547
477
|
|
|
548
|
-
sig
|
|
549
|
-
returns(
|
|
550
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateFooterComponent::Type::OrSymbol
|
|
551
|
-
)
|
|
552
|
-
end
|
|
478
|
+
sig { returns(Symbol) }
|
|
553
479
|
attr_accessor :type
|
|
554
480
|
|
|
555
481
|
# OTP code expiration time in minutes. Used in AUTHENTICATION template footers
|
|
@@ -571,70 +497,35 @@ module Telnyx
|
|
|
571
497
|
# variables.
|
|
572
498
|
sig do
|
|
573
499
|
params(
|
|
574
|
-
type:
|
|
575
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateFooterComponent::Type::OrSymbol,
|
|
576
500
|
code_expiration_minutes: Integer,
|
|
577
|
-
text: String
|
|
501
|
+
text: String,
|
|
502
|
+
type: Symbol
|
|
578
503
|
).returns(T.attached_class)
|
|
579
504
|
end
|
|
580
505
|
def self.new(
|
|
581
|
-
type:,
|
|
582
506
|
# OTP code expiration time in minutes. Used in AUTHENTICATION template footers
|
|
583
507
|
# instead of free-form text.
|
|
584
508
|
code_expiration_minutes: nil,
|
|
585
509
|
# Footer text. Maximum 60 characters. For non-authentication templates.
|
|
586
|
-
text: nil
|
|
510
|
+
text: nil,
|
|
511
|
+
type: :FOOTER
|
|
587
512
|
)
|
|
588
513
|
end
|
|
589
514
|
|
|
590
515
|
sig do
|
|
591
516
|
override.returns(
|
|
592
|
-
{
|
|
593
|
-
type:
|
|
594
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateFooterComponent::Type::OrSymbol,
|
|
595
|
-
code_expiration_minutes: Integer,
|
|
596
|
-
text: String
|
|
597
|
-
}
|
|
517
|
+
{ type: Symbol, code_expiration_minutes: Integer, text: String }
|
|
598
518
|
)
|
|
599
519
|
end
|
|
600
520
|
def to_hash
|
|
601
521
|
end
|
|
602
|
-
|
|
603
|
-
module Type
|
|
604
|
-
extend Telnyx::Internal::Type::Enum
|
|
605
|
-
|
|
606
|
-
TaggedSymbol =
|
|
607
|
-
T.type_alias do
|
|
608
|
-
T.all(
|
|
609
|
-
Symbol,
|
|
610
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateFooterComponent::Type
|
|
611
|
-
)
|
|
612
|
-
end
|
|
613
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
614
|
-
|
|
615
|
-
FOOTER =
|
|
616
|
-
T.let(
|
|
617
|
-
:FOOTER,
|
|
618
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateFooterComponent::Type::TaggedSymbol
|
|
619
|
-
)
|
|
620
|
-
|
|
621
|
-
sig do
|
|
622
|
-
override.returns(
|
|
623
|
-
T::Array[
|
|
624
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateFooterComponent::Type::TaggedSymbol
|
|
625
|
-
]
|
|
626
|
-
)
|
|
627
|
-
end
|
|
628
|
-
def self.values
|
|
629
|
-
end
|
|
630
|
-
end
|
|
631
522
|
end
|
|
632
523
|
|
|
633
|
-
class
|
|
524
|
+
class Buttons < Telnyx::Internal::Type::BaseModel
|
|
634
525
|
OrHash =
|
|
635
526
|
T.type_alias do
|
|
636
527
|
T.any(
|
|
637
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
528
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons,
|
|
638
529
|
Telnyx::Internal::AnyHash
|
|
639
530
|
)
|
|
640
531
|
end
|
|
@@ -643,17 +534,13 @@ module Telnyx
|
|
|
643
534
|
sig do
|
|
644
535
|
returns(
|
|
645
536
|
T::Array[
|
|
646
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
537
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button
|
|
647
538
|
]
|
|
648
539
|
)
|
|
649
540
|
end
|
|
650
541
|
attr_accessor :buttons
|
|
651
542
|
|
|
652
|
-
sig
|
|
653
|
-
returns(
|
|
654
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateButtonsComponent::Type::OrSymbol
|
|
655
|
-
)
|
|
656
|
-
end
|
|
543
|
+
sig { returns(Symbol) }
|
|
657
544
|
attr_accessor :type
|
|
658
545
|
|
|
659
546
|
# Optional interactive buttons. Maximum 3 buttons per template.
|
|
@@ -661,16 +548,15 @@ module Telnyx
|
|
|
661
548
|
params(
|
|
662
549
|
buttons:
|
|
663
550
|
T::Array[
|
|
664
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
551
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::OrHash
|
|
665
552
|
],
|
|
666
|
-
type:
|
|
667
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateButtonsComponent::Type::OrSymbol
|
|
553
|
+
type: Symbol
|
|
668
554
|
).returns(T.attached_class)
|
|
669
555
|
end
|
|
670
556
|
def self.new(
|
|
671
557
|
# Array of button objects. Meta supports various combinations of button types.
|
|
672
558
|
buttons:,
|
|
673
|
-
type:
|
|
559
|
+
type: :BUTTONS
|
|
674
560
|
)
|
|
675
561
|
end
|
|
676
562
|
|
|
@@ -679,10 +565,9 @@ module Telnyx
|
|
|
679
565
|
{
|
|
680
566
|
buttons:
|
|
681
567
|
T::Array[
|
|
682
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
568
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button
|
|
683
569
|
],
|
|
684
|
-
type:
|
|
685
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateButtonsComponent::Type::OrSymbol
|
|
570
|
+
type: Symbol
|
|
686
571
|
}
|
|
687
572
|
)
|
|
688
573
|
end
|
|
@@ -693,14 +578,14 @@ module Telnyx
|
|
|
693
578
|
OrHash =
|
|
694
579
|
T.type_alias do
|
|
695
580
|
T.any(
|
|
696
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
581
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button,
|
|
697
582
|
Telnyx::Internal::AnyHash
|
|
698
583
|
)
|
|
699
584
|
end
|
|
700
585
|
|
|
701
586
|
sig do
|
|
702
587
|
returns(
|
|
703
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
588
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::Type::OrSymbol
|
|
704
589
|
)
|
|
705
590
|
end
|
|
706
591
|
attr_accessor :type
|
|
@@ -723,7 +608,7 @@ module Telnyx
|
|
|
723
608
|
sig do
|
|
724
609
|
returns(
|
|
725
610
|
T.nilable(
|
|
726
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
611
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::FlowAction::OrSymbol
|
|
727
612
|
)
|
|
728
613
|
)
|
|
729
614
|
end
|
|
@@ -732,7 +617,7 @@ module Telnyx
|
|
|
732
617
|
sig do
|
|
733
618
|
params(
|
|
734
619
|
flow_action:
|
|
735
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
620
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::FlowAction::OrSymbol
|
|
736
621
|
).void
|
|
737
622
|
end
|
|
738
623
|
attr_writer :flow_action
|
|
@@ -754,7 +639,7 @@ module Telnyx
|
|
|
754
639
|
sig do
|
|
755
640
|
returns(
|
|
756
641
|
T.nilable(
|
|
757
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
642
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::OtpType::OrSymbol
|
|
758
643
|
)
|
|
759
644
|
)
|
|
760
645
|
end
|
|
@@ -763,7 +648,7 @@ module Telnyx
|
|
|
763
648
|
sig do
|
|
764
649
|
params(
|
|
765
650
|
otp_type:
|
|
766
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
651
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::OtpType::OrSymbol
|
|
767
652
|
).void
|
|
768
653
|
end
|
|
769
654
|
attr_writer :otp_type
|
|
@@ -814,15 +699,15 @@ module Telnyx
|
|
|
814
699
|
sig do
|
|
815
700
|
params(
|
|
816
701
|
type:
|
|
817
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
702
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::Type::OrSymbol,
|
|
818
703
|
autofill_text: String,
|
|
819
704
|
example: T::Array[String],
|
|
820
705
|
flow_action:
|
|
821
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
706
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::FlowAction::OrSymbol,
|
|
822
707
|
flow_id: String,
|
|
823
708
|
navigate_screen: String,
|
|
824
709
|
otp_type:
|
|
825
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
710
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::OtpType::OrSymbol,
|
|
826
711
|
package_name: String,
|
|
827
712
|
phone_number: String,
|
|
828
713
|
signature_hash: String,
|
|
@@ -864,15 +749,15 @@ module Telnyx
|
|
|
864
749
|
override.returns(
|
|
865
750
|
{
|
|
866
751
|
type:
|
|
867
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
752
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::Type::OrSymbol,
|
|
868
753
|
autofill_text: String,
|
|
869
754
|
example: T::Array[String],
|
|
870
755
|
flow_action:
|
|
871
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
756
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::FlowAction::OrSymbol,
|
|
872
757
|
flow_id: String,
|
|
873
758
|
navigate_screen: String,
|
|
874
759
|
otp_type:
|
|
875
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
760
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::OtpType::OrSymbol,
|
|
876
761
|
package_name: String,
|
|
877
762
|
phone_number: String,
|
|
878
763
|
signature_hash: String,
|
|
@@ -892,7 +777,7 @@ module Telnyx
|
|
|
892
777
|
T.type_alias do
|
|
893
778
|
T.all(
|
|
894
779
|
Symbol,
|
|
895
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
780
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::Type
|
|
896
781
|
)
|
|
897
782
|
end
|
|
898
783
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -900,38 +785,38 @@ module Telnyx
|
|
|
900
785
|
URL =
|
|
901
786
|
T.let(
|
|
902
787
|
:URL,
|
|
903
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
788
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::Type::TaggedSymbol
|
|
904
789
|
)
|
|
905
790
|
PHONE_NUMBER =
|
|
906
791
|
T.let(
|
|
907
792
|
:PHONE_NUMBER,
|
|
908
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
793
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::Type::TaggedSymbol
|
|
909
794
|
)
|
|
910
795
|
QUICK_REPLY =
|
|
911
796
|
T.let(
|
|
912
797
|
:QUICK_REPLY,
|
|
913
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
798
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::Type::TaggedSymbol
|
|
914
799
|
)
|
|
915
800
|
OTP =
|
|
916
801
|
T.let(
|
|
917
802
|
:OTP,
|
|
918
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
803
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::Type::TaggedSymbol
|
|
919
804
|
)
|
|
920
805
|
COPY_CODE =
|
|
921
806
|
T.let(
|
|
922
807
|
:COPY_CODE,
|
|
923
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
808
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::Type::TaggedSymbol
|
|
924
809
|
)
|
|
925
810
|
FLOW =
|
|
926
811
|
T.let(
|
|
927
812
|
:FLOW,
|
|
928
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
813
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::Type::TaggedSymbol
|
|
929
814
|
)
|
|
930
815
|
|
|
931
816
|
sig do
|
|
932
817
|
override.returns(
|
|
933
818
|
T::Array[
|
|
934
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
819
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::Type::TaggedSymbol
|
|
935
820
|
]
|
|
936
821
|
)
|
|
937
822
|
end
|
|
@@ -947,7 +832,7 @@ module Telnyx
|
|
|
947
832
|
T.type_alias do
|
|
948
833
|
T.all(
|
|
949
834
|
Symbol,
|
|
950
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
835
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::FlowAction
|
|
951
836
|
)
|
|
952
837
|
end
|
|
953
838
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -955,18 +840,18 @@ module Telnyx
|
|
|
955
840
|
NAVIGATE =
|
|
956
841
|
T.let(
|
|
957
842
|
:navigate,
|
|
958
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
843
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::FlowAction::TaggedSymbol
|
|
959
844
|
)
|
|
960
845
|
DATA_EXCHANGE =
|
|
961
846
|
T.let(
|
|
962
847
|
:data_exchange,
|
|
963
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
848
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::FlowAction::TaggedSymbol
|
|
964
849
|
)
|
|
965
850
|
|
|
966
851
|
sig do
|
|
967
852
|
override.returns(
|
|
968
853
|
T::Array[
|
|
969
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
854
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::FlowAction::TaggedSymbol
|
|
970
855
|
]
|
|
971
856
|
)
|
|
972
857
|
end
|
|
@@ -981,7 +866,7 @@ module Telnyx
|
|
|
981
866
|
T.type_alias do
|
|
982
867
|
T.all(
|
|
983
868
|
Symbol,
|
|
984
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
869
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::OtpType
|
|
985
870
|
)
|
|
986
871
|
end
|
|
987
872
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -989,18 +874,18 @@ module Telnyx
|
|
|
989
874
|
COPY_CODE =
|
|
990
875
|
T.let(
|
|
991
876
|
:COPY_CODE,
|
|
992
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
877
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::OtpType::TaggedSymbol
|
|
993
878
|
)
|
|
994
879
|
ONE_TAP =
|
|
995
880
|
T.let(
|
|
996
881
|
:ONE_TAP,
|
|
997
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
882
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::OtpType::TaggedSymbol
|
|
998
883
|
)
|
|
999
884
|
|
|
1000
885
|
sig do
|
|
1001
886
|
override.returns(
|
|
1002
887
|
T::Array[
|
|
1003
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
888
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::OtpType::TaggedSymbol
|
|
1004
889
|
]
|
|
1005
890
|
)
|
|
1006
891
|
end
|
|
@@ -1008,42 +893,13 @@ module Telnyx
|
|
|
1008
893
|
end
|
|
1009
894
|
end
|
|
1010
895
|
end
|
|
1011
|
-
|
|
1012
|
-
module Type
|
|
1013
|
-
extend Telnyx::Internal::Type::Enum
|
|
1014
|
-
|
|
1015
|
-
TaggedSymbol =
|
|
1016
|
-
T.type_alias do
|
|
1017
|
-
T.all(
|
|
1018
|
-
Symbol,
|
|
1019
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateButtonsComponent::Type
|
|
1020
|
-
)
|
|
1021
|
-
end
|
|
1022
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1023
|
-
|
|
1024
|
-
BUTTONS =
|
|
1025
|
-
T.let(
|
|
1026
|
-
:BUTTONS,
|
|
1027
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateButtonsComponent::Type::TaggedSymbol
|
|
1028
|
-
)
|
|
1029
|
-
|
|
1030
|
-
sig do
|
|
1031
|
-
override.returns(
|
|
1032
|
-
T::Array[
|
|
1033
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateButtonsComponent::Type::TaggedSymbol
|
|
1034
|
-
]
|
|
1035
|
-
)
|
|
1036
|
-
end
|
|
1037
|
-
def self.values
|
|
1038
|
-
end
|
|
1039
|
-
end
|
|
1040
896
|
end
|
|
1041
897
|
|
|
1042
|
-
class
|
|
898
|
+
class Carousel < Telnyx::Internal::Type::BaseModel
|
|
1043
899
|
OrHash =
|
|
1044
900
|
T.type_alias do
|
|
1045
901
|
T.any(
|
|
1046
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
902
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Carousel,
|
|
1047
903
|
Telnyx::Internal::AnyHash
|
|
1048
904
|
)
|
|
1049
905
|
end
|
|
@@ -1052,17 +908,13 @@ module Telnyx
|
|
|
1052
908
|
sig do
|
|
1053
909
|
returns(
|
|
1054
910
|
T::Array[
|
|
1055
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
911
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Carousel::Card
|
|
1056
912
|
]
|
|
1057
913
|
)
|
|
1058
914
|
end
|
|
1059
915
|
attr_accessor :cards
|
|
1060
916
|
|
|
1061
|
-
sig
|
|
1062
|
-
returns(
|
|
1063
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateCarouselComponent::Type::OrSymbol
|
|
1064
|
-
)
|
|
1065
|
-
end
|
|
917
|
+
sig { returns(Symbol) }
|
|
1066
918
|
attr_accessor :type
|
|
1067
919
|
|
|
1068
920
|
# Carousel component for multi-card templates. Each card can contain its own
|
|
@@ -1071,16 +923,15 @@ module Telnyx
|
|
|
1071
923
|
params(
|
|
1072
924
|
cards:
|
|
1073
925
|
T::Array[
|
|
1074
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
926
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Carousel::Card::OrHash
|
|
1075
927
|
],
|
|
1076
|
-
type:
|
|
1077
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateCarouselComponent::Type::OrSymbol
|
|
928
|
+
type: Symbol
|
|
1078
929
|
).returns(T.attached_class)
|
|
1079
930
|
end
|
|
1080
931
|
def self.new(
|
|
1081
932
|
# Array of card objects, each with its own components.
|
|
1082
933
|
cards:,
|
|
1083
|
-
type:
|
|
934
|
+
type: :CAROUSEL
|
|
1084
935
|
)
|
|
1085
936
|
end
|
|
1086
937
|
|
|
@@ -1089,10 +940,9 @@ module Telnyx
|
|
|
1089
940
|
{
|
|
1090
941
|
cards:
|
|
1091
942
|
T::Array[
|
|
1092
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
943
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Carousel::Card
|
|
1093
944
|
],
|
|
1094
|
-
type:
|
|
1095
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateCarouselComponent::Type::OrSymbol
|
|
945
|
+
type: Symbol
|
|
1096
946
|
}
|
|
1097
947
|
)
|
|
1098
948
|
end
|
|
@@ -1103,7 +953,7 @@ module Telnyx
|
|
|
1103
953
|
OrHash =
|
|
1104
954
|
T.type_alias do
|
|
1105
955
|
T.any(
|
|
1106
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
956
|
+
Telnyx::WhatsappMessageTemplateUpdateParams::Component::Carousel::Card,
|
|
1107
957
|
Telnyx::Internal::AnyHash
|
|
1108
958
|
)
|
|
1109
959
|
end
|
|
@@ -1132,35 +982,6 @@ module Telnyx
|
|
|
1132
982
|
def to_hash
|
|
1133
983
|
end
|
|
1134
984
|
end
|
|
1135
|
-
|
|
1136
|
-
module Type
|
|
1137
|
-
extend Telnyx::Internal::Type::Enum
|
|
1138
|
-
|
|
1139
|
-
TaggedSymbol =
|
|
1140
|
-
T.type_alias do
|
|
1141
|
-
T.all(
|
|
1142
|
-
Symbol,
|
|
1143
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateCarouselComponent::Type
|
|
1144
|
-
)
|
|
1145
|
-
end
|
|
1146
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1147
|
-
|
|
1148
|
-
CAROUSEL =
|
|
1149
|
-
T.let(
|
|
1150
|
-
:CAROUSEL,
|
|
1151
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateCarouselComponent::Type::TaggedSymbol
|
|
1152
|
-
)
|
|
1153
|
-
|
|
1154
|
-
sig do
|
|
1155
|
-
override.returns(
|
|
1156
|
-
T::Array[
|
|
1157
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateCarouselComponent::Type::TaggedSymbol
|
|
1158
|
-
]
|
|
1159
|
-
)
|
|
1160
|
-
end
|
|
1161
|
-
def self.values
|
|
1162
|
-
end
|
|
1163
|
-
end
|
|
1164
985
|
end
|
|
1165
986
|
|
|
1166
987
|
sig do
|