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