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