freeclimb 5.0.0 → 5.1.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 +12 -1
- data/Gemfile +2 -1
- data/Gemfile.lock +21 -15
- data/README.md +5 -4
- data/docs/MessageResult.md +7 -1
- data/docs/TFNCampaign.md +34 -0
- data/lib/freeclimb/configuration.rb +1 -2
- data/lib/freeclimb/models/dequeue.rb +2 -4
- data/lib/freeclimb/models/message_result.rb +36 -5
- data/lib/freeclimb/models/remove_from_conference.rb +2 -4
- data/lib/freeclimb/models/start_record_call.rb +2 -4
- data/lib/freeclimb/models/terminate_conference.rb +2 -4
- data/lib/freeclimb/models/tfn_campaign.rb +370 -0
- data/lib/freeclimb/models/unpark.rb +2 -4
- data/lib/freeclimb/version.rb +1 -1
- data/lib/freeclimb.rb +1 -0
- data/openapi.json +93 -38
- data/spec/api/default_api_spec.rb +39 -117
- data/spec/models/account_request_spec.rb +113 -2
- data/spec/models/account_result_spec.rb +591 -28
- data/spec/models/account_status_spec.rb +1 -0
- data/spec/models/account_type_spec.rb +1 -0
- data/spec/models/add_to_conference_notification_webhook_spec.rb +654 -5
- data/spec/models/add_to_conference_spec.rb +471 -2
- data/spec/models/add_to_queue_notification_webhook_spec.rb +465 -2
- data/spec/models/answered_by_spec.rb +1 -0
- data/spec/models/application_list_spec.rb +323 -2
- data/spec/models/application_request_spec.rb +393 -2
- data/spec/models/application_result_spec.rb +723 -14
- data/spec/models/available_number_list_spec.rb +323 -2
- data/spec/models/available_number_spec.rb +380 -21
- data/spec/models/barge_in_reason_spec.rb +1 -0
- data/spec/models/buy_incoming_number_request_spec.rb +169 -2
- data/spec/models/call_control_webhook_spec.rb +281 -2
- data/spec/models/call_direction_spec.rb +1 -0
- data/spec/models/call_ended_reason_spec.rb +1 -0
- data/spec/models/call_list_spec.rb +323 -2
- data/spec/models/call_result_spec.rb +1020 -9
- data/spec/models/call_status_spec.rb +1 -0
- data/spec/models/call_status_webhook_spec.rb +501 -2
- data/spec/models/capabilities_spec.rb +191 -2
- data/spec/models/completion_request_spec.rb +54 -2
- data/spec/models/completion_result_spec.rb +93 -2
- data/spec/models/completion_result_status_spec.rb +1 -0
- data/spec/models/conference_list_spec.rb +323 -2
- data/spec/models/conference_participant_list_spec.rb +323 -2
- data/spec/models/conference_participant_result_spec.rb +532 -7
- data/spec/models/conference_recording_status_webhook_spec.rb +654 -5
- data/spec/models/conference_result_spec.rb +768 -55
- data/spec/models/conference_status_spec.rb +1 -0
- data/spec/models/conference_status_webhook_spec.rb +654 -5
- data/spec/models/create_conference_request_spec.rb +243 -2
- data/spec/models/create_conference_spec.rb +281 -2
- data/spec/models/create_conference_webhook_spec.rb +654 -5
- data/spec/models/create_web_rtc_token_spec.rb +151 -2
- data/spec/models/dequeue_spec.rb +1 -0
- data/spec/models/dequeue_webhook_spec.rb +565 -8
- data/spec/models/enqueue_spec.rb +225 -2
- data/spec/models/filter_logs_request_spec.rb +57 -2
- data/spec/models/get_digits_reason_spec.rb +1 -0
- data/spec/models/get_digits_spec.rb +379 -2
- data/spec/models/get_digits_webhook_spec.rb +623 -12
- data/spec/models/get_speech_reason_spec.rb +1 -0
- data/spec/models/get_speech_spec.rb +556 -11
- data/spec/models/get_speech_webhook_spec.rb +870 -15
- data/spec/models/grammar_file_built_in_spec.rb +1 -0
- data/spec/models/grammar_type_spec.rb +1 -0
- data/spec/models/hangup_spec.rb +57 -2
- data/spec/models/if_machine_spec.rb +1 -0
- data/spec/models/inbound_call_webhook_spec.rb +521 -2
- data/spec/models/incoming_number_list_spec.rb +323 -2
- data/spec/models/incoming_number_request_spec.rb +169 -2
- data/spec/models/incoming_number_result_spec.rb +930 -43
- data/spec/models/language_spec.rb +1 -0
- data/spec/models/leave_conference_webhook_spec.rb +465 -2
- data/spec/models/log_level_spec.rb +1 -0
- data/spec/models/log_list_spec.rb +323 -2
- data/spec/models/log_result_spec.rb +368 -9
- data/spec/models/machine_detected_webhook_spec.rb +565 -10
- data/spec/models/machine_type_spec.rb +1 -0
- data/spec/models/make_call_request_spec.rb +529 -6
- data/spec/models/message_delivery_webhook_spec.rb +565 -6
- data/spec/models/message_direction_spec.rb +1 -0
- data/spec/models/message_request_spec.rb +469 -2
- data/spec/models/message_result_spec.rb +1364 -225
- data/spec/models/message_status_spec.rb +1 -0
- data/spec/models/message_status_webhook_spec.rb +615 -20
- data/spec/models/messages_list_spec.rb +323 -2
- data/spec/models/mutable_resource_model_spec.rb +207 -2
- data/spec/models/out_dial_api_connect_webhook_spec.rb +521 -2
- data/spec/models/out_dial_connect_webhook_spec.rb +521 -2
- data/spec/models/out_dial_spec.rb +505 -2
- data/spec/models/out_dial_start_webhook_spec.rb +599 -24
- data/spec/models/pagination_model_spec.rb +285 -2
- data/spec/models/park_spec.rb +169 -2
- data/spec/models/pause_spec.rb +39 -2
- data/spec/models/percl_command_spec.rb +54 -2
- data/spec/models/percl_script_spec.rb +39 -2
- data/spec/models/play_beep_spec.rb +1 -0
- data/spec/models/play_early_media_spec.rb +57 -2
- data/spec/models/play_spec.rb +133 -2
- data/spec/models/queue_list_spec.rb +323 -2
- data/spec/models/queue_member_list_spec.rb +323 -2
- data/spec/models/queue_member_spec.rb +245 -2
- data/spec/models/queue_request_spec.rb +95 -2
- data/spec/models/queue_result_spec.rb +564 -15
- data/spec/models/queue_result_status_spec.rb +1 -0
- data/spec/models/queue_wait_webhook_spec.rb +616 -21
- data/spec/models/record_utterance_spec.rb +303 -2
- data/spec/models/record_utterance_term_reason_spec.rb +1 -0
- data/spec/models/record_webhook_spec.rb +868 -13
- data/spec/models/recording_list_spec.rb +323 -2
- data/spec/models/recording_result_spec.rb +469 -2
- data/spec/models/redirect_spec.rb +57 -2
- data/spec/models/redirect_webhook_spec.rb +521 -2
- data/spec/models/reject_spec.rb +57 -2
- data/spec/models/remove_from_conference_spec.rb +1 -0
- data/spec/models/remove_from_queue_notification_webhook_spec.rb +546 -9
- data/spec/models/request_type_spec.rb +1 -0
- data/spec/models/say_spec.rb +189 -2
- data/spec/models/send_digits_spec.rb +133 -2
- data/spec/models/set_dtmf_pass_through_spec.rb +39 -2
- data/spec/models/set_listen_spec.rb +39 -2
- data/spec/models/set_talk_spec.rb +39 -2
- data/spec/models/sms_spec.rb +225 -2
- data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brand_spec.rb +1969 -423
- data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +323 -2
- data/spec/models/sms_ten_dlc_campaign_spec.rb +2224 -550
- data/spec/models/sms_ten_dlc_campaign_status_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +323 -2
- data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +597 -17
- data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +1537 -155
- data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +323 -2
- data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +1 -0
- data/spec/models/sms_toll_free_campaign_spec.rb +355 -2
- data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +323 -2
- data/spec/models/start_record_call_spec.rb +1 -0
- data/spec/models/terminate_conference_spec.rb +1 -0
- data/spec/models/tfn_campaign_spec.rb +1089 -0
- data/spec/models/tfn_spec.rb +57 -2
- data/spec/models/transcribe_reason_spec.rb +1 -0
- data/spec/models/transcribe_term_reason_spec.rb +1 -0
- data/spec/models/transcribe_utterance_record_spec.rb +115 -2
- data/spec/models/transcribe_utterance_spec.rb +288 -21
- data/spec/models/transcribe_webhook_spec.rb +1049 -4
- data/spec/models/unpark_spec.rb +1 -0
- data/spec/models/update_call_request_spec.rb +37 -2
- data/spec/models/update_call_request_status_spec.rb +1 -0
- data/spec/models/update_conference_participant_request_spec.rb +115 -2
- data/spec/models/update_conference_request_spec.rb +129 -2
- data/spec/models/update_conference_request_status_spec.rb +1 -0
- data/spec/models/webhook_spec.rb +54 -2
- metadata +129 -125
@@ -13,6 +13,7 @@ OpenAPI Generator version: 7.9.0
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
|
+
include Freeclimb
|
16
17
|
|
17
18
|
# Unit tests for Freeclimb::RecordWebhook
|
18
19
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
@@ -34,41 +35,56 @@ describe Freeclimb::RecordWebhook do
|
|
34
35
|
|
35
36
|
describe 'test attribute "request_type"' do
|
36
37
|
it 'should work' do
|
38
|
+
|
37
39
|
instance.request_type = "TEST_STRING"
|
38
40
|
expect(instance.request_type).to eq("TEST_STRING")
|
39
41
|
|
42
|
+
|
43
|
+
|
40
44
|
end
|
41
45
|
end
|
42
46
|
|
43
47
|
describe 'test attribute "account_id"' do
|
44
48
|
it 'should work' do
|
49
|
+
|
45
50
|
instance.account_id = "TEST_STRING"
|
46
51
|
expect(instance.account_id).to eq("TEST_STRING")
|
47
52
|
|
53
|
+
|
54
|
+
|
48
55
|
end
|
49
56
|
end
|
50
57
|
|
51
58
|
describe 'test attribute "call_id"' do
|
52
59
|
it 'should work' do
|
60
|
+
|
53
61
|
instance.call_id = "TEST_STRING"
|
54
62
|
expect(instance.call_id).to eq("TEST_STRING")
|
55
63
|
|
64
|
+
|
65
|
+
|
56
66
|
end
|
57
67
|
end
|
58
68
|
|
59
69
|
describe 'test attribute "from"' do
|
60
70
|
it 'should work' do
|
71
|
+
|
61
72
|
instance.from = "TEST_STRING"
|
62
73
|
expect(instance.from).to eq("TEST_STRING")
|
63
74
|
|
75
|
+
|
76
|
+
|
64
77
|
end
|
65
78
|
end
|
66
79
|
|
67
80
|
describe 'test attribute "to"' do
|
68
81
|
it 'should work' do
|
82
|
+
|
69
83
|
instance.to = "TEST_STRING"
|
70
84
|
expect(instance.to).to eq("TEST_STRING")
|
71
85
|
|
86
|
+
|
87
|
+
|
72
88
|
end
|
73
89
|
end
|
74
90
|
|
@@ -124,49 +140,67 @@ describe Freeclimb::RecordWebhook do
|
|
124
140
|
end
|
125
141
|
describe 'test attribute "conference_id"' do
|
126
142
|
it 'should work' do
|
143
|
+
|
127
144
|
instance.conference_id = "TEST_STRING"
|
128
145
|
expect(instance.conference_id).to eq("TEST_STRING")
|
129
146
|
|
147
|
+
|
148
|
+
|
130
149
|
end
|
131
150
|
end
|
132
151
|
|
133
152
|
describe 'test attribute "queue_id"' do
|
134
153
|
it 'should work' do
|
154
|
+
|
135
155
|
instance.queue_id = "TEST_STRING"
|
136
156
|
expect(instance.queue_id).to eq("TEST_STRING")
|
137
157
|
|
158
|
+
|
159
|
+
|
138
160
|
end
|
139
161
|
end
|
140
162
|
|
141
163
|
describe 'test attribute "recording_id"' do
|
142
164
|
it 'should work' do
|
165
|
+
|
143
166
|
instance.recording_id = "TEST_STRING"
|
144
167
|
expect(instance.recording_id).to eq("TEST_STRING")
|
145
168
|
|
169
|
+
|
170
|
+
|
146
171
|
end
|
147
172
|
end
|
148
173
|
|
149
174
|
describe 'test attribute "recording_url"' do
|
150
175
|
it 'should work' do
|
176
|
+
|
151
177
|
instance.recording_url = "TEST_STRING"
|
152
178
|
expect(instance.recording_url).to eq("TEST_STRING")
|
153
179
|
|
180
|
+
|
181
|
+
|
154
182
|
end
|
155
183
|
end
|
156
184
|
|
157
185
|
describe 'test attribute "recording_size"' do
|
158
186
|
it 'should work' do
|
187
|
+
|
159
188
|
instance.recording_size = "TEST_STRING"
|
160
189
|
expect(instance.recording_size).to eq("TEST_STRING")
|
161
190
|
|
191
|
+
|
192
|
+
|
162
193
|
end
|
163
194
|
end
|
164
195
|
|
165
196
|
describe 'test attribute "recording_format"' do
|
166
197
|
it 'should work' do
|
198
|
+
|
167
199
|
instance.recording_format = "TEST_STRING"
|
168
200
|
expect(instance.recording_format).to eq("TEST_STRING")
|
169
201
|
|
202
|
+
|
203
|
+
|
170
204
|
end
|
171
205
|
end
|
172
206
|
|
@@ -177,6 +211,8 @@ describe Freeclimb::RecordWebhook do
|
|
177
211
|
instance.recording_duration_sec = 1
|
178
212
|
expect(instance.recording_duration_sec).to eq(1)
|
179
213
|
|
214
|
+
|
215
|
+
|
180
216
|
end
|
181
217
|
end
|
182
218
|
|
@@ -201,9 +237,12 @@ describe Freeclimb::RecordWebhook do
|
|
201
237
|
end
|
202
238
|
describe 'test attribute "parent_call_id"' do
|
203
239
|
it 'should work' do
|
240
|
+
|
204
241
|
instance.parent_call_id = "TEST_STRING"
|
205
242
|
expect(instance.parent_call_id).to eq("TEST_STRING")
|
206
243
|
|
244
|
+
|
245
|
+
|
207
246
|
end
|
208
247
|
end
|
209
248
|
|
@@ -212,132 +251,272 @@ describe Freeclimb::RecordWebhook do
|
|
212
251
|
instance.privacy_mode = false
|
213
252
|
expect(instance.privacy_mode).to eq(false)
|
214
253
|
|
254
|
+
|
255
|
+
|
215
256
|
end
|
216
257
|
end
|
217
258
|
|
218
259
|
describe 'test method "initialize"' do
|
219
260
|
it 'properly initializes with values' do
|
220
261
|
expect { instance = Freeclimb::RecordWebhook.new(
|
262
|
+
|
221
263
|
request_type: "TS",
|
222
264
|
|
265
|
+
|
266
|
+
|
267
|
+
|
223
268
|
account_id: "TS",
|
224
269
|
|
270
|
+
|
271
|
+
|
272
|
+
|
225
273
|
call_id: "TS",
|
226
274
|
|
275
|
+
|
276
|
+
|
277
|
+
|
227
278
|
from: "TS",
|
228
279
|
|
280
|
+
|
281
|
+
|
282
|
+
|
229
283
|
to: "TS",
|
230
284
|
|
231
285
|
|
286
|
+
|
287
|
+
|
232
288
|
call_status: Freeclimb::CallStatus::QUEUED,
|
233
289
|
|
234
290
|
|
291
|
+
|
292
|
+
|
235
293
|
direction: Freeclimb::CallDirection::INBOUND,
|
236
294
|
|
295
|
+
|
296
|
+
|
297
|
+
|
237
298
|
conference_id: "TS",
|
238
299
|
|
300
|
+
|
301
|
+
|
302
|
+
|
239
303
|
queue_id: "TS",
|
240
304
|
|
305
|
+
|
306
|
+
|
307
|
+
|
241
308
|
recording_id: "TS",
|
242
309
|
|
310
|
+
|
311
|
+
|
312
|
+
|
243
313
|
recording_url: "TS",
|
244
314
|
|
315
|
+
|
316
|
+
|
317
|
+
|
245
318
|
recording_size: "TS",
|
246
319
|
|
320
|
+
|
321
|
+
|
322
|
+
|
247
323
|
recording_format: "TS",
|
248
324
|
|
325
|
+
|
326
|
+
|
249
327
|
recording_duration_sec: 1,
|
250
328
|
|
251
329
|
|
330
|
+
|
331
|
+
|
252
332
|
term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
253
333
|
|
334
|
+
|
335
|
+
|
336
|
+
|
254
337
|
parent_call_id: "TS",
|
255
338
|
|
339
|
+
|
340
|
+
|
256
341
|
privacy_mode: true,
|
257
342
|
|
343
|
+
|
344
|
+
|
258
345
|
)}.not_to raise_error()
|
259
346
|
end
|
260
347
|
it 'fails to initialize with input argument that is not a hash in Freeclimb::RecordWebhook' do
|
261
348
|
expect { instance = Freeclimb::RecordWebhook.new(
|
349
|
+
|
262
350
|
request_type: "TS",
|
263
351
|
|
352
|
+
|
353
|
+
|
354
|
+
|
264
355
|
account_id: "TS",
|
265
356
|
|
357
|
+
|
358
|
+
|
359
|
+
|
266
360
|
call_id: "TS",
|
267
361
|
|
362
|
+
|
363
|
+
|
364
|
+
|
268
365
|
from: "TS",
|
269
366
|
|
367
|
+
|
368
|
+
|
369
|
+
|
270
370
|
to: "TS",
|
271
371
|
|
272
372
|
|
373
|
+
|
374
|
+
|
273
375
|
call_status: Freeclimb::CallStatus::QUEUED,
|
274
376
|
|
275
377
|
|
378
|
+
|
379
|
+
|
276
380
|
direction: Freeclimb::CallDirection::INBOUND,
|
277
381
|
|
382
|
+
|
383
|
+
|
384
|
+
|
278
385
|
conference_id: "TS",
|
279
386
|
|
387
|
+
|
388
|
+
|
389
|
+
|
280
390
|
queue_id: "TS",
|
281
391
|
|
392
|
+
|
393
|
+
|
394
|
+
|
282
395
|
recording_id: "TS",
|
283
396
|
|
397
|
+
|
398
|
+
|
399
|
+
|
284
400
|
recording_url: "TS",
|
285
401
|
|
402
|
+
|
403
|
+
|
404
|
+
|
286
405
|
recording_size: "TS",
|
287
406
|
|
407
|
+
|
408
|
+
|
409
|
+
|
288
410
|
recording_format: "TS",
|
289
411
|
|
412
|
+
|
413
|
+
|
290
414
|
recording_duration_sec: 1,
|
291
415
|
|
292
416
|
|
417
|
+
|
418
|
+
|
293
419
|
term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
294
420
|
|
421
|
+
|
422
|
+
|
423
|
+
|
295
424
|
parent_call_id: "TS",
|
296
425
|
|
426
|
+
|
427
|
+
|
297
428
|
privacy_mode: true,
|
298
429
|
|
430
|
+
|
431
|
+
|
299
432
|
invalid_attribute: true
|
300
433
|
)}.to raise_error(ArgumentError)
|
301
434
|
end
|
302
435
|
it 'fails to initialize with invalid attribute' do
|
303
436
|
expect { instance = Freeclimb::RecordWebhook.new(
|
437
|
+
|
304
438
|
request_type: "TS",
|
305
439
|
|
440
|
+
|
441
|
+
|
442
|
+
|
306
443
|
account_id: "TS",
|
307
444
|
|
445
|
+
|
446
|
+
|
447
|
+
|
308
448
|
call_id: "TS",
|
309
449
|
|
450
|
+
|
451
|
+
|
452
|
+
|
310
453
|
from: "TS",
|
311
454
|
|
455
|
+
|
456
|
+
|
457
|
+
|
312
458
|
to: "TS",
|
313
459
|
|
314
460
|
|
461
|
+
|
462
|
+
|
315
463
|
call_status: Freeclimb::CallStatus::QUEUED,
|
316
464
|
|
317
465
|
|
466
|
+
|
467
|
+
|
318
468
|
direction: Freeclimb::CallDirection::INBOUND,
|
319
469
|
|
470
|
+
|
471
|
+
|
472
|
+
|
320
473
|
conference_id: "TS",
|
321
474
|
|
475
|
+
|
476
|
+
|
477
|
+
|
322
478
|
queue_id: "TS",
|
323
479
|
|
480
|
+
|
481
|
+
|
482
|
+
|
324
483
|
recording_id: "TS",
|
325
484
|
|
485
|
+
|
486
|
+
|
487
|
+
|
326
488
|
recording_url: "TS",
|
327
489
|
|
490
|
+
|
491
|
+
|
492
|
+
|
328
493
|
recording_size: "TS",
|
329
494
|
|
495
|
+
|
496
|
+
|
497
|
+
|
330
498
|
recording_format: "TS",
|
331
499
|
|
500
|
+
|
501
|
+
|
332
502
|
recording_duration_sec: 1,
|
333
503
|
|
334
504
|
|
505
|
+
|
506
|
+
|
335
507
|
term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
336
508
|
|
509
|
+
|
510
|
+
|
511
|
+
|
337
512
|
parent_call_id: "TS",
|
338
513
|
|
514
|
+
|
515
|
+
|
339
516
|
privacy_mode: true,
|
340
517
|
|
518
|
+
|
519
|
+
|
341
520
|
invalid_attribute: true
|
342
521
|
)}.to raise_error(ArgumentError)
|
343
522
|
end
|
@@ -346,43 +525,89 @@ describe Freeclimb::RecordWebhook do
|
|
346
525
|
describe 'test method "valid"' do
|
347
526
|
it 'checks if properties are valid' do
|
348
527
|
instance = Freeclimb::RecordWebhook.new(
|
528
|
+
|
349
529
|
request_type: "TS",
|
350
530
|
|
531
|
+
|
532
|
+
|
533
|
+
|
351
534
|
account_id: "TS",
|
352
535
|
|
536
|
+
|
537
|
+
|
538
|
+
|
353
539
|
call_id: "TS",
|
354
540
|
|
541
|
+
|
542
|
+
|
543
|
+
|
355
544
|
from: "TS",
|
356
545
|
|
546
|
+
|
547
|
+
|
548
|
+
|
357
549
|
to: "TS",
|
358
550
|
|
359
551
|
|
552
|
+
|
553
|
+
|
360
554
|
call_status: Freeclimb::CallStatus::QUEUED,
|
361
555
|
|
362
556
|
|
557
|
+
|
558
|
+
|
363
559
|
direction: Freeclimb::CallDirection::INBOUND,
|
364
560
|
|
561
|
+
|
562
|
+
|
563
|
+
|
365
564
|
conference_id: "TS",
|
366
565
|
|
566
|
+
|
567
|
+
|
568
|
+
|
367
569
|
queue_id: "TS",
|
368
570
|
|
571
|
+
|
572
|
+
|
573
|
+
|
369
574
|
recording_id: "TS",
|
370
575
|
|
576
|
+
|
577
|
+
|
578
|
+
|
371
579
|
recording_url: "TS",
|
372
580
|
|
581
|
+
|
582
|
+
|
583
|
+
|
373
584
|
recording_size: "TS",
|
374
585
|
|
586
|
+
|
587
|
+
|
588
|
+
|
375
589
|
recording_format: "TS",
|
376
590
|
|
591
|
+
|
592
|
+
|
377
593
|
recording_duration_sec: 1,
|
378
594
|
|
379
595
|
|
596
|
+
|
597
|
+
|
380
598
|
term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
381
599
|
|
600
|
+
|
601
|
+
|
602
|
+
|
382
603
|
parent_call_id: "TS",
|
383
604
|
|
605
|
+
|
606
|
+
|
384
607
|
privacy_mode: true,
|
385
608
|
|
609
|
+
|
610
|
+
|
386
611
|
)
|
387
612
|
expect(instance.valid?).to eq(true)
|
388
613
|
end
|
@@ -399,166 +624,366 @@ describe Freeclimb::RecordWebhook do
|
|
399
624
|
|
400
625
|
describe 'test method "eql?"' do
|
401
626
|
it 'checks if objects are equal' do
|
402
|
-
|
627
|
+
|
628
|
+
|
629
|
+
|
630
|
+
|
631
|
+
|
632
|
+
|
633
|
+
|
634
|
+
|
635
|
+
|
636
|
+
|
637
|
+
|
638
|
+
|
639
|
+
|
640
|
+
|
641
|
+
|
642
|
+
|
643
|
+
|
403
644
|
instance_1 = Freeclimb::RecordWebhook.new(
|
645
|
+
|
404
646
|
request_type: "TS",
|
405
647
|
|
406
|
-
account_id: "TS",
|
407
648
|
|
408
|
-
call_id: "TS",
|
409
649
|
|
410
|
-
from: "TS",
|
411
650
|
|
412
|
-
|
651
|
+
account_id: "TS",
|
413
652
|
|
414
653
|
|
415
|
-
call_status: Freeclimb::CallStatus::QUEUED,
|
416
654
|
|
417
655
|
|
418
|
-
|
656
|
+
call_id: "TS",
|
419
657
|
|
420
|
-
conference_id: "TS",
|
421
658
|
|
422
|
-
queue_id: "TS",
|
423
659
|
|
424
|
-
recording_id: "TS",
|
425
660
|
|
426
|
-
|
661
|
+
from: "TS",
|
662
|
+
|
663
|
+
|
664
|
+
|
665
|
+
|
666
|
+
to: "TS",
|
667
|
+
|
668
|
+
|
669
|
+
|
670
|
+
|
671
|
+
|
672
|
+
|
673
|
+
call_status: Freeclimb::CallStatus::QUEUED,
|
674
|
+
|
675
|
+
|
676
|
+
|
677
|
+
|
678
|
+
direction: Freeclimb::CallDirection::INBOUND,
|
679
|
+
|
680
|
+
|
681
|
+
conference_id: "TS",
|
682
|
+
|
683
|
+
|
684
|
+
|
685
|
+
|
686
|
+
queue_id: "TS",
|
687
|
+
|
688
|
+
|
689
|
+
|
690
|
+
|
691
|
+
recording_id: "TS",
|
692
|
+
|
693
|
+
|
694
|
+
|
695
|
+
|
696
|
+
recording_url: "TS",
|
697
|
+
|
698
|
+
|
699
|
+
|
700
|
+
|
701
|
+
recording_size: "TS",
|
702
|
+
|
703
|
+
|
427
704
|
|
428
|
-
recording_size: "TS",
|
429
705
|
|
430
706
|
recording_format: "TS",
|
431
707
|
|
708
|
+
|
709
|
+
|
432
710
|
recording_duration_sec: 1,
|
433
711
|
|
434
712
|
|
713
|
+
|
714
|
+
|
715
|
+
|
716
|
+
|
435
717
|
term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
436
718
|
|
719
|
+
|
437
720
|
parent_call_id: "TS",
|
438
721
|
|
722
|
+
|
723
|
+
|
439
724
|
privacy_mode: true,
|
440
725
|
|
726
|
+
|
727
|
+
|
441
728
|
)
|
442
729
|
instance_2 = Freeclimb::RecordWebhook.new(
|
730
|
+
|
443
731
|
request_type: "TS",
|
444
732
|
|
733
|
+
|
734
|
+
|
735
|
+
|
445
736
|
account_id: "TS",
|
446
737
|
|
738
|
+
|
739
|
+
|
740
|
+
|
447
741
|
call_id: "TS",
|
448
742
|
|
743
|
+
|
744
|
+
|
745
|
+
|
449
746
|
from: "TS",
|
450
747
|
|
748
|
+
|
749
|
+
|
750
|
+
|
451
751
|
to: "TS",
|
452
752
|
|
453
753
|
|
754
|
+
|
755
|
+
|
756
|
+
|
757
|
+
|
454
758
|
call_status: Freeclimb::CallStatus::QUEUED,
|
455
759
|
|
456
760
|
|
761
|
+
|
762
|
+
|
457
763
|
direction: Freeclimb::CallDirection::INBOUND,
|
458
764
|
|
765
|
+
|
459
766
|
conference_id: "TS",
|
460
767
|
|
768
|
+
|
769
|
+
|
770
|
+
|
461
771
|
queue_id: "TS",
|
462
772
|
|
773
|
+
|
774
|
+
|
775
|
+
|
463
776
|
recording_id: "TS",
|
464
777
|
|
778
|
+
|
779
|
+
|
780
|
+
|
465
781
|
recording_url: "TS",
|
466
782
|
|
783
|
+
|
784
|
+
|
785
|
+
|
467
786
|
recording_size: "TS",
|
468
787
|
|
788
|
+
|
789
|
+
|
790
|
+
|
469
791
|
recording_format: "TS",
|
470
792
|
|
793
|
+
|
794
|
+
|
795
|
+
|
796
|
+
|
471
797
|
recording_duration_sec: 1,
|
472
798
|
|
473
799
|
|
800
|
+
|
801
|
+
|
474
802
|
term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
475
803
|
|
804
|
+
|
476
805
|
parent_call_id: "TS",
|
477
806
|
|
807
|
+
|
808
|
+
|
478
809
|
privacy_mode: true,
|
479
810
|
|
811
|
+
|
812
|
+
|
480
813
|
)
|
481
814
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
482
815
|
end
|
483
816
|
|
484
817
|
it 'checks if objects are not equal' do
|
485
818
|
instance_1 = Freeclimb::RecordWebhook.new(
|
819
|
+
|
486
820
|
request_type: "TS",
|
487
821
|
|
822
|
+
|
823
|
+
|
824
|
+
|
488
825
|
account_id: "TS",
|
489
826
|
|
827
|
+
|
828
|
+
|
829
|
+
|
490
830
|
call_id: "TS",
|
491
831
|
|
832
|
+
|
833
|
+
|
834
|
+
|
492
835
|
from: "TS",
|
493
836
|
|
837
|
+
|
838
|
+
|
839
|
+
|
494
840
|
to: "TS",
|
495
841
|
|
496
842
|
|
843
|
+
|
844
|
+
|
845
|
+
|
846
|
+
|
497
847
|
call_status: Freeclimb::CallStatus::QUEUED,
|
498
848
|
|
499
849
|
|
850
|
+
|
851
|
+
|
500
852
|
direction: Freeclimb::CallDirection::INBOUND,
|
501
853
|
|
854
|
+
|
502
855
|
conference_id: "TS",
|
503
856
|
|
857
|
+
|
858
|
+
|
859
|
+
|
504
860
|
queue_id: "TS",
|
505
861
|
|
862
|
+
|
863
|
+
|
864
|
+
|
506
865
|
recording_id: "TS",
|
507
866
|
|
867
|
+
|
868
|
+
|
869
|
+
|
508
870
|
recording_url: "TS",
|
509
871
|
|
872
|
+
|
873
|
+
|
874
|
+
|
510
875
|
recording_size: "TS",
|
511
876
|
|
877
|
+
|
878
|
+
|
879
|
+
|
512
880
|
recording_format: "TS",
|
513
881
|
|
882
|
+
|
883
|
+
|
514
884
|
recording_duration_sec: 2,
|
515
885
|
|
516
886
|
|
887
|
+
|
888
|
+
|
889
|
+
|
890
|
+
|
517
891
|
term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
518
892
|
|
893
|
+
|
519
894
|
parent_call_id: "TS",
|
520
895
|
|
896
|
+
|
897
|
+
|
521
898
|
privacy_mode: true,
|
522
899
|
|
900
|
+
|
901
|
+
|
523
902
|
)
|
524
903
|
instance_2 = Freeclimb::RecordWebhook.new(
|
904
|
+
|
525
905
|
request_type: "ST",
|
526
906
|
|
907
|
+
|
908
|
+
|
909
|
+
|
527
910
|
account_id: "ST",
|
528
911
|
|
912
|
+
|
913
|
+
|
914
|
+
|
529
915
|
call_id: "ST",
|
530
916
|
|
917
|
+
|
918
|
+
|
919
|
+
|
531
920
|
from: "ST",
|
532
921
|
|
922
|
+
|
923
|
+
|
924
|
+
|
533
925
|
to: "ST",
|
534
926
|
|
535
927
|
|
928
|
+
|
929
|
+
|
930
|
+
|
931
|
+
|
536
932
|
call_status: nil,
|
537
933
|
|
538
934
|
|
935
|
+
|
936
|
+
|
539
937
|
direction: nil,
|
540
938
|
|
939
|
+
|
541
940
|
conference_id: "ST",
|
542
941
|
|
942
|
+
|
943
|
+
|
944
|
+
|
543
945
|
queue_id: "ST",
|
544
946
|
|
947
|
+
|
948
|
+
|
949
|
+
|
545
950
|
recording_id: "ST",
|
546
951
|
|
952
|
+
|
953
|
+
|
954
|
+
|
547
955
|
recording_url: "ST",
|
548
956
|
|
957
|
+
|
958
|
+
|
959
|
+
|
549
960
|
recording_size: "ST",
|
550
961
|
|
962
|
+
|
963
|
+
|
964
|
+
|
551
965
|
recording_format: "ST",
|
552
966
|
|
967
|
+
|
968
|
+
|
553
969
|
recording_duration_sec: 1,
|
554
970
|
|
555
971
|
|
972
|
+
|
973
|
+
|
974
|
+
|
975
|
+
|
556
976
|
term_reason: nil,
|
557
977
|
|
978
|
+
|
558
979
|
parent_call_id: "ST",
|
559
980
|
|
981
|
+
|
982
|
+
|
560
983
|
privacy_mode: false,
|
561
984
|
|
985
|
+
|
986
|
+
|
562
987
|
)
|
563
988
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
564
989
|
end
|
@@ -567,43 +992,89 @@ describe Freeclimb::RecordWebhook do
|
|
567
992
|
describe 'test method "hash"' do
|
568
993
|
it 'calculates hash code' do
|
569
994
|
instance = Freeclimb::RecordWebhook.new(
|
995
|
+
|
570
996
|
request_type: "TS",
|
571
997
|
|
998
|
+
|
999
|
+
|
1000
|
+
|
572
1001
|
account_id: "TS",
|
573
1002
|
|
1003
|
+
|
1004
|
+
|
1005
|
+
|
574
1006
|
call_id: "TS",
|
575
1007
|
|
1008
|
+
|
1009
|
+
|
1010
|
+
|
576
1011
|
from: "TS",
|
577
1012
|
|
1013
|
+
|
1014
|
+
|
1015
|
+
|
578
1016
|
to: "TS",
|
579
1017
|
|
580
1018
|
|
1019
|
+
|
1020
|
+
|
581
1021
|
call_status: Freeclimb::CallStatus::QUEUED,
|
582
1022
|
|
583
1023
|
|
1024
|
+
|
1025
|
+
|
584
1026
|
direction: Freeclimb::CallDirection::INBOUND,
|
585
1027
|
|
1028
|
+
|
1029
|
+
|
1030
|
+
|
586
1031
|
conference_id: "TS",
|
587
1032
|
|
1033
|
+
|
1034
|
+
|
1035
|
+
|
588
1036
|
queue_id: "TS",
|
589
1037
|
|
1038
|
+
|
1039
|
+
|
1040
|
+
|
590
1041
|
recording_id: "TS",
|
591
1042
|
|
1043
|
+
|
1044
|
+
|
1045
|
+
|
592
1046
|
recording_url: "TS",
|
593
1047
|
|
1048
|
+
|
1049
|
+
|
1050
|
+
|
594
1051
|
recording_size: "TS",
|
595
1052
|
|
1053
|
+
|
1054
|
+
|
1055
|
+
|
596
1056
|
recording_format: "TS",
|
597
1057
|
|
1058
|
+
|
1059
|
+
|
598
1060
|
recording_duration_sec: 1,
|
599
1061
|
|
600
1062
|
|
1063
|
+
|
1064
|
+
|
601
1065
|
term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
602
1066
|
|
1067
|
+
|
1068
|
+
|
1069
|
+
|
603
1070
|
parent_call_id: "TS",
|
604
1071
|
|
1072
|
+
|
1073
|
+
|
605
1074
|
privacy_mode: true,
|
606
1075
|
|
1076
|
+
|
1077
|
+
|
607
1078
|
)
|
608
1079
|
expect(instance.hash).to be_a_kind_of(Integer)
|
609
1080
|
end
|
@@ -612,82 +1083,174 @@ describe Freeclimb::RecordWebhook do
|
|
612
1083
|
describe 'test method "build_from_hash"' do
|
613
1084
|
it 'builds equivalent model from hash code' do
|
614
1085
|
instance_1 = Freeclimb::RecordWebhook.new(
|
1086
|
+
|
615
1087
|
request_type: "TS",
|
616
1088
|
|
1089
|
+
|
1090
|
+
|
1091
|
+
|
617
1092
|
account_id: "TS",
|
618
1093
|
|
1094
|
+
|
1095
|
+
|
1096
|
+
|
619
1097
|
call_id: "TS",
|
620
1098
|
|
1099
|
+
|
1100
|
+
|
1101
|
+
|
621
1102
|
from: "TS",
|
622
1103
|
|
1104
|
+
|
1105
|
+
|
1106
|
+
|
623
1107
|
to: "TS",
|
624
1108
|
|
625
1109
|
|
1110
|
+
|
1111
|
+
|
626
1112
|
call_status: Freeclimb::CallStatus::QUEUED,
|
627
1113
|
|
628
1114
|
|
1115
|
+
|
1116
|
+
|
629
1117
|
direction: Freeclimb::CallDirection::INBOUND,
|
630
1118
|
|
1119
|
+
|
1120
|
+
|
1121
|
+
|
631
1122
|
conference_id: "TS",
|
632
1123
|
|
1124
|
+
|
1125
|
+
|
1126
|
+
|
633
1127
|
queue_id: "TS",
|
634
1128
|
|
1129
|
+
|
1130
|
+
|
1131
|
+
|
635
1132
|
recording_id: "TS",
|
636
1133
|
|
1134
|
+
|
1135
|
+
|
1136
|
+
|
637
1137
|
recording_url: "TS",
|
638
1138
|
|
1139
|
+
|
1140
|
+
|
1141
|
+
|
639
1142
|
recording_size: "TS",
|
640
1143
|
|
1144
|
+
|
1145
|
+
|
1146
|
+
|
641
1147
|
recording_format: "TS",
|
642
1148
|
|
1149
|
+
|
1150
|
+
|
643
1151
|
recording_duration_sec: 1,
|
644
1152
|
|
645
1153
|
|
1154
|
+
|
1155
|
+
|
646
1156
|
term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
647
1157
|
|
1158
|
+
|
1159
|
+
|
1160
|
+
|
648
1161
|
parent_call_id: "TS",
|
649
1162
|
|
1163
|
+
|
1164
|
+
|
650
1165
|
privacy_mode: true,
|
651
1166
|
|
1167
|
+
|
1168
|
+
|
652
1169
|
)
|
653
1170
|
instance_2 = Freeclimb::RecordWebhook.new(
|
1171
|
+
|
654
1172
|
request_type: "TS",
|
655
1173
|
|
1174
|
+
|
1175
|
+
|
1176
|
+
|
656
1177
|
account_id: "TS",
|
657
1178
|
|
1179
|
+
|
1180
|
+
|
1181
|
+
|
658
1182
|
call_id: "TS",
|
659
1183
|
|
1184
|
+
|
1185
|
+
|
1186
|
+
|
660
1187
|
from: "TS",
|
661
1188
|
|
1189
|
+
|
1190
|
+
|
1191
|
+
|
662
1192
|
to: "TS",
|
663
1193
|
|
664
1194
|
|
1195
|
+
|
1196
|
+
|
665
1197
|
call_status: Freeclimb::CallStatus::QUEUED,
|
666
1198
|
|
667
1199
|
|
1200
|
+
|
1201
|
+
|
668
1202
|
direction: Freeclimb::CallDirection::INBOUND,
|
669
1203
|
|
1204
|
+
|
1205
|
+
|
1206
|
+
|
670
1207
|
conference_id: "TS",
|
671
1208
|
|
1209
|
+
|
1210
|
+
|
1211
|
+
|
672
1212
|
queue_id: "TS",
|
673
1213
|
|
1214
|
+
|
1215
|
+
|
1216
|
+
|
674
1217
|
recording_id: "TS",
|
675
1218
|
|
1219
|
+
|
1220
|
+
|
1221
|
+
|
676
1222
|
recording_url: "TS",
|
677
1223
|
|
1224
|
+
|
1225
|
+
|
1226
|
+
|
678
1227
|
recording_size: "TS",
|
679
1228
|
|
1229
|
+
|
1230
|
+
|
1231
|
+
|
680
1232
|
recording_format: "TS",
|
681
1233
|
|
1234
|
+
|
1235
|
+
|
682
1236
|
recording_duration_sec: 1,
|
683
1237
|
|
684
1238
|
|
1239
|
+
|
1240
|
+
|
685
1241
|
term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
686
1242
|
|
1243
|
+
|
1244
|
+
|
1245
|
+
|
687
1246
|
parent_call_id: "TS",
|
688
1247
|
|
1248
|
+
|
1249
|
+
|
689
1250
|
privacy_mode: true,
|
690
1251
|
|
1252
|
+
|
1253
|
+
|
691
1254
|
)
|
692
1255
|
|
693
1256
|
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
@@ -696,83 +1259,163 @@ describe Freeclimb::RecordWebhook do
|
|
696
1259
|
|
697
1260
|
describe 'test method "_deserialize"' do
|
698
1261
|
instance = Freeclimb::RecordWebhook.new(
|
1262
|
+
|
699
1263
|
request_type: "TS",
|
700
1264
|
|
1265
|
+
|
1266
|
+
|
1267
|
+
|
701
1268
|
account_id: "TS",
|
702
1269
|
|
1270
|
+
|
1271
|
+
|
1272
|
+
|
703
1273
|
call_id: "TS",
|
704
1274
|
|
1275
|
+
|
1276
|
+
|
1277
|
+
|
705
1278
|
from: "TS",
|
706
1279
|
|
1280
|
+
|
1281
|
+
|
1282
|
+
|
707
1283
|
to: "TS",
|
708
1284
|
|
709
1285
|
|
1286
|
+
|
1287
|
+
|
710
1288
|
call_status: Freeclimb::CallStatus::QUEUED,
|
711
1289
|
|
712
1290
|
|
1291
|
+
|
1292
|
+
|
713
1293
|
direction: Freeclimb::CallDirection::INBOUND,
|
714
1294
|
|
1295
|
+
|
1296
|
+
|
1297
|
+
|
715
1298
|
conference_id: "TS",
|
716
1299
|
|
1300
|
+
|
1301
|
+
|
1302
|
+
|
717
1303
|
queue_id: "TS",
|
718
1304
|
|
1305
|
+
|
1306
|
+
|
1307
|
+
|
719
1308
|
recording_id: "TS",
|
720
1309
|
|
1310
|
+
|
1311
|
+
|
1312
|
+
|
721
1313
|
recording_url: "TS",
|
722
1314
|
|
1315
|
+
|
1316
|
+
|
1317
|
+
|
723
1318
|
recording_size: "TS",
|
724
1319
|
|
1320
|
+
|
1321
|
+
|
1322
|
+
|
725
1323
|
recording_format: "TS",
|
726
1324
|
|
1325
|
+
|
1326
|
+
|
727
1327
|
recording_duration_sec: 1,
|
728
1328
|
|
729
1329
|
|
1330
|
+
|
1331
|
+
|
730
1332
|
term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
731
1333
|
|
1334
|
+
|
1335
|
+
|
1336
|
+
|
732
1337
|
parent_call_id: "TS",
|
733
1338
|
|
1339
|
+
|
1340
|
+
|
734
1341
|
privacy_mode: true,
|
735
1342
|
|
1343
|
+
|
1344
|
+
|
736
1345
|
)
|
737
1346
|
it 'deserializes the data of request_type' do
|
738
1347
|
expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String)
|
739
1348
|
end
|
1349
|
+
|
1350
|
+
|
740
1351
|
it 'deserializes the data of account_id' do
|
741
1352
|
expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
|
742
1353
|
end
|
1354
|
+
|
1355
|
+
|
743
1356
|
it 'deserializes the data of call_id' do
|
744
1357
|
expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String)
|
745
1358
|
end
|
1359
|
+
|
1360
|
+
|
746
1361
|
it 'deserializes the data of from' do
|
747
1362
|
expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String)
|
748
1363
|
end
|
1364
|
+
|
1365
|
+
|
749
1366
|
it 'deserializes the data of to' do
|
750
1367
|
expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String)
|
751
1368
|
end
|
1369
|
+
|
1370
|
+
|
1371
|
+
|
1372
|
+
|
1373
|
+
|
1374
|
+
|
752
1375
|
it 'deserializes the data of conference_id' do
|
753
1376
|
expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String)
|
754
1377
|
end
|
1378
|
+
|
1379
|
+
|
755
1380
|
it 'deserializes the data of queue_id' do
|
756
1381
|
expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String)
|
757
1382
|
end
|
1383
|
+
|
1384
|
+
|
758
1385
|
it 'deserializes the data of recording_id' do
|
759
1386
|
expect(instance._deserialize("String", instance.recording_id)).to be_a_kind_of(String)
|
760
1387
|
end
|
1388
|
+
|
1389
|
+
|
761
1390
|
it 'deserializes the data of recording_url' do
|
762
1391
|
expect(instance._deserialize("String", instance.recording_url)).to be_a_kind_of(String)
|
763
1392
|
end
|
1393
|
+
|
1394
|
+
|
764
1395
|
it 'deserializes the data of recording_size' do
|
765
1396
|
expect(instance._deserialize("String", instance.recording_size)).to be_a_kind_of(String)
|
766
1397
|
end
|
1398
|
+
|
1399
|
+
|
767
1400
|
it 'deserializes the data of recording_format' do
|
768
1401
|
expect(instance._deserialize("String", instance.recording_format)).to be_a_kind_of(String)
|
769
1402
|
end
|
1403
|
+
|
1404
|
+
|
770
1405
|
it 'deserializes the data of recording_duration_sec' do
|
771
1406
|
expect(instance._deserialize("Integer", instance.recording_duration_sec)).to be_a_kind_of(Integer)
|
772
1407
|
end
|
1408
|
+
|
1409
|
+
|
1410
|
+
|
1411
|
+
|
773
1412
|
it 'deserializes the data of parent_call_id' do
|
774
1413
|
expect(instance._deserialize("String", instance.parent_call_id)).to be_a_kind_of(String)
|
775
1414
|
end
|
1415
|
+
|
1416
|
+
|
1417
|
+
|
1418
|
+
|
776
1419
|
it 'deserializes the data of privacy_mode' do
|
777
1420
|
expect(instance._deserialize("Boolean", instance.privacy_mode)).to be_a_kind_of(TrueClass)
|
778
1421
|
end
|
@@ -781,43 +1424,89 @@ describe Freeclimb::RecordWebhook do
|
|
781
1424
|
describe 'test method "to_s"' do
|
782
1425
|
it 'returns the string representation of the object' do
|
783
1426
|
instance = Freeclimb::RecordWebhook.new(
|
1427
|
+
|
784
1428
|
request_type: "TS",
|
785
1429
|
|
1430
|
+
|
1431
|
+
|
1432
|
+
|
786
1433
|
account_id: "TS",
|
787
1434
|
|
1435
|
+
|
1436
|
+
|
1437
|
+
|
788
1438
|
call_id: "TS",
|
789
1439
|
|
1440
|
+
|
1441
|
+
|
1442
|
+
|
790
1443
|
from: "TS",
|
791
1444
|
|
1445
|
+
|
1446
|
+
|
1447
|
+
|
792
1448
|
to: "TS",
|
793
1449
|
|
794
1450
|
|
1451
|
+
|
1452
|
+
|
795
1453
|
call_status: Freeclimb::CallStatus::QUEUED,
|
796
1454
|
|
797
1455
|
|
1456
|
+
|
1457
|
+
|
798
1458
|
direction: Freeclimb::CallDirection::INBOUND,
|
799
1459
|
|
1460
|
+
|
1461
|
+
|
1462
|
+
|
800
1463
|
conference_id: "TS",
|
801
1464
|
|
1465
|
+
|
1466
|
+
|
1467
|
+
|
802
1468
|
queue_id: "TS",
|
803
1469
|
|
1470
|
+
|
1471
|
+
|
1472
|
+
|
804
1473
|
recording_id: "TS",
|
805
1474
|
|
1475
|
+
|
1476
|
+
|
1477
|
+
|
806
1478
|
recording_url: "TS",
|
807
1479
|
|
1480
|
+
|
1481
|
+
|
1482
|
+
|
808
1483
|
recording_size: "TS",
|
809
1484
|
|
1485
|
+
|
1486
|
+
|
1487
|
+
|
810
1488
|
recording_format: "TS",
|
811
1489
|
|
1490
|
+
|
1491
|
+
|
812
1492
|
recording_duration_sec: 1,
|
813
1493
|
|
814
1494
|
|
1495
|
+
|
1496
|
+
|
815
1497
|
term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
816
1498
|
|
1499
|
+
|
1500
|
+
|
1501
|
+
|
817
1502
|
parent_call_id: "TS",
|
818
1503
|
|
1504
|
+
|
1505
|
+
|
819
1506
|
privacy_mode: true,
|
820
1507
|
|
1508
|
+
|
1509
|
+
|
821
1510
|
)
|
822
1511
|
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
823
1512
|
end
|
@@ -826,125 +1515,279 @@ describe Freeclimb::RecordWebhook do
|
|
826
1515
|
describe 'test method "to_hash"' do
|
827
1516
|
it 'returns the object in the form of hash' do
|
828
1517
|
instance = Freeclimb::RecordWebhook.new(
|
1518
|
+
|
829
1519
|
request_type: "TS",
|
830
1520
|
|
1521
|
+
|
1522
|
+
|
1523
|
+
|
831
1524
|
account_id: "TS",
|
832
1525
|
|
1526
|
+
|
1527
|
+
|
1528
|
+
|
833
1529
|
call_id: "TS",
|
834
1530
|
|
1531
|
+
|
1532
|
+
|
1533
|
+
|
835
1534
|
from: "TS",
|
836
1535
|
|
1536
|
+
|
1537
|
+
|
1538
|
+
|
837
1539
|
to: "TS",
|
838
1540
|
|
839
1541
|
|
1542
|
+
|
1543
|
+
|
840
1544
|
call_status: Freeclimb::CallStatus::QUEUED,
|
841
1545
|
|
842
1546
|
|
1547
|
+
|
1548
|
+
|
843
1549
|
direction: Freeclimb::CallDirection::INBOUND,
|
844
1550
|
|
1551
|
+
|
1552
|
+
|
1553
|
+
|
845
1554
|
conference_id: "TS",
|
846
1555
|
|
1556
|
+
|
1557
|
+
|
1558
|
+
|
847
1559
|
queue_id: "TS",
|
848
1560
|
|
1561
|
+
|
1562
|
+
|
1563
|
+
|
849
1564
|
recording_id: "TS",
|
850
1565
|
|
1566
|
+
|
1567
|
+
|
1568
|
+
|
851
1569
|
recording_url: "TS",
|
852
1570
|
|
1571
|
+
|
1572
|
+
|
1573
|
+
|
853
1574
|
recording_size: "TS",
|
854
1575
|
|
1576
|
+
|
1577
|
+
|
1578
|
+
|
855
1579
|
recording_format: "TS",
|
856
1580
|
|
1581
|
+
|
1582
|
+
|
857
1583
|
recording_duration_sec: 1,
|
858
1584
|
|
859
1585
|
|
1586
|
+
|
1587
|
+
|
860
1588
|
term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
861
1589
|
|
1590
|
+
|
1591
|
+
|
1592
|
+
|
862
1593
|
parent_call_id: "TS",
|
863
1594
|
|
1595
|
+
|
1596
|
+
|
864
1597
|
privacy_mode: true,
|
865
1598
|
|
1599
|
+
|
1600
|
+
|
866
1601
|
)
|
867
1602
|
expect(instance.to_hash).to be_a_kind_of(Hash)
|
868
1603
|
end
|
869
1604
|
it 'creates equal hash for two equal objects' do
|
870
|
-
|
1605
|
+
|
1606
|
+
|
1607
|
+
|
1608
|
+
|
1609
|
+
|
1610
|
+
|
1611
|
+
|
1612
|
+
|
1613
|
+
|
1614
|
+
|
1615
|
+
|
1616
|
+
|
1617
|
+
|
1618
|
+
|
1619
|
+
|
1620
|
+
|
1621
|
+
|
871
1622
|
instance_1 = Freeclimb::RecordWebhook.new(
|
1623
|
+
|
872
1624
|
request_type: "TS",
|
873
1625
|
|
1626
|
+
|
1627
|
+
|
1628
|
+
|
874
1629
|
account_id: "TS",
|
875
1630
|
|
1631
|
+
|
1632
|
+
|
1633
|
+
|
876
1634
|
call_id: "TS",
|
877
1635
|
|
1636
|
+
|
1637
|
+
|
1638
|
+
|
878
1639
|
from: "TS",
|
879
1640
|
|
1641
|
+
|
1642
|
+
|
1643
|
+
|
880
1644
|
to: "TS",
|
881
1645
|
|
882
1646
|
|
1647
|
+
|
1648
|
+
|
883
1649
|
call_status: Freeclimb::CallStatus::QUEUED,
|
884
1650
|
|
885
1651
|
|
1652
|
+
|
1653
|
+
|
886
1654
|
direction: Freeclimb::CallDirection::INBOUND,
|
887
1655
|
|
1656
|
+
|
1657
|
+
|
1658
|
+
|
888
1659
|
conference_id: "TS",
|
889
1660
|
|
1661
|
+
|
1662
|
+
|
1663
|
+
|
890
1664
|
queue_id: "TS",
|
891
1665
|
|
1666
|
+
|
1667
|
+
|
1668
|
+
|
892
1669
|
recording_id: "TS",
|
893
1670
|
|
1671
|
+
|
1672
|
+
|
1673
|
+
|
894
1674
|
recording_url: "TS",
|
895
1675
|
|
1676
|
+
|
1677
|
+
|
1678
|
+
|
896
1679
|
recording_size: "TS",
|
897
1680
|
|
1681
|
+
|
1682
|
+
|
1683
|
+
|
898
1684
|
recording_format: "TS",
|
899
1685
|
|
1686
|
+
|
1687
|
+
|
900
1688
|
recording_duration_sec: 1,
|
901
1689
|
|
902
1690
|
|
1691
|
+
|
1692
|
+
|
903
1693
|
term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
904
1694
|
|
1695
|
+
|
1696
|
+
|
1697
|
+
|
905
1698
|
parent_call_id: "TS",
|
906
1699
|
|
1700
|
+
|
1701
|
+
|
907
1702
|
privacy_mode: true,
|
908
1703
|
|
1704
|
+
|
1705
|
+
|
909
1706
|
)
|
910
1707
|
instance_2 = Freeclimb::RecordWebhook.new(
|
1708
|
+
|
911
1709
|
request_type: "TS",
|
912
1710
|
|
1711
|
+
|
1712
|
+
|
1713
|
+
|
913
1714
|
account_id: "TS",
|
914
1715
|
|
1716
|
+
|
1717
|
+
|
1718
|
+
|
915
1719
|
call_id: "TS",
|
916
1720
|
|
1721
|
+
|
1722
|
+
|
1723
|
+
|
917
1724
|
from: "TS",
|
918
1725
|
|
1726
|
+
|
1727
|
+
|
1728
|
+
|
919
1729
|
to: "TS",
|
920
1730
|
|
921
1731
|
|
1732
|
+
|
1733
|
+
|
922
1734
|
call_status: Freeclimb::CallStatus::QUEUED,
|
923
1735
|
|
924
1736
|
|
1737
|
+
|
1738
|
+
|
925
1739
|
direction: Freeclimb::CallDirection::INBOUND,
|
926
1740
|
|
1741
|
+
|
1742
|
+
|
1743
|
+
|
927
1744
|
conference_id: "TS",
|
928
1745
|
|
1746
|
+
|
1747
|
+
|
1748
|
+
|
929
1749
|
queue_id: "TS",
|
930
1750
|
|
1751
|
+
|
1752
|
+
|
1753
|
+
|
931
1754
|
recording_id: "TS",
|
932
1755
|
|
1756
|
+
|
1757
|
+
|
1758
|
+
|
933
1759
|
recording_url: "TS",
|
934
1760
|
|
1761
|
+
|
1762
|
+
|
1763
|
+
|
935
1764
|
recording_size: "TS",
|
936
1765
|
|
1766
|
+
|
1767
|
+
|
1768
|
+
|
937
1769
|
recording_format: "TS",
|
938
1770
|
|
1771
|
+
|
1772
|
+
|
939
1773
|
recording_duration_sec: 1,
|
940
1774
|
|
941
1775
|
|
1776
|
+
|
1777
|
+
|
942
1778
|
term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
943
1779
|
|
1780
|
+
|
1781
|
+
|
1782
|
+
|
944
1783
|
parent_call_id: "TS",
|
945
1784
|
|
1785
|
+
|
1786
|
+
|
946
1787
|
privacy_mode: true,
|
947
1788
|
|
1789
|
+
|
1790
|
+
|
948
1791
|
)
|
949
1792
|
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
950
1793
|
end
|
@@ -952,18 +1795,23 @@ describe Freeclimb::RecordWebhook do
|
|
952
1795
|
|
953
1796
|
describe 'test method "_to_hash"' do
|
954
1797
|
instance = Freeclimb::RecordWebhook.new(
|
1798
|
+
|
955
1799
|
request_type: "TS",
|
956
1800
|
|
957
1801
|
|
1802
|
+
|
958
1803
|
account_id: "TS",
|
959
1804
|
|
960
1805
|
|
1806
|
+
|
961
1807
|
call_id: "TS",
|
962
1808
|
|
963
1809
|
|
1810
|
+
|
964
1811
|
from: "TS",
|
965
1812
|
|
966
1813
|
|
1814
|
+
|
967
1815
|
to: "TS",
|
968
1816
|
|
969
1817
|
|
@@ -975,21 +1823,27 @@ describe Freeclimb::RecordWebhook do
|
|
975
1823
|
direction: Freeclimb::CallDirection::INBOUND,
|
976
1824
|
|
977
1825
|
|
1826
|
+
|
978
1827
|
conference_id: "TS",
|
979
1828
|
|
980
1829
|
|
1830
|
+
|
981
1831
|
queue_id: "TS",
|
982
1832
|
|
983
1833
|
|
1834
|
+
|
984
1835
|
recording_id: "TS",
|
985
1836
|
|
986
1837
|
|
1838
|
+
|
987
1839
|
recording_url: "TS",
|
988
1840
|
|
989
1841
|
|
1842
|
+
|
990
1843
|
recording_size: "TS",
|
991
1844
|
|
992
1845
|
|
1846
|
+
|
993
1847
|
recording_format: "TS",
|
994
1848
|
|
995
1849
|
|
@@ -1000,6 +1854,7 @@ describe Freeclimb::RecordWebhook do
|
|
1000
1854
|
term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
1001
1855
|
|
1002
1856
|
|
1857
|
+
|
1003
1858
|
parent_call_id: "TS",
|
1004
1859
|
|
1005
1860
|
|