freeclimb 2.2.0 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +29 -1
- data/Gemfile +4 -2
- data/Gemfile.lock +41 -20
- data/README.md +35 -33
- 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 +17 -16
- 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 +1672 -580
- 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 +33 -30
- data/docs/IncomingNumberResultAllOf.md +25 -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/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/UpdateCallRequest.md +7 -6
- data/docs/UpdateConferenceParticipantRequest.md +9 -8
- data/docs/UpdateConferenceRequest.md +11 -10
- data/freeclimb.gemspec +2 -3
- data/lib/freeclimb/api/default_api.rb +439 -257
- data/lib/freeclimb/api_client.rb +54 -50
- data/lib/freeclimb/api_error.rb +1 -1
- data/lib/freeclimb/configuration.rb +40 -10
- data/lib/freeclimb/models/account_request.rb +19 -7
- data/lib/freeclimb/models/account_result.rb +20 -8
- data/lib/freeclimb/models/account_result_all_of.rb +20 -8
- data/lib/freeclimb/models/add_to_conference.rb +19 -12
- data/lib/freeclimb/models/add_to_conference_all_of.rb +19 -12
- data/lib/freeclimb/models/application_list.rb +19 -7
- data/lib/freeclimb/models/application_list_all_of.rb +19 -7
- data/lib/freeclimb/models/application_request.rb +19 -7
- data/lib/freeclimb/models/application_result.rb +19 -7
- data/lib/freeclimb/models/application_result_all_of.rb +19 -7
- data/lib/freeclimb/models/available_number.rb +29 -18
- data/lib/freeclimb/models/available_number_list.rb +19 -7
- data/lib/freeclimb/models/available_number_list_all_of.rb +19 -7
- data/lib/freeclimb/models/buy_incoming_number_request.rb +19 -7
- data/lib/freeclimb/models/call_list.rb +19 -7
- data/lib/freeclimb/models/call_list_all_of.rb +19 -7
- data/lib/freeclimb/models/call_result.rb +19 -7
- data/lib/freeclimb/models/call_result_all_of.rb +19 -7
- data/lib/freeclimb/models/capabilities.rb +285 -0
- data/lib/freeclimb/models/conference_list.rb +19 -7
- data/lib/freeclimb/models/conference_list_all_of.rb +19 -7
- data/lib/freeclimb/models/conference_participant_list.rb +19 -7
- data/lib/freeclimb/models/conference_participant_list_all_of.rb +19 -7
- data/lib/freeclimb/models/conference_participant_result.rb +19 -7
- data/lib/freeclimb/models/conference_participant_result_all_of.rb +19 -7
- data/lib/freeclimb/models/conference_result.rb +19 -7
- data/lib/freeclimb/models/conference_result_all_of.rb +19 -7
- data/lib/freeclimb/models/create_conference.rb +19 -7
- data/lib/freeclimb/models/create_conference_all_of.rb +19 -7
- data/lib/freeclimb/models/create_conference_request.rb +19 -7
- data/lib/freeclimb/models/dequeue.rb +19 -7
- data/lib/freeclimb/models/enqueue.rb +19 -7
- data/lib/freeclimb/models/enqueue_all_of.rb +19 -7
- data/lib/freeclimb/models/filter_logs_request.rb +19 -7
- data/lib/freeclimb/models/get_digits.rb +19 -7
- data/lib/freeclimb/models/get_digits_all_of.rb +19 -7
- data/lib/freeclimb/models/get_speech.rb +19 -7
- data/lib/freeclimb/models/get_speech_all_of.rb +19 -7
- data/lib/freeclimb/models/hangup.rb +19 -7
- data/lib/freeclimb/models/hangup_all_of.rb +19 -7
- data/lib/freeclimb/models/incoming_number_list.rb +19 -7
- data/lib/freeclimb/models/incoming_number_list_all_of.rb +19 -7
- data/lib/freeclimb/models/incoming_number_request.rb +19 -7
- data/lib/freeclimb/models/incoming_number_result.rb +29 -8
- data/lib/freeclimb/models/incoming_number_result_all_of.rb +29 -8
- data/lib/freeclimb/models/log_list.rb +19 -7
- data/lib/freeclimb/models/log_list_all_of.rb +19 -7
- data/lib/freeclimb/models/log_result.rb +19 -7
- data/lib/freeclimb/models/make_call_request.rb +19 -7
- data/lib/freeclimb/models/message_request.rb +19 -7
- data/lib/freeclimb/models/message_request_all_of.rb +19 -7
- data/lib/freeclimb/models/message_result.rb +19 -7
- data/lib/freeclimb/models/message_result_all_of.rb +19 -7
- data/lib/freeclimb/models/messages_list.rb +19 -7
- data/lib/freeclimb/models/messages_list_all_of.rb +19 -7
- data/lib/freeclimb/models/mutable_resource_model.rb +19 -7
- data/lib/freeclimb/models/out_dial.rb +19 -7
- data/lib/freeclimb/models/out_dial_all_of.rb +19 -7
- data/lib/freeclimb/models/pagination_model.rb +19 -7
- data/lib/freeclimb/models/pause.rb +19 -7
- data/lib/freeclimb/models/pause_all_of.rb +19 -7
- data/lib/freeclimb/models/percl_command.rb +20 -7
- data/lib/freeclimb/models/percl_script.rb +19 -7
- data/lib/freeclimb/models/play.rb +19 -7
- data/lib/freeclimb/models/play_all_of.rb +19 -7
- data/lib/freeclimb/models/play_early_media.rb +19 -7
- data/lib/freeclimb/models/play_early_media_all_of.rb +19 -7
- data/lib/freeclimb/models/queue_list.rb +19 -7
- data/lib/freeclimb/models/queue_list_all_of.rb +19 -7
- data/lib/freeclimb/models/queue_member.rb +19 -7
- data/lib/freeclimb/models/queue_member_list.rb +19 -7
- data/lib/freeclimb/models/queue_member_list_all_of.rb +19 -7
- data/lib/freeclimb/models/queue_request.rb +19 -7
- data/lib/freeclimb/models/queue_result.rb +19 -7
- data/lib/freeclimb/models/queue_result_all_of.rb +19 -7
- data/lib/freeclimb/models/record_utterance.rb +19 -7
- data/lib/freeclimb/models/record_utterance_all_of.rb +19 -7
- data/lib/freeclimb/models/recording_list.rb +19 -7
- data/lib/freeclimb/models/recording_list_all_of.rb +19 -7
- data/lib/freeclimb/models/recording_result.rb +19 -7
- data/lib/freeclimb/models/recording_result_all_of.rb +19 -7
- data/lib/freeclimb/models/redirect.rb +19 -7
- data/lib/freeclimb/models/redirect_all_of.rb +19 -7
- data/lib/freeclimb/models/reject.rb +19 -7
- data/lib/freeclimb/models/reject_all_of.rb +19 -7
- data/lib/freeclimb/models/remove_from_conference.rb +19 -7
- data/lib/freeclimb/models/remove_from_conference_all_of.rb +19 -7
- data/lib/freeclimb/models/say.rb +19 -7
- data/lib/freeclimb/models/say_all_of.rb +19 -7
- data/lib/freeclimb/models/send_digits.rb +19 -7
- data/lib/freeclimb/models/send_digits_all_of.rb +19 -7
- data/lib/freeclimb/models/set_listen.rb +19 -7
- data/lib/freeclimb/models/set_listen_all_of.rb +19 -7
- data/lib/freeclimb/models/set_talk.rb +19 -7
- data/lib/freeclimb/models/set_talk_all_of.rb +19 -7
- data/lib/freeclimb/models/sms.rb +19 -7
- data/lib/freeclimb/models/sms_all_of.rb +19 -7
- data/lib/freeclimb/models/start_record_call.rb +19 -7
- data/lib/freeclimb/models/terminate_conference.rb +19 -7
- data/lib/freeclimb/models/terminate_conference_all_of.rb +19 -7
- data/lib/freeclimb/models/update_call_request.rb +19 -7
- data/lib/freeclimb/models/update_conference_participant_request.rb +19 -7
- data/lib/freeclimb/models/update_conference_request.rb +19 -7
- data/lib/freeclimb/version.rb +2 -2
- data/lib/freeclimb.rb +46 -46
- data/spec/api/default_api_spec.rb +1092 -665
- data/spec/api_client_spec.rb +6 -6
- data/spec/configuration_spec.rb +12 -4
- data/spec/factories.rb +80 -0
- data/spec/models/account_request_spec.rb +19 -12
- data/spec/models/account_result_spec.rb +76 -11
- data/spec/models/add_to_conference_spec.rb +6 -13
- data/spec/models/application_list_spec.rb +54 -11
- data/spec/models/application_request_spec.rb +48 -11
- data/spec/models/application_result_spec.rb +84 -11
- data/spec/models/available_number_list_spec.rb +54 -12
- data/spec/models/available_number_spec.rb +42 -11
- data/spec/models/buy_incoming_number_request_spec.rb +24 -11
- data/spec/models/call_list_spec.rb +54 -12
- data/spec/models/call_result_spec.rb +123 -11
- data/spec/models/capabilities_spec.rb +58 -0
- data/spec/models/conference_list_spec.rb +54 -11
- data/spec/models/conference_participant_list_spec.rb +54 -11
- data/spec/models/conference_participant_result_spec.rb +66 -11
- data/spec/models/conference_result_spec.rb +98 -12
- data/spec/models/create_conference_request_spec.rb +40 -12
- data/spec/models/create_conference_spec.rb +6 -13
- data/spec/models/dequeue_spec.rb +6 -13
- data/spec/models/enqueue_spec.rb +6 -13
- data/spec/models/filter_logs_request_spec.rb +14 -13
- data/spec/models/get_digits_spec.rb +12 -13
- data/spec/models/get_speech_spec.rb +7 -14
- data/spec/models/hangup_spec.rb +4 -11
- data/spec/models/incoming_number_list_spec.rb +54 -12
- data/spec/models/incoming_number_request_spec.rb +19 -12
- data/spec/models/incoming_number_result_spec.rb +90 -12
- data/spec/models/log_list_spec.rb +54 -11
- data/spec/models/log_result_spec.rb +52 -11
- data/spec/models/make_call_request_spec.rb +66 -11
- data/spec/models/message_request_spec.rb +60 -12
- data/spec/models/message_result_spec.rb +82 -11
- data/spec/models/messages_list_spec.rb +54 -11
- data/spec/models/mutable_resource_model_spec.rb +30 -12
- data/spec/models/out_dial_spec.rb +12 -13
- data/spec/models/pagination_model_spec.rb +48 -11
- data/spec/models/pause_spec.rb +6 -13
- data/spec/models/percl_command_spec.rb +6 -13
- data/spec/models/percl_script_spec.rb +6 -13
- data/spec/models/play_early_media_spec.rb +6 -13
- data/spec/models/play_spec.rb +12 -13
- data/spec/models/queue_list_spec.rb +53 -11
- data/spec/models/queue_member_list_spec.rb +54 -11
- data/spec/models/queue_member_spec.rb +36 -12
- data/spec/models/queue_request_spec.rb +19 -13
- data/spec/models/queue_result_spec.rb +72 -11
- data/spec/models/record_utterance_spec.rb +12 -13
- data/spec/models/recording_list_spec.rb +54 -11
- data/spec/models/recording_result_spec.rb +60 -11
- data/spec/models/redirect_spec.rb +6 -13
- data/spec/models/reject_spec.rb +4 -11
- data/spec/models/remove_from_conference_spec.rb +6 -13
- data/spec/models/say_spec.rb +7 -14
- data/spec/models/send_digits_spec.rb +12 -13
- data/spec/models/set_listen_spec.rb +6 -13
- data/spec/models/set_talk_spec.rb +6 -13
- data/spec/models/sms_spec.rb +6 -13
- data/spec/models/start_record_call_spec.rb +6 -13
- data/spec/models/terminate_conference_spec.rb +6 -13
- data/spec/models/update_call_request_spec.rb +18 -13
- data/spec/models/update_conference_participant_request_spec.rb +19 -12
- data/spec/models/update_conference_request_spec.rb +28 -11
- data/spec/quickstart_spec.rb +10 -0
- data/spec/spec_helper.rb +57 -6
- metadata +20 -38
- data/freeclimb-2.0.3.gem +0 -0
- data/freeclimb-2.1.0.gem +0 -0
- data/freeclimb-2.1.1.gem +0 -0
- data/freeclimb-2.1.2.gem +0 -0
- data/spec/api/web_mocks.rb +0 -473
data/spec/models/reject_spec.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
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::Reject
|
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::Reject.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe Freeclimb::Reject do
|
21
|
+
let(:instance) { Freeclimb::Reject.new }
|
29
22
|
|
30
23
|
describe 'test an instance of Reject' do
|
31
24
|
it 'should create an instance of Reject' do
|
32
|
-
expect(
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::Reject)
|
33
26
|
end
|
34
27
|
end
|
35
28
|
describe 'test attribute "reason"' do
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#FreeClimb API
|
3
3
|
|
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
|
-
The version of the OpenAPI document: 0.0
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
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::RemoveFromConference
|
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::RemoveFromConference.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe Freeclimb::RemoveFromConference do
|
21
|
+
let(:instance) { Freeclimb::RemoveFromConference.new }
|
29
22
|
|
30
23
|
describe 'test an instance of RemoveFromConference' do
|
31
24
|
it 'should create an instance of RemoveFromConference' do
|
32
|
-
expect(
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::RemoveFromConference)
|
33
26
|
end
|
34
27
|
end
|
35
28
|
describe 'test attribute "call_id"' do
|
data/spec/models/say_spec.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#FreeClimb API
|
3
3
|
|
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
|
-
The version of the OpenAPI document: 0.0
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
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::Say
|
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::Say.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe Freeclimb::Say do
|
21
|
+
let(:instance) { Freeclimb::Say.new }
|
29
22
|
|
30
23
|
describe 'test an instance of Say' do
|
31
24
|
it 'should create an instance of Say' do
|
32
|
-
expect(
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::Say)
|
33
26
|
end
|
34
27
|
end
|
35
28
|
describe 'test attribute "text"' do
|
@@ -56,7 +49,7 @@ describe 'Say' do
|
|
56
49
|
end
|
57
50
|
end
|
58
51
|
|
59
|
-
describe 'test attribute "
|
52
|
+
describe 'test attribute "privacy_mode"' do
|
60
53
|
it 'should work' do
|
61
54
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
55
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#FreeClimb API
|
3
3
|
|
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
|
-
The version of the OpenAPI document: 0.0
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
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::SendDigits
|
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::SendDigits.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe Freeclimb::SendDigits do
|
21
|
+
let(:instance) { Freeclimb::SendDigits.new }
|
29
22
|
|
30
23
|
describe 'test an instance of SendDigits' do
|
31
24
|
it 'should create an instance of SendDigits' do
|
32
|
-
expect(
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::SendDigits)
|
33
26
|
end
|
34
27
|
end
|
35
28
|
describe 'test attribute "digits"' do
|
@@ -44,4 +37,10 @@ describe 'SendDigits' do
|
|
44
37
|
end
|
45
38
|
end
|
46
39
|
|
40
|
+
describe 'test attribute "privacy_mode"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
47
46
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#FreeClimb API
|
3
3
|
|
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
|
-
The version of the OpenAPI document: 0.0
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
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::SetListen
|
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::SetListen.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe Freeclimb::SetListen do
|
21
|
+
let(:instance) { Freeclimb::SetListen.new }
|
29
22
|
|
30
23
|
describe 'test an instance of SetListen' do
|
31
24
|
it 'should create an instance of SetListen' do
|
32
|
-
expect(
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::SetListen)
|
33
26
|
end
|
34
27
|
end
|
35
28
|
describe 'test attribute "call_id"' do
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#FreeClimb API
|
3
3
|
|
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
|
-
The version of the OpenAPI document: 0.0
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
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::SetTalk
|
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::SetTalk.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe Freeclimb::SetTalk do
|
21
|
+
let(:instance) { Freeclimb::SetTalk.new }
|
29
22
|
|
30
23
|
describe 'test an instance of SetTalk' do
|
31
24
|
it 'should create an instance of SetTalk' do
|
32
|
-
expect(
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::SetTalk)
|
33
26
|
end
|
34
27
|
end
|
35
28
|
describe 'test attribute "call_id"' do
|
data/spec/models/sms_spec.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#FreeClimb API
|
3
3
|
|
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
|
-
The version of the OpenAPI document: 0.0
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
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::Sms
|
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::Sms.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe Freeclimb::Sms do
|
21
|
+
let(:instance) { Freeclimb::Sms.new }
|
29
22
|
|
30
23
|
describe 'test an instance of Sms' do
|
31
24
|
it 'should create an instance of Sms' do
|
32
|
-
expect(
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::Sms)
|
33
26
|
end
|
34
27
|
end
|
35
28
|
describe 'test attribute "to"' do
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#FreeClimb API
|
3
3
|
|
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
|
-
The version of the OpenAPI document: 0.0
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
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::StartRecordCall
|
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::StartRecordCall.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe Freeclimb::StartRecordCall do
|
21
|
+
let(:instance) { Freeclimb::StartRecordCall.new }
|
29
22
|
|
30
23
|
describe 'test an instance of StartRecordCall' do
|
31
24
|
it 'should create an instance of StartRecordCall' do
|
32
|
-
expect(
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::StartRecordCall)
|
33
26
|
end
|
34
27
|
end
|
35
28
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#FreeClimb API
|
3
3
|
|
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
|
-
The version of the OpenAPI document: 0.0
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
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::TerminateConference
|
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::TerminateConference.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe Freeclimb::TerminateConference do
|
21
|
+
let(:instance) { Freeclimb::TerminateConference.new }
|
29
22
|
|
30
23
|
describe 'test an instance of TerminateConference' do
|
31
24
|
it 'should create an instance of TerminateConference' do
|
32
|
-
expect(
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::TerminateConference)
|
33
26
|
end
|
34
27
|
end
|
35
28
|
describe 'test attribute "conference_id"' do
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#FreeClimb API
|
3
3
|
|
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
|
-
The version of the OpenAPI document: 0.0
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
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,17 +17,22 @@ require 'date'
|
|
17
17
|
# Unit tests for Freeclimb::UpdateCallRequest
|
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::UpdateCallRequest.new
|
24
|
-
end
|
20
|
+
describe Freeclimb::UpdateCallRequest do
|
21
|
+
let(:instance) { Freeclimb::UpdateCallRequest.new }
|
25
22
|
|
26
|
-
|
27
|
-
|
23
|
+
describe 'test an instance of UpdateCallRequest' do
|
24
|
+
it 'should create an instance of UpdateCallRequest' do
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::UpdateCallRequest)
|
26
|
+
end
|
28
27
|
end
|
29
|
-
|
30
|
-
|
31
|
-
|
28
|
+
describe 'test attribute "status"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["canceled", "completed"])
|
32
|
+
# validator.allowable_values.each do |value|
|
33
|
+
# expect { instance.status = value }.not_to raise_error
|
34
|
+
# end
|
35
|
+
end
|
32
36
|
end
|
37
|
+
|
33
38
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#FreeClimb API
|
3
3
|
|
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
|
-
The version of the OpenAPI document: 0.0
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
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,17 +17,24 @@ require 'date'
|
|
17
17
|
# Unit tests for Freeclimb::UpdateConferenceParticipantRequest
|
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::UpdateConferenceParticipantRequest.new
|
24
|
-
end
|
20
|
+
describe Freeclimb::UpdateConferenceParticipantRequest do
|
21
|
+
let(:instance) { Freeclimb::UpdateConferenceParticipantRequest.new }
|
25
22
|
|
26
|
-
|
27
|
-
|
23
|
+
describe 'test an instance of UpdateConferenceParticipantRequest' do
|
24
|
+
it 'should create an instance of UpdateConferenceParticipantRequest' do
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::UpdateConferenceParticipantRequest)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "talk"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
28
32
|
end
|
29
33
|
|
30
|
-
|
31
|
-
|
34
|
+
describe 'test attribute "listen"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
32
38
|
end
|
39
|
+
|
33
40
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#FreeClimb API
|
3
3
|
|
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
|
-
The version of the OpenAPI document: 0.0
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
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,17 +17,34 @@ require 'date'
|
|
17
17
|
# Unit tests for Freeclimb::UpdateConferenceRequest
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
|
22
|
-
|
23
|
-
|
20
|
+
describe Freeclimb::UpdateConferenceRequest do
|
21
|
+
let(:instance) { Freeclimb::UpdateConferenceRequest.new }
|
22
|
+
|
23
|
+
describe 'test an instance of UpdateConferenceRequest' do
|
24
|
+
it 'should create an instance of UpdateConferenceRequest' do
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::UpdateConferenceRequest)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "_alias"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
24
32
|
end
|
25
33
|
|
26
|
-
|
27
|
-
|
34
|
+
describe 'test attribute "play_beep"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
28
38
|
end
|
29
39
|
|
30
|
-
|
31
|
-
|
40
|
+
describe 'test attribute "status"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["empty", "terminated"])
|
44
|
+
# validator.allowable_values.each do |value|
|
45
|
+
# expect { instance.status = value }.not_to raise_error
|
46
|
+
# end
|
47
|
+
end
|
32
48
|
end
|
49
|
+
|
33
50
|
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'json'
|
2
|
+
|
3
|
+
describe "quickstart" do
|
4
|
+
it "generates percl to say the text 'Hello, World!'" do
|
5
|
+
say = Freeclimb::Say.new(text:'Hello, World!')
|
6
|
+
script = Freeclimb::PerclScript.new(commands:[say])
|
7
|
+
json = Freeclimb::percl_to_json(script)
|
8
|
+
expect(json).to eq("[{\"Say\":{\"text\":\"Hello, World!\"}}]")
|
9
|
+
end
|
10
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,17 +1,22 @@
|
|
1
1
|
=begin
|
2
2
|
#FreeClimb API
|
3
3
|
|
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
|
-
The version of the OpenAPI document: 0.0
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
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
|
|
13
13
|
# load the gem
|
14
14
|
require 'freeclimb'
|
15
|
+
require 'webmock/rspec'
|
16
|
+
require 'factory_bot'
|
17
|
+
|
18
|
+
include WebMock::API
|
19
|
+
|
15
20
|
# The following was generated by the `rspec --init` command. Conventionally, all
|
16
21
|
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
17
22
|
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
@@ -107,8 +112,54 @@ RSpec.configure do |config|
|
|
107
112
|
# as the one that triggered the failure.
|
108
113
|
Kernel.srand config.seed
|
109
114
|
=end
|
115
|
+
|
116
|
+
config.include FactoryBot::Syntax::Methods
|
117
|
+
|
118
|
+
config.before(:suite) do
|
119
|
+
FactoryBot.find_definitions
|
120
|
+
end
|
110
121
|
end
|
111
122
|
|
112
|
-
|
113
|
-
|
114
|
-
|
123
|
+
Freeclimb.configure do |config|
|
124
|
+
# Configure HTTP basic authorization: fc
|
125
|
+
config.username = 'TEST_ACCOUNT_ID'
|
126
|
+
config.password = 'TEST_API_KEY'
|
127
|
+
end
|
128
|
+
|
129
|
+
# Prevents external http requests
|
130
|
+
WebMock.disable_net_connect!(:allow_localhost => true)
|
131
|
+
|
132
|
+
|
133
|
+
def build_value(sym)
|
134
|
+
begin
|
135
|
+
build(sym)
|
136
|
+
rescue => error
|
137
|
+
if error.message.include? "invalid value"
|
138
|
+
raise error
|
139
|
+
else
|
140
|
+
'TEST_' + sym.to_s.upcase
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
def build_query_parameters(params)
|
146
|
+
params.to_hash.reduce({}) do |acc, (key, val)|
|
147
|
+
if (key.to_s == '_alias')
|
148
|
+
next_key = 'alias'
|
149
|
+
elsif (key.to_s == 'capabilities_ten_dlc')
|
150
|
+
next_key = 'capabilities.tenDLC'
|
151
|
+
elsif (key.to_s == 'capabilities_short_code')
|
152
|
+
next_key = 'capabilities.shortCode'
|
153
|
+
elsif (key.to_s == 'capabilities_voice')
|
154
|
+
next_key = 'capabilities.voice'
|
155
|
+
elsif (key.to_s == 'capabilities_sms')
|
156
|
+
next_key = 'capabilities.sms'
|
157
|
+
elsif (key.to_s == 'capabilities_toll_free')
|
158
|
+
next_key = 'capabilities.tollFree'
|
159
|
+
else
|
160
|
+
next_key = key.to_s.camelcase
|
161
|
+
end
|
162
|
+
acc[next_key] = val
|
163
|
+
acc
|
164
|
+
end
|
165
|
+
end
|