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