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