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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -1
- data/Gemfile +2 -1
- data/Gemfile.lock +21 -15
- data/README.md +5 -4
- data/docs/MessageResult.md +7 -1
- data/docs/TFNCampaign.md +34 -0
- data/lib/freeclimb/configuration.rb +1 -2
- data/lib/freeclimb/models/dequeue.rb +2 -4
- data/lib/freeclimb/models/message_result.rb +36 -5
- data/lib/freeclimb/models/remove_from_conference.rb +2 -4
- data/lib/freeclimb/models/start_record_call.rb +2 -4
- data/lib/freeclimb/models/terminate_conference.rb +2 -4
- data/lib/freeclimb/models/tfn_campaign.rb +370 -0
- data/lib/freeclimb/models/unpark.rb +2 -4
- data/lib/freeclimb/version.rb +1 -1
- data/lib/freeclimb.rb +1 -0
- data/openapi.json +93 -38
- data/spec/api/default_api_spec.rb +39 -117
- data/spec/models/account_request_spec.rb +113 -2
- data/spec/models/account_result_spec.rb +591 -28
- data/spec/models/account_status_spec.rb +1 -0
- data/spec/models/account_type_spec.rb +1 -0
- data/spec/models/add_to_conference_notification_webhook_spec.rb +654 -5
- data/spec/models/add_to_conference_spec.rb +471 -2
- data/spec/models/add_to_queue_notification_webhook_spec.rb +465 -2
- data/spec/models/answered_by_spec.rb +1 -0
- data/spec/models/application_list_spec.rb +323 -2
- data/spec/models/application_request_spec.rb +393 -2
- data/spec/models/application_result_spec.rb +723 -14
- data/spec/models/available_number_list_spec.rb +323 -2
- data/spec/models/available_number_spec.rb +380 -21
- data/spec/models/barge_in_reason_spec.rb +1 -0
- data/spec/models/buy_incoming_number_request_spec.rb +169 -2
- data/spec/models/call_control_webhook_spec.rb +281 -2
- data/spec/models/call_direction_spec.rb +1 -0
- data/spec/models/call_ended_reason_spec.rb +1 -0
- data/spec/models/call_list_spec.rb +323 -2
- data/spec/models/call_result_spec.rb +1020 -9
- data/spec/models/call_status_spec.rb +1 -0
- data/spec/models/call_status_webhook_spec.rb +501 -2
- data/spec/models/capabilities_spec.rb +191 -2
- data/spec/models/completion_request_spec.rb +54 -2
- data/spec/models/completion_result_spec.rb +93 -2
- data/spec/models/completion_result_status_spec.rb +1 -0
- data/spec/models/conference_list_spec.rb +323 -2
- data/spec/models/conference_participant_list_spec.rb +323 -2
- data/spec/models/conference_participant_result_spec.rb +532 -7
- data/spec/models/conference_recording_status_webhook_spec.rb +654 -5
- data/spec/models/conference_result_spec.rb +768 -55
- data/spec/models/conference_status_spec.rb +1 -0
- data/spec/models/conference_status_webhook_spec.rb +654 -5
- data/spec/models/create_conference_request_spec.rb +243 -2
- data/spec/models/create_conference_spec.rb +281 -2
- data/spec/models/create_conference_webhook_spec.rb +654 -5
- data/spec/models/create_web_rtc_token_spec.rb +151 -2
- data/spec/models/dequeue_spec.rb +1 -0
- data/spec/models/dequeue_webhook_spec.rb +565 -8
- data/spec/models/enqueue_spec.rb +225 -2
- data/spec/models/filter_logs_request_spec.rb +57 -2
- data/spec/models/get_digits_reason_spec.rb +1 -0
- data/spec/models/get_digits_spec.rb +379 -2
- data/spec/models/get_digits_webhook_spec.rb +623 -12
- data/spec/models/get_speech_reason_spec.rb +1 -0
- data/spec/models/get_speech_spec.rb +556 -11
- data/spec/models/get_speech_webhook_spec.rb +870 -15
- data/spec/models/grammar_file_built_in_spec.rb +1 -0
- data/spec/models/grammar_type_spec.rb +1 -0
- data/spec/models/hangup_spec.rb +57 -2
- data/spec/models/if_machine_spec.rb +1 -0
- data/spec/models/inbound_call_webhook_spec.rb +521 -2
- data/spec/models/incoming_number_list_spec.rb +323 -2
- data/spec/models/incoming_number_request_spec.rb +169 -2
- data/spec/models/incoming_number_result_spec.rb +930 -43
- data/spec/models/language_spec.rb +1 -0
- data/spec/models/leave_conference_webhook_spec.rb +465 -2
- data/spec/models/log_level_spec.rb +1 -0
- data/spec/models/log_list_spec.rb +323 -2
- data/spec/models/log_result_spec.rb +368 -9
- data/spec/models/machine_detected_webhook_spec.rb +565 -10
- data/spec/models/machine_type_spec.rb +1 -0
- data/spec/models/make_call_request_spec.rb +529 -6
- data/spec/models/message_delivery_webhook_spec.rb +565 -6
- data/spec/models/message_direction_spec.rb +1 -0
- data/spec/models/message_request_spec.rb +469 -2
- data/spec/models/message_result_spec.rb +1364 -225
- data/spec/models/message_status_spec.rb +1 -0
- data/spec/models/message_status_webhook_spec.rb +615 -20
- data/spec/models/messages_list_spec.rb +323 -2
- data/spec/models/mutable_resource_model_spec.rb +207 -2
- data/spec/models/out_dial_api_connect_webhook_spec.rb +521 -2
- data/spec/models/out_dial_connect_webhook_spec.rb +521 -2
- data/spec/models/out_dial_spec.rb +505 -2
- data/spec/models/out_dial_start_webhook_spec.rb +599 -24
- data/spec/models/pagination_model_spec.rb +285 -2
- data/spec/models/park_spec.rb +169 -2
- data/spec/models/pause_spec.rb +39 -2
- data/spec/models/percl_command_spec.rb +54 -2
- data/spec/models/percl_script_spec.rb +39 -2
- data/spec/models/play_beep_spec.rb +1 -0
- data/spec/models/play_early_media_spec.rb +57 -2
- data/spec/models/play_spec.rb +133 -2
- data/spec/models/queue_list_spec.rb +323 -2
- data/spec/models/queue_member_list_spec.rb +323 -2
- data/spec/models/queue_member_spec.rb +245 -2
- data/spec/models/queue_request_spec.rb +95 -2
- data/spec/models/queue_result_spec.rb +564 -15
- data/spec/models/queue_result_status_spec.rb +1 -0
- data/spec/models/queue_wait_webhook_spec.rb +616 -21
- data/spec/models/record_utterance_spec.rb +303 -2
- data/spec/models/record_utterance_term_reason_spec.rb +1 -0
- data/spec/models/record_webhook_spec.rb +868 -13
- data/spec/models/recording_list_spec.rb +323 -2
- data/spec/models/recording_result_spec.rb +469 -2
- data/spec/models/redirect_spec.rb +57 -2
- data/spec/models/redirect_webhook_spec.rb +521 -2
- data/spec/models/reject_spec.rb +57 -2
- data/spec/models/remove_from_conference_spec.rb +1 -0
- data/spec/models/remove_from_queue_notification_webhook_spec.rb +546 -9
- data/spec/models/request_type_spec.rb +1 -0
- data/spec/models/say_spec.rb +189 -2
- data/spec/models/send_digits_spec.rb +133 -2
- data/spec/models/set_dtmf_pass_through_spec.rb +39 -2
- data/spec/models/set_listen_spec.rb +39 -2
- data/spec/models/set_talk_spec.rb +39 -2
- data/spec/models/sms_spec.rb +225 -2
- data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brand_spec.rb +1969 -423
- data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +323 -2
- data/spec/models/sms_ten_dlc_campaign_spec.rb +2224 -550
- data/spec/models/sms_ten_dlc_campaign_status_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +323 -2
- data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +597 -17
- data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +1537 -155
- data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +323 -2
- data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +1 -0
- data/spec/models/sms_toll_free_campaign_spec.rb +355 -2
- data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +323 -2
- data/spec/models/start_record_call_spec.rb +1 -0
- data/spec/models/terminate_conference_spec.rb +1 -0
- data/spec/models/tfn_campaign_spec.rb +1089 -0
- data/spec/models/tfn_spec.rb +57 -2
- data/spec/models/transcribe_reason_spec.rb +1 -0
- data/spec/models/transcribe_term_reason_spec.rb +1 -0
- data/spec/models/transcribe_utterance_record_spec.rb +115 -2
- data/spec/models/transcribe_utterance_spec.rb +288 -21
- data/spec/models/transcribe_webhook_spec.rb +1049 -4
- data/spec/models/unpark_spec.rb +1 -0
- data/spec/models/update_call_request_spec.rb +37 -2
- data/spec/models/update_call_request_status_spec.rb +1 -0
- data/spec/models/update_conference_participant_request_spec.rb +115 -2
- data/spec/models/update_conference_request_spec.rb +129 -2
- data/spec/models/update_conference_request_status_spec.rb +1 -0
- data/spec/models/webhook_spec.rb +54 -2
- 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::AddToConference
|
18
19
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
@@ -31,38 +32,52 @@ describe Freeclimb::AddToConference do
|
|
31
32
|
instance.allow_call_control = false
|
32
33
|
expect(instance.allow_call_control).to eq(false)
|
33
34
|
|
35
|
+
|
36
|
+
|
34
37
|
end
|
35
38
|
end
|
36
39
|
|
37
40
|
describe 'test attribute "call_control_sequence"' do
|
38
41
|
it 'should work' do
|
42
|
+
|
39
43
|
instance.call_control_sequence = "TEST_STRING"
|
40
44
|
expect(instance.call_control_sequence).to eq("TEST_STRING")
|
41
45
|
|
46
|
+
|
47
|
+
|
42
48
|
end
|
43
49
|
end
|
44
50
|
|
45
51
|
describe 'test attribute "call_control_url"' do
|
46
52
|
it 'should work' do
|
53
|
+
|
47
54
|
instance.call_control_url = "TEST_STRING"
|
48
55
|
expect(instance.call_control_url).to eq("TEST_STRING")
|
49
56
|
|
57
|
+
|
58
|
+
|
50
59
|
end
|
51
60
|
end
|
52
61
|
|
53
62
|
describe 'test attribute "conference_id"' do
|
54
63
|
it 'should work' do
|
64
|
+
|
55
65
|
instance.conference_id = "TEST_STRING"
|
56
66
|
expect(instance.conference_id).to eq("TEST_STRING")
|
57
67
|
|
68
|
+
|
69
|
+
|
58
70
|
end
|
59
71
|
end
|
60
72
|
|
61
73
|
describe 'test attribute "leave_conference_url"' do
|
62
74
|
it 'should work' do
|
75
|
+
|
63
76
|
instance.leave_conference_url = "TEST_STRING"
|
64
77
|
expect(instance.leave_conference_url).to eq("TEST_STRING")
|
65
78
|
|
79
|
+
|
80
|
+
|
66
81
|
end
|
67
82
|
end
|
68
83
|
|
@@ -71,14 +86,19 @@ describe Freeclimb::AddToConference do
|
|
71
86
|
instance.listen = false
|
72
87
|
expect(instance.listen).to eq(false)
|
73
88
|
|
89
|
+
|
90
|
+
|
74
91
|
end
|
75
92
|
end
|
76
93
|
|
77
94
|
describe 'test attribute "notification_url"' do
|
78
95
|
it 'should work' do
|
96
|
+
|
79
97
|
instance.notification_url = "TEST_STRING"
|
80
98
|
expect(instance.notification_url).to eq("TEST_STRING")
|
81
99
|
|
100
|
+
|
101
|
+
|
82
102
|
end
|
83
103
|
end
|
84
104
|
|
@@ -87,6 +107,8 @@ describe Freeclimb::AddToConference do
|
|
87
107
|
instance.start_conf_on_enter = false
|
88
108
|
expect(instance.start_conf_on_enter).to eq(false)
|
89
109
|
|
110
|
+
|
111
|
+
|
90
112
|
end
|
91
113
|
end
|
92
114
|
|
@@ -95,6 +117,8 @@ describe Freeclimb::AddToConference do
|
|
95
117
|
instance.talk = false
|
96
118
|
expect(instance.talk).to eq(false)
|
97
119
|
|
120
|
+
|
121
|
+
|
98
122
|
end
|
99
123
|
end
|
100
124
|
|
@@ -103,6 +127,8 @@ describe Freeclimb::AddToConference do
|
|
103
127
|
instance.dtmf_pass_through = false
|
104
128
|
expect(instance.dtmf_pass_through).to eq(false)
|
105
129
|
|
130
|
+
|
131
|
+
|
106
132
|
end
|
107
133
|
end
|
108
134
|
|
@@ -111,48 +137,98 @@ describe Freeclimb::AddToConference do
|
|
111
137
|
expect { instance = Freeclimb::AddToConference.new(
|
112
138
|
allow_call_control: true,
|
113
139
|
|
140
|
+
|
141
|
+
|
142
|
+
|
114
143
|
call_control_sequence: "TS",
|
115
144
|
|
145
|
+
|
146
|
+
|
147
|
+
|
116
148
|
call_control_url: "TS",
|
117
149
|
|
150
|
+
|
151
|
+
|
152
|
+
|
118
153
|
conference_id: "TS",
|
119
154
|
|
155
|
+
|
156
|
+
|
157
|
+
|
120
158
|
leave_conference_url: "TS",
|
121
159
|
|
160
|
+
|
161
|
+
|
122
162
|
listen: true,
|
123
163
|
|
164
|
+
|
165
|
+
|
166
|
+
|
124
167
|
notification_url: "TS",
|
125
168
|
|
169
|
+
|
170
|
+
|
126
171
|
start_conf_on_enter: true,
|
127
172
|
|
173
|
+
|
174
|
+
|
128
175
|
talk: true,
|
129
176
|
|
177
|
+
|
178
|
+
|
130
179
|
dtmf_pass_through: true,
|
131
180
|
|
181
|
+
|
182
|
+
|
132
183
|
)}.not_to raise_error()
|
133
184
|
end
|
134
185
|
it 'fails to initialize with input argument that is not a hash in Freeclimb::AddToConference' do
|
135
186
|
expect { instance = Freeclimb::AddToConference.new(
|
136
187
|
allow_call_control: true,
|
137
188
|
|
189
|
+
|
190
|
+
|
191
|
+
|
138
192
|
call_control_sequence: "TS",
|
139
193
|
|
194
|
+
|
195
|
+
|
196
|
+
|
140
197
|
call_control_url: "TS",
|
141
198
|
|
199
|
+
|
200
|
+
|
201
|
+
|
142
202
|
conference_id: "TS",
|
143
203
|
|
204
|
+
|
205
|
+
|
206
|
+
|
144
207
|
leave_conference_url: "TS",
|
145
208
|
|
209
|
+
|
210
|
+
|
146
211
|
listen: true,
|
147
212
|
|
213
|
+
|
214
|
+
|
215
|
+
|
148
216
|
notification_url: "TS",
|
149
217
|
|
218
|
+
|
219
|
+
|
150
220
|
start_conf_on_enter: true,
|
151
221
|
|
222
|
+
|
223
|
+
|
152
224
|
talk: true,
|
153
225
|
|
226
|
+
|
227
|
+
|
154
228
|
dtmf_pass_through: true,
|
155
229
|
|
230
|
+
|
231
|
+
|
156
232
|
invalid_attribute: true
|
157
233
|
)}.to raise_error(ArgumentError)
|
158
234
|
end
|
@@ -160,24 +236,49 @@ describe Freeclimb::AddToConference do
|
|
160
236
|
expect { instance = Freeclimb::AddToConference.new(
|
161
237
|
allow_call_control: true,
|
162
238
|
|
239
|
+
|
240
|
+
|
241
|
+
|
163
242
|
call_control_sequence: "TS",
|
164
243
|
|
244
|
+
|
245
|
+
|
246
|
+
|
165
247
|
call_control_url: "TS",
|
166
248
|
|
249
|
+
|
250
|
+
|
251
|
+
|
167
252
|
conference_id: "TS",
|
168
253
|
|
254
|
+
|
255
|
+
|
256
|
+
|
169
257
|
leave_conference_url: "TS",
|
170
258
|
|
259
|
+
|
260
|
+
|
171
261
|
listen: true,
|
172
262
|
|
263
|
+
|
264
|
+
|
265
|
+
|
173
266
|
notification_url: "TS",
|
174
267
|
|
268
|
+
|
269
|
+
|
175
270
|
start_conf_on_enter: true,
|
176
271
|
|
272
|
+
|
273
|
+
|
177
274
|
talk: true,
|
178
275
|
|
276
|
+
|
277
|
+
|
179
278
|
dtmf_pass_through: true,
|
180
279
|
|
280
|
+
|
281
|
+
|
181
282
|
invalid_attribute: true
|
182
283
|
)}.to raise_error(ArgumentError)
|
183
284
|
end
|
@@ -188,24 +289,49 @@ describe Freeclimb::AddToConference do
|
|
188
289
|
instance = Freeclimb::AddToConference.new(
|
189
290
|
allow_call_control: true,
|
190
291
|
|
292
|
+
|
293
|
+
|
294
|
+
|
191
295
|
call_control_sequence: "TS",
|
192
296
|
|
297
|
+
|
298
|
+
|
299
|
+
|
193
300
|
call_control_url: "TS",
|
194
301
|
|
302
|
+
|
303
|
+
|
304
|
+
|
195
305
|
conference_id: "TS",
|
196
306
|
|
307
|
+
|
308
|
+
|
309
|
+
|
197
310
|
leave_conference_url: "TS",
|
198
311
|
|
312
|
+
|
313
|
+
|
199
314
|
listen: true,
|
200
315
|
|
316
|
+
|
317
|
+
|
318
|
+
|
201
319
|
notification_url: "TS",
|
202
320
|
|
321
|
+
|
322
|
+
|
203
323
|
start_conf_on_enter: true,
|
204
324
|
|
325
|
+
|
326
|
+
|
205
327
|
talk: true,
|
206
328
|
|
329
|
+
|
330
|
+
|
207
331
|
dtmf_pass_through: true,
|
208
332
|
|
333
|
+
|
334
|
+
|
209
335
|
)
|
210
336
|
expect(instance.valid?).to eq(true)
|
211
337
|
end
|
@@ -222,50 +348,109 @@ describe Freeclimb::AddToConference do
|
|
222
348
|
|
223
349
|
describe 'test method "eql?"' do
|
224
350
|
it 'checks if objects are equal' do
|
225
|
-
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
226
361
|
instance_1 = Freeclimb::AddToConference.new(
|
227
362
|
allow_call_control: true,
|
228
363
|
|
364
|
+
|
365
|
+
|
366
|
+
|
229
367
|
call_control_sequence: "TS",
|
230
368
|
|
369
|
+
|
370
|
+
|
371
|
+
|
231
372
|
call_control_url: "TS",
|
232
373
|
|
374
|
+
|
375
|
+
|
376
|
+
|
233
377
|
conference_id: "TS",
|
234
378
|
|
379
|
+
|
380
|
+
|
381
|
+
|
235
382
|
leave_conference_url: "TS",
|
236
383
|
|
384
|
+
|
385
|
+
|
237
386
|
listen: true,
|
238
387
|
|
388
|
+
|
389
|
+
|
390
|
+
|
239
391
|
notification_url: "TS",
|
240
392
|
|
393
|
+
|
394
|
+
|
241
395
|
start_conf_on_enter: true,
|
242
396
|
|
397
|
+
|
398
|
+
|
243
399
|
talk: true,
|
244
400
|
|
401
|
+
|
402
|
+
|
245
403
|
dtmf_pass_through: true,
|
246
404
|
|
405
|
+
|
406
|
+
|
247
407
|
)
|
248
408
|
instance_2 = Freeclimb::AddToConference.new(
|
249
409
|
allow_call_control: true,
|
250
410
|
|
411
|
+
|
412
|
+
|
413
|
+
|
251
414
|
call_control_sequence: "TS",
|
252
415
|
|
416
|
+
|
417
|
+
|
418
|
+
|
253
419
|
call_control_url: "TS",
|
254
420
|
|
421
|
+
|
422
|
+
|
423
|
+
|
255
424
|
conference_id: "TS",
|
256
425
|
|
426
|
+
|
427
|
+
|
428
|
+
|
257
429
|
leave_conference_url: "TS",
|
258
430
|
|
431
|
+
|
432
|
+
|
259
433
|
listen: true,
|
260
434
|
|
435
|
+
|
436
|
+
|
437
|
+
|
261
438
|
notification_url: "TS",
|
262
439
|
|
440
|
+
|
441
|
+
|
263
442
|
start_conf_on_enter: true,
|
264
443
|
|
444
|
+
|
445
|
+
|
265
446
|
talk: true,
|
266
447
|
|
448
|
+
|
449
|
+
|
267
450
|
dtmf_pass_through: true,
|
268
451
|
|
452
|
+
|
453
|
+
|
269
454
|
)
|
270
455
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
271
456
|
end
|
@@ -274,46 +459,96 @@ describe Freeclimb::AddToConference do
|
|
274
459
|
instance_1 = Freeclimb::AddToConference.new(
|
275
460
|
allow_call_control: true,
|
276
461
|
|
462
|
+
|
463
|
+
|
464
|
+
|
277
465
|
call_control_sequence: "TS",
|
278
466
|
|
467
|
+
|
468
|
+
|
469
|
+
|
279
470
|
call_control_url: "TS",
|
280
471
|
|
472
|
+
|
473
|
+
|
474
|
+
|
281
475
|
conference_id: "TS",
|
282
476
|
|
477
|
+
|
478
|
+
|
479
|
+
|
283
480
|
leave_conference_url: "TS",
|
284
481
|
|
482
|
+
|
483
|
+
|
285
484
|
listen: true,
|
286
485
|
|
486
|
+
|
487
|
+
|
488
|
+
|
287
489
|
notification_url: "TS",
|
288
490
|
|
491
|
+
|
492
|
+
|
289
493
|
start_conf_on_enter: true,
|
290
494
|
|
495
|
+
|
496
|
+
|
291
497
|
talk: true,
|
292
498
|
|
499
|
+
|
500
|
+
|
293
501
|
dtmf_pass_through: true,
|
294
502
|
|
503
|
+
|
504
|
+
|
295
505
|
)
|
296
506
|
instance_2 = Freeclimb::AddToConference.new(
|
297
507
|
allow_call_control: false,
|
298
508
|
|
509
|
+
|
510
|
+
|
511
|
+
|
299
512
|
call_control_sequence: "ST",
|
300
513
|
|
514
|
+
|
515
|
+
|
516
|
+
|
301
517
|
call_control_url: "ST",
|
302
518
|
|
519
|
+
|
520
|
+
|
521
|
+
|
303
522
|
conference_id: "ST",
|
304
523
|
|
524
|
+
|
525
|
+
|
526
|
+
|
305
527
|
leave_conference_url: "ST",
|
306
528
|
|
529
|
+
|
530
|
+
|
307
531
|
listen: false,
|
308
532
|
|
533
|
+
|
534
|
+
|
535
|
+
|
309
536
|
notification_url: "ST",
|
310
537
|
|
538
|
+
|
539
|
+
|
311
540
|
start_conf_on_enter: false,
|
312
541
|
|
542
|
+
|
543
|
+
|
313
544
|
talk: false,
|
314
545
|
|
546
|
+
|
547
|
+
|
315
548
|
dtmf_pass_through: false,
|
316
549
|
|
550
|
+
|
551
|
+
|
317
552
|
)
|
318
553
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
319
554
|
end
|
@@ -324,24 +559,49 @@ describe Freeclimb::AddToConference do
|
|
324
559
|
instance = Freeclimb::AddToConference.new(
|
325
560
|
allow_call_control: true,
|
326
561
|
|
562
|
+
|
563
|
+
|
564
|
+
|
327
565
|
call_control_sequence: "TS",
|
328
566
|
|
567
|
+
|
568
|
+
|
569
|
+
|
329
570
|
call_control_url: "TS",
|
330
571
|
|
572
|
+
|
573
|
+
|
574
|
+
|
331
575
|
conference_id: "TS",
|
332
576
|
|
577
|
+
|
578
|
+
|
579
|
+
|
333
580
|
leave_conference_url: "TS",
|
334
581
|
|
582
|
+
|
583
|
+
|
335
584
|
listen: true,
|
336
585
|
|
586
|
+
|
587
|
+
|
588
|
+
|
337
589
|
notification_url: "TS",
|
338
590
|
|
591
|
+
|
592
|
+
|
339
593
|
start_conf_on_enter: true,
|
340
594
|
|
595
|
+
|
596
|
+
|
341
597
|
talk: true,
|
342
598
|
|
599
|
+
|
600
|
+
|
343
601
|
dtmf_pass_through: true,
|
344
602
|
|
603
|
+
|
604
|
+
|
345
605
|
)
|
346
606
|
expect(instance.hash).to be_a_kind_of(Integer)
|
347
607
|
end
|
@@ -352,46 +612,96 @@ describe Freeclimb::AddToConference do
|
|
352
612
|
instance_1 = Freeclimb::AddToConference.new(
|
353
613
|
allow_call_control: true,
|
354
614
|
|
615
|
+
|
616
|
+
|
617
|
+
|
355
618
|
call_control_sequence: "TS",
|
356
619
|
|
620
|
+
|
621
|
+
|
622
|
+
|
357
623
|
call_control_url: "TS",
|
358
624
|
|
625
|
+
|
626
|
+
|
627
|
+
|
359
628
|
conference_id: "TS",
|
360
629
|
|
630
|
+
|
631
|
+
|
632
|
+
|
361
633
|
leave_conference_url: "TS",
|
362
634
|
|
635
|
+
|
636
|
+
|
363
637
|
listen: true,
|
364
638
|
|
639
|
+
|
640
|
+
|
641
|
+
|
365
642
|
notification_url: "TS",
|
366
643
|
|
644
|
+
|
645
|
+
|
367
646
|
start_conf_on_enter: true,
|
368
647
|
|
648
|
+
|
649
|
+
|
369
650
|
talk: true,
|
370
651
|
|
652
|
+
|
653
|
+
|
371
654
|
dtmf_pass_through: true,
|
372
655
|
|
656
|
+
|
657
|
+
|
373
658
|
)
|
374
659
|
instance_2 = Freeclimb::AddToConference.new(
|
375
660
|
allow_call_control: true,
|
376
661
|
|
662
|
+
|
663
|
+
|
664
|
+
|
377
665
|
call_control_sequence: "TS",
|
378
666
|
|
667
|
+
|
668
|
+
|
669
|
+
|
379
670
|
call_control_url: "TS",
|
380
671
|
|
672
|
+
|
673
|
+
|
674
|
+
|
381
675
|
conference_id: "TS",
|
382
676
|
|
677
|
+
|
678
|
+
|
679
|
+
|
383
680
|
leave_conference_url: "TS",
|
384
681
|
|
682
|
+
|
683
|
+
|
385
684
|
listen: true,
|
386
685
|
|
686
|
+
|
687
|
+
|
688
|
+
|
387
689
|
notification_url: "TS",
|
388
690
|
|
691
|
+
|
692
|
+
|
389
693
|
start_conf_on_enter: true,
|
390
694
|
|
695
|
+
|
696
|
+
|
391
697
|
talk: true,
|
392
698
|
|
699
|
+
|
700
|
+
|
393
701
|
dtmf_pass_through: true,
|
394
702
|
|
703
|
+
|
704
|
+
|
395
705
|
)
|
396
706
|
|
397
707
|
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
@@ -402,52 +712,97 @@ describe Freeclimb::AddToConference do
|
|
402
712
|
instance = Freeclimb::AddToConference.new(
|
403
713
|
allow_call_control: true,
|
404
714
|
|
715
|
+
|
716
|
+
|
717
|
+
|
405
718
|
call_control_sequence: "TS",
|
406
719
|
|
720
|
+
|
721
|
+
|
722
|
+
|
407
723
|
call_control_url: "TS",
|
408
724
|
|
725
|
+
|
726
|
+
|
727
|
+
|
409
728
|
conference_id: "TS",
|
410
729
|
|
730
|
+
|
731
|
+
|
732
|
+
|
411
733
|
leave_conference_url: "TS",
|
412
734
|
|
735
|
+
|
736
|
+
|
413
737
|
listen: true,
|
414
738
|
|
739
|
+
|
740
|
+
|
741
|
+
|
415
742
|
notification_url: "TS",
|
416
743
|
|
744
|
+
|
745
|
+
|
417
746
|
start_conf_on_enter: true,
|
418
747
|
|
748
|
+
|
749
|
+
|
419
750
|
talk: true,
|
420
751
|
|
752
|
+
|
753
|
+
|
421
754
|
dtmf_pass_through: true,
|
422
755
|
|
756
|
+
|
757
|
+
|
423
758
|
)
|
759
|
+
|
760
|
+
|
424
761
|
it 'deserializes the data of allow_call_control' do
|
425
762
|
expect(instance._deserialize("Boolean", instance.allow_call_control)).to be_a_kind_of(TrueClass)
|
426
763
|
end
|
427
764
|
it 'deserializes the data of call_control_sequence' do
|
428
765
|
expect(instance._deserialize("String", instance.call_control_sequence)).to be_a_kind_of(String)
|
429
766
|
end
|
767
|
+
|
768
|
+
|
430
769
|
it 'deserializes the data of call_control_url' do
|
431
770
|
expect(instance._deserialize("String", instance.call_control_url)).to be_a_kind_of(String)
|
432
771
|
end
|
772
|
+
|
773
|
+
|
433
774
|
it 'deserializes the data of conference_id' do
|
434
775
|
expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String)
|
435
776
|
end
|
777
|
+
|
778
|
+
|
436
779
|
it 'deserializes the data of leave_conference_url' do
|
437
780
|
expect(instance._deserialize("String", instance.leave_conference_url)).to be_a_kind_of(String)
|
438
781
|
end
|
782
|
+
|
783
|
+
|
784
|
+
|
785
|
+
|
439
786
|
it 'deserializes the data of listen' do
|
440
787
|
expect(instance._deserialize("Boolean", instance.listen)).to be_a_kind_of(TrueClass)
|
441
788
|
end
|
442
789
|
it 'deserializes the data of notification_url' do
|
443
790
|
expect(instance._deserialize("String", instance.notification_url)).to be_a_kind_of(String)
|
444
791
|
end
|
792
|
+
|
793
|
+
|
794
|
+
|
795
|
+
|
445
796
|
it 'deserializes the data of start_conf_on_enter' do
|
446
797
|
expect(instance._deserialize("Boolean", instance.start_conf_on_enter)).to be_a_kind_of(TrueClass)
|
447
798
|
end
|
799
|
+
|
800
|
+
|
448
801
|
it 'deserializes the data of talk' do
|
449
802
|
expect(instance._deserialize("Boolean", instance.talk)).to be_a_kind_of(TrueClass)
|
450
803
|
end
|
804
|
+
|
805
|
+
|
451
806
|
it 'deserializes the data of dtmf_pass_through' do
|
452
807
|
expect(instance._deserialize("Boolean", instance.dtmf_pass_through)).to be_a_kind_of(TrueClass)
|
453
808
|
end
|
@@ -458,24 +813,49 @@ describe Freeclimb::AddToConference do
|
|
458
813
|
instance = Freeclimb::AddToConference.new(
|
459
814
|
allow_call_control: true,
|
460
815
|
|
816
|
+
|
817
|
+
|
818
|
+
|
461
819
|
call_control_sequence: "TS",
|
462
820
|
|
821
|
+
|
822
|
+
|
823
|
+
|
463
824
|
call_control_url: "TS",
|
464
825
|
|
826
|
+
|
827
|
+
|
828
|
+
|
465
829
|
conference_id: "TS",
|
466
830
|
|
831
|
+
|
832
|
+
|
833
|
+
|
467
834
|
leave_conference_url: "TS",
|
468
835
|
|
836
|
+
|
837
|
+
|
469
838
|
listen: true,
|
470
839
|
|
840
|
+
|
841
|
+
|
842
|
+
|
471
843
|
notification_url: "TS",
|
472
844
|
|
845
|
+
|
846
|
+
|
473
847
|
start_conf_on_enter: true,
|
474
848
|
|
849
|
+
|
850
|
+
|
475
851
|
talk: true,
|
476
852
|
|
853
|
+
|
854
|
+
|
477
855
|
dtmf_pass_through: true,
|
478
856
|
|
857
|
+
|
858
|
+
|
479
859
|
)
|
480
860
|
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
481
861
|
end
|
@@ -486,72 +866,156 @@ describe Freeclimb::AddToConference do
|
|
486
866
|
instance = Freeclimb::AddToConference.new(
|
487
867
|
allow_call_control: true,
|
488
868
|
|
869
|
+
|
870
|
+
|
871
|
+
|
489
872
|
call_control_sequence: "TS",
|
490
873
|
|
874
|
+
|
875
|
+
|
876
|
+
|
491
877
|
call_control_url: "TS",
|
492
878
|
|
879
|
+
|
880
|
+
|
881
|
+
|
493
882
|
conference_id: "TS",
|
494
883
|
|
884
|
+
|
885
|
+
|
886
|
+
|
495
887
|
leave_conference_url: "TS",
|
496
888
|
|
889
|
+
|
890
|
+
|
497
891
|
listen: true,
|
498
892
|
|
893
|
+
|
894
|
+
|
895
|
+
|
499
896
|
notification_url: "TS",
|
500
897
|
|
898
|
+
|
899
|
+
|
501
900
|
start_conf_on_enter: true,
|
502
901
|
|
902
|
+
|
903
|
+
|
503
904
|
talk: true,
|
504
905
|
|
906
|
+
|
907
|
+
|
505
908
|
dtmf_pass_through: true,
|
506
909
|
|
910
|
+
|
911
|
+
|
507
912
|
)
|
508
913
|
expect(instance.to_hash).to be_a_kind_of(Hash)
|
509
914
|
end
|
510
915
|
it 'creates equal hash for two equal objects' do
|
511
|
-
|
916
|
+
|
917
|
+
|
918
|
+
|
919
|
+
|
920
|
+
|
921
|
+
|
922
|
+
|
923
|
+
|
924
|
+
|
925
|
+
|
512
926
|
instance_1 = Freeclimb::AddToConference.new(
|
513
927
|
allow_call_control: true,
|
514
928
|
|
929
|
+
|
930
|
+
|
931
|
+
|
515
932
|
call_control_sequence: "TS",
|
516
933
|
|
934
|
+
|
935
|
+
|
936
|
+
|
517
937
|
call_control_url: "TS",
|
518
938
|
|
939
|
+
|
940
|
+
|
941
|
+
|
519
942
|
conference_id: "TS",
|
520
943
|
|
944
|
+
|
945
|
+
|
946
|
+
|
521
947
|
leave_conference_url: "TS",
|
522
948
|
|
949
|
+
|
950
|
+
|
523
951
|
listen: true,
|
524
952
|
|
953
|
+
|
954
|
+
|
955
|
+
|
525
956
|
notification_url: "TS",
|
526
957
|
|
958
|
+
|
959
|
+
|
527
960
|
start_conf_on_enter: true,
|
528
961
|
|
962
|
+
|
963
|
+
|
529
964
|
talk: true,
|
530
965
|
|
966
|
+
|
967
|
+
|
531
968
|
dtmf_pass_through: true,
|
532
969
|
|
970
|
+
|
971
|
+
|
533
972
|
)
|
534
973
|
instance_2 = Freeclimb::AddToConference.new(
|
535
974
|
allow_call_control: true,
|
536
975
|
|
976
|
+
|
977
|
+
|
978
|
+
|
537
979
|
call_control_sequence: "TS",
|
538
980
|
|
981
|
+
|
982
|
+
|
983
|
+
|
539
984
|
call_control_url: "TS",
|
540
985
|
|
986
|
+
|
987
|
+
|
988
|
+
|
541
989
|
conference_id: "TS",
|
542
990
|
|
991
|
+
|
992
|
+
|
993
|
+
|
543
994
|
leave_conference_url: "TS",
|
544
995
|
|
996
|
+
|
997
|
+
|
545
998
|
listen: true,
|
546
999
|
|
1000
|
+
|
1001
|
+
|
1002
|
+
|
547
1003
|
notification_url: "TS",
|
548
1004
|
|
1005
|
+
|
1006
|
+
|
549
1007
|
start_conf_on_enter: true,
|
550
1008
|
|
1009
|
+
|
1010
|
+
|
551
1011
|
talk: true,
|
552
1012
|
|
1013
|
+
|
1014
|
+
|
553
1015
|
dtmf_pass_through: true,
|
554
1016
|
|
1017
|
+
|
1018
|
+
|
555
1019
|
)
|
556
1020
|
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
557
1021
|
end
|
@@ -562,21 +1026,26 @@ describe Freeclimb::AddToConference do
|
|
562
1026
|
allow_call_control: true,
|
563
1027
|
|
564
1028
|
|
1029
|
+
|
565
1030
|
call_control_sequence: "TS",
|
566
1031
|
|
567
1032
|
|
1033
|
+
|
568
1034
|
call_control_url: "TS",
|
569
1035
|
|
570
1036
|
|
1037
|
+
|
571
1038
|
conference_id: "TS",
|
572
1039
|
|
573
1040
|
|
1041
|
+
|
574
1042
|
leave_conference_url: "TS",
|
575
1043
|
|
576
1044
|
|
577
1045
|
listen: true,
|
578
1046
|
|
579
1047
|
|
1048
|
+
|
580
1049
|
notification_url: "TS",
|
581
1050
|
|
582
1051
|
|