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