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.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -1
  3. data/Gemfile +2 -1
  4. data/Gemfile.lock +21 -15
  5. data/README.md +5 -4
  6. data/docs/MessageResult.md +7 -1
  7. data/docs/TFNCampaign.md +34 -0
  8. data/lib/freeclimb/configuration.rb +1 -2
  9. data/lib/freeclimb/models/dequeue.rb +2 -4
  10. data/lib/freeclimb/models/message_result.rb +36 -5
  11. data/lib/freeclimb/models/remove_from_conference.rb +2 -4
  12. data/lib/freeclimb/models/start_record_call.rb +2 -4
  13. data/lib/freeclimb/models/terminate_conference.rb +2 -4
  14. data/lib/freeclimb/models/tfn_campaign.rb +370 -0
  15. data/lib/freeclimb/models/unpark.rb +2 -4
  16. data/lib/freeclimb/version.rb +1 -1
  17. data/lib/freeclimb.rb +1 -0
  18. data/openapi.json +93 -38
  19. data/spec/api/default_api_spec.rb +39 -117
  20. data/spec/models/account_request_spec.rb +113 -2
  21. data/spec/models/account_result_spec.rb +591 -28
  22. data/spec/models/account_status_spec.rb +1 -0
  23. data/spec/models/account_type_spec.rb +1 -0
  24. data/spec/models/add_to_conference_notification_webhook_spec.rb +654 -5
  25. data/spec/models/add_to_conference_spec.rb +471 -2
  26. data/spec/models/add_to_queue_notification_webhook_spec.rb +465 -2
  27. data/spec/models/answered_by_spec.rb +1 -0
  28. data/spec/models/application_list_spec.rb +323 -2
  29. data/spec/models/application_request_spec.rb +393 -2
  30. data/spec/models/application_result_spec.rb +723 -14
  31. data/spec/models/available_number_list_spec.rb +323 -2
  32. data/spec/models/available_number_spec.rb +380 -21
  33. data/spec/models/barge_in_reason_spec.rb +1 -0
  34. data/spec/models/buy_incoming_number_request_spec.rb +169 -2
  35. data/spec/models/call_control_webhook_spec.rb +281 -2
  36. data/spec/models/call_direction_spec.rb +1 -0
  37. data/spec/models/call_ended_reason_spec.rb +1 -0
  38. data/spec/models/call_list_spec.rb +323 -2
  39. data/spec/models/call_result_spec.rb +1020 -9
  40. data/spec/models/call_status_spec.rb +1 -0
  41. data/spec/models/call_status_webhook_spec.rb +501 -2
  42. data/spec/models/capabilities_spec.rb +191 -2
  43. data/spec/models/completion_request_spec.rb +54 -2
  44. data/spec/models/completion_result_spec.rb +93 -2
  45. data/spec/models/completion_result_status_spec.rb +1 -0
  46. data/spec/models/conference_list_spec.rb +323 -2
  47. data/spec/models/conference_participant_list_spec.rb +323 -2
  48. data/spec/models/conference_participant_result_spec.rb +532 -7
  49. data/spec/models/conference_recording_status_webhook_spec.rb +654 -5
  50. data/spec/models/conference_result_spec.rb +768 -55
  51. data/spec/models/conference_status_spec.rb +1 -0
  52. data/spec/models/conference_status_webhook_spec.rb +654 -5
  53. data/spec/models/create_conference_request_spec.rb +243 -2
  54. data/spec/models/create_conference_spec.rb +281 -2
  55. data/spec/models/create_conference_webhook_spec.rb +654 -5
  56. data/spec/models/create_web_rtc_token_spec.rb +151 -2
  57. data/spec/models/dequeue_spec.rb +1 -0
  58. data/spec/models/dequeue_webhook_spec.rb +565 -8
  59. data/spec/models/enqueue_spec.rb +225 -2
  60. data/spec/models/filter_logs_request_spec.rb +57 -2
  61. data/spec/models/get_digits_reason_spec.rb +1 -0
  62. data/spec/models/get_digits_spec.rb +379 -2
  63. data/spec/models/get_digits_webhook_spec.rb +623 -12
  64. data/spec/models/get_speech_reason_spec.rb +1 -0
  65. data/spec/models/get_speech_spec.rb +556 -11
  66. data/spec/models/get_speech_webhook_spec.rb +870 -15
  67. data/spec/models/grammar_file_built_in_spec.rb +1 -0
  68. data/spec/models/grammar_type_spec.rb +1 -0
  69. data/spec/models/hangup_spec.rb +57 -2
  70. data/spec/models/if_machine_spec.rb +1 -0
  71. data/spec/models/inbound_call_webhook_spec.rb +521 -2
  72. data/spec/models/incoming_number_list_spec.rb +323 -2
  73. data/spec/models/incoming_number_request_spec.rb +169 -2
  74. data/spec/models/incoming_number_result_spec.rb +930 -43
  75. data/spec/models/language_spec.rb +1 -0
  76. data/spec/models/leave_conference_webhook_spec.rb +465 -2
  77. data/spec/models/log_level_spec.rb +1 -0
  78. data/spec/models/log_list_spec.rb +323 -2
  79. data/spec/models/log_result_spec.rb +368 -9
  80. data/spec/models/machine_detected_webhook_spec.rb +565 -10
  81. data/spec/models/machine_type_spec.rb +1 -0
  82. data/spec/models/make_call_request_spec.rb +529 -6
  83. data/spec/models/message_delivery_webhook_spec.rb +565 -6
  84. data/spec/models/message_direction_spec.rb +1 -0
  85. data/spec/models/message_request_spec.rb +469 -2
  86. data/spec/models/message_result_spec.rb +1364 -225
  87. data/spec/models/message_status_spec.rb +1 -0
  88. data/spec/models/message_status_webhook_spec.rb +615 -20
  89. data/spec/models/messages_list_spec.rb +323 -2
  90. data/spec/models/mutable_resource_model_spec.rb +207 -2
  91. data/spec/models/out_dial_api_connect_webhook_spec.rb +521 -2
  92. data/spec/models/out_dial_connect_webhook_spec.rb +521 -2
  93. data/spec/models/out_dial_spec.rb +505 -2
  94. data/spec/models/out_dial_start_webhook_spec.rb +599 -24
  95. data/spec/models/pagination_model_spec.rb +285 -2
  96. data/spec/models/park_spec.rb +169 -2
  97. data/spec/models/pause_spec.rb +39 -2
  98. data/spec/models/percl_command_spec.rb +54 -2
  99. data/spec/models/percl_script_spec.rb +39 -2
  100. data/spec/models/play_beep_spec.rb +1 -0
  101. data/spec/models/play_early_media_spec.rb +57 -2
  102. data/spec/models/play_spec.rb +133 -2
  103. data/spec/models/queue_list_spec.rb +323 -2
  104. data/spec/models/queue_member_list_spec.rb +323 -2
  105. data/spec/models/queue_member_spec.rb +245 -2
  106. data/spec/models/queue_request_spec.rb +95 -2
  107. data/spec/models/queue_result_spec.rb +564 -15
  108. data/spec/models/queue_result_status_spec.rb +1 -0
  109. data/spec/models/queue_wait_webhook_spec.rb +616 -21
  110. data/spec/models/record_utterance_spec.rb +303 -2
  111. data/spec/models/record_utterance_term_reason_spec.rb +1 -0
  112. data/spec/models/record_webhook_spec.rb +868 -13
  113. data/spec/models/recording_list_spec.rb +323 -2
  114. data/spec/models/recording_result_spec.rb +469 -2
  115. data/spec/models/redirect_spec.rb +57 -2
  116. data/spec/models/redirect_webhook_spec.rb +521 -2
  117. data/spec/models/reject_spec.rb +57 -2
  118. data/spec/models/remove_from_conference_spec.rb +1 -0
  119. data/spec/models/remove_from_queue_notification_webhook_spec.rb +546 -9
  120. data/spec/models/request_type_spec.rb +1 -0
  121. data/spec/models/say_spec.rb +189 -2
  122. data/spec/models/send_digits_spec.rb +133 -2
  123. data/spec/models/set_dtmf_pass_through_spec.rb +39 -2
  124. data/spec/models/set_listen_spec.rb +39 -2
  125. data/spec/models/set_talk_spec.rb +39 -2
  126. data/spec/models/sms_spec.rb +225 -2
  127. data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +1 -0
  128. data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +1 -0
  129. data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +1 -0
  130. data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +1 -0
  131. data/spec/models/sms_ten_dlc_brand_spec.rb +1969 -423
  132. data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +1 -0
  133. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +323 -2
  134. data/spec/models/sms_ten_dlc_campaign_spec.rb +2224 -550
  135. data/spec/models/sms_ten_dlc_campaign_status_spec.rb +1 -0
  136. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +323 -2
  137. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +597 -17
  138. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +1537 -155
  139. data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +1 -0
  140. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +323 -2
  141. data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +1 -0
  142. data/spec/models/sms_toll_free_campaign_spec.rb +355 -2
  143. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +323 -2
  144. data/spec/models/start_record_call_spec.rb +1 -0
  145. data/spec/models/terminate_conference_spec.rb +1 -0
  146. data/spec/models/tfn_campaign_spec.rb +1089 -0
  147. data/spec/models/tfn_spec.rb +57 -2
  148. data/spec/models/transcribe_reason_spec.rb +1 -0
  149. data/spec/models/transcribe_term_reason_spec.rb +1 -0
  150. data/spec/models/transcribe_utterance_record_spec.rb +115 -2
  151. data/spec/models/transcribe_utterance_spec.rb +288 -21
  152. data/spec/models/transcribe_webhook_spec.rb +1049 -4
  153. data/spec/models/unpark_spec.rb +1 -0
  154. data/spec/models/update_call_request_spec.rb +37 -2
  155. data/spec/models/update_call_request_status_spec.rb +1 -0
  156. data/spec/models/update_conference_participant_request_spec.rb +115 -2
  157. data/spec/models/update_conference_request_spec.rb +129 -2
  158. data/spec/models/update_conference_request_status_spec.rb +1 -0
  159. data/spec/models/webhook_spec.rb +54 -2
  160. 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::RemoveFromQueueNotificationWebhook
