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