freeclimb 4.4.0 → 4.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -2
  3. data/Gemfile.lock +1 -1
  4. data/README.md +4 -4
  5. data/docs/SMSTenDLCCampaign.md +1 -1
  6. data/lib/freeclimb/version.rb +1 -1
  7. data/openapi.json +123 -18
  8. data/spec/models/account_request_spec.rb +143 -2
  9. data/spec/models/account_result_spec.rb +377 -13
  10. data/spec/models/account_status_spec.rb +39 -6
  11. data/spec/models/account_type_spec.rb +26 -4
  12. data/spec/models/add_to_conference_spec.rb +343 -10
  13. data/spec/models/answered_by_spec.rb +26 -4
  14. data/spec/models/application_list_spec.rb +293 -8
  15. data/spec/models/application_request_spec.rb +268 -7
  16. data/spec/models/application_result_spec.rb +418 -13
  17. data/spec/models/available_number_list_spec.rb +293 -8
  18. data/spec/models/available_number_spec.rb +263 -7
  19. data/spec/models/buy_incoming_number_request_spec.rb +168 -3
  20. data/spec/models/call_direction_spec.rb +39 -6
  21. data/spec/models/call_list_spec.rb +293 -8
  22. data/spec/models/call_result_spec.rb +603 -22
  23. data/spec/models/call_status_spec.rb +104 -16
  24. data/spec/models/capabilities_spec.rb +218 -5
  25. data/spec/models/conference_list_spec.rb +293 -8
  26. data/spec/models/conference_participant_list_spec.rb +293 -8
  27. data/spec/models/conference_participant_result_spec.rb +343 -10
  28. data/spec/models/conference_result_spec.rb +464 -16
  29. data/spec/models/conference_status_spec.rb +52 -8
  30. data/spec/models/create_conference_request_spec.rb +228 -6
  31. data/spec/models/create_conference_spec.rb +253 -7
  32. data/spec/models/enqueue_spec.rb +193 -4
  33. data/spec/models/filter_logs_request_spec.rb +118 -1
  34. data/spec/models/get_digits_spec.rb +318 -9
  35. data/spec/models/get_speech_reason_spec.rb +78 -12
  36. data/spec/models/get_speech_spec.rb +388 -14
  37. data/spec/models/grammar_file_built_in_spec.rb +195 -30
  38. data/spec/models/grammar_type_spec.rb +26 -4
  39. data/spec/models/hangup_spec.rb +118 -1
  40. data/spec/models/if_machine_spec.rb +26 -4
  41. data/spec/models/incoming_number_list_spec.rb +293 -8
  42. data/spec/models/incoming_number_request_spec.rb +173 -2
  43. data/spec/models/incoming_number_result_spec.rb +488 -16
  44. data/spec/models/language_spec.rb +338 -52
  45. data/spec/models/log_level_spec.rb +39 -6
  46. data/spec/models/log_list_spec.rb +293 -8
  47. data/spec/models/log_result_spec.rb +275 -8
  48. data/spec/models/machine_type_spec.rb +26 -4
  49. data/spec/models/make_call_request_spec.rb +343 -10
  50. data/spec/models/message_direction_spec.rb +26 -4
  51. data/spec/models/message_request_spec.rb +318 -9
  52. data/spec/models/message_result_spec.rb +431 -13
  53. data/spec/models/message_status_spec.rb +143 -22
  54. data/spec/models/messages_list_spec.rb +293 -8
  55. data/spec/models/mutable_resource_model_spec.rb +193 -4
  56. data/spec/models/out_dial_spec.rb +345 -11
  57. data/spec/models/pagination_model_spec.rb +268 -7
  58. data/spec/models/park_spec.rb +168 -3
  59. data/spec/models/pause_spec.rb +118 -1
  60. data/spec/models/percl_command_spec.rb +132 -3
  61. data/spec/models/percl_script_spec.rb +118 -1
  62. data/spec/models/play_beep_spec.rb +52 -8
  63. data/spec/models/play_early_media_spec.rb +118 -1
  64. data/spec/models/play_spec.rb +193 -4
  65. data/spec/models/queue_list_spec.rb +293 -8
  66. data/spec/models/queue_member_list_spec.rb +293 -8
  67. data/spec/models/queue_member_spec.rb +218 -5
  68. data/spec/models/queue_request_spec.rb +143 -2
  69. data/spec/models/queue_result_spec.rb +369 -11
  70. data/spec/models/queue_result_status_spec.rb +52 -8
  71. data/spec/models/record_utterance_spec.rb +268 -7
  72. data/spec/models/record_utterance_term_reason_spec.rb +52 -8
  73. data/spec/models/recording_list_spec.rb +293 -8
  74. data/spec/models/recording_result_spec.rb +318 -9
  75. data/spec/models/redirect_spec.rb +118 -1
  76. data/spec/models/reject_spec.rb +118 -1
  77. data/spec/models/remove_from_conference_spec.rb +118 -1
  78. data/spec/models/request_type_spec.rb +299 -46
  79. data/spec/models/say_spec.rb +218 -5
  80. data/spec/models/send_digits_spec.rb +168 -3
  81. data/spec/models/set_listen_spec.rb +143 -2
  82. data/spec/models/set_talk_spec.rb +143 -2
  83. data/spec/models/sms_spec.rb +193 -4
  84. data/spec/models/sms_ten_dlc_brand_spec.rb +1070 -64
  85. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +294 -9
  86. data/spec/models/sms_ten_dlc_campaign_spec.rb +875 -38
  87. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +294 -9
  88. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +365 -11
  89. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +823 -35
  90. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +294 -9
  91. data/spec/models/terminate_conference_spec.rb +118 -1
  92. data/spec/models/update_call_request_spec.rb +120 -2
  93. data/spec/models/update_call_request_status_spec.rb +26 -4
  94. data/spec/models/update_conference_participant_request_spec.rb +143 -2
  95. data/spec/models/update_conference_request_spec.rb +180 -5
  96. data/spec/models/update_conference_request_status_spec.rb +26 -4
  97. metadata +77 -77
