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