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