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