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