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::SendDigits
18
19
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -28,9 +29,12 @@ describe Freeclimb::SendDigits do
28
29
 
29
30
  describe 'test attribute "digits"' do
30
31
  it 'should work' do
32
+
31
33
  instance.digits = "TEST_STRING"
32
34
  expect(instance.digits).to eq("TEST_STRING")
33
35
 
36
+
37
+
34
38
  end
35
39
  end
36
40
 
@@ -41,6 +45,8 @@ describe Freeclimb::SendDigits do
41
45
  instance.pause_ms = 1
42
46
  expect(instance.pause_ms).to eq(1)
43
47
 
48
+
49
+
44
50
  end
45
51
  end
46
52
 
@@ -49,39 +55,62 @@ describe Freeclimb::SendDigits do
49
55
  instance.privacy_mode = false
50
56
  expect(instance.privacy_mode).to eq(false)
51
57
 
58
+
59
+
52
60
  end
53
61
  end
54
62
 
55
63
  describe 'test method "initialize"' do
56
64
  it 'properly initializes with values' do
57
65
  expect { instance = Freeclimb::SendDigits.new(
66
+
58
67
  digits: "TS",
59
68
 
69
+
70
+
60
71
  pause_ms: 1,
61
72
 
73
+
74
+
62
75
  privacy_mode: true,
63
76
 
77
+
78
+
64
79
  )}.not_to raise_error()
65
80
  end
66
81
  it 'fails to initialize with input argument that is not a hash in Freeclimb::SendDigits' do
67
82
  expect { instance = Freeclimb::SendDigits.new(
83
+
68
84
  digits: "TS",
69
85
 
86
+
87
+
70
88
  pause_ms: 1,
71
89
 
90
+
91
+
72
92
  privacy_mode: true,
73
93
 
94
+
95
+
74
96
  invalid_attribute: true
75
97
  )}.to raise_error(ArgumentError)
76
98
  end
77
99
  it 'fails to initialize with invalid attribute' do
78
100
  expect { instance = Freeclimb::SendDigits.new(
101
+
79
102
  digits: "TS",
80
103
 
104
+
105
+
81
106
  pause_ms: 1,
82
107
 
108
+
109
+
83
110
  privacy_mode: true,
84
111
 
112
+
113
+
85
114
  invalid_attribute: true
86
115
  )}.to raise_error(ArgumentError)
87
116
  end
@@ -90,12 +119,19 @@ describe Freeclimb::SendDigits do
90
119
  describe 'test method "valid"' do
91
120
  it 'checks if properties are valid' do
92
121
  instance = Freeclimb::SendDigits.new(
122
+
93
123
  digits: "TS",
94
124
 
125
+
126
+
95
127
  pause_ms: 1,
96
128
 
129
+
130
+
97
131
  privacy_mode: true,
98
132
 
133
+
134
+
99
135
  )
100
136
  expect(instance.valid?).to eq(true)
101
137
  end
@@ -112,42 +148,72 @@ describe Freeclimb::SendDigits do
112
148
 
113
149
  describe 'test method "eql?"' do
114
150
  it 'checks if objects are equal' do
115
- obj = Object.new()
151
+
152
+
153
+
116
154
  instance_1 = Freeclimb::SendDigits.new(
155
+
117
156
  digits: "TS",
118
157
 
158
+
159
+
119
160
  pause_ms: 1,
120
161
 
162
+
163
+
121
164
  privacy_mode: true,
122
165
 
166
+
167
+
123
168
  )
124
169
  instance_2 = Freeclimb::SendDigits.new(
170
+
125
171
  digits: "TS",
126
172
 
173
+
174
+
175
+
176
+
127
177
  pause_ms: 1,
128
178
 
129
179
  privacy_mode: true,
130
180
 
181
+
182
+
131
183
  )
132
184
  expect(instance_1.eql?(instance_2)).to eq(true)
133
185
  end
134
186
 
135
187
  it 'checks if objects are not equal' do