18
19
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -34,41 +35,56 @@ describe Freeclimb::RemoveFromQueueNotificationWebhook 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,17 +140,23 @@ describe Freeclimb::RemoveFromQueueNotificationWebhook 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
 
@@ -164,96 +186,185 @@ describe Freeclimb::RemoveFromQueueNotificationWebhook do
164
186
  instance.queue_time = 1
165
187
  expect(instance.queue_time).to eq(1)
166
188
 
189
+
190
+
167
191
  end
168
192
  end
169
193
 
170
194
  describe 'test method "initialize"' do
171
195
  it 'properly initializes with values' do
172
196
  expect { instance = Freeclimb::RemoveFromQueueNotificationWebhook.new(
197
+
173
198
  request_type: "TS",
174
199
 
200
+
201
+
202
+
175
203
  account_id: "TS",
176
204
 
205
+
206
+
207
+
177
208
  call_id: "TS",
178
209
 
210
+
211
+
212
+
179
213
  from: "TS",
180
214
 
215
+
216
+
217
+
181
218
  to: "TS",
182
219
 
183
220
 
221
+
222
+
184
223
  call_status: Freeclimb::CallStatus::QUEUED,
185
224
 
186
225
 
226
+
227
+
187
228
  direction: Freeclimb::CallDirection::INBOUND,
188
229
 
230
+
231
+
232
+
189
233
  conference_id: "TS",
190
234
 
235
+
236
+
237
+
191
238
  queue_id: "TS",
192
239
 
193
240
 
241
+
242
+
194
243
  queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
195
244
 
245
+
246
+
196
247
  queue_time: 1,
197
248
 
249
+
250
+
198
251
  )}.not_to raise_error()
