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::AccountResult
|
18
19
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
@@ -28,25 +29,34 @@ describe Freeclimb::AccountResult 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,38 +67,52 @@ describe Freeclimb::AccountResult 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 "account_id"' do
|
64
76
|
it 'should work' do
|
77
|
+
|
65
78
|
instance.account_id = "TEST_STRING"
|
66
79
|
expect(instance.account_id).to eq("TEST_STRING")
|
67
80
|
|
81
|
+
|
82
|
+
|
68
83
|
end
|
69
84
|
end
|
70
85
|
|
71
86
|
describe 'test attribute "api_key"' do
|
72
87
|
it 'should work' do
|
88
|
+
|
73
89
|
instance.api_key = "TEST_STRING"
|
74
90
|
expect(instance.api_key).to eq("TEST_STRING")
|
75
91
|
|
92
|
+
|
93
|
+
|
76
94
|
end
|
77
95
|
end
|
78
96
|
|
79
97
|
describe 'test attribute "_alias"' do
|
80
98
|
it 'should work' do
|
99
|
+
|
81
100
|
instance._alias = "TEST_STRING"
|
82
101
|
expect(instance._alias).to eq("TEST_STRING")
|
83
102
|
|
103
|
+
|
104
|
+
|
84
105
|
end
|
85
106
|
end
|
86
107
|
|
87
108
|
describe 'test attribute "label"' do
|
88
109
|
it 'should work' do
|
110
|
+
|
89
111
|
instance.label = "TEST_STRING"
|
90
112
|
expect(instance.label).to eq("TEST_STRING")
|
91
113
|
|
114
|
+
|
115
|
+
|
92
116
|
end
|
93
117
|
end
|
94
118
|
|
@@ -124,92 +148,187 @@ describe Freeclimb::AccountResult do
|
|
124
148
|
testObject = Object.new()
|
125
149
|
instance.subresource_uris = testObject
|
126
150
|
expect(instance.subresource_uris).to eq(testObject)
|
151
|
+
|
152
|
+
|
153
|
+
instance.subresource_uris = Object.new
|
154
|
+
expect(instance.subresource_uris).to be_instance_of(Object)
|
155
|
+
|
127
156
|
end
|
128
157
|
end
|
129
158
|
|
130
159
|
describe 'test method "initialize"' do
|
131
160
|
it 'properly initializes with values' do
|
132
161
|
expect { instance = Freeclimb::AccountResult.new(
|
162
|
+
|
133
163
|
uri: "TS",
|
134
164
|
|
165
|
+
|
166
|
+
|
167
|
+
|
135
168
|
date_created: "TS",
|
136
169
|
|
170
|
+
|
171
|
+
|
172
|
+
|
137
173
|
date_updated: "TS",
|
138
174
|
|
175
|
+
|
176
|
+
|
139
177
|
revision: 1,
|
140
178
|
|
179
|
+
|
180
|
+
|
181
|
+
|
141
182
|
account_id: "TS",
|
142
183
|
|
184
|
+
|
185
|
+
|
186
|
+
|
143
187
|
api_key: "TS",
|
144
188
|
|
189
|
+
|
190
|
+
|
191
|
+
|
145
192
|
_alias: "TS",
|
146
193
|
|
194
|
+
|
195
|
+
|
196
|
+
|
147
197
|
label: "TS",
|
148
198
|
|
149
199
|
|
200
|
+
|
201
|
+
|
150
202
|
type: Freeclimb::AccountType::TRIAL,
|
151
203
|
|
152
204
|
|
205
|
+
|
206
|
+
|
153
207
|
status: Freeclimb::AccountStatus::CLOSED,
|
154
208
|
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
155
214
|
subresource_uris: Object.new(),
|
156
215
|
|
157
216
|
)}.not_to raise_error()
|
158
217
|
end
|
159
218
|
it 'fails to initialize with input argument that is not a hash in Freeclimb::AccountResult' do
|
160
219
|
expect { instance = Freeclimb::AccountResult.new(
|
220
|
+
|
161
221
|
uri: "TS",
|
162
222
|
|
223
|
+
|
224
|
+
|
225
|
+
|
163
226
|
date_created: "TS",
|
164
227
|
|
228
|
+
|
229
|
+
|
230
|
+
|
165
231
|
date_updated: "TS",
|
166
232
|
|
233
|
+
|
234
|
+
|
167
235
|
revision: 1,
|
168
236
|
|
237
|
+
|
238
|
+
|
239
|
+
|
169
240
|
account_id: "TS",
|
170
241
|
|
242
|
+
|
243
|
+
|
244
|
+
|
171
245
|
api_key: "TS",
|
172
246
|
|
247
|
+
|
248
|
+
|
249
|
+
|
173
250
|
_alias: "TS",
|
174
251
|
|
252
|
+
|
253
|
+
|
254
|
+
|
175
255
|
label: "TS",
|
176
256
|
|
177
257
|
|
258
|
+
|
259
|
+
|
178
260
|
type: Freeclimb::AccountType::TRIAL,
|
179
261
|
|
180
262
|
|
263
|
+
|
264
|
+
|
181
265
|
status: Freeclimb::AccountStatus::CLOSED,
|
182
266
|
|
183
|
-
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
subresource_uris: Object.new,
|
184
273
|
|
185
274
|
invalid_attribute: true
|
186
275
|
)}.to raise_error(ArgumentError)
|
187
276
|
end
|
188
277
|
it 'fails to initialize with invalid attribute' do
|
189
278
|
expect { instance = Freeclimb::AccountResult.new(
|
279
|
+
|
190
280
|
uri: "TS",
|
191
281
|
|
282
|
+
|
283
|
+
|
284
|
+
|
192
285
|
date_created: "TS",
|
193
286
|
|
287
|
+
|
288
|
+
|
289
|
+
|
194
290
|
date_updated: "TS",
|
195
291
|
|
292
|
+
|
293
|
+
|
196
294
|
revision: 1,
|
197
295
|
|
296
|
+
|
297
|
+
|
298
|
+
|
198
299
|
account_id: "TS",
|
199
300
|
|
301
|
+
|
302
|
+
|
303
|
+
|
200
304
|
api_key: "TS",
|
201
305
|
|
306
|
+
|
307
|
+
|
308
|
+
|
202
309
|
_alias: "TS",
|
203
310
|
|
311
|
+
|
312
|
+
|
313
|
+
|
204
314
|
label: "TS",
|
205
315
|
|
206
316
|
|
317
|
+
|
318
|
+
|
207
319
|
type: Freeclimb::AccountType::TRIAL,
|
208
320
|
|
209
321
|
|
322
|
+
|
323
|
+
|
210
324
|
status: Freeclimb::AccountStatus::CLOSED,
|
211
325
|
|
212
|
-
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
subresource_uris: Object.new,
|
213
332
|
|
214
333
|
invalid_attribute: true
|
215
334
|
)}.to raise_error(ArgumentError)
|
@@ -219,28 +338,58 @@ describe Freeclimb::AccountResult do
|
|
219
338
|
describe 'test method "valid"' do
|
220
339
|
it 'checks if properties are valid' do
|
221
340
|
instance = Freeclimb::AccountResult.new(
|
341
|
+
|
222
342
|
uri: "TS",
|
223
343
|
|
344
|
+
|
345
|
+
|
346
|
+
|
224
347
|
date_created: "TS",
|
225
348
|
|
349
|
+
|
350
|
+
|
351
|
+
|
226
352
|
date_updated: "TS",
|
227
353
|
|
354
|
+
|
355
|
+
|
228
356
|
revision: 1,
|
229
357
|
|
358
|
+
|
359
|
+
|
360
|
+
|
230
361
|
account_id: "TS",
|
231
362
|
|
363
|
+
|
364
|
+
|
365
|
+
|
232
366
|
api_key: "TS",
|
233
367
|
|
368
|
+
|
369
|
+
|
370
|
+
|
234
371
|
_alias: "TS",
|
235
372
|
|
373
|
+
|
374
|
+
|
375
|
+
|
236
376
|
label: "TS",
|
237
377
|
|
238
378
|
|
379
|
+
|
380
|
+
|
239
381
|
type: Freeclimb::AccountType::TRIAL,
|
240
382
|
|
241
383
|
|
384
|
+
|
385
|
+
|
242
386
|
status: Freeclimb::AccountStatus::CLOSED,
|
243
387
|
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
|
244
393
|
subresource_uris: Object.new(),
|
245
394
|
|
246
395
|
)
|
@@ -259,57 +408,129 @@ describe Freeclimb::AccountResult do
|
|
259
408
|
|
260
409
|
describe 'test method "eql?"' do
|
261
410
|
it 'checks if objects are equal' do
|
262
|
-
|
411
|
+
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
obj_Object = Object.new()
|
423
|
+
|
263
424
|
instance_1 = Freeclimb::AccountResult.new(
|
425
|
+
|
264
426
|
uri: "TS",
|
265
427
|
|
428
|
+
|
429
|
+
|
430
|
+
|
266
431
|
date_created: "TS",
|
267
432
|
|
433
|
+
|
434
|
+
|
435
|
+
|
268
436
|
date_updated: "TS",
|
269
437
|
|
438
|
+
|
439
|
+
|
270
440
|
revision: 1,
|
271
441
|
|
442
|
+
|
443
|
+
|
444
|
+
|
272
445
|
account_id: "TS",
|
273
446
|
|
447
|
+
|
448
|
+
|
449
|
+
|
274
450
|
api_key: "TS",
|
275
451
|
|
452
|
+
|
453
|
+
|
454
|
+
|
276
455
|
_alias: "TS",
|
277
456
|
|
457
|
+
|
458
|
+
|
459
|
+
|
278
460
|
label: "TS",
|
279
461
|
|
280
462
|
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
|
281
467
|
type: Freeclimb::AccountType::TRIAL,
|
282
468
|
|
283
469
|
|
470
|
+
|
471
|
+
|
284
472
|
status: Freeclimb::AccountStatus::CLOSED,
|
285
473
|
|
286
|
-
|
474
|
+
|
475
|
+
|
476
|
+
subresource_uris: obj_Object,
|
477
|
+
|
287
478
|
|
288
479
|
)
|
289
480
|
instance_2 = Freeclimb::AccountResult.new(
|
481
|
+
|
290
482
|
uri: "TS",
|
291
483
|
|
484
|
+
|
485
|
+
|
486
|
+
|
292
487
|
date_created: "TS",
|
293
488
|
|
489
|
+
|
490
|
+
|
491
|
+
|
294
492
|
date_updated: "TS",
|
295
493
|
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
|
296
498
|
revision: 1,
|
297
499
|
|
500
|
+
|
298
501
|
account_id: "TS",
|
299
502
|
|
503
|
+
|
504
|
+
|
505
|
+
|
300
506
|
api_key: "TS",
|
301
507
|
|
508
|
+
|
509
|
+
|
510
|
+
|
302
511
|
_alias: "TS",
|
303
512
|
|
513
|
+
|
514
|
+
|
515
|
+
|
304
516
|
label: "TS",
|
305
517
|
|
306
518
|
|
519
|
+
|
520
|
+
|
521
|
+
|
522
|
+
|
307
523
|
type: Freeclimb::AccountType::TRIAL,
|
308
524
|
|
309
525
|
|
526
|
+
|
527
|
+
|
310
528
|
status: Freeclimb::AccountStatus::CLOSED,
|
311
529
|
|
312
|
-
|
530
|
+
|
531
|
+
|
532
|
+
subresource_uris: obj_Object,
|
533
|
+
|
313
534
|
|
314
535
|
)
|
315
536
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
@@ -317,57 +538,118 @@ describe Freeclimb::AccountResult do
|
|
317
538
|
|
318
539
|
it 'checks if objects are not equal' do
|
319
540
|
instance_1 = Freeclimb::AccountResult.new(
|
541
|
+
|
320
542
|
uri: "TS",
|
321
543
|
|
544
|
+
|
545
|
+
|
546
|
+
|
322
547
|
date_created: "TS",
|
323
548
|
|
549
|
+
|
550
|
+
|
551
|
+
|
324
552
|
date_updated: "TS",
|
325
553
|
|
554
|
+
|
555
|
+
|
326
556
|
revision: 2,
|
327
557
|
|
558
|
+
|
559
|
+
|
560
|
+
|
328
561
|
account_id: "TS",
|
329
562
|
|
330
|
-
api_key: "TS",
|
331
563
|
|
332
|
-
_alias: "TS",
|
333
564
|
|
334
|
-
label: "TS",
|
335
565
|
|
566
|
+
api_key: "TS",
|
336
567
|
|
337
|
-
type: Freeclimb::AccountType::TRIAL,
|
338
568
|
|
339
569
|
|
340
|
-
status: Freeclimb::AccountStatus::CLOSED,
|
341
570
|
|
342
|
-
|
571
|
+
_alias: "TS",
|
343
572
|
|
344
|
-
)
|
345
|
-
instance_2 = Freeclimb::AccountResult.new(
|
346
|
-
uri: "ST",
|
347
573
|
|
348
|
-
date_created: "ST",
|
349
574
|
|
350
|
-
date_updated: "ST",
|
351
575
|
|
352
|
-
|
576
|
+
label: "TS",
|
353
577
|
|
354
|
-
account_id: "ST",
|
355
578
|
|
356
|
-
api_key: "ST",
|
357
579
|
|
358
|
-
_alias: "ST",
|
359
580
|
|
360
|
-
label: "ST",
|
361
581
|
|
362
582
|
|
363
|
-
type:
|
583
|
+
type: Freeclimb::AccountType::TRIAL,
|
364
584
|
|
365
585
|
|
366
|
-
status: nil,
|
367
586
|
|
368
|
-
subresource_uris: nil,
|
369
587
|
|
370
|
-
|
588
|
+
status: Freeclimb::AccountStatus::CLOSED,
|
589
|
+
|
590
|
+
|
591
|
+
|
592
|
+
subresource_uris: Object.new(),
|
593
|
+
|
594
|
+
subresource_uris: Object.new(),
|
595
|
+
|
596
|
+
)
|
597
|
+
instance_2 = Freeclimb::AccountResult.new(
|
598
|
+
|
599
|
+
uri: "ST",
|
600
|
+
|
601
|
+
|
602
|
+
|
603
|
+
|
604
|
+
date_created: "ST",
|
605
|
+
|
606
|
+
|
607
|
+
|
608
|
+
|
609
|
+
date_updated: "ST",
|
610
|
+
|
611
|
+
|
612
|
+
|
613
|
+
revision: 1,
|
614
|
+
|
615
|
+
|
616
|
+
|
617
|
+
|
618
|
+
account_id: "ST",
|
619
|
+
|
620
|
+
|
621
|
+
|
622
|
+
|
623
|
+
api_key: "ST",
|
624
|
+
|
625
|
+
|
626
|
+
|
627
|
+
|
628
|
+
_alias: "ST",
|
629
|
+
|
630
|
+
|
631
|
+
|
632
|
+
|
633
|
+
label: "ST",
|
634
|
+
|
635
|
+
|
636
|
+
|
637
|
+
|
638
|
+
|
639
|
+
|
640
|
+
type: nil,
|
641
|
+
|
642
|
+
|
643
|
+
|
644
|
+
|
645
|
+
status: nil,
|
646
|
+
|
647
|
+
|
648
|
+
|
649
|
+
subresource_uris: Object.new(),
|
650
|
+
|
651
|
+
|
652
|
+
)
|
371
653
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
372
654
|
end
|
373
655
|
end
|
@@ -375,28 +657,58 @@ describe Freeclimb::AccountResult do
|
|
375
657
|
describe 'test method "hash"' do
|
376
658
|
it 'calculates hash code' do
|
377
659
|
instance = Freeclimb::AccountResult.new(
|
660
|
+
|
378
661
|
uri: "TS",
|
379
662
|
|
663
|
+
|
664
|
+
|
665
|
+
|
380
666
|
date_created: "TS",
|
381
667
|
|
668
|
+
|
669
|
+
|
670
|
+
|
382
671
|
date_updated: "TS",
|
383
672
|
|
673
|
+
|
674
|
+
|
384
675
|
revision: 1,
|
385
676
|
|
677
|
+
|
678
|
+
|
679
|
+
|
386
680
|
account_id: "TS",
|
387
681
|
|
682
|
+
|
683
|
+
|
684
|
+
|
388
685
|
api_key: "TS",
|
389
686
|
|
687
|
+
|
688
|
+
|
689
|
+
|
390
690
|
_alias: "TS",
|
391
691
|
|
692
|
+
|
693
|
+
|
694
|
+
|
392
695
|
label: "TS",
|
393
696
|
|
394
697
|
|
698
|
+
|
699
|
+
|
395
700
|
type: Freeclimb::AccountType::TRIAL,
|
396
701
|
|
397
702
|
|
703
|
+
|
704
|
+
|
398
705
|
status: Freeclimb::AccountStatus::CLOSED,
|
399
706
|
|
707
|
+
|
708
|
+
|
709
|
+
|
710
|
+
|
711
|
+
|
400
712
|
subresource_uris: Object.new(),
|
401
713
|
|
402
714
|
)
|
@@ -407,54 +719,114 @@ describe Freeclimb::AccountResult do
|
|
407
719
|
describe 'test method "build_from_hash"' do
|
408
720
|
it 'builds equivalent model from hash code' do
|
409
721
|
instance_1 = Freeclimb::AccountResult.new(
|
722
|
+
|
410
723
|
uri: "TS",
|
411
724
|
|
725
|
+
|
726
|
+
|
727
|
+
|
412
728
|
date_created: "TS",
|
413
729
|
|
730
|
+
|
731
|
+
|
732
|
+
|
414
733
|
date_updated: "TS",
|
415
734
|
|
735
|
+
|
736
|
+
|
416
737
|
revision: 1,
|
417
738
|
|
739
|
+
|
740
|
+
|
741
|
+
|
418
742
|
account_id: "TS",
|
419
743
|
|
744
|
+
|
745
|
+
|
746
|
+
|
420
747
|
api_key: "TS",
|
421
748
|
|
749
|
+
|
750
|
+
|
751
|
+
|
422
752
|
_alias: "TS",
|
423
753
|
|
754
|
+
|
755
|
+
|
756
|
+
|
424
757
|
label: "TS",
|
425
758
|
|
426
759
|
|
760
|
+
|
761
|
+
|
427
762
|
type: Freeclimb::AccountType::TRIAL,
|
428
763
|
|
429
764
|
|
765
|
+
|
766
|
+
|
430
767
|
status: Freeclimb::AccountStatus::CLOSED,
|
431
768
|
|
769
|
+
|
770
|
+
|
771
|
+
|
772
|
+
|
773
|
+
|
432
774
|
subresource_uris: Object.new(),
|
433
775
|
|
434
776
|
)
|
435
777
|
instance_2 = Freeclimb::AccountResult.new(
|
778
|
+
|
436
779
|
uri: "TS",
|
437
780
|
|
781
|
+
|
782
|
+
|
783
|
+
|
438
784
|
date_created: "TS",
|
439
785
|
|
786
|
+
|
787
|
+
|
788
|
+
|
440
789
|
date_updated: "TS",
|
441
790
|
|
791
|
+
|
792
|
+
|
442
793
|
revision: 1,
|
443
794
|
|
795
|
+
|
796
|
+
|
797
|
+
|
444
798
|
account_id: "TS",
|
445
799
|
|
800
|
+
|
801
|
+
|
802
|
+
|
446
803
|
api_key: "TS",
|
447
804
|
|
805
|
+
|
806
|
+
|
807
|
+
|
448
808
|
_alias: "TS",
|
449
809
|
|
810
|
+
|
811
|
+
|
812
|
+
|
450
813
|
label: "TS",
|
451
814
|
|
452
815
|
|
816
|
+
|
817
|
+
|
453
818
|
type: Freeclimb::AccountType::TRIAL,
|
454
819
|
|
455
820
|
|
821
|
+
|
822
|
+
|
456
823
|
status: Freeclimb::AccountStatus::CLOSED,
|
457
824
|
|
825
|
+
|
826
|
+
|
827
|
+
|
828
|
+
|
829
|
+
|
458
830
|
subresource_uris: Object.new(),
|
459
831
|
|
460
832
|
)
|
@@ -465,86 +837,169 @@ describe Freeclimb::AccountResult do
|
|
465
837
|
|
466
838
|
describe 'test method "_deserialize"' do
|
467
839
|
instance = Freeclimb::AccountResult.new(
|
840
|
+
|
468
841
|
uri: "TS",
|
469
842
|
|
843
|
+
|
844
|
+
|
845
|
+
|
470
846
|
date_created: "TS",
|
471
847
|
|
848
|
+
|
849
|
+
|
850
|
+
|
472
851
|
date_updated: "TS",
|
473
852
|
|
853
|
+
|
854
|
+
|
474
855
|
revision: 1,
|
475
856
|
|
857
|
+
|
858
|
+
|
859
|
+
|
476
860
|
account_id: "TS",
|
477
861
|
|
862
|
+
|
863
|
+
|
864
|
+
|
478
865
|
api_key: "TS",
|
479
866
|
|
867
|
+
|
868
|
+
|
869
|
+
|
480
870
|
_alias: "TS",
|
481
871
|
|
872
|
+
|
873
|
+
|
874
|
+
|
482
875
|
label: "TS",
|
483
876
|
|
484
877
|
|
878
|
+
|
879
|
+
|
485
880
|
type: Freeclimb::AccountType::TRIAL,
|
486
881
|
|
487
882
|
|
883
|
+
|
884
|
+
|
488
885
|
status: Freeclimb::AccountStatus::CLOSED,
|
489
886
|
|
887
|
+
|
888
|
+
|
889
|
+
|
890
|
+
|
891
|
+
|
490
892
|
subresource_uris: Object.new(),
|
491
893
|
|
492
894
|
)
|
493
895
|
it 'deserializes the data of uri' do
|
494
896
|
expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String)
|
495
897
|
end
|
898
|
+
|
899
|
+
|
496
900
|
it 'deserializes the data of date_created' do
|
497
901
|
expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String)
|
498
902
|
end
|
903
|
+
|
904
|
+
|
499
905
|
it 'deserializes the data of date_updated' do
|
500
906
|
expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String)
|
501
907
|
end
|
908
|
+
|
909
|
+
|
502
910
|
it 'deserializes the data of revision' do
|
503
911
|
expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer)
|
504
912
|
end
|
913
|
+
|
914
|
+
|
505
915
|
it 'deserializes the data of account_id' do
|
506
916
|
expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
|
507
917
|
end
|
918
|
+
|
919
|
+
|
508
920
|
it 'deserializes the data of api_key' do
|
509
921
|
expect(instance._deserialize("String", instance.api_key)).to be_a_kind_of(String)
|
510
922
|
end
|
923
|
+
|
924
|
+
|
511
925
|
it 'deserializes the data of _alias' do
|
512
926
|
expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String)
|
513
927
|
end
|
928
|
+
|
929
|
+
|
514
930
|
it 'deserializes the data of label' do
|
515
931
|
expect(instance._deserialize("String", instance.label)).to be_a_kind_of(String)
|
516
932
|
end
|
933
|
+
|
934
|
+
|
935
|
+
|
936
|
+
|
937
|
+
|
938
|
+
|
939
|
+
|
940
|
+
|
517
941
|
it 'deserializes the data of subresource_uris' do
|
518
942
|
expect(instance._deserialize("Object", instance.subresource_uris)).to be_a_kind_of(Object)
|
519
943
|
end
|
944
|
+
|
520
945
|
end
|
521
946
|
|
522
947
|
describe 'test method "to_s"' do
|
523
948
|
it 'returns the string representation of the object' do
|
524
949
|
instance = Freeclimb::AccountResult.new(
|
950
|
+
|
525
951
|
uri: "TS",
|
526
952
|
|
953
|
+
|
954
|
+
|
955
|
+
|
527
956
|
date_created: "TS",
|
528
957
|
|
958
|
+
|
959
|
+
|
960
|
+
|
529
961
|
date_updated: "TS",
|
530
962
|
|
963
|
+
|
964
|
+
|
531
965
|
revision: 1,
|
532
966
|
|
967
|
+
|
968
|
+
|
969
|
+
|
533
970
|
account_id: "TS",
|
534
971
|
|
972
|
+
|
973
|
+
|
974
|
+
|
535
975
|
api_key: "TS",
|
536
976
|
|
977
|
+
|
978
|
+
|
979
|
+
|
537
980
|
_alias: "TS",
|
538
981
|
|
982
|
+
|
983
|
+
|
984
|
+
|
539
985
|
label: "TS",
|
540
986
|
|
541
987
|
|
988
|
+
|
989
|
+
|
542
990
|
type: Freeclimb::AccountType::TRIAL,
|
543
991
|
|
544
992
|
|
993
|
+
|
994
|
+
|
545
995
|
status: Freeclimb::AccountStatus::CLOSED,
|
546
996
|
|
547
|
-
|
997
|
+
|
998
|
+
|
999
|
+
|
1000
|
+
|
1001
|
+
|
1002
|
+
subresource_uris: Object.new,
|
548
1003
|
|
549
1004
|
)
|
550
1005
|
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
@@ -554,84 +1009,186 @@ describe Freeclimb::AccountResult do
|
|
554
1009
|
describe 'test method "to_hash"' do
|
555
1010
|
it 'returns the object in the form of hash' do
|
556
1011
|
instance = Freeclimb::AccountResult.new(
|
1012
|
+
|
557
1013
|
uri: "TS",
|
558
1014
|
|
1015
|
+
|
1016
|
+
|
1017
|
+
|
559
1018
|
date_created: "TS",
|
560
1019
|
|
1020
|
+
|
1021
|
+
|
1022
|
+
|
561
1023
|
date_updated: "TS",
|
562
1024
|
|
1025
|
+
|
1026
|
+
|
563
1027
|
revision: 1,
|
564
1028
|
|
1029
|
+
|
1030
|
+
|
1031
|
+
|
565
1032
|
account_id: "TS",
|
566
1033
|
|
1034
|
+
|
1035
|
+
|
1036
|
+
|
567
1037
|
api_key: "TS",
|
568
1038
|
|
1039
|
+
|
1040
|
+
|
1041
|
+
|
569
1042
|
_alias: "TS",
|
570
1043
|
|
1044
|
+
|
1045
|
+
|
1046
|
+
|
571
1047
|
label: "TS",
|
572
1048
|
|
573
1049
|
|
1050
|
+
|
1051
|
+
|
574
1052
|
type: Freeclimb::AccountType::TRIAL,
|
575
1053
|
|
576
1054
|
|
1055
|
+
|
1056
|
+
|
577
1057
|
status: Freeclimb::AccountStatus::CLOSED,
|
578
1058
|
|
579
|
-
|
1059
|
+
|
1060
|
+
|
1061
|
+
|
1062
|
+
|
1063
|
+
|
1064
|
+
subresource_uris: Object.new,
|
580
1065
|
|
581
1066
|
)
|
582
1067
|
expect(instance.to_hash).to be_a_kind_of(Hash)
|
583
1068
|
end
|
584
1069
|
it 'creates equal hash for two equal objects' do
|
1070
|
+
|
1071
|
+
|
1072
|
+
|
1073
|
+
|
1074
|
+
|
1075
|
+
|
1076
|
+
|
1077
|
+
|
1078
|
+
|
1079
|
+
|
1080
|
+
|
585
1081
|
obj = Object.new()
|
1082
|
+
|
586
1083
|
instance_1 = Freeclimb::AccountResult.new(
|
1084
|
+
|
587
1085
|
uri: "TS",
|
588
1086
|
|
1087
|
+
|
1088
|
+
|
1089
|
+
|
589
1090
|
date_created: "TS",
|
590
1091
|
|
1092
|
+
|
1093
|
+
|
1094
|
+
|
591
1095
|
date_updated: "TS",
|
592
1096
|
|
1097
|
+
|
1098
|
+
|
593
1099
|
revision: 1,
|
594
1100
|
|
1101
|
+
|
1102
|
+
|
1103
|
+
|
595
1104
|
account_id: "TS",
|
596
1105
|
|
1106
|
+
|
1107
|
+
|
1108
|
+
|
597
1109
|
api_key: "TS",
|
598
1110
|
|
1111
|
+
|
1112
|
+
|
1113
|
+
|
599
1114
|
_alias: "TS",
|
600
1115
|
|
1116
|
+
|
1117
|
+
|
1118
|
+
|
601
1119
|
label: "TS",
|
602
1120
|
|
603
1121
|
|
1122
|
+
|
1123
|
+
|
604
1124
|
type: Freeclimb::AccountType::TRIAL,
|
605
1125
|
|
606
1126
|
|
1127
|
+
|
1128
|
+
|
607
1129
|
status: Freeclimb::AccountStatus::CLOSED,
|
608
1130
|
|
1131
|
+
|
1132
|
+
|
1133
|
+
|
1134
|
+
|
1135
|
+
|
609
1136
|
subresource_uris: obj,
|
610
1137
|
|
611
1138
|
)
|
612
1139
|
instance_2 = Freeclimb::AccountResult.new(
|
1140
|
+
|
613
1141
|
uri: "TS",
|
614
1142
|
|
1143
|
+
|
1144
|
+
|
1145
|
+
|
615
1146
|
date_created: "TS",
|
616
1147
|
|
1148
|
+
|
1149
|
+
|
1150
|
+
|
617
1151
|
date_updated: "TS",
|
618
1152
|
|
1153
|
+
|
1154
|
+
|
619
1155
|
revision: 1,
|
620
1156
|
|
1157
|
+
|
1158
|
+
|
1159
|
+
|
621
1160
|
account_id: "TS",
|
622
1161
|
|
1162
|
+
|
1163
|
+
|
1164
|
+
|
623
1165
|
api_key: "TS",
|
624
1166
|
|
1167
|
+
|
1168
|
+
|
1169
|
+
|
625
1170
|
_alias: "TS",
|
626
1171
|
|
1172
|
+
|
1173
|
+
|
1174
|
+
|
627
1175
|
label: "TS",
|
628
1176
|
|
629
1177
|
|
1178
|
+
|
1179
|
+
|
630
1180
|
type: Freeclimb::AccountType::TRIAL,
|
631
1181
|
|
632
1182
|
|
1183
|
+
|
1184
|
+
|
633
1185
|
status: Freeclimb::AccountStatus::CLOSED,
|
634
1186
|
|
1187
|
+
|
1188
|
+
|
1189
|
+
|
1190
|
+
|
1191
|
+
|
635
1192
|
subresource_uris: obj,
|
636
1193
|
|
637
1194
|
)
|
@@ -641,27 +1198,34 @@ describe Freeclimb::AccountResult do
|
|
641
1198
|
|
642
1199
|
describe 'test method "_to_hash"' do
|
643
1200
|
instance = Freeclimb::AccountResult.new(
|
1201
|
+
|
644
1202
|
uri: "TS",
|
645
1203
|
|
646
1204
|
|
1205
|
+
|
647
1206
|
date_created: "TS",
|
648
1207
|
|
649
1208
|
|
1209
|
+
|
650
1210
|
date_updated: "TS",
|
651
1211
|
|
652
1212
|
|
653
1213
|
revision: 1,
|
654
1214
|
|
655
1215
|
|
1216
|
+
|
656
1217
|
account_id: "TS",
|
657
1218
|
|
658
1219
|
|
1220
|
+
|
659
1221
|
api_key: "TS",
|
660
1222
|
|
661
1223
|
|
1224
|
+
|
662
1225
|
_alias: "TS",
|
663
1226
|
|
664
1227
|
|
1228
|
+
|
665
1229
|
label: "TS",
|
666
1230
|
|
667
1231
|
|
@@ -673,7 +1237,6 @@ describe Freeclimb::AccountResult do
|
|
673
1237
|
status: Freeclimb::AccountStatus::CLOSED,
|
674
1238
|
|
675
1239
|
|
676
|
-
subresource_uris: Object.new(),
|
677
1240
|
|
678
1241
|
)
|
679
1242
|
it 'returns uri in the form of hash' do
|