136
188
  instance_1 = Freeclimb::SendDigits.new(
189
+
137
190
  digits: "TS",
138
191
 
192
+
193
+
139
194
  pause_ms: 2,
140
195
 
196
+
197
+
141
198
  privacy_mode: true,
142
199
 
200
+
201
+
143
202
  )
144
203
  instance_2 = Freeclimb::SendDigits.new(
204
+
145
205
  digits: "ST",
146
206
 
207
+
208
+
147
209
  pause_ms: 1,
148
210
 
211
+
212
+
149
213
  privacy_mode: false,
150
214
 
215
+
216
+
151
217
  )
152
218
  expect(instance_1.eql?(instance_2)).to eq(false)
153
219
  end
@@ -156,12 +222,19 @@ describe Freeclimb::SendDigits do
156
222
  describe 'test method "hash"' do
157
223
  it 'calculates hash code' do
158
224
  instance = Freeclimb::SendDigits.new(
225
+
159
226
  digits: "TS",
160
227
 
228
+
229
+
161
230
  pause_ms: 1,
162
231
 
232
+
233
+
163
234
  privacy_mode: true,
164
235
 
236
+
237
+
165
238
  )
166
239
  expect(instance.hash).to be_a_kind_of(Integer)
167
240
  end
@@ -170,20 +243,34 @@ describe Freeclimb::SendDigits do
170
243
  describe 'test method "build_from_hash"' do
171
244
  it 'builds equivalent model from hash code' do
172
245
  instance_1 = Freeclimb::SendDigits.new(
246
+
173
247
  digits: "TS",
174
248
 
249
+
250
+
175
251
  pause_ms: 1,
176
252
 
253
+
254
+
177
255
  privacy_mode: true,
178
256
 
257
+
258
+
179
259
  )
180
260
  instance_2 = Freeclimb::SendDigits.new(
261
+
181
262
  digits: "TS",
182
263
 
264
+
265
+
183
266
  pause_ms: 1,
184
267
 
268
+
269
+
185
270
  privacy_mode: true,
186
271
 
272
+
273
+
187
274
  )
188
275
 
189
276
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
@@ -192,19 +279,32 @@ describe Freeclimb::SendDigits do
192
279
 
193
280
  describe 'test method "_deserialize"' do
194
281
  instance = Freeclimb::SendDigits.new(
282
+
195
283
  digits: "TS",
196
284
 
285
+
286
+
197
287
  pause_ms: 1,
198
288
 
289
+
290
+
199
291
  privacy_mode: true,
200
292
 
293
+
294
+
201
295
  )
202
296
  it 'deserializes the data of digits' do
203
297
  expect(instance._deserialize("String", instance.digits)).to be_a_kind_of(String)
204
298
  end
299
+
300
+
205
301
  it 'deserializes the data of pause_ms' do
206
302
  expect(instance._deserialize("Integer", instance.pause_ms)).to be_a_kind_of(Integer)
207
303
  end
304
+
305
+
306
+
307
+
208
308
  it 'deserializes the data of privacy_mode' do
209
309
  expect(instance._deserialize("Boolean", instance.privacy_mode)).to be_a_kind_of(TrueClass)
210
310
  end
@@ -213,12 +313,19 @@ describe Freeclimb::SendDigits do
213
313
  describe 'test method "to_s"' do
214
314
  it 'returns the string representation of the object' do
215
315
  instance = Freeclimb::SendDigits.new(
316
+
216
317
  digits: "TS",
217
318
 
319
+
320
+
218
321
  pause_ms: 1,
219
322
 
323
+
324
+
220
325
  privacy_mode: true,
221
326
 
327
+
328
+
222
329
  )
223
330
  expect(instance.to_s).to eq(instance.to_hash.to_s)
224
331
  end
@@ -227,32 +334,55 @@ describe Freeclimb::SendDigits do
227
334
  describe 'test method "to_hash"' do
228
335
  it 'returns the object in the form of hash' do
