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::TranscribeWebhook
18
19
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -34,57 +35,78 @@ describe Freeclimb::TranscribeWebhook 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
 
75
91
  describe 'test attribute "recording_id"' do
76
92
  it 'should work' do
93
+
77
94
  instance.recording_id = "TEST_STRING"
78
95
  expect(instance.recording_id).to eq("TEST_STRING")
79
96
 
97
+
98
+
80
99
  end
81
100
  end
82
101
 
83
102
  describe 'test attribute "recording_url"' do
84
103
  it 'should work' do
104
+
85
105
  instance.recording_url = "TEST_STRING"
86
106
  expect(instance.recording_url).to eq("TEST_STRING")
87
107
 
108
+
109
+
88
110
  end
89
111
  end
90
112
 
@@ -95,14 +117,19 @@ describe Freeclimb::TranscribeWebhook do
95
117
  instance.recording_size = 1
96
118
  expect(instance.recording_size).to eq(1)
97
119
 
120
+
121
+
98
122
  end
99
123
  end
100
124
 
101
125
  describe 'test attribute "recording_format"' do
102
126
  it 'should work' do
127
+
103
128
  instance.recording_format = "TEST_STRING"
104
129
  expect(instance.recording_format).to eq("TEST_STRING")
105
130
 
131
+
132
+
106
133
  end
107
134
  end
108
135
 
@@ -113,6 +140,8 @@ describe Freeclimb::TranscribeWebhook do
113
140
  instance.recording_duration_ms = 1
114
141
  expect(instance.recording_duration_ms).to eq(1)
115
142
 
143
+
144
+
116
145
  end
117
146
  end
118
147
 
@@ -148,9 +177,12 @@ describe Freeclimb::TranscribeWebhook do
148
177
  end
149
178
  describe 'test attribute "digit"' do
150
179
  it 'should work' do
180
+
151
181
  instance.digit = "TEST_STRING"
152
182
  expect(instance.digit).to eq("TEST_STRING")
153
183
 
184
+
185
+
154
186
  end
155
187
  end
156
188
 
@@ -159,6 +191,8 @@ describe Freeclimb::TranscribeWebhook do
159
191
  instance.privacy_for_logging = false
160
192
  expect(instance.privacy_for_logging).to eq(false)
161
193
 
194
+
195
+
162
196
  end
163
197
  end
164
198
 
@@ -167,6 +201,8 @@ describe Freeclimb::TranscribeWebhook do
167
201
  instance.privacy_for_recording = false
168
202
  expect(instance.privacy_for_recording).to eq(false)
169
203
 
204
+
205
+
170
206
  end
171
207
  end
172
208
 
@@ -192,6 +228,8 @@ describe Freeclimb::TranscribeWebhook do
192
228
  instance.barged_in_prompt_no = 1
193
229
  expect(instance.barged_in_prompt_no).to eq(1)
194
230
 
231
+
232
+
195
233
  end
196
234
  end
197
235
 
@@ -202,6 +240,8 @@ describe Freeclimb::TranscribeWebhook do
202
240
  instance.barged_in_prompt_ms = 1
203
241
  expect(instance.barged_in_prompt_ms).to eq(1)
204
242
 
243
+
244
+
205
245
  end
206
246
  end
207
247
 
@@ -212,6 +252,8 @@ describe Freeclimb::TranscribeWebhook do
212
252
  instance.barged_in_prompt_loop_no = 1
213
253
  expect(instance.barged_in_prompt_loop_no).to eq(1)
214
254
 
255
+
256
+
215
257
  end
216
258
  end
217
259
 
@@ -222,14 +264,19 @@ describe Freeclimb::TranscribeWebhook do
222
264
  instance.barge_in_time_ms = 1
223
265
  expect(instance.barge_in_time_ms).to eq(1)
224
266
 
267
+
268
+
225
269
  end
226
270
  end
227
271
 
228
272
  describe 'test attribute "transcript"' do
229
273
  it 'should work' do
274
+
230
275
  instance.transcript = "TEST_STRING"
231
276
  expect(instance.transcript).to eq("TEST_STRING")
232
277
 
278
+
279
+
233
280
  end
234
281
  end
235
282
 
@@ -263,171 +310,341 @@ describe Freeclimb::TranscribeWebhook do
263
310
  instance.transcription_duration_ms = 1
264
311
  expect(instance.transcription_duration_ms).to eq(1)
265
312
 
313
+
314
+
266
315
  end
267
316
  end
268
317
 
269
318
  describe 'test method "initialize"' do
270
319
  it 'properly initializes with values' do
271
320
  expect { instance = Freeclimb::TranscribeWebhook.new(
321
+
272
322
  request_type: "TS",
273
323
 
324
+
325
+
326
+
274
327
  account_id: "TS",
275
328
 
329
+
330
+
331
+
276
332
  call_id: "TS",
277
333
 
334
+
335
+
336
+
278
337
  from: "TS",
279
338
 
339
+
340
+
341
+
280
342
  to: "TS",
281
343
 
344
+
345
+
346
+
282
347
  recording_id: "TS",
283
348
 
349
+
350
+
351
+
284
352
  recording_url: "TS",
285
353
 
354
+
355
+
286
356
  recording_size: 1,
287
357
 
358
+
359
+
360
+
288
361
  recording_format: "TS",
289
362
 
363
+
364
+
290
365
  recording_duration_ms: 1,
291
366
 
292
367
 
368
+
369
+
293
370
  term_reason: Freeclimb::TranscribeTermReason::ERROR,
294
371
 
295
372
 
373
+
374
+
296
375
  record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
297
376
 
377
+
378
+
379
+
298
380
  digit: "TS",
299
381
 
382
+
383
+
300
384
  privacy_for_logging: true,
301
385
 
386
+
387
+
302
388
  privacy_for_recording: true,
303
389
 
304
390
 
391
+
392
+
305
393
  barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
306
394
 
395
+
396
+
307
397
  barged_in_prompt_no: 1,
308
398
 
399
+
400
+
309
401
  barged_in_prompt_ms: 1,
310
402
 
403
+
404
+
311
405
  barged_in_prompt_loop_no: 1,
312
406
 
407
+
408
+
313
409
  barge_in_time_ms: 1,
314
410
 
411
+
412
+
413
+
315
414
  transcript: "TS",
316
415
 
317
416
 
417
+
418
+
318
419
  transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
319
420
 
421
+
422
+
320
423
  transcription_duration_ms: 1,
321
424
 
425
+
426
+
322
427
  )}.not_to raise_error()
