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