@@ -27,49 +27,334 @@ describe Freeclimb::ApplicationList do
27
27
  end
28
28
  describe 'test attribute "total"' do
29
29
  it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
30
+ instance.total = 1
31
+ expect(instance.total).to eq(1)
31
32
  end
32
33
  end
33
34
 
34
35
  describe 'test attribute "start"' do
35
36
  it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ instance.start = 1
38
+ expect(instance.start).to eq(1)
37
39
  end
38
40
  end
39
41
 
40
42
  describe 'test attribute "_end"' do
41
43
  it 'should work' do
42
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ instance._end = 1
45
+ expect(instance._end).to eq(1)
43
46
  end
44
47
  end
45
48
 
46
49
  describe 'test attribute "page"' do
47
50
  it 'should work' do
48
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
51
+ instance.page = 1
52
+ expect(instance.page).to eq(1)
49
53
  end
50
54
  end
51
55
 
52
56
  describe 'test attribute "num_pages"' do
53
57
  it 'should work' do
54
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
+ instance.num_pages = 1
59
+ expect(instance.num_pages).to eq(1)
55
60
  end
56
61
  end
57
62
 
58
63
  describe 'test attribute "page_size"' do
59
64
  it 'should work' do
60
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
+ instance.page_size = 1
66
+ expect(instance.page_size).to eq(1)
61
67
  end
62
68
  end
63
69
 
64
70
  describe 'test attribute "next_page_uri"' do
65
71
  it 'should work' do
66
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
+ instance.next_page_uri = "TEST_STRING"
73
+ expect(instance.next_page_uri).to eq("TEST_STRING")
67
74
  end
68
75
  end
69
76
 
70
77
  describe 'test attribute "applications"' do
71
78
  it 'should work' do
