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::GetDigits
18
19
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -28,9 +29,12 @@ describe Freeclimb::GetDigits 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
 
@@ -41,14 +45,19 @@ describe Freeclimb::GetDigits do
41
45
  instance.digit_timeout_ms = 1
42
46
  expect(instance.digit_timeout_ms).to eq(1)
43
47
 
48
+
49
+
44
50
  end
45
51
  end
46
52
 
47
53
  describe 'test attribute "finish_on_key"' do
48
54
  it 'should work' do
55
+
49
56
  instance.finish_on_key = "TEST_STRING"
50
57
  expect(instance.finish_on_key).to eq("TEST_STRING")
51
58
 
59
+
60
+
52
61
  end
53
62
  end
54
63
 
@@ -57,6 +66,8 @@ describe Freeclimb::GetDigits do
57
66
  instance.flush_buffer = false
58
67
  expect(instance.flush_buffer).to eq(false)
59
68
 
69
+
70
+
60
71
  end
61
72
  end
62
73
 
@@ -67,6 +78,8 @@ describe Freeclimb::GetDigits do
67
78
  instance.initial_timeout_ms = 1
68
79
  expect(instance.initial_timeout_ms).to eq(1)
69
80
 
81
+
82
+
70
83
  end
71
84
  end
72
85
 
@@ -77,6 +90,8 @@ describe Freeclimb::GetDigits do
77
90
  instance.max_digits = 1
78
91
  expect(instance.max_digits).to eq(1)
79
92
 
93
+
94
+
80
95
  end
81
96
  end
82
97
 
@@ -87,6 +102,8 @@ describe Freeclimb::GetDigits do
87
102
  instance.min_digits = 1
88
103
  expect(instance.min_digits).to eq(1)
89
104
 
105
+
106
+
90
107
  end
91
108
  end
92
109
 
@@ -95,6 +112,8 @@ describe Freeclimb::GetDigits do
95
112
 
96
113
  instance.prompts = ["ELEMENT_1", "ELEMENT_2"]
97
114
  expect(instance.prompts).to eq(["ELEMENT_1", "ELEMENT_2"])
115
+
116
+
98
117
  end
99
118
  end
100
119
 
@@ -103,75 +122,137 @@ describe Freeclimb::GetDigits do
103
122
  instance.privacy_mode = false
104
123
  expect(instance.privacy_mode).to eq(false)
105
124
 
125
+
126
+
106
127
  end
107
128
  end
108
129
 
109
130
  describe 'test method "initialize"' do
110
131
  it 'properly initializes with values' do
111
132
  expect { instance = Freeclimb::GetDigits.new(
133
+
112
134
  action_url: "TS",
113
135
 
136
+
137
+
114
138
  digit_timeout_ms: 1,
115
139
 
140
+
141
+
142
+
116
143
  finish_on_key: "TS",
117
144
 
145
+
146
+
118
147
  flush_buffer: true,
119
148
 
149
+
150
+
120
151
  initial_timeout_ms: 1,
121
152
 
153
+
154
+
122
155
  max_digits: 1,
123
156
 
157
+
158
+
124
159
  min_digits: 1,
125
160
 
161
+
162
+
126
163
  prompts: Array.new(),
127
164
 
165
+
166
+
128
167
  privacy_mode: true,
129
168
 
169
+
170
+
130
171
  )}.not_to raise_error()
131
172
  end
132
173
  it 'fails to initialize with input argument that is not a hash in Freeclimb::GetDigits' do
133
174
  expect { instance = Freeclimb::GetDigits.new(
175
+
134
176
  action_url: "TS",
135
177
 
178
+
179
+
136
180
  digit_timeout_ms: 1,
137
181
 
182
+
183
+
184
+
138
185
  finish_on_key: "TS",
139
186
 
187
+
188
+
140
189
  flush_buffer: true,
141
190
 
191
+
192
+
142
193
  initial_timeout_ms: 1,
143
194
 
195
+
196
+
144
197
  max_digits: 1,
145
198
 
199
+
200
+
146
201
  min_digits: 1,
147
202
 
203
+
204
+
148
205
  prompts: Array.new(),
149
206
 
207
+
208
+
150
209
  privacy_mode: true,
151
210
 
211
+
212
+
152
213
  invalid_attribute: true
153
214
  )}.to raise_error(ArgumentError)
