telnyx 5.61.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 +31 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/conversation_add_message_params.rb +4 -4
- data/lib/telnyx/models/calls/action_start_noise_suppression_params.rb +135 -8
- 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 +421 -7
- data/lib/telnyx/models/whatsapp_message_template_update_params.rb +405 -3
- data/lib/telnyx/models/whatsapp_template_data.rb +10 -3
- data/lib/telnyx/models/x402/credit_account_settle_params.rb +4 -4
- data/lib/telnyx/resources/calls/actions.rb +1 -1
- data/lib/telnyx/resources/whatsapp/templates.rb +13 -5
- 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/calls/action_start_noise_suppression_params.rbi +338 -12
- 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 +891 -3
- data/rbi/telnyx/models/whatsapp_message_template_update_params.rbi +898 -5
- data/rbi/telnyx/models/whatsapp_template_data.rbi +10 -2
- data/rbi/telnyx/models/x402/credit_account_settle_params.rbi +6 -6
- data/rbi/telnyx/resources/calls/actions.rbi +4 -3
- data/rbi/telnyx/resources/whatsapp/templates.rbi +17 -1
- data/rbi/telnyx/resources/whatsapp_message_templates.rbi +11 -1
- 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/calls/action_start_noise_suppression_params.rbs +124 -4
- 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 +369 -4
- data/sig/telnyx/models/whatsapp_message_template_update_params.rbs +369 -6
- data/sig/telnyx/models/x402/credit_account_settle_params.rbs +5 -5
- data/sig/telnyx/resources/whatsapp/templates.rbs +1 -1
- data/sig/telnyx/resources/whatsapp_message_templates.rbs +1 -1
- data/sig/telnyx/resources/x402/credit_account.rbs +1 -1
- metadata +2 -2
|
@@ -4,7 +4,7 @@ module Telnyx
|
|
|
4
4
|
type template_create_params =
|
|
5
5
|
{
|
|
6
6
|
category: Telnyx::Models::Whatsapp::TemplateCreateParams::category,
|
|
7
|
-
components: ::Array[::
|
|
7
|
+
components: ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::component],
|
|
8
8
|
language: String,
|
|
9
9
|
name: String,
|
|
10
10
|
waba_id: String
|
|
@@ -17,7 +17,7 @@ module Telnyx
|
|
|
17
17
|
|
|
18
18
|
attr_accessor category: Telnyx::Models::Whatsapp::TemplateCreateParams::category
|
|
19
19
|
|
|
20
|
-
attr_accessor components: ::Array[::
|
|
20
|
+
attr_accessor components: ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::component]
|
|
21
21
|
|
|
22
22
|
attr_accessor language: String
|
|
23
23
|
|
|
@@ -27,7 +27,7 @@ module Telnyx
|
|
|
27
27
|
|
|
28
28
|
def initialize: (
|
|
29
29
|
category: Telnyx::Models::Whatsapp::TemplateCreateParams::category,
|
|
30
|
-
components: ::Array[::
|
|
30
|
+
components: ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::component],
|
|
31
31
|
language: String,
|
|
32
32
|
name: String,
|
|
33
33
|
waba_id: String,
|
|
@@ -36,7 +36,7 @@ module Telnyx
|
|
|
36
36
|
|
|
37
37
|
def to_hash: -> {
|
|
38
38
|
category: Telnyx::Models::Whatsapp::TemplateCreateParams::category,
|
|
39
|
-
components: ::Array[::
|
|
39
|
+
components: ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::component],
|
|
40
40
|
language: String,
|
|
41
41
|
name: String,
|
|
42
42
|
waba_id: String,
|
|
@@ -54,6 +54,371 @@ module Telnyx
|
|
|
54
54
|
|
|
55
55
|
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::category]
|
|
56
56
|
end
|
|
57
|
+
|
|
58
|
+
type 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
|
+
|
|
65
|
+
module Component
|
|
66
|
+
extend Telnyx::Internal::Type::Union
|
|
67
|
+
|
|
68
|
+
type header =
|
|
69
|
+
{
|
|
70
|
+
file_format: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Header::format_,
|
|
71
|
+
type: :HEADER,
|
|
72
|
+
example: Telnyx::Whatsapp::TemplateCreateParams::Component::Header::Example,
|
|
73
|
+
text: String
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
class Header < Telnyx::Internal::Type::BaseModel
|
|
77
|
+
attr_accessor file_format: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Header::format_
|
|
78
|
+
|
|
79
|
+
attr_accessor type: :HEADER
|
|
80
|
+
|
|
81
|
+
attr_reader example: Telnyx::Whatsapp::TemplateCreateParams::Component::Header::Example?
|
|
82
|
+
|
|
83
|
+
def example=: (
|
|
84
|
+
Telnyx::Whatsapp::TemplateCreateParams::Component::Header::Example
|
|
85
|
+
) -> Telnyx::Whatsapp::TemplateCreateParams::Component::Header::Example
|
|
86
|
+
|
|
87
|
+
attr_reader text: String?
|
|
88
|
+
|
|
89
|
+
def text=: (String) -> String
|
|
90
|
+
|
|
91
|
+
def initialize: (
|
|
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
|
+
) -> void
|
|
97
|
+
|
|
98
|
+
def to_hash: -> {
|
|
99
|
+
file_format: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Header::format_,
|
|
100
|
+
type: :HEADER,
|
|
101
|
+
example: Telnyx::Whatsapp::TemplateCreateParams::Component::Header::Example,
|
|
102
|
+
text: String
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
type format_ = :TEXT | :IMAGE | :VIDEO | :DOCUMENT | :LOCATION
|
|
106
|
+
|
|
107
|
+
module Format
|
|
108
|
+
extend Telnyx::Internal::Type::Enum
|
|
109
|
+
|
|
110
|
+
TEXT: :TEXT
|
|
111
|
+
IMAGE: :IMAGE
|
|
112
|
+
VIDEO: :VIDEO
|
|
113
|
+
DOCUMENT: :DOCUMENT
|
|
114
|
+
LOCATION: :LOCATION
|
|
115
|
+
|
|
116
|
+
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Header::format_]
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
type example =
|
|
120
|
+
{ header_handle: ::Array[String], header_text: ::Array[String] }
|
|
121
|
+
|
|
122
|
+
class Example < Telnyx::Internal::Type::BaseModel
|
|
123
|
+
attr_reader header_handle: ::Array[String]?
|
|
124
|
+
|
|
125
|
+
def header_handle=: (::Array[String]) -> ::Array[String]
|
|
126
|
+
|
|
127
|
+
attr_reader header_text: ::Array[String]?
|
|
128
|
+
|
|
129
|
+
def header_text=: (::Array[String]) -> ::Array[String]
|
|
130
|
+
|
|
131
|
+
def initialize: (
|
|
132
|
+
?header_handle: ::Array[String],
|
|
133
|
+
?header_text: ::Array[String]
|
|
134
|
+
) -> void
|
|
135
|
+
|
|
136
|
+
def to_hash: -> {
|
|
137
|
+
header_handle: ::Array[String],
|
|
138
|
+
header_text: ::Array[String]
|
|
139
|
+
}
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
type body =
|
|
144
|
+
{
|
|
145
|
+
type: :BODY,
|
|
146
|
+
example: Telnyx::Whatsapp::TemplateCreateParams::Component::Body::Example,
|
|
147
|
+
text: String
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
class Body < Telnyx::Internal::Type::BaseModel
|
|
151
|
+
attr_accessor type: :BODY
|
|
152
|
+
|
|
153
|
+
attr_reader example: Telnyx::Whatsapp::TemplateCreateParams::Component::Body::Example?
|
|
154
|
+
|
|
155
|
+
def example=: (
|
|
156
|
+
Telnyx::Whatsapp::TemplateCreateParams::Component::Body::Example
|
|
157
|
+
) -> Telnyx::Whatsapp::TemplateCreateParams::Component::Body::Example
|
|
158
|
+
|
|
159
|
+
attr_reader text: String?
|
|
160
|
+
|
|
161
|
+
def text=: (String) -> String
|
|
162
|
+
|
|
163
|
+
def initialize: (
|
|
164
|
+
?example: Telnyx::Whatsapp::TemplateCreateParams::Component::Body::Example,
|
|
165
|
+
?text: String,
|
|
166
|
+
?type: :BODY
|
|
167
|
+
) -> void
|
|
168
|
+
|
|
169
|
+
def to_hash: -> {
|
|
170
|
+
type: :BODY,
|
|
171
|
+
example: Telnyx::Whatsapp::TemplateCreateParams::Component::Body::Example,
|
|
172
|
+
text: String
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
type example = { body_text: ::Array[::Array[String]] }
|
|
176
|
+
|
|
177
|
+
class Example < Telnyx::Internal::Type::BaseModel
|
|
178
|
+
attr_reader body_text: ::Array[::Array[String]]?
|
|
179
|
+
|
|
180
|
+
def body_text=: (
|
|
181
|
+
::Array[::Array[String]]
|
|
182
|
+
) -> ::Array[::Array[String]]
|
|
183
|
+
|
|
184
|
+
def initialize: (?body_text: ::Array[::Array[String]]) -> void
|
|
185
|
+
|
|
186
|
+
def to_hash: -> { body_text: ::Array[::Array[String]] }
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
type footer =
|
|
191
|
+
{ type: :FOOTER, code_expiration_minutes: Integer, text: String }
|
|
192
|
+
|
|
193
|
+
class Footer < Telnyx::Internal::Type::BaseModel
|
|
194
|
+
attr_accessor type: :FOOTER
|
|
195
|
+
|
|
196
|
+
attr_reader code_expiration_minutes: Integer?
|
|
197
|
+
|
|
198
|
+
def code_expiration_minutes=: (Integer) -> Integer
|
|
199
|
+
|
|
200
|
+
attr_reader text: String?
|
|
201
|
+
|
|
202
|
+
def text=: (String) -> String
|
|
203
|
+
|
|
204
|
+
def initialize: (
|
|
205
|
+
?code_expiration_minutes: Integer,
|
|
206
|
+
?text: String,
|
|
207
|
+
?type: :FOOTER
|
|
208
|
+
) -> void
|
|
209
|
+
|
|
210
|
+
def to_hash: -> {
|
|
211
|
+
type: :FOOTER,
|
|
212
|
+
code_expiration_minutes: Integer,
|
|
213
|
+
text: String
|
|
214
|
+
}
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
type buttons =
|
|
218
|
+
{
|
|
219
|
+
buttons: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::Buttons::Button],
|
|
220
|
+
type: :BUTTONS
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
class Buttons < Telnyx::Internal::Type::BaseModel
|
|
224
|
+
attr_accessor buttons: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::Buttons::Button]
|
|
225
|
+
|
|
226
|
+
attr_accessor type: :BUTTONS
|
|
227
|
+
|
|
228
|
+
def initialize: (
|
|
229
|
+
buttons: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::Buttons::Button],
|
|
230
|
+
?type: :BUTTONS
|
|
231
|
+
) -> void
|
|
232
|
+
|
|
233
|
+
def to_hash: -> {
|
|
234
|
+
buttons: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::Buttons::Button],
|
|
235
|
+
type: :BUTTONS
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
type button =
|
|
239
|
+
{
|
|
240
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::type_,
|
|
241
|
+
autofill_text: String,
|
|
242
|
+
example: ::Array[String],
|
|
243
|
+
flow_action: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::flow_action,
|
|
244
|
+
flow_id: String,
|
|
245
|
+
navigate_screen: String,
|
|
246
|
+
otp_type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::otp_type,
|
|
247
|
+
package_name: String,
|
|
248
|
+
phone_number: String,
|
|
249
|
+
signature_hash: String,
|
|
250
|
+
text: String,
|
|
251
|
+
url: String,
|
|
252
|
+
zero_tap_terms_accepted: bool
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
class Button < Telnyx::Internal::Type::BaseModel
|
|
256
|
+
attr_accessor type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::type_
|
|
257
|
+
|
|
258
|
+
attr_reader autofill_text: String?
|
|
259
|
+
|
|
260
|
+
def autofill_text=: (String) -> String
|
|
261
|
+
|
|
262
|
+
attr_reader example: ::Array[String]?
|
|
263
|
+
|
|
264
|
+
def example=: (::Array[String]) -> ::Array[String]
|
|
265
|
+
|
|
266
|
+
attr_reader flow_action: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::flow_action?
|
|
267
|
+
|
|
268
|
+
def flow_action=: (
|
|
269
|
+
Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::flow_action
|
|
270
|
+
) -> Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::flow_action
|
|
271
|
+
|
|
272
|
+
attr_reader flow_id: String?
|
|
273
|
+
|
|
274
|
+
def flow_id=: (String) -> String
|
|
275
|
+
|
|
276
|
+
attr_reader navigate_screen: String?
|
|
277
|
+
|
|
278
|
+
def navigate_screen=: (String) -> String
|
|
279
|
+
|
|
280
|
+
attr_reader otp_type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::otp_type?
|
|
281
|
+
|
|
282
|
+
def otp_type=: (
|
|
283
|
+
Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::otp_type
|
|
284
|
+
) -> Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::otp_type
|
|
285
|
+
|
|
286
|
+
attr_reader package_name: String?
|
|
287
|
+
|
|
288
|
+
def package_name=: (String) -> String
|
|
289
|
+
|
|
290
|
+
attr_reader phone_number: String?
|
|
291
|
+
|
|
292
|
+
def phone_number=: (String) -> String
|
|
293
|
+
|
|
294
|
+
attr_reader signature_hash: String?
|
|
295
|
+
|
|
296
|
+
def signature_hash=: (String) -> String
|
|
297
|
+
|
|
298
|
+
attr_reader text: String?
|
|
299
|
+
|
|
300
|
+
def text=: (String) -> String
|
|
301
|
+
|
|
302
|
+
attr_reader url: String?
|
|
303
|
+
|
|
304
|
+
def url=: (String) -> String
|
|
305
|
+
|
|
306
|
+
attr_reader zero_tap_terms_accepted: bool?
|
|
307
|
+
|
|
308
|
+
def zero_tap_terms_accepted=: (bool) -> bool
|
|
309
|
+
|
|
310
|
+
def initialize: (
|
|
311
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::type_,
|
|
312
|
+
?autofill_text: String,
|
|
313
|
+
?example: ::Array[String],
|
|
314
|
+
?flow_action: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::flow_action,
|
|
315
|
+
?flow_id: String,
|
|
316
|
+
?navigate_screen: String,
|
|
317
|
+
?otp_type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::otp_type,
|
|
318
|
+
?package_name: String,
|
|
319
|
+
?phone_number: String,
|
|
320
|
+
?signature_hash: String,
|
|
321
|
+
?text: String,
|
|
322
|
+
?url: String,
|
|
323
|
+
?zero_tap_terms_accepted: bool
|
|
324
|
+
) -> void
|
|
325
|
+
|
|
326
|
+
def to_hash: -> {
|
|
327
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::type_,
|
|
328
|
+
autofill_text: String,
|
|
329
|
+
example: ::Array[String],
|
|
330
|
+
flow_action: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::flow_action,
|
|
331
|
+
flow_id: String,
|
|
332
|
+
navigate_screen: String,
|
|
333
|
+
otp_type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::otp_type,
|
|
334
|
+
package_name: String,
|
|
335
|
+
phone_number: String,
|
|
336
|
+
signature_hash: String,
|
|
337
|
+
text: String,
|
|
338
|
+
url: String,
|
|
339
|
+
zero_tap_terms_accepted: bool
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
type type_ =
|
|
343
|
+
:URL | :PHONE_NUMBER | :QUICK_REPLY | :OTP | :COPY_CODE | :FLOW
|
|
344
|
+
|
|
345
|
+
module Type
|
|
346
|
+
extend Telnyx::Internal::Type::Enum
|
|
347
|
+
|
|
348
|
+
URL: :URL
|
|
349
|
+
PHONE_NUMBER: :PHONE_NUMBER
|
|
350
|
+
QUICK_REPLY: :QUICK_REPLY
|
|
351
|
+
OTP: :OTP
|
|
352
|
+
COPY_CODE: :COPY_CODE
|
|
353
|
+
FLOW: :FLOW
|
|
354
|
+
|
|
355
|
+
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::type_]
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
type flow_action = :navigate | :data_exchange
|
|
359
|
+
|
|
360
|
+
module FlowAction
|
|
361
|
+
extend Telnyx::Internal::Type::Enum
|
|
362
|
+
|
|
363
|
+
NAVIGATE: :navigate
|
|
364
|
+
DATA_EXCHANGE: :data_exchange
|
|
365
|
+
|
|
366
|
+
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::flow_action]
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
type otp_type = :COPY_CODE | :ONE_TAP
|
|
370
|
+
|
|
371
|
+
module OtpType
|
|
372
|
+
extend Telnyx::Internal::Type::Enum
|
|
373
|
+
|
|
374
|
+
COPY_CODE: :COPY_CODE
|
|
375
|
+
ONE_TAP: :ONE_TAP
|
|
376
|
+
|
|
377
|
+
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::otp_type]
|
|
378
|
+
end
|
|
379
|
+
end
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
type carousel =
|
|
383
|
+
{
|
|
384
|
+
cards: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::Carousel::Card],
|
|
385
|
+
type: :CAROUSEL
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
class Carousel < Telnyx::Internal::Type::BaseModel
|
|
389
|
+
attr_accessor cards: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::Carousel::Card]
|
|
390
|
+
|
|
391
|
+
attr_accessor type: :CAROUSEL
|
|
392
|
+
|
|
393
|
+
def initialize: (
|
|
394
|
+
cards: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::Carousel::Card],
|
|
395
|
+
?type: :CAROUSEL
|
|
396
|
+
) -> void
|
|
397
|
+
|
|
398
|
+
def to_hash: -> {
|
|
399
|
+
cards: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::Carousel::Card],
|
|
400
|
+
type: :CAROUSEL
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
type card = { components: ::Array[::Hash[Symbol, top]] }
|
|
404
|
+
|
|
405
|
+
class Card < Telnyx::Internal::Type::BaseModel
|
|
406
|
+
attr_reader components: ::Array[::Hash[Symbol, top]]?
|
|
407
|
+
|
|
408
|
+
def components=: (
|
|
409
|
+
::Array[::Hash[Symbol, top]]
|
|
410
|
+
) -> ::Array[::Hash[Symbol, top]]
|
|
411
|
+
|
|
412
|
+
def initialize: (
|
|
413
|
+
?components: ::Array[::Hash[Symbol, top]]
|
|
414
|
+
) -> void
|
|
415
|
+
|
|
416
|
+
def to_hash: -> { components: ::Array[::Hash[Symbol, top]] }
|
|
417
|
+
end
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
def self?.variants: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::component]
|
|
421
|
+
end
|
|
57
422
|
end
|
|
58
423
|
end
|
|
59
424
|
end
|