72
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
+ instance.applications = ["ELEMENT_1", "ELEMENT_2"]
80
+ expect(instance.applications).to eq(["ELEMENT_1", "ELEMENT_2"])
81
+ end
82
+ end
83
+
84
+ describe 'test method "initialize"' do
85
+ it 'properly initializes with values' do
86
+ expect{instance = Freeclimb::ApplicationList.new(
87
+ total: 1,
88
+ start: 1,
89
+ _end: 1,
90
+ page: 1,
91
+ num_pages: 1,
92
+ page_size: 1,
93
+ next_page_uri: "TS",
94
+ applications: Array.new(),
95
+ )}.not_to raise_error()
96
+ end
97
+ it 'fails to initialize with input argument that is not a hash in Freeclimb::ApplicationList' do
98
+ expect{instance = Freeclimb::ApplicationList.new(
99
+ total: 1,
100
+ start: 1,
101
+ _end: 1,
102
+ page: 1,
103
+ num_pages: 1,
104
+ page_size: 1,
105
+ next_page_uri: "TS",
106
+ applications: Array.new(),
107
+ invalid_attribute: true
108
+ )}.to raise_error(ArgumentError)
109
+ end
110
+ it 'fails to initialize with invalid attribute' do
111
+ expect{instance = Freeclimb::ApplicationList.new(
112
+ total: 1,
113
+ start: 1,
114
+ _end: 1,
115
+ page: 1,
116
+ num_pages: 1,
117
+ page_size: 1,
118
+ next_page_uri: "TS",
119
+ applications: Array.new(),
120
+ invalid_attribute: true
121
+ )}.to raise_error(ArgumentError)
122
+ end
123
+ end
124
+
125
+ describe 'test method "valid"' do
126
+ it 'checks if properties are valid' do
127
+ instance = Freeclimb::ApplicationList.new(
128
+ total: 1,
129
+ start: 1,
130
+ _end: 1,
131
+ page: 1,
132
+ num_pages: 1,
133
+ page_size: 1,
134
+ next_page_uri: "TS",
135
+ applications: Array.new(),
136
+ )
137
+ expect(instance.valid?).to eq(true)
138
+ end
139
+ end
140
+
141
+ describe 'test method "eql?"' do
142
+ it 'checks if objects are equal' do
143
+ obj = Object.new()
144
+ instance_1 = Freeclimb::ApplicationList.new(
145
+ total: 1,
146
+ start: 1,
147
+ _end: 1,
148
+ page: 1,
149
+ num_pages: 1,
150
+ page_size: 1,
151
+ next_page_uri: "TS",
152
+ applications: [],
153
+ )
154
+ instance_2 = Freeclimb::ApplicationList.new(
155
+ total: 1,
156
+ start: 1,
157
+ _end: 1,
158
+ page: 1,
159
+ num_pages: 1,
160
+ page_size: 1,
161
+ next_page_uri: "TS",
162
+ applications: [],
163
+ )
164
+ expect(instance_1.eql?(instance_2)).to eq(true)
165
+ end
166
+ it 'checks if objects are not equal' do
167
+ instance_1 = Freeclimb::ApplicationList.new(
168
+ total: 1,
169
+ start: 1,
170
+ _end: 1,
171
+ page: 1,
172
+ num_pages: 1,
173
+ page_size: 1,
174
+ next_page_uri: "TS",
175
+ applications: [],
176
+ )
177
+ instance_2 = Freeclimb::ApplicationList.new(
178
+ total: 0,
179
+ start: 0,
180
+ _end: 0,
181
+ page: 0,
182
+ num_pages: 0,
183
+ page_size: 0,
184
+ next_page_uri: "ST",
185
+ applications: nil,
186
+ )
187
+ expect(instance_1.eql?(instance_2)).to eq(false)
188
+ end
189
+ end
190
+
191
+ describe 'test method "hash"' do
192
+ it 'calculates hash code' do
193
+ instance = Freeclimb::ApplicationList.new(
194
+ total: 1,
195
+ start: 1,
196
+ _end: 1,
197
+ page: 1,
198
+ num_pages: 1,
199
+ page_size: 1,
200
+ next_page_uri: "TS",
201
+ applications: Array.new(),
202
+ )
203
+ expect(instance.hash).to be_a_kind_of(Integer)
204
+ end
205
+ end
206
+
207
+ describe 'test method "build_from_hash"' do
208
+ it 'builds equivalent model from hash code' do
209
+ instance_1 = Freeclimb::ApplicationList.new(
210
+ total: 1,
211
+ start: 1,
212
+ _end: 1,
213
+ page: 1,
214
+ num_pages: 1,
215
+ page_size: 1,
216
+ next_page_uri: "TS",
217
+ applications: Array.new(),
218
+ )
219
+ instance_2 = Freeclimb::ApplicationList.new
220
+ expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
221
+ end
222
+ end
223
+
224
+ describe 'test method "_deserialize"' do
225
+ instance = Freeclimb::ApplicationList.new(
226
+ total: 1,
227
+ start: 1,
228
+ _end: 1,
229
+ page: 1,
230
+ num_pages: 1,
231
+ page_size: 1,
232
+ next_page_uri: "TS",
233
+ applications: Array.new(),
234
+ )
235
+ it 'deserializes the data of total' do
236
+ expect(instance._deserialize("Integer", instance.total)).to be_a_kind_of(Integer)
237
+ end
238
+ it 'deserializes the data of start' do
239
+ expect(instance._deserialize("Integer", instance.start)).to be_a_kind_of(Integer)
240
+ end
241
+ it 'deserializes the data of _end' do
242
+ expect(instance._deserialize("Integer", instance._end)).to be_a_kind_of(Integer)
243
+ end
244
+ it 'deserializes the data of page' do
245
+ expect(instance._deserialize("Integer", instance.page)).to be_a_kind_of(Integer)
246
+ end
247
+ it 'deserializes the data of num_pages' do
248
+ expect(instance._deserialize("Integer", instance.num_pages)).to be_a_kind_of(Integer)
249
+ end
250
+ it 'deserializes the data of page_size' do
251
+ expect(instance._deserialize("Integer", instance.page_size)).to be_a_kind_of(Integer)
252
+ end
253
+ it 'deserializes the data of next_page_uri' do
254
+ expect(instance._deserialize("String", instance.next_page_uri)).to be_a_kind_of(String)
255
+ end
256
+ it 'deserializes the data of applications' do
257
+ expect(instance._deserialize("Array<ApplicationResult>", instance.applications)).to be_a_kind_of(Array)
258
+ end
259
+ end
260
+
261
+ describe 'test method "to_s"' do
262
+ it 'returns the string representation of the object' do
263
+ instance = Freeclimb::ApplicationList.new(
264
+ total: 1,
265
+ start: 1,
266
+ _end: 1,
267
+ page: 1,
268
+ num_pages: 1,
269
+ page_size: 1,
270
+ next_page_uri: "TS",
271
+ applications: Array.new(),
272
+ )
273
+ expect(instance.to_s).to eq(instance.to_hash.to_s)
274
+ end
275
+ end
276
+
277
+ describe 'test method "to_hash"' do
278
+ it 'returns the object in the form of hash' do
279
+ instance = Freeclimb::ApplicationList.new(
280
+ total: 1,
281
+ start: 1,
282
+ _end: 1,
283
+ page: 1,
284
+ num_pages: 1,
285
+ page_size: 1,
286
+ next_page_uri: "TS",
287
+ applications: Array.new(),
288
+ )
289
+ expect(instance.to_hash).to be_a_kind_of(Hash)
290
+ end
291
+ it 'creates equal hash for two equal objects' do
292
+ obj = Object.new()
293
+ instance_1 = Freeclimb::ApplicationList.new(
294
+ total: 1,
295
+ start: 1,
296
+ _end: 1,
297
+ page: 1,
298
+ num_pages: 1,
299
+ page_size: 1,
300
+ next_page_uri: "TS",
301
+ applications: Array.new(),
302
+ )
303
+ instance_2 = Freeclimb::ApplicationList.new(
304
+ total: 1,
305
+ start: 1,
306
+ _end: 1,
307
+ page: 1,
308
+ num_pages: 1,
309
+ page_size: 1,
310
+ next_page_uri: "TS",
311
+ applications: Array.new(),
312
+ )
313
+ expect(instance_1.to_hash).to eq(instance_2.to_hash)
314
+ end
315
+ end
316
+
317
+ describe 'test method "_to_hash"' do
318
+ instance = Freeclimb::ApplicationList.new(
319
+ total: 1,
320
+
321
+ start: 1,
322
+
323
+ _end: 1,
324
+
325
+ page: 1,
326
+
327
+ num_pages: 1,
328
+
329
+ page_size: 1,
330
+
331
+ next_page_uri: "TS",
332
+
333
+ applications: Array.new(),
334
+ )
335
+ it 'returns total in the form of hash' do
336
+ expect(instance._to_hash(instance.total)).to eq(instance.total)
337
+ end
338
+ it 'returns start in the form of hash' do
339
+ expect(instance._to_hash(instance.start)).to eq(instance.start)
340
+ end
341
+ it 'returns _end in the form of hash' do
342
+ expect(instance._to_hash(instance._end)).to eq(instance._end)
343
+ end
344
+ it 'returns page in the form of hash' do
345
+ expect(instance._to_hash(instance.page)).to eq(instance.page)
346
+ end
347
+ it 'returns num_pages in the form of hash' do
348
+ expect(instance._to_hash(instance.num_pages)).to eq(instance.num_pages)
349
+ end
350
+ it 'returns page_size in the form of hash' do
351
+ expect(instance._to_hash(instance.page_size)).to eq(instance.page_size)
352
+ end
353
+ it 'returns next_page_uri in the form of hash' do
354
+ expect(instance._to_hash(instance.next_page_uri)).to eq(instance.next_page_uri)
355
+ end
356
+ it 'returns applications in the form of hash' do
357
+ expect(instance._to_hash(instance.applications)).to eq(instance.applications)
73
358
  end
