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