199
252
  end
200
253
  it 'fails to initialize with input argument that is not a hash in Freeclimb::RemoveFromQueueNotificationWebhook' do
201
254
  expect { instance = Freeclimb::RemoveFromQueueNotificationWebhook.new(
255
+
202
256
  request_type: "TS",
203
257
 
258
+
259
+
260
+
204
261
  account_id: "TS",
205
262
 
263
+
264
+
265
+
206
266
  call_id: "TS",
207
267
 
268
+
269
+
270
+
208
271
  from: "TS",
209
272
 
273
+
274
+
275
+
210
276
  to: "TS",
211
277
 
212
278
 
279
+
280
+
213
281
  call_status: Freeclimb::CallStatus::QUEUED,
214
282
 
215
283
 
284
+
285
+
216
286
  direction: Freeclimb::CallDirection::INBOUND,
217
287
 
288
+
289
+
290
+
218
291
  conference_id: "TS",
219
292
 
293
+
294
+
295
+
220
296
  queue_id: "TS",
221
297
 
222
298
 
299
+
300
+
223
301
  queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
224
302
 
303
+
304
+
225
305
  queue_time: 1,
226
306
 
307
+
308
+
227
309
  invalid_attribute: true
228
310
  )}.to raise_error(ArgumentError)
229
311
  end