323
428
  end
324
429
  it 'fails to initialize with input argument that is not a hash in Freeclimb::TranscribeWebhook' do
325
430
  expect { instance = Freeclimb::TranscribeWebhook.new(
431
+
326
432
  request_type: "TS",
327
433
 
434
+
435
+
436
+
328
437
  account_id: "TS",
329
438
 
439
+
440
+
441
+
330
442
  call_id: "TS",
331
443
 
444
+
445
+
446
+
332
447
  from: "TS",
333
448
 
449
+
450
+
451
+
334
452
  to: "TS",
335
453
 
454
+
455
+
456
+
336
457
  recording_id: "TS",
337
458
 
459
+
460
+
461
+
338
462
  recording_url: "TS",
339
463
 
464
+
465
+
340
466
  recording_size: 1,
341
467
 
468
+
469
+
470
+
342
471
  recording_format: "TS",
343
472
 
473
+
474
+
344
475
  recording_duration_ms: 1,
345
476
 
346
477
 
478
+
479
+
347
480
  term_reason: Freeclimb::TranscribeTermReason::ERROR,
348
481
 
349
482
 
483
+
484
+
350
485
  record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
351
486
 
487
+
488
+
489
+
352
490
  digit: "TS",
353
491
 
492
+
493
+
354
494
  privacy_for_logging: true,
355
495
 
496
+
497
+
356
498
  privacy_for_recording: true,
357
499
 
358
500
 
501
+
502
+
359
503
  barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
360
504
 
505
+
506
+
361
507
  barged_in_prompt_no: 1,
362
508
 
509
+
510
+
363
511
  barged_in_prompt_ms: 1,
364
512
 
513
+
514
+
365
515
  barged_in_prompt_loop_no: 1,
366
516
 
517
+
518
+
367
519
  barge_in_time_ms: 1,
368
520
 
521
+
522
+
523
+
369
524
  transcript: "TS",
370
525
 
371
526
 
527
+
528
+
372
529
  transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
373
530
 
531
+
532
+
374
533
  transcription_duration_ms: 1,
375
534
 
535
+
536
+
376
537
  invalid_attribute: true
377
538
  )}.to raise_error(ArgumentError)
378
539
  end
379
540
  it 'fails to initialize with invalid attribute' do
380
541
  expect { instance = Freeclimb::TranscribeWebhook.new(
542
+
381
543
  request_type: "TS",
382
544
 
545
+
546
+
547
+
383
548
  account_id: "TS",
384
549
 
550
+
551
+
552
+
385
553
  call_id: "TS",
386
554
 
555
+
556
+
557
+
387
558
  from: "TS",
388
559
 
560
+
561
+
562
+
389
563
  to: "TS",
390
564
 
565
+
566
+
567
+
391
568
  recording_id: "TS",
392
569
 
570
+
571
+
572
+
393
573
  recording_url: "TS",
394
574
 
575
+
576
+
395
577
  recording_size: 1,
396
578
 
579
+
580
+
581
+
397
582
  recording_format: "TS",
398
583
 
584
+
585
+
399
586
  recording_duration_ms: 1,
400
587
 
401
588
 
589
+
590
+
402
591
  term_reason: Freeclimb::TranscribeTermReason::ERROR,
403
592
 
404
593
 
594
+
595
+
405
596
  record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
406
597
 
598
+
599
+
600
+
407
601
  digit: "TS",
408
602
 
603
+
604
+
409
605
  privacy_for_logging: true,
410
606
 
607
+
608
+
411
609
  privacy_for_recording: true,
412
610
 
413
611
 
612
+
613
+
414
614
  barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
415
615
 
616
+
617
+
416
618
  barged_in_prompt_no: 1,
417
619
 
620
+
621
+
418
622
  barged_in_prompt_ms: 1,
419
623
 
624
+
625
+
420
626
  barged_in_prompt_loop_no: 1,
421
627
 
628
+
629
+
422
630
  barge_in_time_ms: 1,
423
631
 
632
+
633
+
634
+
424
635
  transcript: "TS",
425
636
 
426
637
 
638
+
639
+
427
640
  transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
428
641
 
642
+
643
+
429
644
  transcription_duration_ms: 1,
430
645
 
646
+
647
+
431
648
  invalid_attribute: true
432
649
  )}.to raise_error(ArgumentError)
433
650
  end
@@ -436,56 +653,112 @@ describe Freeclimb::TranscribeWebhook do
436
653
  describe 'test method "valid"' do
437
654
  it 'checks if properties are valid' do
