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::ConferenceResult
18
19
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -28,25 +29,34 @@ describe Freeclimb::ConferenceResult 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::ConferenceResult 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 "conference_id"' do
64
76
  it 'should work' do
77
+
65
78
  instance.conference_id = "TEST_STRING"
66
79
  expect(instance.conference_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 "_alias"' do
80
98
  it 'should work' do
99
+
81
100
  instance._alias = "TEST_STRING"
82
101
  expect(instance._alias).to eq("TEST_STRING")
83
102
 
103
+
104
+
84
105
  end
85
106
  end
86
107
 
@@ -108,6 +129,8 @@ describe Freeclimb::ConferenceResult do
108
129
  instance.record = false
109
130
  expect(instance.record).to eq(false)
110
131
 
132
+
133
+
111
134
  end
112
135
  end
113
136
 
@@ -132,25 +155,34 @@ describe Freeclimb::ConferenceResult do
132
155
  end
133
156
  describe 'test attribute "wait_url"' do
134
157
  it 'should work' do
158
+
135
159
  instance.wait_url = "TEST_STRING"
136
160
  expect(instance.wait_url).to eq("TEST_STRING")
137
161
 
162
+
163
+
138
164
  end
139
165
  end
140
166
 
141
167
  describe 'test attribute "action_url"' do
142
168
  it 'should work' do
169
+
143
170
  instance.action_url = "TEST_STRING"
144
171
  expect(instance.action_url).to eq("TEST_STRING")
145
172
 
173
+
174
+
146
175
  end
147
176
  end
148
177
 
149
178
  describe 'test attribute "status_callback_url"' do
150
179
  it 'should work' do
180
+
151
181
  instance.status_callback_url = "TEST_STRING"
152
182
  expect(instance.status_callback_url).to eq("TEST_STRING")
153
183
 
184
+
185
+
154
186
  end
155
187
  end
156
188
 
@@ -160,110 +192,229 @@ describe Freeclimb::ConferenceResult do
160
192
  testObject = Object.new()
161
193
  instance.subresource_uris = testObject
162
194
  expect(instance.subresource_uris).to eq(testObject)
195
+
196
+
197
+ instance.subresource_uris = Object.new
198
+ expect(instance.subresource_uris).to be_instance_of(Object)
199
+
163
200
  end
164
201
  end
165
202
 
166
203
  describe 'test method "initialize"' do
167
204
  it 'properly initializes with values' do
168
205
  expect { instance = Freeclimb::ConferenceResult.new(
206
+
169
207
  uri: "TS",
170
208
 
209
+
210
+
211
+
171
212
  date_created: "TS",
172
213
 
214
+
215
+
216
+
173
217
  date_updated: "TS",
174
218
 
219
+
220
+
175
221
  revision: 1,
176
222
 
223
+
224
+
225
+
177
226
  conference_id: "TS",
178
227
 
228
+
229
+
230
+
179
231
  account_id: "TS",
180
232
 
233
+
234
+
235
+
181
236
  _alias: "TS",
182
237
 
183
238
 
239
+
240
+
184
241
  play_beep: Freeclimb::PlayBeep::ALWAYS,
185
242
 
243
+
244
+
186
245
  record: true,
187
246
 
188
247
 
248
+
249
+
189
250
  status: Freeclimb::ConferenceStatus::EMPTY,
190
251
 
252
+
253
+
254
+
191
255
  wait_url: "TS",
192
256
 
257
+
258
+
259
+
193
260
  action_url: "TS",
194
261
 
262
+
263
+
264
+
195
265
  status_callback_url: "TS",
196
266
 
267
+
268
+
269
+
270
+
271
+
197
272
  subresource_uris: Object.new(),
198
273
 
199
274
  )}.not_to raise_error()
200
275
  end
201
276
  it 'fails to initialize with input argument that is not a hash in Freeclimb::ConferenceResult' do
202
277
  expect { instance = Freeclimb::ConferenceResult.new(
278
+
203
279
  uri: "TS",
204
280
 
281
+
282
+
283
+
205
284
  date_created: "TS",
206
285
 
286
+
287
+
288
+
207
289
  date_updated: "TS",
208
290
 
291
+
292
+
209
293
  revision: 1,
210
294
 
295
+
296
+
297
+
211
298
  conference_id: "TS",
212
299
 
300
+
301
+
302
+
213
303
  account_id: "TS",
214
304
 
305
+
306
+
307
+
215
308
  _alias: "TS",
216
309
 
217
310
 
311
+
312
+
218
313
  play_beep: Freeclimb::PlayBeep::ALWAYS,
219
314
 
315
+
316
+
220
317
  record: true,
221
318
 
222
319
 
320
+
321
+
223
322
  status: Freeclimb::ConferenceStatus::EMPTY,
224
323
 
324
+
325
+
326
+
225
327
  wait_url: "TS",
226
328
 
329
+
330
+
331
+
227
332
  action_url: "TS",
228
333
 
334
+
335
+
336
+
229
337
  status_callback_url: "TS",
230
338
 
231
- subresource_uris: Object.new(),
339
+
340
+
341
+
342
+
343
+
344
+ subresource_uris: Object.new,
232
345
 
233
346
  invalid_attribute: true
234
347
  )}.to raise_error(ArgumentError)
235
348
  end
236
349
  it 'fails to initialize with invalid attribute' do
237
350
  expect { instance = Freeclimb::ConferenceResult.new(
351
+
238
352
  uri: "TS",
239
353
 
354
+
355
+
356
+
240
357
  date_created: "TS",
241
358
 
359
+
360
+
361
+
242
362
  date_updated: "TS",
243
363
 
364
+
365
+
244
366
  revision: 1,
245
367
 
368
+
369
+
370
+
246
371
  conference_id: "TS",
247
372
 
373
+
374
+
375
+
248
376
  account_id: "TS",
249
377
 
378
+
379
+
380
+
250
381
  _alias: "TS",
251
382
 
252
383
 
384
+
385
+
253
386
  play_beep: Freeclimb::PlayBeep::ALWAYS,
254
387
 
388
+
389
+
255
390
  record: true,
256
391
 
257
392
 
393
+
394
+
258
395
  status: Freeclimb::ConferenceStatus::EMPTY,
259
396
 
397
+
398
+
399
+
260
400
  wait_url: "TS",
261
401
 
402
+
403
+
404
+
262
405
  action_url: "TS",
263
406
 
407
+
408
+
409
+
264
410
  status_callback_url: "TS",
265
411
 
266
- subresource_uris: Object.new(),
412
+
413
+
414
+
415
+
416
+
417
+ subresource_uris: Object.new,
267
418
 
268
419
  invalid_attribute: true
269
420
  )}.to raise_error(ArgumentError)
@@ -273,34 +424,72 @@ describe Freeclimb::ConferenceResult do
273
424
  describe 'test method "valid"' do
274
425
  it 'checks if properties are valid' do
275
426
  instance = Freeclimb::ConferenceResult.new(
427
+
276
428
  uri: "TS",
277
429
 
430
+
431
+
432
+
278
433
  date_created: "TS",
279
434
 
435
+
436
+
437
+
280
438
  date_updated: "TS",
281
439
 
440
+
441
+
282
442
  revision: 1,
283
443
 
444
+
445
+
446
+
284
447
  conference_id: "TS",
285
448
 
449
+
450
+
451
+
286
452
  account_id: "TS",
287
453
 
454
+
455
+
456
+
288
457
  _alias: "TS",
289
458
 
290
459
 
460
+
461
+
291
462
  play_beep: Freeclimb::PlayBeep::ALWAYS,
292
463
 
464
+
465
+
293
466
  record: true,
294
467
 
295
468
 
469
+
470
+
296
471
  status: Freeclimb::ConferenceStatus::EMPTY,
297
472
 
473
+
474
+
475
+
298
476
  wait_url: "TS",
299
477
 
478
+
479
+
480
+
300
481
  action_url: "TS",
301
482
 
483
+
484
+
485
+
302
486
  status_callback_url: "TS",
303
487
 
488
+
489
+
490
+
491
+
492
+
304
493
  subresource_uris: Object.new(),
305
494
 
306
495
  )
@@ -319,137 +508,305 @@ describe Freeclimb::ConferenceResult do
319
508
 
320
509
  describe 'test method "eql?"' do
321
510
  it 'checks if objects are equal' do
322
- obj = Object.new()
511
+
512
+
513
+
514
+
515
+
516
+
517
+
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+ obj_Object = Object.new()
526
+
323
527
  instance_1 = Freeclimb::ConferenceResult.new(
528
+
324
529
  uri: "TS",
325
530
 
326
- date_created: "TS",
327
531
 
328
- date_updated: "TS",
329
532
 
330
- revision: 1,
331
533
 
332
- conference_id: "TS",
534
+ date_created: "TS",
333
535
 
334
- account_id: "TS",
335
536
 
336
- _alias: "TS",
337
537
 
338
538
 
339
- play_beep: Freeclimb::PlayBeep::ALWAYS,
539
+ date_updated: "TS",
340
540
 
341
- record: true,
342
541
 
343
542
 
344
- status: Freeclimb::ConferenceStatus::EMPTY,
543
+ revision: 1,
345
544
 
346
- wait_url: "TS",
347
545
 
348
- action_url: "TS",
349
546
 
350
- status_callback_url: "TS",
351
547
 
352
- subresource_uris: obj,
548
+ conference_id: "TS",
353
549
 
354
- )
355
- instance_2 = Freeclimb::ConferenceResult.new(
356
- uri: "TS",
357
550
 
358
- date_created: "TS",
359
551
 
360
- date_updated: "TS",
361
552
 
362
- revision: 1,
553
+ account_id: "TS",
554
+
363
555
 
364
- conference_id: "TS",
365
556
 
366
- account_id: "TS",
367
557
 
368
558
  _alias: "TS",
369
559
 
370
560
 
561
+
562
+
563
+
564
+
371
565
  play_beep: Freeclimb::PlayBeep::ALWAYS,
372
566
 
373
567
  record: true,
374
568
 
375
569
 
376
- status: Freeclimb::ConferenceStatus::EMPTY,
377
570
 
378
- wait_url: "TS",
379
571
 
380
- action_url: "TS",
381
572
 
382
- status_callback_url: "TS",
383
573
 
384
- subresource_uris: obj,
574
+ status: Freeclimb::ConferenceStatus::EMPTY,
385
575
 
386
- )
387
- expect(instance_1.eql?(instance_2)).to eq(true)
388
- end
389
-
390
- it 'checks if objects are not equal' do
391
- instance_1 = Freeclimb::ConferenceResult.new(
392
- uri: "TS",
393
576
 
394
- date_created: "TS",
577
+ wait_url: "TS",
395
578
 
396
- date_updated: "TS",
397
579
 
398
- revision: 2,
399
580
 
400
- conference_id: "TS",
401
581
 
402
- account_id: "TS",
582
+ action_url: "TS",
403
583
 
404
- _alias: "TS",
405
584
 
406
585
 
407
- play_beep: Freeclimb::PlayBeep::ALWAYS,
586
+
587
+ status_callback_url: "TS",
588
+
589
+
590
+
591
+
592
+
593
+ subresource_uris: obj_Object,
594
+
595
+
596
+ )
597
+ instance_2 = Freeclimb::ConferenceResult.new(
598
+
599
+ uri: "TS",
600
+
601
+
602
+
603
+
604
+ date_created: "TS",
605
+
606
+
607
+
608
+
609
+ date_updated: "TS",
610
+
611
+
612
+
613
+
614
+
615
+ revision: 1,
616
+
617
+
618
+ conference_id: "TS",
619
+
620
+
621
+
622
+
623
+ account_id: "TS",
624
+
625
+
626
+
627
+
628
+ _alias: "TS",
629
+
630
+
631
+
632
+
633
+
634
+
635
+ play_beep: Freeclimb::PlayBeep::ALWAYS,
408
636
 
409
637
  record: true,
410
638
 
411
639
 
640
+
641
+
642
+
643
+
412
644
  status: Freeclimb::ConferenceStatus::EMPTY,
413
645
 
646
+
414
647
  wait_url: "TS",
415
648
 
649
+
650
+
651
+
416
652
  action_url: "TS",
417
653
 
654
+
655
+
656
+
418
657
  status_callback_url: "TS",
419
658
 
659
+
660
+
661
+
662
+
663
+ subresource_uris: obj_Object,
664
+
665
+
666
+ )
667
+ expect(instance_1.eql?(instance_2)).to eq(true)
668
+ end
669
+
670
+ it 'checks if objects are not equal' do
671
+ instance_1 = Freeclimb::ConferenceResult.new(
672
+
673
+ uri: "TS",
674
+
675
+
676
+
677
+
678
+ date_created: "TS",
679
+
680
+
681
+
682
+
683
+ date_updated: "TS",
684
+
685
+
686
+
687
+ revision: 2,
688
+
689
+
690
+
691
+
692
+ conference_id: "TS",
693
+
694
+
695
+
696
+
697
+ account_id: "TS",
698
+
699
+
700
+
701
+
702
+ _alias: "TS",
703
+
704
+
705
+
706
+
707
+
708
+
709
+ play_beep: Freeclimb::PlayBeep::ALWAYS,
710
+
711
+ record: true,
712
+
713
+
714
+
715
+
716
+
717
+
718
+ status: Freeclimb::ConferenceStatus::EMPTY,
719
+
720
+
721
+ wait_url: "TS",
722
+
723
+
724
+
725
+
726
+ action_url: "TS",
727
+
728
+
729
+
730
+
731
+ status_callback_url: "TS",
732
+
733
+
734
+
735
+
736
+
737
+ subresource_uris: Object.new(),
738
+
420
739
  subresource_uris: Object.new(),
421
740
 
422
741
  )
423
742
  instance_2 = Freeclimb::ConferenceResult.new(
743
+
424
744
  uri: "ST",
425
745
 
746
+
747
+
748
+
426
749
  date_created: "ST",
427
750
 
751
+
752
+
753
+
428
754
  date_updated: "ST",
429
755
 
756
+
757
+
430
758
  revision: 1,
431
759
 
760
+
761
+
762
+
432
763
  conference_id: "ST",
433
764
 
765
+
766
+
767
+
434
768
  account_id: "ST",
435
769
 
770
+
771
+
772
+
436
773
  _alias: "ST",
437
774
 
438
775
 
776
+
777
+
778
+
779
+
439
780
  play_beep: nil,
440
781
 
441
782
  record: false,
442
783
 
443
784
 
785
+
786
+
787
+
788
+
444
789
  status: nil,
445
790
 
791
+
446
792
  wait_url: "ST",
447
793
 
794
+
795
+
796
+
448
797
  action_url: "ST",
449
798
 
799
+
800
+
801
+
450
802
  status_callback_url: "ST",
451
803
 
452
- subresource_uris: nil,
804
+
805
+
806
+
807
+
808
+ subresource_uris: Object.new(),
809
+
453
810
 
454
811
  )
455
812
  expect(instance_1.eql?(instance_2)).to eq(false)
@@ -459,34 +816,72 @@ describe Freeclimb::ConferenceResult do
459
816
  describe 'test method "hash"' do
460
817
  it 'calculates hash code' do
461
818
  instance = Freeclimb::ConferenceResult.new(
819
+
462
820
  uri: "TS",
463
821
 
822
+
823
+
824
+
464
825
  date_created: "TS",
465
826
 
827
+
828
+
829
+
466
830
  date_updated: "TS",
467
831
 
832
+
833
+
468
834
  revision: 1,
469
835
 
836
+
837
+
838
+
470
839
  conference_id: "TS",
471
840
 
841
+
842
+
843
+
472
844
  account_id: "TS",
473
845
 
846
+
847
+
848
+
474
849
  _alias: "TS",
475
850
 
476
851
 
852
+
853
+
477
854
  play_beep: Freeclimb::PlayBeep::ALWAYS,
478
855
 
856
+
857
+
479
858
  record: true,
480
859
 
481
860
 
861
+
862
+
482
863
  status: Freeclimb::ConferenceStatus::EMPTY,
483
864
 
865
+
866
+
867
+
484
868
  wait_url: "TS",
485
869
 
870
+
871
+
872
+
486
873
  action_url: "TS",
487
874
 
875
+
876
+
877
+
488
878
  status_callback_url: "TS",
489
879
 
880
+
881
+
882
+
883
+
884
+
490
885
  subresource_uris: Object.new(),
491
886
 
492
887
  )
@@ -497,65 +892,141 @@ describe Freeclimb::ConferenceResult do
497
892
  describe 'test method "build_from_hash"' do
498
893
  it 'builds equivalent model from hash code' do
499
894
  instance_1 = Freeclimb::ConferenceResult.new(
895
+
500
896
  uri: "TS",
501
897
 
898
+
899
+
900
+
502
901
  date_created: "TS",
503
902
 
903
+
904
+
905
+
504
906
  date_updated: "TS",
505
907
 
908
+
909
+
506
910
  revision: 1,
507
911
 
912
+
913
+
914
+
508
915
  conference_id: "TS",
509
916
 
917
+
918
+
919
+
510
920
  account_id: "TS",
511
921
 
922
+
923
+
924
+
512
925
  _alias: "TS",
513
926
 
514
927
 
928
+
929
+
515
930
  play_beep: Freeclimb::PlayBeep::ALWAYS,
516
931
 
932
+
933
+
517
934
  record: true,
518
935
 
519
936
 
937
+
938
+
520
939
  status: Freeclimb::ConferenceStatus::EMPTY,
521
940
 
941
+
942
+
943
+
522
944
  wait_url: "TS",
523
945
 
946
+
947
+
948
+
524
949
  action_url: "TS",
525
950
 
951
+
952
+
953
+
526
954
  status_callback_url: "TS",
527
955
 
956
+
957
+
958
+
959
+
960
+
528
961
  subresource_uris: Object.new(),
529
962
 
530
963
  )
531
964
  instance_2 = Freeclimb::ConferenceResult.new(
965
+
532
966
  uri: "TS",
533
967
 
968
+
969
+
970
+
534
971
  date_created: "TS",
535
972
 
973
+
974
+
975
+
536
976
  date_updated: "TS",
537
977
 
978
+
979
+
538
980
  revision: 1,
539
981
 
982
+
983
+
984
+
540
985
  conference_id: "TS",
541
986
 
542
- account_id: "TS",
543
987
 
544
- _alias: "TS",
545
988
 
546
989
 
547
- play_beep: Freeclimb::PlayBeep::ALWAYS,
990
+ account_id: "TS",
991
+
992
+
993
+
994
+
995
+ _alias: "TS",
996
+
997
+
998
+
999
+
1000
+ play_beep: Freeclimb::PlayBeep::ALWAYS,
1001
+
1002
+
1003
+
1004
+ record: true,
1005
+
1006
+
1007
+
1008
+
1009
+ status: Freeclimb::ConferenceStatus::EMPTY,
1010
+
1011
+
1012
+
1013
+
1014
+ wait_url: "TS",
1015
+
1016
+
1017
+
1018
+
1019
+ action_url: "TS",
1020
+
1021
+
1022
+
548
1023
 
549
- record: true,
1024
+ status_callback_url: "TS",
550
1025
 
551
1026
 
552
- status: Freeclimb::ConferenceStatus::EMPTY,
553
1027
 
554
- wait_url: "TS",
555
1028
 
556
- action_url: "TS",
557
1029
 
558
- status_callback_url: "TS",
559
1030
 
560
1031
  subresource_uris: Object.new(),
561
1032
 
@@ -567,107 +1038,212 @@ describe Freeclimb::ConferenceResult do
567
1038
 
568
1039
  describe 'test method "_deserialize"' do
569
1040
  instance = Freeclimb::ConferenceResult.new(
1041
+
570
1042
  uri: "TS",
571
1043
 
1044
+
1045
+
1046
+
572
1047
  date_created: "TS",
573
1048
 
1049
+
1050
+
1051
+
574
1052
  date_updated: "TS",
575
1053
 
1054
+
1055
+
576
1056
  revision: 1,
577
1057
 
1058
+
1059
+
1060
+
578
1061
  conference_id: "TS",
579
1062
 
1063
+
1064
+
1065
+
580
1066
  account_id: "TS",
581
1067
 
1068
+
1069
+
1070
+
582
1071
  _alias: "TS",
583
1072
 
584
1073
 
1074
+
1075
+
585
1076
  play_beep: Freeclimb::PlayBeep::ALWAYS,
586
1077
 
1078
+
1079
+
587
1080
  record: true,
588
1081
 
589
1082
 
1083
+
1084
+
590
1085
  status: Freeclimb::ConferenceStatus::EMPTY,
591
1086
 
1087
+
1088
+
1089
+
592
1090
  wait_url: "TS",
593
1091
 
1092
+
1093
+
1094
+
594
1095
  action_url: "TS",
595
1096
 
1097
+
1098
+
1099
+
596
1100
  status_callback_url: "TS",
597
1101
 
1102
+
1103
+
1104
+
1105
+
1106
+
598
1107
  subresource_uris: Object.new(),
599
1108
 
600
1109
  )
601
1110
  it 'deserializes the data of uri' do
602
1111
  expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String)
603
1112
  end
1113
+
1114
+
604
1115
  it 'deserializes the data of date_created' do
605
1116
  expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String)