154
215
  end
155
216
  it 'fails to initialize with invalid attribute' do
156
217
  expect { instance = Freeclimb::GetDigits.new(
218
+
157
219
  action_url: "TS",
158
220
 
221
+
222
+
159
223
  digit_timeout_ms: 1,
160
224
 
225
+
226
+
227
+
161
228
  finish_on_key: "TS",
162
229
 
230
+
231
+
163
232
  flush_buffer: true,
164
233
 
234
+
235
+
165
236
  initial_timeout_ms: 1,
166
237
 
238
+
239
+
167
240
  max_digits: 1,
168
241
 
242
+
243
+
169
244
  min_digits: 1,
170
245
 
246
+
247
+
171
248
  prompts: Array.new(),
172
249
 
250
+
251
+
173
252
  privacy_mode: true,
174
253
 
254
+
255
+
175
256
  invalid_attribute: true
176
257
  )}.to raise_error(ArgumentError)
177
258
  end
@@ -180,24 +261,44 @@ describe Freeclimb::GetDigits do
180
261
  describe 'test method "valid"' do
181
262
  it 'checks if properties are valid' do
182
263
  instance = Freeclimb::GetDigits.new(
264
+
183
265
  action_url: "TS",
184
266
 
267
+
268
+
185
269
  digit_timeout_ms: 1,
186
270
 
271
+
272
+
273
+
187
274
  finish_on_key: "TS",
188
275
 
276
+
277
+
189
278
  flush_buffer: true,
190
279
 
280
+
281
+
191
282
  initial_timeout_ms: 1,
192
283
 
284
+
285
+
193
286
  max_digits: 1,
194
287
 
288
+
289
+
195
290
  min_digits: 1,
196
291
 
292
+
293
+
197
294
  prompts: Array.new(),
198
295
 
296
+
297
+
199
298
  privacy_mode: true,
200
299
 
300
+
301
+
201
302
  )
202
303
  expect(instance.valid?).to eq(true)
203
304
  end
@@ -214,90 +315,178 @@ describe Freeclimb::GetDigits do
214
315
 
215
316
  describe 'test method "eql?"' do
216
317
  it 'checks if objects are equal' do
217
- obj = Object.new()
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
218
327
  instance_1 = Freeclimb::GetDigits.new(
328
+
219
329
  action_url: "TS",
220
330
 
331
+
332
+
221
333
  digit_timeout_ms: 1,
222
334
 
335
+
336
+
337
+
223
338
  finish_on_key: "TS",
224
339
 
340
+
341
+
225
342
  flush_buffer: true,
226
343
 
344
+
345
+
227
346
  initial_timeout_ms: 1,
228
347
 
348
+
349
+
229
350
  max_digits: 1,
230
351
 
352
+
353
+
231
354
  min_digits: 1,
232
355
 
356
+
357
+
358
+
359
+
233
360
  prompts: [],
234
361
 
235
362
  privacy_mode: true,
236
363
 
364
+
365
+
237
366
  )
238
367
  instance_2 = Freeclimb::GetDigits.new(
368
+
239
369
  action_url: "TS",
240
370
 
371
+
372
+
373
+
374
+
241
375
  digit_timeout_ms: 1,
242
376
 
377
+
243
378
  finish_on_key: "TS",
244
379
 
380
+
381
+
245
382
  flush_buffer: true,
246
383
 
384
+
385
+
386
+
387
+
247
388
  initial_timeout_ms: 1,
248
389
 
390
+
391
+
249
392
  max_digits: 1,
250
393
 
394
+
395
+
251
396
  min_digits: 1,
252
397
 
398
+
399
+
253
400
  prompts: [],
254
401
 
255
402
  privacy_mode: true,
256
403
 
404
+
405
+
257
406
  )
