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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -1
- data/Gemfile +2 -1
- data/Gemfile.lock +21 -15
- data/README.md +5 -4
- data/docs/MessageResult.md +7 -1
- data/docs/TFNCampaign.md +34 -0
- data/lib/freeclimb/configuration.rb +1 -2
- data/lib/freeclimb/models/dequeue.rb +2 -4
- data/lib/freeclimb/models/message_result.rb +36 -5
- data/lib/freeclimb/models/remove_from_conference.rb +2 -4
- data/lib/freeclimb/models/start_record_call.rb +2 -4
- data/lib/freeclimb/models/terminate_conference.rb +2 -4
- data/lib/freeclimb/models/tfn_campaign.rb +370 -0
- data/lib/freeclimb/models/unpark.rb +2 -4
- data/lib/freeclimb/version.rb +1 -1
- data/lib/freeclimb.rb +1 -0
- data/openapi.json +93 -38
- data/spec/api/default_api_spec.rb +39 -117
- data/spec/models/account_request_spec.rb +113 -2
- data/spec/models/account_result_spec.rb +591 -28
- data/spec/models/account_status_spec.rb +1 -0
- data/spec/models/account_type_spec.rb +1 -0
- data/spec/models/add_to_conference_notification_webhook_spec.rb +654 -5
- data/spec/models/add_to_conference_spec.rb +471 -2
- data/spec/models/add_to_queue_notification_webhook_spec.rb +465 -2
- data/spec/models/answered_by_spec.rb +1 -0
- data/spec/models/application_list_spec.rb +323 -2
- data/spec/models/application_request_spec.rb +393 -2
- data/spec/models/application_result_spec.rb +723 -14
- data/spec/models/available_number_list_spec.rb +323 -2
- data/spec/models/available_number_spec.rb +380 -21
- data/spec/models/barge_in_reason_spec.rb +1 -0
- data/spec/models/buy_incoming_number_request_spec.rb +169 -2
- data/spec/models/call_control_webhook_spec.rb +281 -2
- data/spec/models/call_direction_spec.rb +1 -0
- data/spec/models/call_ended_reason_spec.rb +1 -0
- data/spec/models/call_list_spec.rb +323 -2
- data/spec/models/call_result_spec.rb +1020 -9
- data/spec/models/call_status_spec.rb +1 -0
- data/spec/models/call_status_webhook_spec.rb +501 -2
- data/spec/models/capabilities_spec.rb +191 -2
- data/spec/models/completion_request_spec.rb +54 -2
- data/spec/models/completion_result_spec.rb +93 -2
- data/spec/models/completion_result_status_spec.rb +1 -0
- data/spec/models/conference_list_spec.rb +323 -2
- data/spec/models/conference_participant_list_spec.rb +323 -2
- data/spec/models/conference_participant_result_spec.rb +532 -7
- data/spec/models/conference_recording_status_webhook_spec.rb +654 -5
- data/spec/models/conference_result_spec.rb +768 -55
- data/spec/models/conference_status_spec.rb +1 -0
- data/spec/models/conference_status_webhook_spec.rb +654 -5
- data/spec/models/create_conference_request_spec.rb +243 -2
- data/spec/models/create_conference_spec.rb +281 -2
- data/spec/models/create_conference_webhook_spec.rb +654 -5
- data/spec/models/create_web_rtc_token_spec.rb +151 -2
- data/spec/models/dequeue_spec.rb +1 -0
- data/spec/models/dequeue_webhook_spec.rb +565 -8
- data/spec/models/enqueue_spec.rb +225 -2
- data/spec/models/filter_logs_request_spec.rb +57 -2
- data/spec/models/get_digits_reason_spec.rb +1 -0
- data/spec/models/get_digits_spec.rb +379 -2
- data/spec/models/get_digits_webhook_spec.rb +623 -12
- data/spec/models/get_speech_reason_spec.rb +1 -0
- data/spec/models/get_speech_spec.rb +556 -11
- data/spec/models/get_speech_webhook_spec.rb +870 -15
- data/spec/models/grammar_file_built_in_spec.rb +1 -0
- data/spec/models/grammar_type_spec.rb +1 -0
- data/spec/models/hangup_spec.rb +57 -2
- data/spec/models/if_machine_spec.rb +1 -0
- data/spec/models/inbound_call_webhook_spec.rb +521 -2
- data/spec/models/incoming_number_list_spec.rb +323 -2
- data/spec/models/incoming_number_request_spec.rb +169 -2
- data/spec/models/incoming_number_result_spec.rb +930 -43
- data/spec/models/language_spec.rb +1 -0
- data/spec/models/leave_conference_webhook_spec.rb +465 -2
- data/spec/models/log_level_spec.rb +1 -0
- data/spec/models/log_list_spec.rb +323 -2
- data/spec/models/log_result_spec.rb +368 -9
- data/spec/models/machine_detected_webhook_spec.rb +565 -10
- data/spec/models/machine_type_spec.rb +1 -0
- data/spec/models/make_call_request_spec.rb +529 -6
- data/spec/models/message_delivery_webhook_spec.rb +565 -6
- data/spec/models/message_direction_spec.rb +1 -0
- data/spec/models/message_request_spec.rb +469 -2
- data/spec/models/message_result_spec.rb +1364 -225
- data/spec/models/message_status_spec.rb +1 -0
- data/spec/models/message_status_webhook_spec.rb +615 -20
- data/spec/models/messages_list_spec.rb +323 -2
- data/spec/models/mutable_resource_model_spec.rb +207 -2
- data/spec/models/out_dial_api_connect_webhook_spec.rb +521 -2
- data/spec/models/out_dial_connect_webhook_spec.rb +521 -2
- data/spec/models/out_dial_spec.rb +505 -2
- data/spec/models/out_dial_start_webhook_spec.rb +599 -24
- data/spec/models/pagination_model_spec.rb +285 -2
- data/spec/models/park_spec.rb +169 -2
- data/spec/models/pause_spec.rb +39 -2
- data/spec/models/percl_command_spec.rb +54 -2
- data/spec/models/percl_script_spec.rb +39 -2
- data/spec/models/play_beep_spec.rb +1 -0
- data/spec/models/play_early_media_spec.rb +57 -2
- data/spec/models/play_spec.rb +133 -2
- data/spec/models/queue_list_spec.rb +323 -2
- data/spec/models/queue_member_list_spec.rb +323 -2
- data/spec/models/queue_member_spec.rb +245 -2
- data/spec/models/queue_request_spec.rb +95 -2
- data/spec/models/queue_result_spec.rb +564 -15
- data/spec/models/queue_result_status_spec.rb +1 -0
- data/spec/models/queue_wait_webhook_spec.rb +616 -21
- data/spec/models/record_utterance_spec.rb +303 -2
- data/spec/models/record_utterance_term_reason_spec.rb +1 -0
- data/spec/models/record_webhook_spec.rb +868 -13
- data/spec/models/recording_list_spec.rb +323 -2
- data/spec/models/recording_result_spec.rb +469 -2
- data/spec/models/redirect_spec.rb +57 -2
- data/spec/models/redirect_webhook_spec.rb +521 -2
- data/spec/models/reject_spec.rb +57 -2
- data/spec/models/remove_from_conference_spec.rb +1 -0
- data/spec/models/remove_from_queue_notification_webhook_spec.rb +546 -9
- data/spec/models/request_type_spec.rb +1 -0
- data/spec/models/say_spec.rb +189 -2
- data/spec/models/send_digits_spec.rb +133 -2
- data/spec/models/set_dtmf_pass_through_spec.rb +39 -2
- data/spec/models/set_listen_spec.rb +39 -2
- data/spec/models/set_talk_spec.rb +39 -2
- data/spec/models/sms_spec.rb +225 -2
- data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brand_spec.rb +1969 -423
- data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +323 -2
- data/spec/models/sms_ten_dlc_campaign_spec.rb +2224 -550
- data/spec/models/sms_ten_dlc_campaign_status_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +323 -2
- data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +597 -17
- data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +1537 -155
- data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +323 -2
- data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +1 -0
- data/spec/models/sms_toll_free_campaign_spec.rb +355 -2
- data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +323 -2
- data/spec/models/start_record_call_spec.rb +1 -0
- data/spec/models/terminate_conference_spec.rb +1 -0
- data/spec/models/tfn_campaign_spec.rb +1089 -0
- data/spec/models/tfn_spec.rb +57 -2
- data/spec/models/transcribe_reason_spec.rb +1 -0
- data/spec/models/transcribe_term_reason_spec.rb +1 -0
- data/spec/models/transcribe_utterance_record_spec.rb +115 -2
- data/spec/models/transcribe_utterance_spec.rb +288 -21
- data/spec/models/transcribe_webhook_spec.rb +1049 -4
- data/spec/models/unpark_spec.rb +1 -0
- data/spec/models/update_call_request_spec.rb +37 -2
- data/spec/models/update_call_request_status_spec.rb +1 -0
- data/spec/models/update_conference_participant_request_spec.rb +115 -2
- data/spec/models/update_conference_request_spec.rb +129 -2
- data/spec/models/update_conference_request_status_spec.rb +1 -0
- data/spec/models/webhook_spec.rb +54 -2
- 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::IncomingNumberResult
|
18
19
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
@@ -28,25 +29,34 @@ describe Freeclimb::IncomingNumberResult do
|
|
28
29
|
|
29
30
|
describe 'test attribute "uri"' do
|
30
31
|
it 'should work' do
|
32
|
+
|
31
33
|
instance.uri = "TEST_STRING"
|
32
34
|
expect(instance.uri).to eq("TEST_STRING")
|
33
35
|
|
36
|
+
|
37
|
+
|
34
38
|
end
|
35
39
|
end
|
36
40
|
|
37
41
|
describe 'test attribute "date_created"' do
|
38
42
|
it 'should work' do
|
43
|
+
|
39
44
|
instance.date_created = "TEST_STRING"
|
40
45
|
expect(instance.date_created).to eq("TEST_STRING")
|
41
46
|
|
47
|
+
|
48
|
+
|
42
49
|
end
|
43
50
|
end
|
44
51
|
|
45
52
|
describe 'test attribute "date_updated"' do
|
46
53
|
it 'should work' do
|
54
|
+
|
47
55
|
instance.date_updated = "TEST_STRING"
|
48
56
|
expect(instance.date_updated).to eq("TEST_STRING")
|
49
57
|
|
58
|
+
|
59
|
+
|
50
60
|
end
|
51
61
|
end
|
52
62
|
|
@@ -57,78 +67,107 @@ describe Freeclimb::IncomingNumberResult do
|
|
57
67
|
instance.revision = 1
|
58
68
|
expect(instance.revision).to eq(1)
|
59
69
|
|
70
|
+
|
71
|
+
|
60
72
|
end
|
61
73
|
end
|
62
74
|
|
63
75
|
describe 'test attribute "capabilities"' do
|
64
76
|
it 'should work' do
|
65
77
|
|
66
|
-
|
67
|
-
|
78
|
+
|
79
|
+
|
80
|
+
instance.capabilities = Capabilities.new
|
81
|
+
expect(instance.capabilities).to be_instance_of(Capabilities)
|
82
|
+
|
68
83
|
end
|
69
84
|
end
|
70
85
|
|
71
86
|
describe 'test attribute "campaign_id"' do
|
72
87
|
it 'should work' do
|
88
|
+
|
73
89
|
instance.campaign_id = "TEST_STRING"
|
74
90
|
expect(instance.campaign_id).to eq("TEST_STRING")
|
75
91
|
|
92
|
+
|
93
|
+
|
76
94
|
end
|
77
95
|
end
|
78
96
|
|
79
97
|
describe 'test attribute "phone_number_id"' do
|
80
98
|
it 'should work' do
|
99
|
+
|
81
100
|
instance.phone_number_id = "TEST_STRING"
|
82
101
|
expect(instance.phone_number_id).to eq("TEST_STRING")
|
83
102
|
|
103
|
+
|
104
|
+
|
84
105
|
end
|
85
106
|
end
|
86
107
|
|
87
108
|
describe 'test attribute "account_id"' do
|
88
109
|
it 'should work' do
|
110
|
+
|
89
111
|
instance.account_id = "TEST_STRING"
|
90
112
|
expect(instance.account_id).to eq("TEST_STRING")
|
91
113
|
|
114
|
+
|
115
|
+
|
92
116
|
end
|
93
117
|
end
|
94
118
|
|
95
119
|
describe 'test attribute "application_id"' do
|
96
120
|
it 'should work' do
|
121
|
+
|
97
122
|
instance.application_id = "TEST_STRING"
|
98
123
|
expect(instance.application_id).to eq("TEST_STRING")
|
99
124
|
|
125
|
+
|
126
|
+
|
100
127
|
end
|
101
128
|
end
|
102
129
|
|
103
130
|
describe 'test attribute "phone_number"' do
|
104
131
|
it 'should work' do
|
132
|
+
|
105
133
|
instance.phone_number = "TEST_STRING"
|
106
134
|
expect(instance.phone_number).to eq("TEST_STRING")
|
107
135
|
|
136
|
+
|
137
|
+
|
108
138
|
end
|
109
139
|
end
|
110
140
|
|
111
141
|
describe 'test attribute "_alias"' do
|
112
142
|
it 'should work' do
|
143
|
+
|
113
144
|
instance._alias = "TEST_STRING"
|
114
145
|
expect(instance._alias).to eq("TEST_STRING")
|
115
146
|
|
147
|
+
|
148
|
+
|
116
149
|
end
|
117
150
|
end
|
118
151
|
|
119
152
|
describe 'test attribute "region"' do
|
120
153
|
it 'should work' do
|
154
|
+
|
121
155
|
instance.region = "TEST_STRING"
|
122
156
|
expect(instance.region).to eq("TEST_STRING")
|
123
157
|
|
158
|
+
|
159
|
+
|
124
160
|
end
|
125
161
|
end
|
126
162
|
|
127
163
|
describe 'test attribute "country"' do
|
128
164
|
it 'should work' do
|
165
|
+
|
129
166
|
instance.country = "TEST_STRING"
|
130
167
|
expect(instance.country).to eq("TEST_STRING")
|
131
168
|
|
169
|
+
|
170
|
+
|
132
171
|
end
|
133
172
|
end
|
134
173
|
|
@@ -137,6 +176,8 @@ describe Freeclimb::IncomingNumberResult do
|
|
137
176
|
instance.voice_enabled = false
|
138
177
|
expect(instance.voice_enabled).to eq(false)
|
139
178
|
|
179
|
+
|
180
|
+
|
140
181
|
end
|
141
182
|
end
|
142
183
|
|
@@ -145,6 +186,8 @@ describe Freeclimb::IncomingNumberResult do
|
|
145
186
|
instance.sms_enabled = false
|
146
187
|
expect(instance.sms_enabled).to eq(false)
|
147
188
|
|
189
|
+
|
190
|
+
|
148
191
|
end
|
149
192
|
end
|
150
193
|
|
@@ -153,131 +196,277 @@ describe Freeclimb::IncomingNumberResult do
|
|
153
196
|
instance.offnet = false
|
154
197
|
expect(instance.offnet).to eq(false)
|
155
198
|
|
199
|
+
|
200
|
+
|
156
201
|
end
|
157
202
|
end
|
158
203
|
|
159
204
|
describe 'test attribute "tfn"' do
|
160
205
|
it 'should work' do
|
161
206
|
|
162
|
-
|
163
|
-
|
207
|
+
|
208
|
+
|
209
|
+
instance.tfn = TFN.new
|
210
|
+
expect(instance.tfn).to be_instance_of(TFN)
|
211
|
+
|
164
212
|
end
|
165
213
|
end
|
166
214
|
|
167
215
|
describe 'test method "initialize"' do
|
168
216
|
it 'properly initializes with values' do
|
169
217
|
expect { instance = Freeclimb::IncomingNumberResult.new(
|
218
|
+
|
170
219
|
uri: "TS",
|
171
220
|
|
221
|
+
|
222
|
+
|
223
|
+
|
172
224
|
date_created: "TS",
|
173
225
|
|
226
|
+
|
227
|
+
|
228
|
+
|
174
229
|
date_updated: "TS",
|
175
230
|
|
231
|
+
|
232
|
+
|
176
233
|
revision: 1,
|
177
234
|
|
178
235
|
|
179
|
-
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
capabilities: Capabilities.new(),
|
241
|
+
|
242
|
+
|
180
243
|
campaign_id: "TS",
|
181
244
|
|
245
|
+
|
246
|
+
|
247
|
+
|
182
248
|
phone_number_id: "TS",
|
183
249
|
|
250
|
+
|
251
|
+
|
252
|
+
|
184
253
|
account_id: "TS",
|
185
254
|
|
255
|
+
|
256
|
+
|
257
|
+
|
186
258
|
application_id: "TS",
|
187
259
|
|
260
|
+
|
261
|
+
|
262
|
+
|
188
263
|
phone_number: "TS",
|
189
264
|
|
265
|
+
|
266
|
+
|
267
|
+
|
190
268
|
_alias: "TS",
|
191
269
|
|
270
|
+
|
271
|
+
|
272
|
+
|
192
273
|
region: "TS",
|
193
274
|
|
275
|
+
|
276
|
+
|
277
|
+
|
194
278
|
country: "TS",
|
195
279
|
|
280
|
+
|
281
|
+
|
196
282
|
voice_enabled: true,
|
197
283
|
|
284
|
+
|
285
|
+
|
198
286
|
sms_enabled: true,
|
199
287
|
|
288
|
+
|
289
|
+
|
200
290
|
offnet: true,
|
201
291
|
|
202
292
|
|
203
|
-
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
tfn: TFN.new(),
|
298
|
+
|
204
299
|
)}.not_to raise_error()
|
205
300
|
end
|
206
301
|
it 'fails to initialize with input argument that is not a hash in Freeclimb::IncomingNumberResult' do
|
207
302
|
expect { instance = Freeclimb::IncomingNumberResult.new(
|
303
|
+
|
208
304
|
uri: "TS",
|
209
305
|
|
306
|
+
|
307
|
+
|
308
|
+
|
210
309
|
date_created: "TS",
|
211
310
|
|
311
|
+
|
312
|
+
|
313
|
+
|
212
314
|
date_updated: "TS",
|
213
315
|
|
316
|
+
|
317
|
+
|
214
318
|
revision: 1,
|
215
319
|
|
216
320
|
|
217
|
-
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
capabilities: Capabilities.new,
|
326
|
+
|
327
|
+
|
218
328
|
campaign_id: "TS",
|
219
329
|
|
330
|
+
|
331
|
+
|
332
|
+
|
220
333
|
phone_number_id: "TS",
|
221
334
|
|
335
|
+
|
336
|
+
|
337
|
+
|
222
338
|
account_id: "TS",
|
223
339
|
|
340
|
+
|
341
|
+
|
342
|
+
|
224
343
|
application_id: "TS",
|
225
344
|
|
345
|
+
|
346
|
+
|
347
|
+
|
226
348
|
phone_number: "TS",
|
227
349
|
|
350
|
+
|
351
|
+
|
352
|
+
|
228
353
|
_alias: "TS",
|
229
354
|
|
355
|
+
|
356
|
+
|
357
|
+
|
230
358
|
region: "TS",
|
231
359
|
|
360
|
+
|
361
|
+
|
362
|
+
|
232
363
|
country: "TS",
|
233
364
|
|
365
|
+
|
366
|
+
|
234
367
|
voice_enabled: true,
|
235
368
|
|
369
|
+
|
370
|
+
|
236
371
|
sms_enabled: true,
|
237
372
|
|
373
|
+
|
374
|
+
|
238
375
|
offnet: true,
|
239
376
|
|
240
377
|
|
241
|
-
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
tfn: TFN.new,
|
383
|
+
|
242
384
|
invalid_attribute: true
|
243
385
|
)}.to raise_error(ArgumentError)
|
244
386
|
end
|
245
387
|
it 'fails to initialize with invalid attribute' do
|
246
388
|
expect { instance = Freeclimb::IncomingNumberResult.new(
|
389
|
+
|
247
390
|
uri: "TS",
|
248
391
|
|
392
|
+
|
393
|
+
|
394
|
+
|
249
395
|
date_created: "TS",
|
250
396
|
|
397
|
+
|
398
|
+
|
399
|
+
|
251
400
|
date_updated: "TS",
|
252
401
|
|
402
|
+
|
403
|
+
|
253
404
|
revision: 1,
|
254
405
|
|
255
406
|
|
256
|
-
|
407
|
+
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
capabilities: Capabilities.new,
|
412
|
+
|
413
|
+
|
257
414
|
campaign_id: "TS",
|
258
415
|
|
416
|
+
|
417
|
+
|
418
|
+
|
259
419
|
phone_number_id: "TS",
|
260
420
|
|
421
|
+
|
422
|
+
|
423
|
+
|
261
424
|
account_id: "TS",
|
262
425
|
|
426
|
+
|
427
|
+
|
428
|
+
|
263
429
|
application_id: "TS",
|
264
430
|
|
431
|
+
|
432
|
+
|
433
|
+
|
265
434
|
phone_number: "TS",
|
266
435
|
|
436
|
+
|
437
|
+
|
438
|
+
|
267
439
|
_alias: "TS",
|
268
440
|
|
441
|
+
|
442
|
+
|
443
|
+
|
269
444
|
region: "TS",
|
270
445
|
|
446
|
+
|
447
|
+
|
448
|
+
|
271
449
|
country: "TS",
|
272
450
|
|
451
|
+
|
452
|
+
|
273
453
|
voice_enabled: true,
|
274
454
|
|
455
|
+
|
456
|
+
|
275
457
|
sms_enabled: true,
|
276
458
|
|
459
|
+
|
460
|
+
|
277
461
|
offnet: true,
|
278
462
|
|
279
463
|
|
280
|
-
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
|
468
|
+
tfn: TFN.new,
|
469
|
+
|
281
470
|
invalid_attribute: true
|
282
471
|
)}.to raise_error(ArgumentError)
|
283
472
|
end
|
@@ -286,40 +475,87 @@ describe Freeclimb::IncomingNumberResult do
|
|
286
475
|
describe 'test method "valid"' do
|
287
476
|
it 'checks if properties are valid' do
|
288
477
|
instance = Freeclimb::IncomingNumberResult.new(
|
478
|
+
|
289
479
|
uri: "TS",
|
290
480
|
|
481
|
+
|
482
|
+
|
483
|
+
|
291
484
|
date_created: "TS",
|
292
485
|
|
486
|
+
|
487
|
+
|
488
|
+
|
293
489
|
date_updated: "TS",
|
294
490
|
|
491
|
+
|
492
|
+
|
295
493
|
revision: 1,
|
296
494
|
|
297
495
|
|
298
|
-
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
|
500
|
+
capabilities: Capabilities.new(),
|
501
|
+
|
502
|
+
|
299
503
|
campaign_id: "TS",
|
300
504
|
|
505
|
+
|
506
|
+
|
507
|
+
|
301
508
|
phone_number_id: "TS",
|
302
509
|
|
510
|
+
|
511
|
+
|
512
|
+
|
303
513
|
account_id: "TS",
|
304
514
|
|
515
|
+
|
516
|
+
|
517
|
+
|
305
518
|
application_id: "TS",
|
306
519
|
|
520
|
+
|
521
|
+
|
522
|
+
|
307
523
|
phone_number: "TS",
|
308
524
|
|
525
|
+
|
526
|
+
|
527
|
+
|
309
528
|
_alias: "TS",
|
310
529
|
|
530
|
+
|
531
|
+
|
532
|
+
|
311
533
|
region: "TS",
|
312
534
|
|
535
|
+
|
536
|
+
|
537
|
+
|
313
538
|
country: "TS",
|
314
539
|
|
540
|
+
|
541
|
+
|
315
542
|
voice_enabled: true,
|
316
543
|
|
544
|
+
|
545
|
+
|
317
546
|
sms_enabled: true,
|
318
547
|
|
548
|
+
|
549
|
+
|
319
550
|
offnet: true,
|
320
551
|
|
321
552
|
|
322
|
-
|
553
|
+
|
554
|
+
|
555
|
+
|
556
|
+
|
557
|
+
tfn: TFN.new(),
|
558
|
+
|
323
559
|
)
|
324
560
|
expect(instance.valid?).to eq(true)
|
325
561
|
end
|
@@ -336,77 +572,191 @@ describe Freeclimb::IncomingNumberResult do
|
|
336
572
|
|
337
573
|
describe 'test method "eql?"' do
|
338
574
|
it 'checks if objects are equal' do
|
339
|
-
|
575
|
+
|
576
|
+
|
577
|
+
|
578
|
+
|
579
|
+
|
580
|
+
obj_Capabilities = Capabilities.new()
|
581
|
+
|
582
|
+
|
583
|
+
|
584
|
+
|
585
|
+
|
586
|
+
|
587
|
+
|
588
|
+
|
589
|
+
|
590
|
+
|
591
|
+
|
592
|
+
|
593
|
+
|
594
|
+
obj_TFN = TFN.new()
|
595
|
+
|
340
596
|
instance_1 = Freeclimb::IncomingNumberResult.new(
|
597
|
+
|
341
598
|
uri: "TS",
|
342
599
|
|
343
|
-
|
600
|
+
|
601
|
+
|
602
|
+
|
603
|
+
date_created: "TS",
|
604
|
+
|
605
|
+
|
606
|
+
|
344
607
|
|
345
608
|
date_updated: "TS",
|
346
609
|
|
610
|
+
|
611
|
+
|
347
612
|
revision: 1,
|
348
613
|
|
349
|
-
|
614
|
+
|
615
|
+
|
616
|
+
|
617
|
+
|
618
|
+
capabilities: obj_Capabilities,
|
619
|
+
|
620
|
+
|
350
621
|
|
351
622
|
campaign_id: "TS",
|
352
623
|
|
624
|
+
|
625
|
+
|
626
|
+
|
353
627
|
phone_number_id: "TS",
|
354
628
|
|
629
|
+
|
630
|
+
|
631
|
+
|
355
632
|
account_id: "TS",
|
356
633
|
|
634
|
+
|
635
|
+
|
636
|
+
|
357
637
|
application_id: "TS",
|
358
638
|
|
639
|
+
|
640
|
+
|
641
|
+
|
359
642
|
phone_number: "TS",
|
360
643
|
|
644
|
+
|
645
|
+
|
646
|
+
|
361
647
|
_alias: "TS",
|
362
648
|
|
649
|
+
|
650
|
+
|
651
|
+
|
363
652
|
region: "TS",
|
364
653
|
|
654
|
+
|
655
|
+
|
656
|
+
|
365
657
|
country: "TS",
|
366
658
|
|
659
|
+
|
660
|
+
|
367
661
|
voice_enabled: true,
|
368
662
|
|
663
|
+
|
664
|
+
|
369
665
|
sms_enabled: true,
|
370
666
|
|
667
|
+
|
668
|
+
|
371
669
|
offnet: true,
|
372
670
|
|
373
|
-
|
671
|
+
|
672
|
+
|
673
|
+
|
674
|
+
|
675
|
+
tfn: obj_TFN,
|
676
|
+
|
374
677
|
|
375
678
|
)
|
376
679
|
instance_2 = Freeclimb::IncomingNumberResult.new(
|
680
|
+
|
377
681
|
uri: "TS",
|
378
682
|
|
683
|
+
|
684
|
+
|
685
|
+
|
379
686
|
date_created: "TS",
|
380
687
|
|
688
|
+
|
689
|
+
|
690
|
+
|
381
691
|
date_updated: "TS",
|
382
692
|
|
693
|
+
|
694
|
+
|
695
|
+
|
696
|
+
|
383
697
|
revision: 1,
|
384
698
|
|
385
|
-
|
699
|
+
|
700
|
+
|
701
|
+
capabilities: obj_Capabilities,
|
702
|
+
|
703
|
+
|
386
704
|
|
387
705
|
campaign_id: "TS",
|
388
706
|
|
707
|
+
|
708
|
+
|
709
|
+
|
389
710
|
phone_number_id: "TS",
|
390
711
|
|
712
|
+
|
713
|
+
|
714
|
+
|
391
715
|
account_id: "TS",
|
392
716
|
|
717
|
+
|
718
|
+
|
719
|
+
|
393
720
|
application_id: "TS",
|
394
721
|
|
722
|
+
|
723
|
+
|
724
|
+
|
395
725
|
phone_number: "TS",
|
396
726
|
|
727
|
+
|
728
|
+
|
729
|
+
|
397
730
|
_alias: "TS",
|
398
731
|
|
732
|
+
|
733
|
+
|
734
|
+
|
399
735
|
region: "TS",
|
400
736
|
|
737
|
+
|
738
|
+
|
739
|
+
|
401
740
|
country: "TS",
|
402
741
|
|
742
|
+
|
743
|
+
|
403
744
|
voice_enabled: true,
|
404
745
|
|
746
|
+
|
747
|
+
|
405
748
|
sms_enabled: true,
|
406
749
|
|
750
|
+
|
751
|
+
|
407
752
|
offnet: true,
|
408
753
|
|
409
|
-
|
754
|
+
|
755
|
+
|
756
|
+
|
757
|
+
|
758
|
+
tfn: obj_TFN,
|
759
|
+
|
410
760
|
|
411
761
|
)
|
412
762
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
@@ -414,75 +764,169 @@ describe Freeclimb::IncomingNumberResult do
|
|
414
764
|
|
415
765
|
it 'checks if objects are not equal' do
|
416
766
|
instance_1 = Freeclimb::IncomingNumberResult.new(
|
767
|
+
|
417
768
|
uri: "TS",
|
418
769
|
|
770
|
+
|
771
|
+
|
772
|
+
|
419
773
|
date_created: "TS",
|
420
774
|
|
775
|
+
|
776
|
+
|
777
|
+
|
421
778
|
date_updated: "TS",
|
422
779
|
|
780
|
+
|
781
|
+
|
423
782
|
revision: 2,
|
424
783
|
|
425
|
-
|
784
|
+
|
785
|
+
|
786
|
+
|
787
|
+
|
788
|
+
capabilities: Capabilities.new(),
|
789
|
+
|
790
|
+
|
426
791
|
|
427
792
|
campaign_id: "TS",
|
428
793
|
|
794
|
+
|
795
|
+
|
796
|
+
|
429
797
|
phone_number_id: "TS",
|
430
798
|
|
799
|
+
|
800
|
+
|
801
|
+
|
431
802
|
account_id: "TS",
|
432
803
|
|
804
|
+
|
805
|
+
|
806
|
+
|
433
807
|
application_id: "TS",
|
434
808
|
|
809
|
+
|
810
|
+
|
811
|
+
|
435
812
|
phone_number: "TS",
|
436
813
|
|
814
|
+
|
815
|
+
|
816
|
+
|
437
817
|
_alias: "TS",
|
438
818
|
|
819
|
+
|
820
|
+
|
821
|
+
|
439
822
|
region: "TS",
|
440
823
|
|
824
|
+
|
825
|
+
|
826
|
+
|
441
827
|
country: "TS",
|
442
828
|
|
829
|
+
|
830
|
+
|
443
831
|
voice_enabled: true,
|
444
832
|
|
833
|
+
|
834
|
+
|
445
835
|
sms_enabled: true,
|
446
836
|
|
837
|
+
|
838
|
+
|
447
839
|
offnet: true,
|
448
840
|
|
449
|
-
|
841
|
+
|
842
|
+
|
843
|
+
|
844
|
+
|
845
|
+
tfn: TFN.new(),
|
846
|
+
|
450
847
|
|
451
848
|
)
|
452
849
|
instance_2 = Freeclimb::IncomingNumberResult.new(
|
850
|
+
|
453
851
|
uri: "ST",
|
454
852
|
|
853
|
+
|
854
|
+
|
855
|
+
|
455
856
|
date_created: "ST",
|
456
857
|
|
858
|
+
|
859
|
+
|
860
|
+
|
457
861
|
date_updated: "ST",
|
458
862
|
|
863
|
+
|
864
|
+
|
459
865
|
revision: 1,
|
460
866
|
|
461
|
-
|
867
|
+
|
868
|
+
|
869
|
+
|
870
|
+
|
871
|
+
capabilities: Capabilities.new(),
|
872
|
+
|
873
|
+
|
462
874
|
|
463
875
|
campaign_id: "ST",
|
464
876
|
|
877
|
+
|
878
|
+
|
879
|
+
|
465
880
|
phone_number_id: "ST",
|
466
881
|
|
882
|
+
|
883
|
+
|
884
|
+
|
467
885
|
account_id: "ST",
|
468
886
|
|
887
|
+
|
888
|
+
|
889
|
+
|
469
890
|
application_id: "ST",
|
470
891
|
|
892
|
+
|
893
|
+
|
894
|
+
|
471
895
|
phone_number: "ST",
|
472
896
|
|
897
|
+
|
898
|
+
|
899
|
+
|
473
900
|
_alias: "ST",
|
474
901
|
|
902
|
+
|
903
|
+
|
904
|
+
|
475
905
|
region: "ST",
|
476
906
|
|
907
|
+
|
908
|
+
|
909
|
+
|
477
910
|
country: "ST",
|
478
911
|
|
912
|
+
|
913
|
+
|
479
914
|
voice_enabled: false,
|
480
915
|
|
916
|
+
|
917
|
+
|
481
918
|
sms_enabled: false,
|
482
919
|
|
920
|
+
|
921
|
+
|
483
922
|
offnet: false,
|
484
923
|
|
485
|
-
|
924
|
+
|
925
|
+
|
926
|
+
|
927
|
+
|
928
|
+
tfn: TFN.new(),
|
929
|
+
|
486
930
|
|
487
931
|
)
|
488
932
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
@@ -492,40 +936,87 @@ describe Freeclimb::IncomingNumberResult do
|
|
492
936
|
describe 'test method "hash"' do
|
493
937
|
it 'calculates hash code' do
|
494
938
|
instance = Freeclimb::IncomingNumberResult.new(
|
939
|
+
|
495
940
|
uri: "TS",
|
496
941
|
|
942
|
+
|
943
|
+
|
944
|
+
|
497
945
|
date_created: "TS",
|
498
946
|
|
947
|
+
|
948
|
+
|
949
|
+
|
499
950
|
date_updated: "TS",
|
500
951
|
|
952
|
+
|
953
|
+
|
501
954
|
revision: 1,
|
502
955
|
|
503
956
|
|
504
|
-
|
957
|
+
|
958
|
+
|
959
|
+
|
960
|
+
|
961
|
+
capabilities: Capabilities.new(),
|
962
|
+
|
963
|
+
|
505
964
|
campaign_id: "TS",
|
506
965
|
|
966
|
+
|
967
|
+
|
968
|
+
|
507
969
|
phone_number_id: "TS",
|
508
970
|
|
971
|
+
|
972
|
+
|
973
|
+
|
509
974
|
account_id: "TS",
|
510
975
|
|
976
|
+
|
977
|
+
|
978
|
+
|
511
979
|
application_id: "TS",
|
512
980
|
|
981
|
+
|
982
|
+
|
983
|
+
|
513
984
|
phone_number: "TS",
|
514
985
|
|
986
|
+
|
987
|
+
|
988
|
+
|
515
989
|
_alias: "TS",
|
516
990
|
|
991
|
+
|
992
|
+
|
993
|
+
|
517
994
|
region: "TS",
|
518
995
|
|
996
|
+
|
997
|
+
|
998
|
+
|
519
999
|
country: "TS",
|
520
1000
|
|
1001
|
+
|
1002
|
+
|
521
1003
|
voice_enabled: true,
|
522
1004
|
|
1005
|
+
|
1006
|
+
|
523
1007
|
sms_enabled: true,
|
524
1008
|
|
1009
|
+
|
1010
|
+
|
525
1011
|
offnet: true,
|
526
1012
|
|
527
1013
|
|
528
|
-
|
1014
|
+
|
1015
|
+
|
1016
|
+
|
1017
|
+
|
1018
|
+
tfn: TFN.new(),
|
1019
|
+
|
529
1020
|
)
|
530
1021
|
expect(instance.hash).to be_a_kind_of(Integer)
|
531
1022
|
end
|
@@ -534,76 +1025,170 @@ describe Freeclimb::IncomingNumberResult do
|
|
534
1025
|
describe 'test method "build_from_hash"' do
|
535
1026
|
it 'builds equivalent model from hash code' do
|
536
1027
|
instance_1 = Freeclimb::IncomingNumberResult.new(
|
1028
|
+
|
537
1029
|
uri: "TS",
|
538
1030
|
|
1031
|
+
|
1032
|
+
|
1033
|
+
|
539
1034
|
date_created: "TS",
|
540
1035
|
|
1036
|
+
|
1037
|
+
|
1038
|
+
|
541
1039
|
date_updated: "TS",
|
542
1040
|
|
1041
|
+
|
1042
|
+
|
543
1043
|
revision: 1,
|
544
1044
|
|
545
1045
|
|
546
|
-
|
1046
|
+
|
1047
|
+
|
1048
|
+
|
1049
|
+
|
1050
|
+
capabilities: Capabilities.new(),
|
1051
|
+
|
1052
|
+
|
547
1053
|
campaign_id: "TS",
|
548
1054
|
|
1055
|
+
|
1056
|
+
|
1057
|
+
|
549
1058
|
phone_number_id: "TS",
|
550
1059
|
|
1060
|
+
|
1061
|
+
|
1062
|
+
|
551
1063
|
account_id: "TS",
|
552
1064
|
|
1065
|
+
|
1066
|
+
|
1067
|
+
|
553
1068
|
application_id: "TS",
|
554
1069
|
|
1070
|
+
|
1071
|
+
|
1072
|
+
|
555
1073
|
phone_number: "TS",
|
556
1074
|
|
1075
|
+
|
1076
|
+
|
1077
|
+
|
557
1078
|
_alias: "TS",
|
558
1079
|
|
1080
|
+
|
1081
|
+
|
1082
|
+
|
559
1083
|
region: "TS",
|
560
1084
|
|
1085
|
+
|
1086
|
+
|
1087
|
+
|
561
1088
|
country: "TS",
|
562
1089
|
|
1090
|
+
|
1091
|
+
|
563
1092
|
voice_enabled: true,
|
564
1093
|
|
1094
|
+
|
1095
|
+
|
565
1096
|
sms_enabled: true,
|
566
1097
|
|
1098
|
+
|
1099
|
+
|
567
1100
|
offnet: true,
|
568
1101
|
|
569
1102
|
|
570
|
-
|
1103
|
+
|
1104
|
+
|
1105
|
+
|
1106
|
+
|
1107
|
+
tfn: TFN.new(),
|
1108
|
+
|
571
1109
|
)
|
572
1110
|
instance_2 = Freeclimb::IncomingNumberResult.new(
|
1111
|
+
|
573
1112
|
uri: "TS",
|
574
1113
|
|
1114
|
+
|
1115
|
+
|
1116
|
+
|
575
1117
|
date_created: "TS",
|
576
1118
|
|
1119
|
+
|
1120
|
+
|
1121
|
+
|
577
1122
|
date_updated: "TS",
|
578
1123
|
|
1124
|
+
|
1125
|
+
|
579
1126
|
revision: 1,
|
580
1127
|
|
581
1128
|
|
582
|
-
|
1129
|
+
|
1130
|
+
|
1131
|
+
|
1132
|
+
|
1133
|
+
capabilities: Capabilities.new(),
|
1134
|
+
|
1135
|
+
|
583
1136
|
campaign_id: "TS",
|
584
1137
|
|
1138
|
+
|
1139
|
+
|
1140
|
+
|
585
1141
|
phone_number_id: "TS",
|
586
1142
|
|
1143
|
+
|
1144
|
+
|
1145
|
+
|
587
1146
|
account_id: "TS",
|
588
1147
|
|
1148
|
+
|
1149
|
+
|
1150
|
+
|
589
1151
|
application_id: "TS",
|
590
1152
|
|
1153
|
+
|
1154
|
+
|
1155
|
+
|
591
1156
|
phone_number: "TS",
|
592
1157
|
|
1158
|
+
|
1159
|
+
|
1160
|
+
|
593
1161
|
_alias: "TS",
|
594
1162
|
|
1163
|
+
|
1164
|
+
|
1165
|
+
|
595
1166
|
region: "TS",
|
596
1167
|
|
1168
|
+
|
1169
|
+
|
1170
|
+
|
597
1171
|
country: "TS",
|
598
1172
|
|
1173
|
+
|
1174
|
+
|
599
1175
|
voice_enabled: true,
|
600
1176
|
|
1177
|
+
|
1178
|
+
|
601
1179
|
sms_enabled: true,
|
602
1180
|
|
1181
|
+
|
1182
|
+
|
603
1183
|
offnet: true,
|
604
1184
|
|
605
1185
|
|
606
|
-
|
1186
|
+
|
1187
|
+
|
1188
|
+
|
1189
|
+
|
1190
|
+
tfn: TFN.new(),
|
1191
|
+
|
607
1192
|
)
|
608
1193
|
|
609
1194
|
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
@@ -612,131 +1197,261 @@ describe Freeclimb::IncomingNumberResult do
|
|
612
1197
|
|
613
1198
|
describe 'test method "_deserialize"' do
|
614
1199
|
instance = Freeclimb::IncomingNumberResult.new(
|
1200
|
+
|
615
1201
|
uri: "TS",
|
616
1202
|
|
1203
|
+
|
1204
|
+
|
1205
|
+
|
617
1206
|
date_created: "TS",
|
618
1207
|
|
1208
|
+
|
1209
|
+
|
1210
|
+
|
619
1211
|
date_updated: "TS",
|
620
1212
|
|
1213
|
+
|
1214
|
+
|
621
1215
|
revision: 1,
|
622
1216
|
|
623
1217
|
|
624
|
-
|
1218
|
+
|
1219
|
+
|
1220
|
+
|
1221
|
+
|
1222
|
+
capabilities: Capabilities.new(),
|
1223
|
+
|
1224
|
+
|
625
1225
|
campaign_id: "TS",
|
626
1226
|
|
1227
|
+
|
1228
|
+
|
1229
|
+
|
627
1230
|
phone_number_id: "TS",
|
628
1231
|
|
1232
|
+
|
1233
|
+
|
1234
|
+
|
629
1235
|
account_id: "TS",
|
630
1236
|
|
1237
|
+
|
1238
|
+
|
1239
|
+
|
631
1240
|
application_id: "TS",
|
632
1241
|
|
1242
|
+
|
1243
|
+
|
1244
|
+
|
633
1245
|
phone_number: "TS",
|
634
1246
|
|
1247
|
+
|
1248
|
+
|
1249
|
+
|
635
1250
|
_alias: "TS",
|
636
1251
|
|
1252
|
+
|
1253
|
+
|
1254
|
+
|
637
1255
|
region: "TS",
|
638
1256
|
|
1257
|
+
|
1258
|
+
|
1259
|
+
|
639
1260
|
country: "TS",
|
640
1261
|
|
1262
|
+
|
1263
|
+
|
641
1264
|
voice_enabled: true,
|
642
1265
|
|
643
|
-
sms_enabled: true,
|
644
1266
|
|
645
|
-
offnet: true,
|
646
1267
|
|
1268
|
+
sms_enabled: true,
|
1269
|
+
|
1270
|
+
|
1271
|
+
|
1272
|
+
offnet: true,
|
1273
|
+
|
1274
|
+
|
1275
|
+
|
1276
|
+
|
1277
|
+
|
1278
|
+
|
1279
|
+
tfn: TFN.new(),
|
647
1280
|
|
648
|
-
tfn: Freeclimb::TFN.new,
|
649
1281
|
)
|
650
1282
|
it 'deserializes the data of uri' do
|
651
1283
|
expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String)
|
652
1284
|
end
|
1285
|
+
|
1286
|
+
|
653
1287
|
it 'deserializes the data of date_created' do
|
654
1288
|
expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String)
|
655
1289
|
end
|
1290
|
+
|
1291
|
+
|
656
1292
|
it 'deserializes the data of date_updated' do
|
657
1293
|
expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String)
|
658
1294
|
end
|
1295
|
+
|
1296
|
+
|
659
1297
|
it 'deserializes the data of revision' do
|
660
1298
|
expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer)
|
661
1299
|
end
|
1300
|
+
|
1301
|
+
|
1302
|
+
|
1303
|
+
|
662
1304
|
it 'deserializes the data of capabilities' do
|
663
|
-
expect(instance._deserialize("Object", instance.capabilities)).to be_a_kind_of(
|
1305
|
+
expect(instance._deserialize("Object", instance.capabilities)).to be_a_kind_of(Capabilities)
|
664
1306
|
end
|
1307
|
+
|
665
1308
|
it 'deserializes the data of campaign_id' do
|
666
1309
|
expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String)
|
667
1310
|
end
|
1311
|
+
|
1312
|
+
|
668
1313
|
it 'deserializes the data of phone_number_id' do
|
669
1314
|
expect(instance._deserialize("String", instance.phone_number_id)).to be_a_kind_of(String)
|
670
1315
|
end
|
1316
|
+
|
1317
|
+
|
671
1318
|
it 'deserializes the data of account_id' do
|
672
1319
|
expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
|
673
1320
|
end
|
1321
|
+
|
1322
|
+
|
674
1323
|
it 'deserializes the data of application_id' do
|
675
1324
|
expect(instance._deserialize("String", instance.application_id)).to be_a_kind_of(String)
|
676
1325
|
end
|
1326
|
+
|
1327
|
+
|
677
1328
|
it 'deserializes the data of phone_number' do
|
678
1329
|
expect(instance._deserialize("String", instance.phone_number)).to be_a_kind_of(String)
|
679
1330
|
end
|
1331
|
+
|
1332
|
+
|
680
1333
|
it 'deserializes the data of _alias' do
|
681
1334
|
expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String)
|
682
1335
|
end
|
1336
|
+
|
1337
|
+
|
683
1338
|
it 'deserializes the data of region' do
|
684
1339
|
expect(instance._deserialize("String", instance.region)).to be_a_kind_of(String)
|
685
1340
|
end
|
1341
|
+
|
1342
|
+
|
686
1343
|
it 'deserializes the data of country' do
|
687
1344
|
expect(instance._deserialize("String", instance.country)).to be_a_kind_of(String)
|
688
1345
|
end
|
1346
|
+
|
1347
|
+
|
1348
|
+
|
1349
|
+
|
689
1350
|
it 'deserializes the data of voice_enabled' do
|
690
1351
|
expect(instance._deserialize("Boolean", instance.voice_enabled)).to be_a_kind_of(TrueClass)
|
691
1352
|
end
|
1353
|
+
|
1354
|
+
|
692
1355
|
it 'deserializes the data of sms_enabled' do
|
693
1356
|
expect(instance._deserialize("Boolean", instance.sms_enabled)).to be_a_kind_of(TrueClass)
|
694
1357
|
end
|
1358
|
+
|
1359
|
+
|
695
1360
|
it 'deserializes the data of offnet' do
|
696
1361
|
expect(instance._deserialize("Boolean", instance.offnet)).to be_a_kind_of(TrueClass)
|
697
1362
|
end
|
1363
|
+
|
1364
|
+
|
698
1365
|
it 'deserializes the data of tfn' do
|
699
|
-
expect(instance._deserialize("Object", instance.tfn)).to be_a_kind_of(
|
1366
|
+
expect(instance._deserialize("Object", instance.tfn)).to be_a_kind_of(TFN)
|
700
1367
|
end
|
1368
|
+
|
701
1369
|
end
|
702
1370
|
|
703
1371
|
describe 'test method "to_s"' do
|
704
1372
|
it 'returns the string representation of the object' do
|
705
1373
|
instance = Freeclimb::IncomingNumberResult.new(
|
1374
|
+
|
706
1375
|
uri: "TS",
|
707
1376
|
|
1377
|
+
|
1378
|
+
|
1379
|
+
|
708
1380
|
date_created: "TS",
|
709
1381
|
|
1382
|
+
|
1383
|
+
|
1384
|
+
|
710
1385
|
date_updated: "TS",
|
711
1386
|
|
1387
|
+
|
1388
|
+
|
712
1389
|
revision: 1,
|
713
1390
|
|
714
1391
|
|
715
|
-
|
1392
|
+
|
1393
|
+
|
1394
|
+
|
1395
|
+
|
1396
|
+
capabilities: Capabilities.new,
|
1397
|
+
|
1398
|
+
|
716
1399
|
campaign_id: "TS",
|
717
1400
|
|
1401
|
+
|
1402
|
+
|
1403
|
+
|
718
1404
|
phone_number_id: "TS",
|
719
1405
|
|
1406
|
+
|
1407
|
+
|
1408
|
+
|
720
1409
|
account_id: "TS",
|
721
1410
|
|
1411
|
+
|
1412
|
+
|
1413
|
+
|
722
1414
|
application_id: "TS",
|
723
1415
|
|
1416
|
+
|
1417
|
+
|
1418
|
+
|
724
1419
|
phone_number: "TS",
|
725
1420
|
|
1421
|
+
|
1422
|
+
|
1423
|
+
|
726
1424
|
_alias: "TS",
|
727
1425
|
|
1426
|
+
|
1427
|
+
|
1428
|
+
|
728
1429
|
region: "TS",
|
729
1430
|
|
1431
|
+
|
1432
|
+
|
1433
|
+
|
730
1434
|
country: "TS",
|
731
1435
|
|
1436
|
+
|
1437
|
+
|
732
1438
|
voice_enabled: true,
|
733
1439
|
|
1440
|
+
|
1441
|
+
|
734
1442
|
sms_enabled: true,
|
735
1443
|
|
1444
|
+
|
1445
|
+
|
736
1446
|
offnet: true,
|
737
1447
|
|
738
1448
|
|
739
|
-
|
1449
|
+
|
1450
|
+
|
1451
|
+
|
1452
|
+
|
1453
|
+
tfn: TFN.new,
|
1454
|
+
|
740
1455
|
)
|
741
1456
|
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
742
1457
|
end
|
@@ -745,116 +1460,277 @@ describe Freeclimb::IncomingNumberResult do
|
|
745
1460
|
describe 'test method "to_hash"' do
|
746
1461
|
it 'returns the object in the form of hash' do
|
747
1462
|
instance = Freeclimb::IncomingNumberResult.new(
|
1463
|
+
|
748
1464
|
uri: "TS",
|
749
1465
|
|
1466
|
+
|
1467
|
+
|
1468
|
+
|
750
1469
|
date_created: "TS",
|
751
1470
|
|
1471
|
+
|
1472
|
+
|
1473
|
+
|
752
1474
|
date_updated: "TS",
|
753
1475
|
|
1476
|
+
|
1477
|
+
|
754
1478
|
revision: 1,
|
755
1479
|
|
756
1480
|
|
757
|
-
|
1481
|
+
|
1482
|
+
|
1483
|
+
|
1484
|
+
|
1485
|
+
capabilities: Capabilities.new,
|
1486
|
+
|
1487
|
+
|
758
1488
|
campaign_id: "TS",
|
759
1489
|
|
1490
|
+
|
1491
|
+
|
1492
|
+
|
760
1493
|
phone_number_id: "TS",
|
761
1494
|
|
1495
|
+
|
1496
|
+
|
1497
|
+
|
762
1498
|
account_id: "TS",
|
763
1499
|
|
1500
|
+
|
1501
|
+
|
1502
|
+
|
764
1503
|
application_id: "TS",
|
765
1504
|
|
1505
|
+
|
1506
|
+
|
1507
|
+
|
766
1508
|
phone_number: "TS",
|
767
1509
|
|
1510
|
+
|
1511
|
+
|
1512
|
+
|
768
1513
|
_alias: "TS",
|
769
1514
|
|
1515
|
+
|
1516
|
+
|
1517
|
+
|
770
1518
|
region: "TS",
|
771
1519
|
|
1520
|
+
|
1521
|
+
|
1522
|
+
|
772
1523
|
country: "TS",
|
773
1524
|
|
1525
|
+
|
1526
|
+
|
774
1527
|
voice_enabled: true,
|
775
1528
|
|
1529
|
+
|
1530
|
+
|
776
1531
|
sms_enabled: true,
|
777
1532
|
|
1533
|
+
|
1534
|
+
|
778
1535
|
offnet: true,
|
779
1536
|
|
780
1537
|
|
781
|
-
|
1538
|
+
|
1539
|
+
|
1540
|
+
|
1541
|
+
|
1542
|
+
tfn: TFN.new,
|
1543
|
+
|
782
1544
|
)
|
783
1545
|
expect(instance.to_hash).to be_a_kind_of(Hash)
|
784
1546
|
end
|
785
1547
|
it 'creates equal hash for two equal objects' do
|
786
|
-
|
1548
|
+
|
1549
|
+
|
1550
|
+
|
1551
|
+
|
1552
|
+
|
1553
|
+
obj = Capabilities.new()
|
1554
|
+
|
1555
|
+
|
1556
|
+
|
1557
|
+
|
1558
|
+
|
1559
|
+
|
1560
|
+
|
1561
|
+
|
1562
|
+
|
1563
|
+
|
1564
|
+
|
1565
|
+
|
1566
|
+
|
1567
|
+
obj = TFN.new()
|
1568
|
+
|
787
1569
|
instance_1 = Freeclimb::IncomingNumberResult.new(
|
1570
|
+
|
788
1571
|
uri: "TS",
|
789
1572
|
|
1573
|
+
|
1574
|
+
|
1575
|
+
|
790
1576
|
date_created: "TS",
|
791
1577
|
|
1578
|
+
|
1579
|
+
|
1580
|
+
|
792
1581
|
date_updated: "TS",
|
793
1582
|
|
1583
|
+
|
1584
|
+
|
794
1585
|
revision: 1,
|
795
1586
|
|
796
1587
|
|
797
|
-
|
1588
|
+
|
1589
|
+
|
1590
|
+
|
1591
|
+
|
1592
|
+
capabilities: obj,
|
1593
|
+
|
1594
|
+
|
798
1595
|
campaign_id: "TS",
|
799
1596
|
|
1597
|
+
|
1598
|
+
|
1599
|
+
|
800
1600
|
phone_number_id: "TS",
|
801
1601
|
|
1602
|
+
|
1603
|
+
|
1604
|
+
|
802
1605
|
account_id: "TS",
|
803
1606
|
|
1607
|
+
|
1608
|
+
|
1609
|
+
|
804
1610
|
application_id: "TS",
|
805
1611
|
|
1612
|
+
|
1613
|
+
|
1614
|
+
|
806
1615
|
phone_number: "TS",
|
807
1616
|
|
1617
|
+
|
1618
|
+
|
1619
|
+
|
808
1620
|
_alias: "TS",
|
809
1621
|
|
1622
|
+
|
1623
|
+
|
1624
|
+
|
810
1625
|
region: "TS",
|
811
1626
|
|
1627
|
+
|
1628
|
+
|
1629
|
+
|
812
1630
|
country: "TS",
|
813
1631
|
|
1632
|
+
|
1633
|
+
|
814
1634
|
voice_enabled: true,
|
815
1635
|
|
1636
|
+
|
1637
|
+
|
816
1638
|
sms_enabled: true,
|
817
1639
|
|
1640
|
+
|
1641
|
+
|
818
1642
|
offnet: true,
|
819
1643
|
|
820
1644
|
|
821
|
-
|
1645
|
+
|
1646
|
+
|
1647
|
+
|
1648
|
+
|
1649
|
+
tfn: obj,
|
1650
|
+
|
822
1651
|
)
|
823
1652
|
instance_2 = Freeclimb::IncomingNumberResult.new(
|
1653
|
+
|
824
1654
|
uri: "TS",
|
825
1655
|
|
1656
|
+
|
1657
|
+
|
1658
|
+
|
826
1659
|
date_created: "TS",
|
827
1660
|
|
1661
|
+
|
1662
|
+
|
1663
|
+
|
828
1664
|
date_updated: "TS",
|
829
1665
|
|
1666
|
+
|
1667
|
+
|
830
1668
|
revision: 1,
|
831
1669
|
|
832
1670
|
|
833
|
-
|
1671
|
+
|
1672
|
+
|
1673
|
+
|
1674
|
+
|
1675
|
+
capabilities: obj,
|
1676
|
+
|
1677
|
+
|
834
1678
|
campaign_id: "TS",
|
835
1679
|
|
1680
|
+
|
1681
|
+
|
1682
|
+
|
836
1683
|
phone_number_id: "TS",
|
837
1684
|
|
1685
|
+
|
1686
|
+
|
1687
|
+
|
838
1688
|
account_id: "TS",
|
839
1689
|
|
1690
|
+
|
1691
|
+
|
1692
|
+
|
840
1693
|
application_id: "TS",
|
841
1694
|
|
1695
|
+
|
1696
|
+
|
1697
|
+
|
842
1698
|
phone_number: "TS",
|
843
1699
|
|
1700
|
+
|
1701
|
+
|
1702
|
+
|
844
1703
|
_alias: "TS",
|
845
1704
|
|
1705
|
+
|
1706
|
+
|
1707
|
+
|
846
1708
|
region: "TS",
|
847
1709
|
|
1710
|
+
|
1711
|
+
|
1712
|
+
|
848
1713
|
country: "TS",
|
849
1714
|
|
1715
|
+
|
1716
|
+
|
850
1717
|
voice_enabled: true,
|
851
1718
|
|
1719
|
+
|
1720
|
+
|
852
1721
|
sms_enabled: true,
|
853
1722
|
|
1723
|
+
|
1724
|
+
|
854
1725
|
offnet: true,
|
855
1726
|
|
856
1727
|
|
857
|
-
|
1728
|
+
|
1729
|
+
|
1730
|
+
|
1731
|
+
|
1732
|
+
tfn: obj,
|
1733
|
+
|
858
1734
|
)
|
859
1735
|
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
860
1736
|
end
|
@@ -862,12 +1738,15 @@ describe Freeclimb::IncomingNumberResult do
|
|
862
1738
|
|
863
1739
|
describe 'test method "_to_hash"' do
|
864
1740
|
instance = Freeclimb::IncomingNumberResult.new(
|
1741
|
+
|
865
1742
|
uri: "TS",
|
866
1743
|
|
867
1744
|
|
1745
|
+
|
868
1746
|
date_created: "TS",
|
869
1747
|
|
870
1748
|
|
1749
|
+
|
871
1750
|
date_updated: "TS",
|
872
1751
|
|
873
1752
|
|
@@ -876,27 +1755,35 @@ describe Freeclimb::IncomingNumberResult do
|
|
876
1755
|
|
877
1756
|
|
878
1757
|
|
1758
|
+
|
879
1759
|
campaign_id: "TS",
|
880
1760
|
|
881
1761
|
|
1762
|
+
|
882
1763
|
phone_number_id: "TS",
|
883
1764
|
|
884
1765
|
|
1766
|
+
|
885
1767
|
account_id: "TS",
|
886
1768
|
|
887
1769
|
|
1770
|
+
|
888
1771
|
application_id: "TS",
|
889
1772
|
|
890
1773
|
|
1774
|
+
|
891
1775
|
phone_number: "TS",
|
892
1776
|
|
893
1777
|
|
1778
|
+
|
894
1779
|
_alias: "TS",
|
895
1780
|
|
896
1781
|
|
1782
|
+
|
897
1783
|
region: "TS",
|
898
1784
|
|
899
1785
|
|
1786
|
+
|
900
1787
|
country: "TS",
|
901
1788
|
|
902
1789
|
|