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