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::CreateConference
|
18
19
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
@@ -28,9 +29,12 @@ describe Freeclimb::CreateConference do
|
|
28
29
|
|
29
30
|
describe 'test attribute "action_url"' do
|
30
31
|
it 'should work' do
|
32
|
+
|
31
33
|
instance.action_url = "TEST_STRING"
|
32
34
|
expect(instance.action_url).to eq("TEST_STRING")
|
33
35
|
|
36
|
+
|
37
|
+
|
34
38
|
end
|
35
39
|
end
|
36
40
|
|
@@ -39,6 +43,8 @@ describe Freeclimb::CreateConference do
|
|
39
43
|
instance._alias = false
|
40
44
|
expect(instance._alias).to eq(false)
|
41
45
|
|
46
|
+
|
47
|
+
|
42
48
|
end
|
43
49
|
end
|
44
50
|
|
@@ -66,76 +72,129 @@ describe Freeclimb::CreateConference do
|
|
66
72
|
instance.record = false
|
67
73
|
expect(instance.record).to eq(false)
|
68
74
|
|
75
|
+
|
76
|
+
|
69
77
|
end
|
70
78
|
end
|
71
79
|
|
72
80
|
describe 'test attribute "status_callback_url"' do
|
73
81
|
it 'should work' do
|
82
|
+
|
74
83
|
instance.status_callback_url = "TEST_STRING"
|
75
84
|
expect(instance.status_callback_url).to eq("TEST_STRING")
|
76
85
|
|
86
|
+
|
87
|
+
|
77
88
|
end
|
78
89
|
end
|
79
90
|
|
80
91
|
describe 'test attribute "wait_url"' do
|
81
92
|
it 'should work' do
|
93
|
+
|
82
94
|
instance.wait_url = "TEST_STRING"
|
83
95
|
expect(instance.wait_url).to eq("TEST_STRING")
|
84
96
|
|
97
|
+
|
98
|
+
|
85
99
|
end
|
86
100
|
end
|
87
101
|
|
88
102
|
describe 'test method "initialize"' do
|
89
103
|
it 'properly initializes with values' do
|
90
104
|
expect { instance = Freeclimb::CreateConference.new(
|
105
|
+
|
91
106
|
action_url: "TS",
|
92
107
|
|
108
|
+
|
109
|
+
|
93
110
|
_alias: true,
|
94
111
|
|
95
112
|
|
113
|
+
|
114
|
+
|
96
115
|
play_beep: Freeclimb::PlayBeep::ALWAYS,
|
97
116
|
|
117
|
+
|
118
|
+
|
98
119
|
record: true,
|
99
120
|
|
121
|
+
|
122
|
+
|
123
|
+
|
100
124
|
status_callback_url: "TS",
|
101
125
|
|
126
|
+
|
127
|
+
|
128
|
+
|
102
129
|
wait_url: "TS",
|
103
130
|
|
131
|
+
|
132
|
+
|
104
133
|
)}.not_to raise_error()
|
105
134
|
end
|
106
135
|
it 'fails to initialize with input argument that is not a hash in Freeclimb::CreateConference' do
|
107
136
|
expect { instance = Freeclimb::CreateConference.new(
|
137
|
+
|
108
138
|
action_url: "TS",
|
109
139
|
|
140
|
+
|
141
|
+
|
110
142
|
_alias: true,
|
111
143
|
|
112
144
|
|
145
|
+
|
146
|
+
|
113
147
|
play_beep: Freeclimb::PlayBeep::ALWAYS,
|
114
148
|
|
149
|
+
|
150
|
+
|
115
151
|
record: true,
|
116
152
|
|
153
|
+
|
154
|
+
|
155
|
+
|
117
156
|
status_callback_url: "TS",
|
118
157
|
|
158
|
+
|
159
|
+
|
160
|
+
|
119
161
|
wait_url: "TS",
|
120
162
|
|
163
|
+
|
164
|
+
|
121
165
|
invalid_attribute: true
|
122
166
|
)}.to raise_error(ArgumentError)
|
123
167
|
end
|
124
168
|
it 'fails to initialize with invalid attribute' do
|
125
169
|
expect { instance = Freeclimb::CreateConference.new(
|
170
|
+
|
126
171
|
action_url: "TS",
|
127
172
|
|
173
|
+
|
174
|
+
|
128
175
|
_alias: true,
|
129
176
|
|
130
177
|
|
178
|
+
|
179
|
+
|
131
180
|
play_beep: Freeclimb::PlayBeep::ALWAYS,
|
132
181
|
|
182
|
+
|
183
|
+
|
133
184
|
record: true,
|
134
185
|
|
186
|
+
|
187
|
+
|
188
|
+
|
135
189
|
status_callback_url: "TS",
|
136
190
|
|
191
|
+
|
192
|
+
|
193
|
+
|
137
194
|
wait_url: "TS",
|
138
195
|
|
196
|
+
|
197
|
+
|
139
198
|
invalid_attribute: true
|
140
199
|
)}.to raise_error(ArgumentError)
|
141
200
|
end
|
@@ -144,19 +203,34 @@ describe Freeclimb::CreateConference do
|
|
144
203
|
describe 'test method "valid"' do
|
145
204
|
it 'checks if properties are valid' do
|
146
205
|
instance = Freeclimb::CreateConference.new(
|
206
|
+
|
147
207
|
action_url: "TS",
|
148
208
|
|
209
|
+
|
210
|
+
|
149
211
|
_alias: true,
|
150
212
|
|
151
213
|
|
214
|
+
|
215
|
+
|
152
216
|
play_beep: Freeclimb::PlayBeep::ALWAYS,
|
153
217
|
|
218
|
+
|
219
|
+
|
154
220
|
record: true,
|
155
221
|
|
222
|
+
|
223
|
+
|
224
|
+
|
156
225
|
status_callback_url: "TS",
|
157
226
|
|
227
|
+
|
228
|
+
|
229
|
+
|
158
230
|
wait_url: "TS",
|
159
231
|
|
232
|
+
|
233
|
+
|
160
234
|
)
|
161
235
|
expect(instance.valid?).to eq(true)
|
162
236
|
end
|
@@ -173,70 +247,135 @@ describe Freeclimb::CreateConference do
|
|
173
247
|
|
174
248
|
describe 'test method "eql?"' do
|
175
249
|
it 'checks if objects are equal' do
|
176
|
-
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
177
256
|
instance_1 = Freeclimb::CreateConference.new(
|
257
|
+
|
178
258
|
action_url: "TS",
|
179
259
|
|
260
|
+
|
261
|
+
|
180
262
|
_alias: true,
|
181
263
|
|
182
264
|
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
183
269
|
play_beep: Freeclimb::PlayBeep::ALWAYS,
|
184
270
|
|
185
271
|
record: true,
|
186
272
|
|
273
|
+
|
274
|
+
|
275
|
+
|
187
276
|
status_callback_url: "TS",
|
188
277
|
|
278
|
+
|
279
|
+
|
280
|
+
|
189
281
|
wait_url: "TS",
|
190
282
|
|
283
|
+
|
284
|
+
|
191
285
|
)
|
192
286
|
instance_2 = Freeclimb::CreateConference.new(
|
287
|
+
|
193
288
|
action_url: "TS",
|
194
289
|
|
290
|
+
|
291
|
+
|
195
292
|
_alias: true,
|
196
293
|
|
197
294
|
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
198
299
|
play_beep: Freeclimb::PlayBeep::ALWAYS,
|
199
300
|
|
200
301
|
record: true,
|
201
302
|
|
303
|
+
|
304
|
+
|
305
|
+
|
202
306
|
status_callback_url: "TS",
|
203
307
|
|
308
|
+
|
309
|
+
|
310
|
+
|
204
311
|
wait_url: "TS",
|
205
312
|
|
313
|
+
|
314
|
+
|
206
315
|
)
|
207
316
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
208
317
|
end
|
209
318
|
|
210
319
|
it 'checks if objects are not equal' do
|
211
320
|
instance_1 = Freeclimb::CreateConference.new(
|
321
|
+
|
212
322
|
action_url: "TS",
|
213
323
|
|
324
|
+
|
325
|
+
|
214
326
|
_alias: true,
|
215
327
|
|
216
328
|
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
|
217
333
|
play_beep: Freeclimb::PlayBeep::ALWAYS,
|
218
334
|
|
219
335
|
record: true,
|
220
336
|
|
337
|
+
|
338
|
+
|
339
|
+
|
221
340
|
status_callback_url: "TS",
|
222
341
|
|
342
|
+
|
343
|
+
|
344
|
+
|
223
345
|
wait_url: "TS",
|
224
346
|
|
347
|
+
|
348
|
+
|
225
349
|
)
|
226
350
|
instance_2 = Freeclimb::CreateConference.new(
|
351
|
+
|
227
352
|
action_url: "ST",
|
228
353
|
|
354
|
+
|
355
|
+
|
229
356
|
_alias: false,
|
230
357
|
|
231
358
|
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
232
363
|
play_beep: nil,
|
233
364
|
|
234
365
|
record: false,
|
235
366
|
|
367
|
+
|
368
|
+
|
369
|
+
|
236
370
|
status_callback_url: "ST",
|
237
371
|
|
372
|
+
|
373
|
+
|
374
|
+
|
238
375
|
wait_url: "ST",
|
239
376
|
|
377
|
+
|
378
|
+
|
240
379
|
)
|
241
380
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
242
381
|
end
|
@@ -245,19 +384,34 @@ describe Freeclimb::CreateConference do
|
|
245
384
|
describe 'test method "hash"' do
|
246
385
|
it 'calculates hash code' do
|
247
386
|
instance = Freeclimb::CreateConference.new(
|
387
|
+
|
248
388
|
action_url: "TS",
|
249
389
|
|
390
|
+
|
391
|
+
|
250
392
|
_alias: true,
|
251
393
|
|
252
394
|
|
395
|
+
|
396
|
+
|
253
397
|
play_beep: Freeclimb::PlayBeep::ALWAYS,
|
254
398
|
|
399
|
+
|
400
|
+
|
255
401
|
record: true,
|
256
402
|
|
403
|
+
|
404
|
+
|
405
|
+
|
257
406
|
status_callback_url: "TS",
|
258
407
|
|
408
|
+
|
409
|
+
|
410
|
+
|
259
411
|
wait_url: "TS",
|
260
412
|
|
413
|
+
|
414
|
+
|
261
415
|
)
|
262
416
|
expect(instance.hash).to be_a_kind_of(Integer)
|
263
417
|
end
|
@@ -266,34 +420,64 @@ describe Freeclimb::CreateConference do
|
|
266
420
|
describe 'test method "build_from_hash"' do
|
267
421
|
it 'builds equivalent model from hash code' do
|
268
422
|
instance_1 = Freeclimb::CreateConference.new(
|
423
|
+
|
269
424
|
action_url: "TS",
|
270
425
|
|
426
|
+
|
427
|
+
|
271
428
|
_alias: true,
|
272
429
|
|
273
430
|
|
431
|
+
|
432
|
+
|
274
433
|
play_beep: Freeclimb::PlayBeep::ALWAYS,
|
275
434
|
|
435
|
+
|
436
|
+
|
276
437
|
record: true,
|
277
438
|
|
439
|
+
|
440
|
+
|
441
|
+
|
278
442
|
status_callback_url: "TS",
|
279
443
|
|
444
|
+
|
445
|
+
|
446
|
+
|
280
447
|
wait_url: "TS",
|
281
448
|
|
449
|
+
|
450
|
+
|
282
451
|
)
|
283
452
|
instance_2 = Freeclimb::CreateConference.new(
|
453
|
+
|
284
454
|
action_url: "TS",
|
285
455
|
|
456
|
+
|
457
|
+
|
286
458
|
_alias: true,
|
287
459
|
|
288
460
|
|
461
|
+
|
462
|
+
|
289
463
|
play_beep: Freeclimb::PlayBeep::ALWAYS,
|
290
464
|
|
465
|
+
|
466
|
+
|
291
467
|
record: true,
|
292
468
|
|
469
|
+
|
470
|
+
|
471
|
+
|
293
472
|
status_callback_url: "TS",
|
294
473
|
|
474
|
+
|
475
|
+
|
476
|
+
|
295
477
|
wait_url: "TS",
|
296
478
|
|
479
|
+
|
480
|
+
|
297
481
|
)
|
298
482
|
|
299
483
|
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
@@ -302,53 +486,95 @@ describe Freeclimb::CreateConference do
|
|
302
486
|
|
303
487
|
describe 'test method "_deserialize"' do
|
304
488
|
instance = Freeclimb::CreateConference.new(
|
489
|
+
|
305
490
|
action_url: "TS",
|
306
491
|
|
492
|
+
|
493
|
+
|
307
494
|
_alias: true,
|
308
495
|
|
309
496
|
|
497
|
+
|
498
|
+
|
310
499
|
play_beep: Freeclimb::PlayBeep::ALWAYS,
|
311
500
|
|
501
|
+
|
502
|
+
|
312
503
|
record: true,
|
313
504
|
|
505
|
+
|
506
|
+
|
507
|
+
|
314
508
|
status_callback_url: "TS",
|
315
509
|
|
510
|
+
|
511
|
+
|
512
|
+
|
316
513
|
wait_url: "TS",
|
317
514
|
|
515
|
+
|
516
|
+
|
318
517
|
)
|
319
518
|
it 'deserializes the data of action_url' do
|
320
519
|
expect(instance._deserialize("String", instance.action_url)).to be_a_kind_of(String)
|
321
520
|
end
|
521
|
+
|
522
|
+
|
523
|
+
|
524
|
+
|
322
525
|
it 'deserializes the data of _alias' do
|
323
526
|
expect(instance._deserialize("Boolean", instance._alias)).to be_a_kind_of(TrueClass)
|
324
527
|
end
|
528
|
+
|
529
|
+
|
530
|
+
|
531
|
+
|
325
532
|
it 'deserializes the data of record' do
|
326
533
|
expect(instance._deserialize("Boolean", instance.record)).to be_a_kind_of(TrueClass)
|
327
534
|
end
|
328
535
|
it 'deserializes the data of status_callback_url' do
|
329
536
|
expect(instance._deserialize("String", instance.status_callback_url)).to be_a_kind_of(String)
|
330
537
|
end
|
538
|
+
|
539
|
+
|
331
540
|
it 'deserializes the data of wait_url' do
|
332
541
|
expect(instance._deserialize("String", instance.wait_url)).to be_a_kind_of(String)
|
333
542
|
end
|
543
|
+
|
544
|
+
|
334
545
|
end
|
335
546
|
|
336
547
|
describe 'test method "to_s"' do
|
337
548
|
it 'returns the string representation of the object' do
|
338
549
|
instance = Freeclimb::CreateConference.new(
|
550
|
+
|
339
551
|
action_url: "TS",
|
340
552
|
|
553
|
+
|
554
|
+
|
341
555
|
_alias: true,
|
342
556
|
|
343
557
|
|
558
|
+
|
559
|
+
|
344
560
|
play_beep: Freeclimb::PlayBeep::ALWAYS,
|
345
561
|
|
562
|
+
|
563
|
+
|
346
564
|
record: true,
|
347
565
|
|
566
|
+
|
567
|
+
|
568
|
+
|
348
569
|
status_callback_url: "TS",
|
349
570
|
|
571
|
+
|
572
|
+
|
573
|
+
|
350
574
|
wait_url: "TS",
|
351
575
|
|
576
|
+
|
577
|
+
|
352
578
|
)
|
353
579
|
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
354
580
|
end
|
@@ -357,53 +583,103 @@ describe Freeclimb::CreateConference do
|
|
357
583
|
describe 'test method "to_hash"' do
|
358
584
|
it 'returns the object in the form of hash' do
|
359
585
|
instance = Freeclimb::CreateConference.new(
|
586
|
+
|
360
587
|
action_url: "TS",
|
361
588
|
|
589
|
+
|
590
|
+
|
362
591
|
_alias: true,
|
363
592
|
|
364
593
|
|
594
|
+
|
595
|
+
|
365
596
|
play_beep: Freeclimb::PlayBeep::ALWAYS,
|
366
597
|
|
598
|
+
|
599
|
+
|
367
600
|
record: true,
|
368
601
|
|
602
|
+
|
603
|
+
|
604
|
+
|
369
605
|
status_callback_url: "TS",
|
370
606
|
|
607
|
+
|
608
|
+
|
609
|
+
|
371
610
|
wait_url: "TS",
|
372
611
|
|
612
|
+
|
613
|
+
|
373
614
|
)
|
374
615
|
expect(instance.to_hash).to be_a_kind_of(Hash)
|
375
616
|
end
|
376
617
|
it 'creates equal hash for two equal objects' do
|
377
|
-
|
618
|
+
|
619
|
+
|
620
|
+
|
621
|
+
|
622
|
+
|
623
|
+
|
378
624
|
instance_1 = Freeclimb::CreateConference.new(
|
625
|
+
|
379
626
|
action_url: "TS",
|
380
627
|
|
628
|
+
|
629
|
+
|
381
630
|
_alias: true,
|
382
631
|
|
383
632
|
|
633
|
+
|
634
|
+
|
384
635
|
play_beep: Freeclimb::PlayBeep::ALWAYS,
|
385
636
|
|
637
|
+
|
638
|
+
|
386
639
|
record: true,
|
387
640
|
|
641
|
+
|
642
|
+
|
643
|
+
|
388
644
|
status_callback_url: "TS",
|
389
645
|
|
646
|
+
|
647
|
+
|
648
|
+
|
390
649
|
wait_url: "TS",
|
391
650
|
|
651
|
+
|
652
|
+
|
392
653
|
)
|
393
654
|
instance_2 = Freeclimb::CreateConference.new(
|
655
|
+
|
394
656
|
action_url: "TS",
|
395
657
|
|
658
|
+
|
659
|
+
|
396
660
|
_alias: true,
|
397
661
|
|
398
662
|
|
663
|
+
|
664
|
+
|
399
665
|
play_beep: Freeclimb::PlayBeep::ALWAYS,
|
400
666
|
|
667
|
+
|
668
|
+
|
401
669
|
record: true,
|
402
670
|
|
671
|
+
|
672
|
+
|
673
|
+
|
403
674
|
status_callback_url: "TS",
|
404
675
|
|
676
|
+
|
677
|
+
|
678
|
+
|
405
679
|
wait_url: "TS",
|
406
680
|
|
681
|
+
|
682
|
+
|
407
683
|
)
|
408
684
|
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
409
685
|
end
|
@@ -411,6 +687,7 @@ describe Freeclimb::CreateConference do
|
|
411
687
|
|
412
688
|
describe 'test method "_to_hash"' do
|
413
689
|
instance = Freeclimb::CreateConference.new(
|
690
|
+
|
414
691
|
action_url: "TS",
|
415
692
|
|
416
693
|
|
@@ -424,9 +701,11 @@ describe Freeclimb::CreateConference do
|
|
424
701
|
record: true,
|
425
702
|
|
426
703
|
|
704
|
+
|
427
705
|
status_callback_url: "TS",
|
428
706
|
|
429
707
|
|
708
|
+
|
430
709
|
wait_url: "TS",
|
431
710
|
|
432
711
|
)
|