438
655
  instance = Freeclimb::TranscribeWebhook.new(
656
+
439
657
  request_type: "TS",
440
658
 
659
+
660
+
661
+
441
662
  account_id: "TS",
442
663
 
664
+
665
+
666
+
443
667
  call_id: "TS",
444
668
 
669
+
670
+
671
+
445
672
  from: "TS",
446
673
 
674
+
675
+
676
+
447
677
  to: "TS",
448
678
 
679
+
680
+
681
+
449
682
  recording_id: "TS",
450
683
 
684
+
685
+
686
+
451
687
  recording_url: "TS",
452
688
 
689
+
690
+
453
691
  recording_size: 1,
454
692
 
693
+
694
+
695
+
455
696
  recording_format: "TS",
456
697
 
698
+
699
+
457
700
  recording_duration_ms: 1,
458
701
 
459
702
 
703
+
704
+
460
705
  term_reason: Freeclimb::TranscribeTermReason::ERROR,
461
706
 
462
707
 
708
+
709
+
463
710
  record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
464
711
 
712
+
713
+
714
+
465
715
  digit: "TS",
466
716
 
717
+
718
+
467
719
  privacy_for_logging: true,
468
720
 
721
+
722
+
469
723
  privacy_for_recording: true,
470
724
 
471
725
 
726
+
727
+
472
728
  barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
473
729
 
474
- barged_in_prompt_no: 1,
730
+
731
+
732
+ barged_in_prompt_no: 1,
733
+
734
+
475
735
 
476
736
  barged_in_prompt_ms: 1,
477
737
 
738
+
739
+
478
740
  barged_in_prompt_loop_no: 1,
479
741
 
742
+
743
+
480
744
  barge_in_time_ms: 1,
481
745
 
746
+
747
+
748
+
482
749
  transcript: "TS",
483
750
 
484
751
 
752
+
753
+
485
754
  transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
486
755
 
756
+
757
+
487
758
  transcription_duration_ms: 1,
488
759
 
760
+
761
+
489
762
  )
490
763
  expect(instance.valid?).to eq(true)
491
764
  end
@@ -502,108 +775,242 @@ describe Freeclimb::TranscribeWebhook do
502
775
 
503
776
  describe 'test method "eql?"' do
504
777
  it 'checks if objects are equal' do
505
- obj = Object.new()
778
+
779
+
780
+
781
+
782
+
783
+
784
+
785
+
786
+
787
+
788
+
789
+
790
+
791
+
792
+
793
+
794
+
795
+
796
+
797
+
798
+
799
+
800
+
506
801
  instance_1 = Freeclimb::TranscribeWebhook.new(
802
+
507
803
  request_type: "TS",
508
804
 
805
+
806
+
807
+
509
808
  account_id: "TS",
510
809
 
810
+
811
+
812
+
511
813
  call_id: "TS",
512
814
 
815
+
816
+
817
+
513
818
  from: "TS",
514
819
 
820
+
821
+
822
+
515
823
  to: "TS",
516
824
 
825
+
826
+
827
+
517
828
  recording_id: "TS",
518
829
 
830
+
831
+
832
+
519
833
  recording_url: "TS",
520
834
 
835
+
836
+
521
837
  recording_size: 1,
522
838
 
839
+
840
+
841
+
523
842
  recording_format: "TS",
524
843
 
844
+
845
+
525
846
  recording_duration_ms: 1,
526
847
 
527
848
 
849
+
850
+
851
+
852
+
528
853
  term_reason: Freeclimb::TranscribeTermReason::ERROR,
529
854
 
530
855
 
856
+
857
+
531
858
  record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
532
859
 
860
+
533
861
  digit: "TS",
534
862
 
863
+
864
+
535
865
  privacy_for_logging: true,
536
866
 
867
+
868
+
537
869
  privacy_for_recording: true,
538
870
 
539
871
 
872
+
873
+
874
+
875
+
540
876
  barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
541
877
 
542
878
  barged_in_prompt_no: 1,
543
879
 
880
+
881
+
544
882
  barged_in_prompt_ms: 1,
545
883
 
884
+
885
+
546
886
  barged_in_prompt_loop_no: 1,
547
887
 
888
+
889
+
548
890
  barge_in_time_ms: 1,
549
891
 
892
+
893
+
894
+
550
895
  transcript: "TS",
551
896
 
552
897
 
898
+
899
+
900
+
901
+
553
902
  transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
554
903
 
555
904
  transcription_duration_ms: 1,
556
905
 
906
+
907
+
557
908
  )
558
909
  instance_2 = Freeclimb::TranscribeWebhook.new(
910
+
559
911
  request_type: "TS",
560
912
 
913
+
914
+
915
+
561
916
  account_id: "TS",
562
917
 
918
+
919
+
920
+
563
921
  call_id: "TS",
564
922
 
923
+
924
+
925
+
565
926
  from: "TS",
566
927
 
928
+
929
+
930
+
567
931
  to: "TS",
568
932
 
933
+
934
+
935
+
569
936
  recording_id: "TS",
570
937
 
938
+
939
+
940
+
571
941
  recording_url: "TS",
572
942
 
943
+
944
+
945
+
946
+
573
947
  recording_size: 1,
574
948
 
949
+
575
950
  recording_format: "TS",
576
951
 
952
+
953
+
954
+
955
+
577
956
  recording_duration_ms: 1,
578
957
 
579
958
 
959
+
960
+
580
961
  term_reason: Freeclimb::TranscribeTermReason::ERROR,
581
962
 
582
963
 
964
+
965
+
583
966
  record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
584
967
 
968
+
585
969
  digit: "TS",
586
970
 
971
+
972
+
587
973
  privacy_for_logging: true,
588
974
 
975
+
976
+
589
977
  privacy_for_recording: true,
590
978
 
591
979
 
980
+
981
+
982
+
983
+
592
984
  barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
593
985
 
986
+
987
+
594
988
  barged_in_prompt_no: 1,
595
989
 
990
+
991
+
596
992
  barged_in_prompt_ms: 1,
597
993
 
994
+
995
+
598
996
  barged_in_prompt_loop_no: 1,
599
997
 
998
+
999
+
600
1000
  barge_in_time_ms: 1,
601
1001
 
1002
+
602
1003
  transcript: "TS",
603
1004
 
604
1005
 
1006
+
1007
+
1008
+
1009
+
605
1010
  transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
606
1011
 
1012
+
1013
+
607
1014
  transcription_duration_ms: 1,
608
1015
 
609
1016
  )
@@ -612,108 +1019,220 @@ describe Freeclimb::TranscribeWebhook do
612
1019
 
613
1020
  it 'checks if objects are not equal' do
