freeclimb 5.1.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile +4 -5
- data/Gemfile.lock +18 -5
- data/README.md +4 -4
- data/Rakefile +1 -1
- data/docs/CreateConferenceRequest.md +1 -1
- data/docs/DefaultApi.md +1 -1
- data/freeclimb.gemspec +21 -26
- data/lib/freeclimb/api/default_api.rb +878 -878
- data/lib/freeclimb/api_client.rb +78 -83
- data/lib/freeclimb/api_error.rb +17 -19
- data/lib/freeclimb/configuration.rb +27 -29
- data/lib/freeclimb/models/account_request.rb +36 -41
- data/lib/freeclimb/models/account_result.rb +88 -92
- data/lib/freeclimb/models/account_status.rb +12 -14
- data/lib/freeclimb/models/account_type.rb +12 -14
- data/lib/freeclimb/models/add_to_conference.rb +81 -85
- data/lib/freeclimb/models/add_to_conference_notification_webhook.rb +99 -103
- data/lib/freeclimb/models/add_to_queue_notification_webhook.rb +78 -82
- data/lib/freeclimb/models/answered_by.rb +12 -14
- data/lib/freeclimb/models/application_list.rb +74 -78
- data/lib/freeclimb/models/application_request.rb +66 -70
- data/lib/freeclimb/models/application_result.rb +100 -104
- data/lib/freeclimb/models/available_number.rb +66 -70
- data/lib/freeclimb/models/available_number_list.rb +74 -78
- data/lib/freeclimb/models/barge_in_reason.rb +12 -14
- data/lib/freeclimb/models/buy_incoming_number_request.rb +41 -45
- data/lib/freeclimb/models/call_control_webhook.rb +56 -61
- data/lib/freeclimb/models/call_direction.rb +12 -14
- data/lib/freeclimb/models/call_ended_reason.rb +12 -14
- data/lib/freeclimb/models/call_list.rb +74 -78
- data/lib/freeclimb/models/call_result.rb +142 -146
- data/lib/freeclimb/models/call_status.rb +12 -14
- data/lib/freeclimb/models/call_status_webhook.rb +84 -88
- data/lib/freeclimb/models/capabilities.rb +55 -59
- data/lib/freeclimb/models/completion_request.rb +32 -36
- data/lib/freeclimb/models/completion_result.rb +36 -40
- data/lib/freeclimb/models/completion_result_status.rb +12 -14
- data/lib/freeclimb/models/conference_list.rb +74 -78
- data/lib/freeclimb/models/conference_participant_list.rb +74 -78
- data/lib/freeclimb/models/conference_participant_result.rb +88 -92
- data/lib/freeclimb/models/conference_recording_status_webhook.rb +99 -103
- data/lib/freeclimb/models/conference_result.rb +106 -110
- data/lib/freeclimb/models/conference_status.rb +12 -14
- data/lib/freeclimb/models/conference_status_webhook.rb +102 -106
- data/lib/freeclimb/models/create_conference.rb +60 -63
- data/lib/freeclimb/models/create_conference_request.rb +55 -54
- data/lib/freeclimb/models/create_conference_webhook.rb +102 -106
- data/lib/freeclimb/models/create_web_rtc_token.rb +42 -46
- data/lib/freeclimb/models/dequeue.rb +28 -33
- data/lib/freeclimb/models/dequeue_webhook.rb +89 -93
- data/lib/freeclimb/models/enqueue.rb +48 -52
- data/lib/freeclimb/models/filter_logs_request.rb +31 -35
- data/lib/freeclimb/models/get_digits.rb +73 -77
- data/lib/freeclimb/models/get_digits_reason.rb +12 -14
- data/lib/freeclimb/models/get_digits_webhook.rb +93 -97
- data/lib/freeclimb/models/get_speech.rb +94 -97
- data/lib/freeclimb/models/get_speech_reason.rb +12 -14
- data/lib/freeclimb/models/get_speech_webhook.rb +118 -122
- data/lib/freeclimb/models/grammar_file_built_in.rb +12 -14
- data/lib/freeclimb/models/grammar_type.rb +12 -14
- data/lib/freeclimb/models/hangup.rb +34 -39
- data/lib/freeclimb/models/if_machine.rb +12 -14
- data/lib/freeclimb/models/inbound_call_webhook.rb +85 -89
- data/lib/freeclimb/models/incoming_number_list.rb +74 -78
- data/lib/freeclimb/models/incoming_number_request.rb +41 -45
- data/lib/freeclimb/models/incoming_number_result.rb +122 -126
- data/lib/freeclimb/models/language.rb +12 -14
- data/lib/freeclimb/models/leave_conference_webhook.rb +79 -83
- data/lib/freeclimb/models/log_level.rb +12 -14
- data/lib/freeclimb/models/log_list.rb +74 -78
- data/lib/freeclimb/models/log_result.rb +67 -71
- data/lib/freeclimb/models/machine_detected_webhook.rb +89 -93
- data/lib/freeclimb/models/machine_type.rb +12 -14
- data/lib/freeclimb/models/make_call_request.rb +77 -81
- data/lib/freeclimb/models/message_delivery_webhook.rb +81 -86
- data/lib/freeclimb/models/message_direction.rb +12 -14
- data/lib/freeclimb/models/message_request.rb +72 -75
- data/lib/freeclimb/models/message_result.rb +135 -139
- data/lib/freeclimb/models/message_status.rb +12 -14
- data/lib/freeclimb/models/message_status_webhook.rb +86 -90
- data/lib/freeclimb/models/messages_list.rb +74 -78
- data/lib/freeclimb/models/mutable_resource_model.rb +46 -51
- data/lib/freeclimb/models/out_dial.rb +80 -84
- data/lib/freeclimb/models/out_dial_api_connect_webhook.rb +84 -88
- data/lib/freeclimb/models/out_dial_connect_webhook.rb +84 -88
- data/lib/freeclimb/models/out_dial_start_webhook.rb +90 -94
- data/lib/freeclimb/models/pagination_model.rb +67 -71
- data/lib/freeclimb/models/park.rb +44 -48
- data/lib/freeclimb/models/pause.rb +33 -37
- data/lib/freeclimb/models/percl_command.rb +36 -40
- data/lib/freeclimb/models/percl_script.rb +32 -36
- data/lib/freeclimb/models/play.rb +44 -48
- data/lib/freeclimb/models/play_beep.rb +12 -14
- data/lib/freeclimb/models/play_early_media.rb +33 -37
- data/lib/freeclimb/models/queue_list.rb +74 -78
- data/lib/freeclimb/models/queue_member.rb +55 -59
- data/lib/freeclimb/models/queue_member_list.rb +74 -78
- data/lib/freeclimb/models/queue_request.rb +37 -42
- data/lib/freeclimb/models/queue_result.rb +88 -92
- data/lib/freeclimb/models/queue_result_status.rb +12 -14
- data/lib/freeclimb/models/queue_wait_webhook.rb +94 -98
- data/lib/freeclimb/models/record_utterance.rb +63 -67
- data/lib/freeclimb/models/record_utterance_term_reason.rb +12 -14
- data/lib/freeclimb/models/record_webhook.rb +119 -123
- data/lib/freeclimb/models/recording_list.rb +74 -78
- data/lib/freeclimb/models/recording_result.rb +76 -80
- data/lib/freeclimb/models/redirect.rb +33 -37
- data/lib/freeclimb/models/redirect_webhook.rb +84 -88
- data/lib/freeclimb/models/reject.rb +34 -39
- data/lib/freeclimb/models/remove_from_conference.rb +28 -33
- data/lib/freeclimb/models/remove_from_queue_notification_webhook.rb +89 -93
- data/lib/freeclimb/models/request_type.rb +12 -14
- data/lib/freeclimb/models/say.rb +49 -53
- data/lib/freeclimb/models/send_digits.rb +43 -47
- data/lib/freeclimb/models/set_dtmf_pass_through.rb +34 -39
- data/lib/freeclimb/models/set_listen.rb +34 -39
- data/lib/freeclimb/models/set_talk.rb +34 -39
- data/lib/freeclimb/models/sms.rb +48 -52
- data/lib/freeclimb/models/sms_ten_dlc_brand.rb +187 -190
- data/lib/freeclimb/models/sms_ten_dlc_brand_alt_business_id_type.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brand_entity_type.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brand_identity_status.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brand_relationship.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brand_stock_exchange.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +74 -78
- data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +226 -229
- data/lib/freeclimb/models/sms_ten_dlc_campaign_status.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +74 -78
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +186 -189
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +84 -87
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_status.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +74 -78
- data/lib/freeclimb/models/sms_toll_free_campaign.rb +61 -64
- data/lib/freeclimb/models/sms_toll_free_campaign_registration_status.rb +12 -14
- data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +74 -78
- data/lib/freeclimb/models/start_record_call.rb +28 -33
- data/lib/freeclimb/models/terminate_conference.rb +28 -33
- data/lib/freeclimb/models/tfn.rb +31 -35
- data/lib/freeclimb/models/tfn_campaign.rb +76 -79
- data/lib/freeclimb/models/transcribe_reason.rb +12 -14
- data/lib/freeclimb/models/transcribe_term_reason.rb +12 -14
- data/lib/freeclimb/models/transcribe_utterance.rb +61 -65
- data/lib/freeclimb/models/transcribe_utterance_record.rb +43 -47
- data/lib/freeclimb/models/transcribe_webhook.rb +150 -154
- data/lib/freeclimb/models/unpark.rb +28 -33
- data/lib/freeclimb/models/update_call_request.rb +31 -35
- data/lib/freeclimb/models/update_call_request_status.rb +12 -14
- data/lib/freeclimb/models/update_conference_participant_request.rb +41 -46
- data/lib/freeclimb/models/update_conference_request.rb +41 -45
- data/lib/freeclimb/models/update_conference_request_status.rb +12 -14
- data/lib/freeclimb/models/webhook.rb +32 -37
- data/lib/freeclimb/utils/request_verifier.rb +14 -14
- data/lib/freeclimb/utils/signature_information.rb +8 -8
- data/lib/freeclimb/version.rb +10 -12
- data/lib/freeclimb.rb +156 -158
- data/openapi.json +3 -0
- data/package.json +1 -1
- data/spec/api/default_api_spec.rb +492 -676
- data/spec/api_client_spec.rb +100 -102
- data/spec/configuration_spec.rb +16 -18
- data/spec/models/account_request_spec.rb +104 -233
- data/spec/models/account_result_spec.rb +393 -1013
- data/spec/models/account_status_spec.rb +27 -30
- data/spec/models/account_type_spec.rb +24 -27
- data/spec/models/add_to_conference_notification_webhook_spec.rb +464 -1197
- data/spec/models/add_to_conference_spec.rb +354 -850
- data/spec/models/add_to_queue_notification_webhook_spec.rb +341 -864
- data/spec/models/answered_by_spec.rb +24 -27
- data/spec/models/application_list_spec.rb +289 -646
- data/spec/models/application_request_spec.rb +265 -679
- data/spec/models/application_result_spec.rb +444 -1184
- data/spec/models/available_number_list_spec.rb +289 -646
- data/spec/models/available_number_spec.rb +271 -650
- data/spec/models/barge_in_reason_spec.rb +27 -30
- data/spec/models/buy_incoming_number_request_spec.rb +136 -322
- data/spec/models/call_control_webhook_spec.rb +203 -503
- data/spec/models/call_direction_spec.rb +27 -30
- data/spec/models/call_ended_reason_spec.rb +107 -110
- data/spec/models/call_list_spec.rb +289 -646
- data/spec/models/call_result_spec.rb +679 -1778
- data/spec/models/call_status_spec.rb +47 -50
- data/spec/models/call_status_webhook_spec.rb +413 -990
- data/spec/models/capabilities_spec.rb +202 -411
- data/spec/models/completion_request_spec.rb +75 -143
- data/spec/models/completion_result_spec.rb +104 -231
- data/spec/models/completion_result_status_spec.rb +24 -27
- data/spec/models/conference_list_spec.rb +289 -646
- data/spec/models/conference_participant_list_spec.rb +289 -646
- data/spec/models/conference_participant_result_spec.rb +384 -938
- data/spec/models/conference_recording_status_webhook_spec.rb +464 -1197
- data/spec/models/conference_result_spec.rb +489 -1263
- data/spec/models/conference_status_spec.rb +31 -34
- data/spec/models/conference_status_webhook_spec.rb +464 -1197
- data/spec/models/create_conference_request_spec.rb +204 -485
- data/spec/models/create_conference_spec.rb +237 -557
- data/spec/models/create_conference_webhook_spec.rb +464 -1197
- data/spec/models/create_web_rtc_token_spec.rb +136 -307
- data/spec/models/dequeue_spec.rb +14 -17
- data/spec/models/dequeue_webhook_spec.rb +400 -1021
- data/spec/models/enqueue_spec.rb +169 -412
- data/spec/models/filter_logs_request_spec.rb +73 -145
- data/spec/models/get_digits_reason_spec.rb +31 -34
- data/spec/models/get_digits_spec.rb +326 -737
- data/spec/models/get_digits_webhook_spec.rb +435 -1127
- data/spec/models/get_speech_reason_spec.rb +39 -42
- data/spec/models/get_speech_spec.rb +399 -1036
- data/spec/models/get_speech_webhook_spec.rb +608 -1553
- data/spec/models/grammar_file_built_in_spec.rb +75 -78
- data/spec/models/grammar_type_spec.rb +24 -27
- data/spec/models/hangup_spec.rb +73 -145
- data/spec/models/if_machine_spec.rb +24 -27
- data/spec/models/inbound_call_webhook_spec.rb +371 -951
- data/spec/models/incoming_number_list_spec.rb +289 -646
- data/spec/models/incoming_number_request_spec.rb +136 -322
- data/spec/models/incoming_number_result_spec.rb +573 -1489
- data/spec/models/language_spec.rb +120 -123
- data/spec/models/leave_conference_webhook_spec.rb +341 -864
- data/spec/models/log_level_spec.rb +27 -30
- data/spec/models/log_list_spec.rb +289 -646
- data/spec/models/log_result_spec.rb +272 -667
- data/spec/models/machine_detected_webhook_spec.rb +401 -1036
- data/spec/models/machine_type_spec.rb +24 -27
- data/spec/models/make_call_request_spec.rb +353 -905
- data/spec/models/message_delivery_webhook_spec.rb +357 -942
- data/spec/models/message_direction_spec.rb +24 -27
- data/spec/models/message_request_spec.rb +324 -818
- data/spec/models/message_result_spec.rb +647 -1710
- data/spec/models/message_status_spec.rb +60 -63
- data/spec/models/message_status_webhook_spec.rb +405 -1045
- data/spec/models/messages_list_spec.rb +289 -646
- data/spec/models/mutable_resource_model_spec.rb +168 -395
- data/spec/models/out_dial_api_connect_webhook_spec.rb +371 -951
- data/spec/models/out_dial_connect_webhook_spec.rb +371 -951
- data/spec/models/out_dial_spec.rb +354 -903
- data/spec/models/out_dial_start_webhook_spec.rb +401 -1038
- data/spec/models/pagination_model_spec.rb +259 -577
- data/spec/models/park_spec.rb +136 -322
- data/spec/models/pause_spec.rb +72 -128
- data/spec/models/percl_command_spec.rb +76 -145
- data/spec/models/percl_script_spec.rb +73 -127
- data/spec/models/play_beep_spec.rb +31 -34
- data/spec/models/play_early_media_spec.rb +73 -145
- data/spec/models/play_spec.rb +135 -287
- data/spec/models/queue_list_spec.rb +289 -646
- data/spec/models/queue_member_list_spec.rb +289 -646
- data/spec/models/queue_member_spec.rb +199 -467
- data/spec/models/queue_request_spec.rb +103 -216
- data/spec/models/queue_result_spec.rb +388 -965
- data/spec/models/queue_result_status_spec.rb +31 -34
- data/spec/models/queue_wait_webhook_spec.rb +429 -1091
- data/spec/models/record_utterance_spec.rb +263 -591
- data/spec/models/record_utterance_term_reason_spec.rb +31 -34
- data/spec/models/record_webhook_spec.rb +605 -1548
- data/spec/models/recording_list_spec.rb +289 -646
- data/spec/models/recording_result_spec.rb +323 -819
- data/spec/models/redirect_spec.rb +73 -145
- data/spec/models/redirect_webhook_spec.rb +371 -951
- data/spec/models/reject_spec.rb +73 -145
- data/spec/models/remove_from_conference_spec.rb +14 -17
- data/spec/models/remove_from_queue_notification_webhook_spec.rb +404 -1023
- data/spec/models/request_type_spec.rb +107 -110
- data/spec/models/say_spec.rb +168 -377
- data/spec/models/send_digits_spec.rb +135 -287
- data/spec/models/set_dtmf_pass_through_spec.rb +74 -127
- data/spec/models/set_listen_spec.rb +74 -127
- data/spec/models/set_talk_spec.rb +74 -127
- data/spec/models/sms_spec.rb +169 -412
- data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +31 -34
- data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +35 -38
- data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +31 -34
- data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +35 -38
- data/spec/models/sms_ten_dlc_brand_spec.rb +1082 -2746
- data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +124 -127
- data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +289 -646
- data/spec/models/sms_ten_dlc_campaign_spec.rb +1139 -2881
- data/spec/models/sms_ten_dlc_campaign_status_spec.rb +24 -27
- data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +289 -646
- data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +406 -1004
- data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +961 -2393
- data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +24 -27
- data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +289 -646
- data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +35 -38
- data/spec/models/sms_toll_free_campaign_spec.rb +270 -666
- data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +289 -646
- data/spec/models/start_record_call_spec.rb +14 -17
- data/spec/models/terminate_conference_spec.rb +14 -17
- data/spec/models/tfn_campaign_spec.rb +330 -858
- data/spec/models/tfn_spec.rb +73 -145
- data/spec/models/transcribe_reason_spec.rb +35 -38
- data/spec/models/transcribe_term_reason_spec.rb +24 -27
- data/spec/models/transcribe_utterance_record_spec.rb +134 -270
- data/spec/models/transcribe_utterance_spec.rb +236 -523
- data/spec/models/transcribe_webhook_spec.rb +749 -1918
- data/spec/models/unpark_spec.rb +14 -17
- data/spec/models/update_call_request_spec.rb +74 -143
- data/spec/models/update_call_request_status_spec.rb +24 -27
- data/spec/models/update_conference_participant_request_spec.rb +137 -268
- data/spec/models/update_conference_request_spec.rb +140 -321
- data/spec/models/update_conference_request_status_spec.rb +24 -27
- data/spec/models/webhook_spec.rb +68 -137
- data/spec/quickstart_spec.rb +5 -5
- data/spec/spec_helper.rb +92 -100
- data/spec/utils/request_verifier_spec.rb +70 -71
- data/spec/utils/signature_information_spec.rb +23 -23
- data/yarn.lock +9 -0
- metadata +3 -151
@@ -1,18 +1,16 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
# #FreeClimb API
|
2
|
+
#
|
3
|
+
# FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
4
|
+
#
|
5
|
+
# The version of the OpenAPI document: 1.0.0
|
6
|
+
# Contact: support@freeclimb.com
|
7
|
+
# Generated by: https://openapi-generator.tech
|
8
|
+
# OpenAPI Generator version: 7.9.0
|
9
|
+
#
|
3
10
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
Contact: support@freeclimb.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.9.0
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
11
|
+
require "spec_helper"
|
12
|
+
require "json"
|
13
|
+
require "date"
|
16
14
|
include Freeclimb
|
17
15
|
|
18
16
|
# Unit tests for Freeclimb::SMSTollFreeCampaign
|
@@ -21,548 +19,289 @@ include Freeclimb
|
|
21
19
|
describe Freeclimb::SMSTollFreeCampaign do
|
22
20
|
let(:instance) { Freeclimb::SMSTollFreeCampaign.new }
|
23
21
|
|
24
|
-
describe
|
25
|
-
it
|
22
|
+
describe "test an instance of SMSTollFreeCampaign" do
|
23
|
+
it "should create an instance of SMSTollFreeCampaign" do
|
26
24
|
expect(instance).to be_instance_of(Freeclimb::SMSTollFreeCampaign)
|
27
25
|
end
|
28
26
|
end
|
29
|
-
|
27
|
+
|
30
28
|
describe 'test attribute "account_id"' do
|
31
|
-
it
|
32
|
-
|
29
|
+
it "should work" do
|
33
30
|
instance.account_id = "TEST_STRING"
|
34
|
-
expect(instance.account_id).to eq("TEST_STRING")
|
35
|
-
|
36
|
-
|
37
|
-
|
31
|
+
expect(instance.account_id).to eq("TEST_STRING")
|
38
32
|
end
|
39
33
|
end
|
40
34
|
|
41
35
|
describe 'test attribute "campaign_id"' do
|
42
|
-
it
|
43
|
-
|
36
|
+
it "should work" do
|
44
37
|
instance.campaign_id = "TEST_STRING"
|
45
|
-
expect(instance.campaign_id).to eq("TEST_STRING")
|
46
|
-
|
47
|
-
|
48
|
-
|
38
|
+
expect(instance.campaign_id).to eq("TEST_STRING")
|
49
39
|
end
|
50
40
|
end
|
51
41
|
|
52
42
|
describe 'test attribute "use_case"' do
|
53
|
-
it
|
54
|
-
|
43
|
+
it "should work" do
|
55
44
|
instance.use_case = "TEST_STRING"
|
56
|
-
expect(instance.use_case).to eq("TEST_STRING")
|
57
|
-
|
58
|
-
|
59
|
-
|
45
|
+
expect(instance.use_case).to eq("TEST_STRING")
|
60
46
|
end
|
61
47
|
end
|
62
48
|
|
63
|
-
|
64
49
|
describe 'test attribute "registration_status"' do
|
65
|
-
it
|
50
|
+
it "assigns value UNREGISTERED" do
|
66
51
|
instance.registration_status = Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED
|
67
|
-
expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED)
|
52
|
+
expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED)
|
68
53
|
end
|
69
|
-
it
|
54
|
+
it "assigns value INITIATED" do
|
70
55
|
instance.registration_status = Freeclimb::SMSTollFreeCampaignRegistrationStatus::INITIATED
|
71
|
-
expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::INITIATED)
|
56
|
+
expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::INITIATED)
|
72
57
|
end
|
73
|
-
it
|
58
|
+
it "assigns value PENDING" do
|
74
59
|
instance.registration_status = Freeclimb::SMSTollFreeCampaignRegistrationStatus::PENDING
|
75
|
-
expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::PENDING)
|
60
|
+
expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::PENDING)
|
76
61
|
end
|
77
|
-
it
|
62
|
+
it "assigns value DECLINED" do
|
78
63
|
instance.registration_status = Freeclimb::SMSTollFreeCampaignRegistrationStatus::DECLINED
|
79
|
-
expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::DECLINED)
|
64
|
+
expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::DECLINED)
|
80
65
|
end
|
81
|
-
it
|
66
|
+
it "assigns value REGISTERED" do
|
82
67
|
instance.registration_status = Freeclimb::SMSTollFreeCampaignRegistrationStatus::REGISTERED
|
83
|
-
expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::REGISTERED)
|
68
|
+
expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::REGISTERED)
|
84
69
|
end
|
85
70
|
end
|
86
71
|
describe 'test attribute "date_created"' do
|
87
|
-
it
|
88
|
-
|
72
|
+
it "should work" do
|
89
73
|
instance.date_created = "TEST_STRING"
|
90
|
-
expect(instance.date_created).to eq("TEST_STRING")
|
91
|
-
|
92
|
-
|
93
|
-
|
74
|
+
expect(instance.date_created).to eq("TEST_STRING")
|
94
75
|
end
|
95
76
|
end
|
96
77
|
|
97
78
|
describe 'test attribute "date_updated"' do
|
98
|
-
it
|
99
|
-
|
79
|
+
it "should work" do
|
100
80
|
instance.date_updated = "TEST_STRING"
|
101
|
-
expect(instance.date_updated).to eq("TEST_STRING")
|
102
|
-
|
103
|
-
|
104
|
-
|
81
|
+
expect(instance.date_updated).to eq("TEST_STRING")
|
105
82
|
end
|
106
83
|
end
|
107
84
|
|
108
85
|
describe 'test attribute "revision"' do
|
109
|
-
it
|
110
|
-
|
111
|
-
|
86
|
+
it "should work" do
|
112
87
|
instance.revision = 1
|
113
88
|
expect(instance.revision).to eq(1)
|
114
|
-
|
115
|
-
|
116
|
-
|
117
89
|
end
|
118
90
|
end
|
119
91
|
|
120
92
|
describe 'test method "initialize"' do
|
121
|
-
it
|
122
|
-
expect {
|
123
|
-
|
124
|
-
account_id: "TS",
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
campaign_id: "TS",
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
use_case: "TS",
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
date_created: "TS",
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
date_updated: "TS",
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
revision: 1,
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
)}.not_to raise_error()
|
158
|
-
end
|
159
|
-
it 'fails to initialize with input argument that is not a hash in Freeclimb::SMSTollFreeCampaign' do
|
160
|
-
expect { instance = Freeclimb::SMSTollFreeCampaign.new(
|
161
|
-
|
162
|
-
account_id: "TS",
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
campaign_id: "TS",
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
use_case: "TS",
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
date_created: "TS",
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
date_updated: "TS",
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
revision: 1,
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
invalid_attribute: true
|
196
|
-
)}.to raise_error(ArgumentError)
|
197
|
-
end
|
198
|
-
it 'fails to initialize with invalid attribute' do
|
199
|
-
expect { instance = Freeclimb::SMSTollFreeCampaign.new(
|
200
|
-
|
201
|
-
account_id: "TS",
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
campaign_id: "TS",
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
use_case: "TS",
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
date_created: "TS",
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
date_updated: "TS",
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
revision: 1,
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
invalid_attribute: true
|
235
|
-
)}.to raise_error(ArgumentError)
|
236
|
-
end
|
237
|
-
end
|
238
|
-
|
239
|
-
describe 'test method "valid"' do
|
240
|
-
it 'checks if properties are valid' do
|
241
|
-
instance = Freeclimb::SMSTollFreeCampaign.new(
|
242
|
-
|
93
|
+
it "properly initializes with values" do
|
94
|
+
expect {
|
95
|
+
Freeclimb::SMSTollFreeCampaign.new(
|
243
96
|
account_id: "TS",
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
97
|
+
|
248
98
|
campaign_id: "TS",
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
99
|
+
|
253
100
|
use_case: "TS",
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
101
|
+
|
258
102
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
103
|
+
|
263
104
|
date_created: "TS",
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
date_updated: "TS",
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
revision: 1,
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
)
|
277
|
-
expect(instance.valid?).to eq(true)
|
278
|
-
end
|
279
105
|
|
106
|
+
date_updated: "TS",
|
280
107
|
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
)
|
285
|
-
expect(instance.valid?).to eq(false)
|
108
|
+
revision: 1
|
109
|
+
)
|
110
|
+
}.not_to raise_error
|
286
111
|
end
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
describe 'test method "eql?"' do
|
291
|
-
it 'checks if objects are equal' do
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
instance_1 = Freeclimb::SMSTollFreeCampaign.new(
|
300
|
-
|
112
|
+
it "fails to initialize with input argument that is not a hash in Freeclimb::SMSTollFreeCampaign" do
|
113
|
+
expect {
|
114
|
+
Freeclimb::SMSTollFreeCampaign.new(
|
301
115
|
account_id: "TS",
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
116
|
+
|
306
117
|
campaign_id: "TS",
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
118
|
+
|
311
119
|
use_case: "TS",
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
120
|
+
|
318
121
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
319
|
-
|
320
|
-
|
122
|
+
|
321
123
|
date_created: "TS",
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
124
|
+
|
326
125
|
date_updated: "TS",
|
327
|
-
|
328
|
-
|
329
|
-
|
126
|
+
|
330
127
|
revision: 1,
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
)
|
335
|
-
|
336
|
-
|
128
|
+
|
129
|
+
invalid_attribute: true
|
130
|
+
)
|
131
|
+
}.to raise_error(ArgumentError)
|
132
|
+
end
|
133
|
+
it "fails to initialize with invalid attribute" do
|
134
|
+
expect {
|
135
|
+
Freeclimb::SMSTollFreeCampaign.new(
|
337
136
|
account_id: "TS",
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
137
|
+
|
342
138
|
campaign_id: "TS",
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
139
|
+
|
347
140
|
use_case: "TS",
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
141
|
+
|
354
142
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
355
|
-
|
356
|
-
|
143
|
+
|
357
144
|
date_created: "TS",
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
145
|
+
|
362
146
|
date_updated: "TS",
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
147
|
+
|
368
148
|
revision: 1,
|
369
|
-
|
149
|
+
|
150
|
+
invalid_attribute: true
|
151
|
+
)
|
152
|
+
}.to raise_error(ArgumentError)
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
describe 'test method "valid"' do
|
157
|
+
it "checks if properties are valid" do
|
158
|
+
instance = Freeclimb::SMSTollFreeCampaign.new(
|
159
|
+
account_id: "TS",
|
160
|
+
|
161
|
+
campaign_id: "TS",
|
162
|
+
|
163
|
+
use_case: "TS",
|
164
|
+
|
165
|
+
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
166
|
+
|
167
|
+
date_created: "TS",
|
168
|
+
|
169
|
+
date_updated: "TS",
|
170
|
+
|
171
|
+
revision: 1
|
172
|
+
)
|
173
|
+
expect(instance.valid?).to eq(true)
|
174
|
+
end
|
175
|
+
|
176
|
+
skip "checks if properties are invalid" do
|
177
|
+
instance = Freeclimb::SMSTollFreeCampaign.new
|
178
|
+
|
179
|
+
expect(instance.valid?).to eq(false)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
describe 'test method "eql?"' do
|
184
|
+
it "checks if objects are equal" do
|
185
|
+
instance_1 = Freeclimb::SMSTollFreeCampaign.new(
|
186
|
+
account_id: "TS",
|
187
|
+
|
188
|
+
campaign_id: "TS",
|
189
|
+
|
190
|
+
use_case: "TS",
|
191
|
+
|
192
|
+
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
193
|
+
|
194
|
+
date_created: "TS",
|
195
|
+
|
196
|
+
date_updated: "TS",
|
197
|
+
|
198
|
+
revision: 1
|
199
|
+
)
|
200
|
+
instance_2 = Freeclimb::SMSTollFreeCampaign.new(
|
201
|
+
account_id: "TS",
|
202
|
+
|
203
|
+
campaign_id: "TS",
|
204
|
+
|
205
|
+
use_case: "TS",
|
206
|
+
|
207
|
+
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
208
|
+
|
209
|
+
date_created: "TS",
|
210
|
+
|
211
|
+
date_updated: "TS",
|
212
|
+
|
213
|
+
revision: 1
|
370
214
|
)
|
371
215
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
372
216
|
end
|
373
|
-
|
374
|
-
it
|
217
|
+
|
218
|
+
it "checks if objects are not equal" do
|
375
219
|
instance_1 = Freeclimb::SMSTollFreeCampaign.new(
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
395
|
-
|
396
|
-
|
397
|
-
date_created: "TS",
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
date_updated: "TS",
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
revision: 2,
|
407
|
-
|
408
|
-
|
409
|
-
|
220
|
+
account_id: "TS",
|
221
|
+
|
222
|
+
campaign_id: "TS",
|
223
|
+
|
224
|
+
use_case: "TS",
|
225
|
+
|
226
|
+
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
227
|
+
|
228
|
+
date_created: "TS",
|
229
|
+
|
230
|
+
date_updated: "TS",
|
231
|
+
|
232
|
+
revision: 2
|
410
233
|
)
|
411
234
|
instance_2 = Freeclimb::SMSTollFreeCampaign.new(
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
registration_status: nil,
|
431
|
-
|
432
|
-
|
433
|
-
date_created: "ST",
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
date_updated: "ST",
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
revision: 1,
|
443
|
-
|
444
|
-
|
445
|
-
|
235
|
+
account_id: "ST",
|
236
|
+
|
237
|
+
campaign_id: "ST",
|
238
|
+
|
239
|
+
use_case: "ST",
|
240
|
+
|
241
|
+
registration_status: nil,
|
242
|
+
|
243
|
+
date_created: "ST",
|
244
|
+
|
245
|
+
date_updated: "ST",
|
246
|
+
|
247
|
+
revision: 1
|
446
248
|
)
|
447
249
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
448
250
|
end
|
449
251
|
end
|
450
|
-
|
252
|
+
|
451
253
|
describe 'test method "hash"' do
|
452
|
-
it
|
254
|
+
it "calculates hash code" do
|
453
255
|
instance = Freeclimb::SMSTollFreeCampaign.new(
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
date_created: "TS",
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
date_updated: "TS",
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
revision: 1,
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
)
|
256
|
+
account_id: "TS",
|
257
|
+
|
258
|
+
campaign_id: "TS",
|
259
|
+
|
260
|
+
use_case: "TS",
|
261
|
+
|
262
|
+
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
263
|
+
|
264
|
+
date_created: "TS",
|
265
|
+
|
266
|
+
date_updated: "TS",
|
267
|
+
|
268
|
+
revision: 1
|
269
|
+
)
|
489
270
|
expect(instance.hash).to be_a_kind_of(Integer)
|
490
271
|
end
|
491
272
|
end
|
492
273
|
|
493
274
|
describe 'test method "build_from_hash"' do
|
494
|
-
it
|
275
|
+
it "builds equivalent model from hash code" do
|
495
276
|
instance_1 = Freeclimb::SMSTollFreeCampaign.new(
|
496
|
-
|
497
277
|
account_id: "TS",
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
278
|
+
|
502
279
|
campaign_id: "TS",
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
280
|
+
|
507
281
|
use_case: "TS",
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
282
|
+
|
512
283
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
284
|
+
|
517
285
|
date_created: "TS",
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
286
|
+
|
522
287
|
date_updated: "TS",
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
revision: 1,
|
527
|
-
|
528
|
-
|
529
|
-
|
288
|
+
|
289
|
+
revision: 1
|
530
290
|
)
|
531
291
|
instance_2 = Freeclimb::SMSTollFreeCampaign.new(
|
532
|
-
|
533
292
|
account_id: "TS",
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
293
|
+
|
538
294
|
campaign_id: "TS",
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
295
|
+
|
543
296
|
use_case: "TS",
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
297
|
+
|
548
298
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
299
|
+
|
553
300
|
date_created: "TS",
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
301
|
+
|
558
302
|
date_updated: "TS",
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
revision: 1,
|
563
|
-
|
564
|
-
|
565
|
-
|
303
|
+
|
304
|
+
revision: 1
|
566
305
|
)
|
567
306
|
|
568
307
|
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
@@ -571,236 +310,115 @@ describe Freeclimb::SMSTollFreeCampaign do
|
|
571
310
|
|
572
311
|
describe 'test method "_deserialize"' do
|
573
312
|
instance = Freeclimb::SMSTollFreeCampaign.new(
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
date_created: "TS",
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
date_updated: "TS",
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
revision: 1,
|
605
|
-
|
606
|
-
|
607
|
-
|
313
|
+
account_id: "TS",
|
314
|
+
|
315
|
+
campaign_id: "TS",
|
316
|
+
|
317
|
+
use_case: "TS",
|
318
|
+
|
319
|
+
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
320
|
+
|
321
|
+
date_created: "TS",
|
322
|
+
|
323
|
+
date_updated: "TS",
|
324
|
+
|
325
|
+
revision: 1
|
608
326
|
)
|
609
|
-
it
|
327
|
+
it "deserializes the data of account_id" do
|
610
328
|
expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
|
611
329
|
end
|
612
|
-
|
613
|
-
|
614
|
-
it 'deserializes the data of campaign_id' do
|
330
|
+
|
331
|
+
it "deserializes the data of campaign_id" do
|
615
332
|
expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String)
|
616
333
|
end
|
617
|
-
|
618
|
-
|
619
|
-
it 'deserializes the data of use_case' do
|
334
|
+
|
335
|
+
it "deserializes the data of use_case" do
|
620
336
|
expect(instance._deserialize("String", instance.use_case)).to be_a_kind_of(String)
|
621
337
|
end
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
it 'deserializes the data of date_created' do
|
338
|
+
|
339
|
+
it "deserializes the data of date_created" do
|
627
340
|
expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String)
|
628
341
|
end
|
629
|
-
|
630
|
-
|
631
|
-
it 'deserializes the data of date_updated' do
|
342
|
+
|
343
|
+
it "deserializes the data of date_updated" do
|
632
344
|
expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String)
|
633
345
|
end
|
634
|
-
|
635
|
-
|
636
|
-
it 'deserializes the data of revision' do
|
346
|
+
|
347
|
+
it "deserializes the data of revision" do
|
637
348
|
expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer)
|
638
349
|
end
|
639
|
-
|
640
|
-
|
641
350
|
end
|
642
351
|
|
643
352
|
describe 'test method "to_s"' do
|
644
|
-
it
|
353
|
+
it "returns the string representation of the object" do
|
645
354
|
instance = Freeclimb::SMSTollFreeCampaign.new(
|
646
|
-
|
647
355
|
account_id: "TS",
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
356
|
+
|
652
357
|
campaign_id: "TS",
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
358
|
+
|
657
359
|
use_case: "TS",
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
360
|
+
|
662
361
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
362
|
+
|
667
363
|
date_created: "TS",
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
364
|
+
|
672
365
|
date_updated: "TS",
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
revision: 1,
|
677
|
-
|
678
|
-
|
679
|
-
|
366
|
+
|
367
|
+
revision: 1
|
680
368
|
)
|
681
369
|
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
682
370
|
end
|
683
371
|
end
|
684
372
|
|
685
373
|
describe 'test method "to_hash"' do
|
686
|
-
it
|
374
|
+
it "returns the object in the form of hash" do
|
687
375
|
instance = Freeclimb::SMSTollFreeCampaign.new(
|
688
|
-
|
689
376
|
account_id: "TS",
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
377
|
+
|
694
378
|
campaign_id: "TS",
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
379
|
+
|
699
380
|
use_case: "TS",
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
381
|
+
|
704
382
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
383
|
+
|
709
384
|
date_created: "TS",
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
385
|
+
|
714
386
|
date_updated: "TS",
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
revision: 1,
|
719
|
-
|
720
|
-
|
721
|
-
|
387
|
+
|
388
|
+
revision: 1
|
722
389
|
)
|
723
390
|
expect(instance.to_hash).to be_a_kind_of(Hash)
|
724
391
|
end
|
725
|
-
it
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
392
|
+
it "creates equal hash for two equal objects" do
|
733
393
|
instance_1 = Freeclimb::SMSTollFreeCampaign.new(
|
734
|
-
|
735
394
|
account_id: "TS",
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
395
|
+
|
740
396
|
campaign_id: "TS",
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
397
|
+
|
745
398
|
use_case: "TS",
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
399
|
+
|
750
400
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
401
|
+
|
755
402
|
date_created: "TS",
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
403
|
+
|
760
404
|
date_updated: "TS",
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
revision: 1,
|
765
|
-
|
766
|
-
|
767
|
-
|
405
|
+
|
406
|
+
revision: 1
|
768
407
|
)
|
769
408
|
instance_2 = Freeclimb::SMSTollFreeCampaign.new(
|
770
|
-
|
771
409
|
account_id: "TS",
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
410
|
+
|
776
411
|
campaign_id: "TS",
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
412
|
+
|
781
413
|
use_case: "TS",
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
414
|
+
|
786
415
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
416
|
+
|
791
417
|
date_created: "TS",
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
418
|
+
|
796
419
|
date_updated: "TS",
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
revision: 1,
|
801
|
-
|
802
|
-
|
803
|
-
|
420
|
+
|
421
|
+
revision: 1
|
804
422
|
)
|
805
423
|
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
806
424
|
end
|
@@ -808,54 +426,40 @@ describe Freeclimb::SMSTollFreeCampaign do
|
|
808
426
|
|
809
427
|
describe 'test method "_to_hash"' do
|
810
428
|
instance = Freeclimb::SMSTollFreeCampaign.new(
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
date_created: "TS",
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
date_updated: "TS",
|
833
|
-
|
834
|
-
|
835
|
-
revision: 1,
|
836
|
-
|
837
|
-
)
|
838
|
-
it 'returns account_id in the form of hash' do
|
429
|
+
account_id: "TS",
|
430
|
+
|
431
|
+
campaign_id: "TS",
|
432
|
+
|
433
|
+
use_case: "TS",
|
434
|
+
|
435
|
+
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
436
|
+
|
437
|
+
date_created: "TS",
|
438
|
+
|
439
|
+
date_updated: "TS",
|
440
|
+
|
441
|
+
revision: 1
|
442
|
+
)
|
443
|
+
it "returns account_id in the form of hash" do
|
839
444
|
expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)
|
840
445
|
end
|
841
|
-
it
|
446
|
+
it "returns campaign_id in the form of hash" do
|
842
447
|
expect(instance._to_hash(instance.campaign_id)).to eq(instance.campaign_id)
|
843
448
|
end
|
844
|
-
it
|
449
|
+
it "returns use_case in the form of hash" do
|
845
450
|
expect(instance._to_hash(instance.use_case)).to eq(instance.use_case)
|
846
451
|
end
|
847
|
-
it
|
452
|
+
it "returns registration_status in the form of hash" do
|
848
453
|
expect(instance._to_hash(instance.registration_status)).to eq(instance.registration_status)
|
849
454
|
end
|
850
|
-
it
|
455
|
+
it "returns date_created in the form of hash" do
|
851
456
|
expect(instance._to_hash(instance.date_created)).to eq(instance.date_created)
|
852
457
|
end
|
853
|
-
it
|
458
|
+
it "returns date_updated in the form of hash" do
|
854
459
|
expect(instance._to_hash(instance.date_updated)).to eq(instance.date_updated)
|
855
460
|
end
|
856
|
-
it
|
461
|
+
it "returns revision in the form of hash" do
|
857
462
|
expect(instance._to_hash(instance.revision)).to eq(instance.revision)
|
858
463
|
end
|
859
464
|
end
|
860
|
-
|
861
465
|
end
|