230
312
  it 'fails to initialize with invalid attribute' do
231
313
  expect { instance = Freeclimb::RemoveFromQueueNotificationWebhook.new(
314
+
232
315
  request_type: "TS",
233
316
 
317
+
318
+
319
+
234
320
  account_id: "TS",
235
321
 
322
+
323
+
324
+
236
325
  call_id: "TS",
237
326
 
327
+
328
+
329
+
238
330
  from: "TS",
239
331
 
332
+
333
+
334
+
240
335
  to: "TS",
241
336
 
242
337
 
338
+
339
+
243
340
  call_status: Freeclimb::CallStatus::QUEUED,
244
341
 
245
342
 
343
+
344
+
246
345
  direction: Freeclimb::CallDirection::INBOUND,
247
346
 
347
+
348
+
349
+
248
350
  conference_id: "TS",
249
351
 
352
+
353
+
354
+
250
355
  queue_id: "TS",
251
356
 
252
357
 
358
+
359
+
253
360
  queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
254
361
 
362
+
363
+
255
364
  queue_time: 1,
256
365
 
366
+
367
+
257
368
  invalid_attribute: true
258
369
  )}.to raise_error(ArgumentError)
259
370
  end
@@ -262,31 +373,60 @@ describe Freeclimb::RemoveFromQueueNotificationWebhook do
262
373
  describe 'test method "valid"' do
263
374
  it 'checks if properties are valid' do
264
375
  instance = Freeclimb::RemoveFromQueueNotificationWebhook.new(
376
+
265
377
  request_type: "TS",
266
378
 
379
+
380
+
381
+
267
382
  account_id: "TS",
268
383
 
384
+
385
+
386
+
269
387
  call_id: "TS",
270
388
 
389
+
390
+
391
+
271
392
  from: "TS",
272
393
 
394
+
395
+
396
+
273
397
  to: "TS",
274
398
 
275
399
 
400
+
401
+
276
402
  call_status: Freeclimb::CallStatus::QUEUED,
277
403
 
278
404
 
405
+
406
+
279
407
  direction: Freeclimb::CallDirection::INBOUND,
280
408
 
409
+
410
+
411
+
281
412
  conference_id: "TS",
282
413
 
414
+
415
+
416
+
283
417
  queue_id: "TS",
284
418
 
285
419
 
420
+
421
+
286
422
  queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
287
423
 
424
+
425
+
288
426
  queue_time: 1,
289
427
 
428
+
429
+
290
430
  )
291
431
  expect(instance.valid?).to eq(true)
292
432
  end
@@ -303,58 +443,126 @@ describe Freeclimb::RemoveFromQueueNotificationWebhook do
303
443
 
304
444
  describe 'test method "eql?"' do
305
445
  it 'checks if objects are equal' do
306
- obj = Object.new()
446
+
447
+
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+
456
+
307
457
  instance_1 = Freeclimb::RemoveFromQueueNotificationWebhook.new(
458
+
308
459
  request_type: "TS",
309
460
 
461
+
462
+
463
+
310
464
  account_id: "TS",
311
465
 
466
+
467
+
468
+
312
469
  call_id: "TS",
313
470
 
471
+
472
+
473
+
314
474
  from: "TS",
315
475
 
476
+
477
+
478
+
316
479
  to: "TS",
317
480
 
318
481
 
482
+
483
+
484
+
485
+
319
486
  call_status: Freeclimb::CallStatus::QUEUED,
320
487
 
321
488
 
489
+
490
+
322
491
  direction: Freeclimb::CallDirection::INBOUND,
323
492
 
493
+
324
494
  conference_id: "TS",
325
495
 
496
+
497
+
498
+
326
499
  queue_id: "TS",
327
500
 
328
501
 
502
+
503
+
504
+
505
+
329
506
  queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
330
507
 
331
508
  queue_time: 1,
332
509
 
510
+
511
+
333
512
  )