614
1021
  instance_1 = Freeclimb::TranscribeWebhook.new(
1022
+
615
1023
  request_type: "TS",
616
1024
 
1025
+
1026
+
1027
+
617
1028
  account_id: "TS",
618
1029
 
1030
+
1031
+
1032
+
619
1033
  call_id: "TS",
620
1034
 
1035
+
1036
+
1037
+
621
1038
  from: "TS",
622
1039
 
1040
+
1041
+
1042
+
623
1043
  to: "TS",
624
1044
 
1045
+
1046
+
1047
+
625
1048
  recording_id: "TS",
626
1049
 
1050
+
1051
+
1052
+
627
1053
  recording_url: "TS",
628
1054
 
1055
+
1056
+
629
1057
  recording_size: 2,
630
1058
 
1059
+
1060
+
1061
+
631
1062
  recording_format: "TS",
632
1063
 
1064
+
1065
+
633
1066
  recording_duration_ms: 2,
634
1067
 
635
1068
 
1069
+
1070
+
1071
+
1072
+
636
1073
  term_reason: Freeclimb::TranscribeTermReason::ERROR,
637
1074
 
638
1075
 
1076
+
1077
+
639
1078
  record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
640
1079
 
1080
+
641
1081
  digit: "TS",
642
1082
 
1083
+
1084
+
643
1085
  privacy_for_logging: true,
644
1086
 
1087
+
1088
+
645
1089
  privacy_for_recording: true,
646
1090
 
647
1091
 
1092
+
1093
+
1094
+
1095
+
648
1096
  barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
649
1097
 
650
1098
  barged_in_prompt_no: 2,
651
1099
 
1100
+
1101
+
652
1102
  barged_in_prompt_ms: 2,
653
1103
 
1104
+
1105
+
654
1106
  barged_in_prompt_loop_no: 2,
655
1107
 
1108
+
1109
+
656
1110
  barge_in_time_ms: 2,
657
1111
 
1112
+
1113
+
1114
+
658
1115
  transcript: "TS",
659
1116
 
660
1117
 
1118
+
1119
+
1120
+
1121
+
661
1122
  transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
662
1123
 
663
1124
  transcription_duration_ms: 2,
664
1125
 
1126
+
1127
+
665
1128
  )
666
1129
  instance_2 = Freeclimb::TranscribeWebhook.new(
1130
+
667
1131
  request_type: "ST",
668
1132
 
1133
+
1134
+
1135
+
669
1136
  account_id: "ST",
670
1137
 
1138
+
1139
+
1140
+
671
1141
  call_id: "ST",
672
1142
 
1143
+
1144
+
1145
+
673
1146
  from: "ST",
674
1147
 
1148
+
1149
+
1150
+
675
1151
  to: "ST",
676
1152
 
1153
+
1154
+
1155
+
677
1156
  recording_id: "ST",
678
1157
 
1158
+
1159
+
1160
+
679
1161
  recording_url: "ST",
680
1162
 
1163
+
1164
+
681
1165
  recording_size: 1,
682
1166
 
1167
+
1168
+
1169
+
683
1170
  recording_format: "ST",
684
1171
 
1172
+
1173
+
685
1174
  recording_duration_ms: 1,
686
1175
 
687
1176
 
1177
+
1178
+
1179
+
1180
+
688
1181
  term_reason: nil,
689
1182
 
690
1183
 
1184
+
1185
+
691
1186
  record_term_reason: nil,
692
1187
 
1188
+
693
1189
  digit: "ST",
694
1190
 
1191
+
1192
+
695
1193
  privacy_for_logging: false,
696
1194
 
1195
+
1196
+
697
1197
  privacy_for_recording: false,
698
1198
 
699
1199
 
1200
+
1201
+
1202
+
1203
+
700
1204
  barge_in_reason: nil,
701
1205
 
702
1206
  barged_in_prompt_no: 1,
703
1207
 
1208
+
1209
+
704
1210
  barged_in_prompt_ms: 1,
705
1211
 
1212
+
1213
+
706
1214
  barged_in_prompt_loop_no: 1,
707
1215
 
1216
+
1217
+
708
1218
  barge_in_time_ms: 1,
709
1219
 
1220
+
1221
+
1222
+
710
1223
  transcript: "ST",
711
1224
 
712
1225
 
1226
+
1227
+
1228
+
1229
+
713
1230
  transcribe_reason: nil,
714
1231
 
715
1232
  transcription_duration_ms: 1,
716
1233
 
1234
+
1235
+
717
1236
  )
718
1237
  expect(instance_1.eql?(instance_2)).to eq(false)
719
1238
  end
@@ -722,56 +1241,112 @@ describe Freeclimb::TranscribeWebhook do
722
1241
  describe 'test method "hash"' do
723
1242
  it 'calculates hash code' do
724
1243
  instance = Freeclimb::TranscribeWebhook.new(
1244
+
725
1245
  request_type: "TS",
726
1246
 
1247
+
1248
+
1249
+
727
1250
  account_id: "TS",
728
1251
 
1252
+
1253
+
1254
+
729
1255
  call_id: "TS",
730
1256
 
1257
+
1258
+
1259
+
731
1260
  from: "TS",
732
1261
 
733
- to: "TS",
1262
+
1263
+
1264
+
1265
+ to: "TS",
1266
+
1267
+
1268
+
734
1269
 
735
1270
  recording_id: "TS",
736
1271
 
1272
+
1273
+
1274
+
737
1275
  recording_url: "TS",
738
1276
 
1277
+
1278
+
739
1279
  recording_size: 1,
740
1280
 
1281
+
1282
+
1283
+
741
1284
  recording_format: "TS",
742
1285
 
1286
+
1287
+
743
1288
  recording_duration_ms: 1,
744
1289
 
745
1290
 
1291
+
1292
+
746
1293
  term_reason: Freeclimb::TranscribeTermReason::ERROR,
747
1294
 
748
1295
 
1296
+
1297
+
749
1298
  record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
750
1299
 
1300
+
1301
+
1302
+
751
1303
  digit: "TS",
752
1304
 
1305
+
1306
+
753
1307
  privacy_for_logging: true,
754
1308
 
1309
+
1310
+
755
1311
  privacy_for_recording: true,
756
1312
 
757
1313
 
1314
+
1315
+
758
1316
  barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
759
1317
 
1318
+
1319
+
760
1320
  barged_in_prompt_no: 1,
761
1321
 
1322
+
1323
+
762
1324
  barged_in_prompt_ms: 1,
763
1325
 
1326
+
1327
+
764
1328
  barged_in_prompt_loop_no: 1,
765
1329
 
1330
+
1331
+
766
1332
  barge_in_time_ms: 1,
767
1333
 
1334
+
1335
+
1336
+
768
1337
  transcript: "TS",
769
1338
 
770
1339
 
1340
+
1341
+
771
1342
  transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
772
1343
 
1344
+
1345
+
773
1346
  transcription_duration_ms: 1,
774
1347
 
1348
+
1349
+
775
1350
  )