74
359
  end
75
360
 
@@ -27,43 +27,304 @@ describe Freeclimb::ApplicationRequest do
27
27
  end
28
28
  describe 'test attribute "_alias"' do
29
29
  it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
30
+ instance._alias = "TEST_STRING"
31
+ expect(instance._alias).to eq("TEST_STRING")
31
32
  end
32
33
  end
33
34
 
34
35
  describe 'test attribute "voice_url"' do
35
36
  it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ instance.voice_url = "TEST_STRING"
38
+ expect(instance.voice_url).to eq("TEST_STRING")
37
39
  end
38
40
  end
39
41
 
40
42
  describe 'test attribute "voice_fallback_url"' do
41
43
  it 'should work' do
42
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ instance.voice_fallback_url = "TEST_STRING"
45
+ expect(instance.voice_fallback_url).to eq("TEST_STRING")
43
46
  end
44
47
  end
45
48
 
46
49
  describe 'test attribute "call_connect_url"' do
47
50
  it 'should work' do
48
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
51
+ instance.call_connect_url = "TEST_STRING"
52
+ expect(instance.call_connect_url).to eq("TEST_STRING")
49
53
  end
50
54
  end
51
55
 
52
56
  describe 'test attribute "status_callback_url"' do
53
57
  it 'should work' do
