freeclimb 5.0.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -1
- data/Gemfile +4 -4
- data/Gemfile.lock +34 -15
- data/README.md +5 -4
- data/Rakefile +1 -1
- data/docs/CreateConferenceRequest.md +1 -1
- data/docs/DefaultApi.md +1 -1
- data/docs/MessageResult.md +7 -1
- data/docs/TFNCampaign.md +34 -0
- data/freeclimb.gemspec +21 -26
- data/lib/freeclimb/api/default_api.rb +878 -878
- data/lib/freeclimb/api_client.rb +78 -83
- data/lib/freeclimb/api_error.rb +17 -19
- data/lib/freeclimb/configuration.rb +28 -31
- data/lib/freeclimb/models/account_request.rb +36 -41
- data/lib/freeclimb/models/account_result.rb +88 -92
- data/lib/freeclimb/models/account_status.rb +12 -14
- data/lib/freeclimb/models/account_type.rb +12 -14
- data/lib/freeclimb/models/add_to_conference.rb +81 -85
- data/lib/freeclimb/models/add_to_conference_notification_webhook.rb +99 -103
- data/lib/freeclimb/models/add_to_queue_notification_webhook.rb +78 -82
- data/lib/freeclimb/models/answered_by.rb +12 -14
- data/lib/freeclimb/models/application_list.rb +74 -78
- data/lib/freeclimb/models/application_request.rb +66 -70
- data/lib/freeclimb/models/application_result.rb +100 -104
- data/lib/freeclimb/models/available_number.rb +66 -70
- data/lib/freeclimb/models/available_number_list.rb +74 -78
- data/lib/freeclimb/models/barge_in_reason.rb +12 -14
- data/lib/freeclimb/models/buy_incoming_number_request.rb +41 -45
- data/lib/freeclimb/models/call_control_webhook.rb +56 -61
- data/lib/freeclimb/models/call_direction.rb +12 -14
- data/lib/freeclimb/models/call_ended_reason.rb +12 -14
- data/lib/freeclimb/models/call_list.rb +74 -78
- data/lib/freeclimb/models/call_result.rb +142 -146
- data/lib/freeclimb/models/call_status.rb +12 -14
- data/lib/freeclimb/models/call_status_webhook.rb +84 -88
- data/lib/freeclimb/models/capabilities.rb +55 -59
- data/lib/freeclimb/models/completion_request.rb +32 -36
- data/lib/freeclimb/models/completion_result.rb +36 -40
- data/lib/freeclimb/models/completion_result_status.rb +12 -14
- data/lib/freeclimb/models/conference_list.rb +74 -78
- data/lib/freeclimb/models/conference_participant_list.rb +74 -78
- data/lib/freeclimb/models/conference_participant_result.rb +88 -92
- data/lib/freeclimb/models/conference_recording_status_webhook.rb +99 -103
- data/lib/freeclimb/models/conference_result.rb +106 -110
- data/lib/freeclimb/models/conference_status.rb +12 -14
- data/lib/freeclimb/models/conference_status_webhook.rb +102 -106
- data/lib/freeclimb/models/create_conference.rb +60 -63
- data/lib/freeclimb/models/create_conference_request.rb +55 -54
- data/lib/freeclimb/models/create_conference_webhook.rb +102 -106
- data/lib/freeclimb/models/create_web_rtc_token.rb +42 -46
- data/lib/freeclimb/models/dequeue.rb +30 -37
- data/lib/freeclimb/models/dequeue_webhook.rb +89 -93
- data/lib/freeclimb/models/enqueue.rb +48 -52
- data/lib/freeclimb/models/filter_logs_request.rb +31 -35
- data/lib/freeclimb/models/get_digits.rb +73 -77
- data/lib/freeclimb/models/get_digits_reason.rb +12 -14
- data/lib/freeclimb/models/get_digits_webhook.rb +93 -97
- data/lib/freeclimb/models/get_speech.rb +94 -97
- data/lib/freeclimb/models/get_speech_reason.rb +12 -14
- data/lib/freeclimb/models/get_speech_webhook.rb +118 -122
- data/lib/freeclimb/models/grammar_file_built_in.rb +12 -14
- data/lib/freeclimb/models/grammar_type.rb +12 -14
- data/lib/freeclimb/models/hangup.rb +34 -39
- data/lib/freeclimb/models/if_machine.rb +12 -14
- data/lib/freeclimb/models/inbound_call_webhook.rb +85 -89
- data/lib/freeclimb/models/incoming_number_list.rb +74 -78
- data/lib/freeclimb/models/incoming_number_request.rb +41 -45
- data/lib/freeclimb/models/incoming_number_result.rb +122 -126
- data/lib/freeclimb/models/language.rb +12 -14
- data/lib/freeclimb/models/leave_conference_webhook.rb +79 -83
- data/lib/freeclimb/models/log_level.rb +12 -14
- data/lib/freeclimb/models/log_list.rb +74 -78
- data/lib/freeclimb/models/log_result.rb +67 -71
- data/lib/freeclimb/models/machine_detected_webhook.rb +89 -93
- data/lib/freeclimb/models/machine_type.rb +12 -14
- data/lib/freeclimb/models/make_call_request.rb +77 -81
- data/lib/freeclimb/models/message_delivery_webhook.rb +81 -86
- data/lib/freeclimb/models/message_direction.rb +12 -14
- data/lib/freeclimb/models/message_request.rb +72 -75
- data/lib/freeclimb/models/message_result.rb +150 -123
- data/lib/freeclimb/models/message_status.rb +12 -14
- data/lib/freeclimb/models/message_status_webhook.rb +86 -90
- data/lib/freeclimb/models/messages_list.rb +74 -78
- data/lib/freeclimb/models/mutable_resource_model.rb +46 -51
- data/lib/freeclimb/models/out_dial.rb +80 -84
- data/lib/freeclimb/models/out_dial_api_connect_webhook.rb +84 -88
- data/lib/freeclimb/models/out_dial_connect_webhook.rb +84 -88
- data/lib/freeclimb/models/out_dial_start_webhook.rb +90 -94
- data/lib/freeclimb/models/pagination_model.rb +67 -71
- data/lib/freeclimb/models/park.rb +44 -48
- data/lib/freeclimb/models/pause.rb +33 -37
- data/lib/freeclimb/models/percl_command.rb +36 -40
- data/lib/freeclimb/models/percl_script.rb +32 -36
- data/lib/freeclimb/models/play.rb +44 -48
- data/lib/freeclimb/models/play_beep.rb +12 -14
- data/lib/freeclimb/models/play_early_media.rb +33 -37
- data/lib/freeclimb/models/queue_list.rb +74 -78
- data/lib/freeclimb/models/queue_member.rb +55 -59
- data/lib/freeclimb/models/queue_member_list.rb +74 -78
- data/lib/freeclimb/models/queue_request.rb +37 -42
- data/lib/freeclimb/models/queue_result.rb +88 -92
- data/lib/freeclimb/models/queue_result_status.rb +12 -14
- data/lib/freeclimb/models/queue_wait_webhook.rb +94 -98
- data/lib/freeclimb/models/record_utterance.rb +63 -67
- data/lib/freeclimb/models/record_utterance_term_reason.rb +12 -14
- data/lib/freeclimb/models/record_webhook.rb +119 -123
- data/lib/freeclimb/models/recording_list.rb +74 -78
- data/lib/freeclimb/models/recording_result.rb +76 -80
- data/lib/freeclimb/models/redirect.rb +33 -37
- data/lib/freeclimb/models/redirect_webhook.rb +84 -88
- data/lib/freeclimb/models/reject.rb +34 -39
- data/lib/freeclimb/models/remove_from_conference.rb +30 -37
- data/lib/freeclimb/models/remove_from_queue_notification_webhook.rb +89 -93
- data/lib/freeclimb/models/request_type.rb +12 -14
- data/lib/freeclimb/models/say.rb +49 -53
- data/lib/freeclimb/models/send_digits.rb +43 -47
- data/lib/freeclimb/models/set_dtmf_pass_through.rb +34 -39
- data/lib/freeclimb/models/set_listen.rb +34 -39
- data/lib/freeclimb/models/set_talk.rb +34 -39
- data/lib/freeclimb/models/sms.rb +48 -52
- data/lib/freeclimb/models/sms_ten_dlc_brand.rb +187 -190
- data/lib/freeclimb/models/sms_ten_dlc_brand_alt_business_id_type.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brand_entity_type.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brand_identity_status.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brand_relationship.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brand_stock_exchange.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +74 -78
- data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +226 -229
- data/lib/freeclimb/models/sms_ten_dlc_campaign_status.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +74 -78
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +186 -189
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +84 -87
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_status.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +74 -78
- data/lib/freeclimb/models/sms_toll_free_campaign.rb +61 -64
- data/lib/freeclimb/models/sms_toll_free_campaign_registration_status.rb +12 -14
- data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +74 -78
- data/lib/freeclimb/models/start_record_call.rb +30 -37
- data/lib/freeclimb/models/terminate_conference.rb +30 -37
- data/lib/freeclimb/models/tfn.rb +31 -35
- data/lib/freeclimb/models/tfn_campaign.rb +367 -0
- data/lib/freeclimb/models/transcribe_reason.rb +12 -14
- data/lib/freeclimb/models/transcribe_term_reason.rb +12 -14
- data/lib/freeclimb/models/transcribe_utterance.rb +61 -65
- data/lib/freeclimb/models/transcribe_utterance_record.rb +43 -47
- data/lib/freeclimb/models/transcribe_webhook.rb +150 -154
- data/lib/freeclimb/models/unpark.rb +30 -37
- data/lib/freeclimb/models/update_call_request.rb +31 -35
- data/lib/freeclimb/models/update_call_request_status.rb +12 -14
- data/lib/freeclimb/models/update_conference_participant_request.rb +41 -46
- data/lib/freeclimb/models/update_conference_request.rb +41 -45
- data/lib/freeclimb/models/update_conference_request_status.rb +12 -14
- data/lib/freeclimb/models/webhook.rb +32 -37
- data/lib/freeclimb/utils/request_verifier.rb +14 -14
- data/lib/freeclimb/utils/signature_information.rb +8 -8
- data/lib/freeclimb/version.rb +10 -12
- data/lib/freeclimb.rb +156 -157
- data/openapi.json +96 -38
- data/package.json +1 -1
- data/spec/api/default_api_spec.rb +531 -793
- data/spec/api_client_spec.rb +100 -102
- data/spec/configuration_spec.rb +16 -18
- data/spec/models/account_request_spec.rb +106 -124
- data/spec/models/account_result_spec.rb +396 -453
- data/spec/models/account_status_spec.rb +28 -30
- data/spec/models/account_type_spec.rb +25 -27
- data/spec/models/add_to_conference_notification_webhook_spec.rb +465 -549
- data/spec/models/add_to_conference_spec.rb +355 -382
- data/spec/models/add_to_queue_notification_webhook_spec.rb +342 -402
- data/spec/models/answered_by_spec.rb +25 -27
- data/spec/models/application_list_spec.rb +290 -326
- data/spec/models/application_request_spec.rb +266 -289
- data/spec/models/application_result_spec.rb +445 -476
- data/spec/models/available_number_list_spec.rb +290 -326
- data/spec/models/available_number_spec.rb +279 -299
- data/spec/models/barge_in_reason_spec.rb +28 -30
- data/spec/models/buy_incoming_number_request_spec.rb +137 -156
- data/spec/models/call_control_webhook_spec.rb +204 -225
- data/spec/models/call_direction_spec.rb +28 -30
- data/spec/models/call_ended_reason_spec.rb +108 -110
- data/spec/models/call_list_spec.rb +290 -326
- data/spec/models/call_result_spec.rb +684 -772
- data/spec/models/call_status_spec.rb +48 -50
- data/spec/models/call_status_webhook_spec.rb +414 -492
- data/spec/models/capabilities_spec.rb +203 -223
- data/spec/models/completion_request_spec.rb +76 -92
- data/spec/models/completion_result_spec.rb +107 -143
- data/spec/models/completion_result_status_spec.rb +25 -27
- data/spec/models/conference_list_spec.rb +290 -326
- data/spec/models/conference_participant_list_spec.rb +290 -326
- data/spec/models/conference_participant_result_spec.rb +385 -414
- data/spec/models/conference_recording_status_webhook_spec.rb +465 -549
- data/spec/models/conference_result_spec.rb +492 -553
- data/spec/models/conference_status_spec.rb +32 -34
- data/spec/models/conference_status_webhook_spec.rb +465 -549
- data/spec/models/create_conference_request_spec.rb +205 -245
- data/spec/models/create_conference_spec.rb +237 -278
- data/spec/models/create_conference_webhook_spec.rb +465 -549
- data/spec/models/create_web_rtc_token_spec.rb +137 -159
- data/spec/models/dequeue_spec.rb +15 -17
- data/spec/models/dequeue_webhook_spec.rb +401 -465
- data/spec/models/enqueue_spec.rb +170 -190
- data/spec/models/filter_logs_request_spec.rb +74 -91
- data/spec/models/get_digits_reason_spec.rb +32 -34
- data/spec/models/get_digits_spec.rb +327 -361
- data/spec/models/get_digits_webhook_spec.rb +436 -517
- data/spec/models/get_speech_reason_spec.rb +40 -42
- data/spec/models/get_speech_spec.rb +400 -492
- data/spec/models/get_speech_webhook_spec.rb +608 -698
- data/spec/models/grammar_file_built_in_spec.rb +76 -78
- data/spec/models/grammar_type_spec.rb +25 -27
- data/spec/models/hangup_spec.rb +74 -91
- data/spec/models/if_machine_spec.rb +25 -27
- data/spec/models/inbound_call_webhook_spec.rb +372 -433
- data/spec/models/incoming_number_list_spec.rb +290 -326
- data/spec/models/incoming_number_request_spec.rb +137 -156
- data/spec/models/incoming_number_result_spec.rb +584 -613
- data/spec/models/language_spec.rb +121 -123
- data/spec/models/leave_conference_webhook_spec.rb +342 -402
- data/spec/models/log_level_spec.rb +28 -30
- data/spec/models/log_list_spec.rb +290 -326
- data/spec/models/log_result_spec.rb +275 -311
- data/spec/models/machine_detected_webhook_spec.rb +402 -482
- data/spec/models/machine_type_spec.rb +25 -27
- data/spec/models/make_call_request_spec.rb +354 -383
- data/spec/models/message_delivery_webhook_spec.rb +358 -384
- data/spec/models/message_direction_spec.rb +25 -27
- data/spec/models/message_request_spec.rb +325 -352
- data/spec/models/message_result_spec.rb +674 -598
- data/spec/models/message_status_spec.rb +61 -63
- data/spec/models/message_status_webhook_spec.rb +406 -451
- data/spec/models/messages_list_spec.rb +290 -326
- data/spec/models/mutable_resource_model_spec.rb +169 -191
- data/spec/models/out_dial_api_connect_webhook_spec.rb +372 -433
- data/spec/models/out_dial_connect_webhook_spec.rb +372 -433
- data/spec/models/out_dial_spec.rb +355 -401
- data/spec/models/out_dial_start_webhook_spec.rb +402 -464
- data/spec/models/pagination_model_spec.rb +260 -295
- data/spec/models/park_spec.rb +137 -156
- data/spec/models/pause_spec.rb +73 -92
- data/spec/models/percl_command_spec.rb +77 -94
- data/spec/models/percl_script_spec.rb +74 -91
- data/spec/models/play_beep_spec.rb +32 -34
- data/spec/models/play_early_media_spec.rb +74 -91
- data/spec/models/play_spec.rb +136 -157
- data/spec/models/queue_list_spec.rb +290 -326
- data/spec/models/queue_member_list_spec.rb +290 -326
- data/spec/models/queue_member_spec.rb +200 -225
- data/spec/models/queue_request_spec.rb +105 -125
- data/spec/models/queue_result_spec.rb +391 -419
- data/spec/models/queue_result_status_spec.rb +32 -34
- data/spec/models/queue_wait_webhook_spec.rb +430 -497
- data/spec/models/record_utterance_spec.rb +264 -291
- data/spec/models/record_utterance_term_reason_spec.rb +32 -34
- data/spec/models/record_webhook_spec.rb +605 -693
- data/spec/models/recording_list_spec.rb +290 -326
- data/spec/models/recording_result_spec.rb +324 -353
- data/spec/models/redirect_spec.rb +74 -91
- data/spec/models/redirect_webhook_spec.rb +372 -433
- data/spec/models/reject_spec.rb +74 -91
- data/spec/models/remove_from_conference_spec.rb +15 -17
- data/spec/models/remove_from_queue_notification_webhook_spec.rb +405 -487
- data/spec/models/request_type_spec.rb +108 -110
- data/spec/models/say_spec.rb +169 -191
- data/spec/models/send_digits_spec.rb +136 -157
- data/spec/models/set_dtmf_pass_through_spec.rb +75 -91
- data/spec/models/set_listen_spec.rb +75 -91
- data/spec/models/set_talk_spec.rb +75 -91
- data/spec/models/sms_spec.rb +170 -190
- data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +32 -34
- data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +36 -38
- data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +32 -34
- data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +36 -38
- data/spec/models/sms_ten_dlc_brand_spec.rb +1083 -1201
- data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +125 -127
- data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +290 -326
- data/spec/models/sms_ten_dlc_campaign_spec.rb +1140 -1208
- data/spec/models/sms_ten_dlc_campaign_status_spec.rb +25 -27
- data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +290 -326
- data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +407 -425
- data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +965 -1015
- data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +25 -27
- data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +290 -326
- data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +36 -38
- data/spec/models/sms_toll_free_campaign_spec.rb +271 -314
- data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +290 -326
- data/spec/models/start_record_call_spec.rb +15 -17
- data/spec/models/terminate_conference_spec.rb +15 -17
- data/spec/models/tfn_campaign_spec.rb +561 -0
- data/spec/models/tfn_spec.rb +74 -91
- data/spec/models/transcribe_reason_spec.rb +36 -38
- data/spec/models/transcribe_term_reason_spec.rb +25 -27
- data/spec/models/transcribe_utterance_record_spec.rb +135 -158
- data/spec/models/transcribe_utterance_spec.rb +245 -265
- data/spec/models/transcribe_webhook_spec.rb +750 -874
- data/spec/models/unpark_spec.rb +15 -17
- data/spec/models/update_call_request_spec.rb +75 -109
- data/spec/models/update_call_request_status_spec.rb +25 -27
- data/spec/models/update_conference_participant_request_spec.rb +138 -156
- data/spec/models/update_conference_request_spec.rb +141 -195
- data/spec/models/update_conference_request_status_spec.rb +25 -27
- data/spec/models/webhook_spec.rb +69 -86
- data/spec/quickstart_spec.rb +5 -5
- data/spec/spec_helper.rb +92 -100
- data/spec/utils/request_verifier_spec.rb +70 -71
- data/spec/utils/signature_information_spec.rb +23 -23
- data/yarn.lock +9 -0
- metadata +9 -153
@@ -1,18 +1,17 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
# #FreeClimb API
|
2
|
+
#
|
3
|
+
# FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
4
|
+
#
|
5
|
+
# The version of the OpenAPI document: 1.0.0
|
6
|
+
# Contact: support@freeclimb.com
|
7
|
+
# Generated by: https://openapi-generator.tech
|
8
|
+
# OpenAPI Generator version: 7.9.0
|
9
|
+
#
|
3
10
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.9.0
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
11
|
+
require "spec_helper"
|
12
|
+
require "json"
|
13
|
+
require "date"
|
14
|
+
include Freeclimb
|
16
15
|
|
17
16
|
# Unit tests for Freeclimb::TranscribeWebhook
|
18
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
@@ -20,1205 +19,1110 @@ require 'date'
|
|
20
19
|
describe Freeclimb::TranscribeWebhook do
|
21
20
|
let(:instance) { Freeclimb::TranscribeWebhook.new }
|
22
21
|
|
23
|
-
describe
|
24
|
-
it
|
22
|
+
describe "test an instance of TranscribeWebhook" do
|
23
|
+
it "should create an instance of TranscribeWebhook" do
|
25
24
|
expect(instance).to be_instance_of(Freeclimb::TranscribeWebhook)
|
26
25
|
end
|
27
26
|
end
|
28
|
-
describe
|
29
|
-
it
|
27
|
+
describe ".deserialize" do
|
28
|
+
it "deserializes a json payload into instance of TranscribeWebhook" do
|
30
29
|
payload = '{ "requestType": "transcribe" }'
|
31
30
|
expect(Freeclimb::TranscribeWebhook.deserialize(payload)).to be_instance_of(Freeclimb::TranscribeWebhook)
|
32
31
|
end
|
33
32
|
end
|
34
|
-
|
33
|
+
|
35
34
|
describe 'test attribute "request_type"' do
|
36
|
-
it
|
35
|
+
it "should work" do
|
37
36
|
instance.request_type = "TEST_STRING"
|
38
|
-
expect(instance.request_type).to eq("TEST_STRING")
|
39
|
-
|
37
|
+
expect(instance.request_type).to eq("TEST_STRING")
|
40
38
|
end
|
41
39
|
end
|
42
40
|
|
43
41
|
describe 'test attribute "account_id"' do
|
44
|
-
it
|
42
|
+
it "should work" do
|
45
43
|
instance.account_id = "TEST_STRING"
|
46
|
-
expect(instance.account_id).to eq("TEST_STRING")
|
47
|
-
|
44
|
+
expect(instance.account_id).to eq("TEST_STRING")
|
48
45
|
end
|
49
46
|
end
|
50
47
|
|
51
48
|
describe 'test attribute "call_id"' do
|
52
|
-
it
|
49
|
+
it "should work" do
|
53
50
|
instance.call_id = "TEST_STRING"
|
54
|
-
expect(instance.call_id).to eq("TEST_STRING")
|
55
|
-
|
51
|
+
expect(instance.call_id).to eq("TEST_STRING")
|
56
52
|
end
|
57
53
|
end
|
58
54
|
|
59
55
|
describe 'test attribute "from"' do
|
60
|
-
it
|
56
|
+
it "should work" do
|
61
57
|
instance.from = "TEST_STRING"
|
62
|
-
expect(instance.from).to eq("TEST_STRING")
|
63
|
-
|
58
|
+
expect(instance.from).to eq("TEST_STRING")
|
64
59
|
end
|
65
60
|
end
|
66
61
|
|
67
62
|
describe 'test attribute "to"' do
|
68
|
-
it
|
63
|
+
it "should work" do
|
69
64
|
instance.to = "TEST_STRING"
|
70
|
-
expect(instance.to).to eq("TEST_STRING")
|
71
|
-
|
65
|
+
expect(instance.to).to eq("TEST_STRING")
|
72
66
|
end
|
73
67
|
end
|
74
68
|
|
75
69
|
describe 'test attribute "recording_id"' do
|
76
|
-
it
|
70
|
+
it "should work" do
|
77
71
|
instance.recording_id = "TEST_STRING"
|
78
|
-
expect(instance.recording_id).to eq("TEST_STRING")
|
79
|
-
|
72
|
+
expect(instance.recording_id).to eq("TEST_STRING")
|
80
73
|
end
|
81
74
|
end
|
82
75
|
|
83
76
|
describe 'test attribute "recording_url"' do
|
84
|
-
it
|
77
|
+
it "should work" do
|
85
78
|
instance.recording_url = "TEST_STRING"
|
86
|
-
expect(instance.recording_url).to eq("TEST_STRING")
|
87
|
-
|
79
|
+
expect(instance.recording_url).to eq("TEST_STRING")
|
88
80
|
end
|
89
81
|
end
|
90
82
|
|
91
83
|
describe 'test attribute "recording_size"' do
|
92
|
-
it
|
93
|
-
|
94
|
-
|
84
|
+
it "should work" do
|
95
85
|
instance.recording_size = 1
|
96
86
|
expect(instance.recording_size).to eq(1)
|
97
|
-
|
98
87
|
end
|
99
88
|
end
|
100
89
|
|
101
90
|
describe 'test attribute "recording_format"' do
|
102
|
-
it
|
91
|
+
it "should work" do
|
103
92
|
instance.recording_format = "TEST_STRING"
|
104
|
-
expect(instance.recording_format).to eq("TEST_STRING")
|
105
|
-
|
93
|
+
expect(instance.recording_format).to eq("TEST_STRING")
|
106
94
|
end
|
107
95
|
end
|
108
96
|
|
109
97
|
describe 'test attribute "recording_duration_ms"' do
|
110
|
-
it
|
111
|
-
|
112
|
-
|
98
|
+
it "should work" do
|
113
99
|
instance.recording_duration_ms = 1
|
114
100
|
expect(instance.recording_duration_ms).to eq(1)
|
115
|
-
|
116
101
|
end
|
117
102
|
end
|
118
103
|
|
119
|
-
|
120
104
|
describe 'test attribute "term_reason"' do
|
121
|
-
it
|
105
|
+
it "assigns value ERROR" do
|
122
106
|
instance.term_reason = Freeclimb::TranscribeTermReason::ERROR
|
123
|
-
expect(instance.term_reason).to eq(Freeclimb::TranscribeTermReason::ERROR)
|
107
|
+
expect(instance.term_reason).to eq(Freeclimb::TranscribeTermReason::ERROR)
|
124
108
|
end
|
125
|
-
it
|
109
|
+
it "assigns value COMPLETED" do
|
126
110
|
instance.term_reason = Freeclimb::TranscribeTermReason::COMPLETED
|
127
|
-
expect(instance.term_reason).to eq(Freeclimb::TranscribeTermReason::COMPLETED)
|
111
|
+
expect(instance.term_reason).to eq(Freeclimb::TranscribeTermReason::COMPLETED)
|
128
112
|
end
|
129
113
|
end
|
130
114
|
|
131
115
|
describe 'test attribute "record_term_reason"' do
|
132
|
-
it
|
116
|
+
it "assigns value FINISH_KEY" do
|
133
117
|
instance.record_term_reason = Freeclimb::RecordUtteranceTermReason::FINISH_KEY
|
134
|
-
expect(instance.record_term_reason).to eq(Freeclimb::RecordUtteranceTermReason::FINISH_KEY)
|
118
|
+
expect(instance.record_term_reason).to eq(Freeclimb::RecordUtteranceTermReason::FINISH_KEY)
|
135
119
|
end
|
136
|
-
it
|
120
|
+
it "assigns value TIMEOUT" do
|
137
121
|
instance.record_term_reason = Freeclimb::RecordUtteranceTermReason::TIMEOUT
|
138
|
-
expect(instance.record_term_reason).to eq(Freeclimb::RecordUtteranceTermReason::TIMEOUT)
|
122
|
+
expect(instance.record_term_reason).to eq(Freeclimb::RecordUtteranceTermReason::TIMEOUT)
|
139
123
|
end
|
140
|
-
it
|
124
|
+
it "assigns value HANGUP" do
|
141
125
|
instance.record_term_reason = Freeclimb::RecordUtteranceTermReason::HANGUP
|
142
|
-
expect(instance.record_term_reason).to eq(Freeclimb::RecordUtteranceTermReason::HANGUP)
|
126
|
+
expect(instance.record_term_reason).to eq(Freeclimb::RecordUtteranceTermReason::HANGUP)
|
143
127
|
end
|
144
|
-
it
|
128
|
+
it "assigns value MAX_LENGTH" do
|
145
129
|
instance.record_term_reason = Freeclimb::RecordUtteranceTermReason::MAX_LENGTH
|
146
|
-
expect(instance.record_term_reason).to eq(Freeclimb::RecordUtteranceTermReason::MAX_LENGTH)
|
130
|
+
expect(instance.record_term_reason).to eq(Freeclimb::RecordUtteranceTermReason::MAX_LENGTH)
|
147
131
|
end
|
148
132
|
end
|
149
133
|
describe 'test attribute "digit"' do
|
150
|
-
it
|
134
|
+
it "should work" do
|
151
135
|
instance.digit = "TEST_STRING"
|
152
|
-
expect(instance.digit).to eq("TEST_STRING")
|
153
|
-
|
136
|
+
expect(instance.digit).to eq("TEST_STRING")
|
154
137
|
end
|
155
138
|
end
|
156
139
|
|
157
140
|
describe 'test attribute "privacy_for_logging"' do
|
158
|
-
it
|
141
|
+
it "should work" do
|
159
142
|
instance.privacy_for_logging = false
|
160
|
-
expect(instance.privacy_for_logging).to eq(false)
|
161
|
-
|
143
|
+
expect(instance.privacy_for_logging).to eq(false)
|
162
144
|
end
|
163
145
|
end
|
164
146
|
|
165
147
|
describe 'test attribute "privacy_for_recording"' do
|
166
|
-
it
|
148
|
+
it "should work" do
|
167
149
|
instance.privacy_for_recording = false
|
168
|
-
expect(instance.privacy_for_recording).to eq(false)
|
169
|
-
|
150
|
+
expect(instance.privacy_for_recording).to eq(false)
|
170
151
|
end
|
171
152
|
end
|
172
153
|
|
173
|
-
|
174
154
|
describe 'test attribute "barge_in_reason"' do
|
175
|
-
it
|
155
|
+
it "assigns value NO_BARGE_IN" do
|
176
156
|
instance.barge_in_reason = Freeclimb::BargeInReason::NO_BARGE_IN
|
177
|
-
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)
|
178
158
|
end
|
179
|
-
it
|
159
|
+
it "assigns value BARGE_IN_BY_DTMF" do
|
180
160
|
instance.barge_in_reason = Freeclimb::BargeInReason::BARGE_IN_BY_DTMF
|
181
|
-
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)
|
182
162
|
end
|
183
|
-
it
|
163
|
+
it "assigns value BARGE_IN_BY_ENERGY" do
|
184
164
|
instance.barge_in_reason = Freeclimb::BargeInReason::BARGE_IN_BY_ENERGY
|
185
|
-
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)
|
186
166
|
end
|
187
167
|
end
|
188
168
|
describe 'test attribute "barged_in_prompt_no"' do
|
189
|
-
it
|
190
|
-
|
191
|
-
|
169
|
+
it "should work" do
|
192
170
|
instance.barged_in_prompt_no = 1
|
193
171
|
expect(instance.barged_in_prompt_no).to eq(1)
|
194
|
-
|
195
172
|
end
|
196
173
|
end
|
197
174
|
|
198
175
|
describe 'test attribute "barged_in_prompt_ms"' do
|
199
|
-
it
|
200
|
-
|
201
|
-
|
176
|
+
it "should work" do
|
202
177
|
instance.barged_in_prompt_ms = 1
|
203
178
|
expect(instance.barged_in_prompt_ms).to eq(1)
|
204
|
-
|
205
179
|
end
|
206
180
|
end
|
207
181
|
|
208
182
|
describe 'test attribute "barged_in_prompt_loop_no"' do
|
209
|
-
it
|
210
|
-
|
211
|
-
|
183
|
+
it "should work" do
|
212
184
|
instance.barged_in_prompt_loop_no = 1
|
213
185
|
expect(instance.barged_in_prompt_loop_no).to eq(1)
|
214
|
-
|
215
186
|
end
|
216
187
|
end
|
217
188
|
|
218
189
|
describe 'test attribute "barge_in_time_ms"' do
|
219
|
-
it
|
220
|
-
|
221
|
-
|
190
|
+
it "should work" do
|
222
191
|
instance.barge_in_time_ms = 1
|
223
192
|
expect(instance.barge_in_time_ms).to eq(1)
|
224
|
-
|
225
193
|
end
|
226
194
|
end
|
227
195
|
|
228
196
|
describe 'test attribute "transcript"' do
|
229
|
-
it
|
197
|
+
it "should work" do
|
230
198
|
instance.transcript = "TEST_STRING"
|
231
|
-
expect(instance.transcript).to eq("TEST_STRING")
|
232
|
-
|
199
|
+
expect(instance.transcript).to eq("TEST_STRING")
|
233
200
|
end
|
234
201
|
end
|
235
202
|
|
236
|
-
|
237
203
|
describe 'test attribute "transcribe_reason"' do
|
238
|
-
it
|
204
|
+
it "assigns value INTERNAL_ERROR" do
|
239
205
|
instance.transcribe_reason = Freeclimb::TranscribeReason::INTERNAL_ERROR
|
240
|
-
expect(instance.transcribe_reason).to eq(Freeclimb::TranscribeReason::INTERNAL_ERROR)
|
206
|
+
expect(instance.transcribe_reason).to eq(Freeclimb::TranscribeReason::INTERNAL_ERROR)
|
241
207
|
end
|
242
|
-
it
|
208
|
+
it "assigns value HANGUP" do
|
243
209
|
instance.transcribe_reason = Freeclimb::TranscribeReason::HANGUP
|
244
|
-
expect(instance.transcribe_reason).to eq(Freeclimb::TranscribeReason::HANGUP)
|
210
|
+
expect(instance.transcribe_reason).to eq(Freeclimb::TranscribeReason::HANGUP)
|
245
211
|
end
|
246
|
-
it
|
212
|
+
it "assigns value MAX_LENGTH" do
|
247
213
|
instance.transcribe_reason = Freeclimb::TranscribeReason::MAX_LENGTH
|
248
|
-
expect(instance.transcribe_reason).to eq(Freeclimb::TranscribeReason::MAX_LENGTH)
|
214
|
+
expect(instance.transcribe_reason).to eq(Freeclimb::TranscribeReason::MAX_LENGTH)
|
249
215
|
end
|
250
|
-
it
|
216
|
+
it "assigns value DIGIT" do
|
251
217
|
instance.transcribe_reason = Freeclimb::TranscribeReason::DIGIT
|
252
|
-
expect(instance.transcribe_reason).to eq(Freeclimb::TranscribeReason::DIGIT)
|
218
|
+
expect(instance.transcribe_reason).to eq(Freeclimb::TranscribeReason::DIGIT)
|
253
219
|
end
|
254
|
-
it
|
220
|
+
it "assigns value NO_INPUT" do
|
255
221
|
instance.transcribe_reason = Freeclimb::TranscribeReason::NO_INPUT
|
256
|
-
expect(instance.transcribe_reason).to eq(Freeclimb::TranscribeReason::NO_INPUT)
|
222
|
+
expect(instance.transcribe_reason).to eq(Freeclimb::TranscribeReason::NO_INPUT)
|
257
223
|
end
|
258
224
|
end
|
259
225
|
describe 'test attribute "transcription_duration_ms"' do
|
260
|
-
it
|
261
|
-
|
262
|
-
|
226
|
+
it "should work" do
|
263
227
|
instance.transcription_duration_ms = 1
|
264
228
|
expect(instance.transcription_duration_ms).to eq(1)
|
265
|
-
|
266
229
|
end
|
267
230
|
end
|
268
231
|
|
269
232
|
describe 'test method "initialize"' do
|
270
|
-
it
|
271
|
-
expect {
|
272
|
-
|
273
|
-
|
274
|
-
account_id: "TS",
|
275
|
-
|
276
|
-
call_id: "TS",
|
277
|
-
|
278
|
-
from: "TS",
|
279
|
-
|
280
|
-
to: "TS",
|
281
|
-
|
282
|
-
recording_id: "TS",
|
283
|
-
|
284
|
-
recording_url: "TS",
|
285
|
-
|
286
|
-
recording_size: 1,
|
287
|
-
|
288
|
-
recording_format: "TS",
|
289
|
-
|
290
|
-
recording_duration_ms: 1,
|
291
|
-
|
292
|
-
|
293
|
-
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
294
|
-
|
295
|
-
|
296
|
-
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
297
|
-
|
298
|
-
digit: "TS",
|
299
|
-
|
300
|
-
privacy_for_logging: true,
|
301
|
-
|
302
|
-
privacy_for_recording: true,
|
303
|
-
|
304
|
-
|
305
|
-
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
306
|
-
|
307
|
-
barged_in_prompt_no: 1,
|
308
|
-
|
309
|
-
barged_in_prompt_ms: 1,
|
310
|
-
|
311
|
-
barged_in_prompt_loop_no: 1,
|
312
|
-
|
313
|
-
barge_in_time_ms: 1,
|
314
|
-
|
315
|
-
transcript: "TS",
|
316
|
-
|
317
|
-
|
318
|
-
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
319
|
-
|
320
|
-
transcription_duration_ms: 1,
|
321
|
-
|
322
|
-
)}.not_to raise_error()
|
323
|
-
end
|
324
|
-
it 'fails to initialize with input argument that is not a hash in Freeclimb::TranscribeWebhook' do
|
325
|
-
expect { instance = Freeclimb::TranscribeWebhook.new(
|
326
|
-
request_type: "TS",
|
327
|
-
|
328
|
-
account_id: "TS",
|
329
|
-
|
330
|
-
call_id: "TS",
|
331
|
-
|
332
|
-
from: "TS",
|
333
|
-
|
334
|
-
to: "TS",
|
335
|
-
|
336
|
-
recording_id: "TS",
|
337
|
-
|
338
|
-
recording_url: "TS",
|
339
|
-
|
340
|
-
recording_size: 1,
|
341
|
-
|
342
|
-
recording_format: "TS",
|
343
|
-
|
344
|
-
recording_duration_ms: 1,
|
345
|
-
|
346
|
-
|
347
|
-
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
348
|
-
|
349
|
-
|
350
|
-
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
351
|
-
|
352
|
-
digit: "TS",
|
353
|
-
|
354
|
-
privacy_for_logging: true,
|
355
|
-
|
356
|
-
privacy_for_recording: true,
|
357
|
-
|
358
|
-
|
359
|
-
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
360
|
-
|
361
|
-
barged_in_prompt_no: 1,
|
362
|
-
|
363
|
-
barged_in_prompt_ms: 1,
|
364
|
-
|
365
|
-
barged_in_prompt_loop_no: 1,
|
366
|
-
|
367
|
-
barge_in_time_ms: 1,
|
368
|
-
|
369
|
-
transcript: "TS",
|
370
|
-
|
371
|
-
|
372
|
-
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
373
|
-
|
374
|
-
transcription_duration_ms: 1,
|
375
|
-
|
376
|
-
invalid_attribute: true
|
377
|
-
)}.to raise_error(ArgumentError)
|
378
|
-
end
|
379
|
-
it 'fails to initialize with invalid attribute' do
|
380
|
-
expect { instance = Freeclimb::TranscribeWebhook.new(
|
381
|
-
request_type: "TS",
|
382
|
-
|
383
|
-
account_id: "TS",
|
384
|
-
|
385
|
-
call_id: "TS",
|
386
|
-
|
387
|
-
from: "TS",
|
388
|
-
|
389
|
-
to: "TS",
|
390
|
-
|
391
|
-
recording_id: "TS",
|
392
|
-
|
393
|
-
recording_url: "TS",
|
394
|
-
|
395
|
-
recording_size: 1,
|
396
|
-
|
397
|
-
recording_format: "TS",
|
398
|
-
|
399
|
-
recording_duration_ms: 1,
|
400
|
-
|
401
|
-
|
402
|
-
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
403
|
-
|
404
|
-
|
405
|
-
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
406
|
-
|
407
|
-
digit: "TS",
|
408
|
-
|
409
|
-
privacy_for_logging: true,
|
410
|
-
|
411
|
-
privacy_for_recording: true,
|
412
|
-
|
413
|
-
|
414
|
-
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
415
|
-
|
416
|
-
barged_in_prompt_no: 1,
|
417
|
-
|
418
|
-
barged_in_prompt_ms: 1,
|
419
|
-
|
420
|
-
barged_in_prompt_loop_no: 1,
|
421
|
-
|
422
|
-
barge_in_time_ms: 1,
|
423
|
-
|
424
|
-
transcript: "TS",
|
425
|
-
|
426
|
-
|
427
|
-
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
428
|
-
|
429
|
-
transcription_duration_ms: 1,
|
430
|
-
|
431
|
-
invalid_attribute: true
|
432
|
-
)}.to raise_error(ArgumentError)
|
433
|
-
end
|
434
|
-
end
|
435
|
-
|
436
|
-
describe 'test method "valid"' do
|
437
|
-
it 'checks if properties are valid' do
|
438
|
-
instance = Freeclimb::TranscribeWebhook.new(
|
233
|
+
it "properly initializes with values" do
|
234
|
+
expect {
|
235
|
+
Freeclimb::TranscribeWebhook.new(
|
439
236
|
request_type: "TS",
|
440
|
-
|
237
|
+
|
441
238
|
account_id: "TS",
|
442
|
-
|
239
|
+
|
443
240
|
call_id: "TS",
|
444
|
-
|
241
|
+
|
445
242
|
from: "TS",
|
446
|
-
|
243
|
+
|
447
244
|
to: "TS",
|
448
|
-
|
245
|
+
|
449
246
|
recording_id: "TS",
|
450
|
-
|
247
|
+
|
451
248
|
recording_url: "TS",
|
452
|
-
|
249
|
+
|
453
250
|
recording_size: 1,
|
454
|
-
|
251
|
+
|
455
252
|
recording_format: "TS",
|
456
|
-
|
253
|
+
|
457
254
|
recording_duration_ms: 1,
|
458
|
-
|
459
|
-
|
255
|
+
|
460
256
|
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
461
|
-
|
462
|
-
|
257
|
+
|
463
258
|
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
464
|
-
|
259
|
+
|
465
260
|
digit: "TS",
|
466
|
-
|
261
|
+
|
467
262
|
privacy_for_logging: true,
|
468
|
-
|
263
|
+
|
469
264
|
privacy_for_recording: true,
|
470
|
-
|
471
|
-
|
265
|
+
|
472
266
|
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
473
|
-
|
267
|
+
|
474
268
|
barged_in_prompt_no: 1,
|
475
|
-
|
269
|
+
|
476
270
|
barged_in_prompt_ms: 1,
|
477
|
-
|
271
|
+
|
478
272
|
barged_in_prompt_loop_no: 1,
|
479
|
-
|
273
|
+
|
480
274
|
barge_in_time_ms: 1,
|
481
|
-
|
275
|
+
|
482
276
|
transcript: "TS",
|
483
|
-
|
484
|
-
|
485
|
-
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
486
|
-
|
487
|
-
transcription_duration_ms: 1,
|
488
|
-
|
489
|
-
)
|
490
|
-
expect(instance.valid?).to eq(true)
|
491
|
-
end
|
492
277
|
|
278
|
+
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
493
279
|
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
)
|
498
|
-
expect(instance.valid?).to eq(false)
|
280
|
+
transcription_duration_ms: 1
|
281
|
+
)
|
282
|
+
}.not_to raise_error
|
499
283
|
end
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
describe 'test method "eql?"' do
|
504
|
-
it 'checks if objects are equal' do
|
505
|
-
obj = Object.new()
|
506
|
-
instance_1 = Freeclimb::TranscribeWebhook.new(
|
284
|
+
it "fails to initialize with input argument that is not a hash in Freeclimb::TranscribeWebhook" do
|
285
|
+
expect {
|
286
|
+
Freeclimb::TranscribeWebhook.new(
|
507
287
|
request_type: "TS",
|
508
|
-
|
288
|
+
|
509
289
|
account_id: "TS",
|
510
|
-
|
290
|
+
|
511
291
|
call_id: "TS",
|
512
|
-
|
292
|
+
|
513
293
|
from: "TS",
|
514
|
-
|
294
|
+
|
515
295
|
to: "TS",
|
516
|
-
|
296
|
+
|
517
297
|
recording_id: "TS",
|
518
|
-
|
298
|
+
|
519
299
|
recording_url: "TS",
|
520
|
-
|
300
|
+
|
521
301
|
recording_size: 1,
|
522
|
-
|
302
|
+
|
523
303
|
recording_format: "TS",
|
524
|
-
|
304
|
+
|
525
305
|
recording_duration_ms: 1,
|
526
|
-
|
527
|
-
|
306
|
+
|
528
307
|
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
529
|
-
|
530
|
-
|
308
|
+
|
531
309
|
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
532
|
-
|
310
|
+
|
533
311
|
digit: "TS",
|
534
|
-
|
312
|
+
|
535
313
|
privacy_for_logging: true,
|
536
|
-
|
314
|
+
|
537
315
|
privacy_for_recording: true,
|
538
|
-
|
539
|
-
|
316
|
+
|
540
317
|
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
541
|
-
|
318
|
+
|
542
319
|
barged_in_prompt_no: 1,
|
543
|
-
|
320
|
+
|
544
321
|
barged_in_prompt_ms: 1,
|
545
|
-
|
322
|
+
|
546
323
|
barged_in_prompt_loop_no: 1,
|
547
|
-
|
324
|
+
|
548
325
|
barge_in_time_ms: 1,
|
549
|
-
|
326
|
+
|
550
327
|
transcript: "TS",
|
551
|
-
|
552
|
-
|
328
|
+
|
553
329
|
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
554
|
-
|
330
|
+
|
555
331
|
transcription_duration_ms: 1,
|
556
|
-
|
557
|
-
|
558
|
-
|
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(
|
559
340
|
request_type: "TS",
|
560
|
-
|
341
|
+
|
561
342
|
account_id: "TS",
|
562
|
-
|
343
|
+
|
563
344
|
call_id: "TS",
|
564
|
-
|
345
|
+
|
565
346
|
from: "TS",
|
566
|
-
|
347
|
+
|
567
348
|
to: "TS",
|
568
|
-
|
349
|
+
|
569
350
|
recording_id: "TS",
|
570
|
-
|
351
|
+
|
571
352
|
recording_url: "TS",
|
572
|
-
|
353
|
+
|
573
354
|
recording_size: 1,
|
574
|
-
|
355
|
+
|
575
356
|
recording_format: "TS",
|
576
|
-
|
357
|
+
|
577
358
|
recording_duration_ms: 1,
|
578
|
-
|
579
|
-
|
359
|
+
|
580
360
|
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
581
|
-
|
582
|
-
|
361
|
+
|
583
362
|
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
584
|
-
|
363
|
+
|
585
364
|
digit: "TS",
|
586
|
-
|
365
|
+
|
587
366
|
privacy_for_logging: true,
|
588
|
-
|
367
|
+
|
589
368
|
privacy_for_recording: true,
|
590
|
-
|
591
|
-
|
369
|
+
|
592
370
|
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
593
|
-
|
371
|
+
|
594
372
|
barged_in_prompt_no: 1,
|
595
|
-
|
373
|
+
|
596
374
|
barged_in_prompt_ms: 1,
|
597
|
-
|
375
|
+
|
598
376
|
barged_in_prompt_loop_no: 1,
|
599
|
-
|
377
|
+
|
600
378
|
barge_in_time_ms: 1,
|
601
|
-
|
602
|
-
transcript: "TS",
|
603
|
-
|
604
|
-
|
605
|
-
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
606
|
-
|
607
|
-
transcription_duration_ms: 1,
|
608
|
-
|
609
|
-
)
|
610
|
-
expect(instance_1.eql?(instance_2)).to eq(true)
|
611
|
-
end
|
612
|
-
|
613
|
-
it 'checks if objects are not equal' do
|
614
|
-
instance_1 = Freeclimb::TranscribeWebhook.new(
|
615
|
-
request_type: "TS",
|
616
|
-
|
617
|
-
account_id: "TS",
|
618
|
-
|
619
|
-
call_id: "TS",
|
620
|
-
|
621
|
-
from: "TS",
|
622
|
-
|
623
|
-
to: "TS",
|
624
|
-
|
625
|
-
recording_id: "TS",
|
626
|
-
|
627
|
-
recording_url: "TS",
|
628
|
-
|
629
|
-
recording_size: 2,
|
630
|
-
|
631
|
-
recording_format: "TS",
|
632
|
-
|
633
|
-
recording_duration_ms: 2,
|
634
|
-
|
635
|
-
|
636
|
-
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
637
|
-
|
638
|
-
|
639
|
-
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
640
|
-
|
641
|
-
digit: "TS",
|
642
|
-
|
643
|
-
privacy_for_logging: true,
|
644
|
-
|
645
|
-
privacy_for_recording: true,
|
646
|
-
|
647
|
-
|
648
|
-
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
649
|
-
|
650
|
-
barged_in_prompt_no: 2,
|
651
|
-
|
652
|
-
barged_in_prompt_ms: 2,
|
653
|
-
|
654
|
-
barged_in_prompt_loop_no: 2,
|
655
|
-
|
656
|
-
barge_in_time_ms: 2,
|
657
|
-
|
379
|
+
|
658
380
|
transcript: "TS",
|
659
|
-
|
660
|
-
|
381
|
+
|
661
382
|
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
662
|
-
|
663
|
-
transcription_duration_ms: 2,
|
664
|
-
|
665
|
-
)
|
666
|
-
instance_2 = Freeclimb::TranscribeWebhook.new(
|
667
|
-
request_type: "ST",
|
668
|
-
|
669
|
-
account_id: "ST",
|
670
|
-
|
671
|
-
call_id: "ST",
|
672
|
-
|
673
|
-
from: "ST",
|
674
|
-
|
675
|
-
to: "ST",
|
676
|
-
|
677
|
-
recording_id: "ST",
|
678
|
-
|
679
|
-
recording_url: "ST",
|
680
|
-
|
681
|
-
recording_size: 1,
|
682
|
-
|
683
|
-
recording_format: "ST",
|
684
|
-
|
685
|
-
recording_duration_ms: 1,
|
686
|
-
|
687
|
-
|
688
|
-
term_reason: nil,
|
689
|
-
|
690
|
-
|
691
|
-
record_term_reason: nil,
|
692
|
-
|
693
|
-
digit: "ST",
|
694
|
-
|
695
|
-
privacy_for_logging: false,
|
696
|
-
|
697
|
-
privacy_for_recording: false,
|
698
|
-
|
699
|
-
|
700
|
-
barge_in_reason: nil,
|
701
|
-
|
702
|
-
barged_in_prompt_no: 1,
|
703
|
-
|
704
|
-
barged_in_prompt_ms: 1,
|
705
|
-
|
706
|
-
barged_in_prompt_loop_no: 1,
|
707
|
-
|
708
|
-
barge_in_time_ms: 1,
|
709
|
-
|
710
|
-
transcript: "ST",
|
711
|
-
|
712
|
-
|
713
|
-
transcribe_reason: nil,
|
714
|
-
|
383
|
+
|
715
384
|
transcription_duration_ms: 1,
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
end
|
721
|
-
|
722
|
-
describe 'test method "hash"' do
|
723
|
-
it 'calculates hash code' do
|
724
|
-
instance = Freeclimb::TranscribeWebhook.new(
|
725
|
-
request_type: "TS",
|
726
|
-
|
727
|
-
account_id: "TS",
|
728
|
-
|
729
|
-
call_id: "TS",
|
730
|
-
|
731
|
-
from: "TS",
|
732
|
-
|
733
|
-
to: "TS",
|
734
|
-
|
735
|
-
recording_id: "TS",
|
736
|
-
|
737
|
-
recording_url: "TS",
|
738
|
-
|
739
|
-
recording_size: 1,
|
740
|
-
|
741
|
-
recording_format: "TS",
|
742
|
-
|
743
|
-
recording_duration_ms: 1,
|
744
|
-
|
745
|
-
|
746
|
-
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
747
|
-
|
748
|
-
|
749
|
-
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
750
|
-
|
751
|
-
digit: "TS",
|
752
|
-
|
753
|
-
privacy_for_logging: true,
|
754
|
-
|
755
|
-
privacy_for_recording: true,
|
756
|
-
|
757
|
-
|
758
|
-
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
759
|
-
|
760
|
-
barged_in_prompt_no: 1,
|
761
|
-
|
762
|
-
barged_in_prompt_ms: 1,
|
763
|
-
|
764
|
-
barged_in_prompt_loop_no: 1,
|
765
|
-
|
766
|
-
barge_in_time_ms: 1,
|
767
|
-
|
768
|
-
transcript: "TS",
|
769
|
-
|
770
|
-
|
771
|
-
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
772
|
-
|
773
|
-
transcription_duration_ms: 1,
|
774
|
-
|
775
|
-
)
|
776
|
-
expect(instance.hash).to be_a_kind_of(Integer)
|
385
|
+
|
386
|
+
invalid_attribute: true
|
387
|
+
)
|
388
|
+
}.to raise_error(ArgumentError)
|
777
389
|
end
|
778
390
|
end
|
779
391
|
|
780
|
-
describe 'test method "
|
781
|
-
it
|
782
|
-
|
392
|
+
describe 'test method "valid"' do
|
393
|
+
it "checks if properties are valid" do
|
394
|
+
instance = Freeclimb::TranscribeWebhook.new(
|
783
395
|
request_type: "TS",
|
784
|
-
|
396
|
+
|
785
397
|
account_id: "TS",
|
786
|
-
|
398
|
+
|
787
399
|
call_id: "TS",
|
788
|
-
|
400
|
+
|
789
401
|
from: "TS",
|
790
|
-
|
402
|
+
|
791
403
|
to: "TS",
|
792
|
-
|
404
|
+
|
793
405
|
recording_id: "TS",
|
794
|
-
|
406
|
+
|
795
407
|
recording_url: "TS",
|
796
|
-
|
408
|
+
|
797
409
|
recording_size: 1,
|
798
|
-
|
410
|
+
|
799
411
|
recording_format: "TS",
|
800
|
-
|
412
|
+
|
801
413
|
recording_duration_ms: 1,
|
802
|
-
|
803
|
-
|
414
|
+
|
804
415
|
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
805
|
-
|
806
|
-
|
416
|
+
|
807
417
|
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
808
|
-
|
418
|
+
|
809
419
|
digit: "TS",
|
810
|
-
|
420
|
+
|
811
421
|
privacy_for_logging: true,
|
812
|
-
|
422
|
+
|
813
423
|
privacy_for_recording: true,
|
814
|
-
|
815
|
-
|
424
|
+
|
816
425
|
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
817
|
-
|
426
|
+
|
818
427
|
barged_in_prompt_no: 1,
|
819
|
-
|
428
|
+
|
820
429
|
barged_in_prompt_ms: 1,
|
821
|
-
|
430
|
+
|
822
431
|
barged_in_prompt_loop_no: 1,
|
823
|
-
|
432
|
+
|
824
433
|
barge_in_time_ms: 1,
|
825
|
-
|
434
|
+
|
826
435
|
transcript: "TS",
|
827
|
-
|
828
|
-
|
436
|
+
|
829
437
|
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
830
|
-
|
831
|
-
transcription_duration_ms: 1
|
832
|
-
|
438
|
+
|
439
|
+
transcription_duration_ms: 1
|
833
440
|
)
|
834
|
-
|
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(
|
835
454
|
request_type: "TS",
|
836
|
-
|
455
|
+
|
837
456
|
account_id: "TS",
|
838
|
-
|
457
|
+
|
839
458
|
call_id: "TS",
|
840
|
-
|
459
|
+
|
841
460
|
from: "TS",
|
842
|
-
|
461
|
+
|
843
462
|
to: "TS",
|
844
|
-
|
463
|
+
|
845
464
|
recording_id: "TS",
|
846
|
-
|
465
|
+
|
847
466
|
recording_url: "TS",
|
848
|
-
|
467
|
+
|
849
468
|
recording_size: 1,
|
850
|
-
|
469
|
+
|
851
470
|
recording_format: "TS",
|
852
|
-
|
471
|
+
|
853
472
|
recording_duration_ms: 1,
|
854
|
-
|
855
|
-
|
473
|
+
|
856
474
|
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
857
|
-
|
858
|
-
|
475
|
+
|
859
476
|
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
860
|
-
|
477
|
+
|
861
478
|
digit: "TS",
|
862
|
-
|
479
|
+
|
863
480
|
privacy_for_logging: true,
|
864
|
-
|
481
|
+
|
865
482
|
privacy_for_recording: true,
|
866
|
-
|
867
|
-
|
483
|
+
|
868
484
|
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
869
|
-
|
485
|
+
|
870
486
|
barged_in_prompt_no: 1,
|
871
|
-
|
487
|
+
|
872
488
|
barged_in_prompt_ms: 1,
|
873
|
-
|
489
|
+
|
874
490
|
barged_in_prompt_loop_no: 1,
|
875
|
-
|
491
|
+
|
876
492
|
barge_in_time_ms: 1,
|
877
|
-
|
493
|
+
|
878
494
|
transcript: "TS",
|
879
|
-
|
880
|
-
|
495
|
+
|
881
496
|
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
882
|
-
|
883
|
-
transcription_duration_ms: 1
|
884
|
-
|
497
|
+
|
498
|
+
transcription_duration_ms: 1
|
885
499
|
)
|
500
|
+
instance_2 = Freeclimb::TranscribeWebhook.new(
|
501
|
+
request_type: "TS",
|
886
502
|
|
887
|
-
|
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)
|
888
646
|
end
|
889
647
|
end
|
890
648
|
|
891
|
-
describe 'test method "
|
892
|
-
|
649
|
+
describe 'test method "hash"' do
|
650
|
+
it "calculates hash code" do
|
651
|
+
instance = Freeclimb::TranscribeWebhook.new(
|
893
652
|
request_type: "TS",
|
894
|
-
|
653
|
+
|
895
654
|
account_id: "TS",
|
896
|
-
|
655
|
+
|
897
656
|
call_id: "TS",
|
898
|
-
|
657
|
+
|
658
|
+
from: "TS",
|
659
|
+
|
660
|
+
to: "TS",
|
661
|
+
|
662
|
+
recording_id: "TS",
|
663
|
+
|
664
|
+
recording_url: "TS",
|
665
|
+
|
666
|
+
recording_size: 1,
|
667
|
+
|
668
|
+
recording_format: "TS",
|
669
|
+
|
670
|
+
recording_duration_ms: 1,
|
671
|
+
|
672
|
+
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
673
|
+
|
674
|
+
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
675
|
+
|
676
|
+
digit: "TS",
|
677
|
+
|
678
|
+
privacy_for_logging: true,
|
679
|
+
|
680
|
+
privacy_for_recording: true,
|
681
|
+
|
682
|
+
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
683
|
+
|
684
|
+
barged_in_prompt_no: 1,
|
685
|
+
|
686
|
+
barged_in_prompt_ms: 1,
|
687
|
+
|
688
|
+
barged_in_prompt_loop_no: 1,
|
689
|
+
|
690
|
+
barge_in_time_ms: 1,
|
691
|
+
|
692
|
+
transcript: "TS",
|
693
|
+
|
694
|
+
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
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
|
+
|
899
758
|
from: "TS",
|
900
|
-
|
759
|
+
|
901
760
|
to: "TS",
|
902
|
-
|
761
|
+
|
903
762
|
recording_id: "TS",
|
904
|
-
|
763
|
+
|
905
764
|
recording_url: "TS",
|
906
|
-
|
765
|
+
|
907
766
|
recording_size: 1,
|
908
|
-
|
767
|
+
|
909
768
|
recording_format: "TS",
|
910
|
-
|
769
|
+
|
911
770
|
recording_duration_ms: 1,
|
912
|
-
|
913
|
-
|
771
|
+
|
914
772
|
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
915
|
-
|
916
|
-
|
773
|
+
|
917
774
|
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
918
|
-
|
775
|
+
|
919
776
|
digit: "TS",
|
920
|
-
|
777
|
+
|
921
778
|
privacy_for_logging: true,
|
922
|
-
|
779
|
+
|
923
780
|
privacy_for_recording: true,
|
924
|
-
|
925
|
-
|
781
|
+
|
926
782
|
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
927
|
-
|
783
|
+
|
928
784
|
barged_in_prompt_no: 1,
|
929
|
-
|
785
|
+
|
930
786
|
barged_in_prompt_ms: 1,
|
931
|
-
|
787
|
+
|
932
788
|
barged_in_prompt_loop_no: 1,
|
933
|
-
|
789
|
+
|
934
790
|
barge_in_time_ms: 1,
|
935
|
-
|
791
|
+
|
936
792
|
transcript: "TS",
|
937
|
-
|
938
|
-
|
793
|
+
|
939
794
|
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
940
|
-
|
941
|
-
transcription_duration_ms: 1
|
942
|
-
|
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
|
943
850
|
)
|
944
|
-
it
|
851
|
+
it "deserializes the data of request_type" do
|
945
852
|
expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String)
|
946
853
|
end
|
947
|
-
|
854
|
+
|
855
|
+
it "deserializes the data of account_id" do
|
948
856
|
expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
|
949
857
|
end
|
950
|
-
|
858
|
+
|
859
|
+
it "deserializes the data of call_id" do
|
951
860
|
expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String)
|
952
861
|
end
|
953
|
-
|
862
|
+
|
863
|
+
it "deserializes the data of from" do
|
954
864
|
expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String)
|
955
865
|
end
|
956
|
-
|
866
|
+
|
867
|
+
it "deserializes the data of to" do
|
957
868
|
expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String)
|
958
869
|
end
|
959
|
-
|
870
|
+
|
871
|
+
it "deserializes the data of recording_id" do
|
960
872
|
expect(instance._deserialize("String", instance.recording_id)).to be_a_kind_of(String)
|
961
873
|
end
|
962
|
-
|
874
|
+
|
875
|
+
it "deserializes the data of recording_url" do
|
963
876
|
expect(instance._deserialize("String", instance.recording_url)).to be_a_kind_of(String)
|
964
877
|
end
|
965
|
-
|
878
|
+
|
879
|
+
it "deserializes the data of recording_size" do
|
966
880
|
expect(instance._deserialize("Integer", instance.recording_size)).to be_a_kind_of(Integer)
|
967
881
|
end
|
968
|
-
|
882
|
+
|
883
|
+
it "deserializes the data of recording_format" do
|
969
884
|
expect(instance._deserialize("String", instance.recording_format)).to be_a_kind_of(String)
|
970
885
|
end
|
971
|
-
|
886
|
+
|
887
|
+
it "deserializes the data of recording_duration_ms" do
|
972
888
|
expect(instance._deserialize("Integer", instance.recording_duration_ms)).to be_a_kind_of(Integer)
|
973
889
|
end
|
974
|
-
|
890
|
+
|
891
|
+
it "deserializes the data of digit" do
|
975
892
|
expect(instance._deserialize("String", instance.digit)).to be_a_kind_of(String)
|
976
893
|
end
|
977
|
-
|
894
|
+
|
895
|
+
it "deserializes the data of privacy_for_logging" do
|
978
896
|
expect(instance._deserialize("Boolean", instance.privacy_for_logging)).to be_a_kind_of(TrueClass)
|
979
897
|
end
|
980
|
-
|
898
|
+
|
899
|
+
it "deserializes the data of privacy_for_recording" do
|
981
900
|
expect(instance._deserialize("Boolean", instance.privacy_for_recording)).to be_a_kind_of(TrueClass)
|
982
901
|
end
|
983
|
-
|
902
|
+
|
903
|
+
it "deserializes the data of barged_in_prompt_no" do
|
984
904
|
expect(instance._deserialize("Integer", instance.barged_in_prompt_no)).to be_a_kind_of(Integer)
|
985
905
|
end
|
986
|
-
|
906
|
+
|
907
|
+
it "deserializes the data of barged_in_prompt_ms" do
|
987
908
|
expect(instance._deserialize("Integer", instance.barged_in_prompt_ms)).to be_a_kind_of(Integer)
|
988
909
|
end
|
989
|
-
|
910
|
+
|
911
|
+
it "deserializes the data of barged_in_prompt_loop_no" do
|
990
912
|
expect(instance._deserialize("Integer", instance.barged_in_prompt_loop_no)).to be_a_kind_of(Integer)
|
991
913
|
end
|
992
|
-
|
914
|
+
|
915
|
+
it "deserializes the data of barge_in_time_ms" do
|
993
916
|
expect(instance._deserialize("Integer", instance.barge_in_time_ms)).to be_a_kind_of(Integer)
|
994
917
|
end
|
995
|
-
|
918
|
+
|
919
|
+
it "deserializes the data of transcript" do
|
996
920
|
expect(instance._deserialize("String", instance.transcript)).to be_a_kind_of(String)
|
997
921
|
end
|
998
|
-
|
922
|
+
|
923
|
+
it "deserializes the data of transcription_duration_ms" do
|
999
924
|
expect(instance._deserialize("Integer", instance.transcription_duration_ms)).to be_a_kind_of(Integer)
|
1000
925
|
end
|
1001
926
|
end
|
1002
927
|
|
1003
928
|
describe 'test method "to_s"' do
|
1004
|
-
it
|
929
|
+
it "returns the string representation of the object" do
|
1005
930
|
instance = Freeclimb::TranscribeWebhook.new(
|
1006
931
|
request_type: "TS",
|
1007
|
-
|
932
|
+
|
1008
933
|
account_id: "TS",
|
1009
|
-
|
934
|
+
|
1010
935
|
call_id: "TS",
|
1011
|
-
|
936
|
+
|
1012
937
|
from: "TS",
|
1013
|
-
|
938
|
+
|
1014
939
|
to: "TS",
|
1015
|
-
|
940
|
+
|
1016
941
|
recording_id: "TS",
|
1017
|
-
|
942
|
+
|
1018
943
|
recording_url: "TS",
|
1019
|
-
|
944
|
+
|
1020
945
|
recording_size: 1,
|
1021
|
-
|
946
|
+
|
1022
947
|
recording_format: "TS",
|
1023
|
-
|
948
|
+
|
1024
949
|
recording_duration_ms: 1,
|
1025
|
-
|
1026
|
-
|
950
|
+
|
1027
951
|
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
1028
|
-
|
1029
|
-
|
952
|
+
|
1030
953
|
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
1031
|
-
|
954
|
+
|
1032
955
|
digit: "TS",
|
1033
|
-
|
956
|
+
|
1034
957
|
privacy_for_logging: true,
|
1035
|
-
|
958
|
+
|
1036
959
|
privacy_for_recording: true,
|
1037
|
-
|
1038
|
-
|
960
|
+
|
1039
961
|
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
1040
|
-
|
962
|
+
|
1041
963
|
barged_in_prompt_no: 1,
|
1042
|
-
|
964
|
+
|
1043
965
|
barged_in_prompt_ms: 1,
|
1044
|
-
|
966
|
+
|
1045
967
|
barged_in_prompt_loop_no: 1,
|
1046
|
-
|
968
|
+
|
1047
969
|
barge_in_time_ms: 1,
|
1048
|
-
|
970
|
+
|
1049
971
|
transcript: "TS",
|
1050
|
-
|
1051
|
-
|
972
|
+
|
1052
973
|
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
1053
|
-
|
1054
|
-
transcription_duration_ms: 1
|
1055
|
-
|
974
|
+
|
975
|
+
transcription_duration_ms: 1
|
1056
976
|
)
|
1057
977
|
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
1058
978
|
end
|
1059
979
|
end
|
1060
980
|
|
1061
981
|
describe 'test method "to_hash"' do
|
1062
|
-
it
|
982
|
+
it "returns the object in the form of hash" do
|
1063
983
|
instance = Freeclimb::TranscribeWebhook.new(
|
1064
984
|
request_type: "TS",
|
1065
|
-
|
985
|
+
|
1066
986
|
account_id: "TS",
|
1067
|
-
|
987
|
+
|
1068
988
|
call_id: "TS",
|
1069
|
-
|
989
|
+
|
1070
990
|
from: "TS",
|
1071
|
-
|
991
|
+
|
1072
992
|
to: "TS",
|
1073
|
-
|
993
|
+
|
1074
994
|
recording_id: "TS",
|
1075
|
-
|
995
|
+
|
1076
996
|
recording_url: "TS",
|
1077
|
-
|
997
|
+
|
1078
998
|
recording_size: 1,
|
1079
|
-
|
999
|
+
|
1080
1000
|
recording_format: "TS",
|
1081
|
-
|
1001
|
+
|
1082
1002
|
recording_duration_ms: 1,
|
1083
|
-
|
1084
|
-
|
1003
|
+
|
1085
1004
|
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
1086
|
-
|
1087
|
-
|
1005
|
+
|
1088
1006
|
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
1089
|
-
|
1007
|
+
|
1090
1008
|
digit: "TS",
|
1091
|
-
|
1009
|
+
|
1092
1010
|
privacy_for_logging: true,
|
1093
|
-
|
1011
|
+
|
1094
1012
|
privacy_for_recording: true,
|
1095
|
-
|
1096
|
-
|
1013
|
+
|
1097
1014
|
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
1098
|
-
|
1015
|
+
|
1099
1016
|
barged_in_prompt_no: 1,
|
1100
|
-
|
1017
|
+
|
1101
1018
|
barged_in_prompt_ms: 1,
|
1102
|
-
|
1019
|
+
|
1103
1020
|
barged_in_prompt_loop_no: 1,
|
1104
|
-
|
1021
|
+
|
1105
1022
|
barge_in_time_ms: 1,
|
1106
|
-
|
1023
|
+
|
1107
1024
|
transcript: "TS",
|
1108
|
-
|
1109
|
-
|
1025
|
+
|
1110
1026
|
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
1111
|
-
|
1112
|
-
transcription_duration_ms: 1
|
1113
|
-
|
1027
|
+
|
1028
|
+
transcription_duration_ms: 1
|
1114
1029
|
)
|
1115
1030
|
expect(instance.to_hash).to be_a_kind_of(Hash)
|
1116
1031
|
end
|
1117
|
-
it
|
1118
|
-
obj = Object.new()
|
1032
|
+
it "creates equal hash for two equal objects" do
|
1119
1033
|
instance_1 = Freeclimb::TranscribeWebhook.new(
|
1120
1034
|
request_type: "TS",
|
1121
|
-
|
1035
|
+
|
1122
1036
|
account_id: "TS",
|
1123
|
-
|
1037
|
+
|
1124
1038
|
call_id: "TS",
|
1125
|
-
|
1039
|
+
|
1126
1040
|
from: "TS",
|
1127
|
-
|
1041
|
+
|
1128
1042
|
to: "TS",
|
1129
|
-
|
1043
|
+
|
1130
1044
|
recording_id: "TS",
|
1131
|
-
|
1045
|
+
|
1132
1046
|
recording_url: "TS",
|
1133
|
-
|
1047
|
+
|
1134
1048
|
recording_size: 1,
|
1135
|
-
|
1049
|
+
|
1136
1050
|
recording_format: "TS",
|
1137
|
-
|
1051
|
+
|
1138
1052
|
recording_duration_ms: 1,
|
1139
|
-
|
1140
|
-
|
1053
|
+
|
1141
1054
|
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
1142
|
-
|
1143
|
-
|
1055
|
+
|
1144
1056
|
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
1145
|
-
|
1057
|
+
|
1146
1058
|
digit: "TS",
|
1147
|
-
|
1059
|
+
|
1148
1060
|
privacy_for_logging: true,
|
1149
|
-
|
1061
|
+
|
1150
1062
|
privacy_for_recording: true,
|
1151
|
-
|
1152
|
-
|
1063
|
+
|
1153
1064
|
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
1154
|
-
|
1065
|
+
|
1155
1066
|
barged_in_prompt_no: 1,
|
1156
|
-
|
1067
|
+
|
1157
1068
|
barged_in_prompt_ms: 1,
|
1158
|
-
|
1069
|
+
|
1159
1070
|
barged_in_prompt_loop_no: 1,
|
1160
|
-
|
1071
|
+
|
1161
1072
|
barge_in_time_ms: 1,
|
1162
|
-
|
1073
|
+
|
1163
1074
|
transcript: "TS",
|
1164
|
-
|
1165
|
-
|
1075
|
+
|
1166
1076
|
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
1167
|
-
|
1168
|
-
transcription_duration_ms: 1
|
1169
|
-
|
1077
|
+
|
1078
|
+
transcription_duration_ms: 1
|
1170
1079
|
)
|
1171
1080
|
instance_2 = Freeclimb::TranscribeWebhook.new(
|
1172
1081
|
request_type: "TS",
|
1173
|
-
|
1082
|
+
|
1174
1083
|
account_id: "TS",
|
1175
|
-
|
1084
|
+
|
1176
1085
|
call_id: "TS",
|
1177
|
-
|
1086
|
+
|
1178
1087
|
from: "TS",
|
1179
|
-
|
1088
|
+
|
1180
1089
|
to: "TS",
|
1181
|
-
|
1090
|
+
|
1182
1091
|
recording_id: "TS",
|
1183
|
-
|
1092
|
+
|
1184
1093
|
recording_url: "TS",
|
1185
|
-
|
1094
|
+
|
1186
1095
|
recording_size: 1,
|
1187
|
-
|
1096
|
+
|
1188
1097
|
recording_format: "TS",
|
1189
|
-
|
1098
|
+
|
1190
1099
|
recording_duration_ms: 1,
|
1191
|
-
|
1192
|
-
|
1100
|
+
|
1193
1101
|
term_reason: Freeclimb::TranscribeTermReason::ERROR,
|
1194
|
-
|
1195
|
-
|
1102
|
+
|
1196
1103
|
record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
|
1197
|
-
|
1104
|
+
|
1198
1105
|
digit: "TS",
|
1199
|
-
|
1106
|
+
|
1200
1107
|
privacy_for_logging: true,
|
1201
|
-
|
1108
|
+
|
1202
1109
|
privacy_for_recording: true,
|
1203
|
-
|
1204
|
-
|
1110
|
+
|
1205
1111
|
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
1206
|
-
|
1112
|
+
|
1207
1113
|
barged_in_prompt_no: 1,
|
1208
|
-
|
1114
|
+
|
1209
1115
|
barged_in_prompt_ms: 1,
|
1210
|
-
|
1116
|
+
|
1211
1117
|
barged_in_prompt_loop_no: 1,
|
1212
|
-
|
1118
|
+
|
1213
1119
|
barge_in_time_ms: 1,
|
1214
|
-
|
1120
|
+
|
1215
1121
|
transcript: "TS",
|
1216
|
-
|
1217
|
-
|
1122
|
+
|
1218
1123
|
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
1219
|
-
|
1220
|
-
transcription_duration_ms: 1
|
1221
|
-
|
1124
|
+
|
1125
|
+
transcription_duration_ms: 1
|
1222
1126
|
)
|
1223
1127
|
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
1224
1128
|
end
|
@@ -1226,148 +1130,120 @@ describe Freeclimb::TranscribeWebhook do
|
|
1226
1130
|
|
1227
1131
|
describe 'test method "_to_hash"' do
|
1228
1132
|
instance = Freeclimb::TranscribeWebhook.new(
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
1252
|
-
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN,
|
1278
|
-
|
1279
|
-
|
1280
|
-
barged_in_prompt_no: 1,
|
1281
|
-
|
1282
|
-
|
1283
|
-
barged_in_prompt_ms: 1,
|
1284
|
-
|
1285
|
-
|
1286
|
-
barged_in_prompt_loop_no: 1,
|
1287
|
-
|
1288
|
-
|
1289
|
-
barge_in_time_ms: 1,
|
1290
|
-
|
1291
|
-
|
1292
|
-
transcript: "TS",
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR,
|
1297
|
-
|
1298
|
-
|
1299
|
-
transcription_duration_ms: 1,
|
1300
|
-
|
1301
|
-
)
|
1302
|
-
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
|
1303
1180
|
expect(instance._to_hash(instance.request_type)).to eq(instance.request_type)
|
1304
1181
|
end
|
1305
|
-
it
|
1182
|
+
it "returns account_id in the form of hash" do
|
1306
1183
|
expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)
|
1307
1184
|
end
|
1308
|
-
it
|
1185
|
+
it "returns call_id in the form of hash" do
|
1309
1186
|
expect(instance._to_hash(instance.call_id)).to eq(instance.call_id)
|
1310
1187
|
end
|
1311
|
-
it
|
1188
|
+
it "returns from in the form of hash" do
|
1312
1189
|
expect(instance._to_hash(instance.from)).to eq(instance.from)
|
1313
1190
|
end
|
1314
|
-
it
|
1191
|
+
it "returns to in the form of hash" do
|
1315
1192
|
expect(instance._to_hash(instance.to)).to eq(instance.to)
|
1316
1193
|
end
|
1317
|
-
it
|
1194
|
+
it "returns recording_id in the form of hash" do
|
1318
1195
|
expect(instance._to_hash(instance.recording_id)).to eq(instance.recording_id)
|
1319
1196
|
end
|
1320
|
-
it
|
1197
|
+
it "returns recording_url in the form of hash" do
|
1321
1198
|
expect(instance._to_hash(instance.recording_url)).to eq(instance.recording_url)
|
1322
1199
|
end
|
1323
|
-
it
|
1200
|
+
it "returns recording_size in the form of hash" do
|
1324
1201
|
expect(instance._to_hash(instance.recording_size)).to eq(instance.recording_size)
|
1325
1202
|
end
|
1326
|
-
it
|
1203
|
+
it "returns recording_format in the form of hash" do
|
1327
1204
|
expect(instance._to_hash(instance.recording_format)).to eq(instance.recording_format)
|
1328
1205
|
end
|
1329
|
-
it
|
1206
|
+
it "returns recording_duration_ms in the form of hash" do
|
1330
1207
|
expect(instance._to_hash(instance.recording_duration_ms)).to eq(instance.recording_duration_ms)
|
1331
1208
|
end
|
1332
|
-
it
|
1209
|
+
it "returns term_reason in the form of hash" do
|
1333
1210
|
expect(instance._to_hash(instance.term_reason)).to eq(instance.term_reason)
|
1334
1211
|
end
|
1335
|
-
it
|
1212
|
+
it "returns record_term_reason in the form of hash" do
|
1336
1213
|
expect(instance._to_hash(instance.record_term_reason)).to eq(instance.record_term_reason)
|
1337
1214
|
end
|
1338
|
-
it
|
1215
|
+
it "returns digit in the form of hash" do
|
1339
1216
|
expect(instance._to_hash(instance.digit)).to eq(instance.digit)
|
1340
1217
|
end
|
1341
|
-
it
|
1218
|
+
it "returns privacy_for_logging in the form of hash" do
|
1342
1219
|
expect(instance._to_hash(instance.privacy_for_logging)).to eq(instance.privacy_for_logging)
|
1343
1220
|
end
|
1344
|
-
it
|
1221
|
+
it "returns privacy_for_recording in the form of hash" do
|
1345
1222
|
expect(instance._to_hash(instance.privacy_for_recording)).to eq(instance.privacy_for_recording)
|
1346
1223
|
end
|
1347
|
-
it
|
1224
|
+
it "returns barge_in_reason in the form of hash" do
|
1348
1225
|
expect(instance._to_hash(instance.barge_in_reason)).to eq(instance.barge_in_reason)
|
1349
1226
|
end
|
1350
|
-
it
|
1227
|
+
it "returns barged_in_prompt_no in the form of hash" do
|
1351
1228
|
expect(instance._to_hash(instance.barged_in_prompt_no)).to eq(instance.barged_in_prompt_no)
|
1352
1229
|
end
|
1353
|
-
it
|
1230
|
+
it "returns barged_in_prompt_ms in the form of hash" do
|
1354
1231
|
expect(instance._to_hash(instance.barged_in_prompt_ms)).to eq(instance.barged_in_prompt_ms)
|
1355
1232
|
end
|
1356
|
-
it
|
1233
|
+
it "returns barged_in_prompt_loop_no in the form of hash" do
|
1357
1234
|
expect(instance._to_hash(instance.barged_in_prompt_loop_no)).to eq(instance.barged_in_prompt_loop_no)
|
1358
1235
|
end
|
1359
|
-
it
|
1236
|
+
it "returns barge_in_time_ms in the form of hash" do
|
1360
1237
|
expect(instance._to_hash(instance.barge_in_time_ms)).to eq(instance.barge_in_time_ms)
|
1361
1238
|
end
|
1362
|
-
it
|
1239
|
+
it "returns transcript in the form of hash" do
|
1363
1240
|
expect(instance._to_hash(instance.transcript)).to eq(instance.transcript)
|
1364
1241
|
end
|
1365
|
-
it
|
1242
|
+
it "returns transcribe_reason in the form of hash" do
|
1366
1243
|
expect(instance._to_hash(instance.transcribe_reason)).to eq(instance.transcribe_reason)
|
1367
1244
|
end
|
1368
|
-
it
|
1245
|
+
it "returns transcription_duration_ms in the form of hash" do
|
1369
1246
|
expect(instance._to_hash(instance.transcription_duration_ms)).to eq(instance.transcription_duration_ms)
|
1370
1247
|
end
|
1371
1248
|
end
|
1372
|
-
|
1373
1249
|
end
|