606
1117
  end
1118
+
1119
+
607
1120
  it 'deserializes the data of date_updated' do
608
1121
  expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String)
609
1122
  end
1123
+
1124
+
610
1125
  it 'deserializes the data of revision' do
611
1126
  expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer)
612
1127
  end
1128
+
1129
+
613
1130
  it 'deserializes the data of conference_id' do
614
1131
  expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String)
615
1132
  end
1133
+
1134
+
616
1135
  it 'deserializes the data of account_id' do
617
1136
  expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
618
1137
  end
1138
+
1139
+
619
1140
  it 'deserializes the data of _alias' do
620
1141
  expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String)
621
1142
  end
1143
+
1144
+
1145
+
1146
+
1147
+
1148
+
622
1149
  it 'deserializes the data of record' do
623
1150
  expect(instance._deserialize("Boolean", instance.record)).to be_a_kind_of(TrueClass)
624
1151
  end
1152
+
1153
+
625
1154
  it 'deserializes the data of wait_url' do
626
1155
  expect(instance._deserialize("String", instance.wait_url)).to be_a_kind_of(String)
627
1156
  end
1157
+
1158
+
628
1159
  it 'deserializes the data of action_url' do
629
1160
  expect(instance._deserialize("String", instance.action_url)).to be_a_kind_of(String)
