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::SMSTenDLCCampaign
|
18
19
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
@@ -28,25 +29,34 @@ describe Freeclimb::SMSTenDLCCampaign 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 "campaign_id"' do
|
38
42
|
it 'should work' do
|
43
|
+
|
39
44
|
instance.campaign_id = "TEST_STRING"
|
40
45
|
expect(instance.campaign_id).to eq("TEST_STRING")
|
41
46
|
|
47
|
+
|
48
|
+
|
42
49
|
end
|
43
50
|
end
|
44
51
|
|
45
52
|
describe 'test attribute "csp_id"' do
|
46
53
|
it 'should work' do
|
54
|
+
|
47
55
|
instance.csp_id = "TEST_STRING"
|
48
56
|
expect(instance.csp_id).to eq("TEST_STRING")
|
49
57
|
|
58
|
+
|
59
|
+
|
50
60
|
end
|
51
61
|
end
|
52
62
|
|
@@ -76,6 +86,8 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
76
86
|
instance.create_date = "2022-07-05T15:17:05Z"
|
77
87
|
expect(instance.create_date).to eq("2022-07-05T15:17:05Z")
|
78
88
|
|
89
|
+
|
90
|
+
|
79
91
|
end
|
80
92
|
end
|
81
93
|
|
@@ -84,6 +96,8 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
84
96
|
instance.auto_renewal = false
|
85
97
|
expect(instance.auto_renewal).to eq(false)
|
86
98
|
|
99
|
+
|
100
|
+
|
87
101
|
end
|
88
102
|
end
|
89
103
|
|
@@ -92,6 +106,8 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
92
106
|
instance.billed_date = "2022-07-05T15:17:05Z"
|
93
107
|
expect(instance.billed_date).to eq("2022-07-05T15:17:05Z")
|
94
108
|
|
109
|
+
|
110
|
+
|
95
111
|
end
|
96
112
|
end
|
97
113
|
|
@@ -120,6 +136,8 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
120
136
|
|
121
137
|
instance.sub_usecases = ["ELEMENT_1", "ELEMENT_2"]
|
122
138
|
expect(instance.sub_usecases).to eq(["ELEMENT_1", "ELEMENT_2"])
|
139
|
+
|
140
|
+
|
123
141
|
end
|
124
142
|
end
|
125
143
|
|
@@ -138,6 +156,8 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
138
156
|
instance.embedded_link = false
|
139
157
|
expect(instance.embedded_link).to eq(false)
|
140
158
|
|
159
|
+
|
160
|
+
|
141
161
|
end
|
142
162
|
end
|
143
163
|
|
@@ -146,6 +166,8 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
146
166
|
instance.embedded_phone = false
|
147
167
|
expect(instance.embedded_phone).to eq(false)
|
148
168
|
|
169
|
+
|
170
|
+
|
149
171
|
end
|
150
172
|
end
|
151
173
|
|
@@ -154,6 +176,8 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
154
176
|
instance.affiliate_marketing = false
|
155
177
|
expect(instance.affiliate_marketing).to eq(false)
|
156
178
|
|
179
|
+
|
180
|
+
|
157
181
|
end
|
158
182
|
end
|
159
183
|
|
@@ -162,6 +186,8 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
162
186
|
instance.number_pool = false
|
163
187
|
expect(instance.number_pool).to eq(false)
|
164
188
|
|
189
|
+
|
190
|
+
|
165
191
|
end
|
166
192
|
end
|
167
193
|
|
@@ -170,6 +196,8 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
170
196
|
instance.age_gated = false
|
171
197
|
expect(instance.age_gated).to eq(false)
|
172
198
|
|
199
|
+
|
200
|
+
|
173
201
|
end
|
174
202
|
end
|
175
203
|
|
@@ -178,6 +206,8 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
178
206
|
instance.direct_lending = false
|
179
207
|
expect(instance.direct_lending).to eq(false)
|
180
208
|
|
209
|
+
|
210
|
+
|
181
211
|
end
|
182
212
|
end
|
183
213
|
|
@@ -186,6 +216,8 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
186
216
|
instance.subscriber_optin = false
|
187
217
|
expect(instance.subscriber_optin).to eq(false)
|
188
218
|
|
219
|
+
|
220
|
+
|
189
221
|
end
|
190
222
|
end
|
191
223
|
|
@@ -194,6 +226,8 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
194
226
|
instance.subscriber_optout = false
|
195
227
|
expect(instance.subscriber_optout).to eq(false)
|
196
228
|
|
229
|
+
|
230
|
+
|
197
231
|
end
|
198
232
|
end
|
199
233
|
|
@@ -202,6 +236,8 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
202
236
|
instance.subscriber_help = false
|
203
237
|
expect(instance.subscriber_help).to eq(false)
|
204
238
|
|
239
|
+
|
240
|
+
|
205
241
|
end
|
206
242
|
end
|
207
243
|
|
@@ -340,6 +376,8 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
340
376
|
instance.mock = false
|
341
377
|
expect(instance.mock).to eq(false)
|
342
378
|
|
379
|
+
|
380
|
+
|
343
381
|
end
|
344
382
|
end
|
345
383
|
|
@@ -348,240 +386,518 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
348
386
|
instance.next_renewal_or_expiration_date = "2000-01-01"
|
349
387
|
expect(instance.next_renewal_or_expiration_date).to eq("2000-01-01")
|
350
388
|
|
389
|
+
|
390
|
+
|
351
391
|
end
|
352
392
|
end
|
353
393
|
|
354
394
|
describe 'test method "initialize"' do
|
355
395
|
it 'properly initializes with values' do
|
356
396
|
expect { instance = Freeclimb::SMSTenDLCCampaign.new(
|
397
|
+
|
357
398
|
account_id: "TS",
|
358
399
|
|
400
|
+
|
401
|
+
|
402
|
+
|
359
403
|
campaign_id: "TS",
|
360
404
|
|
405
|
+
|
406
|
+
|
407
|
+
|
361
408
|
csp_id: "TS",
|
362
409
|
|
410
|
+
|
411
|
+
|
412
|
+
|
363
413
|
reseller_id: "TS",
|
364
414
|
|
365
415
|
|
416
|
+
|
417
|
+
|
366
418
|
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
367
419
|
|
368
420
|
|
421
|
+
|
422
|
+
|
369
423
|
create_date: "2022-07-05T15:17:05Z",
|
424
|
+
|
425
|
+
|
370
426
|
auto_renewal: true,
|
371
427
|
|
372
428
|
|
429
|
+
|
430
|
+
|
373
431
|
billed_date: "2022-07-05T15:17:05Z",
|
432
|
+
|
433
|
+
|
434
|
+
|
374
435
|
brand_id: "TS",
|
375
436
|
|
437
|
+
|
438
|
+
|
439
|
+
|
376
440
|
usecase: "TS",
|
377
441
|
|
442
|
+
|
443
|
+
|
378
444
|
sub_usecases: Array.new(),
|
379
445
|
|
446
|
+
|
447
|
+
|
448
|
+
|
380
449
|
description: "TS",
|
381
450
|
|
451
|
+
|
452
|
+
|
382
453
|
embedded_link: true,
|
383
454
|
|
455
|
+
|
456
|
+
|
384
457
|
embedded_phone: true,
|
385
458
|
|
459
|
+
|
460
|
+
|
386
461
|
affiliate_marketing: true,
|
387
462
|
|
463
|
+
|
464
|
+
|
388
465
|
number_pool: true,
|
389
466
|
|
467
|
+
|
468
|
+
|
390
469
|
age_gated: true,
|
391
470
|
|
471
|
+
|
472
|
+
|
392
473
|
direct_lending: true,
|
393
474
|
|
475
|
+
|
476
|
+
|
394
477
|
subscriber_optin: true,
|
395
478
|
|
479
|
+
|
480
|
+
|
396
481
|
subscriber_optout: true,
|
397
482
|
|
483
|
+
|
484
|
+
|
398
485
|
subscriber_help: true,
|
399
486
|
|
487
|
+
|
488
|
+
|
489
|
+
|
400
490
|
sample1: "TS",
|
401
491
|
|
492
|
+
|
493
|
+
|
494
|
+
|
402
495
|
sample2: "TS",
|
403
496
|
|
497
|
+
|
498
|
+
|
499
|
+
|
404
500
|
sample3: "TS",
|
405
501
|
|
502
|
+
|
503
|
+
|
504
|
+
|
406
505
|
sample4: "TS",
|
407
506
|
|
507
|
+
|
508
|
+
|
509
|
+
|
408
510
|
sample5: "TS",
|
409
511
|
|
512
|
+
|
513
|
+
|
514
|
+
|
410
515
|
message_flow: "TS",
|
411
516
|
|
517
|
+
|
518
|
+
|
519
|
+
|
412
520
|
help_message: "TS",
|
413
521
|
|
522
|
+
|
523
|
+
|
524
|
+
|
414
525
|
optin_keywords: "TS",
|
415
526
|
|
527
|
+
|
528
|
+
|
529
|
+
|
416
530
|
optout_keywords: "TS",
|
417
531
|
|
532
|
+
|
533
|
+
|
534
|
+
|
418
535
|
help_keywords: "TS",
|
419
536
|
|
537
|
+
|
538
|
+
|
539
|
+
|
420
540
|
optin_message: "TS",
|
421
541
|
|
542
|
+
|
543
|
+
|
544
|
+
|
422
545
|
optout_message: "TS",
|
423
546
|
|
547
|
+
|
548
|
+
|
549
|
+
|
424
550
|
reference_id: "TS",
|
425
551
|
|
552
|
+
|
553
|
+
|
426
554
|
mock: true,
|
427
555
|
|
428
556
|
|
557
|
+
|
558
|
+
|
429
559
|
next_renewal_or_expiration_date: "2000-01-01",
|
560
|
+
|
561
|
+
|
430
562
|
)}.not_to raise_error()
|
431
563
|
end
|
432
564
|
it 'fails to initialize with input argument that is not a hash in Freeclimb::SMSTenDLCCampaign' do
|
433
565
|
expect { instance = Freeclimb::SMSTenDLCCampaign.new(
|
566
|
+
|
434
567
|
account_id: "TS",
|
435
568
|
|
569
|
+
|
570
|
+
|
571
|
+
|
436
572
|
campaign_id: "TS",
|
437
573
|
|
574
|
+
|
575
|
+
|
576
|
+
|
438
577
|
csp_id: "TS",
|
439
578
|
|
579
|
+
|
580
|
+
|
581
|
+
|
440
582
|
reseller_id: "TS",
|
441
583
|
|
442
584
|
|
585
|
+
|
586
|
+
|
443
587
|
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
444
588
|
|
445
589
|
|
590
|
+
|
591
|
+
|
446
592
|
create_date: "2022-07-05T15:17:05Z",
|
593
|
+
|
594
|
+
|
447
595
|
auto_renewal: true,
|
448
596
|
|
449
597
|
|
598
|
+
|
599
|
+
|
450
600
|
billed_date: "2022-07-05T15:17:05Z",
|
601
|
+
|
602
|
+
|
603
|
+
|
451
604
|
brand_id: "TS",
|
452
605
|
|
606
|
+
|
607
|
+
|
608
|
+
|
453
609
|
usecase: "TS",
|
454
610
|
|
611
|
+
|
612
|
+
|
455
613
|
sub_usecases: Array.new(),
|
456
614
|
|
615
|
+
|
616
|
+
|
617
|
+
|
457
618
|
description: "TS",
|
458
619
|
|
620
|
+
|
621
|
+
|
459
622
|
embedded_link: true,
|
460
623
|
|
624
|
+
|
625
|
+
|
461
626
|
embedded_phone: true,
|
462
627
|
|
628
|
+
|
629
|
+
|
463
630
|
affiliate_marketing: true,
|
464
631
|
|
632
|
+
|
633
|
+
|
465
634
|
number_pool: true,
|
466
635
|
|
636
|
+
|
637
|
+
|
467
638
|
age_gated: true,
|
468
639
|
|
640
|
+
|
641
|
+
|
469
642
|
direct_lending: true,
|
470
643
|
|
644
|
+
|
645
|
+
|
471
646
|
subscriber_optin: true,
|
472
647
|
|
648
|
+
|
649
|
+
|
473
650
|
subscriber_optout: true,
|
474
651
|
|
652
|
+
|
653
|
+
|
475
654
|
subscriber_help: true,
|
476
655
|
|
656
|
+
|
657
|
+
|
658
|
+
|
477
659
|
sample1: "TS",
|
478
660
|
|
661
|
+
|
662
|
+
|
663
|
+
|
479
664
|
sample2: "TS",
|
480
665
|
|
666
|
+
|
667
|
+
|
668
|
+
|
481
669
|
sample3: "TS",
|
482
670
|
|
671
|
+
|
672
|
+
|
673
|
+
|
483
674
|
sample4: "TS",
|
484
675
|
|
676
|
+
|
677
|
+
|
678
|
+
|
485
679
|
sample5: "TS",
|
486
680
|
|
681
|
+
|
682
|
+
|
683
|
+
|
487
684
|
message_flow: "TS",
|
488
685
|
|
686
|
+
|
687
|
+
|
688
|
+
|
489
689
|
help_message: "TS",
|
490
690
|
|
691
|
+
|
692
|
+
|
693
|
+
|
491
694
|
optin_keywords: "TS",
|
492
695
|
|
696
|
+
|
697
|
+
|
698
|
+
|
493
699
|
optout_keywords: "TS",
|
494
700
|
|
701
|
+
|
702
|
+
|
703
|
+
|
495
704
|
help_keywords: "TS",
|
496
705
|
|
706
|
+
|
707
|
+
|
708
|
+
|
497
709
|
optin_message: "TS",
|
498
710
|
|
711
|
+
|
712
|
+
|
713
|
+
|
499
714
|
optout_message: "TS",
|
500
715
|
|
716
|
+
|
717
|
+
|
718
|
+
|
501
719
|
reference_id: "TS",
|
502
720
|
|
721
|
+
|
722
|
+
|
503
723
|
mock: true,
|
504
724
|
|
505
725
|
|
726
|
+
|
727
|
+
|
506
728
|
next_renewal_or_expiration_date: "2000-01-01",
|
729
|
+
|
730
|
+
|
507
731
|
invalid_attribute: true
|
508
732
|
)}.to raise_error(ArgumentError)
|
509
733
|
end
|
510
734
|
it 'fails to initialize with invalid attribute' do
|
511
735
|
expect { instance = Freeclimb::SMSTenDLCCampaign.new(
|
736
|
+
|
512
737
|
account_id: "TS",
|
513
738
|
|
739
|
+
|
740
|
+
|
741
|
+
|
514
742
|
campaign_id: "TS",
|
515
743
|
|
744
|
+
|
745
|
+
|
746
|
+
|
516
747
|
csp_id: "TS",
|
517
748
|
|
749
|
+
|
750
|
+
|
751
|
+
|
518
752
|
reseller_id: "TS",
|
519
753
|
|
520
754
|
|
755
|
+
|
756
|
+
|
521
757
|
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
522
758
|
|
523
759
|
|
760
|
+
|
761
|
+
|
524
762
|
create_date: "2022-07-05T15:17:05Z",
|
763
|
+
|
764
|
+
|
525
765
|
auto_renewal: true,
|
526
766
|
|
527
767
|
|
768
|
+
|
769
|
+
|
528
770
|
billed_date: "2022-07-05T15:17:05Z",
|
529
|
-
brand_id: "TS",
|
530
771
|
|
531
|
-
usecase: "TS",
|
532
772
|
|
533
|
-
sub_usecases: Array.new(),
|
534
773
|
|
535
|
-
|
774
|
+
brand_id: "TS",
|
536
775
|
|
537
|
-
embedded_link: true,
|
538
776
|
|
539
|
-
embedded_phone: true,
|
540
777
|
|
541
|
-
affiliate_marketing: true,
|
542
778
|
|
543
|
-
|
779
|
+
usecase: "TS",
|
544
780
|
|
545
|
-
age_gated: true,
|
546
781
|
|
547
|
-
direct_lending: true,
|
548
782
|
|
549
|
-
|
783
|
+
sub_usecases: Array.new(),
|
784
|
+
|
785
|
+
|
786
|
+
|
787
|
+
|
788
|
+
description: "TS",
|
789
|
+
|
790
|
+
|
791
|
+
|
792
|
+
embedded_link: true,
|
793
|
+
|
794
|
+
|
795
|
+
|
796
|
+
embedded_phone: true,
|
797
|
+
|
798
|
+
|
799
|
+
|
800
|
+
affiliate_marketing: true,
|
801
|
+
|
802
|
+
|
803
|
+
|
804
|
+
number_pool: true,
|
805
|
+
|
806
|
+
|
807
|
+
|
808
|
+
age_gated: true,
|
809
|
+
|
810
|
+
|
811
|
+
|
812
|
+
direct_lending: true,
|
813
|
+
|
814
|
+
|
815
|
+
|
816
|
+
subscriber_optin: true,
|
817
|
+
|
818
|
+
|
819
|
+
|
820
|
+
subscriber_optout: true,
|
821
|
+
|
550
822
|
|
551
|
-
subscriber_optout: true,
|
552
823
|
|
553
824
|
subscriber_help: true,
|
554
825
|
|
826
|
+
|
827
|
+
|
828
|
+
|
555
829
|
sample1: "TS",
|
556
830
|
|
831
|
+
|
832
|
+
|
833
|
+
|
557
834
|
sample2: "TS",
|
558
835
|
|
836
|
+
|
837
|
+
|
838
|
+
|
559
839
|
sample3: "TS",
|
560
840
|
|
841
|
+
|
842
|
+
|
843
|
+
|
561
844
|
sample4: "TS",
|
562
845
|
|
846
|
+
|
847
|
+
|
848
|
+
|
563
849
|
sample5: "TS",
|
564
850
|
|
851
|
+
|
852
|
+
|
853
|
+
|
565
854
|
message_flow: "TS",
|
566
855
|
|
856
|
+
|
857
|
+
|
858
|
+
|
567
859
|
help_message: "TS",
|
568
860
|
|
861
|
+
|
862
|
+
|
863
|
+
|
569
864
|
optin_keywords: "TS",
|
570
865
|
|
866
|
+
|
867
|
+
|
868
|
+
|
571
869
|
optout_keywords: "TS",
|
572
870
|
|
871
|
+
|
872
|
+
|
873
|
+
|
573
874
|
help_keywords: "TS",
|
574
875
|
|
876
|
+
|
877
|
+
|
878
|
+
|
575
879
|
optin_message: "TS",
|
576
880
|
|
881
|
+
|
882
|
+
|
883
|
+
|
577
884
|
optout_message: "TS",
|
578
885
|
|
886
|
+
|
887
|
+
|
888
|
+
|
579
889
|
reference_id: "TS",
|
580
890
|
|
891
|
+
|
892
|
+
|
581
893
|
mock: true,
|
582
894
|
|
583
895
|
|
896
|
+
|
897
|
+
|
584
898
|
next_renewal_or_expiration_date: "2000-01-01",
|
899
|
+
|
900
|
+
|
585
901
|
invalid_attribute: true
|
586
902
|
)}.to raise_error(ArgumentError)
|
587
903
|
end
|
@@ -590,1124 +906,2462 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
590
906
|
describe 'test method "valid"' do
|
591
907
|
it 'checks if properties are valid' do
|
592
908
|
instance = Freeclimb::SMSTenDLCCampaign.new(
|
593
|
-
account_id: "TS",
|
594
909
|
|
595
|
-
|
910
|
+
account_id: "TS",
|
596
911
|
|
597
|
-
csp_id: "TS",
|
598
912
|
|
599
|
-
reseller_id: "TS",
|
600
913
|
|
601
914
|
|
602
|
-
|
915
|
+
campaign_id: "TS",
|
603
916
|
|
604
917
|
|
605
|
-
create_date: "2022-07-05T15:17:05Z",
|
606
|
-
auto_renewal: true,
|
607
918
|
|
608
919
|
|
609
|
-
|
610
|
-
brand_id: "TS",
|
920
|
+
csp_id: "TS",
|
611
921
|
|
612
|
-
usecase: "TS",
|
613
922
|
|
614
|
-
sub_usecases: Array.new(),
|
615
923
|
|
616
|
-
description: "TS",
|
617
924
|
|
618
|
-
|
925
|
+
reseller_id: "TS",
|
619
926
|
|
620
|
-
embedded_phone: true,
|
621
927
|
|
622
|
-
affiliate_marketing: true,
|
623
928
|
|
624
|
-
number_pool: true,
|
625
929
|
|
626
|
-
|
930
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
627
931
|
|
628
|
-
direct_lending: true,
|
629
932
|
|
630
|
-
subscriber_optin: true,
|
631
933
|
|
632
|
-
subscriber_optout: true,
|
633
934
|
|
634
|
-
|
935
|
+
create_date: "2022-07-05T15:17:05Z",
|
635
936
|
|
636
|
-
sample1: "TS",
|
637
937
|
|
638
|
-
|
938
|
+
auto_renewal: true,
|
639
939
|
|
640
|
-
sample3: "TS",
|
641
940
|
|
642
|
-
sample4: "TS",
|
643
941
|
|
644
|
-
sample5: "TS",
|
645
942
|
|
646
|
-
|
943
|
+
billed_date: "2022-07-05T15:17:05Z",
|
647
944
|
|
648
|
-
help_message: "TS",
|
649
945
|
|
650
|
-
optin_keywords: "TS",
|
651
946
|
|
652
|
-
|
947
|
+
brand_id: "TS",
|
653
948
|
|
654
|
-
help_keywords: "TS",
|
655
949
|
|
656
|
-
optin_message: "TS",
|
657
950
|
|
658
|
-
optout_message: "TS",
|
659
951
|
|
660
|
-
|
952
|
+
usecase: "TS",
|
661
953
|
|
662
|
-
mock: true,
|
663
954
|
|
664
955
|
|
665
|
-
|
666
|
-
)
|
667
|
-
expect(instance.valid?).to eq(true)
|
668
|
-
end
|
669
|
-
|
670
|
-
|
671
|
-
skip 'checks if properties are invalid' do
|
672
|
-
instance = Freeclimb::SMSTenDLCCampaign.new(
|
673
|
-
|
674
|
-
)
|
675
|
-
expect(instance.valid?).to eq(false)
|
676
|
-
end
|
677
|
-
|
678
|
-
end
|
679
|
-
|
680
|
-
describe 'test method "eql?"' do
|
681
|
-
it 'checks if objects are equal' do
|
682
|
-
obj = Object.new()
|
683
|
-
instance_1 = Freeclimb::SMSTenDLCCampaign.new(
|
684
|
-
account_id: "TS",
|
956
|
+
sub_usecases: Array.new(),
|
685
957
|
|
686
|
-
campaign_id: "TS",
|
687
958
|
|
688
|
-
csp_id: "TS",
|
689
959
|
|
690
|
-
reseller_id: "TS",
|
691
960
|
|
961
|
+
description: "TS",
|
692
962
|
|
693
|
-
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
694
963
|
|
695
964
|
|
696
|
-
|
965
|
+
embedded_link: true,
|
697
966
|
|
698
967
|
|
699
|
-
brand_id: "TS",
|
700
968
|
|
701
|
-
|
969
|
+
embedded_phone: true,
|
702
970
|
|
703
|
-
sub_usecases: [],
|
704
971
|
|
705
|
-
description: "TS",
|
706
972
|
|
707
|
-
|
973
|
+
affiliate_marketing: true,
|
708
974
|
|
709
|
-
embedded_phone: true,
|
710
975
|
|
711
|
-
affiliate_marketing: true,
|
712
976
|
|
713
977
|
number_pool: true,
|
714
978
|
|
715
|
-
age_gated: true,
|
716
979
|
|
717
|
-
direct_lending: true,
|
718
980
|
|
719
|
-
|
981
|
+
age_gated: true,
|
720
982
|
|
721
|
-
subscriber_optout: true,
|
722
983
|
|
723
|
-
subscriber_help: true,
|
724
984
|
|
725
|
-
|
985
|
+
direct_lending: true,
|
726
986
|
|
727
|
-
sample2: "TS",
|
728
987
|
|
729
|
-
sample3: "TS",
|
730
988
|
|
731
|
-
|
989
|
+
subscriber_optin: true,
|
732
990
|
|
733
|
-
sample5: "TS",
|
734
991
|
|
735
|
-
message_flow: "TS",
|
736
992
|
|
737
|
-
|
993
|
+
subscriber_optout: true,
|
738
994
|
|
739
|
-
optin_keywords: "TS",
|
740
995
|
|
741
|
-
optout_keywords: "TS",
|
742
996
|
|
743
|
-
|
997
|
+
subscriber_help: true,
|
744
998
|
|
745
|
-
optin_message: "TS",
|
746
999
|
|
747
|
-
optout_message: "TS",
|
748
1000
|
|
749
|
-
reference_id: "TS",
|
750
1001
|
|
751
|
-
|
1002
|
+
sample1: "TS",
|
752
1003
|
|
753
1004
|
|
754
|
-
)
|
755
|
-
instance_2 = Freeclimb::SMSTenDLCCampaign.new(
|
756
|
-
account_id: "TS",
|
757
1005
|
|
758
|
-
campaign_id: "TS",
|
759
1006
|
|
760
|
-
|
1007
|
+
sample2: "TS",
|
761
1008
|
|
762
|
-
reseller_id: "TS",
|
763
1009
|
|
764
1010
|
|
765
|
-
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
766
1011
|
|
1012
|
+
sample3: "TS",
|
767
1013
|
|
768
|
-
auto_renewal: true,
|
769
1014
|
|
770
1015
|
|
771
|
-
brand_id: "TS",
|
772
1016
|
|
773
|
-
|
1017
|
+
sample4: "TS",
|
774
1018
|
|
775
|
-
sub_usecases: [],
|
776
1019
|
|
777
|
-
description: "TS",
|
778
1020
|
|
779
|
-
embedded_link: true,
|
780
1021
|
|
781
|
-
|
1022
|
+
sample5: "TS",
|
782
1023
|
|
783
|
-
affiliate_marketing: true,
|
784
1024
|
|
785
|
-
number_pool: true,
|
786
1025
|
|
787
|
-
age_gated: true,
|
788
1026
|
|
789
|
-
|
1027
|
+
message_flow: "TS",
|
790
1028
|
|
791
|
-
subscriber_optin: true,
|
792
1029
|
|
793
|
-
subscriber_optout: true,
|
794
1030
|
|
795
|
-
subscriber_help: true,
|
796
1031
|
|
797
|
-
|
1032
|
+
help_message: "TS",
|
798
1033
|
|
799
|
-
sample2: "TS",
|
800
1034
|
|
801
|
-
sample3: "TS",
|
802
1035
|
|
803
|
-
sample4: "TS",
|
804
1036
|
|
805
|
-
|
1037
|
+
optin_keywords: "TS",
|
806
1038
|
|
807
|
-
message_flow: "TS",
|
808
1039
|
|
809
|
-
help_message: "TS",
|
810
1040
|
|
811
|
-
optin_keywords: "TS",
|
812
1041
|
|
813
1042
|
optout_keywords: "TS",
|
814
1043
|
|
815
|
-
help_keywords: "TS",
|
816
1044
|
|
817
|
-
optin_message: "TS",
|
818
1045
|
|
819
|
-
optout_message: "TS",
|
820
1046
|
|
821
|
-
|
1047
|
+
help_keywords: "TS",
|
822
1048
|
|
823
|
-
mock: true,
|
824
1049
|
|
825
1050
|
|
826
|
-
)
|
827
|
-
expect(instance_1.eql?(instance_2)).to eq(true)
|
828
|
-
end
|
829
|
-
|
830
|
-
it 'checks if objects are not equal' do
|
831
|
-
instance_1 = Freeclimb::SMSTenDLCCampaign.new(
|
832
|
-
account_id: "TS",
|
833
1051
|
|
834
|
-
|
1052
|
+
optin_message: "TS",
|
835
1053
|
|
836
|
-
csp_id: "TS",
|
837
1054
|
|
838
|
-
reseller_id: "TS",
|
839
1055
|
|
840
1056
|
|
841
|
-
|
1057
|
+
optout_message: "TS",
|
842
1058
|
|
843
1059
|
|
844
|
-
auto_renewal: true,
|
845
1060
|
|
846
1061
|
|
847
|
-
|
1062
|
+
reference_id: "TS",
|
848
1063
|
|
849
|
-
usecase: "TS",
|
850
1064
|
|
851
|
-
sub_usecases: [],
|
852
1065
|
|
853
|
-
|
1066
|
+
mock: true,
|
854
1067
|
|
855
|
-
embedded_link: true,
|
856
1068
|
|
857
|
-
embedded_phone: true,
|
858
1069
|
|
859
|
-
affiliate_marketing: true,
|
860
1070
|
|
861
|
-
|
1071
|
+
next_renewal_or_expiration_date: "2000-01-01",
|
1072
|
+
|
1073
|
+
|
1074
|
+
)
|
1075
|
+
expect(instance.valid?).to eq(true)
|
1076
|
+
end
|
1077
|
+
|
1078
|
+
|
1079
|
+
skip 'checks if properties are invalid' do
|
1080
|
+
instance = Freeclimb::SMSTenDLCCampaign.new(
|
1081
|
+
|
1082
|
+
)
|
1083
|
+
expect(instance.valid?).to eq(false)
|
1084
|
+
end
|
1085
|
+
|
1086
|
+
end
|
1087
|
+
|
1088
|
+
describe 'test method "eql?"' do
|
1089
|
+
it 'checks if objects are equal' do
|
1090
|
+
|
1091
|
+
|
1092
|
+
|
1093
|
+
|
1094
|
+
|
1095
|
+
|
1096
|
+
|
1097
|
+
|
1098
|
+
|
1099
|
+
|
1100
|
+
|
1101
|
+
|
1102
|
+
|
1103
|
+
|
1104
|
+
|
1105
|
+
|
1106
|
+
|
1107
|
+
|
1108
|
+
|
1109
|
+
|
1110
|
+
|
1111
|
+
|
1112
|
+
|
1113
|
+
|
1114
|
+
|
1115
|
+
|
1116
|
+
|
1117
|
+
|
1118
|
+
|
1119
|
+
|
1120
|
+
|
1121
|
+
|
1122
|
+
|
1123
|
+
|
1124
|
+
|
1125
|
+
|
1126
|
+
instance_1 = Freeclimb::SMSTenDLCCampaign.new(
|
1127
|
+
|
1128
|
+
account_id: "TS",
|
1129
|
+
|
1130
|
+
|
1131
|
+
|
1132
|
+
|
1133
|
+
campaign_id: "TS",
|
1134
|
+
|
1135
|
+
|
1136
|
+
|
1137
|
+
|
1138
|
+
csp_id: "TS",
|
1139
|
+
|
1140
|
+
|
1141
|
+
|
1142
|
+
|
1143
|
+
reseller_id: "TS",
|
1144
|
+
|
1145
|
+
|
1146
|
+
|
1147
|
+
|
1148
|
+
|
1149
|
+
|
1150
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
1151
|
+
|
1152
|
+
|
1153
|
+
|
1154
|
+
|
1155
|
+
auto_renewal: true,
|
1156
|
+
|
1157
|
+
|
1158
|
+
|
1159
|
+
|
1160
|
+
|
1161
|
+
|
1162
|
+
|
1163
|
+
brand_id: "TS",
|
1164
|
+
|
1165
|
+
|
1166
|
+
|
1167
|
+
|
1168
|
+
usecase: "TS",
|
1169
|
+
|
1170
|
+
|
1171
|
+
|
1172
|
+
|
1173
|
+
|
1174
|
+
sub_usecases: [],
|
1175
|
+
|
1176
|
+
|
1177
|
+
description: "TS",
|
1178
|
+
|
1179
|
+
|
1180
|
+
|
1181
|
+
embedded_link: true,
|
1182
|
+
|
1183
|
+
|
1184
|
+
|
1185
|
+
embedded_phone: true,
|
1186
|
+
|
1187
|
+
|
1188
|
+
|
1189
|
+
affiliate_marketing: true,
|
1190
|
+
|
1191
|
+
|
1192
|
+
|
1193
|
+
number_pool: true,
|
1194
|
+
|
1195
|
+
|
862
1196
|
|
863
1197
|
age_gated: true,
|
864
1198
|
|
1199
|
+
|
1200
|
+
|
865
1201
|
direct_lending: true,
|
866
1202
|
|
1203
|
+
|
1204
|
+
|
867
1205
|
subscriber_optin: true,
|
868
1206
|
|
1207
|
+
|
1208
|
+
|
869
1209
|
subscriber_optout: true,
|
870
1210
|
|
1211
|
+
|
1212
|
+
|
871
1213
|
subscriber_help: true,
|
872
1214
|
|
1215
|
+
|
1216
|
+
|
1217
|
+
|
873
1218
|
sample1: "TS",
|
874
1219
|
|
1220
|
+
|
1221
|
+
|
1222
|
+
|
875
1223
|
sample2: "TS",
|
876
1224
|
|
1225
|
+
|
1226
|
+
|
1227
|
+
|
877
1228
|
sample3: "TS",
|
878
1229
|
|
1230
|
+
|
1231
|
+
|
1232
|
+
|
879
1233
|
sample4: "TS",
|
880
1234
|
|
1235
|
+
|
1236
|
+
|
1237
|
+
|
881
1238
|
sample5: "TS",
|
882
1239
|
|
1240
|
+
|
1241
|
+
|
1242
|
+
|
883
1243
|
message_flow: "TS",
|
884
1244
|
|
1245
|
+
|
1246
|
+
|
1247
|
+
|
885
1248
|
help_message: "TS",
|
886
1249
|
|
1250
|
+
|
1251
|
+
|
1252
|
+
|
887
1253
|
optin_keywords: "TS",
|
888
1254
|
|
1255
|
+
|
1256
|
+
|
1257
|
+
|
889
1258
|
optout_keywords: "TS",
|
890
1259
|
|
1260
|
+
|
1261
|
+
|
1262
|
+
|
891
1263
|
help_keywords: "TS",
|
892
1264
|
|
1265
|
+
|
1266
|
+
|
1267
|
+
|
893
1268
|
optin_message: "TS",
|
894
1269
|
|
1270
|
+
|
1271
|
+
|
1272
|
+
|
895
1273
|
optout_message: "TS",
|
896
1274
|
|
1275
|
+
|
1276
|
+
|
1277
|
+
|
897
1278
|
reference_id: "TS",
|
898
1279
|
|
1280
|
+
|
1281
|
+
|
899
1282
|
mock: true,
|
900
1283
|
|
901
1284
|
|
1285
|
+
|
1286
|
+
|
1287
|
+
|
1288
|
+
|
902
1289
|
)
|
903
1290
|
instance_2 = Freeclimb::SMSTenDLCCampaign.new(
|
904
|
-
account_id: "ST",
|
905
1291
|
|
906
|
-
|
1292
|
+
account_id: "TS",
|
907
1293
|
|
908
|
-
csp_id: "ST",
|
909
1294
|
|
910
|
-
reseller_id: "ST",
|
911
1295
|
|
912
1296
|
|
913
|
-
|
1297
|
+
campaign_id: "TS",
|
914
1298
|
|
915
1299
|
|
916
|
-
auto_renewal: false,
|
917
1300
|
|
918
1301
|
|
919
|
-
|
1302
|
+
csp_id: "TS",
|
920
1303
|
|
921
|
-
usecase: "ST",
|
922
1304
|
|
923
|
-
sub_usecases: nil,
|
924
1305
|
|
925
|
-
description: "ST",
|
926
1306
|
|
927
|
-
|
1307
|
+
reseller_id: "TS",
|
928
1308
|
|
929
|
-
embedded_phone: false,
|
930
1309
|
|
931
|
-
affiliate_marketing: false,
|
932
1310
|
|
933
|
-
number_pool: false,
|
934
1311
|
|
935
|
-
age_gated: false,
|
936
1312
|
|
937
|
-
direct_lending: false,
|
938
1313
|
|
939
|
-
|
1314
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
940
1315
|
|
941
|
-
subscriber_optout: false,
|
942
1316
|
|
943
|
-
subscriber_help: false,
|
944
1317
|
|
945
|
-
sample1: "ST",
|
946
1318
|
|
947
|
-
|
1319
|
+
auto_renewal: true,
|
948
1320
|
|
949
|
-
sample3: "ST",
|
950
1321
|
|
951
|
-
sample4: "ST",
|
952
1322
|
|
953
|
-
sample5: "ST",
|
954
1323
|
|
955
|
-
message_flow: "ST",
|
956
1324
|
|
957
|
-
help_message: "ST",
|
958
1325
|
|
959
|
-
optin_keywords: "ST",
|
960
1326
|
|
961
|
-
|
1327
|
+
brand_id: "TS",
|
962
1328
|
|
963
|
-
help_keywords: "ST",
|
964
1329
|
|
965
|
-
optin_message: "ST",
|
966
1330
|
|
967
|
-
optout_message: "ST",
|
968
1331
|
|
969
|
-
|
1332
|
+
usecase: "TS",
|
970
1333
|
|
971
|
-
mock: false,
|
972
1334
|
|
973
1335
|
|
974
|
-
|
975
|
-
|
1336
|
+
|
1337
|
+
|
1338
|
+
sub_usecases: [],
|
1339
|
+
|
1340
|
+
|
1341
|
+
description: "TS",
|
1342
|
+
|
1343
|
+
|
1344
|
+
|
1345
|
+
embedded_link: true,
|
1346
|
+
|
1347
|
+
|
1348
|
+
|
1349
|
+
embedded_phone: true,
|
1350
|
+
|
1351
|
+
|
1352
|
+
|
1353
|
+
affiliate_marketing: true,
|
1354
|
+
|
1355
|
+
|
1356
|
+
|
1357
|
+
number_pool: true,
|
1358
|
+
|
1359
|
+
|
1360
|
+
|
1361
|
+
age_gated: true,
|
1362
|
+
|
1363
|
+
|
1364
|
+
|
1365
|
+
direct_lending: true,
|
1366
|
+
|
1367
|
+
|
1368
|
+
|
1369
|
+
subscriber_optin: true,
|
1370
|
+
|
1371
|
+
|
1372
|
+
|
1373
|
+
subscriber_optout: true,
|
1374
|
+
|
1375
|
+
|
1376
|
+
|
1377
|
+
subscriber_help: true,
|
1378
|
+
|
1379
|
+
|
1380
|
+
|
1381
|
+
|
1382
|
+
sample1: "TS",
|
1383
|
+
|
1384
|
+
|
1385
|
+
|
1386
|
+
|
1387
|
+
sample2: "TS",
|
1388
|
+
|
1389
|
+
|
1390
|
+
|
1391
|
+
|
1392
|
+
sample3: "TS",
|
1393
|
+
|
1394
|
+
|
1395
|
+
|
1396
|
+
|
1397
|
+
sample4: "TS",
|
1398
|
+
|
1399
|
+
|
1400
|
+
|
1401
|
+
|
1402
|
+
sample5: "TS",
|
1403
|
+
|
1404
|
+
|
1405
|
+
|
1406
|
+
|
1407
|
+
message_flow: "TS",
|
1408
|
+
|
1409
|
+
|
1410
|
+
|
1411
|
+
|
1412
|
+
help_message: "TS",
|
1413
|
+
|
1414
|
+
|
1415
|
+
|
1416
|
+
|
1417
|
+
optin_keywords: "TS",
|
1418
|
+
|
1419
|
+
|
1420
|
+
|
1421
|
+
|
1422
|
+
optout_keywords: "TS",
|
1423
|
+
|
1424
|
+
|
1425
|
+
|
1426
|
+
|
1427
|
+
help_keywords: "TS",
|
1428
|
+
|
1429
|
+
|
1430
|
+
|
1431
|
+
|
1432
|
+
optin_message: "TS",
|
1433
|
+
|
1434
|
+
|
1435
|
+
|
1436
|
+
|
1437
|
+
optout_message: "TS",
|
1438
|
+
|
1439
|
+
|
1440
|
+
|
1441
|
+
|
1442
|
+
reference_id: "TS",
|
1443
|
+
|
1444
|
+
|
1445
|
+
|
1446
|
+
mock: true,
|
1447
|
+
|
1448
|
+
|
1449
|
+
|
1450
|
+
|
1451
|
+
|
1452
|
+
|
1453
|
+
)
|
1454
|
+
expect(instance_1.eql?(instance_2)).to eq(true)
|
1455
|
+
end
|
1456
|
+
|
1457
|
+
it 'checks if objects are not equal' do
|
1458
|
+
instance_1 = Freeclimb::SMSTenDLCCampaign.new(
|
1459
|
+
|
1460
|
+
account_id: "TS",
|
1461
|
+
|
1462
|
+
|
1463
|
+
|
1464
|
+
|
1465
|
+
campaign_id: "TS",
|
1466
|
+
|
1467
|
+
|
1468
|
+
|
1469
|
+
|
1470
|
+
csp_id: "TS",
|
1471
|
+
|
1472
|
+
|
1473
|
+
|
1474
|
+
|
1475
|
+
reseller_id: "TS",
|
1476
|
+
|
1477
|
+
|
1478
|
+
|
1479
|
+
|
1480
|
+
|
1481
|
+
|
1482
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
1483
|
+
|
1484
|
+
|
1485
|
+
|
1486
|
+
|
1487
|
+
auto_renewal: true,
|
1488
|
+
|
1489
|
+
|
1490
|
+
|
1491
|
+
|
1492
|
+
|
1493
|
+
|
1494
|
+
|
1495
|
+
brand_id: "TS",
|
1496
|
+
|
1497
|
+
|
1498
|
+
|
1499
|
+
|
1500
|
+
usecase: "TS",
|
1501
|
+
|
1502
|
+
|
1503
|
+
|
1504
|
+
|
1505
|
+
|
1506
|
+
sub_usecases: [],
|
1507
|
+
|
1508
|
+
|
1509
|
+
description: "TS",
|
1510
|
+
|
1511
|
+
|
1512
|
+
|
1513
|
+
embedded_link: true,
|
1514
|
+
|
1515
|
+
|
1516
|
+
|
1517
|
+
embedded_phone: true,
|
1518
|
+
|
1519
|
+
|
1520
|
+
|
1521
|
+
affiliate_marketing: true,
|
1522
|
+
|
1523
|
+
|
1524
|
+
|
1525
|
+
number_pool: true,
|
1526
|
+
|
1527
|
+
|
1528
|
+
|
1529
|
+
age_gated: true,
|
1530
|
+
|
1531
|
+
|
1532
|
+
|
1533
|
+
direct_lending: true,
|
1534
|
+
|
1535
|
+
|
1536
|
+
|
1537
|
+
subscriber_optin: true,
|
1538
|
+
|
1539
|
+
|
1540
|
+
|
1541
|
+
subscriber_optout: true,
|
1542
|
+
|
1543
|
+
|
1544
|
+
|
1545
|
+
subscriber_help: true,
|
1546
|
+
|
1547
|
+
|
1548
|
+
|
1549
|
+
|
1550
|
+
sample1: "TS",
|
1551
|
+
|
1552
|
+
|
1553
|
+
|
1554
|
+
|
1555
|
+
sample2: "TS",
|
1556
|
+
|
1557
|
+
|
1558
|
+
|
1559
|
+
|
1560
|
+
sample3: "TS",
|
1561
|
+
|
1562
|
+
|
1563
|
+
|
1564
|
+
|
1565
|
+
sample4: "TS",
|
1566
|
+
|
1567
|
+
|
1568
|
+
|
1569
|
+
|
1570
|
+
sample5: "TS",
|
1571
|
+
|
1572
|
+
|
1573
|
+
|
1574
|
+
|
1575
|
+
message_flow: "TS",
|
1576
|
+
|
1577
|
+
|
1578
|
+
|
1579
|
+
|
1580
|
+
help_message: "TS",
|
1581
|
+
|
1582
|
+
|
1583
|
+
|
1584
|
+
|
1585
|
+
optin_keywords: "TS",
|
1586
|
+
|
1587
|
+
|
1588
|
+
|
1589
|
+
|
1590
|
+
optout_keywords: "TS",
|
1591
|
+
|
1592
|
+
|
1593
|
+
|
1594
|
+
|
1595
|
+
help_keywords: "TS",
|
1596
|
+
|
1597
|
+
|
1598
|
+
|
1599
|
+
|
1600
|
+
optin_message: "TS",
|
1601
|
+
|
1602
|
+
|
1603
|
+
|
1604
|
+
|
1605
|
+
optout_message: "TS",
|
1606
|
+
|
1607
|
+
|
1608
|
+
|
1609
|
+
|
1610
|
+
reference_id: "TS",
|
1611
|
+
|
1612
|
+
|
1613
|
+
|
1614
|
+
mock: true,
|
1615
|
+
|
1616
|
+
|
1617
|
+
|
1618
|
+
|
1619
|
+
|
1620
|
+
|
1621
|
+
)
|
1622
|
+
instance_2 = Freeclimb::SMSTenDLCCampaign.new(
|
1623
|
+
|
1624
|
+
account_id: "ST",
|
1625
|
+
|
1626
|
+
|
1627
|
+
|
1628
|
+
|
1629
|
+
campaign_id: "ST",
|
1630
|
+
|
1631
|
+
|
1632
|
+
|
1633
|
+
|
1634
|
+
csp_id: "ST",
|
1635
|
+
|
1636
|
+
|
1637
|
+
|
1638
|
+
|
1639
|
+
reseller_id: "ST",
|
1640
|
+
|
1641
|
+
|
1642
|
+
|
1643
|
+
|
1644
|
+
|
1645
|
+
|
1646
|
+
status: nil,
|
1647
|
+
|
1648
|
+
|
1649
|
+
|
1650
|
+
|
1651
|
+
auto_renewal: false,
|
1652
|
+
|
1653
|
+
|
1654
|
+
|
1655
|
+
|
1656
|
+
|
1657
|
+
|
1658
|
+
|
1659
|
+
brand_id: "ST",
|
1660
|
+
|
1661
|
+
|
1662
|
+
|
1663
|
+
|
1664
|
+
usecase: "ST",
|
1665
|
+
|
1666
|
+
|
1667
|
+
|
1668
|
+
|
1669
|
+
|
1670
|
+
sub_usecases: nil,
|
1671
|
+
|
1672
|
+
|
1673
|
+
description: "ST",
|
1674
|
+
|
1675
|
+
|
1676
|
+
|
1677
|
+
embedded_link: false,
|
1678
|
+
|
1679
|
+
|
1680
|
+
|
1681
|
+
embedded_phone: false,
|
1682
|
+
|
1683
|
+
|
1684
|
+
|
1685
|
+
affiliate_marketing: false,
|
1686
|
+
|
1687
|
+
|
1688
|
+
|
1689
|
+
number_pool: false,
|
1690
|
+
|
1691
|
+
|
1692
|
+
|
1693
|
+
age_gated: false,
|
1694
|
+
|
1695
|
+
|
1696
|
+
|
1697
|
+
direct_lending: false,
|
1698
|
+
|
1699
|
+
|
1700
|
+
|
1701
|
+
subscriber_optin: false,
|
1702
|
+
|
1703
|
+
|
1704
|
+
|
1705
|
+
subscriber_optout: false,
|
1706
|
+
|
1707
|
+
|
1708
|
+
|
1709
|
+
subscriber_help: false,
|
1710
|
+
|
1711
|
+
|
1712
|
+
|
1713
|
+
|
1714
|
+
sample1: "ST",
|
1715
|
+
|
1716
|
+
|
1717
|
+
|
1718
|
+
|
1719
|
+
sample2: "ST",
|
1720
|
+
|
1721
|
+
|
1722
|
+
|
1723
|
+
|
1724
|
+
sample3: "ST",
|
1725
|
+
|
1726
|
+
|
1727
|
+
|
1728
|
+
|
1729
|
+
sample4: "ST",
|
1730
|
+
|
1731
|
+
|
1732
|
+
|
1733
|
+
|
1734
|
+
sample5: "ST",
|
1735
|
+
|
1736
|
+
|
1737
|
+
|
1738
|
+
|
1739
|
+
message_flow: "ST",
|
1740
|
+
|
1741
|
+
|
1742
|
+
|
1743
|
+
|
1744
|
+
help_message: "ST",
|
1745
|
+
|
1746
|
+
|
1747
|
+
|
1748
|
+
|
1749
|
+
optin_keywords: "ST",
|
1750
|
+
|
1751
|
+
|
1752
|
+
|
1753
|
+
|
1754
|
+
optout_keywords: "ST",
|
1755
|
+
|
1756
|
+
|
1757
|
+
|
1758
|
+
|
1759
|
+
help_keywords: "ST",
|
1760
|
+
|
1761
|
+
|
1762
|
+
|
1763
|
+
|
1764
|
+
optin_message: "ST",
|
1765
|
+
|
1766
|
+
|
1767
|
+
|
1768
|
+
|
1769
|
+
optout_message: "ST",
|
1770
|
+
|
1771
|
+
|
1772
|
+
|
1773
|
+
|
1774
|
+
reference_id: "ST",
|
1775
|
+
|
1776
|
+
|
1777
|
+
|
1778
|
+
mock: false,
|
1779
|
+
|
1780
|
+
|
1781
|
+
|
1782
|
+
|
1783
|
+
|
1784
|
+
|
1785
|
+
)
|
1786
|
+
expect(instance_1.eql?(instance_2)).to eq(false)
|
1787
|
+
end
|
1788
|
+
end
|
1789
|
+
|
1790
|
+
describe 'test method "hash"' do
|
1791
|
+
it 'calculates hash code' do
|
1792
|
+
instance = Freeclimb::SMSTenDLCCampaign.new(
|
1793
|
+
|
1794
|
+
account_id: "TS",
|
1795
|
+
|
1796
|
+
|
1797
|
+
|
1798
|
+
|
1799
|
+
campaign_id: "TS",
|
1800
|
+
|
1801
|
+
|
1802
|
+
|
1803
|
+
|
1804
|
+
csp_id: "TS",
|
1805
|
+
|
1806
|
+
|
1807
|
+
|
1808
|
+
|
1809
|
+
reseller_id: "TS",
|
1810
|
+
|
1811
|
+
|
1812
|
+
|
1813
|
+
|
1814
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
1815
|
+
|
1816
|
+
|
1817
|
+
|
1818
|
+
|
1819
|
+
create_date: "2022-07-05T15:17:05Z",
|
1820
|
+
|
1821
|
+
|
1822
|
+
auto_renewal: true,
|
1823
|
+
|
1824
|
+
|
1825
|
+
|
1826
|
+
|
1827
|
+
billed_date: "2022-07-05T15:17:05Z",
|
1828
|
+
|
1829
|
+
|
1830
|
+
|
1831
|
+
brand_id: "TS",
|
1832
|
+
|
1833
|
+
|
1834
|
+
|
1835
|
+
|
1836
|
+
usecase: "TS",
|
1837
|
+
|
1838
|
+
|
1839
|
+
|
1840
|
+
sub_usecases: Array.new(),
|
1841
|
+
|
1842
|
+
|
1843
|
+
|
1844
|
+
|
1845
|
+
description: "TS",
|
1846
|
+
|
1847
|
+
|
1848
|
+
|
1849
|
+
embedded_link: true,
|
1850
|
+
|
1851
|
+
|
1852
|
+
|
1853
|
+
embedded_phone: true,
|
1854
|
+
|
1855
|
+
|
1856
|
+
|
1857
|
+
affiliate_marketing: true,
|
1858
|
+
|
1859
|
+
|
1860
|
+
|
1861
|
+
number_pool: true,
|
1862
|
+
|
1863
|
+
|
1864
|
+
|
1865
|
+
age_gated: true,
|
1866
|
+
|
1867
|
+
|
1868
|
+
|
1869
|
+
direct_lending: true,
|
1870
|
+
|
1871
|
+
|
1872
|
+
|
1873
|
+
subscriber_optin: true,
|
1874
|
+
|
1875
|
+
|
1876
|
+
|
1877
|
+
subscriber_optout: true,
|
1878
|
+
|
1879
|
+
|
1880
|
+
|
1881
|
+
subscriber_help: true,
|
1882
|
+
|
1883
|
+
|
1884
|
+
|
1885
|
+
|
1886
|
+
sample1: "TS",
|
1887
|
+
|
1888
|
+
|
1889
|
+
|
1890
|
+
|
1891
|
+
sample2: "TS",
|
1892
|
+
|
1893
|
+
|
1894
|
+
|
1895
|
+
|
1896
|
+
sample3: "TS",
|
1897
|
+
|
1898
|
+
|
1899
|
+
|
1900
|
+
|
1901
|
+
sample4: "TS",
|
1902
|
+
|
1903
|
+
|
1904
|
+
|
1905
|
+
|
1906
|
+
sample5: "TS",
|
1907
|
+
|
1908
|
+
|
1909
|
+
|
1910
|
+
|
1911
|
+
message_flow: "TS",
|
1912
|
+
|
1913
|
+
|
1914
|
+
|
1915
|
+
|
1916
|
+
help_message: "TS",
|
1917
|
+
|
1918
|
+
|
1919
|
+
|
1920
|
+
|
1921
|
+
optin_keywords: "TS",
|
1922
|
+
|
1923
|
+
|
1924
|
+
|
1925
|
+
|
1926
|
+
optout_keywords: "TS",
|
1927
|
+
|
1928
|
+
|
1929
|
+
|
1930
|
+
|
1931
|
+
help_keywords: "TS",
|
1932
|
+
|
1933
|
+
|
1934
|
+
|
1935
|
+
|
1936
|
+
optin_message: "TS",
|
1937
|
+
|
1938
|
+
|
1939
|
+
|
1940
|
+
|
1941
|
+
optout_message: "TS",
|
1942
|
+
|
1943
|
+
|
1944
|
+
|
1945
|
+
|
1946
|
+
reference_id: "TS",
|
1947
|
+
|
1948
|
+
|
1949
|
+
|
1950
|
+
mock: true,
|
1951
|
+
|
1952
|
+
|
1953
|
+
|
1954
|
+
|
1955
|
+
next_renewal_or_expiration_date: "2000-01-01",
|
1956
|
+
|
1957
|
+
|
1958
|
+
)
|
1959
|
+
expect(instance.hash).to be_a_kind_of(Integer)
|
1960
|
+
end
|
1961
|
+
end
|
1962
|
+
|
1963
|
+
describe 'test method "build_from_hash"' do
|
1964
|
+
it 'builds equivalent model from hash code' do
|
1965
|
+
instance_1 = Freeclimb::SMSTenDLCCampaign.new(
|
1966
|
+
|
1967
|
+
account_id: "TS",
|
1968
|
+
|
1969
|
+
|
1970
|
+
|
1971
|
+
|
1972
|
+
campaign_id: "TS",
|
1973
|
+
|
1974
|
+
|
1975
|
+
|
1976
|
+
|
1977
|
+
csp_id: "TS",
|
1978
|
+
|
1979
|
+
|
1980
|
+
|
1981
|
+
|
1982
|
+
reseller_id: "TS",
|
1983
|
+
|
1984
|
+
|
1985
|
+
|
1986
|
+
|
1987
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
1988
|
+
|
1989
|
+
|
1990
|
+
|
1991
|
+
|
1992
|
+
create_date: "2022-07-05T15:17:05Z",
|
1993
|
+
|
1994
|
+
|
1995
|
+
auto_renewal: true,
|
1996
|
+
|
1997
|
+
|
1998
|
+
|
1999
|
+
|
2000
|
+
billed_date: "2022-07-05T15:17:05Z",
|
2001
|
+
|
2002
|
+
|
2003
|
+
|
2004
|
+
brand_id: "TS",
|
2005
|
+
|
2006
|
+
|
2007
|
+
|
2008
|
+
|
2009
|
+
usecase: "TS",
|
2010
|
+
|
2011
|
+
|
2012
|
+
|
2013
|
+
sub_usecases: Array.new(),
|
2014
|
+
|
2015
|
+
|
2016
|
+
|
2017
|
+
|
2018
|
+
description: "TS",
|
2019
|
+
|
2020
|
+
|
2021
|
+
|
2022
|
+
embedded_link: true,
|
2023
|
+
|
2024
|
+
|
2025
|
+
|
2026
|
+
embedded_phone: true,
|
2027
|
+
|
2028
|
+
|
2029
|
+
|
2030
|
+
affiliate_marketing: true,
|
2031
|
+
|
2032
|
+
|
2033
|
+
|
2034
|
+
number_pool: true,
|
2035
|
+
|
2036
|
+
|
2037
|
+
|
2038
|
+
age_gated: true,
|
2039
|
+
|
2040
|
+
|
2041
|
+
|
2042
|
+
direct_lending: true,
|
2043
|
+
|
2044
|
+
|
2045
|
+
|
2046
|
+
subscriber_optin: true,
|
2047
|
+
|
2048
|
+
|
2049
|
+
|
2050
|
+
subscriber_optout: true,
|
2051
|
+
|
2052
|
+
|
2053
|
+
|
2054
|
+
subscriber_help: true,
|
2055
|
+
|
2056
|
+
|
2057
|
+
|
2058
|
+
|
2059
|
+
sample1: "TS",
|
2060
|
+
|
2061
|
+
|
2062
|
+
|
2063
|
+
|
2064
|
+
sample2: "TS",
|
2065
|
+
|
2066
|
+
|
2067
|
+
|
2068
|
+
|
2069
|
+
sample3: "TS",
|
2070
|
+
|
2071
|
+
|
2072
|
+
|
2073
|
+
|
2074
|
+
sample4: "TS",
|
2075
|
+
|
2076
|
+
|
2077
|
+
|
2078
|
+
|
2079
|
+
sample5: "TS",
|
2080
|
+
|
2081
|
+
|
2082
|
+
|
2083
|
+
|
2084
|
+
message_flow: "TS",
|
2085
|
+
|
2086
|
+
|
2087
|
+
|
2088
|
+
|
2089
|
+
help_message: "TS",
|
2090
|
+
|
2091
|
+
|
2092
|
+
|
2093
|
+
|
2094
|
+
optin_keywords: "TS",
|
2095
|
+
|
2096
|
+
|
2097
|
+
|
2098
|
+
|
2099
|
+
optout_keywords: "TS",
|
2100
|
+
|
2101
|
+
|
2102
|
+
|
2103
|
+
|
2104
|
+
help_keywords: "TS",
|
2105
|
+
|
2106
|
+
|
2107
|
+
|
2108
|
+
|
2109
|
+
optin_message: "TS",
|
2110
|
+
|
2111
|
+
|
2112
|
+
|
2113
|
+
|
2114
|
+
optout_message: "TS",
|
2115
|
+
|
2116
|
+
|
2117
|
+
|
2118
|
+
|
2119
|
+
reference_id: "TS",
|
2120
|
+
|
2121
|
+
|
2122
|
+
|
2123
|
+
mock: true,
|
2124
|
+
|
2125
|
+
|
2126
|
+
|
2127
|
+
|
2128
|
+
next_renewal_or_expiration_date: "2000-01-01",
|
2129
|
+
|
2130
|
+
|
2131
|
+
)
|
2132
|
+
instance_2 = Freeclimb::SMSTenDLCCampaign.new(
|
2133
|
+
|
2134
|
+
account_id: "TS",
|
2135
|
+
|
2136
|
+
|
2137
|
+
|
2138
|
+
|
2139
|
+
campaign_id: "TS",
|
2140
|
+
|
2141
|
+
|
2142
|
+
|
2143
|
+
|
2144
|
+
csp_id: "TS",
|
2145
|
+
|
2146
|
+
|
2147
|
+
|
2148
|
+
|
2149
|
+
reseller_id: "TS",
|
2150
|
+
|
2151
|
+
|
2152
|
+
|
2153
|
+
|
2154
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
2155
|
+
|
2156
|
+
|
2157
|
+
|
2158
|
+
|
2159
|
+
create_date: "2022-07-05T15:17:05Z",
|
2160
|
+
|
2161
|
+
|
2162
|
+
auto_renewal: true,
|
2163
|
+
|
2164
|
+
|
2165
|
+
|
2166
|
+
|
2167
|
+
billed_date: "2022-07-05T15:17:05Z",
|
2168
|
+
|
2169
|
+
|
2170
|
+
|
2171
|
+
brand_id: "TS",
|
2172
|
+
|
2173
|
+
|
2174
|
+
|
2175
|
+
|
2176
|
+
usecase: "TS",
|
2177
|
+
|
2178
|
+
|
2179
|
+
|
2180
|
+
sub_usecases: Array.new(),
|
2181
|
+
|
2182
|
+
|
2183
|
+
|
2184
|
+
|
2185
|
+
description: "TS",
|
2186
|
+
|
2187
|
+
|
2188
|
+
|
2189
|
+
embedded_link: true,
|
2190
|
+
|
2191
|
+
|
2192
|
+
|
2193
|
+
embedded_phone: true,
|
2194
|
+
|
2195
|
+
|
2196
|
+
|
2197
|
+
affiliate_marketing: true,
|
2198
|
+
|
2199
|
+
|
2200
|
+
|
2201
|
+
number_pool: true,
|
2202
|
+
|
2203
|
+
|
2204
|
+
|
2205
|
+
age_gated: true,
|
2206
|
+
|
2207
|
+
|
2208
|
+
|
2209
|
+
direct_lending: true,
|
2210
|
+
|
2211
|
+
|
2212
|
+
|
2213
|
+
subscriber_optin: true,
|
2214
|
+
|
2215
|
+
|
2216
|
+
|
2217
|
+
subscriber_optout: true,
|
2218
|
+
|
2219
|
+
|
2220
|
+
|
2221
|
+
subscriber_help: true,
|
2222
|
+
|
2223
|
+
|
2224
|
+
|
2225
|
+
|
2226
|
+
sample1: "TS",
|
2227
|
+
|
2228
|
+
|
2229
|
+
|
2230
|
+
|
2231
|
+
sample2: "TS",
|
2232
|
+
|
2233
|
+
|
2234
|
+
|
2235
|
+
|
2236
|
+
sample3: "TS",
|
2237
|
+
|
2238
|
+
|
2239
|
+
|
2240
|
+
|
2241
|
+
sample4: "TS",
|
2242
|
+
|
2243
|
+
|
2244
|
+
|
2245
|
+
|
2246
|
+
sample5: "TS",
|
2247
|
+
|
2248
|
+
|
2249
|
+
|
2250
|
+
|
2251
|
+
message_flow: "TS",
|
2252
|
+
|
2253
|
+
|
2254
|
+
|
2255
|
+
|
2256
|
+
help_message: "TS",
|
2257
|
+
|
2258
|
+
|
2259
|
+
|
2260
|
+
|
2261
|
+
optin_keywords: "TS",
|
2262
|
+
|
2263
|
+
|
2264
|
+
|
2265
|
+
|
2266
|
+
optout_keywords: "TS",
|
2267
|
+
|
2268
|
+
|
2269
|
+
|
2270
|
+
|
2271
|
+
help_keywords: "TS",
|
2272
|
+
|
2273
|
+
|
2274
|
+
|
2275
|
+
|
2276
|
+
optin_message: "TS",
|
2277
|
+
|
2278
|
+
|
2279
|
+
|
2280
|
+
|
2281
|
+
optout_message: "TS",
|
2282
|
+
|
2283
|
+
|
2284
|
+
|
2285
|
+
|
2286
|
+
reference_id: "TS",
|
2287
|
+
|
2288
|
+
|
2289
|
+
|
2290
|
+
mock: true,
|
2291
|
+
|
2292
|
+
|
2293
|
+
|
2294
|
+
|
2295
|
+
next_renewal_or_expiration_date: "2000-01-01",
|
2296
|
+
|
2297
|
+
|
2298
|
+
)
|
2299
|
+
|
2300
|
+
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
2301
|
+
end
|
2302
|
+
end
|
2303
|
+
|
2304
|
+
describe 'test method "_deserialize"' do
|
2305
|
+
instance = Freeclimb::SMSTenDLCCampaign.new(
|
2306
|
+
|
2307
|
+
account_id: "TS",
|
2308
|
+
|
2309
|
+
|
2310
|
+
|
2311
|
+
|
2312
|
+
campaign_id: "TS",
|
2313
|
+
|
2314
|
+
|
2315
|
+
|
2316
|
+
|
2317
|
+
csp_id: "TS",
|
2318
|
+
|
2319
|
+
|
2320
|
+
|
2321
|
+
|
2322
|
+
reseller_id: "TS",
|
2323
|
+
|
2324
|
+
|
2325
|
+
|
2326
|
+
|
2327
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
2328
|
+
|
2329
|
+
|
2330
|
+
|
2331
|
+
|
2332
|
+
create_date: "2022-07-05T15:17:05Z",
|
2333
|
+
|
2334
|
+
|
2335
|
+
auto_renewal: true,
|
2336
|
+
|
2337
|
+
|
2338
|
+
|
2339
|
+
|
2340
|
+
billed_date: "2022-07-05T15:17:05Z",
|
2341
|
+
|
2342
|
+
|
2343
|
+
|
2344
|
+
brand_id: "TS",
|
2345
|
+
|
2346
|
+
|
2347
|
+
|
2348
|
+
|
2349
|
+
usecase: "TS",
|
2350
|
+
|
2351
|
+
|
2352
|
+
|
2353
|
+
sub_usecases: Array.new(),
|
2354
|
+
|
2355
|
+
|
2356
|
+
|
2357
|
+
|
2358
|
+
description: "TS",
|
2359
|
+
|
2360
|
+
|
2361
|
+
|
2362
|
+
embedded_link: true,
|
2363
|
+
|
2364
|
+
|
2365
|
+
|
2366
|
+
embedded_phone: true,
|
2367
|
+
|
2368
|
+
|
2369
|
+
|
2370
|
+
affiliate_marketing: true,
|
2371
|
+
|
2372
|
+
|
2373
|
+
|
2374
|
+
number_pool: true,
|
2375
|
+
|
2376
|
+
|
2377
|
+
|
2378
|
+
age_gated: true,
|
2379
|
+
|
2380
|
+
|
2381
|
+
|
2382
|
+
direct_lending: true,
|
2383
|
+
|
2384
|
+
|
2385
|
+
|
2386
|
+
subscriber_optin: true,
|
2387
|
+
|
2388
|
+
|
2389
|
+
|
2390
|
+
subscriber_optout: true,
|
2391
|
+
|
2392
|
+
|
2393
|
+
|
2394
|
+
subscriber_help: true,
|
2395
|
+
|
2396
|
+
|
2397
|
+
|
2398
|
+
|
2399
|
+
sample1: "TS",
|
2400
|
+
|
2401
|
+
|
2402
|
+
|
2403
|
+
|
2404
|
+
sample2: "TS",
|
2405
|
+
|
2406
|
+
|
2407
|
+
|
2408
|
+
|
2409
|
+
sample3: "TS",
|
2410
|
+
|
2411
|
+
|
2412
|
+
|
2413
|
+
|
2414
|
+
sample4: "TS",
|
2415
|
+
|
2416
|
+
|
2417
|
+
|
2418
|
+
|
2419
|
+
sample5: "TS",
|
2420
|
+
|
2421
|
+
|
2422
|
+
|
2423
|
+
|
2424
|
+
message_flow: "TS",
|
2425
|
+
|
2426
|
+
|
2427
|
+
|
2428
|
+
|
2429
|
+
help_message: "TS",
|
2430
|
+
|
2431
|
+
|
2432
|
+
|
2433
|
+
|
2434
|
+
optin_keywords: "TS",
|
2435
|
+
|
2436
|
+
|
2437
|
+
|
2438
|
+
|
2439
|
+
optout_keywords: "TS",
|
2440
|
+
|
2441
|
+
|
2442
|
+
|
2443
|
+
|
2444
|
+
help_keywords: "TS",
|
2445
|
+
|
2446
|
+
|
2447
|
+
|
2448
|
+
|
2449
|
+
optin_message: "TS",
|
2450
|
+
|
2451
|
+
|
2452
|
+
|
2453
|
+
|
2454
|
+
optout_message: "TS",
|
2455
|
+
|
2456
|
+
|
2457
|
+
|
2458
|
+
|
2459
|
+
reference_id: "TS",
|
2460
|
+
|
2461
|
+
|
2462
|
+
|
2463
|
+
mock: true,
|
2464
|
+
|
2465
|
+
|
2466
|
+
|
2467
|
+
|
2468
|
+
next_renewal_or_expiration_date: "2000-01-01",
|
2469
|
+
|
2470
|
+
|
2471
|
+
)
|
2472
|
+
it 'deserializes the data of account_id' do
|
2473
|
+
expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
|
2474
|
+
end
|
2475
|
+
|
2476
|
+
|
2477
|
+
it 'deserializes the data of campaign_id' do
|
2478
|
+
expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String)
|
2479
|
+
end
|
2480
|
+
|
2481
|
+
|
2482
|
+
it 'deserializes the data of csp_id' do
|
2483
|
+
expect(instance._deserialize("String", instance.csp_id)).to be_a_kind_of(String)
|
2484
|
+
end
|
2485
|
+
|
2486
|
+
|
2487
|
+
it 'deserializes the data of reseller_id' do
|
2488
|
+
expect(instance._deserialize("String", instance.reseller_id)).to be_a_kind_of(String)
|
2489
|
+
end
|
2490
|
+
|
2491
|
+
|
2492
|
+
|
2493
|
+
|
2494
|
+
it 'deserializes the data of create_date' do
|
2495
|
+
expect(instance._deserialize("Time", instance.create_date)).to be_a_kind_of(Time)
|
2496
|
+
end
|
2497
|
+
|
2498
|
+
|
2499
|
+
|
2500
|
+
|
2501
|
+
it 'deserializes the data of auto_renewal' do
|
2502
|
+
expect(instance._deserialize("Boolean", instance.auto_renewal)).to be_a_kind_of(TrueClass)
|
2503
|
+
end
|
2504
|
+
it 'deserializes the data of billed_date' do
|
2505
|
+
expect(instance._deserialize("Time", instance.billed_date)).to be_a_kind_of(Time)
|
2506
|
+
end
|
2507
|
+
|
2508
|
+
|
2509
|
+
it 'deserializes the data of brand_id' do
|
2510
|
+
expect(instance._deserialize("String", instance.brand_id)).to be_a_kind_of(String)
|
2511
|
+
end
|
2512
|
+
|
2513
|
+
|
2514
|
+
it 'deserializes the data of usecase' do
|
2515
|
+
expect(instance._deserialize("String", instance.usecase)).to be_a_kind_of(String)
|
2516
|
+
end
|
2517
|
+
|
2518
|
+
|
2519
|
+
it 'deserializes the data of sub_usecases' do
|
2520
|
+
expect(instance._deserialize("Array<String>", instance.sub_usecases)).to be_a_kind_of(Array)
|
2521
|
+
end
|
2522
|
+
|
2523
|
+
|
2524
|
+
it 'deserializes the data of description' do
|
2525
|
+
expect(instance._deserialize("String", instance.description)).to be_a_kind_of(String)
|
2526
|
+
end
|
2527
|
+
|
2528
|
+
|
2529
|
+
|
2530
|
+
|
2531
|
+
it 'deserializes the data of embedded_link' do
|
2532
|
+
expect(instance._deserialize("Boolean", instance.embedded_link)).to be_a_kind_of(TrueClass)
|
2533
|
+
end
|
2534
|
+
|
2535
|
+
|
2536
|
+
it 'deserializes the data of embedded_phone' do
|
2537
|
+
expect(instance._deserialize("Boolean", instance.embedded_phone)).to be_a_kind_of(TrueClass)
|
2538
|
+
end
|
2539
|
+
|
2540
|
+
|
2541
|
+
it 'deserializes the data of affiliate_marketing' do
|
2542
|
+
expect(instance._deserialize("Boolean", instance.affiliate_marketing)).to be_a_kind_of(TrueClass)
|
2543
|
+
end
|
2544
|
+
|
2545
|
+
|
2546
|
+
it 'deserializes the data of number_pool' do
|
2547
|
+
expect(instance._deserialize("Boolean", instance.number_pool)).to be_a_kind_of(TrueClass)
|
2548
|
+
end
|
2549
|
+
|
2550
|
+
|
2551
|
+
it 'deserializes the data of age_gated' do
|
2552
|
+
expect(instance._deserialize("Boolean", instance.age_gated)).to be_a_kind_of(TrueClass)
|
2553
|
+
end
|
2554
|
+
|
2555
|
+
|
2556
|
+
it 'deserializes the data of direct_lending' do
|
2557
|
+
expect(instance._deserialize("Boolean", instance.direct_lending)).to be_a_kind_of(TrueClass)
|
2558
|
+
end
|
2559
|
+
|
2560
|
+
|
2561
|
+
it 'deserializes the data of subscriber_optin' do
|
2562
|
+
expect(instance._deserialize("Boolean", instance.subscriber_optin)).to be_a_kind_of(TrueClass)
|
2563
|
+
end
|
2564
|
+
|
2565
|
+
|
2566
|
+
it 'deserializes the data of subscriber_optout' do
|
2567
|
+
expect(instance._deserialize("Boolean", instance.subscriber_optout)).to be_a_kind_of(TrueClass)
|
2568
|
+
end
|
2569
|
+
|
2570
|
+
|
2571
|
+
it 'deserializes the data of subscriber_help' do
|
2572
|
+
expect(instance._deserialize("Boolean", instance.subscriber_help)).to be_a_kind_of(TrueClass)
|
2573
|
+
end
|
2574
|
+
it 'deserializes the data of sample1' do
|
2575
|
+
expect(instance._deserialize("String", instance.sample1)).to be_a_kind_of(String)
|
2576
|
+
end
|
2577
|
+
|
2578
|
+
|
2579
|
+
it 'deserializes the data of sample2' do
|
2580
|
+
expect(instance._deserialize("String", instance.sample2)).to be_a_kind_of(String)
|
2581
|
+
end
|
2582
|
+
|
2583
|
+
|
2584
|
+
it 'deserializes the data of sample3' do
|
2585
|
+
expect(instance._deserialize("String", instance.sample3)).to be_a_kind_of(String)
|
2586
|
+
end
|
2587
|
+
|
2588
|
+
|
2589
|
+
it 'deserializes the data of sample4' do
|
2590
|
+
expect(instance._deserialize("String", instance.sample4)).to be_a_kind_of(String)
|
2591
|
+
end
|
2592
|
+
|
2593
|
+
|
2594
|
+
it 'deserializes the data of sample5' do
|
2595
|
+
expect(instance._deserialize("String", instance.sample5)).to be_a_kind_of(String)
|
2596
|
+
end
|
2597
|
+
|
2598
|
+
|
2599
|
+
it 'deserializes the data of message_flow' do
|
2600
|
+
expect(instance._deserialize("String", instance.message_flow)).to be_a_kind_of(String)
|
2601
|
+
end
|
2602
|
+
|
2603
|
+
|
2604
|
+
it 'deserializes the data of help_message' do
|
2605
|
+
expect(instance._deserialize("String", instance.help_message)).to be_a_kind_of(String)
|
2606
|
+
end
|
2607
|
+
|
2608
|
+
|
2609
|
+
it 'deserializes the data of optin_keywords' do
|
2610
|
+
expect(instance._deserialize("String", instance.optin_keywords)).to be_a_kind_of(String)
|
976
2611
|
end
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
affiliate_marketing: true,
|
1012
|
-
|
1013
|
-
number_pool: true,
|
1014
|
-
|
1015
|
-
age_gated: true,
|
1016
|
-
|
1017
|
-
direct_lending: true,
|
1018
|
-
|
1019
|
-
subscriber_optin: true,
|
1020
|
-
|
1021
|
-
subscriber_optout: true,
|
1022
|
-
|
1023
|
-
subscriber_help: true,
|
1024
|
-
|
1025
|
-
sample1: "TS",
|
1026
|
-
|
1027
|
-
sample2: "TS",
|
1028
|
-
|
1029
|
-
sample3: "TS",
|
1030
|
-
|
1031
|
-
sample4: "TS",
|
1032
|
-
|
1033
|
-
sample5: "TS",
|
1034
|
-
|
1035
|
-
message_flow: "TS",
|
1036
|
-
|
1037
|
-
help_message: "TS",
|
1038
|
-
|
1039
|
-
optin_keywords: "TS",
|
1040
|
-
|
1041
|
-
optout_keywords: "TS",
|
1042
|
-
|
1043
|
-
help_keywords: "TS",
|
1044
|
-
|
1045
|
-
optin_message: "TS",
|
1046
|
-
|
1047
|
-
optout_message: "TS",
|
1048
|
-
|
1049
|
-
reference_id: "TS",
|
1050
|
-
|
1051
|
-
mock: true,
|
1052
|
-
|
1053
|
-
|
1054
|
-
next_renewal_or_expiration_date: "2000-01-01",
|
1055
|
-
)
|
1056
|
-
expect(instance.hash).to be_a_kind_of(Integer)
|
2612
|
+
|
2613
|
+
|
2614
|
+
it 'deserializes the data of optout_keywords' do
|
2615
|
+
expect(instance._deserialize("String", instance.optout_keywords)).to be_a_kind_of(String)
|
2616
|
+
end
|
2617
|
+
|
2618
|
+
|
2619
|
+
it 'deserializes the data of help_keywords' do
|
2620
|
+
expect(instance._deserialize("String", instance.help_keywords)).to be_a_kind_of(String)
|
2621
|
+
end
|
2622
|
+
|
2623
|
+
|
2624
|
+
it 'deserializes the data of optin_message' do
|
2625
|
+
expect(instance._deserialize("String", instance.optin_message)).to be_a_kind_of(String)
|
2626
|
+
end
|
2627
|
+
|
2628
|
+
|
2629
|
+
it 'deserializes the data of optout_message' do
|
2630
|
+
expect(instance._deserialize("String", instance.optout_message)).to be_a_kind_of(String)
|
2631
|
+
end
|
2632
|
+
|
2633
|
+
|
2634
|
+
it 'deserializes the data of reference_id' do
|
2635
|
+
expect(instance._deserialize("String", instance.reference_id)).to be_a_kind_of(String)
|
2636
|
+
end
|
2637
|
+
|
2638
|
+
|
2639
|
+
|
2640
|
+
|
2641
|
+
it 'deserializes the data of mock' do
|
2642
|
+
expect(instance._deserialize("Boolean", instance.mock)).to be_a_kind_of(TrueClass)
|
2643
|
+
end
|
2644
|
+
it 'deserializes the data of next_renewal_or_expiration_date' do
|
2645
|
+
expect(instance._deserialize("Date", instance.next_renewal_or_expiration_date)).to be_a_kind_of(Date)
|
1057
2646
|
end
|
2647
|
+
|
2648
|
+
|
1058
2649
|
end
|
1059
2650
|
|
1060
|
-
describe 'test method "
|
1061
|
-
it '
|
1062
|
-
|
2651
|
+
describe 'test method "to_s"' do
|
2652
|
+
it 'returns the string representation of the object' do
|
2653
|
+
instance = Freeclimb::SMSTenDLCCampaign.new(
|
2654
|
+
|
1063
2655
|
account_id: "TS",
|
1064
2656
|
|
2657
|
+
|
2658
|
+
|
2659
|
+
|
1065
2660
|
campaign_id: "TS",
|
1066
2661
|
|
2662
|
+
|
2663
|
+
|
2664
|
+
|
1067
2665
|
csp_id: "TS",
|
1068
2666
|
|
2667
|
+
|
2668
|
+
|
2669
|
+
|
1069
2670
|
reseller_id: "TS",
|
1070
2671
|
|
1071
2672
|
|
2673
|
+
|
2674
|
+
|
1072
2675
|
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
1073
2676
|
|
1074
2677
|
|
2678
|
+
|
2679
|
+
|
1075
2680
|
create_date: "2022-07-05T15:17:05Z",
|
2681
|
+
|
2682
|
+
|
1076
2683
|
auto_renewal: true,
|
1077
2684
|
|
1078
2685
|
|
2686
|
+
|
2687
|
+
|
1079
2688
|
billed_date: "2022-07-05T15:17:05Z",
|
2689
|
+
|
2690
|
+
|
2691
|
+
|
1080
2692
|
brand_id: "TS",
|
1081
2693
|
|
2694
|
+
|
2695
|
+
|
2696
|
+
|
1082
2697
|
usecase: "TS",
|
1083
2698
|
|
2699
|
+
|
2700
|
+
|
1084
2701
|
sub_usecases: Array.new(),
|
1085
2702
|
|
2703
|
+
|
2704
|
+
|
2705
|
+
|
1086
2706
|
description: "TS",
|
1087
2707
|
|
2708
|
+
|
2709
|
+
|
1088
2710
|
embedded_link: true,
|
1089
2711
|
|
2712
|
+
|
2713
|
+
|
1090
2714
|
embedded_phone: true,
|
1091
2715
|
|
2716
|
+
|
2717
|
+
|
1092
2718
|
affiliate_marketing: true,
|
1093
2719
|
|
2720
|
+
|
2721
|
+
|
1094
2722
|
number_pool: true,
|
1095
2723
|
|
2724
|
+
|
2725
|
+
|
1096
2726
|
age_gated: true,
|
1097
2727
|
|
2728
|
+
|
2729
|
+
|
1098
2730
|
direct_lending: true,
|
1099
2731
|
|
2732
|
+
|
2733
|
+
|
1100
2734
|
subscriber_optin: true,
|
1101
2735
|
|
2736
|
+
|
2737
|
+
|
1102
2738
|
subscriber_optout: true,
|
1103
2739
|
|
2740
|
+
|
2741
|
+
|
1104
2742
|
subscriber_help: true,
|
1105
2743
|
|
2744
|
+
|
2745
|
+
|
2746
|
+
|
1106
2747
|
sample1: "TS",
|
1107
2748
|
|
2749
|
+
|
2750
|
+
|
2751
|
+
|
1108
2752
|
sample2: "TS",
|
1109
2753
|
|
2754
|
+
|
2755
|
+
|
2756
|
+
|
1110
2757
|
sample3: "TS",
|
1111
2758
|
|
2759
|
+
|
2760
|
+
|
2761
|
+
|
1112
2762
|
sample4: "TS",
|
1113
2763
|
|
2764
|
+
|
2765
|
+
|
2766
|
+
|
1114
2767
|
sample5: "TS",
|
1115
2768
|
|
2769
|
+
|
2770
|
+
|
2771
|
+
|
1116
2772
|
message_flow: "TS",
|
1117
2773
|
|
2774
|
+
|
2775
|
+
|
2776
|
+
|
1118
2777
|
help_message: "TS",
|
1119
2778
|
|
2779
|
+
|
2780
|
+
|
2781
|
+
|
1120
2782
|
optin_keywords: "TS",
|
1121
2783
|
|
2784
|
+
|
2785
|
+
|
2786
|
+
|
1122
2787
|
optout_keywords: "TS",
|
1123
2788
|
|
2789
|
+
|
2790
|
+
|
2791
|
+
|
1124
2792
|
help_keywords: "TS",
|
1125
2793
|
|
2794
|
+
|
2795
|
+
|
2796
|
+
|
1126
2797
|
optin_message: "TS",
|
1127
2798
|
|
2799
|
+
|
2800
|
+
|
2801
|
+
|
1128
2802
|
optout_message: "TS",
|
1129
2803
|
|
2804
|
+
|
2805
|
+
|
2806
|
+
|
1130
2807
|
reference_id: "TS",
|
1131
2808
|
|
2809
|
+
|
2810
|
+
|
1132
2811
|
mock: true,
|
1133
2812
|
|
1134
2813
|
|
2814
|
+
|
2815
|
+
|
1135
2816
|
next_renewal_or_expiration_date: "2000-01-01",
|
2817
|
+
|
2818
|
+
|
1136
2819
|
)
|
1137
|
-
|
2820
|
+
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
2821
|
+
end
|
2822
|
+
end
|
2823
|
+
|
2824
|
+
describe 'test method "to_hash"' do
|
2825
|
+
it 'returns the object in the form of hash' do
|
2826
|
+
instance = Freeclimb::SMSTenDLCCampaign.new(
|
2827
|
+
|
1138
2828
|
account_id: "TS",
|
1139
2829
|
|
2830
|
+
|
2831
|
+
|
2832
|
+
|
1140
2833
|
campaign_id: "TS",
|
1141
2834
|
|
2835
|
+
|
2836
|
+
|
2837
|
+
|
1142
2838
|
csp_id: "TS",
|
1143
2839
|
|
2840
|
+
|
2841
|
+
|
2842
|
+
|
1144
2843
|
reseller_id: "TS",
|
1145
2844
|
|
1146
2845
|
|
2846
|
+
|
2847
|
+
|
1147
2848
|
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
1148
2849
|
|
1149
2850
|
|
2851
|
+
|
2852
|
+
|
1150
2853
|
create_date: "2022-07-05T15:17:05Z",
|
2854
|
+
|
2855
|
+
|
1151
2856
|
auto_renewal: true,
|
1152
2857
|
|
1153
2858
|
|
2859
|
+
|
2860
|
+
|
1154
2861
|
billed_date: "2022-07-05T15:17:05Z",
|
2862
|
+
|
2863
|
+
|
2864
|
+
|
1155
2865
|
brand_id: "TS",
|
1156
2866
|
|
2867
|
+
|
2868
|
+
|
2869
|
+
|
1157
2870
|
usecase: "TS",
|
1158
2871
|
|
1159
|
-
|
2872
|
+
|
2873
|
+
|
2874
|
+
sub_usecases: Array.new(),
|
2875
|
+
|
2876
|
+
|
2877
|
+
|
1160
2878
|
|
1161
2879
|
description: "TS",
|
1162
2880
|
|
2881
|
+
|
2882
|
+
|
1163
2883
|
embedded_link: true,
|
1164
2884
|
|
2885
|
+
|
2886
|
+
|
1165
2887
|
embedded_phone: true,
|
1166
2888
|
|
2889
|
+
|
2890
|
+
|
1167
2891
|
affiliate_marketing: true,
|
1168
2892
|
|
2893
|
+
|
2894
|
+
|
1169
2895
|
number_pool: true,
|
1170
2896
|
|
2897
|
+
|
2898
|
+
|
1171
2899
|
age_gated: true,
|
1172
2900
|
|
2901
|
+
|
2902
|
+
|
1173
2903
|
direct_lending: true,
|
1174
2904
|
|
2905
|
+
|
2906
|
+
|
1175
2907
|
subscriber_optin: true,
|
1176
2908
|
|
1177
|
-
subscriber_optout: true,
|
1178
2909
|
|
1179
|
-
subscriber_help: true,
|
1180
2910
|
|
1181
|
-
|
2911
|
+
subscriber_optout: true,
|
1182
2912
|
|
1183
|
-
sample2: "TS",
|
1184
2913
|
|
1185
|
-
sample3: "TS",
|
1186
2914
|
|
1187
|
-
|
2915
|
+
subscriber_help: true,
|
1188
2916
|
|
1189
|
-
sample5: "TS",
|
1190
2917
|
|
1191
|
-
message_flow: "TS",
|
1192
2918
|
|
1193
|
-
help_message: "TS",
|
1194
2919
|
|
1195
|
-
|
2920
|
+
sample1: "TS",
|
1196
2921
|
|
1197
|
-
optout_keywords: "TS",
|
1198
2922
|
|
1199
|
-
help_keywords: "TS",
|
1200
2923
|
|
1201
|
-
optin_message: "TS",
|
1202
2924
|
|
1203
|
-
|
2925
|
+
sample2: "TS",
|
1204
2926
|
|
1205
|
-
reference_id: "TS",
|
1206
2927
|
|
1207
|
-
mock: true,
|
1208
2928
|
|
1209
2929
|
|
1210
|
-
|
1211
|
-
)
|
1212
|
-
|
1213
|
-
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
1214
|
-
end
|
1215
|
-
end
|
1216
|
-
|
1217
|
-
describe 'test method "_deserialize"' do
|
1218
|
-
instance = Freeclimb::SMSTenDLCCampaign.new(
|
1219
|
-
account_id: "TS",
|
2930
|
+
sample3: "TS",
|
1220
2931
|
|
1221
|
-
campaign_id: "TS",
|
1222
2932
|
|
1223
|
-
csp_id: "TS",
|
1224
2933
|
|
1225
|
-
reseller_id: "TS",
|
1226
2934
|
|
2935
|
+
sample4: "TS",
|
1227
2936
|
|
1228
|
-
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
1229
2937
|
|
1230
2938
|
|
1231
|
-
create_date: "2022-07-05T15:17:05Z",
|
1232
|
-
auto_renewal: true,
|
1233
2939
|
|
2940
|
+
sample5: "TS",
|
1234
2941
|
|
1235
|
-
billed_date: "2022-07-05T15:17:05Z",
|
1236
|
-
brand_id: "TS",
|
1237
2942
|
|
1238
|
-
usecase: "TS",
|
1239
2943
|
|
1240
|
-
sub_usecases: Array.new(),
|
1241
2944
|
|
1242
|
-
|
2945
|
+
message_flow: "TS",
|
1243
2946
|
|
1244
|
-
embedded_link: true,
|
1245
2947
|
|
1246
|
-
embedded_phone: true,
|
1247
2948
|
|
1248
|
-
affiliate_marketing: true,
|
1249
2949
|
|
1250
|
-
|
2950
|
+
help_message: "TS",
|
1251
2951
|
|
1252
|
-
age_gated: true,
|
1253
2952
|
|
1254
|
-
direct_lending: true,
|
1255
2953
|
|
1256
|
-
subscriber_optin: true,
|
1257
2954
|
|
1258
|
-
|
2955
|
+
optin_keywords: "TS",
|
1259
2956
|
|
1260
|
-
subscriber_help: true,
|
1261
2957
|
|
1262
|
-
sample1: "TS",
|
1263
2958
|
|
1264
|
-
sample2: "TS",
|
1265
2959
|
|
1266
|
-
|
2960
|
+
optout_keywords: "TS",
|
1267
2961
|
|
1268
|
-
sample4: "TS",
|
1269
2962
|
|
1270
|
-
sample5: "TS",
|
1271
2963
|
|
1272
|
-
message_flow: "TS",
|
1273
2964
|
|
1274
|
-
|
2965
|
+
help_keywords: "TS",
|
1275
2966
|
|
1276
|
-
optin_keywords: "TS",
|
1277
2967
|
|
1278
|
-
optout_keywords: "TS",
|
1279
2968
|
|
1280
|
-
help_keywords: "TS",
|
1281
2969
|
|
1282
2970
|
optin_message: "TS",
|
1283
2971
|
|
2972
|
+
|
2973
|
+
|
2974
|
+
|
1284
2975
|
optout_message: "TS",
|
1285
2976
|
|
2977
|
+
|
2978
|
+
|
2979
|
+
|
1286
2980
|
reference_id: "TS",
|
1287
2981
|
|
2982
|
+
|
2983
|
+
|
1288
2984
|
mock: true,
|
1289
2985
|
|
1290
2986
|
|
2987
|
+
|
2988
|
+
|
1291
2989
|
next_renewal_or_expiration_date: "2000-01-01",
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
it 'deserializes the data of campaign_id' do
|
1297
|
-
expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String)
|
1298
|
-
end
|
1299
|
-
it 'deserializes the data of csp_id' do
|
1300
|
-
expect(instance._deserialize("String", instance.csp_id)).to be_a_kind_of(String)
|
1301
|
-
end
|
1302
|
-
it 'deserializes the data of reseller_id' do
|
1303
|
-
expect(instance._deserialize("String", instance.reseller_id)).to be_a_kind_of(String)
|
1304
|
-
end
|
1305
|
-
it 'deserializes the data of create_date' do
|
1306
|
-
expect(instance._deserialize("Time", instance.create_date)).to be_a_kind_of(Time)
|
1307
|
-
end
|
1308
|
-
it 'deserializes the data of auto_renewal' do
|
1309
|
-
expect(instance._deserialize("Boolean", instance.auto_renewal)).to be_a_kind_of(TrueClass)
|
1310
|
-
end
|
1311
|
-
it 'deserializes the data of billed_date' do
|
1312
|
-
expect(instance._deserialize("Time", instance.billed_date)).to be_a_kind_of(Time)
|
1313
|
-
end
|
1314
|
-
it 'deserializes the data of brand_id' do
|
1315
|
-
expect(instance._deserialize("String", instance.brand_id)).to be_a_kind_of(String)
|
1316
|
-
end
|
1317
|
-
it 'deserializes the data of usecase' do
|
1318
|
-
expect(instance._deserialize("String", instance.usecase)).to be_a_kind_of(String)
|
1319
|
-
end
|
1320
|
-
it 'deserializes the data of sub_usecases' do
|
1321
|
-
expect(instance._deserialize("Array<String>", instance.sub_usecases)).to be_a_kind_of(Array)
|
1322
|
-
end
|
1323
|
-
it 'deserializes the data of description' do
|
1324
|
-
expect(instance._deserialize("String", instance.description)).to be_a_kind_of(String)
|
1325
|
-
end
|
1326
|
-
it 'deserializes the data of embedded_link' do
|
1327
|
-
expect(instance._deserialize("Boolean", instance.embedded_link)).to be_a_kind_of(TrueClass)
|
1328
|
-
end
|
1329
|
-
it 'deserializes the data of embedded_phone' do
|
1330
|
-
expect(instance._deserialize("Boolean", instance.embedded_phone)).to be_a_kind_of(TrueClass)
|
1331
|
-
end
|
1332
|
-
it 'deserializes the data of affiliate_marketing' do
|
1333
|
-
expect(instance._deserialize("Boolean", instance.affiliate_marketing)).to be_a_kind_of(TrueClass)
|
1334
|
-
end
|
1335
|
-
it 'deserializes the data of number_pool' do
|
1336
|
-
expect(instance._deserialize("Boolean", instance.number_pool)).to be_a_kind_of(TrueClass)
|
1337
|
-
end
|
1338
|
-
it 'deserializes the data of age_gated' do
|
1339
|
-
expect(instance._deserialize("Boolean", instance.age_gated)).to be_a_kind_of(TrueClass)
|
1340
|
-
end
|
1341
|
-
it 'deserializes the data of direct_lending' do
|
1342
|
-
expect(instance._deserialize("Boolean", instance.direct_lending)).to be_a_kind_of(TrueClass)
|
1343
|
-
end
|
1344
|
-
it 'deserializes the data of subscriber_optin' do
|
1345
|
-
expect(instance._deserialize("Boolean", instance.subscriber_optin)).to be_a_kind_of(TrueClass)
|
1346
|
-
end
|
1347
|
-
it 'deserializes the data of subscriber_optout' do
|
1348
|
-
expect(instance._deserialize("Boolean", instance.subscriber_optout)).to be_a_kind_of(TrueClass)
|
1349
|
-
end
|
1350
|
-
it 'deserializes the data of subscriber_help' do
|
1351
|
-
expect(instance._deserialize("Boolean", instance.subscriber_help)).to be_a_kind_of(TrueClass)
|
1352
|
-
end
|
1353
|
-
it 'deserializes the data of sample1' do
|
1354
|
-
expect(instance._deserialize("String", instance.sample1)).to be_a_kind_of(String)
|
1355
|
-
end
|
1356
|
-
it 'deserializes the data of sample2' do
|
1357
|
-
expect(instance._deserialize("String", instance.sample2)).to be_a_kind_of(String)
|
1358
|
-
end
|
1359
|
-
it 'deserializes the data of sample3' do
|
1360
|
-
expect(instance._deserialize("String", instance.sample3)).to be_a_kind_of(String)
|
1361
|
-
end
|
1362
|
-
it 'deserializes the data of sample4' do
|
1363
|
-
expect(instance._deserialize("String", instance.sample4)).to be_a_kind_of(String)
|
1364
|
-
end
|
1365
|
-
it 'deserializes the data of sample5' do
|
1366
|
-
expect(instance._deserialize("String", instance.sample5)).to be_a_kind_of(String)
|
1367
|
-
end
|
1368
|
-
it 'deserializes the data of message_flow' do
|
1369
|
-
expect(instance._deserialize("String", instance.message_flow)).to be_a_kind_of(String)
|
1370
|
-
end
|
1371
|
-
it 'deserializes the data of help_message' do
|
1372
|
-
expect(instance._deserialize("String", instance.help_message)).to be_a_kind_of(String)
|
1373
|
-
end
|
1374
|
-
it 'deserializes the data of optin_keywords' do
|
1375
|
-
expect(instance._deserialize("String", instance.optin_keywords)).to be_a_kind_of(String)
|
1376
|
-
end
|
1377
|
-
it 'deserializes the data of optout_keywords' do
|
1378
|
-
expect(instance._deserialize("String", instance.optout_keywords)).to be_a_kind_of(String)
|
1379
|
-
end
|
1380
|
-
it 'deserializes the data of help_keywords' do
|
1381
|
-
expect(instance._deserialize("String", instance.help_keywords)).to be_a_kind_of(String)
|
1382
|
-
end
|
1383
|
-
it 'deserializes the data of optin_message' do
|
1384
|
-
expect(instance._deserialize("String", instance.optin_message)).to be_a_kind_of(String)
|
1385
|
-
end
|
1386
|
-
it 'deserializes the data of optout_message' do
|
1387
|
-
expect(instance._deserialize("String", instance.optout_message)).to be_a_kind_of(String)
|
1388
|
-
end
|
1389
|
-
it 'deserializes the data of reference_id' do
|
1390
|
-
expect(instance._deserialize("String", instance.reference_id)).to be_a_kind_of(String)
|
1391
|
-
end
|
1392
|
-
it 'deserializes the data of mock' do
|
1393
|
-
expect(instance._deserialize("Boolean", instance.mock)).to be_a_kind_of(TrueClass)
|
1394
|
-
end
|
1395
|
-
it 'deserializes the data of next_renewal_or_expiration_date' do
|
1396
|
-
expect(instance._deserialize("Date", instance.next_renewal_or_expiration_date)).to be_a_kind_of(Date)
|
2990
|
+
|
2991
|
+
|
2992
|
+
)
|
2993
|
+
expect(instance.to_hash).to be_a_kind_of(Hash)
|
1397
2994
|
end
|
1398
|
-
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
2995
|
+
it 'creates equal hash for two equal objects' do
|
2996
|
+
|
2997
|
+
|
2998
|
+
|
2999
|
+
|
3000
|
+
|
3001
|
+
|
3002
|
+
|
3003
|
+
|
3004
|
+
|
3005
|
+
|
3006
|
+
|
3007
|
+
|
3008
|
+
|
3009
|
+
|
3010
|
+
|
3011
|
+
|
3012
|
+
|
3013
|
+
|
3014
|
+
|
3015
|
+
|
3016
|
+
|
3017
|
+
|
3018
|
+
|
3019
|
+
|
3020
|
+
|
3021
|
+
|
3022
|
+
|
3023
|
+
|
3024
|
+
|
3025
|
+
|
3026
|
+
|
3027
|
+
|
3028
|
+
|
3029
|
+
|
3030
|
+
|
3031
|
+
|
3032
|
+
instance_1 = Freeclimb::SMSTenDLCCampaign.new(
|
3033
|
+
|
1403
3034
|
account_id: "TS",
|
1404
3035
|
|
3036
|
+
|
3037
|
+
|
3038
|
+
|
1405
3039
|
campaign_id: "TS",
|
1406
3040
|
|
1407
|
-
|
3041
|
+
|
3042
|
+
|
3043
|
+
|
3044
|
+
csp_id: "TS",
|
3045
|
+
|
3046
|
+
|
3047
|
+
|
1408
3048
|
|
1409
3049
|
reseller_id: "TS",
|
1410
3050
|
|
1411
3051
|
|
3052
|
+
|
3053
|
+
|
1412
3054
|
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
1413
3055
|
|
1414
3056
|
|
3057
|
+
|
3058
|
+
|
1415
3059
|
create_date: "2022-07-05T15:17:05Z",
|
3060
|
+
|
3061
|
+
|
1416
3062
|
auto_renewal: true,
|
1417
3063
|
|
1418
3064
|
|
3065
|
+
|
3066
|
+
|
1419
3067
|
billed_date: "2022-07-05T15:17:05Z",
|
3068
|
+
|
3069
|
+
|
3070
|
+
|
1420
3071
|
brand_id: "TS",
|
1421
3072
|
|
3073
|
+
|
3074
|
+
|
3075
|
+
|
1422
3076
|
usecase: "TS",
|
1423
3077
|
|
3078
|
+
|
3079
|
+
|
1424
3080
|
sub_usecases: Array.new(),
|
1425
3081
|
|
3082
|
+
|
3083
|
+
|
3084
|
+
|
1426
3085
|
description: "TS",
|
1427
3086
|
|
3087
|
+
|
3088
|
+
|
1428
3089
|
embedded_link: true,
|
1429
3090
|
|
3091
|
+
|
3092
|
+
|
1430
3093
|
embedded_phone: true,
|
1431
3094
|
|
3095
|
+
|
3096
|
+
|
1432
3097
|
affiliate_marketing: true,
|
1433
3098
|
|
3099
|
+
|
3100
|
+
|
1434
3101
|
number_pool: true,
|
1435
3102
|
|
3103
|
+
|
3104
|
+
|
1436
3105
|
age_gated: true,
|
1437
3106
|
|
3107
|
+
|
3108
|
+
|
1438
3109
|
direct_lending: true,
|
1439
3110
|
|
3111
|
+
|
3112
|
+
|
1440
3113
|
subscriber_optin: true,
|
1441
3114
|
|
1442
|
-
subscriber_optout: true,
|
1443
3115
|
|
1444
|
-
subscriber_help: true,
|
1445
3116
|
|
1446
|
-
|
3117
|
+
subscriber_optout: true,
|
1447
3118
|
|
1448
|
-
sample2: "TS",
|
1449
3119
|
|
1450
|
-
sample3: "TS",
|
1451
3120
|
|
1452
|
-
|
3121
|
+
subscriber_help: true,
|
1453
3122
|
|
1454
|
-
sample5: "TS",
|
1455
3123
|
|
1456
|
-
message_flow: "TS",
|
1457
3124
|
|
1458
|
-
help_message: "TS",
|
1459
3125
|
|
1460
|
-
|
3126
|
+
sample1: "TS",
|
1461
3127
|
|
1462
|
-
optout_keywords: "TS",
|
1463
3128
|
|
1464
|
-
help_keywords: "TS",
|
1465
3129
|
|
1466
|
-
optin_message: "TS",
|
1467
3130
|
|
1468
|
-
|
3131
|
+
sample2: "TS",
|
1469
3132
|
|
1470
|
-
reference_id: "TS",
|
1471
3133
|
|
1472
|
-
mock: true,
|
1473
3134
|
|
1474
3135
|
|
1475
|
-
|
1476
|
-
)
|
1477
|
-
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
1478
|
-
end
|
1479
|
-
end
|
1480
|
-
|
1481
|
-
describe 'test method "to_hash"' do
|
1482
|
-
it 'returns the object in the form of hash' do
|
1483
|
-
instance = Freeclimb::SMSTenDLCCampaign.new(
|
1484
|
-
account_id: "TS",
|
3136
|
+
sample3: "TS",
|
1485
3137
|
|
1486
|
-
campaign_id: "TS",
|
1487
3138
|
|
1488
|
-
csp_id: "TS",
|
1489
3139
|
|
1490
|
-
reseller_id: "TS",
|
1491
3140
|
|
3141
|
+
sample4: "TS",
|
1492
3142
|
|
1493
|
-
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
1494
3143
|
|
1495
3144
|
|
1496
|
-
create_date: "2022-07-05T15:17:05Z",
|
1497
|
-
auto_renewal: true,
|
1498
3145
|
|
3146
|
+
sample5: "TS",
|
1499
3147
|
|
1500
|
-
billed_date: "2022-07-05T15:17:05Z",
|
1501
|
-
brand_id: "TS",
|
1502
3148
|
|
1503
|
-
usecase: "TS",
|
1504
3149
|
|
1505
|
-
sub_usecases: Array.new(),
|
1506
3150
|
|
1507
|
-
|
3151
|
+
message_flow: "TS",
|
1508
3152
|
|
1509
|
-
embedded_link: true,
|
1510
3153
|
|
1511
|
-
embedded_phone: true,
|
1512
3154
|
|
1513
|
-
affiliate_marketing: true,
|
1514
3155
|
|
1515
|
-
|
3156
|
+
help_message: "TS",
|
1516
3157
|
|
1517
|
-
age_gated: true,
|
1518
3158
|
|
1519
|
-
direct_lending: true,
|
1520
3159
|
|
1521
|
-
subscriber_optin: true,
|
1522
3160
|
|
1523
|
-
|
3161
|
+
optin_keywords: "TS",
|
1524
3162
|
|
1525
|
-
subscriber_help: true,
|
1526
3163
|
|
1527
|
-
sample1: "TS",
|
1528
3164
|
|
1529
|
-
sample2: "TS",
|
1530
3165
|
|
1531
|
-
|
3166
|
+
optout_keywords: "TS",
|
1532
3167
|
|
1533
|
-
sample4: "TS",
|
1534
3168
|
|
1535
|
-
sample5: "TS",
|
1536
3169
|
|
1537
|
-
message_flow: "TS",
|
1538
3170
|
|
1539
|
-
|
3171
|
+
help_keywords: "TS",
|
1540
3172
|
|
1541
|
-
optin_keywords: "TS",
|
1542
3173
|
|
1543
|
-
optout_keywords: "TS",
|
1544
3174
|
|
1545
|
-
help_keywords: "TS",
|
1546
3175
|
|
1547
3176
|
optin_message: "TS",
|
1548
3177
|
|
3178
|
+
|
3179
|
+
|
3180
|
+
|
1549
3181
|
optout_message: "TS",
|
1550
3182
|
|
3183
|
+
|
3184
|
+
|
3185
|
+
|
1551
3186
|
reference_id: "TS",
|
1552
3187
|
|
3188
|
+
|
3189
|
+
|
1553
3190
|
mock: true,
|
1554
3191
|
|
1555
3192
|
|
3193
|
+
|
3194
|
+
|
1556
3195
|
next_renewal_or_expiration_date: "2000-01-01",
|
3196
|
+
|
3197
|
+
|
1557
3198
|
)
|
1558
|
-
|
1559
|
-
|
1560
|
-
it 'creates equal hash for two equal objects' do
|
1561
|
-
obj = Object.new()
|
1562
|
-
instance_1 = Freeclimb::SMSTenDLCCampaign.new(
|
3199
|
+
instance_2 = Freeclimb::SMSTenDLCCampaign.new(
|
3200
|
+
|
1563
3201
|
account_id: "TS",
|
1564
3202
|
|
3203
|
+
|
3204
|
+
|
3205
|
+
|
1565
3206
|
campaign_id: "TS",
|
1566
3207
|
|
3208
|
+
|
3209
|
+
|
3210
|
+
|
1567
3211
|
csp_id: "TS",
|
1568
3212
|
|
3213
|
+
|
3214
|
+
|
3215
|
+
|
1569
3216
|
reseller_id: "TS",
|
1570
3217
|
|
1571
3218
|
|
3219
|
+
|
3220
|
+
|
1572
3221
|
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
1573
3222
|
|
1574
3223
|
|
3224
|
+
|
3225
|
+
|
1575
3226
|
create_date: "2022-07-05T15:17:05Z",
|
3227
|
+
|
3228
|
+
|
1576
3229
|
auto_renewal: true,
|
1577
3230
|
|
1578
3231
|
|
3232
|
+
|
3233
|
+
|
1579
3234
|
billed_date: "2022-07-05T15:17:05Z",
|
3235
|
+
|
3236
|
+
|
3237
|
+
|
1580
3238
|
brand_id: "TS",
|
1581
3239
|
|
3240
|
+
|
3241
|
+
|
3242
|
+
|
1582
3243
|
usecase: "TS",
|
1583
3244
|
|
3245
|
+
|
3246
|
+
|
1584
3247
|
sub_usecases: Array.new(),
|
1585
3248
|
|
3249
|
+
|
3250
|
+
|
3251
|
+
|
1586
3252
|
description: "TS",
|
1587
3253
|
|
3254
|
+
|
3255
|
+
|
1588
3256
|
embedded_link: true,
|
1589
3257
|
|
3258
|
+
|
3259
|
+
|
1590
3260
|
embedded_phone: true,
|
1591
3261
|
|
3262
|
+
|
3263
|
+
|
1592
3264
|
affiliate_marketing: true,
|
1593
3265
|
|
3266
|
+
|
3267
|
+
|
1594
3268
|
number_pool: true,
|
1595
3269
|
|
3270
|
+
|
3271
|
+
|
1596
3272
|
age_gated: true,
|
1597
3273
|
|
3274
|
+
|
3275
|
+
|
1598
3276
|
direct_lending: true,
|
1599
3277
|
|
3278
|
+
|
3279
|
+
|
1600
3280
|
subscriber_optin: true,
|
1601
3281
|
|
1602
|
-
subscriber_optout: true,
|
1603
3282
|
|
1604
|
-
subscriber_help: true,
|
1605
3283
|
|
1606
|
-
|
3284
|
+
subscriber_optout: true,
|
1607
3285
|
|
1608
|
-
sample2: "TS",
|
1609
3286
|
|
1610
|
-
sample3: "TS",
|
1611
3287
|
|
1612
|
-
|
3288
|
+
subscriber_help: true,
|
1613
3289
|
|
1614
|
-
sample5: "TS",
|
1615
3290
|
|
1616
|
-
message_flow: "TS",
|
1617
3291
|
|
1618
|
-
help_message: "TS",
|
1619
3292
|
|
1620
|
-
|
3293
|
+
sample1: "TS",
|
1621
3294
|
|
1622
|
-
optout_keywords: "TS",
|
1623
3295
|
|
1624
|
-
help_keywords: "TS",
|
1625
3296
|
|
1626
|
-
optin_message: "TS",
|
1627
3297
|
|
1628
|
-
|
3298
|
+
sample2: "TS",
|
1629
3299
|
|
1630
|
-
reference_id: "TS",
|
1631
3300
|
|
1632
|
-
mock: true,
|
1633
3301
|
|
1634
3302
|
|
1635
|
-
|
1636
|
-
)
|
1637
|
-
instance_2 = Freeclimb::SMSTenDLCCampaign.new(
|
1638
|
-
account_id: "TS",
|
3303
|
+
sample3: "TS",
|
1639
3304
|
|
1640
|
-
campaign_id: "TS",
|
1641
3305
|
|
1642
|
-
csp_id: "TS",
|
1643
3306
|
|
1644
|
-
reseller_id: "TS",
|
1645
3307
|
|
3308
|
+
sample4: "TS",
|
1646
3309
|
|
1647
|
-
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
1648
3310
|
|
1649
3311
|
|
1650
|
-
create_date: "2022-07-05T15:17:05Z",
|
1651
|
-
auto_renewal: true,
|
1652
3312
|
|
3313
|
+
sample5: "TS",
|
1653
3314
|
|
1654
|
-
billed_date: "2022-07-05T15:17:05Z",
|
1655
|
-
brand_id: "TS",
|
1656
3315
|
|
1657
|
-
usecase: "TS",
|
1658
3316
|
|
1659
|
-
sub_usecases: Array.new(),
|
1660
3317
|
|
1661
|
-
|
3318
|
+
message_flow: "TS",
|
1662
3319
|
|
1663
|
-
embedded_link: true,
|
1664
3320
|
|
1665
|
-
embedded_phone: true,
|
1666
3321
|
|
1667
|
-
affiliate_marketing: true,
|
1668
3322
|
|
1669
|
-
|
3323
|
+
help_message: "TS",
|
1670
3324
|
|
1671
|
-
age_gated: true,
|
1672
3325
|
|
1673
|
-
direct_lending: true,
|
1674
3326
|
|
1675
|
-
subscriber_optin: true,
|
1676
3327
|
|
1677
|
-
|
3328
|
+
optin_keywords: "TS",
|
1678
3329
|
|
1679
|
-
subscriber_help: true,
|
1680
3330
|
|
1681
|
-
sample1: "TS",
|
1682
3331
|
|
1683
|
-
sample2: "TS",
|
1684
3332
|
|
1685
|
-
|
3333
|
+
optout_keywords: "TS",
|
1686
3334
|
|
1687
|
-
sample4: "TS",
|
1688
3335
|
|
1689
|
-
sample5: "TS",
|
1690
3336
|
|
1691
|
-
message_flow: "TS",
|
1692
3337
|
|
1693
|
-
|
3338
|
+
help_keywords: "TS",
|
1694
3339
|
|
1695
|
-
optin_keywords: "TS",
|
1696
3340
|
|
1697
|
-
optout_keywords: "TS",
|
1698
3341
|
|
1699
|
-
help_keywords: "TS",
|
1700
3342
|
|
1701
3343
|
optin_message: "TS",
|
1702
3344
|
|
3345
|
+
|
3346
|
+
|
3347
|
+
|
1703
3348
|
optout_message: "TS",
|
1704
3349
|
|
3350
|
+
|
3351
|
+
|
3352
|
+
|
1705
3353
|
reference_id: "TS",
|
1706
3354
|
|
3355
|
+
|
3356
|
+
|
1707
3357
|
mock: true,
|
1708
3358
|
|
1709
3359
|
|
3360
|
+
|
3361
|
+
|
1710
3362
|
next_renewal_or_expiration_date: "2000-01-01",
|
3363
|
+
|
3364
|
+
|
1711
3365
|
)
|
1712
3366
|
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
1713
3367
|
end
|
@@ -1715,15 +3369,19 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
1715
3369
|
|
1716
3370
|
describe 'test method "_to_hash"' do
|
1717
3371
|
instance = Freeclimb::SMSTenDLCCampaign.new(
|
3372
|
+
|
1718
3373
|
account_id: "TS",
|
1719
3374
|
|
1720
3375
|
|
3376
|
+
|
1721
3377
|
campaign_id: "TS",
|
1722
3378
|
|
1723
3379
|
|
3380
|
+
|
1724
3381
|
csp_id: "TS",
|
1725
3382
|
|
1726
3383
|
|
3384
|
+
|
1727
3385
|
reseller_id: "TS",
|
1728
3386
|
|
1729
3387
|
|
@@ -1740,15 +3398,18 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
1740
3398
|
|
1741
3399
|
billed_date: "2022-07-05T15:17:05Z",
|
1742
3400
|
|
3401
|
+
|
1743
3402
|
brand_id: "TS",
|
1744
3403
|
|
1745
3404
|
|
3405
|
+
|
1746
3406
|
usecase: "TS",
|
1747
3407
|
|
1748
3408
|
|
1749
3409
|
sub_usecases: Array.new(),
|
1750
3410
|
|
1751
3411
|
|
3412
|
+
|
1752
3413
|
description: "TS",
|
1753
3414
|
|
1754
3415
|
|
@@ -1779,42 +3440,55 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
1779
3440
|
subscriber_help: true,
|
1780
3441
|
|
1781
3442
|
|
3443
|
+
|
1782
3444
|
sample1: "TS",
|
1783
3445
|
|
1784
3446
|
|
3447
|
+
|
1785
3448
|
sample2: "TS",
|
1786
3449
|
|
1787
3450
|
|
3451
|
+
|
1788
3452
|
sample3: "TS",
|
1789
3453
|
|
1790
3454
|
|
3455
|
+
|
1791
3456
|
sample4: "TS",
|
1792
3457
|
|
1793
3458
|
|
3459
|
+
|
1794
3460
|
sample5: "TS",
|
1795
3461
|
|
1796
3462
|
|
3463
|
+
|
1797
3464
|
message_flow: "TS",
|
1798
3465
|
|
1799
3466
|
|
3467
|
+
|
1800
3468
|
help_message: "TS",
|
1801
3469
|
|
1802
3470
|
|
3471
|
+
|
1803
3472
|
optin_keywords: "TS",
|
1804
3473
|
|
1805
3474
|
|
3475
|
+
|
1806
3476
|
optout_keywords: "TS",
|
1807
3477
|
|
1808
3478
|
|
3479
|
+
|
1809
3480
|
help_keywords: "TS",
|
1810
3481
|
|
1811
3482
|
|
3483
|
+
|
1812
3484
|
optin_message: "TS",
|
1813
3485
|
|
1814
3486
|
|
3487
|
+
|
1815
3488
|
optout_message: "TS",
|
1816
3489
|
|
1817
3490
|
|
3491
|
+
|
1818
3492
|
reference_id: "TS",
|
1819
3493
|
|
1820
3494
|
|