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