freeclimb 5.1.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile +4 -5
- data/Gemfile.lock +18 -5
- data/README.md +4 -4
- data/Rakefile +1 -1
- data/docs/CreateConferenceRequest.md +1 -1
- data/docs/DefaultApi.md +1 -1
- data/freeclimb.gemspec +21 -26
- data/lib/freeclimb/api/default_api.rb +878 -878
- data/lib/freeclimb/api_client.rb +78 -83
- data/lib/freeclimb/api_error.rb +17 -19
- data/lib/freeclimb/configuration.rb +27 -29
- data/lib/freeclimb/models/account_request.rb +36 -41
- data/lib/freeclimb/models/account_result.rb +88 -92
- data/lib/freeclimb/models/account_status.rb +12 -14
- data/lib/freeclimb/models/account_type.rb +12 -14
- data/lib/freeclimb/models/add_to_conference.rb +81 -85
- data/lib/freeclimb/models/add_to_conference_notification_webhook.rb +99 -103
- data/lib/freeclimb/models/add_to_queue_notification_webhook.rb +78 -82
- data/lib/freeclimb/models/answered_by.rb +12 -14
- data/lib/freeclimb/models/application_list.rb +74 -78
- data/lib/freeclimb/models/application_request.rb +66 -70
- data/lib/freeclimb/models/application_result.rb +100 -104
- data/lib/freeclimb/models/available_number.rb +66 -70
- data/lib/freeclimb/models/available_number_list.rb +74 -78
- data/lib/freeclimb/models/barge_in_reason.rb +12 -14
- data/lib/freeclimb/models/buy_incoming_number_request.rb +41 -45
- data/lib/freeclimb/models/call_control_webhook.rb +56 -61
- data/lib/freeclimb/models/call_direction.rb +12 -14
- data/lib/freeclimb/models/call_ended_reason.rb +12 -14
- data/lib/freeclimb/models/call_list.rb +74 -78
- data/lib/freeclimb/models/call_result.rb +142 -146
- data/lib/freeclimb/models/call_status.rb +12 -14
- data/lib/freeclimb/models/call_status_webhook.rb +84 -88
- data/lib/freeclimb/models/capabilities.rb +55 -59
- data/lib/freeclimb/models/completion_request.rb +32 -36
- data/lib/freeclimb/models/completion_result.rb +36 -40
- data/lib/freeclimb/models/completion_result_status.rb +12 -14
- data/lib/freeclimb/models/conference_list.rb +74 -78
- data/lib/freeclimb/models/conference_participant_list.rb +74 -78
- data/lib/freeclimb/models/conference_participant_result.rb +88 -92
- data/lib/freeclimb/models/conference_recording_status_webhook.rb +99 -103
- data/lib/freeclimb/models/conference_result.rb +106 -110
- data/lib/freeclimb/models/conference_status.rb +12 -14
- data/lib/freeclimb/models/conference_status_webhook.rb +102 -106
- data/lib/freeclimb/models/create_conference.rb +60 -63
- data/lib/freeclimb/models/create_conference_request.rb +55 -54
- data/lib/freeclimb/models/create_conference_webhook.rb +102 -106
- data/lib/freeclimb/models/create_web_rtc_token.rb +42 -46
- data/lib/freeclimb/models/dequeue.rb +28 -33
- data/lib/freeclimb/models/dequeue_webhook.rb +89 -93
- data/lib/freeclimb/models/enqueue.rb +48 -52
- data/lib/freeclimb/models/filter_logs_request.rb +31 -35
- data/lib/freeclimb/models/get_digits.rb +73 -77
- data/lib/freeclimb/models/get_digits_reason.rb +12 -14
- data/lib/freeclimb/models/get_digits_webhook.rb +93 -97
- data/lib/freeclimb/models/get_speech.rb +94 -97
- data/lib/freeclimb/models/get_speech_reason.rb +12 -14
- data/lib/freeclimb/models/get_speech_webhook.rb +118 -122
- data/lib/freeclimb/models/grammar_file_built_in.rb +12 -14
- data/lib/freeclimb/models/grammar_type.rb +12 -14
- data/lib/freeclimb/models/hangup.rb +34 -39
- data/lib/freeclimb/models/if_machine.rb +12 -14
- data/lib/freeclimb/models/inbound_call_webhook.rb +85 -89
- data/lib/freeclimb/models/incoming_number_list.rb +74 -78
- data/lib/freeclimb/models/incoming_number_request.rb +41 -45
- data/lib/freeclimb/models/incoming_number_result.rb +122 -126
- data/lib/freeclimb/models/language.rb +12 -14
- data/lib/freeclimb/models/leave_conference_webhook.rb +79 -83
- data/lib/freeclimb/models/log_level.rb +12 -14
- data/lib/freeclimb/models/log_list.rb +74 -78
- data/lib/freeclimb/models/log_result.rb +67 -71
- data/lib/freeclimb/models/machine_detected_webhook.rb +89 -93
- data/lib/freeclimb/models/machine_type.rb +12 -14
- data/lib/freeclimb/models/make_call_request.rb +77 -81
- data/lib/freeclimb/models/message_delivery_webhook.rb +81 -86
- data/lib/freeclimb/models/message_direction.rb +12 -14
- data/lib/freeclimb/models/message_request.rb +72 -75
- data/lib/freeclimb/models/message_result.rb +135 -139
- data/lib/freeclimb/models/message_status.rb +12 -14
- data/lib/freeclimb/models/message_status_webhook.rb +86 -90
- data/lib/freeclimb/models/messages_list.rb +74 -78
- data/lib/freeclimb/models/mutable_resource_model.rb +46 -51
- data/lib/freeclimb/models/out_dial.rb +80 -84
- data/lib/freeclimb/models/out_dial_api_connect_webhook.rb +84 -88
- data/lib/freeclimb/models/out_dial_connect_webhook.rb +84 -88
- data/lib/freeclimb/models/out_dial_start_webhook.rb +90 -94
- data/lib/freeclimb/models/pagination_model.rb +67 -71
- data/lib/freeclimb/models/park.rb +44 -48
- data/lib/freeclimb/models/pause.rb +33 -37
- data/lib/freeclimb/models/percl_command.rb +36 -40
- data/lib/freeclimb/models/percl_script.rb +32 -36
- data/lib/freeclimb/models/play.rb +44 -48
- data/lib/freeclimb/models/play_beep.rb +12 -14
- data/lib/freeclimb/models/play_early_media.rb +33 -37
- data/lib/freeclimb/models/queue_list.rb +74 -78
- data/lib/freeclimb/models/queue_member.rb +55 -59
- data/lib/freeclimb/models/queue_member_list.rb +74 -78
- data/lib/freeclimb/models/queue_request.rb +37 -42
- data/lib/freeclimb/models/queue_result.rb +88 -92
- data/lib/freeclimb/models/queue_result_status.rb +12 -14
- data/lib/freeclimb/models/queue_wait_webhook.rb +94 -98
- data/lib/freeclimb/models/record_utterance.rb +63 -67
- data/lib/freeclimb/models/record_utterance_term_reason.rb +12 -14
- data/lib/freeclimb/models/record_webhook.rb +119 -123
- data/lib/freeclimb/models/recording_list.rb +74 -78
- data/lib/freeclimb/models/recording_result.rb +76 -80
- data/lib/freeclimb/models/redirect.rb +33 -37
- data/lib/freeclimb/models/redirect_webhook.rb +84 -88
- data/lib/freeclimb/models/reject.rb +34 -39
- data/lib/freeclimb/models/remove_from_conference.rb +28 -33
- data/lib/freeclimb/models/remove_from_queue_notification_webhook.rb +89 -93
- data/lib/freeclimb/models/request_type.rb +12 -14
- data/lib/freeclimb/models/say.rb +49 -53
- data/lib/freeclimb/models/send_digits.rb +43 -47
- data/lib/freeclimb/models/set_dtmf_pass_through.rb +34 -39
- data/lib/freeclimb/models/set_listen.rb +34 -39
- data/lib/freeclimb/models/set_talk.rb +34 -39
- data/lib/freeclimb/models/sms.rb +48 -52
- data/lib/freeclimb/models/sms_ten_dlc_brand.rb +187 -190
- data/lib/freeclimb/models/sms_ten_dlc_brand_alt_business_id_type.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brand_entity_type.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brand_identity_status.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brand_relationship.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brand_stock_exchange.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +74 -78
- data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +226 -229
- data/lib/freeclimb/models/sms_ten_dlc_campaign_status.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +74 -78
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +186 -189
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +84 -87
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_status.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +74 -78
- data/lib/freeclimb/models/sms_toll_free_campaign.rb +61 -64
- data/lib/freeclimb/models/sms_toll_free_campaign_registration_status.rb +12 -14
- data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +74 -78
- data/lib/freeclimb/models/start_record_call.rb +28 -33
- data/lib/freeclimb/models/terminate_conference.rb +28 -33
- data/lib/freeclimb/models/tfn.rb +31 -35
- data/lib/freeclimb/models/tfn_campaign.rb +76 -79
- data/lib/freeclimb/models/transcribe_reason.rb +12 -14
- data/lib/freeclimb/models/transcribe_term_reason.rb +12 -14
- data/lib/freeclimb/models/transcribe_utterance.rb +61 -65
- data/lib/freeclimb/models/transcribe_utterance_record.rb +43 -47
- data/lib/freeclimb/models/transcribe_webhook.rb +150 -154
- data/lib/freeclimb/models/unpark.rb +28 -33
- data/lib/freeclimb/models/update_call_request.rb +31 -35
- data/lib/freeclimb/models/update_call_request_status.rb +12 -14
- data/lib/freeclimb/models/update_conference_participant_request.rb +41 -46
- data/lib/freeclimb/models/update_conference_request.rb +41 -45
- data/lib/freeclimb/models/update_conference_request_status.rb +12 -14
- data/lib/freeclimb/models/webhook.rb +32 -37
- data/lib/freeclimb/utils/request_verifier.rb +14 -14
- data/lib/freeclimb/utils/signature_information.rb +8 -8
- data/lib/freeclimb/version.rb +10 -12
- data/lib/freeclimb.rb +156 -158
- data/openapi.json +3 -0
- data/package.json +1 -1
- data/spec/api/default_api_spec.rb +492 -676
- data/spec/api_client_spec.rb +100 -102
- data/spec/configuration_spec.rb +16 -18
- data/spec/models/account_request_spec.rb +104 -233
- data/spec/models/account_result_spec.rb +393 -1013
- data/spec/models/account_status_spec.rb +27 -30
- data/spec/models/account_type_spec.rb +24 -27
- data/spec/models/add_to_conference_notification_webhook_spec.rb +464 -1197
- data/spec/models/add_to_conference_spec.rb +354 -850
- data/spec/models/add_to_queue_notification_webhook_spec.rb +341 -864
- data/spec/models/answered_by_spec.rb +24 -27
- data/spec/models/application_list_spec.rb +289 -646
- data/spec/models/application_request_spec.rb +265 -679
- data/spec/models/application_result_spec.rb +444 -1184
- data/spec/models/available_number_list_spec.rb +289 -646
- data/spec/models/available_number_spec.rb +271 -650
- data/spec/models/barge_in_reason_spec.rb +27 -30
- data/spec/models/buy_incoming_number_request_spec.rb +136 -322
- data/spec/models/call_control_webhook_spec.rb +203 -503
- data/spec/models/call_direction_spec.rb +27 -30
- data/spec/models/call_ended_reason_spec.rb +107 -110
- data/spec/models/call_list_spec.rb +289 -646
- data/spec/models/call_result_spec.rb +679 -1778
- data/spec/models/call_status_spec.rb +47 -50
- data/spec/models/call_status_webhook_spec.rb +413 -990
- data/spec/models/capabilities_spec.rb +202 -411
- data/spec/models/completion_request_spec.rb +75 -143
- data/spec/models/completion_result_spec.rb +104 -231
- data/spec/models/completion_result_status_spec.rb +24 -27
- data/spec/models/conference_list_spec.rb +289 -646
- data/spec/models/conference_participant_list_spec.rb +289 -646
- data/spec/models/conference_participant_result_spec.rb +384 -938
- data/spec/models/conference_recording_status_webhook_spec.rb +464 -1197
- data/spec/models/conference_result_spec.rb +489 -1263
- data/spec/models/conference_status_spec.rb +31 -34
- data/spec/models/conference_status_webhook_spec.rb +464 -1197
- data/spec/models/create_conference_request_spec.rb +204 -485
- data/spec/models/create_conference_spec.rb +237 -557
- data/spec/models/create_conference_webhook_spec.rb +464 -1197
- data/spec/models/create_web_rtc_token_spec.rb +136 -307
- data/spec/models/dequeue_spec.rb +14 -17
- data/spec/models/dequeue_webhook_spec.rb +400 -1021
- data/spec/models/enqueue_spec.rb +169 -412
- data/spec/models/filter_logs_request_spec.rb +73 -145
- data/spec/models/get_digits_reason_spec.rb +31 -34
- data/spec/models/get_digits_spec.rb +326 -737
- data/spec/models/get_digits_webhook_spec.rb +435 -1127
- data/spec/models/get_speech_reason_spec.rb +39 -42
- data/spec/models/get_speech_spec.rb +399 -1036
- data/spec/models/get_speech_webhook_spec.rb +608 -1553
- data/spec/models/grammar_file_built_in_spec.rb +75 -78
- data/spec/models/grammar_type_spec.rb +24 -27
- data/spec/models/hangup_spec.rb +73 -145
- data/spec/models/if_machine_spec.rb +24 -27
- data/spec/models/inbound_call_webhook_spec.rb +371 -951
- data/spec/models/incoming_number_list_spec.rb +289 -646
- data/spec/models/incoming_number_request_spec.rb +136 -322
- data/spec/models/incoming_number_result_spec.rb +573 -1489
- data/spec/models/language_spec.rb +120 -123
- data/spec/models/leave_conference_webhook_spec.rb +341 -864
- data/spec/models/log_level_spec.rb +27 -30
- data/spec/models/log_list_spec.rb +289 -646
- data/spec/models/log_result_spec.rb +272 -667
- data/spec/models/machine_detected_webhook_spec.rb +401 -1036
- data/spec/models/machine_type_spec.rb +24 -27
- data/spec/models/make_call_request_spec.rb +353 -905
- data/spec/models/message_delivery_webhook_spec.rb +357 -942
- data/spec/models/message_direction_spec.rb +24 -27
- data/spec/models/message_request_spec.rb +324 -818
- data/spec/models/message_result_spec.rb +647 -1710
- data/spec/models/message_status_spec.rb +60 -63
- data/spec/models/message_status_webhook_spec.rb +405 -1045
- data/spec/models/messages_list_spec.rb +289 -646
- data/spec/models/mutable_resource_model_spec.rb +168 -395
- data/spec/models/out_dial_api_connect_webhook_spec.rb +371 -951
- data/spec/models/out_dial_connect_webhook_spec.rb +371 -951
- data/spec/models/out_dial_spec.rb +354 -903
- data/spec/models/out_dial_start_webhook_spec.rb +401 -1038
- data/spec/models/pagination_model_spec.rb +259 -577
- data/spec/models/park_spec.rb +136 -322
- data/spec/models/pause_spec.rb +72 -128
- data/spec/models/percl_command_spec.rb +76 -145
- data/spec/models/percl_script_spec.rb +73 -127
- data/spec/models/play_beep_spec.rb +31 -34
- data/spec/models/play_early_media_spec.rb +73 -145
- data/spec/models/play_spec.rb +135 -287
- data/spec/models/queue_list_spec.rb +289 -646
- data/spec/models/queue_member_list_spec.rb +289 -646
- data/spec/models/queue_member_spec.rb +199 -467
- data/spec/models/queue_request_spec.rb +103 -216
- data/spec/models/queue_result_spec.rb +388 -965
- data/spec/models/queue_result_status_spec.rb +31 -34
- data/spec/models/queue_wait_webhook_spec.rb +429 -1091
- data/spec/models/record_utterance_spec.rb +263 -591
- data/spec/models/record_utterance_term_reason_spec.rb +31 -34
- data/spec/models/record_webhook_spec.rb +605 -1548
- data/spec/models/recording_list_spec.rb +289 -646
- data/spec/models/recording_result_spec.rb +323 -819
- data/spec/models/redirect_spec.rb +73 -145
- data/spec/models/redirect_webhook_spec.rb +371 -951
- data/spec/models/reject_spec.rb +73 -145
- data/spec/models/remove_from_conference_spec.rb +14 -17
- data/spec/models/remove_from_queue_notification_webhook_spec.rb +404 -1023
- data/spec/models/request_type_spec.rb +107 -110
- data/spec/models/say_spec.rb +168 -377
- data/spec/models/send_digits_spec.rb +135 -287
- data/spec/models/set_dtmf_pass_through_spec.rb +74 -127
- data/spec/models/set_listen_spec.rb +74 -127
- data/spec/models/set_talk_spec.rb +74 -127
- data/spec/models/sms_spec.rb +169 -412
- data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +31 -34
- data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +35 -38
- data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +31 -34
- data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +35 -38
- data/spec/models/sms_ten_dlc_brand_spec.rb +1082 -2746
- data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +124 -127
- data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +289 -646
- data/spec/models/sms_ten_dlc_campaign_spec.rb +1139 -2881
- data/spec/models/sms_ten_dlc_campaign_status_spec.rb +24 -27
- data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +289 -646
- data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +406 -1004
- data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +961 -2393
- data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +24 -27
- data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +289 -646
- data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +35 -38
- data/spec/models/sms_toll_free_campaign_spec.rb +270 -666
- data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +289 -646
- data/spec/models/start_record_call_spec.rb +14 -17
- data/spec/models/terminate_conference_spec.rb +14 -17
- data/spec/models/tfn_campaign_spec.rb +330 -858
- data/spec/models/tfn_spec.rb +73 -145
- data/spec/models/transcribe_reason_spec.rb +35 -38
- data/spec/models/transcribe_term_reason_spec.rb +24 -27
- data/spec/models/transcribe_utterance_record_spec.rb +134 -270
- data/spec/models/transcribe_utterance_spec.rb +236 -523
- data/spec/models/transcribe_webhook_spec.rb +749 -1918
- data/spec/models/unpark_spec.rb +14 -17
- data/spec/models/update_call_request_spec.rb +74 -143
- data/spec/models/update_call_request_status_spec.rb +24 -27
- data/spec/models/update_conference_participant_request_spec.rb +137 -268
- data/spec/models/update_conference_request_spec.rb +140 -321
- data/spec/models/update_conference_request_status_spec.rb +24 -27
- data/spec/models/webhook_spec.rb +68 -137
- data/spec/quickstart_spec.rb +5 -5
- data/spec/spec_helper.rb +92 -100
- data/spec/utils/request_verifier_spec.rb +70 -71
- data/spec/utils/signature_information_spec.rb +23 -23
- data/yarn.lock +9 -0
- metadata +3 -151
@@ -1,18 +1,16 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
# #FreeClimb API
|
2
|
+
#
|
3
|
+
# FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
4
|
+
#
|
5
|
+
# The version of the OpenAPI document: 1.0.0
|
6
|
+
# Contact: support@freeclimb.com
|
7
|
+
# Generated by: https://openapi-generator.tech
|
8
|
+
# OpenAPI Generator version: 7.9.0
|
9
|
+
#
|
3
10
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
Contact: support@freeclimb.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.9.0
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
11
|
+
require "spec_helper"
|
12
|
+
require "json"
|
13
|
+
require "date"
|
16
14
|
include Freeclimb
|
17
15
|
|
18
16
|
# Unit tests for Freeclimb::TranscribeWebhook
|
@@ -21,2239 +19,1110 @@ include Freeclimb
|
|
21
19
|
describe Freeclimb::TranscribeWebhook do
|
22
20
|
let(:instance) { Freeclimb::TranscribeWebhook.new }
|
23
21
|
|
24
|
-
describe
|
25
|
-
it
|
22
|
+
describe "test an instance of TranscribeWebhook" do
|
23
|
+
it "should create an instance of TranscribeWebhook" do
|
26
24
|
expect(instance).to be_instance_of(Freeclimb::TranscribeWebhook)
|
27
25
|
end
|
28
26
|
end
|
29
|
-
describe
|
30
|
-
it
|
27
|
+
describe ".deserialize" do
|
28
|
+
it "deserializes a json payload into instance of TranscribeWebhook" do
|
31
29
|
payload = '{ "requestType": "transcribe" }'
|
32
30
|
expect(Freeclimb::TranscribeWebhook.deserialize(payload)).to be_instance_of(Freeclimb::TranscribeWebhook)
|
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 "account_id"' do
|
48
|
-
it
|
49
|
-
|
42
|
+
it "should work" do
|
50
43
|
instance.account_id = "TEST_STRING"
|
51
|
-
expect(instance.account_id).to eq("TEST_STRING")
|
52
|
-
|
53
|
-
|
54
|
-
|
44
|
+
expect(instance.account_id).to eq("TEST_STRING")
|
55
45
|
end
|
56
46
|
end
|
57
47
|
|
58
48
|
describe 'test attribute "call_id"' do
|
59
|
-
it
|
60
|
-
|
49
|
+
it "should work" do
|
61
50
|
instance.call_id = "TEST_STRING"
|
62
|
-
expect(instance.call_id).to eq("TEST_STRING")
|
63
|
-
|
64
|
-
|
65
|
-
|
51
|
+
expect(instance.call_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
69
|
describe 'test attribute "recording_id"' do
|
92
|
-
it
|
93
|
-
|
70
|
+
it "should work" do
|
94
71
|
instance.recording_id = "TEST_STRING"
|
95
|
-
expect(instance.recording_id).to eq("TEST_STRING")
|
96
|
-
|
97
|
-
|
98
|
-
|
72
|
+
expect(instance.recording_id).to eq("TEST_STRING")
|
99
73
|
end
|
100
74
|
end
|
101
75
|
|
102
76
|
describe 'test attribute "recording_url"' do
|
103
|
-
it
|
104
|
-
|
77
|
+
it "should work" do
|
105
78
|
instance.recording_url = "TEST_STRING"
|
106
|
-
expect(instance.recording_url).to eq("TEST_STRING")
|
107
|
-
|
108
|
-
|
109
|
-
|
79
|
+
expect(instance.recording_url).to eq("TEST_STRING")
|
110
80
|
end
|
111
81
|
end
|
112
82
|
|
113
83
|
describe 'test attribute "recording_size"' do
|
114
|
-
it
|
115
|
-
|
116
|
-
|
84
|
+
it "should work" do
|
117
85
|
instance.recording_size = 1
|
118
86
|
expect(instance.recording_size).to eq(1)
|
119
|
-
|
120
|
-
|
121
|
-
|
122
87
|
end
|
123
88
|
end
|
124
89
|
|
125
90
|
describe 'test attribute "recording_format"' do
|
126
|
-
it
|
127
|
-
|
91
|
+
it "should work" do
|
128
92
|
instance.recording_format = "TEST_STRING"
|
129
|
-
expect(instance.recording_format).to eq("TEST_STRING")
|
130
|
-
|
131
|
-
|
132
|
-
|
93
|
+
expect(instance.recording_format).to eq("TEST_STRING")
|
133
94
|
end
|
134
95
|
end
|
135
96
|
|
136
97
|
describe 'test attribute "recording_duration_ms"' do
|
137
|
-
it
|
138
|
-
|
139
|
-
|
98
|
+
it "should work" do
|
140
99
|
instance.recording_duration_ms = 1
|
141
100
|
expect(instance.recording_duration_ms).to eq(1)
|
142
|
-
|
143
|
-
|
144
|
-
|
145
101
|
end
|
146
102
|
end
|
147
103
|
|
148
|
-
|
149
104
|
describe 'test attribute "term_reason"' do
|
150
|
-
it
|
105
|
+
it "assigns value ERROR" do
|
151
106
|
instance.term_reason = Freeclimb::TranscribeTermReason::ERROR
|
152
|
-
expect(instance.term_reason).to eq(Freeclimb::TranscribeTermReason::ERROR)
|
107
|
+
expect(instance.term_reason).to eq(Freeclimb::TranscribeTermReason::ERROR)
|
153
108
|
end
|
154
|
-
it
|
109
|
+
it "assigns value COMPLETED" do
|
155
110
|
instance.term_reason = Freeclimb::TranscribeTermReason::COMPLETED
|
156
|
-
expect(instance.term_reason).to eq(Freeclimb::TranscribeTermReason::COMPLETED)
|
111
|
+
expect(instance.term_reason).to eq(Freeclimb::TranscribeTermReason::COMPLETED)
|
157
112
|
end
|
158
113
|
end
|
159
114
|
|
160
115
|
describe 'test attribute "record_term_reason"' do
|
161
|
-
it
|
116
|
+
it "assigns value FINISH_KEY" do
|
162
117
|
instance.record_term_reason = Freeclimb::RecordUtteranceTermReason::FINISH_KEY
|
163
|
-
expect(instance.record_term_reason).to eq(Freeclimb::RecordUtteranceTermReason::FINISH_KEY)
|
118
|
+
expect(instance.record_term_reason).to eq(Freeclimb::RecordUtteranceTermReason::FINISH_KEY)
|
164
119
|
end
|
165
|
-
it
|
120
|
+
it "assigns value TIMEOUT" do
|
166
121
|
instance.record_term_reason = Freeclimb::RecordUtteranceTermReason::TIMEOUT
|
167
|
-
expect(instance.record_term_reason).to eq(Freeclimb::RecordUtteranceTermReason::TIMEOUT)
|
122
|
+
expect(instance.record_term_reason).to eq(Freeclimb::RecordUtteranceTermReason::TIMEOUT)
|
168
123
|
end
|
169
|
-
it
|
124
|
+
it "assigns value HANGUP" do
|
170
125
|
instance.record_term_reason = Freeclimb::RecordUtteranceTermReason::HANGUP
|
171
|
-
expect(instance.record_term_reason).to eq(Freeclimb::RecordUtteranceTermReason::HANGUP)
|
126
|
+
expect(instance.record_term_reason).to eq(Freeclimb::RecordUtteranceTermReason::HANGUP)
|
172
127
|
end
|
173
|
-
it
|
128
|
+
it "assigns value MAX_LENGTH" do
|
174
129
|
instance.record_term_reason = Freeclimb::RecordUtteranceTermReason::MAX_LENGTH
|
175
|
-
expect(instance.record_term_reason).to eq(Freeclimb::RecordUtteranceTermReason::MAX_LENGTH)
|
130
|
+
expect(instance.record_term_reason).to eq(Freeclimb::RecordUtteranceTermReason::MAX_LENGTH)
|
176
131
|
end
|
177
132
|
end
|
178
133
|
describe 'test attribute "digit"' do
|
179
|
-
it
|
180
|
-
|
134
|
+
it "should work" do
|
181
135
|
instance.digit = "TEST_STRING"
|
182
|
-
expect(instance.digit).to eq("TEST_STRING")
|
183
|
-
|
184
|
-
|
185
|
-
|
136
|
+
expect(instance.digit).to eq("TEST_STRING")
|
186
137
|
end
|
187
138
|
end
|
188
139
|
|
189
140
|
describe 'test attribute "privacy_for_logging"' do
|
190
|
-
it
|
141
|
+
it "should work" do
|
191
142
|
instance.privacy_for_logging = false
|
192
|
-
expect(instance.privacy_for_logging).to eq(false)
|
193
|
-
|
194
|
-
|
195
|
-
|
143
|
+
expect(instance.privacy_for_logging).to eq(false)
|
196
144
|
end
|
197
145
|
end
|
198
146
|
|
199
147
|
describe 'test attribute "privacy_for_recording"' do
|
200
|
-
it
|
148
|
+
it "should work" do
|
201
149
|
instance.privacy_for_recording = false
|
202
|
-
expect(instance.privacy_for_recording).to eq(false)
|
203
|
-
|
204
|
-
|
205
|
-
|
150
|
+
expect(instance.privacy_for_recording).to eq(false)
|
206
151
|
end
|
207
152
|
end
|
208
153
|
|
209
|
-
|
210
154
|
describe 'test attribute "barge_in_reason"' do
|
211
|
-
it
|
155
|
+
it "assigns value NO_BARGE_IN" do
|
212
156
|
instance.barge_in_reason = Freeclimb::BargeInReason::NO_BARGE_IN
|
213
|
-
expect(instance.barge_in_reason).to eq(Freeclimb::BargeInReason::NO_BARGE_IN)
|
157
|
+
expect(instance.barge_in_reason).to eq(Freeclimb::BargeInReason::NO_BARGE_IN)
|
214
158
|
end
|
215
|
-
it
|
159
|
+
it "assigns value BARGE_IN_BY_DTMF" do
|
216
160
|
instance.barge_in_reason = Freeclimb::BargeInReason::BARGE_IN_BY_DTMF
|
217
|
-
expect(instance.barge_in_reason).to eq(Freeclimb::BargeInReason::BARGE_IN_BY_DTMF)
|
161
|
+
expect(instance.barge_in_reason).to eq(Freeclimb::BargeInReason::BARGE_IN_BY_DTMF)
|
218
162
|
end
|
219
|
-
it
|
163
|
+
it "assigns value BARGE_IN_BY_ENERGY" do
|
220
164
|
instance.barge_in_reason = Freeclimb::BargeInReason::BARGE_IN_BY_ENERGY
|
221
|
-
expect(instance.barge_in_reason).to eq(Freeclimb::BargeInReason::BARGE_IN_BY_ENERGY)
|
165
|
+
expect(instance.barge_in_reason).to eq(Freeclimb::BargeInReason::BARGE_IN_BY_ENERGY)
|
222
166
|
end
|
223
167
|
end
|
224
168
|
describe 'test attribute "barged_in_prompt_no"' do
|
225
|
-
it
|
226
|
-
|
227
|
-
|
169
|
+
it "should work" do
|
228
170
|
instance.barged_in_prompt_no = 1
|
229
171
|
expect(instance.barged_in_prompt_no).to eq(1)
|
230
|
-
|
231
|
-
|
232
|
-
|
233
172
|
end
|
234
173
|
end
|
235
174
|
|
236
175
|
describe 'test attribute "barged_in_prompt_ms"' do
|
237
|
-
it
|
238
|
-
|
239
|
-
|
176
|
+
it "should work" do
|
240
177
|
instance.barged_in_prompt_ms = 1
|
241
178
|
expect(instance.barged_in_prompt_ms).to eq(1)
|
242
|
-
|
243
|
-
|
244
|
-
|
245
179
|
end
|
246
180
|
end
|
247
181
|
|
248
182
|
describe 'test attribute "barged_in_prompt_loop_no"' do
|
249
|
-
it
|
250
|
-
|
251
|
-
|
183
|
+
it "should work" do
|
252
184
|
instance.barged_in_prompt_loop_no = 1
|
253
185
|
expect(instance.barged_in_prompt_loop_no).to eq(1)
|
254
|
-
|
255
|
-
|
256
|
-
|
257
186
|
end
|
258
187
|
end
|
259
188
|
|
260
189
|
describe 'test attribute "barge_in_time_ms"' do
|
261
|
-
it
|
262
|
-
|
263
|
-
|
190
|
+
it "should work" do
|
264
191
|
instance.barge_in_time_ms = 1
|
265
192
|
expect(instance.barge_in_time_ms).to eq(1)
|
266
|
-
|
267
|
-
|
268
|
-
|
269
193
|
end
|
270
194
|
end
|
271
195
|
|
272
196
|
describe 'test attribute "transcript"' do
|
273
|
-
it
|
274
|
-
|
197
|
+
it "should work" do
|
275
198
|
instance.transcript = "TEST_STRING"
|
276
|
-
expect(instance.transcript).to eq("TEST_STRING")
|
277
|
-
|
278
|
-
|
279
|
-
|
199
|
+
expect(instance.transcript).to eq("TEST_STRING")
|
280
200
|
end
|
281
201
|
end
|
282
202
|
|
283
|
-
|
284
203
|
describe 'test attribute "transcribe_reason"' do
|
285
|
-
it
|
204
|
+
it "assigns value INTERNAL_ERROR" do
|
286
205
|
instance.transcribe_reason = Freeclimb::TranscribeReason::INTERNAL_ERROR
|
287
|
-
expect(instance.transcribe_reason).to eq(Freeclimb::TranscribeReason::INTERNAL_ERROR)
|
206
|
+
expect(instance.transcribe_reason).to eq(Freeclimb::TranscribeReason::INTERNAL_ERROR)
|
288
207
|
end
|
289
|
-
it
|
208
|
+
it "assigns value HANGUP" do
|
290
209
|
instance.transcribe_reason = Freeclimb::TranscribeReason::HANGUP
|
291
|
-
expect(instance.transcribe_reason).to eq(Freeclimb::TranscribeReason::HANGUP)
|
210
|
+
expect(instance.transcribe_reason).to eq(Freeclimb::TranscribeReason::HANGUP)
|
292
211
|
end
|
293
|
-
it
|
212
|
+
it "assigns value MAX_LENGTH" do
|
294
213
|
instance.transcribe_reason = Freeclimb::TranscribeReason::MAX_LENGTH
|
295
|
-
expect(instance.transcribe_reason).to eq(Freeclimb::TranscribeReason::MAX_LENGTH)
|
214
|
+
expect(instance.transcribe_reason).to eq(Freeclimb::TranscribeReason::MAX_LENGTH)
|
296
215
|
end
|
297
|
-
it
|
216
|
+
it "assigns value DIGIT" do
|
298
217
|
instance.transcribe_reason = Freeclimb::TranscribeReason::DIGIT
|
299
|
-
expect(instance.transcribe_reason).to eq(Freeclimb::TranscribeReason::DIGIT)
|
218
|
+
expect(instance.transcribe_reason).to eq(Freeclimb::TranscribeReason::DIGIT)
|
300
219
|
end
|
301
|
-
it
|
220
|
+
it "assigns value NO_INPUT" do
|
302
221
|
instance.transcribe_reason = Freeclimb::TranscribeReason::NO_INPUT
|
303
|
-
expect(instance.transcribe_reason).to eq(Freeclimb::TranscribeReason::NO_INPUT)
|
222
|
+
expect(instance.transcribe_reason).to eq(Freeclimb::TranscribeReason::NO_INPUT)
|
304
223
|
end
|
305
224
|
end
|
306
225
|
describe 'test attribute "transcription_duration_ms"' do
|
307
|
-
it
|
308
|
-
|
309
|
-
|
226
|
+
it "should work" do
|
310
227
|
instance.transcription_duration_ms = 1
|
311
228
|
expect(instance.transcription_duration_ms).to eq(1)
|
312
|
-
|
313
|
-
|
314
|
-
|
315
229
|
end
|
316
230
|
end
|
317
231
|
|
318
232
|
describe 'test method "initialize"' do
|
319
|
-
it
|
320
|
-
expect {
|
321
|
-
|
322
|
-
request_type: "TS",
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
account_id: "TS",
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
call_id: "TS",
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
from: "TS",
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
to: "TS",
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
recording_id: "TS",
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
recording_url: "TS",
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
recording_size: 1,
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
recording_format: "TS",
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
recording_duration_ms: 1,
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
digit: "TS",
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
privacy_for_logging: true,
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
privacy_for_recording: true,
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
barged_in_prompt_no: 1,
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
barged_in_prompt_ms: 1,
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
barged_in_prompt_loop_no: 1,
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
barge_in_time_ms: 1,
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
transcript: "TS",
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
transcription_duration_ms: 1,
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
)}.not_to raise_error()
|
428
|
-
end
|
429
|
-
it 'fails to initialize with input argument that is not a hash in Freeclimb::TranscribeWebhook' do
|
430
|
-
expect { instance = Freeclimb::TranscribeWebhook.new(
|
431
|
-
|
432
|
-
request_type: "TS",
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
account_id: "TS",
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
call_id: "TS",
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
from: "TS",
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
to: "TS",
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
recording_id: "TS",
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
recording_url: "TS",
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
recording_size: 1,
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
recording_format: "TS",
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
recording_duration_ms: 1,
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
digit: "TS",
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
privacy_for_logging: true,
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
privacy_for_recording: true,
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
barged_in_prompt_no: 1,
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
barged_in_prompt_ms: 1,
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
barged_in_prompt_loop_no: 1,
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
barge_in_time_ms: 1,
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
transcript: "TS",
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
transcription_duration_ms: 1,
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
invalid_attribute: true
|
538
|
-
)}.to raise_error(ArgumentError)
|
539
|
-
end
|
540
|
-
it 'fails to initialize with invalid attribute' do
|
541
|
-
expect { instance = Freeclimb::TranscribeWebhook.new(
|
542
|
-
|
543
|
-
request_type: "TS",
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
account_id: "TS",
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
call_id: "TS",
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
from: "TS",
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
to: "TS",
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
recording_id: "TS",
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
recording_url: "TS",
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
recording_size: 1,
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
recording_format: "TS",
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
recording_duration_ms: 1,
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
digit: "TS",
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
privacy_for_logging: true,
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
privacy_for_recording: true,
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
barged_in_prompt_no: 1,
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
barged_in_prompt_ms: 1,
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
barged_in_prompt_loop_no: 1,
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
barge_in_time_ms: 1,
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
transcript: "TS",
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
transcription_duration_ms: 1,
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
invalid_attribute: true
|
649
|
-
)}.to raise_error(ArgumentError)
|
650
|
-
end
|
651
|
-
end
|
652
|
-
|
653
|
-
describe 'test method "valid"' do
|
654
|
-
it 'checks if properties are valid' do
|
655
|
-
instance = Freeclimb::TranscribeWebhook.new(
|
656
|
-
|
233
|
+
it "properly initializes with values" do
|
234
|
+
expect {
|
235
|
+
Freeclimb::TranscribeWebhook.new(
|
657
236
|
request_type: "TS",
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
237
|
+
|
662
238
|
account_id: "TS",
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
239
|
+
|
667
240
|
call_id: "TS",
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
241
|
+
|
672
242
|
from: "TS",
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
243
|
+
|
677
244
|
to: "TS",
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
245
|
+
|
682
246
|
recording_id: "TS",
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
247
|
+
|
687
248
|
recording_url: "TS",
|
688
|
-
|
689
|
-
|
690
|
-
|
249
|
+
|
691
250
|
recording_size: 1,
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
251
|
+
|
696
252
|
recording_format: "TS",
|
697
|
-
|
698
|
-
|
699
|
-
|
253
|
+
|
700
254
|
recording_duration_ms: 1,
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
255
|
+
|
705
256
|
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
257
|
+
|
710
258
|
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
259
|
+
|
715
260
|
digit: "TS",
|
716
|
-
|
717
|
-
|
718
|
-
|
261
|
+
|
719
262
|
privacy_for_logging: true,
|
720
|
-
|
721
|
-
|
722
|
-
|
263
|
+
|
723
264
|
privacy_for_recording: true,
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
265
|
+
|
728
266
|
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
729
|
-
|
730
|
-
|
731
|
-
|
267
|
+
|
732
268
|
barged_in_prompt_no: 1,
|
733
|
-
|
734
|
-
|
735
|
-
|
269
|
+
|
736
270
|
barged_in_prompt_ms: 1,
|
737
|
-
|
738
|
-
|
739
|
-
|
271
|
+
|
740
272
|
barged_in_prompt_loop_no: 1,
|
741
|
-
|
742
|
-
|
743
|
-
|
273
|
+
|
744
274
|
barge_in_time_ms: 1,
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
275
|
+
|
749
276
|
transcript: "TS",
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
transcription_duration_ms: 1,
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
)
|
763
|
-
expect(instance.valid?).to eq(true)
|
764
|
-
end
|
765
277
|
|
278
|
+
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
766
279
|
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
)
|
771
|
-
expect(instance.valid?).to eq(false)
|
280
|
+
transcription_duration_ms: 1
|
281
|
+
)
|
282
|
+
}.not_to raise_error
|
772
283
|
end
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
describe 'test method "eql?"' do
|
777
|
-
it 'checks if objects are equal' do
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
instance_1 = Freeclimb::TranscribeWebhook.new(
|
802
|
-
|
284
|
+
it "fails to initialize with input argument that is not a hash in Freeclimb::TranscribeWebhook" do
|
285
|
+
expect {
|
286
|
+
Freeclimb::TranscribeWebhook.new(
|
803
287
|
request_type: "TS",
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
288
|
+
|
808
289
|
account_id: "TS",
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
290
|
+
|
813
291
|
call_id: "TS",
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
292
|
+
|
818
293
|
from: "TS",
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
294
|
+
|
823
295
|
to: "TS",
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
296
|
+
|
828
297
|
recording_id: "TS",
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
298
|
+
|
833
299
|
recording_url: "TS",
|
834
|
-
|
835
|
-
|
836
|
-
|
300
|
+
|
837
301
|
recording_size: 1,
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
302
|
+
|
842
303
|
recording_format: "TS",
|
843
|
-
|
844
|
-
|
845
|
-
|
304
|
+
|
846
305
|
recording_duration_ms: 1,
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
306
|
+
|
853
307
|
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
308
|
+
|
858
309
|
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
859
|
-
|
860
|
-
|
310
|
+
|
861
311
|
digit: "TS",
|
862
|
-
|
863
|
-
|
864
|
-
|
312
|
+
|
865
313
|
privacy_for_logging: true,
|
866
|
-
|
867
|
-
|
868
|
-
|
314
|
+
|
869
315
|
privacy_for_recording: true,
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
316
|
+
|
876
317
|
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
877
|
-
|
318
|
+
|
878
319
|
barged_in_prompt_no: 1,
|
879
|
-
|
880
|
-
|
881
|
-
|
320
|
+
|
882
321
|
barged_in_prompt_ms: 1,
|
883
|
-
|
884
|
-
|
885
|
-
|
322
|
+
|
886
323
|
barged_in_prompt_loop_no: 1,
|
887
|
-
|
888
|
-
|
889
|
-
|
324
|
+
|
890
325
|
barge_in_time_ms: 1,
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
326
|
+
|
895
327
|
transcript: "TS",
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
328
|
+
|
902
329
|
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
903
|
-
|
330
|
+
|
904
331
|
transcription_duration_ms: 1,
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
)
|
909
|
-
|
910
|
-
|
332
|
+
|
333
|
+
invalid_attribute: true
|
334
|
+
)
|
335
|
+
}.to raise_error(ArgumentError)
|
336
|
+
end
|
337
|
+
it "fails to initialize with invalid attribute" do
|
338
|
+
expect {
|
339
|
+
Freeclimb::TranscribeWebhook.new(
|
911
340
|
request_type: "TS",
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
341
|
+
|
916
342
|
account_id: "TS",
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
343
|
+
|
921
344
|
call_id: "TS",
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
345
|
+
|
926
346
|
from: "TS",
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
347
|
+
|
931
348
|
to: "TS",
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
349
|
+
|
936
350
|
recording_id: "TS",
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
351
|
+
|
941
352
|
recording_url: "TS",
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
353
|
+
|
947
354
|
recording_size: 1,
|
948
|
-
|
949
|
-
|
355
|
+
|
950
356
|
recording_format: "TS",
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
357
|
+
|
956
358
|
recording_duration_ms: 1,
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
359
|
+
|
961
360
|
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
361
|
+
|
966
362
|
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
967
|
-
|
968
|
-
|
363
|
+
|
969
364
|
digit: "TS",
|
970
|
-
|
971
|
-
|
972
|
-
|
365
|
+
|
973
366
|
privacy_for_logging: true,
|
974
|
-
|
975
|
-
|
976
|
-
|
367
|
+
|
977
368
|
privacy_for_recording: true,
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
369
|
+
|
984
370
|
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
985
|
-
|
986
|
-
|
987
|
-
|
371
|
+
|
988
372
|
barged_in_prompt_no: 1,
|
989
|
-
|
990
|
-
|
991
|
-
|
373
|
+
|
992
374
|
barged_in_prompt_ms: 1,
|
993
|
-
|
994
|
-
|
995
|
-
|
375
|
+
|
996
376
|
barged_in_prompt_loop_no: 1,
|
997
|
-
|
998
|
-
|
999
|
-
|
377
|
+
|
1000
378
|
barge_in_time_ms: 1,
|
1001
|
-
|
1002
|
-
|
1003
|
-
transcript: "TS",
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
transcription_duration_ms: 1,
|
1015
|
-
|
1016
|
-
)
|
1017
|
-
expect(instance_1.eql?(instance_2)).to eq(true)
|
1018
|
-
end
|
1019
|
-
|
1020
|
-
it 'checks if objects are not equal' do
|
1021
|
-
instance_1 = Freeclimb::TranscribeWebhook.new(
|
1022
|
-
|
1023
|
-
request_type: "TS",
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
account_id: "TS",
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
call_id: "TS",
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
from: "TS",
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
to: "TS",
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
recording_id: "TS",
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
recording_url: "TS",
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
recording_size: 2,
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
recording_format: "TS",
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
recording_duration_ms: 2,
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
1079
|
-
|
1080
|
-
|
1081
|
-
digit: "TS",
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
privacy_for_logging: true,
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
privacy_for_recording: true,
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
1097
|
-
|
1098
|
-
barged_in_prompt_no: 2,
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
barged_in_prompt_ms: 2,
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
barged_in_prompt_loop_no: 2,
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
barge_in_time_ms: 2,
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
379
|
+
|
1115
380
|
transcript: "TS",
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
381
|
+
|
1122
382
|
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
1123
|
-
|
1124
|
-
transcription_duration_ms: 2,
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
)
|
1129
|
-
instance_2 = Freeclimb::TranscribeWebhook.new(
|
1130
|
-
|
1131
|
-
request_type: "ST",
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
account_id: "ST",
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
call_id: "ST",
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
from: "ST",
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
to: "ST",
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
recording_id: "ST",
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
recording_url: "ST",
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
recording_size: 1,
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
recording_format: "ST",
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
recording_duration_ms: 1,
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1181
|
-
term_reason: nil,
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
record_term_reason: nil,
|
1187
|
-
|
1188
|
-
|
1189
|
-
digit: "ST",
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
privacy_for_logging: false,
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
privacy_for_recording: false,
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
barge_in_reason: nil,
|
1205
|
-
|
1206
|
-
barged_in_prompt_no: 1,
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
barged_in_prompt_ms: 1,
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
barged_in_prompt_loop_no: 1,
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
barge_in_time_ms: 1,
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
transcript: "ST",
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
transcribe_reason: nil,
|
1231
|
-
|
383
|
+
|
1232
384
|
transcription_duration_ms: 1,
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
1236
|
-
)
|
1237
|
-
expect(instance_1.eql?(instance_2)).to eq(false)
|
1238
|
-
end
|
1239
|
-
end
|
1240
|
-
|
1241
|
-
describe 'test method "hash"' do
|
1242
|
-
it 'calculates hash code' do
|
1243
|
-
instance = Freeclimb::TranscribeWebhook.new(
|
1244
|
-
|
1245
|
-
request_type: "TS",
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
account_id: "TS",
|
1251
|
-
|
1252
|
-
|
1253
|
-
|
1254
|
-
|
1255
|
-
call_id: "TS",
|
1256
|
-
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
from: "TS",
|
1261
|
-
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
to: "TS",
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
recording_id: "TS",
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
recording_url: "TS",
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
recording_size: 1,
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
recording_format: "TS",
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
recording_duration_ms: 1,
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1297
|
-
|
1298
|
-
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
digit: "TS",
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
privacy_for_logging: true,
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
privacy_for_recording: true,
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
barged_in_prompt_no: 1,
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
barged_in_prompt_ms: 1,
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
barged_in_prompt_loop_no: 1,
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
barge_in_time_ms: 1,
|
1333
|
-
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
transcript: "TS",
|
1338
|
-
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
transcription_duration_ms: 1,
|
1347
|
-
|
1348
|
-
|
1349
|
-
|
1350
|
-
)
|
1351
|
-
expect(instance.hash).to be_a_kind_of(Integer)
|
385
|
+
|
386
|
+
invalid_attribute: true
|
387
|
+
)
|
388
|
+
}.to raise_error(ArgumentError)
|
1352
389
|
end
|
1353
390
|
end
|
1354
391
|
|
1355
|
-
describe 'test method "
|
1356
|
-
it
|
1357
|
-
|
1358
|
-
|
392
|
+
describe 'test method "valid"' do
|
393
|
+
it "checks if properties are valid" do
|
394
|
+
instance = Freeclimb::TranscribeWebhook.new(
|
1359
395
|
request_type: "TS",
|
1360
|
-
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
396
|
+
|
1364
397
|
account_id: "TS",
|
1365
|
-
|
1366
|
-
|
1367
|
-
|
1368
|
-
|
398
|
+
|
1369
399
|
call_id: "TS",
|
1370
|
-
|
1371
|
-
|
1372
|
-
|
1373
|
-
|
400
|
+
|
1374
401
|
from: "TS",
|
1375
|
-
|
1376
|
-
|
1377
|
-
|
1378
|
-
|
402
|
+
|
1379
403
|
to: "TS",
|
1380
|
-
|
1381
|
-
|
1382
|
-
|
1383
|
-
|
404
|
+
|
1384
405
|
recording_id: "TS",
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1388
|
-
|
406
|
+
|
1389
407
|
recording_url: "TS",
|
1390
|
-
|
1391
|
-
|
1392
|
-
|
408
|
+
|
1393
409
|
recording_size: 1,
|
1394
|
-
|
1395
|
-
|
1396
|
-
|
1397
|
-
|
410
|
+
|
1398
411
|
recording_format: "TS",
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
412
|
+
|
1402
413
|
recording_duration_ms: 1,
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
414
|
+
|
1407
415
|
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
1408
|
-
|
1409
|
-
|
1410
|
-
|
1411
|
-
|
416
|
+
|
1412
417
|
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
1413
|
-
|
1414
|
-
|
1415
|
-
|
1416
|
-
|
418
|
+
|
1417
419
|
digit: "TS",
|
1418
|
-
|
1419
|
-
|
1420
|
-
|
420
|
+
|
1421
421
|
privacy_for_logging: true,
|
1422
|
-
|
1423
|
-
|
1424
|
-
|
422
|
+
|
1425
423
|
privacy_for_recording: true,
|
1426
|
-
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
424
|
+
|
1430
425
|
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
1431
|
-
|
1432
|
-
|
1433
|
-
|
426
|
+
|
1434
427
|
barged_in_prompt_no: 1,
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
428
|
+
|
1438
429
|
barged_in_prompt_ms: 1,
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
430
|
+
|
1442
431
|
barged_in_prompt_loop_no: 1,
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
432
|
+
|
1446
433
|
barge_in_time_ms: 1,
|
1447
|
-
|
1448
|
-
|
1449
|
-
|
1450
|
-
|
434
|
+
|
1451
435
|
transcript: "TS",
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
436
|
+
|
1456
437
|
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
transcription_duration_ms: 1,
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
438
|
+
|
439
|
+
transcription_duration_ms: 1
|
1464
440
|
)
|
1465
|
-
|
1466
|
-
|
441
|
+
expect(instance.valid?).to eq(true)
|
442
|
+
end
|
443
|
+
|
444
|
+
skip "checks if properties are invalid" do
|
445
|
+
instance = Freeclimb::TranscribeWebhook.new
|
446
|
+
|
447
|
+
expect(instance.valid?).to eq(false)
|
448
|
+
end
|
449
|
+
end
|
450
|
+
|
451
|
+
describe 'test method "eql?"' do
|
452
|
+
it "checks if objects are equal" do
|
453
|
+
instance_1 = Freeclimb::TranscribeWebhook.new(
|
1467
454
|
request_type: "TS",
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
455
|
+
|
1472
456
|
account_id: "TS",
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
457
|
+
|
1477
458
|
call_id: "TS",
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
459
|
+
|
1482
460
|
from: "TS",
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1486
|
-
|
461
|
+
|
1487
462
|
to: "TS",
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
463
|
+
|
1492
464
|
recording_id: "TS",
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
465
|
+
|
1497
466
|
recording_url: "TS",
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
467
|
+
|
1501
468
|
recording_size: 1,
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
469
|
+
|
1506
470
|
recording_format: "TS",
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
471
|
+
|
1510
472
|
recording_duration_ms: 1,
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
473
|
+
|
1515
474
|
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
475
|
+
|
1520
476
|
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1524
|
-
|
477
|
+
|
1525
478
|
digit: "TS",
|
1526
|
-
|
1527
|
-
|
1528
|
-
|
479
|
+
|
1529
480
|
privacy_for_logging: true,
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
481
|
+
|
1533
482
|
privacy_for_recording: true,
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1537
|
-
|
483
|
+
|
1538
484
|
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
485
|
+
|
1542
486
|
barged_in_prompt_no: 1,
|
1543
|
-
|
1544
|
-
|
1545
|
-
|
487
|
+
|
1546
488
|
barged_in_prompt_ms: 1,
|
1547
|
-
|
1548
|
-
|
1549
|
-
|
489
|
+
|
1550
490
|
barged_in_prompt_loop_no: 1,
|
1551
|
-
|
1552
|
-
|
1553
|
-
|
491
|
+
|
1554
492
|
barge_in_time_ms: 1,
|
1555
|
-
|
1556
|
-
|
1557
|
-
|
1558
|
-
|
493
|
+
|
1559
494
|
transcript: "TS",
|
1560
|
-
|
1561
|
-
|
1562
|
-
|
1563
|
-
|
495
|
+
|
1564
496
|
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
transcription_duration_ms: 1,
|
1569
|
-
|
1570
|
-
|
1571
|
-
|
497
|
+
|
498
|
+
transcription_duration_ms: 1
|
1572
499
|
)
|
500
|
+
instance_2 = Freeclimb::TranscribeWebhook.new(
|
501
|
+
request_type: "TS",
|
1573
502
|
|
1574
|
-
|
503
|
+
account_id: "TS",
|
504
|
+
|
505
|
+
call_id: "TS",
|
506
|
+
|
507
|
+
from: "TS",
|
508
|
+
|
509
|
+
to: "TS",
|
510
|
+
|
511
|
+
recording_id: "TS",
|
512
|
+
|
513
|
+
recording_url: "TS",
|
514
|
+
|
515
|
+
recording_size: 1,
|
516
|
+
|
517
|
+
recording_format: "TS",
|
518
|
+
|
519
|
+
recording_duration_ms: 1,
|
520
|
+
|
521
|
+
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
522
|
+
|
523
|
+
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
524
|
+
|
525
|
+
digit: "TS",
|
526
|
+
|
527
|
+
privacy_for_logging: true,
|
528
|
+
|
529
|
+
privacy_for_recording: true,
|
530
|
+
|
531
|
+
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
532
|
+
|
533
|
+
barged_in_prompt_no: 1,
|
534
|
+
|
535
|
+
barged_in_prompt_ms: 1,
|
536
|
+
|
537
|
+
barged_in_prompt_loop_no: 1,
|
538
|
+
|
539
|
+
barge_in_time_ms: 1,
|
540
|
+
|
541
|
+
transcript: "TS",
|
542
|
+
|
543
|
+
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
544
|
+
|
545
|
+
transcription_duration_ms: 1
|
546
|
+
)
|
547
|
+
expect(instance_1.eql?(instance_2)).to eq(true)
|
548
|
+
end
|
549
|
+
|
550
|
+
it "checks if objects are not equal" do
|
551
|
+
instance_1 = Freeclimb::TranscribeWebhook.new(
|
552
|
+
request_type: "TS",
|
553
|
+
|
554
|
+
account_id: "TS",
|
555
|
+
|
556
|
+
call_id: "TS",
|
557
|
+
|
558
|
+
from: "TS",
|
559
|
+
|
560
|
+
to: "TS",
|
561
|
+
|
562
|
+
recording_id: "TS",
|
563
|
+
|
564
|
+
recording_url: "TS",
|
565
|
+
|
566
|
+
recording_size: 2,
|
567
|
+
|
568
|
+
recording_format: "TS",
|
569
|
+
|
570
|
+
recording_duration_ms: 2,
|
571
|
+
|
572
|
+
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
573
|
+
|
574
|
+
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
575
|
+
|
576
|
+
digit: "TS",
|
577
|
+
|
578
|
+
privacy_for_logging: true,
|
579
|
+
|
580
|
+
privacy_for_recording: true,
|
581
|
+
|
582
|
+
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
583
|
+
|
584
|
+
barged_in_prompt_no: 2,
|
585
|
+
|
586
|
+
barged_in_prompt_ms: 2,
|
587
|
+
|
588
|
+
barged_in_prompt_loop_no: 2,
|
589
|
+
|
590
|
+
barge_in_time_ms: 2,
|
591
|
+
|
592
|
+
transcript: "TS",
|
593
|
+
|
594
|
+
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
595
|
+
|
596
|
+
transcription_duration_ms: 2
|
597
|
+
)
|
598
|
+
instance_2 = Freeclimb::TranscribeWebhook.new(
|
599
|
+
request_type: "ST",
|
600
|
+
|
601
|
+
account_id: "ST",
|
602
|
+
|
603
|
+
call_id: "ST",
|
604
|
+
|
605
|
+
from: "ST",
|
606
|
+
|
607
|
+
to: "ST",
|
608
|
+
|
609
|
+
recording_id: "ST",
|
610
|
+
|
611
|
+
recording_url: "ST",
|
612
|
+
|
613
|
+
recording_size: 1,
|
614
|
+
|
615
|
+
recording_format: "ST",
|
616
|
+
|
617
|
+
recording_duration_ms: 1,
|
618
|
+
|
619
|
+
term_reason: nil,
|
620
|
+
|
621
|
+
record_term_reason: nil,
|
622
|
+
|
623
|
+
digit: "ST",
|
624
|
+
|
625
|
+
privacy_for_logging: false,
|
626
|
+
|
627
|
+
privacy_for_recording: false,
|
628
|
+
|
629
|
+
barge_in_reason: nil,
|
630
|
+
|
631
|
+
barged_in_prompt_no: 1,
|
632
|
+
|
633
|
+
barged_in_prompt_ms: 1,
|
634
|
+
|
635
|
+
barged_in_prompt_loop_no: 1,
|
636
|
+
|
637
|
+
barge_in_time_ms: 1,
|
638
|
+
|
639
|
+
transcript: "ST",
|
640
|
+
|
641
|
+
transcribe_reason: nil,
|
642
|
+
|
643
|
+
transcription_duration_ms: 1
|
644
|
+
)
|
645
|
+
expect(instance_1.eql?(instance_2)).to eq(false)
|
1575
646
|
end
|
1576
647
|
end
|
1577
648
|
|
1578
|
-
describe 'test method "
|
1579
|
-
|
1580
|
-
|
649
|
+
describe 'test method "hash"' do
|
650
|
+
it "calculates hash code" do
|
651
|
+
instance = Freeclimb::TranscribeWebhook.new(
|
1581
652
|
request_type: "TS",
|
1582
|
-
|
1583
|
-
|
1584
|
-
|
1585
|
-
|
653
|
+
|
1586
654
|
account_id: "TS",
|
1587
|
-
|
1588
|
-
|
1589
|
-
|
1590
|
-
|
655
|
+
|
1591
656
|
call_id: "TS",
|
1592
|
-
|
1593
|
-
|
1594
|
-
|
1595
|
-
|
657
|
+
|
1596
658
|
from: "TS",
|
1597
|
-
|
1598
|
-
|
1599
|
-
|
1600
|
-
|
659
|
+
|
1601
660
|
to: "TS",
|
1602
|
-
|
1603
|
-
|
1604
|
-
|
1605
|
-
|
661
|
+
|
1606
662
|
recording_id: "TS",
|
1607
|
-
|
1608
|
-
|
1609
|
-
|
1610
|
-
|
663
|
+
|
1611
664
|
recording_url: "TS",
|
1612
|
-
|
1613
|
-
|
1614
|
-
|
665
|
+
|
1615
666
|
recording_size: 1,
|
1616
|
-
|
1617
|
-
|
1618
|
-
|
1619
|
-
|
667
|
+
|
1620
668
|
recording_format: "TS",
|
1621
|
-
|
1622
|
-
|
1623
|
-
|
669
|
+
|
1624
670
|
recording_duration_ms: 1,
|
1625
|
-
|
1626
|
-
|
1627
|
-
|
1628
|
-
|
671
|
+
|
1629
672
|
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
1630
|
-
|
1631
|
-
|
1632
|
-
|
1633
|
-
|
673
|
+
|
1634
674
|
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
1635
|
-
|
1636
|
-
|
1637
|
-
|
1638
|
-
|
675
|
+
|
1639
676
|
digit: "TS",
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
677
|
+
|
1643
678
|
privacy_for_logging: true,
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
679
|
+
|
1647
680
|
privacy_for_recording: true,
|
1648
|
-
|
1649
|
-
|
1650
|
-
|
1651
|
-
|
681
|
+
|
1652
682
|
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
1653
|
-
|
1654
|
-
|
1655
|
-
|
683
|
+
|
1656
684
|
barged_in_prompt_no: 1,
|
1657
|
-
|
1658
|
-
|
1659
|
-
|
685
|
+
|
1660
686
|
barged_in_prompt_ms: 1,
|
1661
|
-
|
1662
|
-
|
1663
|
-
|
687
|
+
|
1664
688
|
barged_in_prompt_loop_no: 1,
|
1665
|
-
|
1666
|
-
|
1667
|
-
|
689
|
+
|
1668
690
|
barge_in_time_ms: 1,
|
1669
|
-
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
691
|
+
|
1673
692
|
transcript: "TS",
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
693
|
+
|
1678
694
|
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
1679
|
-
|
1680
|
-
|
1681
|
-
|
1682
|
-
|
1683
|
-
|
1684
|
-
|
1685
|
-
|
695
|
+
|
696
|
+
transcription_duration_ms: 1
|
697
|
+
)
|
698
|
+
expect(instance.hash).to be_a_kind_of(Integer)
|
699
|
+
end
|
700
|
+
end
|
701
|
+
|
702
|
+
describe 'test method "build_from_hash"' do
|
703
|
+
it "builds equivalent model from hash code" do
|
704
|
+
instance_1 = Freeclimb::TranscribeWebhook.new(
|
705
|
+
request_type: "TS",
|
706
|
+
|
707
|
+
account_id: "TS",
|
708
|
+
|
709
|
+
call_id: "TS",
|
710
|
+
|
711
|
+
from: "TS",
|
712
|
+
|
713
|
+
to: "TS",
|
714
|
+
|
715
|
+
recording_id: "TS",
|
716
|
+
|
717
|
+
recording_url: "TS",
|
718
|
+
|
719
|
+
recording_size: 1,
|
720
|
+
|
721
|
+
recording_format: "TS",
|
722
|
+
|
723
|
+
recording_duration_ms: 1,
|
724
|
+
|
725
|
+
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
726
|
+
|
727
|
+
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
728
|
+
|
729
|
+
digit: "TS",
|
730
|
+
|
731
|
+
privacy_for_logging: true,
|
732
|
+
|
733
|
+
privacy_for_recording: true,
|
734
|
+
|
735
|
+
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
736
|
+
|
737
|
+
barged_in_prompt_no: 1,
|
738
|
+
|
739
|
+
barged_in_prompt_ms: 1,
|
740
|
+
|
741
|
+
barged_in_prompt_loop_no: 1,
|
742
|
+
|
743
|
+
barge_in_time_ms: 1,
|
744
|
+
|
745
|
+
transcript: "TS",
|
746
|
+
|
747
|
+
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
748
|
+
|
749
|
+
transcription_duration_ms: 1
|
750
|
+
)
|
751
|
+
instance_2 = Freeclimb::TranscribeWebhook.new(
|
752
|
+
request_type: "TS",
|
753
|
+
|
754
|
+
account_id: "TS",
|
755
|
+
|
756
|
+
call_id: "TS",
|
757
|
+
|
758
|
+
from: "TS",
|
759
|
+
|
760
|
+
to: "TS",
|
761
|
+
|
762
|
+
recording_id: "TS",
|
763
|
+
|
764
|
+
recording_url: "TS",
|
765
|
+
|
766
|
+
recording_size: 1,
|
767
|
+
|
768
|
+
recording_format: "TS",
|
769
|
+
|
770
|
+
recording_duration_ms: 1,
|
771
|
+
|
772
|
+
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
773
|
+
|
774
|
+
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
775
|
+
|
776
|
+
digit: "TS",
|
777
|
+
|
778
|
+
privacy_for_logging: true,
|
779
|
+
|
780
|
+
privacy_for_recording: true,
|
781
|
+
|
782
|
+
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
783
|
+
|
784
|
+
barged_in_prompt_no: 1,
|
785
|
+
|
786
|
+
barged_in_prompt_ms: 1,
|
787
|
+
|
788
|
+
barged_in_prompt_loop_no: 1,
|
789
|
+
|
790
|
+
barge_in_time_ms: 1,
|
791
|
+
|
792
|
+
transcript: "TS",
|
793
|
+
|
794
|
+
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
795
|
+
|
796
|
+
transcription_duration_ms: 1
|
797
|
+
)
|
798
|
+
|
799
|
+
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
800
|
+
end
|
801
|
+
end
|
802
|
+
|
803
|
+
describe 'test method "_deserialize"' do
|
804
|
+
instance = Freeclimb::TranscribeWebhook.new(
|
805
|
+
request_type: "TS",
|
806
|
+
|
807
|
+
account_id: "TS",
|
808
|
+
|
809
|
+
call_id: "TS",
|
810
|
+
|
811
|
+
from: "TS",
|
812
|
+
|
813
|
+
to: "TS",
|
814
|
+
|
815
|
+
recording_id: "TS",
|
816
|
+
|
817
|
+
recording_url: "TS",
|
818
|
+
|
819
|
+
recording_size: 1,
|
820
|
+
|
821
|
+
recording_format: "TS",
|
822
|
+
|
823
|
+
recording_duration_ms: 1,
|
824
|
+
|
825
|
+
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
826
|
+
|
827
|
+
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
828
|
+
|
829
|
+
digit: "TS",
|
830
|
+
|
831
|
+
privacy_for_logging: true,
|
832
|
+
|
833
|
+
privacy_for_recording: true,
|
834
|
+
|
835
|
+
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
836
|
+
|
837
|
+
barged_in_prompt_no: 1,
|
838
|
+
|
839
|
+
barged_in_prompt_ms: 1,
|
840
|
+
|
841
|
+
barged_in_prompt_loop_no: 1,
|
842
|
+
|
843
|
+
barge_in_time_ms: 1,
|
844
|
+
|
845
|
+
transcript: "TS",
|
846
|
+
|
847
|
+
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
848
|
+
|
849
|
+
transcription_duration_ms: 1
|
1686
850
|
)
|
1687
|
-
it
|
851
|
+
it "deserializes the data of request_type" do
|
1688
852
|
expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String)
|
1689
853
|
end
|
1690
|
-
|
1691
|
-
|
1692
|
-
it 'deserializes the data of account_id' do
|
854
|
+
|
855
|
+
it "deserializes the data of account_id" do
|
1693
856
|
expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
|
1694
857
|
end
|
1695
|
-
|
1696
|
-
|
1697
|
-
it 'deserializes the data of call_id' do
|
858
|
+
|
859
|
+
it "deserializes the data of call_id" do
|
1698
860
|
expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String)
|
1699
861
|
end
|
1700
|
-
|
1701
|
-
|
1702
|
-
it 'deserializes the data of from' do
|
862
|
+
|
863
|
+
it "deserializes the data of from" do
|
1703
864
|
expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String)
|
1704
865
|
end
|
1705
|
-
|
1706
|
-
|
1707
|
-
it 'deserializes the data of to' do
|
866
|
+
|
867
|
+
it "deserializes the data of to" do
|
1708
868
|
expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String)
|
1709
869
|
end
|
1710
|
-
|
1711
|
-
|
1712
|
-
it 'deserializes the data of recording_id' do
|
870
|
+
|
871
|
+
it "deserializes the data of recording_id" do
|
1713
872
|
expect(instance._deserialize("String", instance.recording_id)).to be_a_kind_of(String)
|
1714
873
|
end
|
1715
|
-
|
1716
|
-
|
1717
|
-
it 'deserializes the data of recording_url' do
|
874
|
+
|
875
|
+
it "deserializes the data of recording_url" do
|
1718
876
|
expect(instance._deserialize("String", instance.recording_url)).to be_a_kind_of(String)
|
1719
877
|
end
|
1720
|
-
|
1721
|
-
|
1722
|
-
it 'deserializes the data of recording_size' do
|
878
|
+
|
879
|
+
it "deserializes the data of recording_size" do
|
1723
880
|
expect(instance._deserialize("Integer", instance.recording_size)).to be_a_kind_of(Integer)
|
1724
881
|
end
|
1725
|
-
|
1726
|
-
|
1727
|
-
it 'deserializes the data of recording_format' do
|
882
|
+
|
883
|
+
it "deserializes the data of recording_format" do
|
1728
884
|
expect(instance._deserialize("String", instance.recording_format)).to be_a_kind_of(String)
|
1729
885
|
end
|
1730
|
-
|
1731
|
-
|
1732
|
-
it 'deserializes the data of recording_duration_ms' do
|
886
|
+
|
887
|
+
it "deserializes the data of recording_duration_ms" do
|
1733
888
|
expect(instance._deserialize("Integer", instance.recording_duration_ms)).to be_a_kind_of(Integer)
|
1734
889
|
end
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
it 'deserializes the data of digit' do
|
890
|
+
|
891
|
+
it "deserializes the data of digit" do
|
1742
892
|
expect(instance._deserialize("String", instance.digit)).to be_a_kind_of(String)
|
1743
893
|
end
|
1744
|
-
|
1745
|
-
|
1746
|
-
|
1747
|
-
|
1748
|
-
it 'deserializes the data of privacy_for_logging' do
|
894
|
+
|
895
|
+
it "deserializes the data of privacy_for_logging" do
|
1749
896
|
expect(instance._deserialize("Boolean", instance.privacy_for_logging)).to be_a_kind_of(TrueClass)
|
1750
897
|
end
|
1751
|
-
|
1752
|
-
|
1753
|
-
it 'deserializes the data of privacy_for_recording' do
|
898
|
+
|
899
|
+
it "deserializes the data of privacy_for_recording" do
|
1754
900
|
expect(instance._deserialize("Boolean", instance.privacy_for_recording)).to be_a_kind_of(TrueClass)
|
1755
901
|
end
|
1756
|
-
|
1757
|
-
|
1758
|
-
it 'deserializes the data of barged_in_prompt_no' do
|
902
|
+
|
903
|
+
it "deserializes the data of barged_in_prompt_no" do
|
1759
904
|
expect(instance._deserialize("Integer", instance.barged_in_prompt_no)).to be_a_kind_of(Integer)
|
1760
905
|
end
|
1761
|
-
|
1762
|
-
|
1763
|
-
it 'deserializes the data of barged_in_prompt_ms' do
|
906
|
+
|
907
|
+
it "deserializes the data of barged_in_prompt_ms" do
|
1764
908
|
expect(instance._deserialize("Integer", instance.barged_in_prompt_ms)).to be_a_kind_of(Integer)
|
1765
909
|
end
|
1766
|
-
|
1767
|
-
|
1768
|
-
it 'deserializes the data of barged_in_prompt_loop_no' do
|
910
|
+
|
911
|
+
it "deserializes the data of barged_in_prompt_loop_no" do
|
1769
912
|
expect(instance._deserialize("Integer", instance.barged_in_prompt_loop_no)).to be_a_kind_of(Integer)
|
1770
913
|
end
|
1771
|
-
|
1772
|
-
|
1773
|
-
it 'deserializes the data of barge_in_time_ms' do
|
914
|
+
|
915
|
+
it "deserializes the data of barge_in_time_ms" do
|
1774
916
|
expect(instance._deserialize("Integer", instance.barge_in_time_ms)).to be_a_kind_of(Integer)
|
1775
917
|
end
|
1776
|
-
|
1777
|
-
|
1778
|
-
it 'deserializes the data of transcript' do
|
918
|
+
|
919
|
+
it "deserializes the data of transcript" do
|
1779
920
|
expect(instance._deserialize("String", instance.transcript)).to be_a_kind_of(String)
|
1780
921
|
end
|
1781
|
-
|
1782
|
-
|
1783
|
-
|
1784
|
-
|
1785
|
-
it 'deserializes the data of transcription_duration_ms' do
|
922
|
+
|
923
|
+
it "deserializes the data of transcription_duration_ms" do
|
1786
924
|
expect(instance._deserialize("Integer", instance.transcription_duration_ms)).to be_a_kind_of(Integer)
|
1787
925
|
end
|
1788
|
-
|
1789
|
-
|
1790
926
|
end
|
1791
927
|
|
1792
928
|
describe 'test method "to_s"' do
|
1793
|
-
it
|
929
|
+
it "returns the string representation of the object" do
|
1794
930
|
instance = Freeclimb::TranscribeWebhook.new(
|
1795
|
-
|
1796
931
|
request_type: "TS",
|
1797
|
-
|
1798
|
-
|
1799
|
-
|
1800
|
-
|
932
|
+
|
1801
933
|
account_id: "TS",
|
1802
|
-
|
1803
|
-
|
1804
|
-
|
1805
|
-
|
934
|
+
|
1806
935
|
call_id: "TS",
|
1807
|
-
|
1808
|
-
|
1809
|
-
|
1810
|
-
|
936
|
+
|
1811
937
|
from: "TS",
|
1812
|
-
|
1813
|
-
|
1814
|
-
|
1815
|
-
|
938
|
+
|
1816
939
|
to: "TS",
|
1817
|
-
|
1818
|
-
|
1819
|
-
|
1820
|
-
|
940
|
+
|
1821
941
|
recording_id: "TS",
|
1822
|
-
|
1823
|
-
|
1824
|
-
|
1825
|
-
|
942
|
+
|
1826
943
|
recording_url: "TS",
|
1827
|
-
|
1828
|
-
|
1829
|
-
|
944
|
+
|
1830
945
|
recording_size: 1,
|
1831
|
-
|
1832
|
-
|
1833
|
-
|
1834
|
-
|
946
|
+
|
1835
947
|
recording_format: "TS",
|
1836
|
-
|
1837
|
-
|
1838
|
-
|
948
|
+
|
1839
949
|
recording_duration_ms: 1,
|
1840
|
-
|
1841
|
-
|
1842
|
-
|
1843
|
-
|
950
|
+
|
1844
951
|
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
1845
|
-
|
1846
|
-
|
1847
|
-
|
1848
|
-
|
952
|
+
|
1849
953
|
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
1850
|
-
|
1851
|
-
|
1852
|
-
|
1853
|
-
|
954
|
+
|
1854
955
|
digit: "TS",
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
956
|
+
|
1858
957
|
privacy_for_logging: true,
|
1859
|
-
|
1860
|
-
|
1861
|
-
|
958
|
+
|
1862
959
|
privacy_for_recording: true,
|
1863
|
-
|
1864
|
-
|
1865
|
-
|
1866
|
-
|
960
|
+
|
1867
961
|
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
1868
|
-
|
1869
|
-
|
1870
|
-
|
962
|
+
|
1871
963
|
barged_in_prompt_no: 1,
|
1872
|
-
|
1873
|
-
|
1874
|
-
|
964
|
+
|
1875
965
|
barged_in_prompt_ms: 1,
|
1876
|
-
|
1877
|
-
|
1878
|
-
|
966
|
+
|
1879
967
|
barged_in_prompt_loop_no: 1,
|
1880
|
-
|
1881
|
-
|
1882
|
-
|
968
|
+
|
1883
969
|
barge_in_time_ms: 1,
|
1884
|
-
|
1885
|
-
|
1886
|
-
|
1887
|
-
|
970
|
+
|
1888
971
|
transcript: "TS",
|
1889
|
-
|
1890
|
-
|
1891
|
-
|
1892
|
-
|
972
|
+
|
1893
973
|
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
1894
|
-
|
1895
|
-
|
1896
|
-
|
1897
|
-
transcription_duration_ms: 1,
|
1898
|
-
|
1899
|
-
|
1900
|
-
|
974
|
+
|
975
|
+
transcription_duration_ms: 1
|
1901
976
|
)
|
1902
977
|
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
1903
978
|
end
|
1904
979
|
end
|
1905
980
|
|
1906
981
|
describe 'test method "to_hash"' do
|
1907
|
-
it
|
982
|
+
it "returns the object in the form of hash" do
|
1908
983
|
instance = Freeclimb::TranscribeWebhook.new(
|
1909
|
-
|
1910
984
|
request_type: "TS",
|
1911
|
-
|
1912
|
-
|
1913
|
-
|
1914
|
-
|
985
|
+
|
1915
986
|
account_id: "TS",
|
1916
|
-
|
1917
|
-
|
1918
|
-
|
1919
|
-
|
987
|
+
|
1920
988
|
call_id: "TS",
|
1921
|
-
|
1922
|
-
|
1923
|
-
|
1924
|
-
|
989
|
+
|
1925
990
|
from: "TS",
|
1926
|
-
|
1927
|
-
|
1928
|
-
|
1929
|
-
|
991
|
+
|
1930
992
|
to: "TS",
|
1931
|
-
|
1932
|
-
|
1933
|
-
|
1934
|
-
|
993
|
+
|
1935
994
|
recording_id: "TS",
|
1936
|
-
|
1937
|
-
|
1938
|
-
|
1939
|
-
|
995
|
+
|
1940
996
|
recording_url: "TS",
|
1941
|
-
|
1942
|
-
|
1943
|
-
|
997
|
+
|
1944
998
|
recording_size: 1,
|
1945
|
-
|
1946
|
-
|
1947
|
-
|
1948
|
-
|
999
|
+
|
1949
1000
|
recording_format: "TS",
|
1950
|
-
|
1951
|
-
|
1952
|
-
|
1001
|
+
|
1953
1002
|
recording_duration_ms: 1,
|
1954
|
-
|
1955
|
-
|
1956
|
-
|
1957
|
-
|
1003
|
+
|
1958
1004
|
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
1959
|
-
|
1960
|
-
|
1961
|
-
|
1962
|
-
|
1005
|
+
|
1963
1006
|
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
1964
|
-
|
1965
|
-
|
1966
|
-
|
1967
|
-
|
1007
|
+
|
1968
1008
|
digit: "TS",
|
1969
|
-
|
1970
|
-
|
1971
|
-
|
1009
|
+
|
1972
1010
|
privacy_for_logging: true,
|
1973
|
-
|
1974
|
-
|
1975
|
-
|
1011
|
+
|
1976
1012
|
privacy_for_recording: true,
|
1977
|
-
|
1978
|
-
|
1979
|
-
|
1980
|
-
|
1013
|
+
|
1981
1014
|
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
1982
|
-
|
1983
|
-
|
1984
|
-
|
1015
|
+
|
1985
1016
|
barged_in_prompt_no: 1,
|
1986
|
-
|
1987
|
-
|
1988
|
-
|
1017
|
+
|
1989
1018
|
barged_in_prompt_ms: 1,
|
1990
|
-
|
1991
|
-
|
1992
|
-
|
1019
|
+
|
1993
1020
|
barged_in_prompt_loop_no: 1,
|
1994
|
-
|
1995
|
-
|
1996
|
-
|
1021
|
+
|
1997
1022
|
barge_in_time_ms: 1,
|
1998
|
-
|
1999
|
-
|
2000
|
-
|
2001
|
-
|
1023
|
+
|
2002
1024
|
transcript: "TS",
|
2003
|
-
|
2004
|
-
|
2005
|
-
|
2006
|
-
|
1025
|
+
|
2007
1026
|
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
2008
|
-
|
2009
|
-
|
2010
|
-
|
2011
|
-
transcription_duration_ms: 1,
|
2012
|
-
|
2013
|
-
|
2014
|
-
|
1027
|
+
|
1028
|
+
transcription_duration_ms: 1
|
2015
1029
|
)
|
2016
1030
|
expect(instance.to_hash).to be_a_kind_of(Hash)
|
2017
1031
|
end
|
2018
|
-
it
|
2019
|
-
|
2020
|
-
|
2021
|
-
|
2022
|
-
|
2023
|
-
|
2024
|
-
|
2025
|
-
|
2026
|
-
|
2027
|
-
|
2028
|
-
|
2029
|
-
|
2030
|
-
|
2031
|
-
|
2032
|
-
|
2033
|
-
|
2034
|
-
|
2035
|
-
|
2036
|
-
|
2037
|
-
|
2038
|
-
|
2039
|
-
|
2040
|
-
|
2041
|
-
|
1032
|
+
it "creates equal hash for two equal objects" do
|
2042
1033
|
instance_1 = Freeclimb::TranscribeWebhook.new(
|
2043
|
-
|
2044
1034
|
request_type: "TS",
|
2045
|
-
|
2046
|
-
|
2047
|
-
|
2048
|
-
|
1035
|
+
|
2049
1036
|
account_id: "TS",
|
2050
|
-
|
2051
|
-
|
2052
|
-
|
2053
|
-
|
1037
|
+
|
2054
1038
|
call_id: "TS",
|
2055
|
-
|
2056
|
-
|
2057
|
-
|
2058
|
-
|
1039
|
+
|
2059
1040
|
from: "TS",
|
2060
|
-
|
2061
|
-
|
2062
|
-
|
2063
|
-
|
1041
|
+
|
2064
1042
|
to: "TS",
|
2065
|
-
|
2066
|
-
|
2067
|
-
|
2068
|
-
|
1043
|
+
|
2069
1044
|
recording_id: "TS",
|
2070
|
-
|
2071
|
-
|
2072
|
-
|
2073
|
-
|
1045
|
+
|
2074
1046
|
recording_url: "TS",
|
2075
|
-
|
2076
|
-
|
2077
|
-
|
1047
|
+
|
2078
1048
|
recording_size: 1,
|
2079
|
-
|
2080
|
-
|
2081
|
-
|
2082
|
-
|
1049
|
+
|
2083
1050
|
recording_format: "TS",
|
2084
|
-
|
2085
|
-
|
2086
|
-
|
1051
|
+
|
2087
1052
|
recording_duration_ms: 1,
|
2088
|
-
|
2089
|
-
|
2090
|
-
|
2091
|
-
|
1053
|
+
|
2092
1054
|
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
2093
|
-
|
2094
|
-
|
2095
|
-
|
2096
|
-
|
1055
|
+
|
2097
1056
|
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
2098
|
-
|
2099
|
-
|
2100
|
-
|
2101
|
-
|
1057
|
+
|
2102
1058
|
digit: "TS",
|
2103
|
-
|
2104
|
-
|
2105
|
-
|
1059
|
+
|
2106
1060
|
privacy_for_logging: true,
|
2107
|
-
|
2108
|
-
|
2109
|
-
|
1061
|
+
|
2110
1062
|
privacy_for_recording: true,
|
2111
|
-
|
2112
|
-
|
2113
|
-
|
2114
|
-
|
1063
|
+
|
2115
1064
|
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
2116
|
-
|
2117
|
-
|
2118
|
-
|
1065
|
+
|
2119
1066
|
barged_in_prompt_no: 1,
|
2120
|
-
|
2121
|
-
|
2122
|
-
|
1067
|
+
|
2123
1068
|
barged_in_prompt_ms: 1,
|
2124
|
-
|
2125
|
-
|
2126
|
-
|
1069
|
+
|
2127
1070
|
barged_in_prompt_loop_no: 1,
|
2128
|
-
|
2129
|
-
|
2130
|
-
|
1071
|
+
|
2131
1072
|
barge_in_time_ms: 1,
|
2132
|
-
|
2133
|
-
|
2134
|
-
|
2135
|
-
|
1073
|
+
|
2136
1074
|
transcript: "TS",
|
2137
|
-
|
2138
|
-
|
2139
|
-
|
2140
|
-
|
1075
|
+
|
2141
1076
|
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
2142
|
-
|
2143
|
-
|
2144
|
-
|
2145
|
-
transcription_duration_ms: 1,
|
2146
|
-
|
2147
|
-
|
2148
|
-
|
1077
|
+
|
1078
|
+
transcription_duration_ms: 1
|
2149
1079
|
)
|
2150
1080
|
instance_2 = Freeclimb::TranscribeWebhook.new(
|
2151
|
-
|
2152
1081
|
request_type: "TS",
|
2153
|
-
|
2154
|
-
|
2155
|
-
|
2156
|
-
|
1082
|
+
|
2157
1083
|
account_id: "TS",
|
2158
|
-
|
2159
|
-
|
2160
|
-
|
2161
|
-
|
1084
|
+
|
2162
1085
|
call_id: "TS",
|
2163
|
-
|
2164
|
-
|
2165
|
-
|
2166
|
-
|
1086
|
+
|
2167
1087
|
from: "TS",
|
2168
|
-
|
2169
|
-
|
2170
|
-
|
2171
|
-
|
1088
|
+
|
2172
1089
|
to: "TS",
|
2173
|
-
|
2174
|
-
|
2175
|
-
|
2176
|
-
|
1090
|
+
|
2177
1091
|
recording_id: "TS",
|
2178
|
-
|
2179
|
-
|
2180
|
-
|
2181
|
-
|
1092
|
+
|
2182
1093
|
recording_url: "TS",
|
2183
|
-
|
2184
|
-
|
2185
|
-
|
1094
|
+
|
2186
1095
|
recording_size: 1,
|
2187
|
-
|
2188
|
-
|
2189
|
-
|
2190
|
-
|
1096
|
+
|
2191
1097
|
recording_format: "TS",
|
2192
|
-
|
2193
|
-
|
2194
|
-
|
1098
|
+
|
2195
1099
|
recording_duration_ms: 1,
|
2196
|
-
|
2197
|
-
|
2198
|
-
|
2199
|
-
|
1100
|
+
|
2200
1101
|
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
2201
|
-
|
2202
|
-
|
2203
|
-
|
2204
|
-
|
1102
|
+
|
2205
1103
|
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
2206
|
-
|
2207
|
-
|
2208
|
-
|
2209
|
-
|
1104
|
+
|
2210
1105
|
digit: "TS",
|
2211
|
-
|
2212
|
-
|
2213
|
-
|
1106
|
+
|
2214
1107
|
privacy_for_logging: true,
|
2215
|
-
|
2216
|
-
|
2217
|
-
|
1108
|
+
|
2218
1109
|
privacy_for_recording: true,
|
2219
|
-
|
2220
|
-
|
2221
|
-
|
2222
|
-
|
1110
|
+
|
2223
1111
|
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
2224
|
-
|
2225
|
-
|
2226
|
-
|
1112
|
+
|
2227
1113
|
barged_in_prompt_no: 1,
|
2228
|
-
|
2229
|
-
|
2230
|
-
|
1114
|
+
|
2231
1115
|
barged_in_prompt_ms: 1,
|
2232
|
-
|
2233
|
-
|
2234
|
-
|
1116
|
+
|
2235
1117
|
barged_in_prompt_loop_no: 1,
|
2236
|
-
|
2237
|
-
|
2238
|
-
|
1118
|
+
|
2239
1119
|
barge_in_time_ms: 1,
|
2240
|
-
|
2241
|
-
|
2242
|
-
|
2243
|
-
|
1120
|
+
|
2244
1121
|
transcript: "TS",
|
2245
|
-
|
2246
|
-
|
2247
|
-
|
2248
|
-
|
1122
|
+
|
2249
1123
|
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
2250
|
-
|
2251
|
-
|
2252
|
-
|
2253
|
-
transcription_duration_ms: 1,
|
2254
|
-
|
2255
|
-
|
2256
|
-
|
1124
|
+
|
1125
|
+
transcription_duration_ms: 1
|
2257
1126
|
)
|
2258
1127
|
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
2259
1128
|
end
|
@@ -2261,158 +1130,120 @@ describe Freeclimb::TranscribeWebhook do
|
|
2261
1130
|
|
2262
1131
|
describe 'test method "_to_hash"' do
|
2263
1132
|
instance = Freeclimb::TranscribeWebhook.new(
|
2264
|
-
|
2265
|
-
|
2266
|
-
|
2267
|
-
|
2268
|
-
|
2269
|
-
|
2270
|
-
|
2271
|
-
|
2272
|
-
|
2273
|
-
|
2274
|
-
|
2275
|
-
|
2276
|
-
|
2277
|
-
|
2278
|
-
|
2279
|
-
|
2280
|
-
|
2281
|
-
|
2282
|
-
|
2283
|
-
|
2284
|
-
|
2285
|
-
|
2286
|
-
|
2287
|
-
|
2288
|
-
|
2289
|
-
|
2290
|
-
|
2291
|
-
|
2292
|
-
|
2293
|
-
|
2294
|
-
|
2295
|
-
|
2296
|
-
|
2297
|
-
|
2298
|
-
|
2299
|
-
|
2300
|
-
|
2301
|
-
|
2302
|
-
|
2303
|
-
|
2304
|
-
|
2305
|
-
|
2306
|
-
|
2307
|
-
|
2308
|
-
|
2309
|
-
|
2310
|
-
|
2311
|
-
digit: "TS",
|
2312
|
-
|
2313
|
-
|
2314
|
-
privacy_for_logging: true,
|
2315
|
-
|
2316
|
-
|
2317
|
-
privacy_for_recording: true,
|
2318
|
-
|
2319
|
-
|
2320
|
-
|
2321
|
-
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
2322
|
-
|
2323
|
-
|
2324
|
-
barged_in_prompt_no: 1,
|
2325
|
-
|
2326
|
-
|
2327
|
-
barged_in_prompt_ms: 1,
|
2328
|
-
|
2329
|
-
|
2330
|
-
barged_in_prompt_loop_no: 1,
|
2331
|
-
|
2332
|
-
|
2333
|
-
barge_in_time_ms: 1,
|
2334
|
-
|
2335
|
-
|
2336
|
-
|
2337
|
-
transcript: "TS",
|
2338
|
-
|
2339
|
-
|
2340
|
-
|
2341
|
-
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
2342
|
-
|
2343
|
-
|
2344
|
-
transcription_duration_ms: 1,
|
2345
|
-
|
2346
|
-
)
|
2347
|
-
it 'returns request_type in the form of hash' do
|
1133
|
+
request_type: "TS",
|
1134
|
+
|
1135
|
+
account_id: "TS",
|
1136
|
+
|
1137
|
+
call_id: "TS",
|
1138
|
+
|
1139
|
+
from: "TS",
|
1140
|
+
|
1141
|
+
to: "TS",
|
1142
|
+
|
1143
|
+
recording_id: "TS",
|
1144
|
+
|
1145
|
+
recording_url: "TS",
|
1146
|
+
|
1147
|
+
recording_size: 1,
|
1148
|
+
|
1149
|
+
recording_format: "TS",
|
1150
|
+
|
1151
|
+
recording_duration_ms: 1,
|
1152
|
+
|
1153
|
+
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
1154
|
+
|
1155
|
+
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
1156
|
+
|
1157
|
+
digit: "TS",
|
1158
|
+
|
1159
|
+
privacy_for_logging: true,
|
1160
|
+
|
1161
|
+
privacy_for_recording: true,
|
1162
|
+
|
1163
|
+
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
1164
|
+
|
1165
|
+
barged_in_prompt_no: 1,
|
1166
|
+
|
1167
|
+
barged_in_prompt_ms: 1,
|
1168
|
+
|
1169
|
+
barged_in_prompt_loop_no: 1,
|
1170
|
+
|
1171
|
+
barge_in_time_ms: 1,
|
1172
|
+
|
1173
|
+
transcript: "TS",
|
1174
|
+
|
1175
|
+
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
1176
|
+
|
1177
|
+
transcription_duration_ms: 1
|
1178
|
+
)
|
1179
|
+
it "returns request_type in the form of hash" do
|
2348
1180
|
expect(instance._to_hash(instance.request_type)).to eq(instance.request_type)
|
2349
1181
|
end
|
2350
|
-
it
|
1182
|
+
it "returns account_id in the form of hash" do
|
2351
1183
|
expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)
|
2352
1184
|
end
|
2353
|
-
it
|
1185
|
+
it "returns call_id in the form of hash" do
|
2354
1186
|
expect(instance._to_hash(instance.call_id)).to eq(instance.call_id)
|
2355
1187
|
end
|
2356
|
-
it
|
1188
|
+
it "returns from in the form of hash" do
|
2357
1189
|
expect(instance._to_hash(instance.from)).to eq(instance.from)
|
2358
1190
|
end
|
2359
|
-
it
|
1191
|
+
it "returns to in the form of hash" do
|
2360
1192
|
expect(instance._to_hash(instance.to)).to eq(instance.to)
|
2361
1193
|
end
|
2362
|
-
it
|
1194
|
+
it "returns recording_id in the form of hash" do
|
2363
1195
|
expect(instance._to_hash(instance.recording_id)).to eq(instance.recording_id)
|
2364
1196
|
end
|
2365
|
-
it
|
1197
|
+
it "returns recording_url in the form of hash" do
|
2366
1198
|
expect(instance._to_hash(instance.recording_url)).to eq(instance.recording_url)
|
2367
1199
|
end
|
2368
|
-
it
|
1200
|
+
it "returns recording_size in the form of hash" do
|
2369
1201
|
expect(instance._to_hash(instance.recording_size)).to eq(instance.recording_size)
|
2370
1202
|
end
|
2371
|
-
it
|
1203
|
+
it "returns recording_format in the form of hash" do
|
2372
1204
|
expect(instance._to_hash(instance.recording_format)).to eq(instance.recording_format)
|
2373
1205
|
end
|
2374
|
-
it
|
1206
|
+
it "returns recording_duration_ms in the form of hash" do
|
2375
1207
|
expect(instance._to_hash(instance.recording_duration_ms)).to eq(instance.recording_duration_ms)
|
2376
1208
|
end
|
2377
|
-
it
|
1209
|
+
it "returns term_reason in the form of hash" do
|
2378
1210
|
expect(instance._to_hash(instance.term_reason)).to eq(instance.term_reason)
|
2379
1211
|
end
|
2380
|
-
it
|
1212
|
+
it "returns record_term_reason in the form of hash" do
|
2381
1213
|
expect(instance._to_hash(instance.record_term_reason)).to eq(instance.record_term_reason)
|
2382
1214
|
end
|
2383
|
-
it
|
1215
|
+
it "returns digit in the form of hash" do
|
2384
1216
|
expect(instance._to_hash(instance.digit)).to eq(instance.digit)
|
2385
1217
|
end
|
2386
|
-
it
|
1218
|
+
it "returns privacy_for_logging in the form of hash" do
|
2387
1219
|
expect(instance._to_hash(instance.privacy_for_logging)).to eq(instance.privacy_for_logging)
|
2388
1220
|
end
|
2389
|
-
it
|
1221
|
+
it "returns privacy_for_recording in the form of hash" do
|
2390
1222
|
expect(instance._to_hash(instance.privacy_for_recording)).to eq(instance.privacy_for_recording)
|
2391
1223
|
end
|
2392
|
-
it
|
1224
|
+
it "returns barge_in_reason in the form of hash" do
|
2393
1225
|
expect(instance._to_hash(instance.barge_in_reason)).to eq(instance.barge_in_reason)
|
2394
1226
|
end
|
2395
|
-
it
|
1227
|
+
it "returns barged_in_prompt_no in the form of hash" do
|
2396
1228
|
expect(instance._to_hash(instance.barged_in_prompt_no)).to eq(instance.barged_in_prompt_no)
|
2397
1229
|
end
|
2398
|
-
it
|
1230
|
+
it "returns barged_in_prompt_ms in the form of hash" do
|
2399
1231
|
expect(instance._to_hash(instance.barged_in_prompt_ms)).to eq(instance.barged_in_prompt_ms)
|
2400
1232
|
end
|
2401
|
-
it
|
1233
|
+
it "returns barged_in_prompt_loop_no in the form of hash" do
|
2402
1234
|
expect(instance._to_hash(instance.barged_in_prompt_loop_no)).to eq(instance.barged_in_prompt_loop_no)
|
2403
1235
|
end
|
2404
|
-
it
|
1236
|
+
it "returns barge_in_time_ms in the form of hash" do
|
2405
1237
|
expect(instance._to_hash(instance.barge_in_time_ms)).to eq(instance.barge_in_time_ms)
|
2406
1238
|
end
|
2407
|
-
it
|
1239
|
+
it "returns transcript in the form of hash" do
|
2408
1240
|
expect(instance._to_hash(instance.transcript)).to eq(instance.transcript)
|
2409
1241
|
end
|
2410
|
-
it
|
1242
|
+
it "returns transcribe_reason in the form of hash" do
|
2411
1243
|
expect(instance._to_hash(instance.transcribe_reason)).to eq(instance.transcribe_reason)
|
2412
1244
|
end
|
2413
|
-
it
|
1245
|
+
it "returns transcription_duration_ms in the form of hash" do
|
2414
1246
|
expect(instance._to_hash(instance.transcription_duration_ms)).to eq(instance.transcription_duration_ms)
|
2415
1247
|
end
|
2416
1248
|
end
|
2417
|
-
|
2418
1249
|
end
|