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