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