258
407
  expect(instance_1.eql?(instance_2)).to eq(true)
259
408
  end
260
409
 
261
410
  it 'checks if objects are not equal' do
262
411
  instance_1 = Freeclimb::GetDigits.new(
412
+
263
413
  action_url: "TS",
264
414
 
415
+
416
+
265
417
  digit_timeout_ms: 2,
266
418
 
419
+
420
+
421
+
267
422
  finish_on_key: "TS",
268
423
 
424
+
425
+
269
426
  flush_buffer: true,
270
427
 
428
+
429
+
271
430
  initial_timeout_ms: 2,
272
431
 
432
+
433
+
273
434
  max_digits: 2,
274
435
 
436
+
437
+
275
438
  min_digits: 2,
276
439
 
440
+
441
+
442
+
443
+
277
444
  prompts: [],
278
445
 
279
446
  privacy_mode: true,
280
447
 
448
+
449
+
281
450
  )
282
451
  instance_2 = Freeclimb::GetDigits.new(
452
+
283
453
  action_url: "ST",
284
454
 
455
+
456
+
285
457
  digit_timeout_ms: 1,
286
458
 
459
+
460
+
461
+
287
462
  finish_on_key: "ST",
288
463
 
464
+
465
+
289
466
  flush_buffer: false,
290
467
 
468
+
469
+
291
470
  initial_timeout_ms: 1,
292
471
 
472
+
473
+
293
474
  max_digits: 1,
294
475
 
476
+
477
+
295
478
  min_digits: 1,
296
479
 
480
+
481
+
482
+
483
+
297
484
  prompts: nil,
298
485
 
299
486
  privacy_mode: false,
300
487
 
488
+
489
+
301
490
  )
302
491
  expect(instance_1.eql?(instance_2)).to eq(false)
303
492
  end
@@ -306,24 +495,44 @@ describe Freeclimb::GetDigits do
306
495
  describe 'test method "hash"' do
307
496
  it 'calculates hash code' do
308
497
  instance = Freeclimb::GetDigits.new(
498
+
309
499
  action_url: "TS",
310
500
 
501
+
502
+
311
503
  digit_timeout_ms: 1,
312
504
 
505
+
506
+
507
+
313
508
  finish_on_key: "TS",
314
509
 
510
+
511
+
315
512
  flush_buffer: true,
316
513
 
514
+
515
+
317
516
  initial_timeout_ms: 1,
318
517
 
518
+
519
+
319
520
  max_digits: 1,
320
521
 
522
+
523
+
321
524
  min_digits: 1,
322
525
 
526
+
527
+
323
528
  prompts: Array.new(),
324
529
 
530
+
531
+
325
532
  privacy_mode: true,
326
533
 
534
+
535
+
327
536
  )
328
537
  expect(instance.hash).to be_a_kind_of(Integer)
329
538
  end
@@ -332,44 +541,84 @@ describe Freeclimb::GetDigits do
332
541
  describe 'test method "build_from_hash"' do
333
542
  it 'builds equivalent model from hash code' do
334
543
  instance_1 = Freeclimb::GetDigits.new(
544
+
335
545
  action_url: "TS",
336
546
 
547
+
548
+
337
549
  digit_timeout_ms: 1,
338
550
 
551
+
552
+
553
+
339
554
  finish_on_key: "TS",
340
555
 
556
+
557
+
341
558
  flush_buffer: true,
342
559
 
560
+
561
+
343
562
  initial_timeout_ms: 1,
344
563
 
564
+
565
+
345
566
  max_digits: 1,
346
567
 
568
+
569
+
347
570
  min_digits: 1,
348
571
 
572
+
573
+
349
574
  prompts: Array.new(),
350
575
 
576
+
577
+
351
578
  privacy_mode: true,
352
579
 
580
+
581
+
353
582
  )