630
1161
  end
1162
+
1163
+
631
1164
  it 'deserializes the data of status_callback_url' do
632
1165
  expect(instance._deserialize("String", instance.status_callback_url)).to be_a_kind_of(String)
633
1166
  end
1167
+
1168
+
1169
+
1170
+
634
1171
  it 'deserializes the data of subresource_uris' do
635
1172
  expect(instance._deserialize("Object", instance.subresource_uris)).to be_a_kind_of(Object)
636
1173
  end
1174
+
637
1175
  end
638
1176
 
639
1177
  describe 'test method "to_s"' do
640
1178
  it 'returns the string representation of the object' do
641
1179
  instance = Freeclimb::ConferenceResult.new(
1180
+
642
1181
  uri: "TS",
643
1182
 
1183
+
1184
+
1185
+
644
1186
  date_created: "TS",
645
1187
 
1188
+
1189
+
1190
+
646
1191
  date_updated: "TS",
647
1192
 
1193
+
1194
+
648
1195
  revision: 1,
649
1196
 
1197
+
1198
+
1199
+
650
1200
  conference_id: "TS",
651
1201
 
1202
+
1203
+
1204
+
652
1205
  account_id: "TS",
653
1206
 
1207
+
1208
+
1209
+
654
1210
  _alias: "TS",
655
1211
 
656
1212
 
1213
+
1214
+
657
1215
  play_beep: Freeclimb::PlayBeep::ALWAYS,
658
1216
 
1217
+
1218
+
659
1219
  record: true,
660
1220
 
661
1221
 
1222
+
1223
+
662
1224
  status: Freeclimb::ConferenceStatus::EMPTY,
663
1225
 
1226
+
1227
+
1228
+
664
1229
  wait_url: "TS",
665
1230
 
1231
+
1232
+
1233
+
666
1234
  action_url: "TS",
667
1235
 
1236
+
1237
+
1238
+
668
1239
  status_callback_url: "TS",
669
1240
 
670
- subresource_uris: Object.new(),
1241
+
1242
+
1243
+
1244
+
1245
+
1246
+ subresource_uris: Object.new,
671
1247
 
672
1248
  )