229
336
  instance = Freeclimb::SendDigits.new(
337
+
230
338
  digits: "TS",
231
339
 
340
+
341
+
232
342
  pause_ms: 1,
233
343
 
344
+
345
+
234
346
  privacy_mode: true,
235
347
 
348
+
349
+
236
350
  )
237
351
  expect(instance.to_hash).to be_a_kind_of(Hash)
238
352
  end
239
353
  it 'creates equal hash for two equal objects' do
240
- obj = Object.new()
354
+
355
+
356
+
241
357
  instance_1 = Freeclimb::SendDigits.new(
358
+
242
359
  digits: "TS",
243
360
 
361
+
362
+
244
363
  pause_ms: 1,
245
364
 
365
+
366
+
246
367
  privacy_mode: true,
247
368
 
369
+
370
+
248
371
  )
249
372
  instance_2 = Freeclimb::SendDigits.new(
373
+
250
374
  digits: "TS",
251
375
 
376
+
377
+
252
378
  pause_ms: 1,
253
379
 
380
+
381
+
254
382
  privacy_mode: true,
255
383
 
384
+
385
+
256
386
  )
257
387
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
258
388
  end
@@ -260,6 +390,7 @@ describe Freeclimb::SendDigits do
260
390
 
261
391
  describe 'test method "_to_hash"' do