354
583
  instance_2 = Freeclimb::GetDigits.new(
584
+
355
585
  action_url: "TS",
356
586
 
587
+
588
+
357
589
  digit_timeout_ms: 1,
358
590
 
591
+
592
+
593
+
359
594
  finish_on_key: "TS",
360
595
 
596
+
597
+
361
598
  flush_buffer: true,
362
599
 
600
+
601
+
363
602
  initial_timeout_ms: 1,
364
603
 
604
+
605
+
365
606
  max_digits: 1,
366
607
 
608
+
609
+
367
610
  min_digits: 1,
368
611
 
612
+
613
+
369
614
  prompts: Array.new(),
370
615
 
616
+
617
+
371
618
  privacy_mode: true,
372
619
 
620
+
621
+
373
622
  )
374
623
 
375
624
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
@@ -378,49 +627,87 @@ describe Freeclimb::GetDigits do
378
627
 
379
628
  describe 'test method "_deserialize"' do
380
629
  instance = Freeclimb::GetDigits.new(
630
+
381
631
  action_url: "TS",
382
632
 
633
+
634
+
383
635
  digit_timeout_ms: 1,
384
636
 
637
+
638
+
639
+
385
640
  finish_on_key: "TS",
386
641
 
642
+
643
+
387
644
  flush_buffer: true,
388
645
 
646
+
647
+
389
648
  initial_timeout_ms: 1,
390
649
 
650
+
651
+
391
652
  max_digits: 1,
392
653
 
654
+
655
+
393
656
  min_digits: 1,
394
657
 
658
+
659
+
395
660
  prompts: Array.new(),
396
661
 
662
+
663
+
397
664
  privacy_mode: true,
398
665
 
666
+
667
+
399
668
  )
400
669
  it 'deserializes the data of action_url' do
401
670
  expect(instance._deserialize("String", instance.action_url)).to be_a_kind_of(String)
402
671
  end
672
+
673
+
403
674
  it 'deserializes the data of digit_timeout_ms' do
404
675
  expect(instance._deserialize("Integer", instance.digit_timeout_ms)).to be_a_kind_of(Integer)
405
676
  end
677
+
678
+
406
679
  it 'deserializes the data of finish_on_key' do
407
680
  expect(instance._deserialize("String", instance.finish_on_key)).to be_a_kind_of(String)
408
681
  end
682
+
683
+
684
+
685
+
409
686
  it 'deserializes the data of flush_buffer' do
410
687
  expect(instance._deserialize("Boolean", instance.flush_buffer)).to be_a_kind_of(TrueClass)
411
688
  end
412
689
  it 'deserializes the data of initial_timeout_ms' do
413
690
  expect(instance._deserialize("Integer", instance.initial_timeout_ms)).to be_a_kind_of(Integer)
414
691
  end
692
+
693
+
415
694
  it 'deserializes the data of max_digits' do
416
695
  expect(instance._deserialize("Integer", instance.max_digits)).to be_a_kind_of(Integer)
417
696
  end
697
+
698
+
418
699
  it 'deserializes the data of min_digits' do
419
700
  expect(instance._deserialize("Integer", instance.min_digits)).to be_a_kind_of(Integer)
420
701
  end
702
+
703
+
421
704
  it 'deserializes the data of prompts' do
422
705
  expect(instance._deserialize("Array<PerclCommand>", instance.prompts)).to be_a_kind_of(Array)
423
706
  end
707
+
708
+
709
+
710
+
424
711
  it 'deserializes the data of privacy_mode' do
425
712
  expect(instance._deserialize("Boolean", instance.privacy_mode)).to be_a_kind_of(TrueClass)
426
713
  end
@@ -429,24 +716,44 @@ describe Freeclimb::GetDigits do
429
716
  describe 'test method "to_s"' do
430
717
  it 'returns the string representation of the object' do
