freeclimb 4.4.0 → 4.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -2
- data/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/docs/SMSTenDLCCampaign.md +1 -1
- data/lib/freeclimb/version.rb +1 -1
- data/openapi.json +123 -18
- data/spec/models/account_request_spec.rb +143 -2
- data/spec/models/account_result_spec.rb +377 -13
- data/spec/models/account_status_spec.rb +39 -6
- data/spec/models/account_type_spec.rb +26 -4
- data/spec/models/add_to_conference_spec.rb +343 -10
- data/spec/models/answered_by_spec.rb +26 -4
- data/spec/models/application_list_spec.rb +293 -8
- data/spec/models/application_request_spec.rb +268 -7
- data/spec/models/application_result_spec.rb +418 -13
- data/spec/models/available_number_list_spec.rb +293 -8
- data/spec/models/available_number_spec.rb +263 -7
- data/spec/models/buy_incoming_number_request_spec.rb +168 -3
- data/spec/models/call_direction_spec.rb +39 -6
- data/spec/models/call_list_spec.rb +293 -8
- data/spec/models/call_result_spec.rb +603 -22
- data/spec/models/call_status_spec.rb +104 -16
- data/spec/models/capabilities_spec.rb +218 -5
- data/spec/models/conference_list_spec.rb +293 -8
- data/spec/models/conference_participant_list_spec.rb +293 -8
- data/spec/models/conference_participant_result_spec.rb +343 -10
- data/spec/models/conference_result_spec.rb +464 -16
- data/spec/models/conference_status_spec.rb +52 -8
- data/spec/models/create_conference_request_spec.rb +228 -6
- data/spec/models/create_conference_spec.rb +253 -7
- data/spec/models/enqueue_spec.rb +193 -4
- data/spec/models/filter_logs_request_spec.rb +118 -1
- data/spec/models/get_digits_spec.rb +318 -9
- data/spec/models/get_speech_reason_spec.rb +78 -12
- data/spec/models/get_speech_spec.rb +388 -14
- data/spec/models/grammar_file_built_in_spec.rb +195 -30
- data/spec/models/grammar_type_spec.rb +26 -4
- data/spec/models/hangup_spec.rb +118 -1
- data/spec/models/if_machine_spec.rb +26 -4
- data/spec/models/incoming_number_list_spec.rb +293 -8
- data/spec/models/incoming_number_request_spec.rb +173 -2
- data/spec/models/incoming_number_result_spec.rb +488 -16
- data/spec/models/language_spec.rb +338 -52
- data/spec/models/log_level_spec.rb +39 -6
- data/spec/models/log_list_spec.rb +293 -8
- data/spec/models/log_result_spec.rb +275 -8
- data/spec/models/machine_type_spec.rb +26 -4
- data/spec/models/make_call_request_spec.rb +343 -10
- data/spec/models/message_direction_spec.rb +26 -4
- data/spec/models/message_request_spec.rb +318 -9
- data/spec/models/message_result_spec.rb +431 -13
- data/spec/models/message_status_spec.rb +143 -22
- data/spec/models/messages_list_spec.rb +293 -8
- data/spec/models/mutable_resource_model_spec.rb +193 -4
- data/spec/models/out_dial_spec.rb +345 -11
- data/spec/models/pagination_model_spec.rb +268 -7
- data/spec/models/park_spec.rb +168 -3
- data/spec/models/pause_spec.rb +118 -1
- data/spec/models/percl_command_spec.rb +132 -3
- data/spec/models/percl_script_spec.rb +118 -1
- data/spec/models/play_beep_spec.rb +52 -8
- data/spec/models/play_early_media_spec.rb +118 -1
- data/spec/models/play_spec.rb +193 -4
- data/spec/models/queue_list_spec.rb +293 -8
- data/spec/models/queue_member_list_spec.rb +293 -8
- data/spec/models/queue_member_spec.rb +218 -5
- data/spec/models/queue_request_spec.rb +143 -2
- data/spec/models/queue_result_spec.rb +369 -11
- data/spec/models/queue_result_status_spec.rb +52 -8
- data/spec/models/record_utterance_spec.rb +268 -7
- data/spec/models/record_utterance_term_reason_spec.rb +52 -8
- data/spec/models/recording_list_spec.rb +293 -8
- data/spec/models/recording_result_spec.rb +318 -9
- data/spec/models/redirect_spec.rb +118 -1
- data/spec/models/reject_spec.rb +118 -1
- data/spec/models/remove_from_conference_spec.rb +118 -1
- data/spec/models/request_type_spec.rb +299 -46
- data/spec/models/say_spec.rb +218 -5
- data/spec/models/send_digits_spec.rb +168 -3
- data/spec/models/set_listen_spec.rb +143 -2
- data/spec/models/set_talk_spec.rb +143 -2
- data/spec/models/sms_spec.rb +193 -4
- data/spec/models/sms_ten_dlc_brand_spec.rb +1070 -64
- data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +294 -9
- data/spec/models/sms_ten_dlc_campaign_spec.rb +875 -38
- data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +294 -9
- data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +365 -11
- data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +823 -35
- data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +294 -9
- data/spec/models/terminate_conference_spec.rb +118 -1
- data/spec/models/update_call_request_spec.rb +120 -2
- data/spec/models/update_call_request_status_spec.rb +26 -4
- data/spec/models/update_conference_participant_request_spec.rb +143 -2
- data/spec/models/update_conference_request_spec.rb +180 -5
- data/spec/models/update_conference_request_status_spec.rb +26 -4
- metadata +77 -77
@@ -27,31 +27,244 @@ describe Freeclimb::QueueMember do
|
|
27
27
|
end
|
28
28
|
describe 'test attribute "uri"' do
|
29
29
|
it 'should work' do
|
30
|
-
|
30
|
+
instance.uri = "TEST_STRING"
|
31
|
+
expect(instance.uri).to eq("TEST_STRING")
|
31
32
|
end
|
32
33
|
end
|
33
34
|
|
34
35
|
describe 'test attribute "call_id"' do
|
35
36
|
it 'should work' do
|
36
|
-
|
37
|
+
instance.call_id = "TEST_STRING"
|
38
|
+
expect(instance.call_id).to eq("TEST_STRING")
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
40
42
|
describe 'test attribute "wait_time"' do
|
41
43
|
it 'should work' do
|
42
|
-
|
44
|
+
instance.wait_time = 1
|
45
|
+
expect(instance.wait_time).to eq(1)
|
43
46
|
end
|
44
47
|
end
|
45
48
|
|
46
49
|
describe 'test attribute "position"' do
|
47
50
|
it 'should work' do
|
48
|
-
|
51
|
+
instance.position = 1
|
52
|
+
expect(instance.position).to eq(1)
|
49
53
|
end
|
50
54
|
end
|
51
55
|
|
52
56
|
describe 'test attribute "date_enqueued"' do
|
53
57
|
it 'should work' do
|
54
|
-
|
58
|
+
instance.date_enqueued = "TEST_STRING"
|
59
|
+
expect(instance.date_enqueued).to eq("TEST_STRING")
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
describe 'test method "initialize"' do
|
64
|
+
it 'properly initializes with values' do
|
65
|
+
expect{instance = Freeclimb::QueueMember.new(
|
66
|
+
uri: "TS",
|
67
|
+
call_id: "TS",
|
68
|
+
wait_time: 1,
|
69
|
+
position: 1,
|
70
|
+
date_enqueued: "TS",
|
71
|
+
)}.not_to raise_error()
|
72
|
+
end
|
73
|
+
it 'fails to initialize with input argument that is not a hash in Freeclimb::QueueMember' do
|
74
|
+
expect{instance = Freeclimb::QueueMember.new(
|
75
|
+
uri: "TS",
|
76
|
+
call_id: "TS",
|
77
|
+
wait_time: 1,
|
78
|
+
position: 1,
|
79
|
+
date_enqueued: "TS",
|
80
|
+
invalid_attribute: true
|
81
|
+
)}.to raise_error(ArgumentError)
|
82
|
+
end
|
83
|
+
it 'fails to initialize with invalid attribute' do
|
84
|
+
expect{instance = Freeclimb::QueueMember.new(
|
85
|
+
uri: "TS",
|
86
|
+
call_id: "TS",
|
87
|
+
wait_time: 1,
|
88
|
+
position: 1,
|
89
|
+
date_enqueued: "TS",
|
90
|
+
invalid_attribute: true
|
91
|
+
)}.to raise_error(ArgumentError)
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
describe 'test method "valid"' do
|
96
|
+
it 'checks if properties are valid' do
|
97
|
+
instance = Freeclimb::QueueMember.new(
|
98
|
+
uri: "TS",
|
99
|
+
call_id: "TS",
|
100
|
+
wait_time: 1,
|
101
|
+
position: 1,
|
102
|
+
date_enqueued: "TS",
|
103
|
+
)
|
104
|
+
expect(instance.valid?).to eq(true)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
describe 'test method "eql?"' do
|
109
|
+
it 'checks if objects are equal' do
|
110
|
+
obj = Object.new()
|
111
|
+
instance_1 = Freeclimb::QueueMember.new(
|
112
|
+
uri: "TS",
|
113
|
+
call_id: "TS",
|
114
|
+
wait_time: 1,
|
115
|
+
position: 1,
|
116
|
+
date_enqueued: "TS",
|
117
|
+
)
|
118
|
+
instance_2 = Freeclimb::QueueMember.new(
|
119
|
+
uri: "TS",
|
120
|
+
call_id: "TS",
|
121
|
+
wait_time: 1,
|
122
|
+
position: 1,
|
123
|
+
date_enqueued: "TS",
|
124
|
+
)
|
125
|
+
expect(instance_1.eql?(instance_2)).to eq(true)
|
126
|
+
end
|
127
|
+
it 'checks if objects are not equal' do
|
128
|
+
instance_1 = Freeclimb::QueueMember.new(
|
129
|
+
uri: "TS",
|
130
|
+
call_id: "TS",
|
131
|
+
wait_time: 1,
|
132
|
+
position: 1,
|
133
|
+
date_enqueued: "TS",
|
134
|
+
)
|
135
|
+
instance_2 = Freeclimb::QueueMember.new(
|
136
|
+
uri: "ST",
|
137
|
+
call_id: "ST",
|
138
|
+
wait_time: 0,
|
139
|
+
position: 0,
|
140
|
+
date_enqueued: "ST",
|
141
|
+
)
|
142
|
+
expect(instance_1.eql?(instance_2)).to eq(false)
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
describe 'test method "hash"' do
|
147
|
+
it 'calculates hash code' do
|
148
|
+
instance = Freeclimb::QueueMember.new(
|
149
|
+
uri: "TS",
|
150
|
+
call_id: "TS",
|
151
|
+
wait_time: 1,
|
152
|
+
position: 1,
|
153
|
+
date_enqueued: "TS",
|
154
|
+
)
|
155
|
+
expect(instance.hash).to be_a_kind_of(Integer)
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
describe 'test method "build_from_hash"' do
|
160
|
+
it 'builds equivalent model from hash code' do
|
161
|
+
instance_1 = Freeclimb::QueueMember.new(
|
162
|
+
uri: "TS",
|
163
|
+
call_id: "TS",
|
164
|
+
wait_time: 1,
|
165
|
+
position: 1,
|
166
|
+
date_enqueued: "TS",
|
167
|
+
)
|
168
|
+
instance_2 = Freeclimb::QueueMember.new
|
169
|
+
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
describe 'test method "_deserialize"' do
|
174
|
+
instance = Freeclimb::QueueMember.new(
|
175
|
+
uri: "TS",
|
176
|
+
call_id: "TS",
|
177
|
+
wait_time: 1,
|
178
|
+
position: 1,
|
179
|
+
date_enqueued: "TS",
|
180
|
+
)
|
181
|
+
it 'deserializes the data of uri' do
|
182
|
+
expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String)
|
183
|
+
end
|
184
|
+
it 'deserializes the data of call_id' do
|
185
|
+
expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String)
|
186
|
+
end
|
187
|
+
it 'deserializes the data of wait_time' do
|
188
|
+
expect(instance._deserialize("Integer", instance.wait_time)).to be_a_kind_of(Integer)
|
189
|
+
end
|
190
|
+
it 'deserializes the data of position' do
|
191
|
+
expect(instance._deserialize("Integer", instance.position)).to be_a_kind_of(Integer)
|
192
|
+
end
|
193
|
+
it 'deserializes the data of date_enqueued' do
|
194
|
+
expect(instance._deserialize("String", instance.date_enqueued)).to be_a_kind_of(String)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
describe 'test method "to_s"' do
|
199
|
+
it 'returns the string representation of the object' do
|
200
|
+
instance = Freeclimb::QueueMember.new(
|
201
|
+
uri: "TS",
|
202
|
+
call_id: "TS",
|
203
|
+
wait_time: 1,
|
204
|
+
position: 1,
|
205
|
+
date_enqueued: "TS",
|
206
|
+
)
|
207
|
+
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
describe 'test method "to_hash"' do
|
212
|
+
it 'returns the object in the form of hash' do
|
213
|
+
instance = Freeclimb::QueueMember.new(
|
214
|
+
uri: "TS",
|
215
|
+
call_id: "TS",
|
216
|
+
wait_time: 1,
|
217
|
+
position: 1,
|
218
|
+
date_enqueued: "TS",
|
219
|
+
)
|
220
|
+
expect(instance.to_hash).to be_a_kind_of(Hash)
|
221
|
+
end
|
222
|
+
it 'creates equal hash for two equal objects' do
|
223
|
+
obj = Object.new()
|
224
|
+
instance_1 = Freeclimb::QueueMember.new(
|
225
|
+
uri: "TS",
|
226
|
+
call_id: "TS",
|
227
|
+
wait_time: 1,
|
228
|
+
position: 1,
|
229
|
+
date_enqueued: "TS",
|
230
|
+
)
|
231
|
+
instance_2 = Freeclimb::QueueMember.new(
|
232
|
+
uri: "TS",
|
233
|
+
call_id: "TS",
|
234
|
+
wait_time: 1,
|
235
|
+
position: 1,
|
236
|
+
date_enqueued: "TS",
|
237
|
+
)
|
238
|
+
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
239
|
+
end
|
240
|
+
end
|
241
|
+
|
242
|
+
describe 'test method "_to_hash"' do
|
243
|
+
instance = Freeclimb::QueueMember.new(
|
244
|
+
uri: "TS",
|
245
|
+
|
246
|
+
call_id: "TS",
|
247
|
+
|
248
|
+
wait_time: 1,
|
249
|
+
|
250
|
+
position: 1,
|
251
|
+
|
252
|
+
date_enqueued: "TS",
|
253
|
+
)
|
254
|
+
it 'returns uri in the form of hash' do
|
255
|
+
expect(instance._to_hash(instance.uri)).to eq(instance.uri)
|
256
|
+
end
|
257
|
+
it 'returns call_id in the form of hash' do
|
258
|
+
expect(instance._to_hash(instance.call_id)).to eq(instance.call_id)
|
259
|
+
end
|
260
|
+
it 'returns wait_time in the form of hash' do
|
261
|
+
expect(instance._to_hash(instance.wait_time)).to eq(instance.wait_time)
|
262
|
+
end
|
263
|
+
it 'returns position in the form of hash' do
|
264
|
+
expect(instance._to_hash(instance.position)).to eq(instance.position)
|
265
|
+
end
|
266
|
+
it 'returns date_enqueued in the form of hash' do
|
267
|
+
expect(instance._to_hash(instance.date_enqueued)).to eq(instance.date_enqueued)
|
55
268
|
end
|
56
269
|
end
|
57
270
|
|
@@ -27,13 +27,154 @@ describe Freeclimb::QueueRequest do
|
|
27
27
|
end
|
28
28
|
describe 'test attribute "_alias"' do
|
29
29
|
it 'should work' do
|
30
|
-
|
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 "max_size"' do
|
35
36
|
it 'should work' do
|
36
|
-
|
37
|
+
instance.max_size = 1
|
38
|
+
expect(instance.max_size).to eq(1)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test method "initialize"' do
|
43
|
+
it 'properly initializes with values' do
|
44
|
+
expect{instance = Freeclimb::QueueRequest.new(
|
45
|
+
_alias: "TS",
|
46
|
+
max_size: 1,
|
47
|
+
)}.not_to raise_error()
|
48
|
+
end
|
49
|
+
it 'fails to initialize with input argument that is not a hash in Freeclimb::QueueRequest' do
|
50
|
+
expect{instance = Freeclimb::QueueRequest.new(
|
51
|
+
_alias: "TS",
|
52
|
+
max_size: 1,
|
53
|
+
invalid_attribute: true
|
54
|
+
)}.to raise_error(ArgumentError)
|
55
|
+
end
|
56
|
+
it 'fails to initialize with invalid attribute' do
|
57
|
+
expect{instance = Freeclimb::QueueRequest.new(
|
58
|
+
_alias: "TS",
|
59
|
+
max_size: 1,
|
60
|
+
invalid_attribute: true
|
61
|
+
)}.to raise_error(ArgumentError)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test method "valid"' do
|
66
|
+
it 'checks if properties are valid' do
|
67
|
+
instance = Freeclimb::QueueRequest.new(
|
68
|
+
_alias: "TS",
|
69
|
+
max_size: 1,
|
70
|
+
)
|
71
|
+
expect(instance.valid?).to eq(true)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
describe 'test method "eql?"' do
|
76
|
+
it 'checks if objects are equal' do
|
77
|
+
obj = Object.new()
|
78
|
+
instance_1 = Freeclimb::QueueRequest.new(
|
79
|
+
_alias: "TS",
|
80
|
+
max_size: 1,
|
81
|
+
)
|
82
|
+
instance_2 = Freeclimb::QueueRequest.new(
|
83
|
+
_alias: "TS",
|
84
|
+
max_size: 1,
|
85
|
+
)
|
86
|
+
expect(instance_1.eql?(instance_2)).to eq(true)
|
87
|
+
end
|
88
|
+
it 'checks if objects are not equal' do
|
89
|
+
instance_1 = Freeclimb::QueueRequest.new(
|
90
|
+
_alias: "TS",
|
91
|
+
max_size: 1,
|
92
|
+
)
|
93
|
+
instance_2 = Freeclimb::QueueRequest.new(
|
94
|
+
_alias: "ST",
|
95
|
+
max_size: 0,
|
96
|
+
)
|
97
|
+
expect(instance_1.eql?(instance_2)).to eq(false)
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
describe 'test method "hash"' do
|
102
|
+
it 'calculates hash code' do
|
103
|
+
instance = Freeclimb::QueueRequest.new(
|
104
|
+
_alias: "TS",
|
105
|
+
max_size: 1,
|
106
|
+
)
|
107
|
+
expect(instance.hash).to be_a_kind_of(Integer)
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
describe 'test method "build_from_hash"' do
|
112
|
+
it 'builds equivalent model from hash code' do
|
113
|
+
instance_1 = Freeclimb::QueueRequest.new(
|
114
|
+
_alias: "TS",
|
115
|
+
max_size: 1,
|
116
|
+
)
|
117
|
+
instance_2 = Freeclimb::QueueRequest.new
|
118
|
+
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
describe 'test method "_deserialize"' do
|
123
|
+
instance = Freeclimb::QueueRequest.new(
|
124
|
+
_alias: "TS",
|
125
|
+
max_size: 1,
|
126
|
+
)
|
127
|
+
it 'deserializes the data of _alias' do
|
128
|
+
expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String)
|
129
|
+
end
|
130
|
+
it 'deserializes the data of max_size' do
|
131
|
+
expect(instance._deserialize("Integer", instance.max_size)).to be_a_kind_of(Integer)
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
describe 'test method "to_s"' do
|
136
|
+
it 'returns the string representation of the object' do
|
137
|
+
instance = Freeclimb::QueueRequest.new(
|
138
|
+
_alias: "TS",
|
139
|
+
max_size: 1,
|
140
|
+
)
|
141
|
+
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
describe 'test method "to_hash"' do
|
146
|
+
it 'returns the object in the form of hash' do
|
147
|
+
instance = Freeclimb::QueueRequest.new(
|
148
|
+
_alias: "TS",
|
149
|
+
max_size: 1,
|
150
|
+
)
|
151
|
+
expect(instance.to_hash).to be_a_kind_of(Hash)
|
152
|
+
end
|
153
|
+
it 'creates equal hash for two equal objects' do
|
154
|
+
obj = Object.new()
|
155
|
+
instance_1 = Freeclimb::QueueRequest.new(
|
156
|
+
_alias: "TS",
|
157
|
+
max_size: 1,
|
158
|
+
)
|
159
|
+
instance_2 = Freeclimb::QueueRequest.new(
|
160
|
+
_alias: "TS",
|
161
|
+
max_size: 1,
|
162
|
+
)
|
163
|
+
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
describe 'test method "_to_hash"' do
|
168
|
+
instance = Freeclimb::QueueRequest.new(
|
169
|
+
_alias: "TS",
|
170
|
+
|
171
|
+
max_size: 1,
|
172
|
+
)
|
173
|
+
it 'returns _alias in the form of hash' do
|
174
|
+
expect(instance._to_hash(instance._alias)).to eq(instance._alias)
|
175
|
+
end
|
176
|
+
it 'returns max_size in the form of hash' do
|
177
|
+
expect(instance._to_hash(instance.max_size)).to eq(instance.max_size)
|
37
178
|
end
|
38
179
|
end
|
39
180
|
|