334
513
  instance_2 = Freeclimb::RemoveFromQueueNotificationWebhook.new(
514
+
335
515
  request_type: "TS",
336
516
 
517
+
518
+
519
+
337
520
  account_id: "TS",
338
521
 
522
+
523
+
524
+
339
525
  call_id: "TS",
340
526
 
527
+
528
+
529
+
341
530
  from: "TS",
342
531
 
532
+
533
+
534
+
343
535
  to: "TS",
344
536
 
345
537
 
538
+
539
+
540
+
541
+
346
542
  call_status: Freeclimb::CallStatus::QUEUED,
347
543
 
348
544
 
545
+
546
+
349
547
  direction: Freeclimb::CallDirection::INBOUND,
350
548
 
549
+
351
550
  conference_id: "TS",
352
551
 
552
+
553
+
554
+
353
555
  queue_id: "TS",
354
556
 
355
557
 
558
+
559
+
560
+
561
+
356
562
  queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
357
563
 
564
+
565
+
358
566
  queue_time: 1,
359
567
 
360
568
  )
@@ -363,57 +571,115 @@ describe Freeclimb::RemoveFromQueueNotificationWebhook do
363
571
 
364
572
  it 'checks if objects are not equal' do
365
573
  instance_1 = Freeclimb::RemoveFromQueueNotificationWebhook.new(
574
+
366
575
  request_type: "TS",
367
576
 
577
+
578
+
579
+
368
580
  account_id: "TS",
369
581
 
582
+
583
+
584
+
370
585
  call_id: "TS",
371
586
 
587
+
588
+
589
+
372
590
  from: "TS",
373
591
 
592
+
593
+
594
+
374
595
  to: "TS",
375
596
 
376
597
 
598
+
599
+
600
+
601
+
377
602
  call_status: Freeclimb::CallStatus::QUEUED,
378
603
 
379
604
 
605
+
606
+
380
607
  direction: Freeclimb::CallDirection::INBOUND,
381
608
 
609
+
382
610
  conference_id: "TS",
383
611
 
612
+
613
+
614
+
384
615
  queue_id: "TS",
385
616
 
386
617
 
618
+
619
+
620
+
621
+
387
622
  queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
388
623
 
389
624
  queue_time: 2,
390
625
 
626
+
627
+
391
628
  )
392
629
  instance_2 = Freeclimb::RemoveFromQueueNotificationWebhook.new(
630
+
393
631
  request_type: "ST",
394
632
 
633
+
634
+
635
+
395
636
  account_id: "ST",
396
637
 
638
+
639
+
640
+
397
641
  call_id: "ST",
398
642
 
643
+
644
+
645
+
399
646
  from: "ST",
400
647
 
401
- to: "ST",
402
648
 
403
649
 
404
- call_status: nil,
405
650
 
651
+ to: "ST",
406
652
 
407
- direction: nil,
408
653
 
409
- conference_id: "ST",
410
654
 
411
- queue_id: "ST",
412
655
 
413
656
 
414
- queue_result: nil,
415
657
 
416
- queue_time: 1,
658
+ call_status: nil,
659
+
660
+
661
+
662
+
663
+ direction: nil,
664
+
665
+
666
+ conference_id: "ST",
667
+
668
+
669
+
670
+
671
+ queue_id: "ST",
672
+
673
+
674
+
675
+
676
+
677
+
678
+ queue_result: nil,
679
+
680
+ queue_time: 1,
681
+
682
+
417
683
 
418
684
  )
419
685
  expect(instance_1.eql?(instance_2)).to eq(false)
@@ -423,31 +689,60 @@ describe Freeclimb::RemoveFromQueueNotificationWebhook do
423
689
  describe 'test method "hash"' do