673
1249
  expect(instance.to_s).to eq(instance.to_hash.to_s)
@@ -677,102 +1253,231 @@ describe Freeclimb::ConferenceResult do
677
1253
  describe 'test method "to_hash"' do
678
1254
  it 'returns the object in the form of hash' do
679
1255
  instance = Freeclimb::ConferenceResult.new(
1256
+
680
1257
  uri: "TS",
681
1258
 
1259
+
1260
+
1261
+
682
1262
  date_created: "TS",
683
1263
 
1264
+
1265
+
1266
+
684
1267
  date_updated: "TS",
685
1268
 
1269
+
1270
+
686
1271
  revision: 1,
687
1272
 
1273
+
1274
+
1275
+
688
1276
  conference_id: "TS",
689
1277
 
1278
+
1279
+
1280
+
690
1281
  account_id: "TS",
691
1282
 
1283
+
1284
+
1285
+
692
1286
  _alias: "TS",
693
1287
 
694
1288
 
1289
+
1290
+
695
1291
  play_beep: Freeclimb::PlayBeep::ALWAYS,
696
1292
 
1293
+
1294
+
697
1295
  record: true,
698
1296
 
699
1297
 
1298
+
1299
+
700
1300
  status: Freeclimb::ConferenceStatus::EMPTY,
701
1301
 
1302
+
1303
+
1304
+
702
1305
  wait_url: "TS",
703
1306
 
1307
+
1308
+
1309
+
704
1310
  action_url: "TS",
705
1311
 
1312
+
1313
+
1314
+
706
1315
  status_callback_url: "TS",
707
1316
 
708
- subresource_uris: Object.new(),
1317
+
1318
+
1319
+
1320
+
1321
+
1322
+ subresource_uris: Object.new,
709
1323
 
710
1324
  )