776
1351
  expect(instance.hash).to be_a_kind_of(Integer)
777
1352
  end
@@ -780,108 +1355,220 @@ describe Freeclimb::TranscribeWebhook do
780
1355
  describe 'test method "build_from_hash"' do
781
1356
  it 'builds equivalent model from hash code' do
782
1357
  instance_1 = Freeclimb::TranscribeWebhook.new(
1358
+
783
1359
  request_type: "TS",
784
1360
 
1361
+
1362
+
1363
+
785
1364
  account_id: "TS",
786
1365
 
1366
+
1367
+
1368
+
787
1369
  call_id: "TS",
788
1370
 
1371
+
1372
+
1373
+
789
1374
  from: "TS",
790
1375
 
1376
+
1377
+
1378
+
791
1379
  to: "TS",
792
1380
 
1381
+
1382
+
1383
+
793
1384
  recording_id: "TS",
794
1385
 
1386
+
1387
+
1388
+
795
1389
  recording_url: "TS",
796
1390
 
1391
+
1392
+
797
1393
  recording_size: 1,
798
1394
 
1395
+
1396
+
1397
+
799
1398
  recording_format: "TS",
800
1399
 
1400
+
1401
+
801
1402
  recording_duration_ms: 1,
802
1403
 
803
1404
 
1405
+
1406
+
804
1407
  term_reason: Freeclimb::TranscribeTermReason::ERROR,
805
1408
 
806
1409
 
1410
+
1411
+
807
1412
  record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
808
1413
 
1414
+
1415
+
1416
+
809
1417
  digit: "TS",
810
1418
 
1419
+
1420
+
811
1421
  privacy_for_logging: true,
812
1422
 
1423
+
1424
+
813
1425
  privacy_for_recording: true,
814
1426
 
815
1427
 
1428
+
1429
+
816
1430
  barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
817
1431
 
1432
+
1433
+
818
1434
  barged_in_prompt_no: 1,
819
1435
 
1436
+
1437
+
820
1438
  barged_in_prompt_ms: 1,
821
1439
 
1440
+
1441
+
822
1442
  barged_in_prompt_loop_no: 1,
823
1443
 
1444
+
1445
+
824
1446
  barge_in_time_ms: 1,
825
1447
 
1448
+
1449
+
1450
+
826
1451
  transcript: "TS",
827
1452
 
828
1453
 
1454
+
1455
+
829
1456
  transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
830
1457
 
1458
+
1459
+
831
1460
  transcription_duration_ms: 1,
832
1461
 
1462
+
1463
+
833
1464
  )
834
1465
  instance_2 = Freeclimb::TranscribeWebhook.new(
1466
+
835
1467
  request_type: "TS",
836
1468
 
1469
+
1470
+
1471
+
837
1472
  account_id: "TS",
838
1473
 
1474
+
1475
+
1476
+
839
1477
  call_id: "TS",
840
1478
 
1479
+
1480
+
1481
+
841
1482
  from: "TS",
842
1483
 
1484
+
1485
+
1486
+
843
1487
  to: "TS",
844
1488
 
1489
+
1490
+
1491
+
845
1492
  recording_id: "TS",
846
1493
 
1494
+
1495
+
1496
+
847
1497
  recording_url: "TS",
848
1498
 
1499
+
1500
+
849
1501
  recording_size: 1,
850
1502
 
1503
+
1504
+
1505
+
851
1506
  recording_format: "TS",
852
1507
 
1508
+
1509
+
853
1510
  recording_duration_ms: 1,
854
1511
 
855
1512
 
1513
+
1514
+
856
1515
  term_reason: Freeclimb::TranscribeTermReason::ERROR,
857
1516
 
858
1517
 
1518
+
1519
+
859
1520
  record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
860
1521
 
1522
+
1523
+
1524
+
861
1525
  digit: "TS",
862
1526
 
1527
+
1528
+
863
1529
  privacy_for_logging: true,
864
1530
 
1531
+
1532
+
865
1533
  privacy_for_recording: true,
866
1534
 
867
1535
 
1536
+
1537
+
868
1538
  barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
869
1539
 
1540
+
1541
+
870
1542
  barged_in_prompt_no: 1,
871
1543
 
1544
+
1545
+
872
1546
  barged_in_prompt_ms: 1,
873
1547
 
1548
+
1549
+
874
1550
  barged_in_prompt_loop_no: 1,
875
1551
 
1552
+
1553
+
876
1554
  barge_in_time_ms: 1,
877
1555
 
1556
+
1557
+
1558
+
878
1559
  transcript: "TS",
879
1560
 
880
1561
 
1562
+
1563
+
881
1564
  transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
882
1565
 
1566
+
1567
+
883
1568
  transcription_duration_ms: 1,
884
1569
 
1570
+
1571
+
885
1572
  )
886
1573
 
887
1574
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
@@ -890,169 +1577,327 @@ describe Freeclimb::TranscribeWebhook do
890
1577
 
891
1578
  describe 'test method "_deserialize"' do
