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