dialmycalls_client 2.0.1
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 +7 -0
- data/LICENSE +201 -0
- data/README.md +186 -0
- data/dialmycalls_client-1.0.0.gem +0 -0
- data/dialmycalls_client.gemspec +55 -0
- data/docs/Accessaccount.md +12 -0
- data/docs/Account.md +9 -0
- data/docs/AccountsApi.md +324 -0
- data/docs/CallRecipient.md +19 -0
- data/docs/CallerIdsApi.md +386 -0
- data/docs/Callerid.md +13 -0
- data/docs/CallsApi.md +278 -0
- data/docs/Callservice.md +17 -0
- data/docs/Contact.md +18 -0
- data/docs/ContactAttributes.md +11 -0
- data/docs/ContactsApi.md +330 -0
- data/docs/CreateAccessAccountParameters.md +10 -0
- data/docs/CreateCallParameters.md +18 -0
- data/docs/CreateCallerIdParameters.md +9 -0
- data/docs/CreateContactParameters.md +14 -0
- data/docs/CreateGroupParameters.md +8 -0
- data/docs/CreateRecordingByPhoneParameters.md +12 -0
- data/docs/CreateRecordingByUrlParameters.md +9 -0
- data/docs/CreateRecordingParameters.md +11 -0
- data/docs/CreateTextParameters.md +17 -0
- data/docs/CreateUnverifiedCallerIdParameters.md +9 -0
- data/docs/DoNotContactsApi.md +62 -0
- data/docs/Donotcontact.md +12 -0
- data/docs/Group.md +12 -0
- data/docs/GroupsApi.md +277 -0
- data/docs/Identifier.md +8 -0
- data/docs/Incomingtext.md +13 -0
- data/docs/Keyword.md +12 -0
- data/docs/KeywordsApi.md +168 -0
- data/docs/Polling.md +10 -0
- data/docs/PushToListenAgain.md +9 -0
- data/docs/PushToOptOut.md +9 -0
- data/docs/PushToRecord.md +9 -0
- data/docs/PushToTalk.md +12 -0
- data/docs/Recording.md +15 -0
- data/docs/RecordingsApi.md +383 -0
- data/docs/Service.md +16 -0
- data/docs/Shortcode.md +11 -0
- data/docs/TextRecipient.md +13 -0
- data/docs/TextsApi.md +492 -0
- data/docs/UpdateAccessAccountByIdParameters.md +10 -0
- data/docs/UpdateCallerIdByIdParameters.md +8 -0
- data/docs/UpdateContactByIdParameters.md +14 -0
- data/docs/UpdateGroupByIdParameters.md +8 -0
- data/docs/UpdateRecordingByIdParameters.md +8 -0
- data/docs/UpdateVanityNumberByIdParameters.md +12 -0
- data/docs/VanityNumbersApi.md +224 -0
- data/docs/Vanitynumber.md +16 -0
- data/docs/VerifyCallerIdByIdParameters.md +8 -0
- data/git_push.sh +67 -0
- data/lib/dialmycalls_client/api/accounts_api.rb +375 -0
- data/lib/dialmycalls_client/api/caller_ids_api.rb +440 -0
- data/lib/dialmycalls_client/api/calls_api.rb +321 -0
- data/lib/dialmycalls_client/api/contacts_api.rb +379 -0
- data/lib/dialmycalls_client/api/do_not_contacts_api.rb +90 -0
- data/lib/dialmycalls_client/api/groups_api.rb +322 -0
- data/lib/dialmycalls_client/api/keywords_api.rb +204 -0
- data/lib/dialmycalls_client/api/recordings_api.rb +436 -0
- data/lib/dialmycalls_client/api/texts_api.rb +547 -0
- data/lib/dialmycalls_client/api/vanity_numbers_api.rb +265 -0
- data/lib/dialmycalls_client/api_client.rb +379 -0
- data/lib/dialmycalls_client/api_error.rb +47 -0
- data/lib/dialmycalls_client/configuration.rb +214 -0
- data/lib/dialmycalls_client/models/accessaccount.rb +240 -0
- data/lib/dialmycalls_client/models/account.rb +210 -0
- data/lib/dialmycalls_client/models/call_recipient.rb +310 -0
- data/lib/dialmycalls_client/models/callerid.rb +250 -0
- data/lib/dialmycalls_client/models/callservice.rb +290 -0
- data/lib/dialmycalls_client/models/contact.rb +300 -0
- data/lib/dialmycalls_client/models/contact_attributes.rb +230 -0
- data/lib/dialmycalls_client/models/create_access_account_parameters.rb +220 -0
- data/lib/dialmycalls_client/models/create_call_parameters.rb +304 -0
- data/lib/dialmycalls_client/models/create_caller_id_parameters.rb +210 -0
- data/lib/dialmycalls_client/models/create_contact_parameters.rb +262 -0
- data/lib/dialmycalls_client/models/create_group_parameters.rb +200 -0
- data/lib/dialmycalls_client/models/create_recording_by_phone_parameters.rb +240 -0
- data/lib/dialmycalls_client/models/create_recording_by_url_parameters.rb +210 -0
- data/lib/dialmycalls_client/models/create_recording_parameters.rb +230 -0
- data/lib/dialmycalls_client/models/create_text_parameters.rb +294 -0
- data/lib/dialmycalls_client/models/create_unverified_caller_id_parameters.rb +210 -0
- data/lib/dialmycalls_client/models/donotcontact.rb +240 -0
- data/lib/dialmycalls_client/models/group.rb +240 -0
- data/lib/dialmycalls_client/models/identifier.rb +200 -0
- data/lib/dialmycalls_client/models/incomingtext.rb +250 -0
- data/lib/dialmycalls_client/models/keyword.rb +240 -0
- data/lib/dialmycalls_client/models/polling.rb +220 -0
- data/lib/dialmycalls_client/models/push_to_listen_again.rb +210 -0
- data/lib/dialmycalls_client/models/push_to_opt_out.rb +210 -0
- data/lib/dialmycalls_client/models/push_to_record.rb +210 -0
- data/lib/dialmycalls_client/models/push_to_talk.rb +240 -0
- data/lib/dialmycalls_client/models/recording.rb +270 -0
- data/lib/dialmycalls_client/models/service.rb +280 -0
- data/lib/dialmycalls_client/models/shortcode.rb +230 -0
- data/lib/dialmycalls_client/models/text_recipient.rb +250 -0
- data/lib/dialmycalls_client/models/update_access_account_by_id_parameters.rb +220 -0
- data/lib/dialmycalls_client/models/update_caller_id_by_id_parameters.rb +200 -0
- data/lib/dialmycalls_client/models/update_contact_by_id_parameters.rb +262 -0
- data/lib/dialmycalls_client/models/update_group_by_id_parameters.rb +200 -0
- data/lib/dialmycalls_client/models/update_recording_by_id_parameters.rb +200 -0
- data/lib/dialmycalls_client/models/update_vanity_number_by_id_parameters.rb +242 -0
- data/lib/dialmycalls_client/models/vanitynumber.rb +280 -0
- data/lib/dialmycalls_client/models/verify_caller_id_by_id_parameters.rb +200 -0
- data/lib/dialmycalls_client/version.rb +26 -0
- data/lib/dialmycalls_client.rb +99 -0
- data/spec/api/accounts_api_spec.rb +118 -0
- data/spec/api/caller_ids_api_spec.rb +132 -0
- data/spec/api/calls_api_spec.rb +107 -0
- data/spec/api/contacts_api_spec.rb +119 -0
- data/spec/api/do_not_contacts_api_spec.rb +58 -0
- data/spec/api/groups_api_spec.rb +107 -0
- data/spec/api/keywords_api_spec.rb +82 -0
- data/spec/api/recordings_api_spec.rb +131 -0
- data/spec/api/texts_api_spec.rb +155 -0
- data/spec/api/vanity_numbers_api_spec.rb +95 -0
- data/spec/api_client_spec.rb +237 -0
- data/spec/configuration_spec.rb +53 -0
- data/spec/models/accessaccount_spec.rb +77 -0
- data/spec/models/account_spec.rb +59 -0
- data/spec/models/call_recipient_spec.rb +119 -0
- data/spec/models/callerid_spec.rb +83 -0
- data/spec/models/callservice_spec.rb +107 -0
- data/spec/models/contact_attributes_spec.rb +71 -0
- data/spec/models/contact_spec.rb +113 -0
- data/spec/models/create_access_account_parameters_spec.rb +65 -0
- data/spec/models/create_call_parameters_spec.rb +113 -0
- data/spec/models/create_caller_id_parameters_spec.rb +59 -0
- data/spec/models/create_contact_parameters_spec.rb +89 -0
- data/spec/models/create_group_parameters_spec.rb +53 -0
- data/spec/models/create_recording_by_phone_parameters_spec.rb +77 -0
- data/spec/models/create_recording_by_url_parameters_spec.rb +59 -0
- data/spec/models/create_recording_parameters_spec.rb +71 -0
- data/spec/models/create_text_parameters_spec.rb +107 -0
- data/spec/models/create_unverified_caller_id_parameters_spec.rb +59 -0
- data/spec/models/donotcontact_spec.rb +77 -0
- data/spec/models/group_spec.rb +77 -0
- data/spec/models/identifier_spec.rb +53 -0
- data/spec/models/incomingtext_spec.rb +83 -0
- data/spec/models/keyword_spec.rb +77 -0
- data/spec/models/polling_spec.rb +65 -0
- data/spec/models/push_to_listen_again_spec.rb +59 -0
- data/spec/models/push_to_opt_out_spec.rb +59 -0
- data/spec/models/push_to_record_spec.rb +59 -0
- data/spec/models/push_to_talk_spec.rb +77 -0
- data/spec/models/recording_spec.rb +95 -0
- data/spec/models/service_spec.rb +101 -0
- data/spec/models/shortcode_spec.rb +71 -0
- data/spec/models/text_recipient_spec.rb +83 -0
- data/spec/models/update_access_account_by_id_parameters_spec.rb +65 -0
- data/spec/models/update_caller_id_by_id_parameters_spec.rb +53 -0
- data/spec/models/update_contact_by_id_parameters_spec.rb +89 -0
- data/spec/models/update_group_by_id_parameters_spec.rb +53 -0
- data/spec/models/update_recording_by_id_parameters_spec.rb +53 -0
- data/spec/models/update_vanity_number_by_id_parameters_spec.rb +77 -0
- data/spec/models/vanitynumber_spec.rb +101 -0
- data/spec/models/verify_caller_id_by_id_parameters_spec.rb +53 -0
- data/spec/spec_helper.rb +122 -0
- metadata +436 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#DialMyCalls API
|
|
3
|
+
|
|
4
|
+
#The DialMyCalls API
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0.1
|
|
7
|
+
Contact: support@dialmycalls.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
|
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
you may not use this file except in compliance with the License.
|
|
12
|
+
You may obtain a copy of the License at
|
|
13
|
+
|
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
|
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
See the License for the specific language governing permissions and
|
|
20
|
+
limitations under the License.
|
|
21
|
+
|
|
22
|
+
=end
|
|
23
|
+
|
|
24
|
+
require 'spec_helper'
|
|
25
|
+
require 'json'
|
|
26
|
+
|
|
27
|
+
# Unit tests for DialMyCalls::TextsApi
|
|
28
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
29
|
+
# Please update as you see appropriate
|
|
30
|
+
describe 'TextsApi' do
|
|
31
|
+
before do
|
|
32
|
+
# run before each test
|
|
33
|
+
@instance = DialMyCalls::TextsApi.new
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
after do
|
|
37
|
+
# run after each test
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
describe 'test an instance of TextsApi' do
|
|
41
|
+
it 'should create an instact of TextsApi' do
|
|
42
|
+
expect(@instance).to be_instance_of(DialMyCalls::TextsApi)
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# unit tests for cancel_text_by_id
|
|
47
|
+
# Cancel Text
|
|
48
|
+
# Cancel an outgoing text. <br><br> Returns the following if a valid identifier was provided, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X DELETE https://$API_KEY@api.dialmycalls.com/2.0/service/text/$TEXT_ID ```
|
|
49
|
+
# @param text_id TextId
|
|
50
|
+
# @param [Hash] opts the optional parameters
|
|
51
|
+
# @return [Object]
|
|
52
|
+
describe 'cancel_text_by_id test' do
|
|
53
|
+
it "should work" do
|
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# unit tests for create_text
|
|
59
|
+
# Create Text
|
|
60
|
+
# Create an outgoing text broadcast. <br><br> Returns a service object on success, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X POST -d \"{\\\"keyword_id\\\": \\\"dfe49537-a0a8-4f4a-98a1-e03df388af11\\\", \\\"send_immediately\\\": true,\\\"messages\\\": [\\\"Testing testing\\\"], \\\"contacts\\\": [{\\\"phone\\\":\\\"1116551235\\\"},{\\\"phone\\\":\\\"1116551234\\\"}]}\" https://$API_KEY@api.dialmycalls.com/2.0/service/text ```
|
|
61
|
+
# @param create_text_parameters Request body
|
|
62
|
+
# @param [Hash] opts the optional parameters
|
|
63
|
+
# @return [Object]
|
|
64
|
+
describe 'create_text test' do
|
|
65
|
+
it "should work" do
|
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# unit tests for delete_incoming_text_by_id
|
|
71
|
+
# Delete Incoming Text
|
|
72
|
+
# Delete a incoming text. <br><br> Returns the following if a valid identifier was provided, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X DELETE https://$API_KEY@api.dialmycalls.com/2.0/incoming/text/$TEXT_ID ```
|
|
73
|
+
# @param text_id TextId
|
|
74
|
+
# @param [Hash] opts the optional parameters
|
|
75
|
+
# @return [Object]
|
|
76
|
+
describe 'delete_incoming_text_by_id test' do
|
|
77
|
+
it "should work" do
|
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# unit tests for get_incoming_text_by_id
|
|
83
|
+
# Get Incoming Text
|
|
84
|
+
# Retrieve a text. <br><br> Returns a Incoming Text object if a valid identifier was provided, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X GET https://$API_KEY@api.dialmycalls.com/2.0/incoming/text/$TEXT_ID ```
|
|
85
|
+
# @param text_id TextId
|
|
86
|
+
# @param [Hash] opts the optional parameters
|
|
87
|
+
# @return [Object]
|
|
88
|
+
describe 'get_incoming_text_by_id test' do
|
|
89
|
+
it "should work" do
|
|
90
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# unit tests for get_incoming_texts
|
|
95
|
+
# List Incoming Texts
|
|
96
|
+
# Retrieve a list of texts. <br><br> Returns a list of Incoming Text objects. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X GET https://$API_KEY@api.dialmycalls.com/2.0/incoming/texts ```
|
|
97
|
+
# @param [Hash] opts the optional parameters
|
|
98
|
+
# @option opts [String] :range Range (ie \"records=201-300\") of texts requested
|
|
99
|
+
# @return [Object]
|
|
100
|
+
describe 'get_incoming_texts test' do
|
|
101
|
+
it "should work" do
|
|
102
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# unit tests for get_short_codes
|
|
107
|
+
# List Shortcodes
|
|
108
|
+
# Retrieve a list of shortcodes. <br><br> Returns a list of shortcode objects. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X GET https://$API_KEY@api.dialmycalls.com/2.0/shortcodes ```
|
|
109
|
+
# @param [Hash] opts the optional parameters
|
|
110
|
+
# @option opts [String] :range Range (ie \"records=201-300\") of shortcodes requested
|
|
111
|
+
# @return [Object]
|
|
112
|
+
describe 'get_short_codes test' do
|
|
113
|
+
it "should work" do
|
|
114
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# unit tests for get_text_by_id
|
|
119
|
+
# Get Text
|
|
120
|
+
# Retrieve a text. <br><br> Returns a service object if a valid identifier was provided, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X GET https://$API_KEY@api.dialmycalls.com/2.0/service/text/$TEXT_ID ```
|
|
121
|
+
# @param text_id TextId
|
|
122
|
+
# @param [Hash] opts the optional parameters
|
|
123
|
+
# @return [Object]
|
|
124
|
+
describe 'get_text_by_id test' do
|
|
125
|
+
it "should work" do
|
|
126
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# unit tests for get_text_recipients_by_text_id
|
|
131
|
+
# Get Text Recipients
|
|
132
|
+
# Retrieve a list of a text's recipients. <br><br> Returns a list of text recipient objects if a valid identifier was provided, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X GET https://$API_KEY@api.dialmycalls.com/2.0/service/text/$TEXT_ID/recipients ```
|
|
133
|
+
# @param text_id TextId
|
|
134
|
+
# @param [Hash] opts the optional parameters
|
|
135
|
+
# @option opts [String] :range Range (ie \"records=201-300\") of recipients requested
|
|
136
|
+
# @return [Object]
|
|
137
|
+
describe 'get_text_recipients_by_text_id test' do
|
|
138
|
+
it "should work" do
|
|
139
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# unit tests for get_texts
|
|
144
|
+
# List Texts
|
|
145
|
+
# Retrieve a list of texts. <br><br> Returns a list of service objects. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X GET https://$API_KEY@api.dialmycalls.com/2.0/service/texts ```
|
|
146
|
+
# @param [Hash] opts the optional parameters
|
|
147
|
+
# @option opts [String] :range Range (ie \"records=201-300\") of texts requested
|
|
148
|
+
# @return [Object]
|
|
149
|
+
describe 'get_texts test' do
|
|
150
|
+
it "should work" do
|
|
151
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
end
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#DialMyCalls API
|
|
3
|
+
|
|
4
|
+
#The DialMyCalls API
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0.1
|
|
7
|
+
Contact: support@dialmycalls.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
|
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
you may not use this file except in compliance with the License.
|
|
12
|
+
You may obtain a copy of the License at
|
|
13
|
+
|
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
|
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
See the License for the specific language governing permissions and
|
|
20
|
+
limitations under the License.
|
|
21
|
+
|
|
22
|
+
=end
|
|
23
|
+
|
|
24
|
+
require 'spec_helper'
|
|
25
|
+
require 'json'
|
|
26
|
+
|
|
27
|
+
# Unit tests for DialMyCalls::VanityNumbersApi
|
|
28
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
29
|
+
# Please update as you see appropriate
|
|
30
|
+
describe 'VanityNumbersApi' do
|
|
31
|
+
before do
|
|
32
|
+
# run before each test
|
|
33
|
+
@instance = DialMyCalls::VanityNumbersApi.new
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
after do
|
|
37
|
+
# run after each test
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
describe 'test an instance of VanityNumbersApi' do
|
|
41
|
+
it 'should create an instact of VanityNumbersApi' do
|
|
42
|
+
expect(@instance).to be_instance_of(DialMyCalls::VanityNumbersApi)
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# unit tests for delete_vanity_number_by_id
|
|
47
|
+
# Delete Vanity Number
|
|
48
|
+
# Delete a vanity number. <br><br> Returns the following if a valid identifier was provided, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X DELETE https://$API_KEY@api.dialmycalls.com/2.0/keyword/$VANITYNUMBER_ID ```
|
|
49
|
+
# @param vanity_number_id VanityNumberId
|
|
50
|
+
# @param [Hash] opts the optional parameters
|
|
51
|
+
# @return [Object]
|
|
52
|
+
describe 'delete_vanity_number_by_id test' do
|
|
53
|
+
it "should work" do
|
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# unit tests for get_vanity_number_by_id
|
|
59
|
+
# Get Vanity Number
|
|
60
|
+
# Retrieve a vanity number. <br><br> Returns a vanitynumber object if a valid identifier was provided, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X GET https://$API_KEY@api.dialmycalls.com/2.0/vanitynumber/$VANITYNUMBER_ID ```
|
|
61
|
+
# @param vanity_number_id VanityNumberId
|
|
62
|
+
# @param [Hash] opts the optional parameters
|
|
63
|
+
# @return [Object]
|
|
64
|
+
describe 'get_vanity_number_by_id test' do
|
|
65
|
+
it "should work" do
|
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# unit tests for get_vanity_numbers
|
|
71
|
+
# List Vanity Numbers
|
|
72
|
+
# Retrieve a list of vanity numbers. <br><br> Returns a list of vanitynumber objects. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X GET https://$API_KEY@api.dialmycalls.com/2.0/vanitynumbers ```
|
|
73
|
+
# @param [Hash] opts the optional parameters
|
|
74
|
+
# @option opts [String] :range Range (ie \"records=201-300\") of vanitynumbers requested
|
|
75
|
+
# @return [Object]
|
|
76
|
+
describe 'get_vanity_numbers test' do
|
|
77
|
+
it "should work" do
|
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# unit tests for update_vanity_number_by_id
|
|
83
|
+
# Update Vanity Number
|
|
84
|
+
# Update a vanity number. <br><br> Returns a vanitynumber object if a valid identifier was provided, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X PUT -d \"{\\\"ptt_number_id\\\":\\\"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee\\\",\\\"call_options\\\":{\\\"voicemail\\\":true}}\" https://$API_KEY@api.dialmycalls.com/2.0/vanitynumber/$VANITYNUMBER_ID ```
|
|
85
|
+
# @param update_vanity_number_by_id_parameters Request body
|
|
86
|
+
# @param vanity_number_id VanityNumberId
|
|
87
|
+
# @param [Hash] opts the optional parameters
|
|
88
|
+
# @return [Object]
|
|
89
|
+
describe 'update_vanity_number_by_id test' do
|
|
90
|
+
it "should work" do
|
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
end
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#DialMyCalls API
|
|
3
|
+
|
|
4
|
+
#The DialMyCalls API
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0.1
|
|
7
|
+
Contact: support@dialmycalls.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
|
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
you may not use this file except in compliance with the License.
|
|
12
|
+
You may obtain a copy of the License at
|
|
13
|
+
|
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
|
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
See the License for the specific language governing permissions and
|
|
20
|
+
limitations under the License.
|
|
21
|
+
|
|
22
|
+
=end
|
|
23
|
+
|
|
24
|
+
require 'spec_helper'
|
|
25
|
+
|
|
26
|
+
describe DialMyCalls::ApiClient do
|
|
27
|
+
context 'initialization' do
|
|
28
|
+
context 'URL stuff' do
|
|
29
|
+
context 'host' do
|
|
30
|
+
it 'removes http from host' do
|
|
31
|
+
DialMyCalls.configure { |c| c.host = 'http://example.com' }
|
|
32
|
+
expect(DialMyCalls::Configuration.default.host).to eq('example.com')
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
it 'removes https from host' do
|
|
36
|
+
DialMyCalls.configure { |c| c.host = 'https://wookiee.com' }
|
|
37
|
+
expect(DialMyCalls::ApiClient.default.config.host).to eq('wookiee.com')
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
it 'removes trailing path from host' do
|
|
41
|
+
DialMyCalls.configure { |c| c.host = 'hobo.com/v4' }
|
|
42
|
+
expect(DialMyCalls::Configuration.default.host).to eq('hobo.com')
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
context 'base_path' do
|
|
47
|
+
it "prepends a slash to base_path" do
|
|
48
|
+
DialMyCalls.configure { |c| c.base_path = 'v4/dog' }
|
|
49
|
+
expect(DialMyCalls::Configuration.default.base_path).to eq('/v4/dog')
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
it "doesn't prepend a slash if one is already there" do
|
|
53
|
+
DialMyCalls.configure { |c| c.base_path = '/v4/dog' }
|
|
54
|
+
expect(DialMyCalls::Configuration.default.base_path).to eq('/v4/dog')
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
it "ends up as a blank string if nil" do
|
|
58
|
+
DialMyCalls.configure { |c| c.base_path = nil }
|
|
59
|
+
expect(DialMyCalls::Configuration.default.base_path).to eq('')
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
describe "params_encoding in #build_request" do
|
|
66
|
+
let(:config) { DialMyCalls::Configuration.new }
|
|
67
|
+
let(:api_client) { DialMyCalls::ApiClient.new(config) }
|
|
68
|
+
|
|
69
|
+
it "defaults to nil" do
|
|
70
|
+
expect(DialMyCalls::Configuration.default.params_encoding).to eq(nil)
|
|
71
|
+
expect(config.params_encoding).to eq(nil)
|
|
72
|
+
|
|
73
|
+
request = api_client.build_request(:get, '/test')
|
|
74
|
+
expect(request.options[:params_encoding]).to eq(nil)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
it "can be customized" do
|
|
78
|
+
config.params_encoding = :multi
|
|
79
|
+
request = api_client.build_request(:get, '/test')
|
|
80
|
+
expect(request.options[:params_encoding]).to eq(:multi)
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
describe "timeout in #build_request" do
|
|
85
|
+
let(:config) { DialMyCalls::Configuration.new }
|
|
86
|
+
let(:api_client) { DialMyCalls::ApiClient.new(config) }
|
|
87
|
+
|
|
88
|
+
it "defaults to 0" do
|
|
89
|
+
expect(DialMyCalls::Configuration.default.timeout).to eq(0)
|
|
90
|
+
expect(config.timeout).to eq(0)
|
|
91
|
+
|
|
92
|
+
request = api_client.build_request(:get, '/test')
|
|
93
|
+
expect(request.options[:timeout]).to eq(0)
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
it "can be customized" do
|
|
97
|
+
config.timeout = 100
|
|
98
|
+
request = api_client.build_request(:get, '/test')
|
|
99
|
+
expect(request.options[:timeout]).to eq(100)
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
describe "#deserialize" do
|
|
104
|
+
it "handles Array<Integer>" do
|
|
105
|
+
api_client = DialMyCalls::ApiClient.new
|
|
106
|
+
headers = {'Content-Type' => 'application/json'}
|
|
107
|
+
response = double('response', headers: headers, body: '[12, 34]')
|
|
108
|
+
data = api_client.deserialize(response, 'Array<Integer>')
|
|
109
|
+
expect(data).to be_instance_of(Array)
|
|
110
|
+
expect(data).to eq([12, 34])
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
it "handles Array<Array<Integer>>" do
|
|
114
|
+
api_client = DialMyCalls::ApiClient.new
|
|
115
|
+
headers = {'Content-Type' => 'application/json'}
|
|
116
|
+
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
|
117
|
+
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
|
118
|
+
expect(data).to be_instance_of(Array)
|
|
119
|
+
expect(data).to eq([[12, 34], [56]])
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
it "handles Hash<String, String>" do
|
|
123
|
+
api_client = DialMyCalls::ApiClient.new
|
|
124
|
+
headers = {'Content-Type' => 'application/json'}
|
|
125
|
+
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
|
126
|
+
data = api_client.deserialize(response, 'Hash<String, String>')
|
|
127
|
+
expect(data).to be_instance_of(Hash)
|
|
128
|
+
expect(data).to eq({:message => 'Hello'})
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
describe "#object_to_hash" do
|
|
133
|
+
it "ignores nils and includes empty arrays" do
|
|
134
|
+
# uncomment below to test object_to_hash for model
|
|
135
|
+
#api_client = DialMyCalls::ApiClient.new
|
|
136
|
+
#_model = DialMyCalls::ModelName.new
|
|
137
|
+
# update the model attribute below
|
|
138
|
+
#_model.id = 1
|
|
139
|
+
# update the expected value (hash) below
|
|
140
|
+
#expected = {id: 1, name: '', tags: []}
|
|
141
|
+
#expect(api_client.object_to_hash(_model)).to eq(expected)
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
describe "#build_collection_param" do
|
|
146
|
+
let(:param) { ['aa', 'bb', 'cc'] }
|
|
147
|
+
let(:api_client) { DialMyCalls::ApiClient.new }
|
|
148
|
+
|
|
149
|
+
it "works for csv" do
|
|
150
|
+
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
it "works for ssv" do
|
|
154
|
+
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
it "works for tsv" do
|
|
158
|
+
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
it "works for pipes" do
|
|
162
|
+
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
it "works for multi" do
|
|
166
|
+
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
it "fails for invalid collection format" do
|
|
170
|
+
expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
describe "#json_mime?" do
|
|
175
|
+
let(:api_client) { DialMyCalls::ApiClient.new }
|
|
176
|
+
|
|
177
|
+
it "works" do
|
|
178
|
+
expect(api_client.json_mime?(nil)).to eq false
|
|
179
|
+
expect(api_client.json_mime?('')).to eq false
|
|
180
|
+
|
|
181
|
+
expect(api_client.json_mime?('application/json')).to eq true
|
|
182
|
+
expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
|
|
183
|
+
expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
|
|
184
|
+
|
|
185
|
+
expect(api_client.json_mime?('application/xml')).to eq false
|
|
186
|
+
expect(api_client.json_mime?('text/plain')).to eq false
|
|
187
|
+
expect(api_client.json_mime?('application/jsonp')).to eq false
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
describe "#select_header_accept" do
|
|
192
|
+
let(:api_client) { DialMyCalls::ApiClient.new }
|
|
193
|
+
|
|
194
|
+
it "works" do
|
|
195
|
+
expect(api_client.select_header_accept(nil)).to be_nil
|
|
196
|
+
expect(api_client.select_header_accept([])).to be_nil
|
|
197
|
+
|
|
198
|
+
expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
|
|
199
|
+
expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
|
200
|
+
expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
|
201
|
+
|
|
202
|
+
expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
|
|
203
|
+
expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
describe "#select_header_content_type" do
|
|
208
|
+
let(:api_client) { DialMyCalls::ApiClient.new }
|
|
209
|
+
|
|
210
|
+
it "works" do
|
|
211
|
+
expect(api_client.select_header_content_type(nil)).to eq('application/json')
|
|
212
|
+
expect(api_client.select_header_content_type([])).to eq('application/json')
|
|
213
|
+
|
|
214
|
+
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
|
215
|
+
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
|
216
|
+
expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
|
217
|
+
expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
|
|
218
|
+
expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
|
|
219
|
+
end
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
describe "#sanitize_filename" do
|
|
223
|
+
let(:api_client) { DialMyCalls::ApiClient.new }
|
|
224
|
+
|
|
225
|
+
it "works" do
|
|
226
|
+
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
|
227
|
+
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
|
228
|
+
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
|
229
|
+
expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
|
|
230
|
+
expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
|
|
231
|
+
expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
|
|
232
|
+
expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
|
|
233
|
+
expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
|
|
234
|
+
expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
|
|
235
|
+
end
|
|
236
|
+
end
|
|
237
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#DialMyCalls API
|
|
3
|
+
|
|
4
|
+
#The DialMyCalls API
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0.1
|
|
7
|
+
Contact: support@dialmycalls.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
|
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
you may not use this file except in compliance with the License.
|
|
12
|
+
You may obtain a copy of the License at
|
|
13
|
+
|
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
|
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
See the License for the specific language governing permissions and
|
|
20
|
+
limitations under the License.
|
|
21
|
+
|
|
22
|
+
=end
|
|
23
|
+
|
|
24
|
+
require 'spec_helper'
|
|
25
|
+
|
|
26
|
+
describe DialMyCalls::Configuration do
|
|
27
|
+
let(:config) { DialMyCalls::Configuration.default }
|
|
28
|
+
|
|
29
|
+
before(:each) do
|
|
30
|
+
# uncomment below to setup host and base_path
|
|
31
|
+
#require 'URI'
|
|
32
|
+
#uri = URI.parse("https://api.dialmycalls.com/2.0")
|
|
33
|
+
#DialMyCalls.configure do |c|
|
|
34
|
+
# c.host = uri.host
|
|
35
|
+
# c.base_path = uri.path
|
|
36
|
+
#end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
describe '#base_url' do
|
|
40
|
+
it 'should have the default value' do
|
|
41
|
+
# uncomment below to test default value of the base path
|
|
42
|
+
#expect(config.base_url).to eq("https://api.dialmycalls.com/2.0")
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
it 'should remove trailing slashes' do
|
|
46
|
+
[nil, '', '/', '//'].each do |base_path|
|
|
47
|
+
config.base_path = base_path
|
|
48
|
+
# uncomment below to test trailing slashes
|
|
49
|
+
#expect(config.base_url).to eq("https://api.dialmycalls.com/2.0")
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#DialMyCalls API
|
|
3
|
+
|
|
4
|
+
#The DialMyCalls API
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0.1
|
|
7
|
+
Contact: support@dialmycalls.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
|
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
you may not use this file except in compliance with the License.
|
|
12
|
+
You may obtain a copy of the License at
|
|
13
|
+
|
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
|
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
See the License for the specific language governing permissions and
|
|
20
|
+
limitations under the License.
|
|
21
|
+
|
|
22
|
+
=end
|
|
23
|
+
|
|
24
|
+
require 'spec_helper'
|
|
25
|
+
require 'json'
|
|
26
|
+
require 'date'
|
|
27
|
+
|
|
28
|
+
# Unit tests for DialMyCalls::Accessaccount
|
|
29
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
30
|
+
# Please update as you see appropriate
|
|
31
|
+
describe 'Accessaccount' do
|
|
32
|
+
before do
|
|
33
|
+
# run before each test
|
|
34
|
+
@instance = DialMyCalls::Accessaccount.new
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
after do
|
|
38
|
+
# run after each test
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test an instance of Accessaccount' do
|
|
42
|
+
it 'should create an instact of Accessaccount' do
|
|
43
|
+
expect(@instance).to be_instance_of(DialMyCalls::Accessaccount)
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
describe 'test attribute "id"' do
|
|
47
|
+
it 'should work' do
|
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
describe 'test attribute "name"' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
describe 'test attribute "email"' do
|
|
59
|
+
it 'should work' do
|
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
describe 'test attribute "created_at"' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
describe 'test attribute "updated_at"' do
|
|
71
|
+
it 'should work' do
|
|
72
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
end
|
|
77
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#DialMyCalls API
|
|
3
|
+
|
|
4
|
+
#The DialMyCalls API
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0.1
|
|
7
|
+
Contact: support@dialmycalls.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
|
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
you may not use this file except in compliance with the License.
|
|
12
|
+
You may obtain a copy of the License at
|
|
13
|
+
|
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
|
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
See the License for the specific language governing permissions and
|
|
20
|
+
limitations under the License.
|
|
21
|
+
|
|
22
|
+
=end
|
|
23
|
+
|
|
24
|
+
require 'spec_helper'
|
|
25
|
+
require 'json'
|
|
26
|
+
require 'date'
|
|
27
|
+
|
|
28
|
+
# Unit tests for DialMyCalls::Account
|
|
29
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
30
|
+
# Please update as you see appropriate
|
|
31
|
+
describe 'Account' do
|
|
32
|
+
before do
|
|
33
|
+
# run before each test
|
|
34
|
+
@instance = DialMyCalls::Account.new
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
after do
|
|
38
|
+
# run after each test
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test an instance of Account' do
|
|
42
|
+
it 'should create an instact of Account' do
|
|
43
|
+
expect(@instance).to be_instance_of(DialMyCalls::Account)
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
describe 'test attribute "credits_available"' do
|
|
47
|
+
it 'should work' do
|
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
describe 'test attribute "created_at"' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
end
|
|
59
|
+
|