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