freeclimb 3.0.2 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/Gemfile +4 -1
- data/Gemfile.lock +33 -19
- data/README.md +40 -35
- data/docs/AccountRequest.md +9 -8
- data/docs/AccountResult.md +27 -26
- data/docs/AccountResultAllOf.md +19 -18
- data/docs/AddToConference.md +25 -24
- data/docs/AddToConferenceAllOf.md +25 -24
- data/docs/ApplicationList.md +21 -20
- data/docs/ApplicationListAllOf.md +7 -6
- data/docs/ApplicationRequest.md +19 -18
- data/docs/ApplicationResult.md +31 -30
- data/docs/ApplicationResultAllOf.md +23 -22
- data/docs/AvailableNumber.md +19 -14
- data/docs/AvailableNumberList.md +21 -20
- data/docs/AvailableNumberListAllOf.md +7 -6
- data/docs/BuyIncomingNumberRequest.md +11 -10
- data/docs/CallList.md +21 -20
- data/docs/CallListAllOf.md +7 -6
- data/docs/CallResult.md +43 -42
- data/docs/CallResultAllOf.md +35 -34
- data/docs/Capabilities.md +26 -0
- data/docs/ConferenceList.md +21 -20
- data/docs/ConferenceListAllOf.md +7 -6
- data/docs/ConferenceParticipantList.md +21 -20
- data/docs/ConferenceParticipantListAllOf.md +7 -6
- data/docs/ConferenceParticipantResult.md +25 -24
- data/docs/ConferenceParticipantResultAllOf.md +17 -16
- data/docs/ConferenceResult.md +33 -32
- data/docs/ConferenceResultAllOf.md +25 -24
- data/docs/CreateConference.md +17 -16
- data/docs/CreateConferenceAllOf.md +17 -16
- data/docs/CreateConferenceRequest.md +15 -14
- data/docs/DefaultApi.md +1625 -647
- data/docs/Dequeue.md +3 -4
- data/docs/Enqueue.md +13 -12
- data/docs/EnqueueAllOf.md +13 -12
- data/docs/FilterLogsRequest.md +7 -6
- data/docs/GetDigits.md +23 -22
- data/docs/GetDigitsAllOf.md +23 -22
- data/docs/GetSpeech.md +31 -30
- data/docs/GetSpeechAllOf.md +31 -30
- data/docs/Hangup.md +7 -6
- data/docs/HangupAllOf.md +7 -6
- data/docs/IncomingNumberList.md +21 -20
- data/docs/IncomingNumberListAllOf.md +7 -6
- data/docs/IncomingNumberRequest.md +9 -8
- data/docs/IncomingNumberResult.md +35 -30
- data/docs/IncomingNumberResultAllOf.md +27 -22
- data/docs/LogList.md +21 -20
- data/docs/LogListAllOf.md +7 -6
- data/docs/LogResult.md +19 -18
- data/docs/MakeCallRequest.md +25 -24
- data/docs/MessageRequest.md +23 -22
- data/docs/MessageRequestAllOf.md +15 -14
- data/docs/MessageResult.md +29 -28
- data/docs/MessageResultAllOf.md +21 -20
- data/docs/MessagesList.md +21 -20
- data/docs/MessagesListAllOf.md +7 -6
- data/docs/MutableResourceModel.md +13 -12
- data/docs/OutDial.md +25 -24
- data/docs/OutDialAllOf.md +25 -24
- data/docs/PaginationModel.md +19 -18
- data/docs/Park.md +22 -0
- data/docs/ParkAllOf.md +22 -0
- data/docs/Pause.md +7 -6
- data/docs/PauseAllOf.md +7 -6
- data/docs/PerclCommand.md +7 -6
- data/docs/PerclScript.md +7 -6
- data/docs/Play.md +13 -12
- data/docs/PlayAllOf.md +13 -12
- data/docs/PlayEarlyMedia.md +7 -6
- data/docs/PlayEarlyMediaAllOf.md +7 -6
- data/docs/QueueList.md +21 -20
- data/docs/QueueListAllOf.md +7 -6
- data/docs/QueueMember.md +15 -14
- data/docs/QueueMemberList.md +21 -20
- data/docs/QueueMemberListAllOf.md +7 -6
- data/docs/QueueRequest.md +9 -8
- data/docs/QueueResult.md +27 -26
- data/docs/QueueResultAllOf.md +19 -18
- data/docs/RecordUtterance.md +19 -18
- data/docs/RecordUtteranceAllOf.md +19 -18
- data/docs/RecordingList.md +21 -20
- data/docs/RecordingListAllOf.md +7 -6
- data/docs/RecordingResult.md +23 -22
- data/docs/RecordingResultAllOf.md +15 -14
- data/docs/Redirect.md +7 -6
- data/docs/RedirectAllOf.md +7 -6
- data/docs/Reject.md +7 -6
- data/docs/RejectAllOf.md +7 -6
- data/docs/RemoveFromConference.md +7 -6
- data/docs/RemoveFromConferenceAllOf.md +7 -6
- data/docs/Say.md +15 -14
- data/docs/SayAllOf.md +15 -14
- data/docs/SendDigits.md +11 -10
- data/docs/SendDigitsAllOf.md +11 -10
- data/docs/SetListen.md +9 -8
- data/docs/SetListenAllOf.md +9 -8
- data/docs/SetTalk.md +9 -8
- data/docs/SetTalkAllOf.md +9 -8
- data/docs/Sms.md +13 -12
- data/docs/SmsAllOf.md +13 -12
- data/docs/StartRecordCall.md +3 -4
- data/docs/TerminateConference.md +7 -6
- data/docs/TerminateConferenceAllOf.md +7 -6
- data/docs/Unpark.md +15 -0
- data/docs/UpdateCallRequest.md +7 -6
- data/docs/UpdateConferenceParticipantRequest.md +9 -8
- data/docs/UpdateConferenceRequest.md +11 -10
- data/freeclimb.gemspec +3 -4
- data/lib/freeclimb/api/default_api.rb +434 -278
- data/lib/freeclimb/api_client.rb +55 -51
- data/lib/freeclimb/api_error.rb +2 -2
- data/lib/freeclimb/configuration.rb +41 -11
- data/lib/freeclimb/models/account_request.rb +20 -8
- data/lib/freeclimb/models/account_result.rb +39 -8
- data/lib/freeclimb/models/account_result_all_of.rb +39 -8
- data/lib/freeclimb/models/add_to_conference.rb +21 -8
- data/lib/freeclimb/models/add_to_conference_all_of.rb +20 -8
- data/lib/freeclimb/models/application_list.rb +28 -8
- data/lib/freeclimb/models/application_list_all_of.rb +21 -8
- data/lib/freeclimb/models/application_request.rb +20 -8
- data/lib/freeclimb/models/application_result.rb +29 -8
- data/lib/freeclimb/models/application_result_all_of.rb +29 -8
- data/lib/freeclimb/models/available_number.rb +46 -9
- data/lib/freeclimb/models/available_number_list.rb +28 -8
- data/lib/freeclimb/models/available_number_list_all_of.rb +21 -8
- data/lib/freeclimb/models/buy_incoming_number_request.rb +20 -8
- data/lib/freeclimb/models/call_list.rb +28 -8
- data/lib/freeclimb/models/call_list_all_of.rb +21 -8
- data/lib/freeclimb/models/call_result.rb +35 -8
- data/lib/freeclimb/models/call_result_all_of.rb +35 -8
- data/lib/freeclimb/models/capabilities.rb +265 -0
- data/lib/freeclimb/models/conference_list.rb +28 -8
- data/lib/freeclimb/models/conference_list_all_of.rb +21 -8
- data/lib/freeclimb/models/conference_participant_list.rb +28 -8
- data/lib/freeclimb/models/conference_participant_list_all_of.rb +21 -8
- data/lib/freeclimb/models/conference_participant_result.rb +26 -8
- data/lib/freeclimb/models/conference_participant_result_all_of.rb +26 -8
- data/lib/freeclimb/models/conference_result.rb +30 -8
- data/lib/freeclimb/models/conference_result_all_of.rb +30 -8
- data/lib/freeclimb/models/create_conference.rb +21 -8
- data/lib/freeclimb/models/create_conference_all_of.rb +20 -8
- data/lib/freeclimb/models/create_conference_request.rb +20 -8
- data/lib/freeclimb/models/dequeue.rb +21 -8
- data/lib/freeclimb/models/enqueue.rb +21 -8
- data/lib/freeclimb/models/enqueue_all_of.rb +20 -8
- data/lib/freeclimb/models/filter_logs_request.rb +20 -8
- data/lib/freeclimb/models/get_digits.rb +21 -8
- data/lib/freeclimb/models/get_digits_all_of.rb +20 -8
- data/lib/freeclimb/models/get_speech.rb +21 -8
- data/lib/freeclimb/models/get_speech_all_of.rb +20 -8
- data/lib/freeclimb/models/hangup.rb +21 -8
- data/lib/freeclimb/models/hangup_all_of.rb +20 -8
- data/lib/freeclimb/models/incoming_number_list.rb +28 -8
- data/lib/freeclimb/models/incoming_number_list_all_of.rb +21 -8
- data/lib/freeclimb/models/incoming_number_request.rb +20 -8
- data/lib/freeclimb/models/incoming_number_result.rb +50 -9
- data/lib/freeclimb/models/incoming_number_result_all_of.rb +50 -9
- data/lib/freeclimb/models/log_list.rb +28 -8
- data/lib/freeclimb/models/log_list_all_of.rb +21 -8
- data/lib/freeclimb/models/log_result.rb +27 -8
- data/lib/freeclimb/models/make_call_request.rb +22 -8
- data/lib/freeclimb/models/message_request.rb +20 -8
- data/lib/freeclimb/models/message_request_all_of.rb +20 -8
- data/lib/freeclimb/models/message_result.rb +28 -8
- data/lib/freeclimb/models/message_result_all_of.rb +28 -8
- data/lib/freeclimb/models/messages_list.rb +28 -8
- data/lib/freeclimb/models/messages_list_all_of.rb +21 -8
- data/lib/freeclimb/models/mutable_resource_model.rb +20 -8
- data/lib/freeclimb/models/out_dial.rb +21 -8
- data/lib/freeclimb/models/out_dial_all_of.rb +20 -8
- data/lib/freeclimb/models/pagination_model.rb +27 -8
- data/lib/freeclimb/models/park.rb +263 -0
- data/lib/freeclimb/models/park_all_of.rb +249 -0
- data/lib/freeclimb/models/pause.rb +21 -8
- data/lib/freeclimb/models/pause_all_of.rb +20 -8
- data/lib/freeclimb/models/percl_command.rb +38 -8
- data/lib/freeclimb/models/percl_script.rb +24 -8
- data/lib/freeclimb/models/play.rb +21 -8
- data/lib/freeclimb/models/play_all_of.rb +20 -8
- data/lib/freeclimb/models/play_early_media.rb +21 -8
- data/lib/freeclimb/models/play_early_media_all_of.rb +20 -8
- data/lib/freeclimb/models/queue_list.rb +28 -8
- data/lib/freeclimb/models/queue_list_all_of.rb +21 -8
- data/lib/freeclimb/models/queue_member.rb +25 -8
- data/lib/freeclimb/models/queue_member_list.rb +28 -8
- data/lib/freeclimb/models/queue_member_list_all_of.rb +21 -8
- data/lib/freeclimb/models/queue_request.rb +22 -8
- data/lib/freeclimb/models/queue_result.rb +27 -8
- data/lib/freeclimb/models/queue_result_all_of.rb +27 -8
- data/lib/freeclimb/models/record_utterance.rb +21 -8
- data/lib/freeclimb/models/record_utterance_all_of.rb +20 -8
- data/lib/freeclimb/models/recording_list.rb +28 -8
- data/lib/freeclimb/models/recording_list_all_of.rb +21 -8
- data/lib/freeclimb/models/recording_result.rb +25 -8
- data/lib/freeclimb/models/recording_result_all_of.rb +25 -8
- data/lib/freeclimb/models/redirect.rb +21 -8
- data/lib/freeclimb/models/redirect_all_of.rb +20 -8
- data/lib/freeclimb/models/reject.rb +21 -8
- data/lib/freeclimb/models/reject_all_of.rb +20 -8
- data/lib/freeclimb/models/remove_from_conference.rb +21 -8
- data/lib/freeclimb/models/remove_from_conference_all_of.rb +20 -8
- data/lib/freeclimb/models/say.rb +23 -8
- data/lib/freeclimb/models/say_all_of.rb +22 -8
- data/lib/freeclimb/models/send_digits.rb +21 -8
- data/lib/freeclimb/models/send_digits_all_of.rb +20 -8
- data/lib/freeclimb/models/set_listen.rb +21 -8
- data/lib/freeclimb/models/set_listen_all_of.rb +20 -8
- data/lib/freeclimb/models/set_talk.rb +21 -8
- data/lib/freeclimb/models/set_talk_all_of.rb +20 -8
- data/lib/freeclimb/models/sms.rb +21 -8
- data/lib/freeclimb/models/sms_all_of.rb +20 -8
- data/lib/freeclimb/models/start_record_call.rb +21 -8
- data/lib/freeclimb/models/terminate_conference.rb +21 -8
- data/lib/freeclimb/models/terminate_conference_all_of.rb +20 -8
- data/lib/freeclimb/models/unpark.rb +222 -0
- data/lib/freeclimb/models/update_call_request.rb +20 -8
- data/lib/freeclimb/models/update_conference_participant_request.rb +20 -8
- data/lib/freeclimb/models/update_conference_request.rb +20 -8
- data/lib/freeclimb/version.rb +3 -3
- data/lib/freeclimb.rb +28 -52
- data/spec/api/default_api_spec.rb +1004 -21
- data/spec/api_client_spec.rb +5 -5
- data/spec/configuration_spec.rb +10 -10
- data/spec/factories.rb +80 -0
- data/spec/models/account_request_spec.rb +5 -12
- data/spec/models/account_result_spec.rb +10 -13
- data/spec/models/add_to_conference_spec.rb +5 -12
- data/spec/models/application_list_spec.rb +5 -12
- data/spec/models/application_request_spec.rb +5 -12
- data/spec/models/application_result_spec.rb +5 -12
- data/spec/models/available_number_list_spec.rb +5 -12
- data/spec/models/available_number_spec.rb +11 -12
- data/spec/models/buy_incoming_number_request_spec.rb +5 -12
- data/spec/models/call_list_spec.rb +5 -12
- data/spec/models/call_result_spec.rb +6 -13
- data/spec/models/{say_all_of_spec.rb → capabilities_spec.rb} +13 -20
- data/spec/models/conference_list_spec.rb +5 -12
- data/spec/models/conference_participant_list_spec.rb +5 -12
- data/spec/models/conference_participant_result_spec.rb +5 -12
- data/spec/models/conference_result_spec.rb +7 -14
- data/spec/models/create_conference_request_spec.rb +6 -13
- data/spec/models/create_conference_spec.rb +5 -12
- data/spec/models/dequeue_spec.rb +5 -12
- data/spec/models/enqueue_spec.rb +5 -12
- data/spec/models/filter_logs_request_spec.rb +5 -12
- data/spec/models/get_digits_spec.rb +5 -12
- data/spec/models/get_speech_spec.rb +5 -12
- data/spec/models/hangup_spec.rb +5 -12
- data/spec/models/incoming_number_list_spec.rb +5 -12
- data/spec/models/incoming_number_request_spec.rb +5 -12
- data/spec/models/incoming_number_result_spec.rb +11 -12
- data/spec/models/log_list_spec.rb +5 -12
- data/spec/models/log_result_spec.rb +6 -13
- data/spec/models/make_call_request_spec.rb +5 -12
- data/spec/models/message_request_spec.rb +5 -12
- data/spec/models/message_result_spec.rb +6 -13
- data/spec/models/messages_list_spec.rb +5 -12
- data/spec/models/mutable_resource_model_spec.rb +5 -12
- data/spec/models/out_dial_spec.rb +5 -12
- data/spec/models/pagination_model_spec.rb +5 -12
- data/spec/models/{enqueue_all_of_spec.rb → park_spec.rb} +11 -24
- data/spec/models/pause_spec.rb +5 -12
- data/spec/models/percl_command_spec.rb +5 -12
- data/spec/models/percl_script_spec.rb +5 -12
- data/spec/models/play_early_media_spec.rb +5 -12
- data/spec/models/play_spec.rb +5 -12
- data/spec/models/queue_list_spec.rb +5 -12
- data/spec/models/queue_member_list_spec.rb +5 -12
- data/spec/models/queue_member_spec.rb +5 -12
- data/spec/models/queue_request_spec.rb +5 -12
- data/spec/models/queue_result_spec.rb +5 -12
- data/spec/models/record_utterance_spec.rb +5 -12
- data/spec/models/recording_list_spec.rb +5 -12
- data/spec/models/recording_result_spec.rb +5 -12
- data/spec/models/redirect_spec.rb +5 -12
- data/spec/models/reject_spec.rb +5 -12
- data/spec/models/remove_from_conference_spec.rb +5 -12
- data/spec/models/say_spec.rb +5 -12
- data/spec/models/send_digits_spec.rb +5 -12
- data/spec/models/set_listen_spec.rb +5 -12
- data/spec/models/set_talk_spec.rb +5 -12
- data/spec/models/sms_spec.rb +5 -12
- data/spec/models/start_record_call_spec.rb +5 -12
- data/spec/models/terminate_conference_spec.rb +5 -12
- data/spec/models/{pause_all_of_spec.rb → unpark_spec.rb} +8 -21
- data/spec/models/update_call_request_spec.rb +6 -13
- data/spec/models/update_conference_participant_request_spec.rb +5 -12
- data/spec/models/update_conference_request_spec.rb +6 -13
- data/spec/quickstart_spec.rb +10 -0
- data/spec/spec_helper.rb +61 -2
- metadata +75 -162
- data/lib/freeclimb/utils.rb +0 -34
- data/spec/api/web_mocks.rb +0 -473
- data/spec/models/account_result_all_of_spec.rb +0 -81
- data/spec/models/add_to_conference_all_of_spec.rb +0 -95
- data/spec/models/application_list_all_of_spec.rb +0 -41
- data/spec/models/application_result_all_of_spec.rb +0 -89
- data/spec/models/available_number_list_all_of_spec.rb +0 -41
- data/spec/models/call_list_all_of_spec.rb +0 -41
- data/spec/models/call_result_all_of_spec.rb +0 -129
- data/spec/models/conference_list_all_of_spec.rb +0 -41
- data/spec/models/conference_participant_list_all_of_spec.rb +0 -41
- data/spec/models/conference_participant_result_all_of_spec.rb +0 -71
- data/spec/models/conference_result_all_of_spec.rb +0 -103
- data/spec/models/create_conference_all_of_spec.rb +0 -71
- data/spec/models/get_digits_all_of_spec.rb +0 -89
- data/spec/models/get_speech_all_of_spec.rb +0 -113
- data/spec/models/hangup_all_of_spec.rb +0 -41
- data/spec/models/incoming_number_list_all_of_spec.rb +0 -41
- data/spec/models/incoming_number_result_all_of_spec.rb +0 -89
- data/spec/models/log_list_all_of_spec.rb +0 -41
- data/spec/models/message_request_all_of_spec.rb +0 -65
- data/spec/models/message_result_all_of_spec.rb +0 -87
- data/spec/models/messages_list_all_of_spec.rb +0 -41
- data/spec/models/out_dial_all_of_spec.rb +0 -95
- data/spec/models/play_all_of_spec.rb +0 -59
- data/spec/models/play_early_media_all_of_spec.rb +0 -41
- data/spec/models/queue_list_all_of_spec.rb +0 -41
- data/spec/models/queue_member_list_all_of_spec.rb +0 -41
- data/spec/models/queue_result_all_of_spec.rb +0 -77
- data/spec/models/record_utterance_all_of_spec.rb +0 -77
- data/spec/models/recording_list_all_of_spec.rb +0 -41
- data/spec/models/recording_result_all_of_spec.rb +0 -65
- data/spec/models/redirect_all_of_spec.rb +0 -41
- data/spec/models/reject_all_of_spec.rb +0 -41
- data/spec/models/remove_from_conference_all_of_spec.rb +0 -41
- data/spec/models/send_digits_all_of_spec.rb +0 -53
- data/spec/models/set_listen_all_of_spec.rb +0 -47
- data/spec/models/set_talk_all_of_spec.rb +0 -47
- data/spec/models/sms_all_of_spec.rb +0 -59
- data/spec/models/terminate_conference_all_of_spec.rb +0 -41
data/spec/api_client_spec.rb
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
#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.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
|
-
|
7
|
+
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -156,7 +156,7 @@ describe Freeclimb::ApiClient do
|
|
156
156
|
end
|
157
157
|
|
158
158
|
it 'fails for invalid collection format' do
|
159
|
-
expect{api_client.build_collection_param(param, :INVALID)}.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
159
|
+
expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
160
160
|
end
|
161
161
|
end
|
162
162
|
|
@@ -197,8 +197,8 @@ describe Freeclimb::ApiClient do
|
|
197
197
|
let(:api_client) { Freeclimb::ApiClient.new }
|
198
198
|
|
199
199
|
it 'works' do
|
200
|
-
expect(api_client.select_header_content_type(nil)).to
|
201
|
-
expect(api_client.select_header_content_type([])).to
|
200
|
+
expect(api_client.select_header_content_type(nil)).to be_nil
|
201
|
+
expect(api_client.select_header_content_type([])).to be_nil
|
202
202
|
|
203
203
|
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
204
204
|
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
data/spec/configuration_spec.rb
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
#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.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
|
-
|
7
|
+
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,25 +17,25 @@ describe Freeclimb::Configuration do
|
|
17
17
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
20
|
+
require 'uri'
|
21
|
+
uri = URI.parse("https://www.freeclimb.com/apiserver")
|
22
|
+
Freeclimb.configure do |c|
|
23
|
+
c.host = uri.host
|
24
|
+
c.base_path = uri.path
|
25
|
+
end
|
26
26
|
end
|
27
27
|
|
28
28
|
describe '#base_url' do
|
29
29
|
it 'should have the default value' do
|
30
30
|
# uncomment below to test default value of the base path
|
31
|
-
|
31
|
+
expect(config.base_url).to eq("https://www.freeclimb.com/apiserver")
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should remove trailing slashes' do
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
36
36
|
config.base_path = base_path
|
37
37
|
# uncomment below to test trailing slashes
|
38
|
-
|
38
|
+
expect(config.base_url).to eq("https://www.freeclimb.com/apiserver")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
data/spec/factories.rb
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
FactoryBot.define do
|
2
|
+
factory :buy_incoming_number_request, class: Freeclimb::BuyIncomingNumberRequest do
|
3
|
+
phone_number { "1234567890" }
|
4
|
+
_alias { "TEST_ALIAS" }
|
5
|
+
application_id { "TEST_APPLICATION_ID" }
|
6
|
+
end
|
7
|
+
factory :create_conference_request, class: Freeclimb::CreateConferenceRequest do
|
8
|
+
_alias { "TEST_ALIAS" }
|
9
|
+
play_beep { "always" }
|
10
|
+
record { true }
|
11
|
+
wait_url { "TEST_WAIT_URL" }
|
12
|
+
status_callback_url { "TEST_STATUS_CALLBACK_URL" }
|
13
|
+
end
|
14
|
+
factory :queue_request, class: Freeclimb::QueueRequest do
|
15
|
+
_alias { "TEST_ALIAS" }
|
16
|
+
max_size { 100 }
|
17
|
+
end
|
18
|
+
factory :application_request, class: Freeclimb::ApplicationRequest do
|
19
|
+
_alias { "TEST_ALIAS "}
|
20
|
+
voice_url { "TEST_VOICE_URL" }
|
21
|
+
voice_fallback_url { "TEST_VOICE_FALLBACK_URL" }
|
22
|
+
call_connect_url { "TEST_CALL_CONNECT_URL" }
|
23
|
+
status_callback_url { "TEST_STATUS_CALLBACK_URL" }
|
24
|
+
sms_url { "TEST_SMS_URL" }
|
25
|
+
sms_fallback_url { "TEST_SMS_FALLBACK_URL" }
|
26
|
+
end
|
27
|
+
factory :filter_logs_request, class: Freeclimb::FilterLogsRequest do
|
28
|
+
pql { "TEST_PQL" }
|
29
|
+
end
|
30
|
+
factory :capabilities, class: Freeclimb::Capabilities do
|
31
|
+
voice { true }
|
32
|
+
sms { true }
|
33
|
+
toll_free { false }
|
34
|
+
ten_dlc { false }
|
35
|
+
short_code { false }
|
36
|
+
end
|
37
|
+
factory :make_call_request, class: Freeclimb::MakeCallRequest do
|
38
|
+
from { "TEST_FROM" }
|
39
|
+
to { "TEST_TO" }
|
40
|
+
application_id { "TEST_APPLICATION_ID" }
|
41
|
+
send_digits { "TEST_SEND_DIGITS" }
|
42
|
+
if_machine { "TEST_IF_MACHINE" }
|
43
|
+
if_machine_url { "TEST_IF_MACHINE_URL" }
|
44
|
+
timeout { 120 }
|
45
|
+
parent_call_id { "TEST_PARENT_CALL_ID" }
|
46
|
+
privacy_mode { false }
|
47
|
+
call_connect_url { "TEST_CALL_CONNECT_URL" }
|
48
|
+
end
|
49
|
+
factory :message_request, class: Freeclimb::MessageRequest do
|
50
|
+
uri { "TEST_URI" }
|
51
|
+
date_created { "TEST_DATE_CREATED" }
|
52
|
+
date_updated { "TEST_DATE_UPDATED" }
|
53
|
+
revision { "TEST_REVISION" }
|
54
|
+
from { "TEST_FROM" }
|
55
|
+
to { "TEST_TO" }
|
56
|
+
text { "TEST_TEXT" }
|
57
|
+
notification_url { "TEST_NOTIFICATION_URL" }
|
58
|
+
account_id { "TEST_ACCOUNT_ID" }
|
59
|
+
end
|
60
|
+
factory :update_conference_participant_request, class: Freeclimb::UpdateConferenceParticipantRequest do
|
61
|
+
talk { true }
|
62
|
+
listen { true }
|
63
|
+
end
|
64
|
+
factory :account_request, class: Freeclimb::AccountRequest do
|
65
|
+
_alias { "TEST_ALIAS" }
|
66
|
+
label { "TEST_LABEL" }
|
67
|
+
end
|
68
|
+
factory :incoming_number_request, class: Freeclimb::IncomingNumberRequest do
|
69
|
+
application_id { "TEST_APPLICATION_ID" }
|
70
|
+
_alias { "TEST_ALIAS" }
|
71
|
+
end
|
72
|
+
factory :update_conference_request, class: Freeclimb::UpdateConferenceRequest do
|
73
|
+
_alias { "TEST_ALIAS" }
|
74
|
+
play_beep { "TEST_PLAY_BEEP" }
|
75
|
+
status { "empty" }
|
76
|
+
end
|
77
|
+
factory :update_call_request, class: Freeclimb::UpdateCallRequest do
|
78
|
+
status { "completed" }
|
79
|
+
end
|
80
|
+
end
|
@@ -4,9 +4,9 @@
|
|
4
4
|
#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.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
|
-
|
7
|
+
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,19 +17,12 @@ require 'date'
|
|
17
17
|
# Unit tests for Freeclimb::AccountRequest
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = Freeclimb::AccountRequest.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe Freeclimb::AccountRequest do
|
21
|
+
let(:instance) { Freeclimb::AccountRequest.new }
|
29
22
|
|
30
23
|
describe 'test an instance of AccountRequest' do
|
31
24
|
it 'should create an instance of AccountRequest' do
|
32
|
-
expect(
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::AccountRequest)
|
33
26
|
end
|
34
27
|
end
|
35
28
|
describe 'test attribute "_alias"' do
|
@@ -4,9 +4,9 @@
|
|
4
4
|
#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.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
|
-
|
7
|
+
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,19 +17,12 @@ require 'date'
|
|
17
17
|
# Unit tests for Freeclimb::AccountResult
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = Freeclimb::AccountResult.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe Freeclimb::AccountResult do
|
21
|
+
let(:instance) { Freeclimb::AccountResult.new }
|
29
22
|
|
30
23
|
describe 'test an instance of AccountResult' do
|
31
24
|
it 'should create an instance of AccountResult' do
|
32
|
-
expect(
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::AccountResult)
|
33
26
|
end
|
34
27
|
end
|
35
28
|
describe 'test attribute "uri"' do
|
@@ -83,6 +76,10 @@ describe 'AccountResult' do
|
|
83
76
|
describe 'test attribute "type"' do
|
84
77
|
it 'should work' do
|
85
78
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["trial", "full"])
|
80
|
+
# validator.allowable_values.each do |value|
|
81
|
+
# expect { instance.type = value }.not_to raise_error
|
82
|
+
# end
|
86
83
|
end
|
87
84
|
end
|
88
85
|
|
@@ -91,7 +88,7 @@ describe 'AccountResult' do
|
|
91
88
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
89
|
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active", "suspended", "closed"])
|
93
90
|
# validator.allowable_values.each do |value|
|
94
|
-
# expect {
|
91
|
+
# expect { instance.status = value }.not_to raise_error
|
95
92
|
# end
|
96
93
|
end
|
97
94
|
end
|
@@ -4,9 +4,9 @@
|
|
4
4
|
#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.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
|
-
|
7
|
+
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,19 +17,12 @@ require 'date'
|
|
17
17
|
# Unit tests for Freeclimb::AddToConference
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = Freeclimb::AddToConference.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe Freeclimb::AddToConference do
|
21
|
+
let(:instance) { Freeclimb::AddToConference.new }
|
29
22
|
|
30
23
|
describe 'test an instance of AddToConference' do
|
31
24
|
it 'should create an instance of AddToConference' do
|
32
|
-
expect(
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::AddToConference)
|
33
26
|
end
|
34
27
|
end
|
35
28
|
describe 'test attribute "allow_call_control"' do
|
@@ -4,9 +4,9 @@
|
|
4
4
|
#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.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
|
-
|
7
|
+
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,19 +17,12 @@ require 'date'
|
|
17
17
|
# Unit tests for Freeclimb::ApplicationList
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = Freeclimb::ApplicationList.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe Freeclimb::ApplicationList do
|
21
|
+
let(:instance) { Freeclimb::ApplicationList.new }
|
29
22
|
|
30
23
|
describe 'test an instance of ApplicationList' do
|
31
24
|
it 'should create an instance of ApplicationList' do
|
32
|
-
expect(
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::ApplicationList)
|
33
26
|
end
|
34
27
|
end
|
35
28
|
describe 'test attribute "total"' do
|
@@ -4,9 +4,9 @@
|
|
4
4
|
#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.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
|
-
|
7
|
+
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,19 +17,12 @@ require 'date'
|
|
17
17
|
# Unit tests for Freeclimb::ApplicationRequest
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = Freeclimb::ApplicationRequest.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe Freeclimb::ApplicationRequest do
|
21
|
+
let(:instance) { Freeclimb::ApplicationRequest.new }
|
29
22
|
|
30
23
|
describe 'test an instance of ApplicationRequest' do
|
31
24
|
it 'should create an instance of ApplicationRequest' do
|
32
|
-
expect(
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::ApplicationRequest)
|
33
26
|
end
|
34
27
|
end
|
35
28
|
describe 'test attribute "_alias"' do
|
@@ -4,9 +4,9 @@
|
|
4
4
|
#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.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
|
-
|
7
|
+
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,19 +17,12 @@ require 'date'
|
|
17
17
|
# Unit tests for Freeclimb::ApplicationResult
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = Freeclimb::ApplicationResult.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe Freeclimb::ApplicationResult do
|
21
|
+
let(:instance) { Freeclimb::ApplicationResult.new }
|
29
22
|
|
30
23
|
describe 'test an instance of ApplicationResult' do
|
31
24
|
it 'should create an instance of ApplicationResult' do
|
32
|
-
expect(
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::ApplicationResult)
|
33
26
|
end
|
34
27
|
end
|
35
28
|
describe 'test attribute "uri"' do
|
@@ -4,9 +4,9 @@
|
|
4
4
|
#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.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
|
-
|
7
|
+
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,19 +17,12 @@ require 'date'
|
|
17
17
|
# Unit tests for Freeclimb::AvailableNumberList
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = Freeclimb::AvailableNumberList.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe Freeclimb::AvailableNumberList do
|
21
|
+
let(:instance) { Freeclimb::AvailableNumberList.new }
|
29
22
|
|
30
23
|
describe 'test an instance of AvailableNumberList' do
|
31
24
|
it 'should create an instance of AvailableNumberList' do
|
32
|
-
expect(
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::AvailableNumberList)
|
33
26
|
end
|
34
27
|
end
|
35
28
|
describe 'test attribute "total"' do
|
@@ -4,9 +4,9 @@
|
|
4
4
|
#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.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
|
-
|
7
|
+
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,21 +17,20 @@ require 'date'
|
|
17
17
|
# Unit tests for Freeclimb::AvailableNumber
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = Freeclimb::AvailableNumber.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe Freeclimb::AvailableNumber do
|
21
|
+
let(:instance) { Freeclimb::AvailableNumber.new }
|
29
22
|
|
30
23
|
describe 'test an instance of AvailableNumber' do
|
31
24
|
it 'should create an instance of AvailableNumber' do
|
32
|
-
expect(
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::AvailableNumber)
|
33
26
|
end
|
34
27
|
end
|
28
|
+
describe 'test attribute "capabilities"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
35
34
|
describe 'test attribute "phone_number"' do
|
36
35
|
it 'should work' do
|
37
36
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -4,9 +4,9 @@
|
|
4
4
|
#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.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
|
-
|
7
|
+
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,19 +17,12 @@ require 'date'
|
|
17
17
|
# Unit tests for Freeclimb::BuyIncomingNumberRequest
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = Freeclimb::BuyIncomingNumberRequest.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe Freeclimb::BuyIncomingNumberRequest do
|
21
|
+
let(:instance) { Freeclimb::BuyIncomingNumberRequest.new }
|
29
22
|
|
30
23
|
describe 'test an instance of BuyIncomingNumberRequest' do
|
31
24
|
it 'should create an instance of BuyIncomingNumberRequest' do
|
32
|
-
expect(
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::BuyIncomingNumberRequest)
|
33
26
|
end
|
34
27
|
end
|
35
28
|
describe 'test attribute "phone_number"' do
|
@@ -4,9 +4,9 @@
|
|
4
4
|
#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.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
|
-
|
7
|
+
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,19 +17,12 @@ require 'date'
|
|
17
17
|
# Unit tests for Freeclimb::CallList
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = Freeclimb::CallList.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe Freeclimb::CallList do
|
21
|
+
let(:instance) { Freeclimb::CallList.new }
|
29
22
|
|
30
23
|
describe 'test an instance of CallList' do
|
31
24
|
it 'should create an instance of CallList' do
|
32
|
-
expect(
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::CallList)
|
33
26
|
end
|
34
27
|
end
|
35
28
|
describe 'test attribute "total"' do
|
@@ -4,9 +4,9 @@
|
|
4
4
|
#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.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
|
-
|
7
|
+
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,19 +17,12 @@ require 'date'
|
|
17
17
|
# Unit tests for Freeclimb::CallResult
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = Freeclimb::CallResult.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe Freeclimb::CallResult do
|
21
|
+
let(:instance) { Freeclimb::CallResult.new }
|
29
22
|
|
30
23
|
describe 'test an instance of CallResult' do
|
31
24
|
it 'should create an instance of CallResult' do
|
32
|
-
expect(
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::CallResult)
|
33
26
|
end
|
34
27
|
end
|
35
28
|
describe 'test attribute "uri"' do
|
@@ -97,7 +90,7 @@ describe 'CallResult' do
|
|
97
90
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
91
|
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["queued", "ringing", "inProgress", "canceled", "completed", "busy", "failed", "noAnswer"])
|
99
92
|
# validator.allowable_values.each do |value|
|
100
|
-
# expect {
|
93
|
+
# expect { instance.status = value }.not_to raise_error
|
101
94
|
# end
|
102
95
|
end
|
103
96
|
end
|