424
690
  it 'calculates hash code' do
425
691
  instance = Freeclimb::RemoveFromQueueNotificationWebhook.new(
692
+
426
693
  request_type: "TS",
427
694
 
695
+
696
+
697
+
428
698
  account_id: "TS",
429
699
 
700
+
701
+
702
+
430
703
  call_id: "TS",
431
704
 
705
+
706
+
707
+
432
708
  from: "TS",
433
709
 
710
+
711
+
712
+
434
713
  to: "TS",
435
714
 
436
715
 
716
+
717
+
437
718
  call_status: Freeclimb::CallStatus::QUEUED,
438
719
 
439
720
 
721
+
722
+
440
723
  direction: Freeclimb::CallDirection::INBOUND,
441
724
 
725
+
726
+
727
+
442
728
  conference_id: "TS",
443
729
 
730
+
731
+
732
+
444
733
  queue_id: "TS",
445
734
 
446
735
 
736
+
737
+
447
738
  queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
448
739
 
740
+
741
+
449
742
  queue_time: 1,
450
743
 
744
+
745
+
451
746
  )
452
747
  expect(instance.hash).to be_a_kind_of(Integer)
453
748
  end
@@ -456,58 +751,116 @@ describe Freeclimb::RemoveFromQueueNotificationWebhook do
456
751
  describe 'test method "build_from_hash"' do
457
752
  it 'builds equivalent model from hash code' do
458
753
  instance_1 = Freeclimb::RemoveFromQueueNotificationWebhook.new(
754
+
459
755
  request_type: "TS",
460
756
 
757
+
758
+
759
+
461
760
  account_id: "TS",
462
761
 
762
+
763
+
764
+
463
765
  call_id: "TS",
464
766
 
767
+
768
+
769
+
465
770
  from: "TS",
466
771
 
772
+
773
+
774
+
467
775
  to: "TS",
468
776
 
469
777
 
778
+
779
+
470
780
  call_status: Freeclimb::CallStatus::QUEUED,
471
781
 
472
782
 
783
+
784
+
473
785
  direction: Freeclimb::CallDirection::INBOUND,
474
786
 
787
+
788
+
789
+
475
790
  conference_id: "TS",
476
791
 
792
+
793
+
794
+
477
795
  queue_id: "TS",
478
796
 
479
797
 
798
+
799
+
480
800
  queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
481
801
 
802
+
803
+
482
804
  queue_time: 1,
483
805
 
806
+
807
+
484
808
  )
485
809
  instance_2 = Freeclimb::RemoveFromQueueNotificationWebhook.new(
810
+
486
811
  request_type: "TS",
487
812
 
813
+
814
+
815
+
488
816
  account_id: "TS",
489
817
 
818
+
819
+
820
+
490
821
  call_id: "TS",
491
822
 
823
+
824
+
825
+
492
826
  from: "TS",
493
827
 
828
+
829
+
830
+
494
831
  to: "TS",
495
832
 
496
833
 
834
+
835
+
497
836
  call_status: Freeclimb::CallStatus::QUEUED,
498
837
 
499
838
 
839
+
840
+
500
841
  direction: Freeclimb::CallDirection::INBOUND,
501
842
 
843
+
844
+
845
+
502
846
  conference_id: "TS",
503
847
 
848
+
849
+
850
+
504
851
  queue_id: "TS",
505
852
 
506
853
 
854
+
855
+
507
856
  queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
508
857
 
858
+
859
+
509
860
  queue_time: 1,
510
861
 
862
+
863
+
511
864
  )
512
865
 
513
866
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
@@ -516,86 +869,166 @@ describe Freeclimb::RemoveFromQueueNotificationWebhook do
516
869
 
517
870
  describe 'test method "_deserialize"' do
