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