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::CallStatusWebhook
|
18
19
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
@@ -34,41 +35,56 @@ describe Freeclimb::CallStatusWebhook 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 "call_id"' do
|
44
48
|
it 'should work' do
|
49
|
+
|
45
50
|
instance.call_id = "TEST_STRING"
|
46
51
|
expect(instance.call_id).to eq("TEST_STRING")
|
47
52
|
|
53
|
+
|
54
|
+
|
48
55
|
end
|
49
56
|
end
|
50
57
|
|
51
58
|
describe 'test attribute "account_id"' do
|
52
59
|
it 'should work' do
|
60
|
+
|
53
61
|
instance.account_id = "TEST_STRING"
|
54
62
|
expect(instance.account_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
|
|
@@ -219,101 +235,188 @@ describe Freeclimb::CallStatusWebhook do
|
|
219
235
|
end
|
220
236
|
describe 'test attribute "conference_id"' do
|
221
237
|
it 'should work' do
|
238
|
+
|
222
239
|
instance.conference_id = "TEST_STRING"
|
223
240
|
expect(instance.conference_id).to eq("TEST_STRING")
|
224
241
|
|
242
|
+
|
243
|
+
|
225
244
|
end
|
226
245
|
end
|
227
246
|
|
228
247
|
describe 'test attribute "queue_id"' do
|
229
248
|
it 'should work' do
|
249
|
+
|
230
250
|
instance.queue_id = "TEST_STRING"
|
231
251
|
expect(instance.queue_id).to eq("TEST_STRING")
|
232
252
|
|
253
|
+
|
254
|
+
|
233
255
|
end
|
234
256
|
end
|
235
257
|
|
236
258
|
describe 'test method "initialize"' do
|
237
259
|
it 'properly initializes with values' do
|
238
260
|
expect { instance = Freeclimb::CallStatusWebhook.new(
|
261
|
+
|
239
262
|
request_type: "TS",
|
240
263
|
|
264
|
+
|
265
|
+
|
266
|
+
|
241
267
|
call_id: "TS",
|
242
268
|
|
269
|
+
|
270
|
+
|
271
|
+
|
243
272
|
account_id: "TS",
|
244
273
|
|
274
|
+
|
275
|
+
|
276
|
+
|
245
277
|
from: "TS",
|
246
278
|
|
279
|
+
|
280
|
+
|
281
|
+
|
247
282
|
to: "TS",
|
248
283
|
|
249
284
|
|
285
|
+
|
286
|
+
|
250
287
|
call_status: Freeclimb::CallStatus::QUEUED,
|
251
288
|
|
252
289
|
|
290
|
+
|
291
|
+
|
253
292
|
call_ended_reason: Freeclimb::CallEndedReason::BUSY,
|
254
293
|
|
255
294
|
|
295
|
+
|
296
|
+
|
256
297
|
direction: Freeclimb::CallDirection::INBOUND,
|
257
298
|
|
299
|
+
|
300
|
+
|
301
|
+
|
258
302
|
conference_id: "TS",
|
259
303
|
|
304
|
+
|
305
|
+
|
306
|
+
|
260
307
|
queue_id: "TS",
|
261
308
|
|
309
|
+
|
310
|
+
|
262
311
|
)}.not_to raise_error()
|
263
312
|
end
|
264
313
|
it 'fails to initialize with input argument that is not a hash in Freeclimb::CallStatusWebhook' do
|
265
314
|
expect { instance = Freeclimb::CallStatusWebhook.new(
|
315
|
+
|
266
316
|
request_type: "TS",
|
267
317
|
|
318
|
+
|
319
|
+
|
320
|
+
|
268
321
|
call_id: "TS",
|
269
322
|
|
323
|
+
|
324
|
+
|
325
|
+
|
270
326
|
account_id: "TS",
|
271
327
|
|
328
|
+
|
329
|
+
|
330
|
+
|
272
331
|
from: "TS",
|
273
332
|
|
333
|
+
|
334
|
+
|
335
|
+
|
274
336
|
to: "TS",
|
275
337
|
|
276
338
|
|
339
|
+
|
340
|
+
|
277
341
|
call_status: Freeclimb::CallStatus::QUEUED,
|
278
342
|
|
279
343
|
|
344
|
+
|
345
|
+
|
280
346
|
call_ended_reason: Freeclimb::CallEndedReason::BUSY,
|
281
347
|
|
282
348
|
|
349
|
+
|
350
|
+
|
283
351
|
direction: Freeclimb::CallDirection::INBOUND,
|
284
352
|
|
353
|
+
|
354
|
+
|
355
|
+
|
285
356
|
conference_id: "TS",
|
286
357
|
|
358
|
+
|
359
|
+
|
360
|
+
|
287
361
|
queue_id: "TS",
|
288
362
|
|
363
|
+
|
364
|
+
|
289
365
|
invalid_attribute: true
|
290
366
|
)}.to raise_error(ArgumentError)
|
291
367
|
end
|
292
368
|
it 'fails to initialize with invalid attribute' do
|
293
369
|
expect { instance = Freeclimb::CallStatusWebhook.new(
|
370
|
+
|
294
371
|
request_type: "TS",
|
295
372
|
|
373
|
+
|
374
|
+
|
375
|
+
|
296
376
|
call_id: "TS",
|
297
377
|
|
378
|
+
|
379
|
+
|
380
|
+
|
298
381
|
account_id: "TS",
|
299
382
|
|
383
|
+
|
384
|
+
|
385
|
+
|
300
386
|
from: "TS",
|
301
387
|
|
388
|
+
|
389
|
+
|
390
|
+
|
302
391
|
to: "TS",
|
303
392
|
|
304
393
|
|
394
|
+
|
395
|
+
|
305
396
|
call_status: Freeclimb::CallStatus::QUEUED,
|
306
397
|
|
307
398
|
|
399
|
+
|
400
|
+
|
308
401
|
call_ended_reason: Freeclimb::CallEndedReason::BUSY,
|
309
402
|
|
310
403
|
|
404
|
+
|
405
|
+
|
311
406
|
direction: Freeclimb::CallDirection::INBOUND,
|
312
407
|
|
408
|
+
|
409
|
+
|
410
|
+
|
313
411
|
conference_id: "TS",
|
314
412
|
|
413
|
+
|
414
|
+
|
415
|
+
|
315
416
|
queue_id: "TS",
|
316
417
|
|
418
|
+
|
419
|
+
|
317
420
|
invalid_attribute: true
|
318
421
|
)}.to raise_error(ArgumentError)
|
319
422
|
end
|
@@ -322,29 +425,56 @@ describe Freeclimb::CallStatusWebhook do
|
|
322
425
|
describe 'test method "valid"' do
|
323
426
|
it 'checks if properties are valid' do
|
324
427
|
instance = Freeclimb::CallStatusWebhook.new(
|
428
|
+
|
325
429
|
request_type: "TS",
|
326
430
|
|
431
|
+
|
432
|
+
|
433
|
+
|
327
434
|
call_id: "TS",
|
328
435
|
|
436
|
+
|
437
|
+
|
438
|
+
|
329
439
|
account_id: "TS",
|
330
440
|
|
441
|
+
|
442
|
+
|
443
|
+
|
331
444
|
from: "TS",
|
332
445
|
|
446
|
+
|
447
|
+
|
448
|
+
|
333
449
|
to: "TS",
|
334
450
|
|
335
451
|
|
452
|
+
|
453
|
+
|
336
454
|
call_status: Freeclimb::CallStatus::QUEUED,
|
337
455
|
|
338
456
|
|
457
|
+
|
458
|
+
|
339
459
|
call_ended_reason: Freeclimb::CallEndedReason::BUSY,
|
340
460
|
|
341
461
|
|
462
|
+
|
463
|
+
|
342
464
|
direction: Freeclimb::CallDirection::INBOUND,
|
343
465
|
|
466
|
+
|
467
|
+
|
468
|
+
|
344
469
|
conference_id: "TS",
|
345
470
|
|
471
|
+
|
472
|
+
|
473
|
+
|
346
474
|
queue_id: "TS",
|
347
475
|
|
476
|
+
|
477
|
+
|
348
478
|
)
|
349
479
|
expect(instance.valid?).to eq(true)
|
350
480
|
end
|
@@ -361,110 +491,227 @@ describe Freeclimb::CallStatusWebhook do
|
|
361
491
|
|
362
492
|
describe 'test method "eql?"' do
|
363
493
|
it 'checks if objects are equal' do
|
364
|
-
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
|
365
504
|
instance_1 = Freeclimb::CallStatusWebhook.new(
|
505
|
+
|
366
506
|
request_type: "TS",
|
367
507
|
|
508
|
+
|
509
|
+
|
510
|
+
|
368
511
|
call_id: "TS",
|
369
512
|
|
513
|
+
|
514
|
+
|
515
|
+
|
370
516
|
account_id: "TS",
|
371
517
|
|
518
|
+
|
519
|
+
|
520
|
+
|
372
521
|
from: "TS",
|
373
522
|
|
523
|
+
|
524
|
+
|
525
|
+
|
374
526
|
to: "TS",
|
375
527
|
|
376
528
|
|
529
|
+
|
530
|
+
|
531
|
+
|
532
|
+
|
377
533
|
call_status: Freeclimb::CallStatus::QUEUED,
|
378
534
|
|
379
535
|
|
536
|
+
|
537
|
+
|
380
538
|
call_ended_reason: Freeclimb::CallEndedReason::BUSY,
|
381
539
|
|
382
540
|
|
541
|
+
|
542
|
+
|
383
543
|
direction: Freeclimb::CallDirection::INBOUND,
|
384
544
|
|
545
|
+
|
385
546
|
conference_id: "TS",
|
386
547
|
|
548
|
+
|
549
|
+
|
550
|
+
|
387
551
|
queue_id: "TS",
|
388
552
|
|
553
|
+
|
554
|
+
|
389
555
|
)
|
390
556
|
instance_2 = Freeclimb::CallStatusWebhook.new(
|
557
|
+
|
391
558
|
request_type: "TS",
|
392
559
|
|
560
|
+
|
561
|
+
|
562
|
+
|
393
563
|
call_id: "TS",
|
394
564
|
|
565
|
+
|
566
|
+
|
567
|
+
|
395
568
|
account_id: "TS",
|
396
569
|
|
570
|
+
|
571
|
+
|
572
|
+
|
397
573
|
from: "TS",
|
398
574
|
|
575
|
+
|
576
|
+
|
577
|
+
|
399
578
|
to: "TS",
|
400
579
|
|
401
580
|
|
581
|
+
|
582
|
+
|
583
|
+
|
584
|
+
|
402
585
|
call_status: Freeclimb::CallStatus::QUEUED,
|
403
586
|
|
404
587
|
|
588
|
+
|
589
|
+
|
405
590
|
call_ended_reason: Freeclimb::CallEndedReason::BUSY,
|
406
591
|
|
407
592
|
|
593
|
+
|
594
|
+
|
408
595
|
direction: Freeclimb::CallDirection::INBOUND,
|
409
596
|
|
597
|
+
|
410
598
|
conference_id: "TS",
|
411
599
|
|
600
|
+
|
601
|
+
|
602
|
+
|
412
603
|
queue_id: "TS",
|
413
604
|
|
605
|
+
|
606
|
+
|
414
607
|
)
|
415
608
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
416
609
|
end
|
417
610
|
|
418
611
|
it 'checks if objects are not equal' do
|
419
612
|
instance_1 = Freeclimb::CallStatusWebhook.new(
|
613
|
+
|
420
614
|
request_type: "TS",
|
421
615
|
|
616
|
+
|
617
|
+
|
618
|
+
|
422
619
|
call_id: "TS",
|
423
620
|
|
621
|
+
|
622
|
+
|
623
|
+
|
424
624
|
account_id: "TS",
|
425
625
|
|
626
|
+
|
627
|
+
|
628
|
+
|
426
629
|
from: "TS",
|
427
630
|
|
631
|
+
|
632
|
+
|
633
|
+
|
428
634
|
to: "TS",
|
429
635
|
|
430
636
|
|
637
|
+
|
638
|
+
|
639
|
+
|
640
|
+
|
431
641
|
call_status: Freeclimb::CallStatus::QUEUED,
|
432
642
|
|
433
643
|
|
644
|
+
|
645
|
+
|
434
646
|
call_ended_reason: Freeclimb::CallEndedReason::BUSY,
|
435
647
|
|
436
648
|
|
649
|
+
|
650
|
+
|
437
651
|
direction: Freeclimb::CallDirection::INBOUND,
|
438
652
|
|
653
|
+
|
439
654
|
conference_id: "TS",
|
440
655
|
|
656
|
+
|
657
|
+
|
658
|
+
|
441
659
|
queue_id: "TS",
|
442
660
|
|
661
|
+
|
662
|
+
|
443
663
|
)
|
444
664
|
instance_2 = Freeclimb::CallStatusWebhook.new(
|
665
|
+
|
445
666
|
request_type: "ST",
|
446
667
|
|
668
|
+
|
669
|
+
|
670
|
+
|
447
671
|
call_id: "ST",
|
448
672
|
|
673
|
+
|
674
|
+
|
675
|
+
|
449
676
|
account_id: "ST",
|
450
677
|
|
678
|
+
|
679
|
+
|
680
|
+
|
451
681
|
from: "ST",
|
452
682
|
|
683
|
+
|
684
|
+
|
685
|
+
|
453
686
|
to: "ST",
|
454
687
|
|
455
688
|
|
689
|
+
|
690
|
+
|
691
|
+
|
692
|
+
|
456
693
|
call_status: nil,
|
457
694
|
|
458
695
|
|
696
|
+
|
697
|
+
|
459
698
|
call_ended_reason: nil,
|
460
699
|
|
461
700
|
|
701
|
+
|
702
|
+
|
462
703
|
direction: nil,
|
463
704
|
|
705
|
+
|
464
706
|
conference_id: "ST",
|
465
707
|
|
708
|
+
|
709
|
+
|
710
|
+
|
466
711
|
queue_id: "ST",
|
467
712
|
|
713
|
+
|
714
|
+
|
468
715
|
)
|
469
716
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
470
717
|
end
|
@@ -473,29 +720,56 @@ describe Freeclimb::CallStatusWebhook do
|
|
473
720
|
describe 'test method "hash"' do
|
474
721
|
it 'calculates hash code' do
|
475
722
|
instance = Freeclimb::CallStatusWebhook.new(
|
723
|
+
|
476
724
|
request_type: "TS",
|
477
725
|
|
726
|
+
|
727
|
+
|
728
|
+
|
478
729
|
call_id: "TS",
|
479
730
|
|
731
|
+
|
732
|
+
|
733
|
+
|
480
734
|
account_id: "TS",
|
481
735
|
|
736
|
+
|
737
|
+
|
738
|
+
|
482
739
|
from: "TS",
|
483
740
|
|
741
|
+
|
742
|
+
|
743
|
+
|
484
744
|
to: "TS",
|
485
745
|
|
486
746
|
|
747
|
+
|
748
|
+
|
487
749
|
call_status: Freeclimb::CallStatus::QUEUED,
|
488
750
|
|
489
751
|
|
752
|
+
|
753
|
+
|
490
754
|
call_ended_reason: Freeclimb::CallEndedReason::BUSY,
|
491
755
|
|
492
756
|
|
757
|
+
|
758
|
+
|
493
759
|
direction: Freeclimb::CallDirection::INBOUND,
|
494
760
|
|
761
|
+
|
762
|
+
|
763
|
+
|
495
764
|
conference_id: "TS",
|
496
765
|
|
766
|
+
|
767
|
+
|
768
|
+
|
497
769
|
queue_id: "TS",
|
498
770
|
|
771
|
+
|
772
|
+
|
499
773
|
)
|
500
774
|
expect(instance.hash).to be_a_kind_of(Integer)
|
501
775
|
end
|
@@ -504,54 +778,108 @@ describe Freeclimb::CallStatusWebhook do
|
|
504
778
|
describe 'test method "build_from_hash"' do
|
505
779
|
it 'builds equivalent model from hash code' do
|
506
780
|
instance_1 = Freeclimb::CallStatusWebhook.new(
|
781
|
+
|
507
782
|
request_type: "TS",
|
508
783
|
|
784
|
+
|
785
|
+
|
786
|
+
|
509
787
|
call_id: "TS",
|
510
788
|
|
789
|
+
|
790
|
+
|
791
|
+
|
511
792
|
account_id: "TS",
|
512
793
|
|
794
|
+
|
795
|
+
|
796
|
+
|
513
797
|
from: "TS",
|
514
798
|
|
799
|
+
|
800
|
+
|
801
|
+
|
515
802
|
to: "TS",
|
516
803
|
|
517
804
|
|
805
|
+
|
806
|
+
|
518
807
|
call_status: Freeclimb::CallStatus::QUEUED,
|
519
808
|
|
520
809
|
|
810
|
+
|
811
|
+
|
521
812
|
call_ended_reason: Freeclimb::CallEndedReason::BUSY,
|
522
813
|
|
523
814
|
|
815
|
+
|
816
|
+
|
524
817
|
direction: Freeclimb::CallDirection::INBOUND,
|
525
818
|
|
819
|
+
|
820
|
+
|
821
|
+
|
526
822
|
conference_id: "TS",
|
527
823
|
|
824
|
+
|
825
|
+
|
826
|
+
|
528
827
|
queue_id: "TS",
|
529
828
|
|
829
|
+
|
830
|
+
|
530
831
|
)
|
531
832
|
instance_2 = Freeclimb::CallStatusWebhook.new(
|
833
|
+
|
532
834
|
request_type: "TS",
|
533
835
|
|
836
|
+
|
837
|
+
|
838
|
+
|
534
839
|
call_id: "TS",
|
535
840
|
|
841
|
+
|
842
|
+
|
843
|
+
|
536
844
|
account_id: "TS",
|
537
845
|
|
846
|
+
|
847
|
+
|
848
|
+
|
538
849
|
from: "TS",
|
539
850
|
|
851
|
+
|
852
|
+
|
853
|
+
|
540
854
|
to: "TS",
|
541
855
|
|
542
856
|
|
857
|
+
|
858
|
+
|
543
859
|
call_status: Freeclimb::CallStatus::QUEUED,
|
544
860
|
|
545
861
|
|
862
|
+
|
863
|
+
|
546
864
|
call_ended_reason: Freeclimb::CallEndedReason::BUSY,
|
547
865
|
|
548
866
|
|
867
|
+
|
868
|
+
|
549
869
|
direction: Freeclimb::CallDirection::INBOUND,
|
550
870
|
|
871
|
+
|
872
|
+
|
873
|
+
|
551
874
|
conference_id: "TS",
|
552
875
|
|
876
|
+
|
877
|
+
|
878
|
+
|
553
879
|
queue_id: "TS",
|
554
880
|
|
881
|
+
|
882
|
+
|
555
883
|
)
|
556
884
|
|
557
885
|
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
@@ -560,79 +888,153 @@ describe Freeclimb::CallStatusWebhook do
|
|
560
888
|
|
561
889
|
describe 'test method "_deserialize"' do
|
562
890
|
instance = Freeclimb::CallStatusWebhook.new(
|
891
|
+
|
563
892
|
request_type: "TS",
|
564
893
|
|
894
|
+
|
895
|
+
|
896
|
+
|
565
897
|
call_id: "TS",
|
566
898
|
|
899
|
+
|
900
|
+
|
901
|
+
|
567
902
|
account_id: "TS",
|
568
903
|
|
904
|
+
|
905
|
+
|
906
|
+
|
569
907
|
from: "TS",
|
570
908
|
|
909
|
+
|
910
|
+
|
911
|
+
|
571
912
|
to: "TS",
|
572
913
|
|
573
914
|
|
915
|
+
|
916
|
+
|
574
917
|
call_status: Freeclimb::CallStatus::QUEUED,
|
575
918
|
|
576
919
|
|
920
|
+
|
921
|
+
|
577
922
|
call_ended_reason: Freeclimb::CallEndedReason::BUSY,
|
578
923
|
|
579
924
|
|
925
|
+
|
926
|
+
|
580
927
|
direction: Freeclimb::CallDirection::INBOUND,
|
581
928
|
|
929
|
+
|
930
|
+
|
931
|
+
|
582
932
|
conference_id: "TS",
|
583
933
|
|
934
|
+
|
935
|
+
|
936
|
+
|
584
937
|
queue_id: "TS",
|
585
938
|
|
939
|
+
|
940
|
+
|
586
941
|
)
|
587
942
|
it 'deserializes the data of request_type' do
|
588
943
|
expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String)
|
589
944
|
end
|
945
|
+
|
946
|
+
|
590
947
|
it 'deserializes the data of call_id' do
|
591
948
|
expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String)
|
592
949
|
end
|
950
|
+
|
951
|
+
|
593
952
|
it 'deserializes the data of account_id' do
|
594
953
|
expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
|
595
954
|
end
|
955
|
+
|
956
|
+
|
596
957
|
it 'deserializes the data of from' do
|
597
958
|
expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String)
|
598
959
|
end
|
960
|
+
|
961
|
+
|
599
962
|
it 'deserializes the data of to' do
|
600
963
|
expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String)
|
601
964
|
end
|
965
|
+
|
966
|
+
|
967
|
+
|
968
|
+
|
969
|
+
|
970
|
+
|
971
|
+
|
972
|
+
|
602
973
|
it 'deserializes the data of conference_id' do
|
603
974
|
expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String)
|
604
975
|
end
|
976
|
+
|
977
|
+
|
605
978
|
it 'deserializes the data of queue_id' do
|
606
979
|
expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String)
|
607
980
|
end
|
981
|
+
|
982
|
+
|
608
983
|
end
|
609
984
|
|
610
985
|
describe 'test method "to_s"' do
|
611
986
|
it 'returns the string representation of the object' do
|
612
987
|
instance = Freeclimb::CallStatusWebhook.new(
|
988
|
+
|
613
989
|
request_type: "TS",
|
614
990
|
|
991
|
+
|
992
|
+
|
993
|
+
|
615
994
|
call_id: "TS",
|
616
995
|
|
996
|
+
|
997
|
+
|
998
|
+
|
617
999
|
account_id: "TS",
|
618
1000
|
|
1001
|
+
|
1002
|
+
|
1003
|
+
|
619
1004
|
from: "TS",
|
620
1005
|
|
1006
|
+
|
1007
|
+
|
1008
|
+
|
621
1009
|
to: "TS",
|
622
1010
|
|
623
1011
|
|
1012
|
+
|
1013
|
+
|
624
1014
|
call_status: Freeclimb::CallStatus::QUEUED,
|
625
1015
|
|
626
1016
|
|
1017
|
+
|
1018
|
+
|
627
1019
|
call_ended_reason: Freeclimb::CallEndedReason::BUSY,
|
628
1020
|
|
629
1021
|
|
1022
|
+
|
1023
|
+
|
630
1024
|
direction: Freeclimb::CallDirection::INBOUND,
|
631
1025
|
|
1026
|
+
|
1027
|
+
|
1028
|
+
|
632
1029
|
conference_id: "TS",
|
633
1030
|
|
1031
|
+
|
1032
|
+
|
1033
|
+
|
634
1034
|
queue_id: "TS",
|
635
1035
|
|
1036
|
+
|
1037
|
+
|
636
1038
|
)
|
637
1039
|
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
638
1040
|
end
|
@@ -641,83 +1043,173 @@ describe Freeclimb::CallStatusWebhook do
|
|
641
1043
|
describe 'test method "to_hash"' do
|
642
1044
|
it 'returns the object in the form of hash' do
|
643
1045
|
instance = Freeclimb::CallStatusWebhook.new(
|
1046
|
+
|
644
1047
|
request_type: "TS",
|
645
1048
|
|
1049
|
+
|
1050
|
+
|
1051
|
+
|
646
1052
|
call_id: "TS",
|
647
1053
|
|
1054
|
+
|
1055
|
+
|
1056
|
+
|
648
1057
|
account_id: "TS",
|
649
1058
|
|
1059
|
+
|
1060
|
+
|
1061
|
+
|
650
1062
|
from: "TS",
|
651
1063
|
|
1064
|
+
|
1065
|
+
|
1066
|
+
|
652
1067
|
to: "TS",
|
653
1068
|
|
654
1069
|
|
1070
|
+
|
1071
|
+
|
655
1072
|
call_status: Freeclimb::CallStatus::QUEUED,
|
656
1073
|
|
657
1074
|
|
1075
|
+
|
1076
|
+
|
658
1077
|
call_ended_reason: Freeclimb::CallEndedReason::BUSY,
|
659
1078
|
|
660
1079
|
|
1080
|
+
|
1081
|
+
|
661
1082
|
direction: Freeclimb::CallDirection::INBOUND,
|
662
1083
|
|
1084
|
+
|
1085
|
+
|
1086
|
+
|
663
1087
|
conference_id: "TS",
|
664
1088
|
|
1089
|
+
|
1090
|
+
|
1091
|
+
|
665
1092
|
queue_id: "TS",
|
666
1093
|
|
1094
|
+
|
1095
|
+
|
667
1096
|
)
|
668
1097
|
expect(instance.to_hash).to be_a_kind_of(Hash)
|
669
1098
|
end
|
670
1099
|
it 'creates equal hash for two equal objects' do
|
671
|
-
|
1100
|
+
|
1101
|
+
|
1102
|
+
|
1103
|
+
|
1104
|
+
|
1105
|
+
|
1106
|
+
|
1107
|
+
|
1108
|
+
|
1109
|
+
|
672
1110
|
instance_1 = Freeclimb::CallStatusWebhook.new(
|
1111
|
+
|
673
1112
|
request_type: "TS",
|
674
1113
|
|
1114
|
+
|
1115
|
+
|
1116
|
+
|
675
1117
|
call_id: "TS",
|
676
1118
|
|
1119
|
+
|
1120
|
+
|
1121
|
+
|
677
1122
|
account_id: "TS",
|
678
1123
|
|
1124
|
+
|
1125
|
+
|
1126
|
+
|
679
1127
|
from: "TS",
|
680
1128
|
|
1129
|
+
|
1130
|
+
|
1131
|
+
|
681
1132
|
to: "TS",
|
682
1133
|
|
683
1134
|
|
1135
|
+
|
1136
|
+
|
684
1137
|
call_status: Freeclimb::CallStatus::QUEUED,
|
685
1138
|
|
686
1139
|
|
1140
|
+
|
1141
|
+
|
687
1142
|
call_ended_reason: Freeclimb::CallEndedReason::BUSY,
|
688
1143
|
|
689
1144
|
|
1145
|
+
|
1146
|
+
|
690
1147
|
direction: Freeclimb::CallDirection::INBOUND,
|
691
1148
|
|
1149
|
+
|
1150
|
+
|
1151
|
+
|
692
1152
|
conference_id: "TS",
|
693
1153
|
|
1154
|
+
|
1155
|
+
|
1156
|
+
|
694
1157
|
queue_id: "TS",
|
695
1158
|
|
1159
|
+
|
1160
|
+
|
696
1161
|
)
|
697
1162
|
instance_2 = Freeclimb::CallStatusWebhook.new(
|
1163
|
+
|
698
1164
|
request_type: "TS",
|
699
1165
|
|
1166
|
+
|
1167
|
+
|
1168
|
+
|
700
1169
|
call_id: "TS",
|
701
1170
|
|
1171
|
+
|
1172
|
+
|
1173
|
+
|
702
1174
|
account_id: "TS",
|
703
1175
|
|
1176
|
+
|
1177
|
+
|
1178
|
+
|
704
1179
|
from: "TS",
|
705
1180
|
|
1181
|
+
|
1182
|
+
|
1183
|
+
|
706
1184
|
to: "TS",
|
707
1185
|
|
708
1186
|
|
1187
|
+
|
1188
|
+
|
709
1189
|
call_status: Freeclimb::CallStatus::QUEUED,
|
710
1190
|
|
711
1191
|
|
1192
|
+
|
1193
|
+
|
712
1194
|
call_ended_reason: Freeclimb::CallEndedReason::BUSY,
|
713
1195
|
|
714
1196
|
|
1197
|
+
|
1198
|
+
|
715
1199
|
direction: Freeclimb::CallDirection::INBOUND,
|
716
1200
|
|
1201
|
+
|
1202
|
+
|
1203
|
+
|
717
1204
|
conference_id: "TS",
|
718
1205
|
|
1206
|
+
|
1207
|
+
|
1208
|
+
|
719
1209
|
queue_id: "TS",
|
720
1210
|
|
1211
|
+
|
1212
|
+
|
721
1213
|
)
|
722
1214
|
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
723
1215
|
end
|
@@ -725,18 +1217,23 @@ describe Freeclimb::CallStatusWebhook do
|
|
725
1217
|
|
726
1218
|
describe 'test method "_to_hash"' do
|
727
1219
|
instance = Freeclimb::CallStatusWebhook.new(
|
1220
|
+
|
728
1221
|
request_type: "TS",
|
729
1222
|
|
730
1223
|
|
1224
|
+
|
731
1225
|
call_id: "TS",
|
732
1226
|
|
733
1227
|
|
1228
|
+
|
734
1229
|
account_id: "TS",
|
735
1230
|
|
736
1231
|
|
1232
|
+
|
737
1233
|
from: "TS",
|
738
1234
|
|
739
1235
|
|
1236
|
+
|
740
1237
|
to: "TS",
|
741
1238
|
|
742
1239
|
|
@@ -752,9 +1249,11 @@ describe Freeclimb::CallStatusWebhook do
|
|
752
1249
|
direction: Freeclimb::CallDirection::INBOUND,
|
753
1250
|
|
754
1251
|
|
1252
|
+
|
755
1253
|
conference_id: "TS",
|
756
1254
|
|
757
1255
|
|
1256
|
+
|
758
1257
|
queue_id: "TS",
|
759
1258
|
|
760
1259
|
)
|