892
1579
  instance = Freeclimb::TranscribeWebhook.new(
1580
+
893
1581
  request_type: "TS",
894
1582
 
1583
+
1584
+
1585
+
895
1586
  account_id: "TS",
896
1587
 
1588
+
1589
+
1590
+
897
1591
  call_id: "TS",
898
1592
 
1593
+
1594
+
1595
+
899
1596
  from: "TS",
900
1597
 
1598
+
1599
+
1600
+
901
1601
  to: "TS",
902
1602
 
1603
+
1604
+
1605
+
903
1606
  recording_id: "TS",
904
1607
 
1608
+
1609
+
1610
+
905
1611
  recording_url: "TS",
906
1612
 
1613
+
1614
+
907
1615
  recording_size: 1,
908
1616
 
1617
+
1618
+
1619
+
909
1620
  recording_format: "TS",
910
1621
 
1622
+
1623
+
911
1624
  recording_duration_ms: 1,
912
1625
 
913
1626
 
1627
+
1628
+
914
1629
  term_reason: Freeclimb::TranscribeTermReason::ERROR,
915
1630
 
916
1631
 
1632
+
1633
+
917
1634
  record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
918
1635
 
1636
+
1637
+
1638
+
919
1639
  digit: "TS",
920
1640
 
1641
+
1642
+
921
1643
  privacy_for_logging: true,
922
1644
 
1645
+
1646
+
923
1647
  privacy_for_recording: true,
924
1648
 
925
1649
 
1650
+
1651
+
926
1652
  barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
927
1653
 
1654
+
1655
+
928
1656
  barged_in_prompt_no: 1,
929
1657
 
1658
+
1659
+
930
1660
  barged_in_prompt_ms: 1,
931
1661
 
1662
+
1663
+
932
1664
  barged_in_prompt_loop_no: 1,
933
1665
 
1666
+
1667
+
934
1668
  barge_in_time_ms: 1,
935
1669
 
1670
+
1671
+
1672
+
936
1673
  transcript: "TS",
937
1674
 
938
1675
 
1676
+
1677
+
939
1678
  transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
940
1679
 
1680
+
1681
+
941
1682
  transcription_duration_ms: 1,
942
1683
 
1684
+
1685
+
943
1686
  )
944
1687
  it 'deserializes the data of request_type' do
945
1688
  expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String)
946
1689
  end
1690
+
1691
+
947
1692
  it 'deserializes the data of account_id' do
948
1693
  expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
949
1694
  end
1695
+
1696
+
950
1697
  it 'deserializes the data of call_id' do
951
1698
  expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String)
952
1699
  end
1700
+
1701
+
953
1702
  it 'deserializes the data of from' do
954
1703
  expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String)
955
1704
  end
1705
+
1706
+
956
1707
  it 'deserializes the data of to' do
957
1708
  expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String)
958
1709
  end
1710
+
1711
+
959
1712
  it 'deserializes the data of recording_id' do
960
1713
  expect(instance._deserialize("String", instance.recording_id)).to be_a_kind_of(String)
961
1714
  end
1715
+
1716
+
962
1717
  it 'deserializes the data of recording_url' do
963
1718
  expect(instance._deserialize("String", instance.recording_url)).to be_a_kind_of(String)
964
1719
  end
1720
+
1721
+
965
1722
  it 'deserializes the data of recording_size' do
966
1723
  expect(instance._deserialize("Integer", instance.recording_size)).to be_a_kind_of(Integer)
967
1724
  end
1725
+
1726
+
968
1727
  it 'deserializes the data of recording_format' do
969
1728
  expect(instance._deserialize("String", instance.recording_format)).to be_a_kind_of(String)
970
1729
  end
1730
+
1731
+
971
1732
  it 'deserializes the data of recording_duration_ms' do
972
1733
  expect(instance._deserialize("Integer", instance.recording_duration_ms)).to be_a_kind_of(Integer)
973
1734
  end
1735
+
1736
+
1737
+
1738
+
1739
+
1740
+
974
1741
  it 'deserializes the data of digit' do
975
1742
  expect(instance._deserialize("String", instance.digit)).to be_a_kind_of(String)
976
1743
  end
1744
+
1745
+
1746
+
1747
+
977
1748
  it 'deserializes the data of privacy_for_logging' do
978
1749
  expect(instance._deserialize("Boolean", instance.privacy_for_logging)).to be_a_kind_of(TrueClass)
979
1750
  end
1751
+
1752
+
980
1753
  it 'deserializes the data of privacy_for_recording' do
981
1754
  expect(instance._deserialize("Boolean", instance.privacy_for_recording)).to be_a_kind_of(TrueClass)
982
1755
  end
1756
+
1757
+
983
1758
  it 'deserializes the data of barged_in_prompt_no' do
984
1759
  expect(instance._deserialize("Integer", instance.barged_in_prompt_no)).to be_a_kind_of(Integer)
985
1760
  end
1761
+
1762
+
986
1763
  it 'deserializes the data of barged_in_prompt_ms' do
987
1764
  expect(instance._deserialize("Integer", instance.barged_in_prompt_ms)).to be_a_kind_of(Integer)
988
1765
  end
1766
+
1767
+
989
1768
  it 'deserializes the data of barged_in_prompt_loop_no' do
990
1769
  expect(instance._deserialize("Integer", instance.barged_in_prompt_loop_no)).to be_a_kind_of(Integer)
991
1770
  end
1771
+
1772
+
992
1773
  it 'deserializes the data of barge_in_time_ms' do
993
1774
  expect(instance._deserialize("Integer", instance.barge_in_time_ms)).to be_a_kind_of(Integer)
994
1775
  end
1776
+
1777
+
995
1778
  it 'deserializes the data of transcript' do
996
1779
  expect(instance._deserialize("String", instance.transcript)).to be_a_kind_of(String)
997
1780
  end
1781
+
1782
+
1783
+
1784
+
998
1785
  it 'deserializes the data of transcription_duration_ms' do
999
1786
  expect(instance._deserialize("Integer", instance.transcription_duration_ms)).to be_a_kind_of(Integer)
1000
1787
  end
1788
+
1789
+
1001
1790
  end
1002
1791
 
