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::RemoveFromQueueNotificationWebhook
|
@@ -21,846 +19,442 @@ include Freeclimb
|
|
21
19
|
describe Freeclimb::RemoveFromQueueNotificationWebhook do
|
22
20
|
let(:instance) { Freeclimb::RemoveFromQueueNotificationWebhook.new }
|
23
21
|
|
24
|
-
describe
|
25
|
-
it
|
22
|
+
describe "test an instance of RemoveFromQueueNotificationWebhook" do
|
23
|
+
it "should create an instance of RemoveFromQueueNotificationWebhook" do
|
26
24
|
expect(instance).to be_instance_of(Freeclimb::RemoveFromQueueNotificationWebhook)
|
27
25
|
end
|
28
26
|
end
|
29
|
-
describe
|
30
|
-
it
|
27
|
+
describe ".deserialize" do
|
28
|
+
it "deserializes a json payload into instance of RemoveFromQueueNotificationWebhook" do
|
31
29
|
payload = '{ "requestType": "removeFromQueueNotification" }'
|
32
30
|
expect(Freeclimb::RemoveFromQueueNotificationWebhook.deserialize(payload)).to be_instance_of(Freeclimb::RemoveFromQueueNotificationWebhook)
|
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
|
-
|
92
69
|
describe 'test attribute "call_status"' do
|
93
|
-
it
|
70
|
+
it "assigns value QUEUED" do
|
94
71
|
instance.call_status = Freeclimb::CallStatus::QUEUED
|
95
|
-
expect(instance.call_status).to eq(Freeclimb::CallStatus::QUEUED)
|
72
|
+
expect(instance.call_status).to eq(Freeclimb::CallStatus::QUEUED)
|
96
73
|
end
|
97
|
-
it
|
74
|
+
it "assigns value RINGING" do
|
98
75
|
instance.call_status = Freeclimb::CallStatus::RINGING
|
99
|
-
expect(instance.call_status).to eq(Freeclimb::CallStatus::RINGING)
|
76
|
+
expect(instance.call_status).to eq(Freeclimb::CallStatus::RINGING)
|
100
77
|
end
|
101
|
-
it
|
78
|
+
it "assigns value IN_PROGRESS" do
|
102
79
|
instance.call_status = Freeclimb::CallStatus::IN_PROGRESS
|
103
|
-
expect(instance.call_status).to eq(Freeclimb::CallStatus::IN_PROGRESS)
|
80
|
+
expect(instance.call_status).to eq(Freeclimb::CallStatus::IN_PROGRESS)
|
104
81
|
end
|
105
|
-
it
|
82
|
+
it "assigns value CANCELED" do
|
106
83
|
instance.call_status = Freeclimb::CallStatus::CANCELED
|
107
|
-
expect(instance.call_status).to eq(Freeclimb::CallStatus::CANCELED)
|
84
|
+
expect(instance.call_status).to eq(Freeclimb::CallStatus::CANCELED)
|
108
85
|
end
|
109
|
-
it
|
86
|
+
it "assigns value COMPLETED" do
|
110
87
|
instance.call_status = Freeclimb::CallStatus::COMPLETED
|
111
|
-
expect(instance.call_status).to eq(Freeclimb::CallStatus::COMPLETED)
|
88
|
+
expect(instance.call_status).to eq(Freeclimb::CallStatus::COMPLETED)
|
112
89
|
end
|
113
|
-
it
|
90
|
+
it "assigns value FAILED" do
|
114
91
|
instance.call_status = Freeclimb::CallStatus::FAILED
|
115
|
-
expect(instance.call_status).to eq(Freeclimb::CallStatus::FAILED)
|
92
|
+
expect(instance.call_status).to eq(Freeclimb::CallStatus::FAILED)
|
116
93
|
end
|
117
|
-
it
|
94
|
+
it "assigns value BUSY" do
|
118
95
|
instance.call_status = Freeclimb::CallStatus::BUSY
|
119
|
-
expect(instance.call_status).to eq(Freeclimb::CallStatus::BUSY)
|
96
|
+
expect(instance.call_status).to eq(Freeclimb::CallStatus::BUSY)
|
120
97
|
end
|
121
|
-
it
|
98
|
+
it "assigns value NO_ANSWER" do
|
122
99
|
instance.call_status = Freeclimb::CallStatus::NO_ANSWER
|
123
|
-
expect(instance.call_status).to eq(Freeclimb::CallStatus::NO_ANSWER)
|
100
|
+
expect(instance.call_status).to eq(Freeclimb::CallStatus::NO_ANSWER)
|
124
101
|
end
|
125
102
|
end
|
126
103
|
|
127
104
|
describe 'test attribute "direction"' do
|
128
|
-
it
|
105
|
+
it "assigns value INBOUND" do
|
129
106
|
instance.direction = Freeclimb::CallDirection::INBOUND
|
130
|
-
expect(instance.direction).to eq(Freeclimb::CallDirection::INBOUND)
|
107
|
+
expect(instance.direction).to eq(Freeclimb::CallDirection::INBOUND)
|
131
108
|
end
|
132
|
-
it
|
109
|
+
it "assigns value OUTBOUND_API" do
|
133
110
|
instance.direction = Freeclimb::CallDirection::OUTBOUND_API
|
134
|
-
expect(instance.direction).to eq(Freeclimb::CallDirection::OUTBOUND_API)
|
111
|
+
expect(instance.direction).to eq(Freeclimb::CallDirection::OUTBOUND_API)
|
135
112
|
end
|
136
|
-
it
|
113
|
+
it "assigns value OUTBOUND_DIAL" do
|
137
114
|
instance.direction = Freeclimb::CallDirection::OUTBOUND_DIAL
|
138
|
-
expect(instance.direction).to eq(Freeclimb::CallDirection::OUTBOUND_DIAL)
|
115
|
+
expect(instance.direction).to eq(Freeclimb::CallDirection::OUTBOUND_DIAL)
|
139
116
|
end
|
140
117
|
end
|
141
118
|
describe 'test attribute "conference_id"' do
|
142
|
-
it
|
143
|
-
|
119
|
+
it "should work" do
|
144
120
|
instance.conference_id = "TEST_STRING"
|
145
|
-
expect(instance.conference_id).to eq("TEST_STRING")
|
146
|
-
|
147
|
-
|
148
|
-
|
121
|
+
expect(instance.conference_id).to eq("TEST_STRING")
|
149
122
|
end
|
150
123
|
end
|
151
124
|
|
152
125
|
describe 'test attribute "queue_id"' do
|
153
|
-
it
|
154
|
-
|
126
|
+
it "should work" do
|
155
127
|
instance.queue_id = "TEST_STRING"
|
156
|
-
expect(instance.queue_id).to eq("TEST_STRING")
|
157
|
-
|
158
|
-
|
159
|
-
|
128
|
+
expect(instance.queue_id).to eq("TEST_STRING")
|
160
129
|
end
|
161
130
|
end
|
162
131
|
|
163
|
-
|
164
132
|
describe 'test attribute "queue_result"' do
|
165
|
-
it
|
133
|
+
it "assigns value QUEUE_FULL" do
|
166
134
|
instance.queue_result = Freeclimb::QueueResultStatus::QUEUE_FULL
|
167
|
-
expect(instance.queue_result).to eq(Freeclimb::QueueResultStatus::QUEUE_FULL)
|
135
|
+
expect(instance.queue_result).to eq(Freeclimb::QueueResultStatus::QUEUE_FULL)
|
168
136
|
end
|
169
|
-
it
|
137
|
+
it "assigns value DEQUEUED" do
|
170
138
|
instance.queue_result = Freeclimb::QueueResultStatus::DEQUEUED
|
171
|
-
expect(instance.queue_result).to eq(Freeclimb::QueueResultStatus::DEQUEUED)
|
139
|
+
expect(instance.queue_result).to eq(Freeclimb::QueueResultStatus::DEQUEUED)
|
172
140
|
end
|
173
|
-
it
|
141
|
+
it "assigns value HANGUP" do
|
174
142
|
instance.queue_result = Freeclimb::QueueResultStatus::HANGUP
|
175
|
-
expect(instance.queue_result).to eq(Freeclimb::QueueResultStatus::HANGUP)
|
143
|
+
expect(instance.queue_result).to eq(Freeclimb::QueueResultStatus::HANGUP)
|
176
144
|
end
|
177
|
-
it
|
145
|
+
it "assigns value SYSTEM_ERROR" do
|
178
146
|
instance.queue_result = Freeclimb::QueueResultStatus::SYSTEM_ERROR
|
179
|
-
expect(instance.queue_result).to eq(Freeclimb::QueueResultStatus::SYSTEM_ERROR)
|
147
|
+
expect(instance.queue_result).to eq(Freeclimb::QueueResultStatus::SYSTEM_ERROR)
|
180
148
|
end
|
181
149
|
end
|
182
150
|
describe 'test attribute "queue_time"' do
|
183
|
-
it
|
184
|
-
|
185
|
-
|
151
|
+
it "should work" do
|
186
152
|
instance.queue_time = 1
|
187
153
|
expect(instance.queue_time).to eq(1)
|
188
|
-
|
189
|
-
|
190
|
-
|
191
154
|
end
|
192
155
|
end
|
193
156
|
|
194
157
|
describe 'test method "initialize"' do
|
195
|
-
it
|
196
|
-
expect {
|
197
|
-
|
198
|
-
request_type: "TS",
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
account_id: "TS",
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
call_id: "TS",
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
from: "TS",
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
to: "TS",
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
call_status: Freeclimb::CallStatus::QUEUED,
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
direction: Freeclimb::CallDirection::INBOUND,
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
conference_id: "TS",
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
queue_id: "TS",
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
queue_time: 1,
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
)}.not_to raise_error()
|
252
|
-
end
|
253
|
-
it 'fails to initialize with input argument that is not a hash in Freeclimb::RemoveFromQueueNotificationWebhook' do
|
254
|
-
expect { instance = Freeclimb::RemoveFromQueueNotificationWebhook.new(
|
255
|
-
|
256
|
-
request_type: "TS",
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
account_id: "TS",
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
call_id: "TS",
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
from: "TS",
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
to: "TS",
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
call_status: Freeclimb::CallStatus::QUEUED,
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
direction: Freeclimb::CallDirection::INBOUND,
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
conference_id: "TS",
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
queue_id: "TS",
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
queue_time: 1,
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
invalid_attribute: true
|
310
|
-
)}.to raise_error(ArgumentError)
|
311
|
-
end
|
312
|
-
it 'fails to initialize with invalid attribute' do
|
313
|
-
expect { instance = Freeclimb::RemoveFromQueueNotificationWebhook.new(
|
314
|
-
|
315
|
-
request_type: "TS",
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
account_id: "TS",
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
call_id: "TS",
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
from: "TS",
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
to: "TS",
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
call_status: Freeclimb::CallStatus::QUEUED,
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
direction: Freeclimb::CallDirection::INBOUND,
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
conference_id: "TS",
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
queue_id: "TS",
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
queue_time: 1,
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
invalid_attribute: true
|
369
|
-
)}.to raise_error(ArgumentError)
|
370
|
-
end
|
371
|
-
end
|
372
|
-
|
373
|
-
describe 'test method "valid"' do
|
374
|
-
it 'checks if properties are valid' do
|
375
|
-
instance = Freeclimb::RemoveFromQueueNotificationWebhook.new(
|
376
|
-
|
158
|
+
it "properly initializes with values" do
|
159
|
+
expect {
|
160
|
+
Freeclimb::RemoveFromQueueNotificationWebhook.new(
|
377
161
|
request_type: "TS",
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
162
|
+
|
382
163
|
account_id: "TS",
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
164
|
+
|
387
165
|
call_id: "TS",
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
166
|
+
|
392
167
|
from: "TS",
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
168
|
+
|
397
169
|
to: "TS",
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
170
|
+
|
402
171
|
call_status: Freeclimb::CallStatus::QUEUED,
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
172
|
+
|
407
173
|
direction: Freeclimb::CallDirection::INBOUND,
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
174
|
+
|
412
175
|
conference_id: "TS",
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
176
|
+
|
417
177
|
queue_id: "TS",
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
queue_time: 1,
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
)
|
431
|
-
expect(instance.valid?).to eq(true)
|
432
|
-
end
|
433
178
|
|
179
|
+
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
434
180
|
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
)
|
439
|
-
expect(instance.valid?).to eq(false)
|
181
|
+
queue_time: 1
|
182
|
+
)
|
183
|
+
}.not_to raise_error
|
440
184
|
end
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
describe 'test method "eql?"' do
|
445
|
-
it 'checks if objects are equal' do
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
instance_1 = Freeclimb::RemoveFromQueueNotificationWebhook.new(
|
458
|
-
|
185
|
+
it "fails to initialize with input argument that is not a hash in Freeclimb::RemoveFromQueueNotificationWebhook" do
|
186
|
+
expect {
|
187
|
+
Freeclimb::RemoveFromQueueNotificationWebhook.new(
|
459
188
|
request_type: "TS",
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
189
|
+
|
464
190
|
account_id: "TS",
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
191
|
+
|
469
192
|
call_id: "TS",
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
193
|
+
|
474
194
|
from: "TS",
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
195
|
+
|
479
196
|
to: "TS",
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
197
|
+
|
486
198
|
call_status: Freeclimb::CallStatus::QUEUED,
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
199
|
+
|
491
200
|
direction: Freeclimb::CallDirection::INBOUND,
|
492
|
-
|
493
|
-
|
201
|
+
|
494
202
|
conference_id: "TS",
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
203
|
+
|
499
204
|
queue_id: "TS",
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
205
|
+
|
506
206
|
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
507
|
-
|
207
|
+
|
508
208
|
queue_time: 1,
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
)
|
513
|
-
|
514
|
-
|
209
|
+
|
210
|
+
invalid_attribute: true
|
211
|
+
)
|
212
|
+
}.to raise_error(ArgumentError)
|
213
|
+
end
|
214
|
+
it "fails to initialize with invalid attribute" do
|
215
|
+
expect {
|
216
|
+
Freeclimb::RemoveFromQueueNotificationWebhook.new(
|
515
217
|
request_type: "TS",
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
218
|
+
|
520
219
|
account_id: "TS",
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
220
|
+
|
525
221
|
call_id: "TS",
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
222
|
+
|
530
223
|
from: "TS",
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
224
|
+
|
535
225
|
to: "TS",
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
226
|
+
|
542
227
|
call_status: Freeclimb::CallStatus::QUEUED,
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
228
|
+
|
547
229
|
direction: Freeclimb::CallDirection::INBOUND,
|
548
|
-
|
549
|
-
|
230
|
+
|
550
231
|
conference_id: "TS",
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
232
|
+
|
555
233
|
queue_id: "TS",
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
234
|
+
|
562
235
|
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
563
|
-
|
564
|
-
|
565
|
-
|
236
|
+
|
566
237
|
queue_time: 1,
|
567
|
-
|
238
|
+
|
239
|
+
invalid_attribute: true
|
240
|
+
)
|
241
|
+
}.to raise_error(ArgumentError)
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
describe 'test method "valid"' do
|
246
|
+
it "checks if properties are valid" do
|
247
|
+
instance = Freeclimb::RemoveFromQueueNotificationWebhook.new(
|
248
|
+
request_type: "TS",
|
249
|
+
|
250
|
+
account_id: "TS",
|
251
|
+
|
252
|
+
call_id: "TS",
|
253
|
+
|
254
|
+
from: "TS",
|
255
|
+
|
256
|
+
to: "TS",
|
257
|
+
|
258
|
+
call_status: Freeclimb::CallStatus::QUEUED,
|
259
|
+
|
260
|
+
direction: Freeclimb::CallDirection::INBOUND,
|
261
|
+
|
262
|
+
conference_id: "TS",
|
263
|
+
|
264
|
+
queue_id: "TS",
|
265
|
+
|
266
|
+
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
267
|
+
|
268
|
+
queue_time: 1
|
269
|
+
)
|
270
|
+
expect(instance.valid?).to eq(true)
|
271
|
+
end
|
272
|
+
|
273
|
+
skip "checks if properties are invalid" do
|
274
|
+
instance = Freeclimb::RemoveFromQueueNotificationWebhook.new
|
275
|
+
|
276
|
+
expect(instance.valid?).to eq(false)
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
280
|
+
describe 'test method "eql?"' do
|
281
|
+
it "checks if objects are equal" do
|
282
|
+
instance_1 = Freeclimb::RemoveFromQueueNotificationWebhook.new(
|
283
|
+
request_type: "TS",
|
284
|
+
|
285
|
+
account_id: "TS",
|
286
|
+
|
287
|
+
call_id: "TS",
|
288
|
+
|
289
|
+
from: "TS",
|
290
|
+
|
291
|
+
to: "TS",
|
292
|
+
|
293
|
+
call_status: Freeclimb::CallStatus::QUEUED,
|
294
|
+
|
295
|
+
direction: Freeclimb::CallDirection::INBOUND,
|
296
|
+
|
297
|
+
conference_id: "TS",
|
298
|
+
|
299
|
+
queue_id: "TS",
|
300
|
+
|
301
|
+
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
302
|
+
|
303
|
+
queue_time: 1
|
304
|
+
)
|
305
|
+
instance_2 = Freeclimb::RemoveFromQueueNotificationWebhook.new(
|
306
|
+
request_type: "TS",
|
307
|
+
|
308
|
+
account_id: "TS",
|
309
|
+
|
310
|
+
call_id: "TS",
|
311
|
+
|
312
|
+
from: "TS",
|
313
|
+
|
314
|
+
to: "TS",
|
315
|
+
|
316
|
+
call_status: Freeclimb::CallStatus::QUEUED,
|
317
|
+
|
318
|
+
direction: Freeclimb::CallDirection::INBOUND,
|
319
|
+
|
320
|
+
conference_id: "TS",
|
321
|
+
|
322
|
+
queue_id: "TS",
|
323
|
+
|
324
|
+
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
325
|
+
|
326
|
+
queue_time: 1
|
568
327
|
)
|
569
328
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
570
329
|
end
|
571
|
-
|
572
|
-
it
|
330
|
+
|
331
|
+
it "checks if objects are not equal" do
|
573
332
|
instance_1 = Freeclimb::RemoveFromQueueNotificationWebhook.new(
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
to: "TS",
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
call_status: Freeclimb::CallStatus::QUEUED,
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
direction: Freeclimb::CallDirection::INBOUND,
|
608
|
-
|
609
|
-
|
610
|
-
conference_id: "TS",
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
queue_id: "TS",
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
623
|
-
|
624
|
-
queue_time: 2,
|
625
|
-
|
626
|
-
|
627
|
-
|
333
|
+
request_type: "TS",
|
334
|
+
|
335
|
+
account_id: "TS",
|
336
|
+
|
337
|
+
call_id: "TS",
|
338
|
+
|
339
|
+
from: "TS",
|
340
|
+
|
341
|
+
to: "TS",
|
342
|
+
|
343
|
+
call_status: Freeclimb::CallStatus::QUEUED,
|
344
|
+
|
345
|
+
direction: Freeclimb::CallDirection::INBOUND,
|
346
|
+
|
347
|
+
conference_id: "TS",
|
348
|
+
|
349
|
+
queue_id: "TS",
|
350
|
+
|
351
|
+
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
352
|
+
|
353
|
+
queue_time: 2
|
628
354
|
)
|
629
355
|
instance_2 = Freeclimb::RemoveFromQueueNotificationWebhook.new(
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
to: "ST",
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
call_status: nil,
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
direction: nil,
|
664
|
-
|
665
|
-
|
666
|
-
conference_id: "ST",
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
queue_id: "ST",
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
queue_result: nil,
|
679
|
-
|
680
|
-
queue_time: 1,
|
681
|
-
|
682
|
-
|
683
|
-
|
356
|
+
request_type: "ST",
|
357
|
+
|
358
|
+
account_id: "ST",
|
359
|
+
|
360
|
+
call_id: "ST",
|
361
|
+
|
362
|
+
from: "ST",
|
363
|
+
|
364
|
+
to: "ST",
|
365
|
+
|
366
|
+
call_status: nil,
|
367
|
+
|
368
|
+
direction: nil,
|
369
|
+
|
370
|
+
conference_id: "ST",
|
371
|
+
|
372
|
+
queue_id: "ST",
|
373
|
+
|
374
|
+
queue_result: nil,
|
375
|
+
|
376
|
+
queue_time: 1
|
684
377
|
)
|
685
378
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
686
379
|
end
|
687
380
|
end
|
688
|
-
|
381
|
+
|
689
382
|
describe 'test method "hash"' do
|
690
|
-
it
|
383
|
+
it "calculates hash code" do
|
691
384
|
instance = Freeclimb::RemoveFromQueueNotificationWebhook.new(
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
call_status: Freeclimb::CallStatus::QUEUED,
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
direction: Freeclimb::CallDirection::INBOUND,
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
conference_id: "TS",
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
queue_id: "TS",
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
queue_time: 1,
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
)
|
385
|
+
request_type: "TS",
|
386
|
+
|
387
|
+
account_id: "TS",
|
388
|
+
|
389
|
+
call_id: "TS",
|
390
|
+
|
391
|
+
from: "TS",
|
392
|
+
|
393
|
+
to: "TS",
|
394
|
+
|
395
|
+
call_status: Freeclimb::CallStatus::QUEUED,
|
396
|
+
|
397
|
+
direction: Freeclimb::CallDirection::INBOUND,
|
398
|
+
|
399
|
+
conference_id: "TS",
|
400
|
+
|
401
|
+
queue_id: "TS",
|
402
|
+
|
403
|
+
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
404
|
+
|
405
|
+
queue_time: 1
|
406
|
+
)
|
747
407
|
expect(instance.hash).to be_a_kind_of(Integer)
|
748
408
|
end
|
749
409
|
end
|
750
410
|
|
751
411
|
describe 'test method "build_from_hash"' do
|
752
|
-
it
|
412
|
+
it "builds equivalent model from hash code" do
|
753
413
|
instance_1 = Freeclimb::RemoveFromQueueNotificationWebhook.new(
|
754
|
-
|
755
414
|
request_type: "TS",
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
415
|
+
|
760
416
|
account_id: "TS",
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
417
|
+
|
765
418
|
call_id: "TS",
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
419
|
+
|
770
420
|
from: "TS",
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
421
|
+
|
775
422
|
to: "TS",
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
423
|
+
|
780
424
|
call_status: Freeclimb::CallStatus::QUEUED,
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
425
|
+
|
785
426
|
direction: Freeclimb::CallDirection::INBOUND,
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
427
|
+
|
790
428
|
conference_id: "TS",
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
429
|
+
|
795
430
|
queue_id: "TS",
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
431
|
+
|
800
432
|
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
queue_time: 1,
|
805
|
-
|
806
|
-
|
807
|
-
|
433
|
+
|
434
|
+
queue_time: 1
|
808
435
|
)
|
809
436
|
instance_2 = Freeclimb::RemoveFromQueueNotificationWebhook.new(
|
810
|
-
|
811
437
|
request_type: "TS",
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
438
|
+
|
816
439
|
account_id: "TS",
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
440
|
+
|
821
441
|
call_id: "TS",
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
442
|
+
|
826
443
|
from: "TS",
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
444
|
+
|
831
445
|
to: "TS",
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
446
|
+
|
836
447
|
call_status: Freeclimb::CallStatus::QUEUED,
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
448
|
+
|
841
449
|
direction: Freeclimb::CallDirection::INBOUND,
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
450
|
+
|
846
451
|
conference_id: "TS",
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
452
|
+
|
851
453
|
queue_id: "TS",
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
454
|
+
|
856
455
|
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
queue_time: 1,
|
861
|
-
|
862
|
-
|
863
|
-
|
456
|
+
|
457
|
+
queue_time: 1
|
864
458
|
)
|
865
459
|
|
866
460
|
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
@@ -869,354 +463,163 @@ describe Freeclimb::RemoveFromQueueNotificationWebhook do
|
|
869
463
|
|
870
464
|
describe 'test method "_deserialize"' do
|
871
465
|
instance = Freeclimb::RemoveFromQueueNotificationWebhook.new(
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
to: "TS",
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
call_status: Freeclimb::CallStatus::QUEUED,
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
direction: Freeclimb::CallDirection::INBOUND,
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
conference_id: "TS",
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
queue_id: "TS",
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
queue_time: 1,
|
923
|
-
|
924
|
-
|
925
|
-
|
466
|
+
request_type: "TS",
|
467
|
+
|
468
|
+
account_id: "TS",
|
469
|
+
|
470
|
+
call_id: "TS",
|
471
|
+
|
472
|
+
from: "TS",
|
473
|
+
|
474
|
+
to: "TS",
|
475
|
+
|
476
|
+
call_status: Freeclimb::CallStatus::QUEUED,
|
477
|
+
|
478
|
+
direction: Freeclimb::CallDirection::INBOUND,
|
479
|
+
|
480
|
+
conference_id: "TS",
|
481
|
+
|
482
|
+
queue_id: "TS",
|
483
|
+
|
484
|
+
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
485
|
+
|
486
|
+
queue_time: 1
|
926
487
|
)
|
927
|
-
it
|
488
|
+
it "deserializes the data of request_type" do
|
928
489
|
expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String)
|
929
490
|
end
|
930
|
-
|
931
|
-
|
932
|
-
it 'deserializes the data of account_id' do
|
491
|
+
|
492
|
+
it "deserializes the data of account_id" do
|
933
493
|
expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
|
934
494
|
end
|
935
|
-
|
936
|
-
|
937
|
-
it 'deserializes the data of call_id' do
|
495
|
+
|
496
|
+
it "deserializes the data of call_id" do
|
938
497
|
expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String)
|
939
498
|
end
|
940
|
-
|
941
|
-
|
942
|
-
it 'deserializes the data of from' do
|
499
|
+
|
500
|
+
it "deserializes the data of from" do
|
943
501
|
expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String)
|
944
502
|
end
|
945
|
-
|
946
|
-
|
947
|
-
it 'deserializes the data of to' do
|
503
|
+
|
504
|
+
it "deserializes the data of to" do
|
948
505
|
expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String)
|
949
506
|
end
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
it 'deserializes the data of conference_id' do
|
507
|
+
|
508
|
+
it "deserializes the data of conference_id" do
|
957
509
|
expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String)
|
958
510
|
end
|
959
|
-
|
960
|
-
|
961
|
-
it 'deserializes the data of queue_id' do
|
511
|
+
|
512
|
+
it "deserializes the data of queue_id" do
|
962
513
|
expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String)
|
963
514
|
end
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
it 'deserializes the data of queue_time' do
|
515
|
+
|
516
|
+
it "deserializes the data of queue_time" do
|
969
517
|
expect(instance._deserialize("Integer", instance.queue_time)).to be_a_kind_of(Integer)
|
970
518
|
end
|
971
|
-
|
972
|
-
|
973
519
|
end
|
974
520
|
|
975
521
|
describe 'test method "to_s"' do
|
976
|
-
it
|
522
|
+
it "returns the string representation of the object" do
|
977
523
|
instance = Freeclimb::RemoveFromQueueNotificationWebhook.new(
|
978
|
-
|
979
524
|
request_type: "TS",
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
525
|
+
|
984
526
|
account_id: "TS",
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
527
|
+
|
989
528
|
call_id: "TS",
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
529
|
+
|
994
530
|
from: "TS",
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
531
|
+
|
999
532
|
to: "TS",
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
533
|
+
|
1004
534
|
call_status: Freeclimb::CallStatus::QUEUED,
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
535
|
+
|
1009
536
|
direction: Freeclimb::CallDirection::INBOUND,
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
537
|
+
|
1014
538
|
conference_id: "TS",
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
539
|
+
|
1019
540
|
queue_id: "TS",
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
541
|
+
|
1024
542
|
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
queue_time: 1,
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
543
|
+
|
544
|
+
queue_time: 1
|
1032
545
|
)
|
1033
546
|
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
1034
547
|
end
|
1035
548
|
end
|
1036
549
|
|
1037
550
|
describe 'test method "to_hash"' do
|
1038
|
-
it
|
551
|
+
it "returns the object in the form of hash" do
|
1039
552
|
instance = Freeclimb::RemoveFromQueueNotificationWebhook.new(
|
1040
|
-
|
1041
553
|
request_type: "TS",
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
554
|
+
|
1046
555
|
account_id: "TS",
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
556
|
+
|
1051
557
|
call_id: "TS",
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
558
|
+
|
1056
559
|
from: "TS",
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
560
|
+
|
1061
561
|
to: "TS",
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
562
|
+
|
1066
563
|
call_status: Freeclimb::CallStatus::QUEUED,
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
564
|
+
|
1071
565
|
direction: Freeclimb::CallDirection::INBOUND,
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
566
|
+
|
1076
567
|
conference_id: "TS",
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
568
|
+
|
1081
569
|
queue_id: "TS",
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
570
|
+
|
1086
571
|
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
queue_time: 1,
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
572
|
+
|
573
|
+
queue_time: 1
|
1094
574
|
)
|
1095
575
|
expect(instance.to_hash).to be_a_kind_of(Hash)
|
1096
576
|
end
|
1097
|
-
it
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
577
|
+
it "creates equal hash for two equal objects" do
|
1109
578
|
instance_1 = Freeclimb::RemoveFromQueueNotificationWebhook.new(
|
1110
|
-
|
1111
579
|
request_type: "TS",
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
580
|
+
|
1116
581
|
account_id: "TS",
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
582
|
+
|
1121
583
|
call_id: "TS",
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
584
|
+
|
1126
585
|
from: "TS",
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
586
|
+
|
1131
587
|
to: "TS",
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
588
|
+
|
1136
589
|
call_status: Freeclimb::CallStatus::QUEUED,
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
590
|
+
|
1141
591
|
direction: Freeclimb::CallDirection::INBOUND,
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
592
|
+
|
1146
593
|
conference_id: "TS",
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
594
|
+
|
1151
595
|
queue_id: "TS",
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
596
|
+
|
1156
597
|
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
queue_time: 1,
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
598
|
+
|
599
|
+
queue_time: 1
|
1164
600
|
)
|
1165
601
|
instance_2 = Freeclimb::RemoveFromQueueNotificationWebhook.new(
|
1166
|
-
|
1167
602
|
request_type: "TS",
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
603
|
+
|
1172
604
|
account_id: "TS",
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1176
|
-
|
605
|
+
|
1177
606
|
call_id: "TS",
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1181
|
-
|
607
|
+
|
1182
608
|
from: "TS",
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
609
|
+
|
1187
610
|
to: "TS",
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
611
|
+
|
1192
612
|
call_status: Freeclimb::CallStatus::QUEUED,
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
613
|
+
|
1197
614
|
direction: Freeclimb::CallDirection::INBOUND,
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
615
|
+
|
1202
616
|
conference_id: "TS",
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
617
|
+
|
1207
618
|
queue_id: "TS",
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
619
|
+
|
1212
620
|
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
queue_time: 1,
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
621
|
+
|
622
|
+
queue_time: 1
|
1220
623
|
)
|
1221
624
|
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
1222
625
|
end
|
@@ -1224,82 +627,60 @@ describe Freeclimb::RemoveFromQueueNotificationWebhook do
|
|
1224
627
|
|
1225
628
|
describe 'test method "_to_hash"' do
|
1226
629
|
instance = Freeclimb::RemoveFromQueueNotificationWebhook.new(
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
1252
|
-
direction: Freeclimb::CallDirection::INBOUND,
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
1256
|
-
conference_id: "TS",
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
queue_id: "TS",
|
1261
|
-
|
1262
|
-
|
1263
|
-
|
1264
|
-
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
1265
|
-
|
1266
|
-
|
1267
|
-
queue_time: 1,
|
1268
|
-
|
1269
|
-
)
|
1270
|
-
it 'returns request_type in the form of hash' do
|
630
|
+
request_type: "TS",
|
631
|
+
|
632
|
+
account_id: "TS",
|
633
|
+
|
634
|
+
call_id: "TS",
|
635
|
+
|
636
|
+
from: "TS",
|
637
|
+
|
638
|
+
to: "TS",
|
639
|
+
|
640
|
+
call_status: Freeclimb::CallStatus::QUEUED,
|
641
|
+
|
642
|
+
direction: Freeclimb::CallDirection::INBOUND,
|
643
|
+
|
644
|
+
conference_id: "TS",
|
645
|
+
|
646
|
+
queue_id: "TS",
|
647
|
+
|
648
|
+
queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL,
|
649
|
+
|
650
|
+
queue_time: 1
|
651
|
+
)
|
652
|
+
it "returns request_type in the form of hash" do
|
1271
653
|
expect(instance._to_hash(instance.request_type)).to eq(instance.request_type)
|
1272
654
|
end
|
1273
|
-
it
|
655
|
+
it "returns account_id in the form of hash" do
|
1274
656
|
expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)
|
1275
657
|
end
|
1276
|
-
it
|
658
|
+
it "returns call_id in the form of hash" do
|
1277
659
|
expect(instance._to_hash(instance.call_id)).to eq(instance.call_id)
|
1278
660
|
end
|
1279
|
-
it
|
661
|
+
it "returns from in the form of hash" do
|
1280
662
|
expect(instance._to_hash(instance.from)).to eq(instance.from)
|
1281
663
|
end
|
1282
|
-
it
|
664
|
+
it "returns to in the form of hash" do
|
1283
665
|
expect(instance._to_hash(instance.to)).to eq(instance.to)
|
1284
666
|
end
|
1285
|
-
it
|
667
|
+
it "returns call_status in the form of hash" do
|
1286
668
|
expect(instance._to_hash(instance.call_status)).to eq(instance.call_status)
|
1287
669
|
end
|
1288
|
-
it
|
670
|
+
it "returns direction in the form of hash" do
|
1289
671
|
expect(instance._to_hash(instance.direction)).to eq(instance.direction)
|
1290
672
|
end
|
1291
|
-
it
|
673
|
+
it "returns conference_id in the form of hash" do
|
1292
674
|
expect(instance._to_hash(instance.conference_id)).to eq(instance.conference_id)
|
1293
675
|
end
|
1294
|
-
it
|
676
|
+
it "returns queue_id in the form of hash" do
|
1295
677
|
expect(instance._to_hash(instance.queue_id)).to eq(instance.queue_id)
|
1296
678
|
end
|
1297
|
-
it
|
679
|
+
it "returns queue_result in the form of hash" do
|
1298
680
|
expect(instance._to_hash(instance.queue_result)).to eq(instance.queue_result)
|
1299
681
|
end
|
1300
|
-
it
|
682
|
+
it "returns queue_time in the form of hash" do
|
1301
683
|
expect(instance._to_hash(instance.queue_time)).to eq(instance.queue_time)
|
1302
684
|
end
|
1303
685
|
end
|
1304
|
-
|
1305
686
|
end
|