518
871
  instance = Freeclimb::RemoveFromQueueNotificationWebhook.new(
872
+
519
873
  request_type: "TS",
520
874
 
875
+
876
+
877
+
521
878
  account_id: "TS",
522
879
 
880
+
881
+
882
+
523
883
  call_id: "TS",
524
884
 
885
+
886
+
887
+
525
888
  from: "TS",
526
889
 
890
+
891
+
892
+
527
893
  to: "TS",
528
894
 
529
895
 
896
+
897
+
530
898
  call_status: Freeclimb::CallStatus::QUEUED,
531
899
 
532
900
 
901
+
902
+
533
903
  direction: Freeclimb::CallDirection::INBOUND,
534
904
 
905
+
906
+
907
+
535
908
  conference_id: "TS",
536
909
 
910
+
911
+
912
+
537
913
  queue_id: "TS",
538
914
 
539
915
 
916
+
917
+
540
918
  queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
541
919
 
920
+
921
+
542
922
  queue_time: 1,
543
923
 
924
+
925
+
544
926
  )
545
927
  it 'deserializes the data of request_type' do
546
928
  expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String)
547
929
  end
930
+
931
+
548
932
  it 'deserializes the data of account_id' do
549
933
  expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
550
934
  end
935
+
936
+
551
937
  it 'deserializes the data of call_id' do
552
938
  expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String)
553
939
  end
940
+
941
+
554
942
  it 'deserializes the data of from' do
555
943
  expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String)
556
944
  end
945
+
946
+
557
947
  it 'deserializes the data of to' do
558
948
  expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String)
559
949
  end
950
+
951
+
952
+
953
+
954
+
955
+
560
956
  it 'deserializes the data of conference_id' do
561
957
  expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String)
562
958
  end
959
+
960
+
563
961
  it 'deserializes the data of queue_id' do
564
962
  expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String)
565
963
  end
964
+
965
+
966
+
967
+
566
968
  it 'deserializes the data of queue_time' do
567
969
  expect(instance._deserialize("Integer", instance.queue_time)).to be_a_kind_of(Integer)
568
970
  end
971
+
972
+
569
973
  end
570
974
 
571
975
  describe 'test method "to_s"' do
572
976
  it 'returns the string representation of the object' do
573
977
  instance = Freeclimb::RemoveFromQueueNotificationWebhook.new(
978
+
574
979
  request_type: "TS",
575
980
 
981
+
982
+
983
+
576
984
  account_id: "TS",
577
985
 
986
+
987
+
988
+
578
989
  call_id: "TS",
579
990
 
991
+
992
+
993
+
580
994
  from: "TS",
581
995
 
996
+
997
+
998
+
582
999
  to: "TS",
583
1000
 
584
1001
 
1002
+
1003
+
585
1004
  call_status: Freeclimb::CallStatus::QUEUED,
586
1005
 
587
1006
 
1007
+
1008
+
588
1009
  direction: Freeclimb::CallDirection::INBOUND,
589
1010
 
1011
+
1012
+
1013
+
590
1014
  conference_id: "TS",
591
1015
 
1016
+
1017
+
1018
+
592
1019
  queue_id: "TS",
593
1020
 
594
1021
 
1022
+
1023
+
595
1024
  queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
596
1025
 
1026
+
1027
+
597
1028
  queue_time: 1,
598
1029
 
1030
+
1031
+
599
1032
  )
600
1033
  expect(instance.to_s).to eq(instance.to_hash.to_s)
601
1034
  end
@@ -604,89 +1037,186 @@ describe Freeclimb::RemoveFromQueueNotificationWebhook do
604
1037
  describe 'test method "to_hash"' do
605
1038
  it 'returns the object in the form of hash' do
606
1039
  instance = Freeclimb::RemoveFromQueueNotificationWebhook.new(
1040
+
607
1041
  request_type: "TS",
608
1042
 
1043
+
1044
+
1045
+
609
1046
  account_id: "TS",
610
1047
 
1048
+
1049
+
1050
+
611
1051
  call_id: "TS",
612
1052
 
1053
+
1054
+
1055
+
613
1056
  from: "TS",
614
1057
 
1058
+
1059
+
1060
+
615
1061
  to: "TS",
616
1062
 
617
1063
 
1064
+
1065
+
618
1066
  call_status: Freeclimb::CallStatus::QUEUED,
619
1067
 
620
1068
 
1069
+
1070
+
621
1071
  direction: Freeclimb::CallDirection::INBOUND,
622
1072
 
1073
+
1074
+
1075
+
623
1076
  conference_id: "TS",
624
1077
 
1078
+
1079
+
1080
+
625
1081
  queue_id: "TS",
626
1082
 
627
1083
 
1084
+
1085
+
628
1086
  queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
629
1087
 
1088
+
1089
+
630
1090
  queue_time: 1,
631
1091
 
1092
+
1093
+
632
1094
  )