1003
1792
  describe 'test method "to_s"' do
1004
1793
  it 'returns the string representation of the object' do
1005
1794
  instance = Freeclimb::TranscribeWebhook.new(
1795
+
1006
1796
  request_type: "TS",
1007
1797
 
1798
+
1799
+
1800
+
1008
1801
  account_id: "TS",
1009
1802
 
1803
+
1804
+
1805
+
1010
1806
  call_id: "TS",
1011
1807
 
1808
+
1809
+
1810
+
1012
1811
  from: "TS",
1013
1812
 
1813
+
1814
+
1815
+
1014
1816
  to: "TS",
1015
1817
 
1818
+
1819
+
1820
+
1016
1821
  recording_id: "TS",
1017
1822
 
1823
+
1824
+
1825
+
1018
1826
  recording_url: "TS",
1019
1827
 
1828
+
1829
+
1020
1830
  recording_size: 1,
1021
1831
 
1832
+
1833
+
1834
+
1022
1835
  recording_format: "TS",
1023
1836
 
1837
+
1838
+
1024
1839
  recording_duration_ms: 1,
1025
1840
 
1026
1841
 
1842
+
1843
+
1027
1844
  term_reason: Freeclimb::TranscribeTermReason::ERROR,
1028
1845
 
1029
1846
 
1847
+
1848
+
1030
1849
  record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
1031
1850
 
1851
+
1852
+
1853
+
1032
1854
  digit: "TS",
1033
1855
 
1856
+
1857
+
1034
1858
  privacy_for_logging: true,
1035
1859
 
1860
+
1861
+
1036
1862
  privacy_for_recording: true,
1037
1863
 
1038
1864
 
1865
+
1866
+
1039
1867
  barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
1040
1868
 
1869
+
1870
+
1041
1871
  barged_in_prompt_no: 1,
1042
1872
 
1873
+
1874
+
1043
1875
  barged_in_prompt_ms: 1,
1044
1876
 
1877
+
1878
+
1045
1879
  barged_in_prompt_loop_no: 1,
1046
1880
 
1881
+
1882
+
1047
1883
  barge_in_time_ms: 1,
1048
1884
 
1885
+
1886
+
1887
+
1049
1888
  transcript: "TS",
1050
1889
 
1051
1890
 
1891
+
1892
+
1052
1893
  transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
1053
1894
 
1895
+
1896
+
1054
1897
  transcription_duration_ms: 1,
1055
1898
 
1899
+
1900
+
1056
1901
  )
1057
1902
  expect(instance.to_s).to eq(instance.to_hash.to_s)
1058
1903
  end
@@ -1061,164 +1906,354 @@ describe Freeclimb::TranscribeWebhook do
1061
1906
  describe 'test method "to_hash"' do
1062
1907
  it 'returns the object in the form of hash' do
1063
1908
  instance = Freeclimb::TranscribeWebhook.new(
1909
+
1064
1910
  request_type: "TS",
1065
1911
 
1912
+
1913
+
1914
+
1066
1915
  account_id: "TS",
1067
1916
 
1917
+
1918
+
1919
+
1068
1920
  call_id: "TS",
1069
1921
 
1922
+
1923
+
1924
+
1070
1925
  from: "TS",
1071
1926
 
1927
+
1928
+
1929
+
1072
1930
  to: "TS",
1073
1931
 
1932
+
1933
+
1934
+
1074
1935
  recording_id: "TS",
1075
1936
 
1937
+
1938
+
1939
+
1076
1940
  recording_url: "TS",
1077
1941
 
1942
+
1943
+
1078
1944
  recording_size: 1,
1079
1945
 
1946
+
1947
+
1948
+
1080
1949
  recording_format: "TS",
1081
1950
 
1951
+
1952
+
1082
1953
  recording_duration_ms: 1,
1083
1954
 
1084
1955
 
1956
+
1957
+
1085
1958
  term_reason: Freeclimb::TranscribeTermReason::ERROR,
1086
1959
 
1087
1960
 
1961
+
1962
+
1088
1963
  record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
1089
1964
 
1965
+
1966
+
1967
+
1090
1968
  digit: "TS",
1091
1969
 
1970
+
1971
+
1092
1972
  privacy_for_logging: true,
1093
1973
 
1974
+
1975
+
1094
1976
  privacy_for_recording: true,
1095
1977
 
1096
1978
 
1979
+
1980
+
1097
1981
  barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
1098
1982
 
1983
+
1984
+
1099
1985
  barged_in_prompt_no: 1,
1100
1986
 
1987
+
1988
+
1101
1989
  barged_in_prompt_ms: 1,
1102
1990
 
1991
+
1992
+
1103
1993
  barged_in_prompt_loop_no: 1,
1104
1994
 
1995
+
1996
+
1105
1997
  barge_in_time_ms: 1,
1106
1998
 
1999
+
2000
+
2001
+
1107
2002
  transcript: "TS",
1108
2003
 
1109
2004
 
2005
+
2006
+
1110
2007
  transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
1111
2008
 
2009
+
2010
+
1112
2011
  transcription_duration_ms: 1,
1113
2012
 
2013
+
2014
+
1114
2015
  )
1115
2016
  expect(instance.to_hash).to be_a_kind_of(Hash)
1116
2017
  end
1117
2018
  it 'creates equal hash for two equal objects' do