54
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
+ instance.status_callback_url = "TEST_STRING"
59
+ expect(instance.status_callback_url).to eq("TEST_STRING")
55
60
  end
56
61
  end
57
62
 
58
63
  describe 'test attribute "sms_url"' do
59
64
  it 'should work' do
60
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
+ instance.sms_url = "TEST_STRING"
66
+ expect(instance.sms_url).to eq("TEST_STRING")
61
67
  end
62
68
  end
63
69
 
64
70
  describe 'test attribute "sms_fallback_url"' do
65
71
  it 'should work' do
66
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
+ instance.sms_fallback_url = "TEST_STRING"
73
+ expect(instance.sms_fallback_url).to eq("TEST_STRING")
74
+ end
75
+ end
76
+
77
+ describe 'test method "initialize"' do
78
+ it 'properly initializes with values' do
79
+ expect{instance = Freeclimb::ApplicationRequest.new(
80
+ _alias: "TS",
81
+ voice_url: "TS",
82
+ voice_fallback_url: "TS",
83
+ call_connect_url: "TS",
84
+ status_callback_url: "TS",
85
+ sms_url: "TS",
86
+ sms_fallback_url: "TS",
87
+ )}.not_to raise_error()
88
+ end
89
+ it 'fails to initialize with input argument that is not a hash in Freeclimb::ApplicationRequest' do
90
+ expect{instance = Freeclimb::ApplicationRequest.new(
91
+ _alias: "TS",
92
+ voice_url: "TS",
93
+ voice_fallback_url: "TS",
94
+ call_connect_url: "TS",
95
+ status_callback_url: "TS",
96
+ sms_url: "TS",
97
+ sms_fallback_url: "TS",
98
+ invalid_attribute: true
99
+ )}.to raise_error(ArgumentError)
100
+ end
101
+ it 'fails to initialize with invalid attribute' do
102
+ expect{instance = Freeclimb::ApplicationRequest.new(
103
+ _alias: "TS",
104
+ voice_url: "TS",
105
+ voice_fallback_url: "TS",
106
+ call_connect_url: "TS",
107
+ status_callback_url: "TS",
108
+ sms_url: "TS",
109
+ sms_fallback_url: "TS",
110
+ invalid_attribute: true
111
+ )}.to raise_error(ArgumentError)
112
+ end
113
+ end
114
+
115
+ describe 'test method "valid"' do
116
+ it 'checks if properties are valid' do
117
+ instance = Freeclimb::ApplicationRequest.new(
118
+ _alias: "TS",
119
+ voice_url: "TS",
120
+ voice_fallback_url: "TS",
121
+ call_connect_url: "TS",
122
+ status_callback_url: "TS",
123
+ sms_url: "TS",
124
+ sms_fallback_url: "TS",
125
+ )
126
+ expect(instance.valid?).to eq(true)
127
+ end
128
+ end
129
+
130
+ describe 'test method "eql?"' do
131
+ it 'checks if objects are equal' do
132
+ obj = Object.new()
133
+ instance_1 = Freeclimb::ApplicationRequest.new(
134
+ _alias: "TS",
135
+ voice_url: "TS",
136
+ voice_fallback_url: "TS",
137
+ call_connect_url: "TS",
138
+ status_callback_url: "TS",
139
+ sms_url: "TS",
140
+ sms_fallback_url: "TS",
141
+ )
142
+ instance_2 = Freeclimb::ApplicationRequest.new(
143
+ _alias: "TS",
144
+ voice_url: "TS",
145
+ voice_fallback_url: "TS",
146
+ call_connect_url: "TS",
147
+ status_callback_url: "TS",
148
+ sms_url: "TS",
149
+ sms_fallback_url: "TS",
150
+ )
151
+ expect(instance_1.eql?(instance_2)).to eq(true)
152
+ end
153
+ it 'checks if objects are not equal' do
154
+ instance_1 = Freeclimb::ApplicationRequest.new(
155
+ _alias: "TS",
156
+ voice_url: "TS",
157
+ voice_fallback_url: "TS",
158
+ call_connect_url: "TS",
159
+ status_callback_url: "TS",
160
+ sms_url: "TS",
161
+ sms_fallback_url: "TS",
162
+ )
163
+ instance_2 = Freeclimb::ApplicationRequest.new(
164
+ _alias: "ST",
165
+ voice_url: "ST",
166
+ voice_fallback_url: "ST",
167
+ call_connect_url: "ST",
168
+ status_callback_url: "ST",
169
+ sms_url: "ST",
170
+ sms_fallback_url: "ST",
171
+ )
172
+ expect(instance_1.eql?(instance_2)).to eq(false)
173
+ end
174
+ end
175
+
176
+ describe 'test method "hash"' do
177
+ it 'calculates hash code' do
178
+ instance = Freeclimb::ApplicationRequest.new(
179
+ _alias: "TS",
180
+ voice_url: "TS",
181
+ voice_fallback_url: "TS",
182
+ call_connect_url: "TS",
183
+ status_callback_url: "TS",
184
+ sms_url: "TS",
185
+ sms_fallback_url: "TS",
186
+ )
187
+ expect(instance.hash).to be_a_kind_of(Integer)
188
+ end
189
+ end
190
+
191
+ describe 'test method "build_from_hash"' do
192
+ it 'builds equivalent model from hash code' do
193
+ instance_1 = Freeclimb::ApplicationRequest.new(
194
+ _alias: "TS",
195
+ voice_url: "TS",
196
+ voice_fallback_url: "TS",
197
+ call_connect_url: "TS",
198
+ status_callback_url: "TS",
199
+ sms_url: "TS",
200
+ sms_fallback_url: "TS",
201
+ )
202
+ instance_2 = Freeclimb::ApplicationRequest.new
203
+ expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
204
+ end
205
+ end
206
+
207
+ describe 'test method "_deserialize"' do
208
+ instance = Freeclimb::ApplicationRequest.new(
209
+ _alias: "TS",
210
+ voice_url: "TS",
211
+ voice_fallback_url: "TS",
212
+ call_connect_url: "TS",
213
+ status_callback_url: "TS",
214
+ sms_url: "TS",
215
+ sms_fallback_url: "TS",
216
+ )
217
+ it 'deserializes the data of _alias' do
218
+ expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String)
219
+ end
220
+ it 'deserializes the data of voice_url' do
221
+ expect(instance._deserialize("String", instance.voice_url)).to be_a_kind_of(String)
222
+ end
223
+ it 'deserializes the data of voice_fallback_url' do
224
+ expect(instance._deserialize("String", instance.voice_fallback_url)).to be_a_kind_of(String)
225
+ end
226
+ it 'deserializes the data of call_connect_url' do
227
+ expect(instance._deserialize("String", instance.call_connect_url)).to be_a_kind_of(String)
228
+ end
229
+ it 'deserializes the data of status_callback_url' do
230
+ expect(instance._deserialize("String", instance.status_callback_url)).to be_a_kind_of(String)
231
+ end
232
+ it 'deserializes the data of sms_url' do
233
+ expect(instance._deserialize("String", instance.sms_url)).to be_a_kind_of(String)
234
+ end
235
+ it 'deserializes the data of sms_fallback_url' do
236
+ expect(instance._deserialize("String", instance.sms_fallback_url)).to be_a_kind_of(String)
237
+ end
238
+ end
239
+
240
+ describe 'test method "to_s"' do
241
+ it 'returns the string representation of the object' do
242
+ instance = Freeclimb::ApplicationRequest.new(
243
+ _alias: "TS",
244
+ voice_url: "TS",
245
+ voice_fallback_url: "TS",
246
+ call_connect_url: "TS",
247
+ status_callback_url: "TS",
248
+ sms_url: "TS",
249
+ sms_fallback_url: "TS",
250
+ )
251
+ expect(instance.to_s).to eq(instance.to_hash.to_s)
252
+ end
253
+ end
254
+
255
+ describe 'test method "to_hash"' do
256
+ it 'returns the object in the form of hash' do
257
+ instance = Freeclimb::ApplicationRequest.new(
258
+ _alias: "TS",
259
+ voice_url: "TS",
260
+ voice_fallback_url: "TS",
261
+ call_connect_url: "TS",
262
+ status_callback_url: "TS",
263
+ sms_url: "TS",
264
+ sms_fallback_url: "TS",
265
+ )
266
+ expect(instance.to_hash).to be_a_kind_of(Hash)
267
+ end
268
+ it 'creates equal hash for two equal objects' do
269
+ obj = Object.new()
270
+ instance_1 = Freeclimb::ApplicationRequest.new(
271
+ _alias: "TS",
272
+ voice_url: "TS",
273
+ voice_fallback_url: "TS",
274
+ call_connect_url: "TS",
275
+ status_callback_url: "TS",
276
+ sms_url: "TS",
277
+ sms_fallback_url: "TS",
278
+ )
279
+ instance_2 = Freeclimb::ApplicationRequest.new(
280
+ _alias: "TS",
281
+ voice_url: "TS",
282
+ voice_fallback_url: "TS",
283
+ call_connect_url: "TS",
284
+ status_callback_url: "TS",
285
+ sms_url: "TS",
286
+ sms_fallback_url: "TS",
287
+ )
288
+ expect(instance_1.to_hash).to eq(instance_2.to_hash)
289
+ end
290
+ end
291
+
292
+ describe 'test method "_to_hash"' do
293
+ instance = Freeclimb::ApplicationRequest.new(
294
+ _alias: "TS",
295
+
296
+ voice_url: "TS",
297
+
298
+ voice_fallback_url: "TS",
299
+
300
+ call_connect_url: "TS",
301
+
302
+ status_callback_url: "TS",
303
+
304
+ sms_url: "TS",
305
+
306
+ sms_fallback_url: "TS",
307
+ )
308
+ it 'returns _alias in the form of hash' do
309
+ expect(instance._to_hash(instance._alias)).to eq(instance._alias)
310
+ end
311
+ it 'returns voice_url in the form of hash' do
312
+ expect(instance._to_hash(instance.voice_url)).to eq(instance.voice_url)
313
+ end
314
+ it 'returns voice_fallback_url in the form of hash' do
315
+ expect(instance._to_hash(instance.voice_fallback_url)).to eq(instance.voice_fallback_url)
316
+ end
317
+ it 'returns call_connect_url in the form of hash' do
318
+ expect(instance._to_hash(instance.call_connect_url)).to eq(instance.call_connect_url)
319
+ end
320
+ it 'returns status_callback_url in the form of hash' do
321
+ expect(instance._to_hash(instance.status_callback_url)).to eq(instance.status_callback_url)
322
+ end
323
+ it 'returns sms_url in the form of hash' do
324
+ expect(instance._to_hash(instance.sms_url)).to eq(instance.sms_url)
325
+ end
326
+ it 'returns sms_fallback_url in the form of hash' do
327
+ expect(instance._to_hash(instance.sms_fallback_url)).to eq(instance.sms_fallback_url)
67
328
  end
68
329
  end
69
330