711
1325
  expect(instance.to_hash).to be_a_kind_of(Hash)
712
1326
  end
713
1327
  it 'creates equal hash for two equal objects' do
1328
+
1329
+
1330
+
1331
+
1332
+
1333
+
1334
+
1335
+
1336
+
1337
+
1338
+
1339
+
1340
+
1341
+
714
1342
  obj = Object.new()
1343
+
715
1344
  instance_1 = Freeclimb::ConferenceResult.new(
1345
+
716
1346
  uri: "TS",
717
1347
 
1348
+
1349
+
1350
+
718
1351
  date_created: "TS",
719
1352
 
1353
+
1354
+
1355
+
720
1356
  date_updated: "TS",
721
1357
 
1358
+
1359
+
722
1360
  revision: 1,
723
1361
 
1362
+
1363
+
1364
+
724
1365
  conference_id: "TS",
725
1366
 
1367
+
1368
+
1369
+
726
1370
  account_id: "TS",
727
1371
 
1372
+
1373
+
1374
+
728
1375
  _alias: "TS",
729
1376
 
730
1377
 
1378
+
1379
+
731
1380
  play_beep: Freeclimb::PlayBeep::ALWAYS,
732
1381
 
1382
+
1383
+
733
1384
  record: true,
734
1385
 
735
1386
 
1387
+
1388
+
736
1389
  status: Freeclimb::ConferenceStatus::EMPTY,
737
1390
 
1391
+
1392
+
1393
+
738
1394
  wait_url: "TS",
739
1395
 
1396
+
1397
+
1398
+
740
1399
  action_url: "TS",
741
1400
 
1401
+
1402
+
1403
+
742
1404
  status_callback_url: "TS",
743
1405
 
1406
+
1407
+
1408
+
1409
+
1410
+
744
1411
  subresource_uris: obj,
745
1412
 
746
1413
  )
