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