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