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::AccountResult
|
18
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
@@ -20,443 +19,409 @@ require 'date'
|
|
20
19
|
describe Freeclimb::AccountResult do
|
21
20
|
let(:instance) { Freeclimb::AccountResult.new }
|
22
21
|
|
23
|
-
describe
|
24
|
-
it
|
22
|
+
describe "test an instance of AccountResult" do
|
23
|
+
it "should create an instance of AccountResult" do
|
25
24
|
expect(instance).to be_instance_of(Freeclimb::AccountResult)
|
26
25
|
end
|
27
26
|
end
|
28
|
-
|
27
|
+
|
29
28
|
describe 'test attribute "uri"' do
|
30
|
-
it
|
29
|
+
it "should work" do
|
31
30
|
instance.uri = "TEST_STRING"
|
32
|
-
expect(instance.uri).to eq("TEST_STRING")
|
33
|
-
|
31
|
+
expect(instance.uri).to eq("TEST_STRING")
|
34
32
|
end
|
35
33
|
end
|
36
34
|
|
37
35
|
describe 'test attribute "date_created"' do
|
38
|
-
it
|
36
|
+
it "should work" do
|
39
37
|
instance.date_created = "TEST_STRING"
|
40
|
-
expect(instance.date_created).to eq("TEST_STRING")
|
41
|
-
|
38
|
+
expect(instance.date_created).to eq("TEST_STRING")
|
42
39
|
end
|
43
40
|
end
|
44
41
|
|
45
42
|
describe 'test attribute "date_updated"' do
|
46
|
-
it
|
43
|
+
it "should work" do
|
47
44
|
instance.date_updated = "TEST_STRING"
|
48
|
-
expect(instance.date_updated).to eq("TEST_STRING")
|
49
|
-
|
45
|
+
expect(instance.date_updated).to eq("TEST_STRING")
|
50
46
|
end
|
51
47
|
end
|
52
48
|
|
53
49
|
describe 'test attribute "revision"' do
|
54
|
-
it
|
55
|
-
|
56
|
-
|
50
|
+
it "should work" do
|
57
51
|
instance.revision = 1
|
58
52
|
expect(instance.revision).to eq(1)
|
59
|
-
|
60
53
|
end
|
61
54
|
end
|
62
55
|
|
63
56
|
describe 'test attribute "account_id"' do
|
64
|
-
it
|
57
|
+
it "should work" do
|
65
58
|
instance.account_id = "TEST_STRING"
|
66
|
-
expect(instance.account_id).to eq("TEST_STRING")
|
67
|
-
|
59
|
+
expect(instance.account_id).to eq("TEST_STRING")
|
68
60
|
end
|
69
61
|
end
|
70
62
|
|
71
63
|
describe 'test attribute "api_key"' do
|
72
|
-
it
|
64
|
+
it "should work" do
|
73
65
|
instance.api_key = "TEST_STRING"
|
74
|
-
expect(instance.api_key).to eq("TEST_STRING")
|
75
|
-
|
66
|
+
expect(instance.api_key).to eq("TEST_STRING")
|
76
67
|
end
|
77
68
|
end
|
78
69
|
|
79
70
|
describe 'test attribute "_alias"' do
|
80
|
-
it
|
71
|
+
it "should work" do
|
81
72
|
instance._alias = "TEST_STRING"
|
82
|
-
expect(instance._alias).to eq("TEST_STRING")
|
83
|
-
|
73
|
+
expect(instance._alias).to eq("TEST_STRING")
|
84
74
|
end
|
85
75
|
end
|
86
76
|
|
87
77
|
describe 'test attribute "label"' do
|
88
|
-
it
|
78
|
+
it "should work" do
|
89
79
|
instance.label = "TEST_STRING"
|
90
|
-
expect(instance.label).to eq("TEST_STRING")
|
91
|
-
|
80
|
+
expect(instance.label).to eq("TEST_STRING")
|
92
81
|
end
|
93
82
|
end
|
94
83
|
|
95
|
-
|
96
84
|
describe 'test attribute "type"' do
|
97
|
-
it
|
85
|
+
it "assigns value TRIAL" do
|
98
86
|
instance.type = Freeclimb::AccountType::TRIAL
|
99
|
-
expect(instance.type).to eq(Freeclimb::AccountType::TRIAL)
|
87
|
+
expect(instance.type).to eq(Freeclimb::AccountType::TRIAL)
|
100
88
|
end
|
101
|
-
it
|
89
|
+
it "assigns value FULL" do
|
102
90
|
instance.type = Freeclimb::AccountType::FULL
|
103
|
-
expect(instance.type).to eq(Freeclimb::AccountType::FULL)
|
91
|
+
expect(instance.type).to eq(Freeclimb::AccountType::FULL)
|
104
92
|
end
|
105
93
|
end
|
106
94
|
|
107
95
|
describe 'test attribute "status"' do
|
108
|
-
it
|
96
|
+
it "assigns value CLOSED" do
|
109
97
|
instance.status = Freeclimb::AccountStatus::CLOSED
|
110
|
-
expect(instance.status).to eq(Freeclimb::AccountStatus::CLOSED)
|
98
|
+
expect(instance.status).to eq(Freeclimb::AccountStatus::CLOSED)
|
111
99
|
end
|
112
|
-
it
|
100
|
+
it "assigns value SUSPENDED" do
|
113
101
|
instance.status = Freeclimb::AccountStatus::SUSPENDED
|
114
|
-
expect(instance.status).to eq(Freeclimb::AccountStatus::SUSPENDED)
|
102
|
+
expect(instance.status).to eq(Freeclimb::AccountStatus::SUSPENDED)
|
115
103
|
end
|
116
|
-
it
|
104
|
+
it "assigns value ACTIVE" do
|
117
105
|
instance.status = Freeclimb::AccountStatus::ACTIVE
|
118
|
-
expect(instance.status).to eq(Freeclimb::AccountStatus::ACTIVE)
|
106
|
+
expect(instance.status).to eq(Freeclimb::AccountStatus::ACTIVE)
|
119
107
|
end
|
120
108
|
end
|
121
109
|
describe 'test attribute "subresource_uris"' do
|
122
|
-
it
|
123
|
-
|
124
|
-
testObject = Object.new()
|
110
|
+
it "should work" do
|
111
|
+
testObject = Object.new
|
125
112
|
instance.subresource_uris = testObject
|
126
113
|
expect(instance.subresource_uris).to eq(testObject)
|
114
|
+
|
115
|
+
instance.subresource_uris = Object.new
|
116
|
+
expect(instance.subresource_uris).to be_instance_of(Object)
|
127
117
|
end
|
128
118
|
end
|
129
119
|
|
130
120
|
describe 'test method "initialize"' do
|
131
|
-
it
|
132
|
-
expect {
|
133
|
-
|
134
|
-
|
135
|
-
date_created: "TS",
|
136
|
-
|
137
|
-
date_updated: "TS",
|
138
|
-
|
139
|
-
revision: 1,
|
140
|
-
|
141
|
-
account_id: "TS",
|
142
|
-
|
143
|
-
api_key: "TS",
|
144
|
-
|
145
|
-
_alias: "TS",
|
146
|
-
|
147
|
-
label: "TS",
|
148
|
-
|
149
|
-
|
150
|
-
type: Freeclimb::AccountType::TRIAL,
|
151
|
-
|
152
|
-
|
153
|
-
status: Freeclimb::AccountStatus::CLOSED,
|
154
|
-
|
155
|
-
subresource_uris: Object.new(),
|
156
|
-
|
157
|
-
)}.not_to raise_error()
|
158
|
-
end
|
159
|
-
it 'fails to initialize with input argument that is not a hash in Freeclimb::AccountResult' do
|
160
|
-
expect { instance = Freeclimb::AccountResult.new(
|
161
|
-
uri: "TS",
|
162
|
-
|
163
|
-
date_created: "TS",
|
164
|
-
|
165
|
-
date_updated: "TS",
|
166
|
-
|
167
|
-
revision: 1,
|
168
|
-
|
169
|
-
account_id: "TS",
|
170
|
-
|
171
|
-
api_key: "TS",
|
172
|
-
|
173
|
-
_alias: "TS",
|
174
|
-
|
175
|
-
label: "TS",
|
176
|
-
|
177
|
-
|
178
|
-
type: Freeclimb::AccountType::TRIAL,
|
179
|
-
|
180
|
-
|
181
|
-
status: Freeclimb::AccountStatus::CLOSED,
|
182
|
-
|
183
|
-
subresource_uris: Object.new(),
|
184
|
-
|
185
|
-
invalid_attribute: true
|
186
|
-
)}.to raise_error(ArgumentError)
|
187
|
-
end
|
188
|
-
it 'fails to initialize with invalid attribute' do
|
189
|
-
expect { instance = Freeclimb::AccountResult.new(
|
190
|
-
uri: "TS",
|
191
|
-
|
192
|
-
date_created: "TS",
|
193
|
-
|
194
|
-
date_updated: "TS",
|
195
|
-
|
196
|
-
revision: 1,
|
197
|
-
|
198
|
-
account_id: "TS",
|
199
|
-
|
200
|
-
api_key: "TS",
|
201
|
-
|
202
|
-
_alias: "TS",
|
203
|
-
|
204
|
-
label: "TS",
|
205
|
-
|
206
|
-
|
207
|
-
type: Freeclimb::AccountType::TRIAL,
|
208
|
-
|
209
|
-
|
210
|
-
status: Freeclimb::AccountStatus::CLOSED,
|
211
|
-
|
212
|
-
subresource_uris: Object.new(),
|
213
|
-
|
214
|
-
invalid_attribute: true
|
215
|
-
)}.to raise_error(ArgumentError)
|
216
|
-
end
|
217
|
-
end
|
218
|
-
|
219
|
-
describe 'test method "valid"' do
|
220
|
-
it 'checks if properties are valid' do
|
221
|
-
instance = Freeclimb::AccountResult.new(
|
121
|
+
it "properly initializes with values" do
|
122
|
+
expect {
|
123
|
+
Freeclimb::AccountResult.new(
|
222
124
|
uri: "TS",
|
223
|
-
|
125
|
+
|
224
126
|
date_created: "TS",
|
225
|
-
|
127
|
+
|
226
128
|
date_updated: "TS",
|
227
|
-
|
129
|
+
|
228
130
|
revision: 1,
|
229
|
-
|
131
|
+
|
230
132
|
account_id: "TS",
|
231
|
-
|
133
|
+
|
232
134
|
api_key: "TS",
|
233
|
-
|
135
|
+
|
234
136
|
_alias: "TS",
|
235
|
-
|
137
|
+
|
236
138
|
label: "TS",
|
237
|
-
|
238
|
-
|
139
|
+
|
239
140
|
type: Freeclimb::AccountType::TRIAL,
|
240
|
-
|
241
|
-
|
242
|
-
status: Freeclimb::AccountStatus::CLOSED,
|
243
|
-
|
244
|
-
subresource_uris: Object.new(),
|
245
|
-
|
246
|
-
)
|
247
|
-
expect(instance.valid?).to eq(true)
|
248
|
-
end
|
249
141
|
|
142
|
+
status: Freeclimb::AccountStatus::CLOSED,
|
250
143
|
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
)
|
255
|
-
expect(instance.valid?).to eq(false)
|
144
|
+
subresource_uris: Object.new
|
145
|
+
)
|
146
|
+
}.not_to raise_error
|
256
147
|
end
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
describe 'test method "eql?"' do
|
261
|
-
it 'checks if objects are equal' do
|
262
|
-
obj = Object.new()
|
263
|
-
instance_1 = Freeclimb::AccountResult.new(
|
148
|
+
it "fails to initialize with input argument that is not a hash in Freeclimb::AccountResult" do
|
149
|
+
expect {
|
150
|
+
Freeclimb::AccountResult.new(
|
264
151
|
uri: "TS",
|
265
|
-
|
152
|
+
|
266
153
|
date_created: "TS",
|
267
|
-
|
154
|
+
|
268
155
|
date_updated: "TS",
|
269
|
-
|
156
|
+
|
270
157
|
revision: 1,
|
271
|
-
|
158
|
+
|
272
159
|
account_id: "TS",
|
273
|
-
|
160
|
+
|
274
161
|
api_key: "TS",
|
275
|
-
|
162
|
+
|
276
163
|
_alias: "TS",
|
277
|
-
|
164
|
+
|
278
165
|
label: "TS",
|
279
|
-
|
280
|
-
|
166
|
+
|
281
167
|
type: Freeclimb::AccountType::TRIAL,
|
282
|
-
|
283
|
-
|
168
|
+
|
284
169
|
status: Freeclimb::AccountStatus::CLOSED,
|
285
|
-
|
286
|
-
subresource_uris:
|
287
|
-
|
288
|
-
|
289
|
-
|
170
|
+
|
171
|
+
subresource_uris: Object.new,
|
172
|
+
|
173
|
+
invalid_attribute: true
|
174
|
+
)
|
175
|
+
}.to raise_error(ArgumentError)
|
176
|
+
end
|
177
|
+
it "fails to initialize with invalid attribute" do
|
178
|
+
expect {
|
179
|
+
Freeclimb::AccountResult.new(
|
290
180
|
uri: "TS",
|
291
|
-
|
181
|
+
|
292
182
|
date_created: "TS",
|
293
|
-
|
183
|
+
|
294
184
|
date_updated: "TS",
|
295
|
-
|
185
|
+
|
296
186
|
revision: 1,
|
297
|
-
|
187
|
+
|
298
188
|
account_id: "TS",
|
299
|
-
|
189
|
+
|
300
190
|
api_key: "TS",
|
301
|
-
|
191
|
+
|
302
192
|
_alias: "TS",
|
303
|
-
|
193
|
+
|
304
194
|
label: "TS",
|
305
|
-
|
306
|
-
|
195
|
+
|
307
196
|
type: Freeclimb::AccountType::TRIAL,
|
308
|
-
|
309
|
-
|
197
|
+
|
310
198
|
status: Freeclimb::AccountStatus::CLOSED,
|
311
|
-
|
312
|
-
subresource_uris:
|
313
|
-
|
199
|
+
|
200
|
+
subresource_uris: Object.new,
|
201
|
+
|
202
|
+
invalid_attribute: true
|
203
|
+
)
|
204
|
+
}.to raise_error(ArgumentError)
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
describe 'test method "valid"' do
|
209
|
+
it "checks if properties are valid" do
|
210
|
+
instance = Freeclimb::AccountResult.new(
|
211
|
+
uri: "TS",
|
212
|
+
|
213
|
+
date_created: "TS",
|
214
|
+
|
215
|
+
date_updated: "TS",
|
216
|
+
|
217
|
+
revision: 1,
|
218
|
+
|
219
|
+
account_id: "TS",
|
220
|
+
|
221
|
+
api_key: "TS",
|
222
|
+
|
223
|
+
_alias: "TS",
|
224
|
+
|
225
|
+
label: "TS",
|
226
|
+
|
227
|
+
type: Freeclimb::AccountType::TRIAL,
|
228
|
+
|
229
|
+
status: Freeclimb::AccountStatus::CLOSED,
|
230
|
+
|
231
|
+
subresource_uris: Object.new
|
232
|
+
)
|
233
|
+
expect(instance.valid?).to eq(true)
|
234
|
+
end
|
235
|
+
|
236
|
+
skip "checks if properties are invalid" do
|
237
|
+
instance = Freeclimb::AccountResult.new
|
238
|
+
|
239
|
+
expect(instance.valid?).to eq(false)
|
240
|
+
end
|
241
|
+
end
|
242
|
+
|
243
|
+
describe 'test method "eql?"' do
|
244
|
+
it "checks if objects are equal" do
|
245
|
+
obj_Object = Object.new
|
246
|
+
|
247
|
+
instance_1 = Freeclimb::AccountResult.new(
|
248
|
+
uri: "TS",
|
249
|
+
|
250
|
+
date_created: "TS",
|
251
|
+
|
252
|
+
date_updated: "TS",
|
253
|
+
|
254
|
+
revision: 1,
|
255
|
+
|
256
|
+
account_id: "TS",
|
257
|
+
|
258
|
+
api_key: "TS",
|
259
|
+
|
260
|
+
_alias: "TS",
|
261
|
+
|
262
|
+
label: "TS",
|
263
|
+
|
264
|
+
type: Freeclimb::AccountType::TRIAL,
|
265
|
+
|
266
|
+
status: Freeclimb::AccountStatus::CLOSED,
|
267
|
+
|
268
|
+
subresource_uris: obj_Object
|
269
|
+
)
|
270
|
+
instance_2 = Freeclimb::AccountResult.new(
|
271
|
+
uri: "TS",
|
272
|
+
|
273
|
+
date_created: "TS",
|
274
|
+
|
275
|
+
date_updated: "TS",
|
276
|
+
|
277
|
+
revision: 1,
|
278
|
+
|
279
|
+
account_id: "TS",
|
280
|
+
|
281
|
+
api_key: "TS",
|
282
|
+
|
283
|
+
_alias: "TS",
|
284
|
+
|
285
|
+
label: "TS",
|
286
|
+
|
287
|
+
type: Freeclimb::AccountType::TRIAL,
|
288
|
+
|
289
|
+
status: Freeclimb::AccountStatus::CLOSED,
|
290
|
+
|
291
|
+
subresource_uris: obj_Object
|
314
292
|
)
|
315
293
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
316
294
|
end
|
317
|
-
|
318
|
-
it
|
295
|
+
|
296
|
+
it "checks if objects are not equal" do
|
319
297
|
instance_1 = Freeclimb::AccountResult.new(
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
298
|
+
uri: "TS",
|
299
|
+
|
300
|
+
date_created: "TS",
|
301
|
+
|
302
|
+
date_updated: "TS",
|
303
|
+
|
304
|
+
revision: 2,
|
305
|
+
|
306
|
+
account_id: "TS",
|
307
|
+
|
308
|
+
api_key: "TS",
|
309
|
+
|
310
|
+
_alias: "TS",
|
311
|
+
|
312
|
+
label: "TS",
|
313
|
+
|
314
|
+
type: Freeclimb::AccountType::TRIAL,
|
315
|
+
|
316
|
+
status: Freeclimb::AccountStatus::CLOSED,
|
317
|
+
|
318
|
+
subresource_uris: Object.new,
|
319
|
+
|
320
|
+
subresource_uris: Object.new
|
344
321
|
)
|
345
322
|
instance_2 = Freeclimb::AccountResult.new(
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
subresource_uris: nil,
|
369
|
-
|
323
|
+
uri: "ST",
|
324
|
+
|
325
|
+
date_created: "ST",
|
326
|
+
|
327
|
+
date_updated: "ST",
|
328
|
+
|
329
|
+
revision: 1,
|
330
|
+
|
331
|
+
account_id: "ST",
|
332
|
+
|
333
|
+
api_key: "ST",
|
334
|
+
|
335
|
+
_alias: "ST",
|
336
|
+
|
337
|
+
label: "ST",
|
338
|
+
|
339
|
+
type: nil,
|
340
|
+
|
341
|
+
status: nil,
|
342
|
+
|
343
|
+
subresource_uris: Object.new
|
370
344
|
)
|
371
345
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
372
346
|
end
|
373
347
|
end
|
374
|
-
|
348
|
+
|
375
349
|
describe 'test method "hash"' do
|
376
|
-
it
|
350
|
+
it "calculates hash code" do
|
377
351
|
instance = Freeclimb::AccountResult.new(
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
subresource_uris: Object.new(),
|
401
|
-
|
402
|
-
)
|
352
|
+
uri: "TS",
|
353
|
+
|
354
|
+
date_created: "TS",
|
355
|
+
|
356
|
+
date_updated: "TS",
|
357
|
+
|
358
|
+
revision: 1,
|
359
|
+
|
360
|
+
account_id: "TS",
|
361
|
+
|
362
|
+
api_key: "TS",
|
363
|
+
|
364
|
+
_alias: "TS",
|
365
|
+
|
366
|
+
label: "TS",
|
367
|
+
|
368
|
+
type: Freeclimb::AccountType::TRIAL,
|
369
|
+
|
370
|
+
status: Freeclimb::AccountStatus::CLOSED,
|
371
|
+
|
372
|
+
subresource_uris: Object.new
|
373
|
+
)
|
403
374
|
expect(instance.hash).to be_a_kind_of(Integer)
|
404
375
|
end
|
405
376
|
end
|
406
377
|
|
407
378
|
describe 'test method "build_from_hash"' do
|
408
|
-
it
|
379
|
+
it "builds equivalent model from hash code" do
|
409
380
|
instance_1 = Freeclimb::AccountResult.new(
|
410
381
|
uri: "TS",
|
411
|
-
|
382
|
+
|
412
383
|
date_created: "TS",
|
413
|
-
|
384
|
+
|
414
385
|
date_updated: "TS",
|
415
|
-
|
386
|
+
|
416
387
|
revision: 1,
|
417
|
-
|
388
|
+
|
418
389
|
account_id: "TS",
|
419
|
-
|
390
|
+
|
420
391
|
api_key: "TS",
|
421
|
-
|
392
|
+
|
422
393
|
_alias: "TS",
|
423
|
-
|
394
|
+
|
424
395
|
label: "TS",
|
425
|
-
|
426
|
-
|
396
|
+
|
427
397
|
type: Freeclimb::AccountType::TRIAL,
|
428
|
-
|
429
|
-
|
398
|
+
|
430
399
|
status: Freeclimb::AccountStatus::CLOSED,
|
431
|
-
|
432
|
-
subresource_uris: Object.new
|
433
|
-
|
400
|
+
|
401
|
+
subresource_uris: Object.new
|
434
402
|
)
|
435
403
|
instance_2 = Freeclimb::AccountResult.new(
|
436
404
|
uri: "TS",
|
437
|
-
|
405
|
+
|
438
406
|
date_created: "TS",
|
439
|
-
|
407
|
+
|
440
408
|
date_updated: "TS",
|
441
|
-
|
409
|
+
|
442
410
|
revision: 1,
|
443
|
-
|
411
|
+
|
444
412
|
account_id: "TS",
|
445
|
-
|
413
|
+
|
446
414
|
api_key: "TS",
|
447
|
-
|
415
|
+
|
448
416
|
_alias: "TS",
|
449
|
-
|
417
|
+
|
450
418
|
label: "TS",
|
451
|
-
|
452
|
-
|
419
|
+
|
453
420
|
type: Freeclimb::AccountType::TRIAL,
|
454
|
-
|
455
|
-
|
421
|
+
|
456
422
|
status: Freeclimb::AccountStatus::CLOSED,
|
457
|
-
|
458
|
-
subresource_uris: Object.new
|
459
|
-
|
423
|
+
|
424
|
+
subresource_uris: Object.new
|
460
425
|
)
|
461
426
|
|
462
427
|
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
@@ -465,175 +430,169 @@ describe Freeclimb::AccountResult do
|
|
465
430
|
|
466
431
|
describe 'test method "_deserialize"' do
|
467
432
|
instance = Freeclimb::AccountResult.new(
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
subresource_uris: Object.new(),
|
491
|
-
|
433
|
+
uri: "TS",
|
434
|
+
|
435
|
+
date_created: "TS",
|
436
|
+
|
437
|
+
date_updated: "TS",
|
438
|
+
|
439
|
+
revision: 1,
|
440
|
+
|
441
|
+
account_id: "TS",
|
442
|
+
|
443
|
+
api_key: "TS",
|
444
|
+
|
445
|
+
_alias: "TS",
|
446
|
+
|
447
|
+
label: "TS",
|
448
|
+
|
449
|
+
type: Freeclimb::AccountType::TRIAL,
|
450
|
+
|
451
|
+
status: Freeclimb::AccountStatus::CLOSED,
|
452
|
+
|
453
|
+
subresource_uris: Object.new
|
492
454
|
)
|
493
|
-
it
|
455
|
+
it "deserializes the data of uri" do
|
494
456
|
expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String)
|
495
457
|
end
|
496
|
-
|
458
|
+
|
459
|
+
it "deserializes the data of date_created" do
|
497
460
|
expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String)
|
498
461
|
end
|
499
|
-
|
462
|
+
|
463
|
+
it "deserializes the data of date_updated" do
|
500
464
|
expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String)
|
501
465
|
end
|
502
|
-
|
466
|
+
|
467
|
+
it "deserializes the data of revision" do
|
503
468
|
expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer)
|
504
469
|
end
|
505
|
-
|
470
|
+
|
471
|
+
it "deserializes the data of account_id" do
|
506
472
|
expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
|
507
473
|
end
|
508
|
-
|
474
|
+
|
475
|
+
it "deserializes the data of api_key" do
|
509
476
|
expect(instance._deserialize("String", instance.api_key)).to be_a_kind_of(String)
|
510
477
|
end
|
511
|
-
|
478
|
+
|
479
|
+
it "deserializes the data of _alias" do
|
512
480
|
expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String)
|
513
481
|
end
|
514
|
-
|
482
|
+
|
483
|
+
it "deserializes the data of label" do
|
515
484
|
expect(instance._deserialize("String", instance.label)).to be_a_kind_of(String)
|
516
485
|
end
|
517
|
-
|
486
|
+
|
487
|
+
it "deserializes the data of subresource_uris" do
|
518
488
|
expect(instance._deserialize("Object", instance.subresource_uris)).to be_a_kind_of(Object)
|
519
489
|
end
|
520
490
|
end
|
521
491
|
|
522
492
|
describe 'test method "to_s"' do
|
523
|
-
it
|
493
|
+
it "returns the string representation of the object" do
|
524
494
|
instance = Freeclimb::AccountResult.new(
|
525
495
|
uri: "TS",
|
526
|
-
|
496
|
+
|
527
497
|
date_created: "TS",
|
528
|
-
|
498
|
+
|
529
499
|
date_updated: "TS",
|
530
|
-
|
500
|
+
|
531
501
|
revision: 1,
|
532
|
-
|
502
|
+
|
533
503
|
account_id: "TS",
|
534
|
-
|
504
|
+
|
535
505
|
api_key: "TS",
|
536
|
-
|
506
|
+
|
537
507
|
_alias: "TS",
|
538
|
-
|
508
|
+
|
539
509
|
label: "TS",
|
540
|
-
|
541
|
-
|
510
|
+
|
542
511
|
type: Freeclimb::AccountType::TRIAL,
|
543
|
-
|
544
|
-
|
512
|
+
|
545
513
|
status: Freeclimb::AccountStatus::CLOSED,
|
546
|
-
|
547
|
-
subresource_uris: Object.new
|
548
|
-
|
514
|
+
|
515
|
+
subresource_uris: Object.new
|
549
516
|
)
|
550
517
|
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
551
518
|
end
|
552
519
|
end
|
553
520
|
|
554
521
|
describe 'test method "to_hash"' do
|
555
|
-
it
|
522
|
+
it "returns the object in the form of hash" do
|
556
523
|
instance = Freeclimb::AccountResult.new(
|
557
524
|
uri: "TS",
|
558
|
-
|
525
|
+
|
559
526
|
date_created: "TS",
|
560
|
-
|
527
|
+
|
561
528
|
date_updated: "TS",
|
562
|
-
|
529
|
+
|
563
530
|
revision: 1,
|
564
|
-
|
531
|
+
|
565
532
|
account_id: "TS",
|
566
|
-
|
533
|
+
|
567
534
|
api_key: "TS",
|
568
|
-
|
535
|
+
|
569
536
|
_alias: "TS",
|
570
|
-
|
537
|
+
|
571
538
|
label: "TS",
|
572
|
-
|
573
|
-
|
539
|
+
|
574
540
|
type: Freeclimb::AccountType::TRIAL,
|
575
|
-
|
576
|
-
|
541
|
+
|
577
542
|
status: Freeclimb::AccountStatus::CLOSED,
|
578
|
-
|
579
|
-
subresource_uris: Object.new
|
580
|
-
|
543
|
+
|
544
|
+
subresource_uris: Object.new
|
581
545
|
)
|
582
546
|
expect(instance.to_hash).to be_a_kind_of(Hash)
|
583
547
|
end
|
584
|
-
it
|
585
|
-
obj = Object.new
|
548
|
+
it "creates equal hash for two equal objects" do
|
549
|
+
obj = Object.new
|
550
|
+
|
586
551
|
instance_1 = Freeclimb::AccountResult.new(
|
587
552
|
uri: "TS",
|
588
|
-
|
553
|
+
|
589
554
|
date_created: "TS",
|
590
|
-
|
555
|
+
|
591
556
|
date_updated: "TS",
|
592
|
-
|
557
|
+
|
593
558
|
revision: 1,
|
594
|
-
|
559
|
+
|
595
560
|
account_id: "TS",
|
596
|
-
|
561
|
+
|
597
562
|
api_key: "TS",
|
598
|
-
|
563
|
+
|
599
564
|
_alias: "TS",
|
600
|
-
|
565
|
+
|
601
566
|
label: "TS",
|
602
|
-
|
603
|
-
|
567
|
+
|
604
568
|
type: Freeclimb::AccountType::TRIAL,
|
605
|
-
|
606
|
-
|
569
|
+
|
607
570
|
status: Freeclimb::AccountStatus::CLOSED,
|
608
|
-
|
609
|
-
subresource_uris: obj
|
610
|
-
|
571
|
+
|
572
|
+
subresource_uris: obj
|
611
573
|
)
|
612
574
|
instance_2 = Freeclimb::AccountResult.new(
|
613
575
|
uri: "TS",
|
614
|
-
|
576
|
+
|
615
577
|
date_created: "TS",
|
616
|
-
|
578
|
+
|
617
579
|
date_updated: "TS",
|
618
|
-
|
580
|
+
|
619
581
|
revision: 1,
|
620
|
-
|
582
|
+
|
621
583
|
account_id: "TS",
|
622
|
-
|
584
|
+
|
623
585
|
api_key: "TS",
|
624
|
-
|
586
|
+
|
625
587
|
_alias: "TS",
|
626
|
-
|
588
|
+
|
627
589
|
label: "TS",
|
628
|
-
|
629
|
-
|
590
|
+
|
630
591
|
type: Freeclimb::AccountType::TRIAL,
|
631
|
-
|
632
|
-
|
592
|
+
|
633
593
|
status: Freeclimb::AccountStatus::CLOSED,
|
634
|
-
|
635
|
-
subresource_uris: obj
|
636
|
-
|
594
|
+
|
595
|
+
subresource_uris: obj
|
637
596
|
)
|
638
597
|
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
639
598
|
end
|
@@ -641,74 +600,58 @@ describe Freeclimb::AccountResult do
|
|
641
600
|
|
642
601
|
describe 'test method "_to_hash"' do
|
643
602
|
instance = Freeclimb::AccountResult.new(
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
label: "TS",
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
type: Freeclimb::AccountType::TRIAL,
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
status: Freeclimb::AccountStatus::CLOSED,
|
674
|
-
|
675
|
-
|
676
|
-
subresource_uris: Object.new(),
|
677
|
-
|
678
|
-
)
|
679
|
-
it 'returns uri in the form of hash' do
|
603
|
+
uri: "TS",
|
604
|
+
|
605
|
+
date_created: "TS",
|
606
|
+
|
607
|
+
date_updated: "TS",
|
608
|
+
|
609
|
+
revision: 1,
|
610
|
+
|
611
|
+
account_id: "TS",
|
612
|
+
|
613
|
+
api_key: "TS",
|
614
|
+
|
615
|
+
_alias: "TS",
|
616
|
+
|
617
|
+
label: "TS",
|
618
|
+
|
619
|
+
type: Freeclimb::AccountType::TRIAL,
|
620
|
+
|
621
|
+
status: Freeclimb::AccountStatus::CLOSED
|
622
|
+
)
|
623
|
+
it "returns uri in the form of hash" do
|
680
624
|
expect(instance._to_hash(instance.uri)).to eq(instance.uri)
|
681
625
|
end
|
682
|
-
it
|
626
|
+
it "returns date_created in the form of hash" do
|
683
627
|
expect(instance._to_hash(instance.date_created)).to eq(instance.date_created)
|
684
628
|
end
|
685
|
-
it
|
629
|
+
it "returns date_updated in the form of hash" do
|
686
630
|
expect(instance._to_hash(instance.date_updated)).to eq(instance.date_updated)
|
687
631
|
end
|
688
|
-
it
|
632
|
+
it "returns revision in the form of hash" do
|
689
633
|
expect(instance._to_hash(instance.revision)).to eq(instance.revision)
|
690
634
|
end
|
691
|
-
it
|
635
|
+
it "returns account_id in the form of hash" do
|
692
636
|
expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)
|
693
637
|
end
|
694
|
-
it
|
638
|
+
it "returns api_key in the form of hash" do
|
695
639
|
expect(instance._to_hash(instance.api_key)).to eq(instance.api_key)
|
696
640
|
end
|
697
|
-
it
|
641
|
+
it "returns _alias in the form of hash" do
|
698
642
|
expect(instance._to_hash(instance._alias)).to eq(instance._alias)
|
699
643
|
end
|
700
|
-
it
|
644
|
+
it "returns label in the form of hash" do
|
701
645
|
expect(instance._to_hash(instance.label)).to eq(instance.label)
|
702
646
|
end
|
703
|
-
it
|
647
|
+
it "returns type in the form of hash" do
|
704
648
|
expect(instance._to_hash(instance.type)).to eq(instance.type)
|
705
649
|
end
|
706
|
-
it
|
650
|
+
it "returns status in the form of hash" do
|
707
651
|
expect(instance._to_hash(instance.status)).to eq(instance.status)
|
708
652
|
end
|
709
|
-
it
|
653
|
+
it "returns subresource_uris in the form of hash" do
|
710
654
|
expect(instance._to_hash(instance.subresource_uris)).to eq(instance.subresource_uris)
|
711
655
|
end
|
712
656
|
end
|
713
|
-
|
714
657
|
end
|