1118
- obj = Object.new()
2019
+
2020
+
2021
+
2022
+
2023
+
2024
+
2025
+
2026
+
2027
+
2028
+
2029
+
2030
+
2031
+
2032
+
2033
+
2034
+
2035
+
2036
+
2037
+
2038
+
2039
+
2040
+
2041
+
1119
2042
  instance_1 = Freeclimb::TranscribeWebhook.new(
2043
+
1120
2044
  request_type: "TS",
1121
2045
 
2046
+
2047
+
2048
+
1122
2049
  account_id: "TS",
1123
2050
 
2051
+
2052
+
2053
+
1124
2054
  call_id: "TS",
1125
2055
 
2056
+
2057
+
2058
+
1126
2059
  from: "TS",
1127
2060
 
2061
+
2062
+
2063
+
1128
2064
  to: "TS",
1129
2065
 
2066
+
2067
+
2068
+
1130
2069
  recording_id: "TS",
1131
2070
 
2071
+
2072
+
2073
+
1132
2074
  recording_url: "TS",
1133
2075
 
2076
+
2077
+
1134
2078
  recording_size: 1,
1135
2079
 
2080
+
2081
+
2082
+
1136
2083
  recording_format: "TS",
1137
2084
 
2085
+
2086
+
1138
2087
  recording_duration_ms: 1,
1139
2088
 
1140
2089
 
2090
+
2091
+
1141
2092
  term_reason: Freeclimb::TranscribeTermReason::ERROR,
1142
2093
 
1143
2094
 
2095
+
2096
+
1144
2097
  record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
1145
2098
 
2099
+
2100
+
2101
+
1146
2102
  digit: "TS",
1147
2103
 
2104
+
2105
+
1148
2106
  privacy_for_logging: true,
1149
2107
 
2108
+
2109
+
1150
2110
  privacy_for_recording: true,
1151
2111
 
1152
2112
 
2113
+
2114
+
1153
2115
  barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
1154
2116
 
2117
+
2118
+
1155
2119
  barged_in_prompt_no: 1,
1156
2120
 
2121
+
2122
+
1157
2123
  barged_in_prompt_ms: 1,
1158
2124
 
2125
+
2126
+
1159
2127
  barged_in_prompt_loop_no: 1,
1160
2128
 
2129
+
2130
+
1161
2131
  barge_in_time_ms: 1,
1162
2132
 
2133
+
2134
+
2135
+
1163
2136
  transcript: "TS",
1164
2137
 
1165
2138
 
2139
+
2140
+
1166
2141
  transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
1167
2142
 
2143
+
2144
+
1168
2145
  transcription_duration_ms: 1,
1169
2146
 
2147
+
2148
+
1170
2149
  )
1171
2150
  instance_2 = Freeclimb::TranscribeWebhook.new(
2151
+
1172
2152
  request_type: "TS",
1173
2153
 
2154
+
2155
+
2156
+
1174
2157
  account_id: "TS",
1175
2158
 
2159
+
2160
+
2161
+
1176
2162
  call_id: "TS",
1177
2163
 
2164
+
2165
+
2166
+
1178
2167
  from: "TS",
1179
2168
 
2169
+
2170
+
2171
+
1180
2172
  to: "TS",
1181
2173
 
2174
+
2175
+
2176
+
1182
2177
  recording_id: "TS",
1183
2178
 
2179
+
2180
+
2181
+
1184
2182
  recording_url: "TS",
1185
2183
 
2184
+
2185
+
1186
2186
  recording_size: 1,
1187
2187
 
2188
+
2189
+
2190
+
1188
2191
  recording_format: "TS",
1189
2192
 
2193
+
2194
+
1190
2195
  recording_duration_ms: 1,
1191
2196
 
1192
2197
 
2198
+
2199
+
1193
2200
  term_reason: Freeclimb::TranscribeTermReason::ERROR,
1194
2201
 
1195
2202
 
2203
+
2204
+
1196
2205
  record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
1197
2206
 
2207
+
2208
+
2209
+
1198
2210
  digit: "TS",
1199
2211
 
2212
+
2213
+
1200
2214
  privacy_for_logging: true,
1201
2215
 
2216
+
2217
+
1202
2218
  privacy_for_recording: true,
1203
2219
 
1204
2220
 
2221
+
2222
+
1205
2223
  barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
1206
2224
 
2225
+
2226
+
1207
2227
  barged_in_prompt_no: 1,
1208
2228
 
2229
+
2230
+
1209
2231
  barged_in_prompt_ms: 1,
1210
2232
 
2233
+
2234
+
1211
2235
  barged_in_prompt_loop_no: 1,
1212
2236
 
2237
+
2238
+
1213
2239
  barge_in_time_ms: 1,
1214
2240
 
2241
+
2242
+
2243
+
1215
2244
  transcript: "TS",
1216
2245
 
1217
2246
 
2247
+
2248
+
1218
2249
  transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
1219
2250
 
2251
+
2252
+
1220
2253
  transcription_duration_ms: 1,
1221
2254
 
2255
+
2256
+
1222
2257
  )
1223
2258
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
1224
2259
  end
@@ -1226,30 +2261,38 @@ describe Freeclimb::TranscribeWebhook do
1226
2261
 
1227
2262
  describe 'test method "_to_hash"' do
1228
2263
  instance = Freeclimb::TranscribeWebhook.new(
2264
+
1229
2265
  request_type: "TS",
1230
2266
 
1231
2267
 
2268
+
1232
2269
  account_id: "TS",
1233
2270
 
1234
2271
 
2272
+
1235
2273
  call_id: "TS",
1236
2274
 
1237
2275
 
2276
+
1238
2277
  from: "TS",
1239
2278
 
1240
2279
 
2280
+
1241
2281
  to: "TS",
1242
2282
 
1243
2283
 
2284
+
1244
2285
  recording_id: "TS",
1245
2286
 
1246
2287
 
2288
+
1247
2289
  recording_url: "TS",
1248
2290
 
1249
2291
 
1250
2292
  recording_size: 1,
1251
2293
 
1252
2294
 
2295
+
1253
2296
  recording_format: "TS",
1254
2297
 
1255
2298
 
@@ -1264,6 +2307,7 @@ describe Freeclimb::TranscribeWebhook do
1264
2307
  record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
1265
2308
 
1266
2309
 
2310
+
1267
2311
  digit: "TS",
1268
2312
 
1269
2313
 
@@ -1289,6 +2333,7 @@ describe Freeclimb::TranscribeWebhook do
1289
2333
  barge_in_time_ms: 1,
1290
2334
 
1291
2335
 
2336
+
1292
2337
  transcript: "TS",
1293
2338
 
1294
2339