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