747
1414
  instance_2 = Freeclimb::ConferenceResult.new(
1415
+
748
1416
  uri: "TS",
749
1417
 
1418
+
1419
+
1420
+
750
1421
  date_created: "TS",
751
1422
 
1423
+
1424
+
1425
+
752
1426
  date_updated: "TS",
753
1427
 
1428
+
1429
+
754
1430
  revision: 1,
755
1431
 
1432
+
1433
+
1434
+
756
1435
  conference_id: "TS",
757
1436
 
1437
+
1438
+
1439
+
758
1440
  account_id: "TS",
759
1441
 
1442
+
1443
+
1444
+
760
1445
  _alias: "TS",
761
1446
 
762
1447
 
1448
+
1449
+
763
1450
  play_beep: Freeclimb::PlayBeep::ALWAYS,
764
1451
 
1452
+
1453
+
765
1454
  record: true,
766
1455
 
767
1456
 
1457
+
1458
+
768
1459
  status: Freeclimb::ConferenceStatus::EMPTY,
769
1460
 
1461
+
1462
+
1463
+
770
1464
  wait_url: "TS",
771
1465
 
1466
+
1467
+
1468
+
772
1469
  action_url: "TS",
773
1470
 
1471
+
1472
+
1473
+
774
1474
  status_callback_url: "TS",
775
1475
 
1476
+
1477
+
1478
+
1479
+
1480
+
776
1481
  subresource_uris: obj,
777
1482
 
778
1483
  )
