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