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