633
1095
  expect(instance.to_hash).to be_a_kind_of(Hash)
634
1096
  end
635
1097
  it 'creates equal hash for two equal objects' do
636
- obj = Object.new()
1098
+
1099
+
1100
+
1101
+
1102
+
1103
+
1104
+
1105
+
1106
+
1107
+
1108
+
637
1109
  instance_1 = Freeclimb::RemoveFromQueueNotificationWebhook.new(
1110
+
638
1111
  request_type: "TS",
639
1112
 
1113
+
1114
+
1115
+
640
1116
  account_id: "TS",
641
1117
 
1118
+
1119
+
1120
+
642
1121
  call_id: "TS",
643
1122
 
1123
+
1124
+
1125
+
644
1126
  from: "TS",
645
1127
 
1128
+
1129
+
1130
+
646
1131
  to: "TS",
647
1132
 
648
1133
 
1134
+
1135
+
649
1136
  call_status: Freeclimb::CallStatus::QUEUED,
650
1137
 
651
1138
 
1139
+
1140
+
652
1141
  direction: Freeclimb::CallDirection::INBOUND,
653
1142
 
1143
+
1144
+
1145
+
654
1146
  conference_id: "TS",
655
1147
 
1148
+
1149
+
1150
+
656
1151
  queue_id: "TS",
657
1152
 
658
1153
 
1154
+
1155
+
659
1156
  queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
660
1157
 
1158
+
1159
+
661
1160
  queue_time: 1,
662
1161
 
1162
+
1163
+
663
1164
  )
664
1165
  instance_2 = Freeclimb::RemoveFromQueueNotificationWebhook.new(
1166
+
665
1167
  request_type: "TS",
666
1168
 
1169
+
1170
+
1171
+
667
1172
  account_id: "TS",
668
1173
 
1174
+
1175
+
1176
+
669
1177
  call_id: "TS",
670
1178
 
1179
+
1180
+
1181
+
671
1182
  from: "TS",
672
1183
 
1184
+
1185
+
1186
+
673
1187
  to: "TS",
674
1188
 
675
1189
 
1190
+
1191
+
676
1192
  call_status: Freeclimb::CallStatus::QUEUED,
677
1193
 
678
1194
 
1195
+
1196
+
679
1197
  direction: Freeclimb::CallDirection::INBOUND,
680
1198
 
1199
+
1200
+
1201
+
681
1202
  conference_id: "TS",
682
1203
 
1204
+
1205
+
1206
+
683
1207
  queue_id: "TS",
684
1208
 
685
1209
 
1210
+
1211
+
686
1212
  queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
687
1213
 
1214
+
1215
+
688
1216
  queue_time: 1,
689
1217
 
1218
+
1219
+
690
1220
  )
691
1221
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
692
1222
  end
@@ -694,18 +1224,23 @@ describe Freeclimb::RemoveFromQueueNotificationWebhook do
694
1224
 
695
1225
  describe 'test method "_to_hash"' do
696
1226
  instance = Freeclimb::RemoveFromQueueNotificationWebhook.new(
1227
+
697
1228
  request_type: "TS",
698
1229
 
699
1230
 
1231
+
700
1232
  account_id: "TS",
701
1233
 
702
1234
 
1235
+
703
1236
  call_id: "TS",
704
1237
 
705
1238
 
1239
+
706
1240
  from: "TS",
707
1241
 
708
1242
 
1243
+
709
1244
  to: "TS",
710
1245
 
711
1246
 
@@ -717,9 +1252,11 @@ describe Freeclimb::RemoveFromQueueNotificationWebhook do
717
1252
  direction: Freeclimb::CallDirection::INBOUND,
718
1253
 
719
1254
 
1255
+
720
1256
  conference_id: "TS",
721
1257
 
722
1258
 
1259
+
723
1260
  queue_id: "TS",
724
1261
 
725
1262