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