262
392
  instance = Freeclimb::SendDigits.new(
393
+
263
394
  digits: "TS",
264
395
 
265
396
 
@@ -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::SetDTMFPassThrough
18
19
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -31,6 +32,8 @@ describe Freeclimb::SetDTMFPassThrough do
31
32
  instance.dtmf_pass_through = false
32
33
  expect(instance.dtmf_pass_through).to eq(false)
33
34
 
35
+
36
+
34
37
  end
35
38
  end
36
39
 
@@ -39,12 +42,16 @@ describe Freeclimb::SetDTMFPassThrough do
39
42
  expect { instance = Freeclimb::SetDTMFPassThrough.new(
40
43
  dtmf_pass_through: true,
41
44
 
45
+
46
+
42
47
  )}.not_to raise_error()
43
48
  end
44
49
  it 'fails to initialize with input argument that is not a hash in Freeclimb::SetDTMFPassThrough' do
45
50
  expect { instance = Freeclimb::SetDTMFPassThrough.new(
46
51
  dtmf_pass_through: true,
47
52
 
53
+
54
+
48
55
  invalid_attribute: true
49
56
  )}.to raise_error(ArgumentError)
50
57
  end
@@ -52,6 +59,8 @@ describe Freeclimb::SetDTMFPassThrough do
52
59
  expect { instance = Freeclimb::SetDTMFPassThrough.new(
53
60
  dtmf_pass_through: true,
54
61
 
62
+
63
+
55
64
  invalid_attribute: true
56
65
  )}.to raise_error(ArgumentError)
57
66
  end
@@ -62,6 +71,8 @@ describe Freeclimb::SetDTMFPassThrough do
62
71
  instance = Freeclimb::SetDTMFPassThrough.new(
63
72
  dtmf_pass_through: true,
64
73
 
74
+
75
+
65
76
  )
66
77
  expect(instance.valid?).to eq(true)
67
78
  end
@@ -78,14 +89,18 @@ describe Freeclimb::SetDTMFPassThrough do
78
89
 
79
90
  describe 'test method "eql?"' do
80
91
  it 'checks if objects are equal' do
81
- obj = Object.new()
92
+
82
93
  instance_1 = Freeclimb::SetDTMFPassThrough.new(
83
94
  dtmf_pass_through: true,
84
95
 
96
+
97
+
85
98
  )
86
99
  instance_2 = Freeclimb::SetDTMFPassThrough.new(
87
100
  dtmf_pass_through: true,
88
101
 
102
+
103
+
89
104
  )
90
105
  expect(instance_1.eql?(instance_2)).to eq(true)
91
106
  end
@@ -94,10 +109,14 @@ describe Freeclimb::SetDTMFPassThrough do
94
109
  instance_1 = Freeclimb::SetDTMFPassThrough.new(
95
110
  dtmf_pass_through: true,
96
111
 
112
+
113
+
97
114
  )
98
115
  instance_2 = Freeclimb::SetDTMFPassThrough.new(
99
116
  dtmf_pass_through: false,
100
117
 
118
+
119
+
101
120
  )
102
121
  expect(instance_1.eql?(instance_2)).to eq(false)
103
122
  end
@@ -108,6 +127,8 @@ describe Freeclimb::SetDTMFPassThrough do
108
127
  instance = Freeclimb::SetDTMFPassThrough.new(
109
128
  dtmf_pass_through: true,
110
129
 
130
+
131
+
111
132
  )
112
133
  expect(instance.hash).to be_a_kind_of(Integer)
113
134
  end
@@ -118,10 +139,14 @@ describe Freeclimb::SetDTMFPassThrough do
118
139
  instance_1 = Freeclimb::SetDTMFPassThrough.new(
119
140
  dtmf_pass_through: true,
120
141
 
142
+
143
+
121
144
  )
122
145
  instance_2 = Freeclimb::SetDTMFPassThrough.new(
123
146
  dtmf_pass_through: true,
124
147
 
148
+
149
+
125
150
  )
126
151
 
127
152
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
@@ -132,7 +157,11 @@ describe Freeclimb::SetDTMFPassThrough do
132
157
  instance = Freeclimb::SetDTMFPassThrough.new(
133
158
  dtmf_pass_through: true,
134
159
 
160
+
161
+
135
162
  )
163
+
164
+
136
165
  it 'deserializes the data of dtmf_pass_through' do
137
166
  expect(instance._deserialize("Boolean", instance.dtmf_pass_through)).to be_a_kind_of(TrueClass)
138
167
  end
@@ -143,6 +172,8 @@ describe Freeclimb::SetDTMFPassThrough do
143
172
  instance = Freeclimb::SetDTMFPassThrough.new(
144
173
  dtmf_pass_through: true,
145
174
 
175
+
176
+
146
177
  )
147
178
  expect(instance.to_s).to eq(instance.to_hash.to_s)
148
179
  end
@@ -153,18 +184,24 @@ describe Freeclimb::SetDTMFPassThrough do
153
184
  instance = Freeclimb::SetDTMFPassThrough.new(
154
185
  dtmf_pass_through: true,
155
186
 
187
+
188
+
156
189
  )
157
190
  expect(instance.to_hash).to be_a_kind_of(Hash)
158
191
  end
159
192
  it 'creates equal hash for two equal objects' do
160
- obj = Object.new()
193
+
161
194
  instance_1 = Freeclimb::SetDTMFPassThrough.new(
162
195
  dtmf_pass_through: true,
163
196
 
197
+
198
+
164
199
  )
165
200
  instance_2 = Freeclimb::SetDTMFPassThrough.new(
166
201
  dtmf_pass_through: true,
167
202
 
203
+
204
+
168
205
  )
169
206
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
170
207
  end
@@ -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::SetListen
18
19
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -31,6 +32,8 @@ describe Freeclimb::SetListen do
31
32
  instance.listen = false
32
33
  expect(instance.listen).to eq(false)
33
34
 
35
+
36
+
34
37
  end
35
38
  end
36
39
 
@@ -39,12 +42,16 @@ describe Freeclimb::SetListen do
39
42
  expect { instance = Freeclimb::SetListen.new(
40
43
  listen: true,
41
44
 
45
+
46
+
42
47
  )}.not_to raise_error()
43
48
  end
44
49
  it 'fails to initialize with input argument that is not a hash in Freeclimb::SetListen' do
45
50
  expect { instance = Freeclimb::SetListen.new(
46
51
  listen: true,
47
52
 
53
+
54
+
48
55
  invalid_attribute: true
49
56
  )}.to raise_error(ArgumentError)
50
57
  end
@@ -52,6 +59,8 @@ describe Freeclimb::SetListen do
52
59
  expect { instance = Freeclimb::SetListen.new(
53
60
  listen: true,
54
61
 
62
+
63
+
55
64
  invalid_attribute: true
56
65
  )}.to raise_error(ArgumentError)
57
66
  end
@@ -62,6 +71,8 @@ describe Freeclimb::SetListen do
62
71
  instance = Freeclimb::SetListen.new(
63
72
  listen: true,
64
73
 
74
+
75
+
65
76
  )
66
77
  expect(instance.valid?).to eq(true)
67
78
  end
@@ -78,14 +89,18 @@ describe Freeclimb::SetListen do
78
89
 
79
90
  describe 'test method "eql?"' do
80
91
  it 'checks if objects are equal' do
81
- obj = Object.new()
92
+
82
93
  instance_1 = Freeclimb::SetListen.new(
83
94
  listen: true,
84
95
 
96
+
97
+
85
98
  )
86
99
  instance_2 = Freeclimb::SetListen.new(
87
100
  listen: true,
88
101
 
102
+
103
+
89
104
  )
90
105
  expect(instance_1.eql?(instance_2)).to eq(true)
91
106
  end
@@ -94,10 +109,14 @@ describe Freeclimb::SetListen do
94
109
  instance_1 = Freeclimb::SetListen.new(
95
110
  listen: true,
96
111
 
112
+
113
+
97
114
  )
98
115
  instance_2 = Freeclimb::SetListen.new(
99
116
  listen: false,
100
117
 
118
+
119
+
101
120
  )
102
121
  expect(instance_1.eql?(instance_2)).to eq(false)
103
122
  end
@@ -108,6 +127,8 @@ describe Freeclimb::SetListen do
108
127
  instance = Freeclimb::SetListen.new(
109
128
  listen: true,
110
129
 
130
+
131
+
111
132
  )
112
133
  expect(instance.hash).to be_a_kind_of(Integer)
113
134
  end
@@ -118,10 +139,14 @@ describe Freeclimb::SetListen do
118
139
  instance_1 = Freeclimb::SetListen.new(
119
140
  listen: true,
120
141
 
142
+
143
+
121
144
  )
122
145
  instance_2 = Freeclimb::SetListen.new(
123
146
  listen: true,
124
147
 
148
+
149
+
125
150
  )
126
151
 
127
152
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
@@ -132,7 +157,11 @@ describe Freeclimb::SetListen do
132
157
  instance = Freeclimb::SetListen.new(
133
158
  listen: true,
134
159
 
160
+
161
+
135
162
  )
163
+
164
+
136
165
  it 'deserializes the data of listen' do
137
166
  expect(instance._deserialize("Boolean", instance.listen)).to be_a_kind_of(TrueClass)
138
167
  end
@@ -143,6 +172,8 @@ describe Freeclimb::SetListen do
143
172
  instance = Freeclimb::SetListen.new(
144
173
  listen: true,
145
174
 
175
+
176
+
146
177
  )
147
178
  expect(instance.to_s).to eq(instance.to_hash.to_s)
148
179
  end
@@ -153,18 +184,24 @@ describe Freeclimb::SetListen do
153
184
  instance = Freeclimb::SetListen.new(
154
185
  listen: true,
155
186
 
187
+
188
+
156
189
  )
157
190
  expect(instance.to_hash).to be_a_kind_of(Hash)
158
191
  end
159
192
  it 'creates equal hash for two equal objects' do
160
- obj = Object.new()
193
+
161
194
  instance_1 = Freeclimb::SetListen.new(
162
195
  listen: true,
163
196
 
197
+
198
+
164
199
  )
165
200
  instance_2 = Freeclimb::SetListen.new(
166
201
  listen: true,
167
202
 
203
+
204
+
168
205
  )
169
206
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
170
207
  end