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