431
718
  instance = Freeclimb::GetDigits.new(
719
+
432
720
  action_url: "TS",
433
721
 
722
+
723
+
434
724
  digit_timeout_ms: 1,
435
725
 
726
+
727
+
728
+
436
729
  finish_on_key: "TS",
437
730
 
731
+
732
+
438
733
  flush_buffer: true,
439
734
 
735
+
736
+
440
737
  initial_timeout_ms: 1,
441
738
 
739
+
740
+
442
741
  max_digits: 1,
443
742
 
743
+
744
+
444
745
  min_digits: 1,
445
746
 
747
+
748
+
446
749
  prompts: Array.new(),
447
750
 
751
+
752
+
448
753
  privacy_mode: true,
449
754
 
755
+
756
+
450
757
  )
451
758
  expect(instance.to_s).to eq(instance.to_hash.to_s)
452
759
  end
@@ -455,68 +762,136 @@ describe Freeclimb::GetDigits do
455
762
  describe 'test method "to_hash"' do
456
763
  it 'returns the object in the form of hash' do
457
764
  instance = Freeclimb::GetDigits.new(
765
+
458
766
  action_url: "TS",
459
767
 
768
+
769
+
460
770
  digit_timeout_ms: 1,
461
771
 
772
+
773
+
774
+
462
775
  finish_on_key: "TS",
463
776
 
777
+
778
+
464
779
  flush_buffer: true,
465
780
 
781
+
782
+
466
783
  initial_timeout_ms: 1,
467
784
 
785
+
786
+
468
787
  max_digits: 1,
469
788
 
789
+
790
+
470
791
  min_digits: 1,
471
792
 
793
+
794
+
472
795
  prompts: Array.new(),
473
796
 
797
+
798
+
474
799
  privacy_mode: true,
475
800
 
801
+
802
+
476
803
  )
477
804
  expect(instance.to_hash).to be_a_kind_of(Hash)
478
805
  end
479
806
  it 'creates equal hash for two equal objects' do
480
- obj = Object.new()
807
+
808
+
809
+
810
+
811
+
812
+
813
+
814
+
815
+
481
816
  instance_1 = Freeclimb::GetDigits.new(
817
+
482
818
  action_url: "TS",
483
819
 
820
+
821
+
484
822
  digit_timeout_ms: 1,
485
823
 
824
+
825
+
826
+
486
827
  finish_on_key: "TS",
487
828
 
829
+
830
+
488
831
  flush_buffer: true,
489
832
 
833
+
834
+
490
835
  initial_timeout_ms: 1,
491
836
 
837
+
838
+
492
839
  max_digits: 1,
493
840
 
841
+
842
+
494
843
  min_digits: 1,
495
844
 
845
+
846
+
496
847
  prompts: Array.new(),
497
848
 
849
+
850
+
498
851
  privacy_mode: true,
499
852
 
853
+
854
+
500
855
  )
501
856
  instance_2 = Freeclimb::GetDigits.new(
857
+
502
858
  action_url: "TS",
503
859
 
860
+
861
+
504
862
  digit_timeout_ms: 1,
505
863
 
864
+
865
+
866
+
506
867
  finish_on_key: "TS",
507
868
 
869
+
870
+
508
871
  flush_buffer: true,
509
872
 
873
+
874
+
510
875
  initial_timeout_ms: 1,
511
876
 
877
+
878
+
512
879
  max_digits: 1,
513
880
 
881
+
882
+
514
883
  min_digits: 1,
515
884
 
885
+
886
+
516
887
  prompts: Array.new(),
517
888
 
889
+
890
+
518
891
  privacy_mode: true,
519
892
 
893
+
894
+
520
895
  )
521
896
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
522
897
  end
@@ -524,12 +899,14 @@ describe Freeclimb::GetDigits do
524
899
 
525
900
  describe 'test method "_to_hash"' do
526
901
  instance = Freeclimb::GetDigits.new(
902
+
527
903
  action_url: "TS",
528
904
 
529
905
 
530
906
  digit_timeout_ms: 1,
531
907
 
532
908
 
909
+
533
910
  finish_on_key: "TS",
534
911
 
535
912