@@ -782,24 +1487,30 @@ describe Freeclimb::ConferenceResult do
782
1487
 
783
1488
  describe 'test method "_to_hash"' do
784
1489
  instance = Freeclimb::ConferenceResult.new(
1490
+
785
1491
  uri: "TS",
786
1492
 
787
1493
 
1494
+
788
1495
  date_created: "TS",
789
1496
 
790
1497
 
1498
+
791
1499
  date_updated: "TS",
792
1500
 
793
1501
 
794
1502
  revision: 1,
795
1503
 
796
1504
 
1505
+
797
1506
  conference_id: "TS",
798
1507
 
799
1508
 
1509
+
800
1510
  account_id: "TS",
801
1511
 
802
1512
 
1513
+
803
1514
  _alias: "TS",
804
1515
 
805
1516
 
@@ -814,16 +1525,18 @@ describe Freeclimb::ConferenceResult do
814
1525
  status: Freeclimb::ConferenceStatus::EMPTY,
815
1526
 
816
1527
 
1528
+
817
1529
  wait_url: "TS",
818
1530
 
819
1531
 
1532
+
820
1533
  action_url: "TS",
821
1534
 
822
1535
 
1536
+
823
1537
  status_callback_url: "TS",
824
1538
 
825
1539
 
826
- subresource_uris: Object.new(),
827
1540
 
828
1541
  )
829
1542
  it 'returns uri in the form of hash' do