freeclimb 2.2.0 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (293) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +29 -1
  3. data/Gemfile +4 -2
  4. data/Gemfile.lock +41 -20
  5. data/README.md +35 -33
  6. data/docs/AccountRequest.md +9 -8
  7. data/docs/AccountResult.md +27 -26
  8. data/docs/AccountResultAllOf.md +19 -18
  9. data/docs/AddToConference.md +25 -24
  10. data/docs/AddToConferenceAllOf.md +25 -24
  11. data/docs/ApplicationList.md +21 -20
  12. data/docs/ApplicationListAllOf.md +7 -6
  13. data/docs/ApplicationRequest.md +19 -18
  14. data/docs/ApplicationResult.md +31 -30
  15. data/docs/ApplicationResultAllOf.md +23 -22
  16. data/docs/AvailableNumber.md +17 -16
  17. data/docs/AvailableNumberList.md +21 -20
  18. data/docs/AvailableNumberListAllOf.md +7 -6
  19. data/docs/BuyIncomingNumberRequest.md +11 -10
  20. data/docs/CallList.md +21 -20
  21. data/docs/CallListAllOf.md +7 -6
  22. data/docs/CallResult.md +43 -42
  23. data/docs/CallResultAllOf.md +35 -34
  24. data/docs/Capabilities.md +26 -0
  25. data/docs/ConferenceList.md +21 -20
  26. data/docs/ConferenceListAllOf.md +7 -6
  27. data/docs/ConferenceParticipantList.md +21 -20
  28. data/docs/ConferenceParticipantListAllOf.md +7 -6
  29. data/docs/ConferenceParticipantResult.md +25 -24
  30. data/docs/ConferenceParticipantResultAllOf.md +17 -16
  31. data/docs/ConferenceResult.md +33 -32
  32. data/docs/ConferenceResultAllOf.md +25 -24
  33. data/docs/CreateConference.md +17 -16
  34. data/docs/CreateConferenceAllOf.md +17 -16
  35. data/docs/CreateConferenceRequest.md +15 -14
  36. data/docs/DefaultApi.md +1672 -580
  37. data/docs/Dequeue.md +3 -4
  38. data/docs/Enqueue.md +13 -12
  39. data/docs/EnqueueAllOf.md +13 -12
  40. data/docs/FilterLogsRequest.md +7 -6
  41. data/docs/GetDigits.md +23 -22
  42. data/docs/GetDigitsAllOf.md +23 -22
  43. data/docs/GetSpeech.md +31 -30
  44. data/docs/GetSpeechAllOf.md +31 -30
  45. data/docs/Hangup.md +7 -6
  46. data/docs/HangupAllOf.md +7 -6
  47. data/docs/IncomingNumberList.md +21 -20
  48. data/docs/IncomingNumberListAllOf.md +7 -6
  49. data/docs/IncomingNumberRequest.md +9 -8
  50. data/docs/IncomingNumberResult.md +33 -30
  51. data/docs/IncomingNumberResultAllOf.md +25 -22
  52. data/docs/LogList.md +21 -20
  53. data/docs/LogListAllOf.md +7 -6
  54. data/docs/LogResult.md +19 -18
  55. data/docs/MakeCallRequest.md +25 -24
  56. data/docs/MessageRequest.md +23 -22
  57. data/docs/MessageRequestAllOf.md +15 -14
  58. data/docs/MessageResult.md +29 -28
  59. data/docs/MessageResultAllOf.md +21 -20
  60. data/docs/MessagesList.md +21 -20
  61. data/docs/MessagesListAllOf.md +7 -6
  62. data/docs/MutableResourceModel.md +13 -12
  63. data/docs/OutDial.md +25 -24
  64. data/docs/OutDialAllOf.md +25 -24
  65. data/docs/PaginationModel.md +19 -18
  66. data/docs/Pause.md +7 -6
  67. data/docs/PauseAllOf.md +7 -6
  68. data/docs/PerclCommand.md +7 -6
  69. data/docs/PerclScript.md +7 -6
  70. data/docs/Play.md +13 -12
  71. data/docs/PlayAllOf.md +13 -12
  72. data/docs/PlayEarlyMedia.md +7 -6
  73. data/docs/PlayEarlyMediaAllOf.md +7 -6
  74. data/docs/QueueList.md +21 -20
  75. data/docs/QueueListAllOf.md +7 -6
  76. data/docs/QueueMember.md +15 -14
  77. data/docs/QueueMemberList.md +21 -20
  78. data/docs/QueueMemberListAllOf.md +7 -6
  79. data/docs/QueueRequest.md +9 -8
  80. data/docs/QueueResult.md +27 -26
  81. data/docs/QueueResultAllOf.md +19 -18
  82. data/docs/RecordUtterance.md +19 -18
  83. data/docs/RecordUtteranceAllOf.md +19 -18
  84. data/docs/RecordingList.md +21 -20
  85. data/docs/RecordingListAllOf.md +7 -6
  86. data/docs/RecordingResult.md +23 -22
  87. data/docs/RecordingResultAllOf.md +15 -14
  88. data/docs/Redirect.md +7 -6
  89. data/docs/RedirectAllOf.md +7 -6
  90. data/docs/Reject.md +7 -6
  91. data/docs/RejectAllOf.md +7 -6
  92. data/docs/RemoveFromConference.md +7 -6
  93. data/docs/RemoveFromConferenceAllOf.md +7 -6
  94. data/docs/Say.md +15 -14
  95. data/docs/SayAllOf.md +15 -14
  96. data/docs/SendDigits.md +11 -10
  97. data/docs/SendDigitsAllOf.md +11 -10
  98. data/docs/SetListen.md +9 -8
  99. data/docs/SetListenAllOf.md +9 -8
  100. data/docs/SetTalk.md +9 -8
  101. data/docs/SetTalkAllOf.md +9 -8
  102. data/docs/Sms.md +13 -12
  103. data/docs/SmsAllOf.md +13 -12
  104. data/docs/StartRecordCall.md +3 -4
  105. data/docs/TerminateConference.md +7 -6
  106. data/docs/TerminateConferenceAllOf.md +7 -6
  107. data/docs/UpdateCallRequest.md +7 -6
  108. data/docs/UpdateConferenceParticipantRequest.md +9 -8
  109. data/docs/UpdateConferenceRequest.md +11 -10
  110. data/freeclimb.gemspec +2 -3
  111. data/lib/freeclimb/api/default_api.rb +439 -257
  112. data/lib/freeclimb/api_client.rb +54 -50
  113. data/lib/freeclimb/api_error.rb +1 -1
  114. data/lib/freeclimb/configuration.rb +40 -10
  115. data/lib/freeclimb/models/account_request.rb +19 -7
  116. data/lib/freeclimb/models/account_result.rb +20 -8
  117. data/lib/freeclimb/models/account_result_all_of.rb +20 -8
  118. data/lib/freeclimb/models/add_to_conference.rb +19 -12
  119. data/lib/freeclimb/models/add_to_conference_all_of.rb +19 -12
  120. data/lib/freeclimb/models/application_list.rb +19 -7
  121. data/lib/freeclimb/models/application_list_all_of.rb +19 -7
  122. data/lib/freeclimb/models/application_request.rb +19 -7
  123. data/lib/freeclimb/models/application_result.rb +19 -7
  124. data/lib/freeclimb/models/application_result_all_of.rb +19 -7
  125. data/lib/freeclimb/models/available_number.rb +29 -18
  126. data/lib/freeclimb/models/available_number_list.rb +19 -7
  127. data/lib/freeclimb/models/available_number_list_all_of.rb +19 -7
  128. data/lib/freeclimb/models/buy_incoming_number_request.rb +19 -7
  129. data/lib/freeclimb/models/call_list.rb +19 -7
  130. data/lib/freeclimb/models/call_list_all_of.rb +19 -7
  131. data/lib/freeclimb/models/call_result.rb +19 -7
  132. data/lib/freeclimb/models/call_result_all_of.rb +19 -7
  133. data/lib/freeclimb/models/capabilities.rb +285 -0
  134. data/lib/freeclimb/models/conference_list.rb +19 -7
  135. data/lib/freeclimb/models/conference_list_all_of.rb +19 -7
  136. data/lib/freeclimb/models/conference_participant_list.rb +19 -7
  137. data/lib/freeclimb/models/conference_participant_list_all_of.rb +19 -7
  138. data/lib/freeclimb/models/conference_participant_result.rb +19 -7
  139. data/lib/freeclimb/models/conference_participant_result_all_of.rb +19 -7
  140. data/lib/freeclimb/models/conference_result.rb +19 -7
  141. data/lib/freeclimb/models/conference_result_all_of.rb +19 -7
  142. data/lib/freeclimb/models/create_conference.rb +19 -7
  143. data/lib/freeclimb/models/create_conference_all_of.rb +19 -7
  144. data/lib/freeclimb/models/create_conference_request.rb +19 -7
  145. data/lib/freeclimb/models/dequeue.rb +19 -7
  146. data/lib/freeclimb/models/enqueue.rb +19 -7
  147. data/lib/freeclimb/models/enqueue_all_of.rb +19 -7
  148. data/lib/freeclimb/models/filter_logs_request.rb +19 -7
  149. data/lib/freeclimb/models/get_digits.rb +19 -7
  150. data/lib/freeclimb/models/get_digits_all_of.rb +19 -7
  151. data/lib/freeclimb/models/get_speech.rb +19 -7
  152. data/lib/freeclimb/models/get_speech_all_of.rb +19 -7
  153. data/lib/freeclimb/models/hangup.rb +19 -7
  154. data/lib/freeclimb/models/hangup_all_of.rb +19 -7
  155. data/lib/freeclimb/models/incoming_number_list.rb +19 -7
  156. data/lib/freeclimb/models/incoming_number_list_all_of.rb +19 -7
  157. data/lib/freeclimb/models/incoming_number_request.rb +19 -7
  158. data/lib/freeclimb/models/incoming_number_result.rb +29 -8
  159. data/lib/freeclimb/models/incoming_number_result_all_of.rb +29 -8
  160. data/lib/freeclimb/models/log_list.rb +19 -7
  161. data/lib/freeclimb/models/log_list_all_of.rb +19 -7
  162. data/lib/freeclimb/models/log_result.rb +19 -7
  163. data/lib/freeclimb/models/make_call_request.rb +19 -7
  164. data/lib/freeclimb/models/message_request.rb +19 -7
  165. data/lib/freeclimb/models/message_request_all_of.rb +19 -7
  166. data/lib/freeclimb/models/message_result.rb +19 -7
  167. data/lib/freeclimb/models/message_result_all_of.rb +19 -7
  168. data/lib/freeclimb/models/messages_list.rb +19 -7
  169. data/lib/freeclimb/models/messages_list_all_of.rb +19 -7
  170. data/lib/freeclimb/models/mutable_resource_model.rb +19 -7
  171. data/lib/freeclimb/models/out_dial.rb +19 -7
  172. data/lib/freeclimb/models/out_dial_all_of.rb +19 -7
  173. data/lib/freeclimb/models/pagination_model.rb +19 -7
  174. data/lib/freeclimb/models/pause.rb +19 -7
  175. data/lib/freeclimb/models/pause_all_of.rb +19 -7
  176. data/lib/freeclimb/models/percl_command.rb +20 -7
  177. data/lib/freeclimb/models/percl_script.rb +19 -7
  178. data/lib/freeclimb/models/play.rb +19 -7
  179. data/lib/freeclimb/models/play_all_of.rb +19 -7
  180. data/lib/freeclimb/models/play_early_media.rb +19 -7
  181. data/lib/freeclimb/models/play_early_media_all_of.rb +19 -7
  182. data/lib/freeclimb/models/queue_list.rb +19 -7
  183. data/lib/freeclimb/models/queue_list_all_of.rb +19 -7
  184. data/lib/freeclimb/models/queue_member.rb +19 -7
  185. data/lib/freeclimb/models/queue_member_list.rb +19 -7
  186. data/lib/freeclimb/models/queue_member_list_all_of.rb +19 -7
  187. data/lib/freeclimb/models/queue_request.rb +19 -7
  188. data/lib/freeclimb/models/queue_result.rb +19 -7
  189. data/lib/freeclimb/models/queue_result_all_of.rb +19 -7
  190. data/lib/freeclimb/models/record_utterance.rb +19 -7
  191. data/lib/freeclimb/models/record_utterance_all_of.rb +19 -7
  192. data/lib/freeclimb/models/recording_list.rb +19 -7
  193. data/lib/freeclimb/models/recording_list_all_of.rb +19 -7
  194. data/lib/freeclimb/models/recording_result.rb +19 -7
  195. data/lib/freeclimb/models/recording_result_all_of.rb +19 -7
  196. data/lib/freeclimb/models/redirect.rb +19 -7
  197. data/lib/freeclimb/models/redirect_all_of.rb +19 -7
  198. data/lib/freeclimb/models/reject.rb +19 -7
  199. data/lib/freeclimb/models/reject_all_of.rb +19 -7
  200. data/lib/freeclimb/models/remove_from_conference.rb +19 -7
  201. data/lib/freeclimb/models/remove_from_conference_all_of.rb +19 -7
  202. data/lib/freeclimb/models/say.rb +19 -7
  203. data/lib/freeclimb/models/say_all_of.rb +19 -7
  204. data/lib/freeclimb/models/send_digits.rb +19 -7
  205. data/lib/freeclimb/models/send_digits_all_of.rb +19 -7
  206. data/lib/freeclimb/models/set_listen.rb +19 -7
  207. data/lib/freeclimb/models/set_listen_all_of.rb +19 -7
  208. data/lib/freeclimb/models/set_talk.rb +19 -7
  209. data/lib/freeclimb/models/set_talk_all_of.rb +19 -7
  210. data/lib/freeclimb/models/sms.rb +19 -7
  211. data/lib/freeclimb/models/sms_all_of.rb +19 -7
  212. data/lib/freeclimb/models/start_record_call.rb +19 -7
  213. data/lib/freeclimb/models/terminate_conference.rb +19 -7
  214. data/lib/freeclimb/models/terminate_conference_all_of.rb +19 -7
  215. data/lib/freeclimb/models/update_call_request.rb +19 -7
  216. data/lib/freeclimb/models/update_conference_participant_request.rb +19 -7
  217. data/lib/freeclimb/models/update_conference_request.rb +19 -7
  218. data/lib/freeclimb/version.rb +2 -2
  219. data/lib/freeclimb.rb +46 -46
  220. data/spec/api/default_api_spec.rb +1092 -665
  221. data/spec/api_client_spec.rb +6 -6
  222. data/spec/configuration_spec.rb +12 -4
  223. data/spec/factories.rb +80 -0
  224. data/spec/models/account_request_spec.rb +19 -12
  225. data/spec/models/account_result_spec.rb +76 -11
  226. data/spec/models/add_to_conference_spec.rb +6 -13
  227. data/spec/models/application_list_spec.rb +54 -11
  228. data/spec/models/application_request_spec.rb +48 -11
  229. data/spec/models/application_result_spec.rb +84 -11
  230. data/spec/models/available_number_list_spec.rb +54 -12
  231. data/spec/models/available_number_spec.rb +42 -11
  232. data/spec/models/buy_incoming_number_request_spec.rb +24 -11
  233. data/spec/models/call_list_spec.rb +54 -12
  234. data/spec/models/call_result_spec.rb +123 -11
  235. data/spec/models/capabilities_spec.rb +58 -0
  236. data/spec/models/conference_list_spec.rb +54 -11
  237. data/spec/models/conference_participant_list_spec.rb +54 -11
  238. data/spec/models/conference_participant_result_spec.rb +66 -11
  239. data/spec/models/conference_result_spec.rb +98 -12
  240. data/spec/models/create_conference_request_spec.rb +40 -12
  241. data/spec/models/create_conference_spec.rb +6 -13
  242. data/spec/models/dequeue_spec.rb +6 -13
  243. data/spec/models/enqueue_spec.rb +6 -13
  244. data/spec/models/filter_logs_request_spec.rb +14 -13
  245. data/spec/models/get_digits_spec.rb +12 -13
  246. data/spec/models/get_speech_spec.rb +7 -14
  247. data/spec/models/hangup_spec.rb +4 -11
  248. data/spec/models/incoming_number_list_spec.rb +54 -12
  249. data/spec/models/incoming_number_request_spec.rb +19 -12
  250. data/spec/models/incoming_number_result_spec.rb +90 -12
  251. data/spec/models/log_list_spec.rb +54 -11
  252. data/spec/models/log_result_spec.rb +52 -11
  253. data/spec/models/make_call_request_spec.rb +66 -11
  254. data/spec/models/message_request_spec.rb +60 -12
  255. data/spec/models/message_result_spec.rb +82 -11
  256. data/spec/models/messages_list_spec.rb +54 -11
  257. data/spec/models/mutable_resource_model_spec.rb +30 -12
  258. data/spec/models/out_dial_spec.rb +12 -13
  259. data/spec/models/pagination_model_spec.rb +48 -11
  260. data/spec/models/pause_spec.rb +6 -13
  261. data/spec/models/percl_command_spec.rb +6 -13
  262. data/spec/models/percl_script_spec.rb +6 -13
  263. data/spec/models/play_early_media_spec.rb +6 -13
  264. data/spec/models/play_spec.rb +12 -13
  265. data/spec/models/queue_list_spec.rb +53 -11
  266. data/spec/models/queue_member_list_spec.rb +54 -11
  267. data/spec/models/queue_member_spec.rb +36 -12
  268. data/spec/models/queue_request_spec.rb +19 -13
  269. data/spec/models/queue_result_spec.rb +72 -11
  270. data/spec/models/record_utterance_spec.rb +12 -13
  271. data/spec/models/recording_list_spec.rb +54 -11
  272. data/spec/models/recording_result_spec.rb +60 -11
  273. data/spec/models/redirect_spec.rb +6 -13
  274. data/spec/models/reject_spec.rb +4 -11
  275. data/spec/models/remove_from_conference_spec.rb +6 -13
  276. data/spec/models/say_spec.rb +7 -14
  277. data/spec/models/send_digits_spec.rb +12 -13
  278. data/spec/models/set_listen_spec.rb +6 -13
  279. data/spec/models/set_talk_spec.rb +6 -13
  280. data/spec/models/sms_spec.rb +6 -13
  281. data/spec/models/start_record_call_spec.rb +6 -13
  282. data/spec/models/terminate_conference_spec.rb +6 -13
  283. data/spec/models/update_call_request_spec.rb +18 -13
  284. data/spec/models/update_conference_participant_request_spec.rb +19 -12
  285. data/spec/models/update_conference_request_spec.rb +28 -11
  286. data/spec/quickstart_spec.rb +10 -0
  287. data/spec/spec_helper.rb +57 -6
  288. metadata +20 -38
  289. data/freeclimb-2.0.3.gem +0 -0
  290. data/freeclimb-2.1.0.gem +0 -0
  291. data/freeclimb-2.1.1.gem +0 -0
  292. data/freeclimb-2.1.2.gem +0 -0
  293. data/spec/api/web_mocks.rb +0 -473
@@ -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.3.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -15,69 +15,15 @@ require 'cgi'
15
15
  module Freeclimb
16
16
  class DefaultApi
17
17
  attr_accessor :api_client
18
+ attr_accessor :account_id
18
19
 
19
20
  def initialize(api_client = ApiClient.default, account_id = nil)
20
21
  @api_client = api_client
21
- if account_id.nil?
22
+ @account_id = account_id
23
+ if @account_id.nil?
22
24
  @account_id = api_client.config.username
23
- else
24
- @account_id = account_id
25
25
  end
26
26
  end
27
- # Get an Account
28
- # @param [Hash] opts the optional parameters
29
- # @return [AccountResult]
30
- def get_an_account(opts = {})
31
- data, _status_code, _headers = get_an_account_with_http_info(opts)
32
- data
33
- end
34
-
35
- # Get an Account
36
- # @param [Hash] opts the optional parameters
37
- # @return [Array<(AccountResult, Integer, Hash)>] AccountResult data, response status code and response headers
38
- def get_an_account_with_http_info(opts = {})
39
- if @api_client.config.debugging
40
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_account ...'
41
- end
42
- # resource path
43
- local_var_path = '/Accounts/{accountId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
44
-
45
- # query parameters
46
- query_params = opts[:query_params] || {}
47
-
48
- # header parameters
49
- header_params = opts[:header_params] || {}
50
- # HTTP header 'Accept' (if needed)
51
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
52
-
53
- # form parameters
54
- form_params = opts[:form_params] || {}
55
-
56
- # http body (model)
57
- post_body = opts[:body]
58
-
59
- # return_type
60
- return_type = opts[:return_type] || 'AccountResult'
61
-
62
- # auth_names
63
- auth_names = opts[:auth_names] || ['fc']
64
-
65
- new_options = opts.merge(
66
- :header_params => header_params,
67
- :query_params => query_params,
68
- :form_params => form_params,
69
- :body => post_body,
70
- :auth_names => auth_names,
71
- :return_type => return_type
72
- )
73
-
74
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
75
- if @api_client.config.debugging
76
- @api_client.config.logger.debug "API called: DefaultApi#get_an_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
77
- end
78
- return data, status_code, headers
79
- end
80
-
81
27
  # Buy a Phone Number
82
28
  # @param buy_incoming_number_request [BuyIncomingNumberRequest] Incoming Number transaction details
83
29
  # @param [Hash] opts the optional parameters
@@ -95,12 +41,13 @@ module Freeclimb
95
41
  if @api_client.config.debugging
96
42
  @api_client.config.logger.debug 'Calling API: DefaultApi.buy_a_phone_number ...'
97
43
  end
44
+
98
45
  # verify the required parameter 'buy_incoming_number_request' is set
99
46
  if @api_client.config.client_side_validation && buy_incoming_number_request.nil?
100
47
  fail ArgumentError, "Missing the required parameter 'buy_incoming_number_request' when calling DefaultApi.buy_a_phone_number"
101
48
  end
102
49
  # resource path
103
- local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
50
+ local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
104
51
 
105
52
  # query parameters
106
53
  query_params = opts[:query_params] || {}
@@ -110,21 +57,25 @@ module Freeclimb
110
57
  # HTTP header 'Accept' (if needed)
111
58
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
112
59
  # HTTP header 'Content-Type'
113
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
60
+ content_type = @api_client.select_header_content_type(['application/json'])
61
+ if !content_type.nil?
62
+ header_params['Content-Type'] = content_type
63
+ end
114
64
 
115
65
  # form parameters
116
66
  form_params = opts[:form_params] || {}
117
67
 
118
68
  # http body (model)
119
- post_body = opts[:body] || @api_client.object_to_http_body(buy_incoming_number_request)
69
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(buy_incoming_number_request)
120
70
 
121
71
  # return_type
122
- return_type = opts[:return_type] || 'IncomingNumberResult'
72
+ return_type = opts[:debug_return_type] || 'IncomingNumberResult'
123
73
 
124
74
  # auth_names
125
- auth_names = opts[:auth_names] || ['fc']
75
+ auth_names = opts[:debug_auth_names] || ['fc']
126
76
 
127
77
  new_options = opts.merge(
78
+ :operation => :"DefaultApi.buy_a_phone_number",
128
79
  :header_params => header_params,
129
80
  :query_params => query_params,
130
81
  :form_params => form_params,
@@ -158,7 +109,7 @@ module Freeclimb
158
109
  @api_client.config.logger.debug 'Calling API: DefaultApi.create_a_conference ...'
159
110
  end
160
111
  # resource path
161
- local_var_path = '/Accounts/{accountId}/Conferences'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
112
+ local_var_path = '/Accounts/{accountId}/Conferences'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
162
113
 
163
114
  # query parameters
164
115
  query_params = opts[:query_params] || {}
@@ -168,21 +119,25 @@ module Freeclimb
168
119
  # HTTP header 'Accept' (if needed)
169
120
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
170
121
  # HTTP header 'Content-Type'
171
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
122
+ content_type = @api_client.select_header_content_type(['application/json'])
123
+ if !content_type.nil?
124
+ header_params['Content-Type'] = content_type
125
+ end
172
126
 
173
127
  # form parameters
174
128
  form_params = opts[:form_params] || {}
175
129
 
176
130
  # http body (model)
177
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'create_conference_request'])
131
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_conference_request'])
178
132
 
179
133
  # return_type
180
- return_type = opts[:return_type] || 'ConferenceResult'
134
+ return_type = opts[:debug_return_type] || 'ConferenceResult'
181
135
 
182
136
  # auth_names
183
- auth_names = opts[:auth_names] || ['fc']
137
+ auth_names = opts[:debug_auth_names] || ['fc']
184
138
 
185
139
  new_options = opts.merge(
140
+ :operation => :"DefaultApi.create_a_conference",
186
141
  :header_params => header_params,
187
142
  :query_params => query_params,
188
143
  :form_params => form_params,
@@ -216,7 +171,7 @@ module Freeclimb
216
171
  @api_client.config.logger.debug 'Calling API: DefaultApi.create_a_queue ...'
217
172
  end
218
173
  # resource path
219
- local_var_path = '/Accounts/{accountId}/Queues'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
174
+ local_var_path = '/Accounts/{accountId}/Queues'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
220
175
 
221
176
  # query parameters
222
177
  query_params = opts[:query_params] || {}
@@ -226,21 +181,25 @@ module Freeclimb
226
181
  # HTTP header 'Accept' (if needed)
227
182
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
228
183
  # HTTP header 'Content-Type'
229
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
184
+ content_type = @api_client.select_header_content_type(['application/json'])
185
+ if !content_type.nil?
186
+ header_params['Content-Type'] = content_type
187
+ end
230
188
 
231
189
  # form parameters
232
190
  form_params = opts[:form_params] || {}
233
191
 
234
192
  # http body (model)
235
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'queue_request'])
193
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'queue_request'])
236
194
 
237
195
  # return_type
238
- return_type = opts[:return_type] || 'QueueResult'
196
+ return_type = opts[:debug_return_type] || 'QueueResult'
239
197
 
240
198
  # auth_names
241
- auth_names = opts[:auth_names] || ['fc']
199
+ auth_names = opts[:debug_auth_names] || ['fc']
242
200
 
243
201
  new_options = opts.merge(
202
+ :operation => :"DefaultApi.create_a_queue",
244
203
  :header_params => header_params,
245
204
  :query_params => query_params,
246
205
  :form_params => form_params,
@@ -274,7 +233,7 @@ module Freeclimb
274
233
  @api_client.config.logger.debug 'Calling API: DefaultApi.create_an_application ...'
275
234
  end
276
235
  # resource path
277
- local_var_path = '/Accounts/{accountId}/Applications'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
236
+ local_var_path = '/Accounts/{accountId}/Applications'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
278
237
 
279
238
  # query parameters
280
239
  query_params = opts[:query_params] || {}
@@ -284,21 +243,25 @@ module Freeclimb
284
243
  # HTTP header 'Accept' (if needed)
285
244
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
286
245
  # HTTP header 'Content-Type'
287
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
246
+ content_type = @api_client.select_header_content_type(['application/json'])
247
+ if !content_type.nil?
248
+ header_params['Content-Type'] = content_type
249
+ end
288
250
 
289
251
  # form parameters
290
252
  form_params = opts[:form_params] || {}
291
253
 
292
254
  # http body (model)
293
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'application_request'])
255
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'application_request'])
294
256
 
295
257
  # return_type
296
- return_type = opts[:return_type] || 'ApplicationResult'
258
+ return_type = opts[:debug_return_type] || 'ApplicationResult'
297
259
 
298
260
  # auth_names
299
- auth_names = opts[:auth_names] || ['fc']
261
+ auth_names = opts[:debug_auth_names] || ['fc']
300
262
 
301
263
  new_options = opts.merge(
264
+ :operation => :"DefaultApi.create_an_application",
302
265
  :header_params => header_params,
303
266
  :query_params => query_params,
304
267
  :form_params => form_params,
@@ -331,12 +294,13 @@ module Freeclimb
331
294
  if @api_client.config.debugging
332
295
  @api_client.config.logger.debug 'Calling API: DefaultApi.delete_a_recording ...'
333
296
  end
297
+
334
298
  # verify the required parameter 'recording_id' is set
335
299
  if @api_client.config.client_side_validation && recording_id.nil?
336
300
  fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.delete_a_recording"
337
301
  end
338
302
  # resource path
339
- local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
303
+ local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
340
304
 
341
305
  # query parameters
342
306
  query_params = opts[:query_params] || {}
@@ -348,15 +312,16 @@ module Freeclimb
348
312
  form_params = opts[:form_params] || {}
349
313
 
350
314
  # http body (model)
351
- post_body = opts[:body]
315
+ post_body = opts[:debug_body]
352
316
 
353
317
  # return_type
354
- return_type = opts[:return_type]
318
+ return_type = opts[:debug_return_type]
355
319
 
356
320
  # auth_names
357
- auth_names = opts[:auth_names] || ['fc']
321
+ auth_names = opts[:debug_auth_names] || ['fc']
358
322
 
359
323
  new_options = opts.merge(
324
+ :operation => :"DefaultApi.delete_a_recording",
360
325
  :header_params => header_params,
361
326
  :query_params => query_params,
362
327
  :form_params => form_params,
@@ -389,12 +354,13 @@ module Freeclimb
389
354
  if @api_client.config.debugging
390
355
  @api_client.config.logger.debug 'Calling API: DefaultApi.delete_an_application ...'
391
356
  end
357
+
392
358
  # verify the required parameter 'application_id' is set
393
359
  if @api_client.config.client_side_validation && application_id.nil?
394
360
  fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.delete_an_application"
395
361
  end
396
362
  # resource path
397
- local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
363
+ local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
398
364
 
399
365
  # query parameters
400
366
  query_params = opts[:query_params] || {}
@@ -406,15 +372,16 @@ module Freeclimb
406
372
  form_params = opts[:form_params] || {}
407
373
 
408
374
  # http body (model)
409
- post_body = opts[:body]
375
+ post_body = opts[:debug_body]
410
376
 
411
377
  # return_type
412
- return_type = opts[:return_type]
378
+ return_type = opts[:debug_return_type]
413
379
 
414
380
  # auth_names
415
- auth_names = opts[:auth_names] || ['fc']
381
+ auth_names = opts[:debug_auth_names] || ['fc']
416
382
 
417
383
  new_options = opts.merge(
384
+ :operation => :"DefaultApi.delete_an_application",
418
385
  :header_params => header_params,
419
386
  :query_params => query_params,
420
387
  :form_params => form_params,
@@ -447,12 +414,13 @@ module Freeclimb
447
414
  if @api_client.config.debugging
448
415
  @api_client.config.logger.debug 'Calling API: DefaultApi.delete_an_incoming_number ...'
449
416
  end
417
+
450
418
  # verify the required parameter 'phone_number_id' is set
451
419
  if @api_client.config.client_side_validation && phone_number_id.nil?
452
420
  fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.delete_an_incoming_number"
453
421
  end
454
422
  # resource path
455
- local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
423
+ local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
456
424
 
457
425
  # query parameters
458
426
  query_params = opts[:query_params] || {}
@@ -464,15 +432,16 @@ module Freeclimb
464
432
  form_params = opts[:form_params] || {}
465
433
 
466
434
  # http body (model)
467
- post_body = opts[:body]
435
+ post_body = opts[:debug_body]
468
436
 
469
437
  # return_type
470
- return_type = opts[:return_type]
438
+ return_type = opts[:debug_return_type]
471
439
 
472
440
  # auth_names
473
- auth_names = opts[:auth_names] || ['fc']
441
+ auth_names = opts[:debug_auth_names] || ['fc']
474
442
 
475
443
  new_options = opts.merge(
444
+ :operation => :"DefaultApi.delete_an_incoming_number",
476
445
  :header_params => header_params,
477
446
  :query_params => query_params,
478
447
  :form_params => form_params,
@@ -507,16 +476,18 @@ module Freeclimb
507
476
  if @api_client.config.debugging
508
477
  @api_client.config.logger.debug 'Calling API: DefaultApi.dequeue_a_member ...'
509
478
  end
479
+
510
480
  # verify the required parameter 'queue_id' is set
511
481
  if @api_client.config.client_side_validation && queue_id.nil?
512
482
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.dequeue_a_member"
513
483
  end
484
+
514
485
  # verify the required parameter 'call_id' is set
515
486
  if @api_client.config.client_side_validation && call_id.nil?
516
487
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.dequeue_a_member"
517
488
  end
518
489
  # resource path
519
- local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
490
+ local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
520
491
 
521
492
  # query parameters
522
493
  query_params = opts[:query_params] || {}
@@ -530,15 +501,16 @@ module Freeclimb
530
501
  form_params = opts[:form_params] || {}
531
502
 
532
503
  # http body (model)
533
- post_body = opts[:body]
504
+ post_body = opts[:debug_body]
534
505
 
535
506
  # return_type
536
- return_type = opts[:return_type] || 'QueueMember'
507
+ return_type = opts[:debug_return_type] || 'QueueMember'
537
508
 
538
509
  # auth_names
539
- auth_names = opts[:auth_names] || ['fc']
510
+ auth_names = opts[:debug_auth_names] || ['fc']
540
511
 
541
512
  new_options = opts.merge(
513
+ :operation => :"DefaultApi.dequeue_a_member",
542
514
  :header_params => header_params,
543
515
  :query_params => query_params,
544
516
  :form_params => form_params,
@@ -571,12 +543,13 @@ module Freeclimb
571
543
  if @api_client.config.debugging
572
544
  @api_client.config.logger.debug 'Calling API: DefaultApi.dequeue_head_member ...'
573
545
  end
546
+
574
547
  # verify the required parameter 'queue_id' is set
575
548
  if @api_client.config.client_side_validation && queue_id.nil?
576
549
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.dequeue_head_member"
577
550
  end
578
551
  # resource path
579
- local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/Front'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
552
+ local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/Front'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
580
553
 
581
554
  # query parameters
582
555
  query_params = opts[:query_params] || {}
@@ -590,15 +563,16 @@ module Freeclimb
590
563
  form_params = opts[:form_params] || {}
591
564
 
592
565
  # http body (model)
593
- post_body = opts[:body]
566
+ post_body = opts[:debug_body]
594
567
 
595
568
  # return_type
596
- return_type = opts[:return_type] || 'QueueMember'
569
+ return_type = opts[:debug_return_type] || 'QueueMember'
597
570
 
598
571
  # auth_names
599
- auth_names = opts[:auth_names] || ['fc']
572
+ auth_names = opts[:debug_auth_names] || ['fc']
600
573
 
601
574
  new_options = opts.merge(
575
+ :operation => :"DefaultApi.dequeue_head_member",
602
576
  :header_params => header_params,
603
577
  :query_params => query_params,
604
578
  :form_params => form_params,
@@ -631,12 +605,13 @@ module Freeclimb
631
605
  if @api_client.config.debugging
632
606
  @api_client.config.logger.debug 'Calling API: DefaultApi.download_a_recording_file ...'
633
607
  end
608
+
634
609
  # verify the required parameter 'recording_id' is set
635
610
  if @api_client.config.client_side_validation && recording_id.nil?
636
611
  fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.download_a_recording_file"
637
612
  end
638
613
  # resource path
639
- local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}/Download'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
614
+ local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}/Download'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
640
615
 
641
616
  # query parameters
642
617
  query_params = opts[:query_params] || {}
@@ -650,15 +625,16 @@ module Freeclimb
650
625
  form_params = opts[:form_params] || {}
651
626
 
652
627
  # http body (model)
653
- post_body = opts[:body]
628
+ post_body = opts[:debug_body]
654
629
 
655
630
  # return_type
656
- return_type = opts[:return_type] || 'File'
631
+ return_type = opts[:debug_return_type] || 'File'
657
632
 
658
633
  # auth_names
659
- auth_names = opts[:auth_names] || ['fc']
634
+ auth_names = opts[:debug_auth_names] || ['fc']
660
635
 
661
636
  new_options = opts.merge(
637
+ :operation => :"DefaultApi.download_a_recording_file",
662
638
  :header_params => header_params,
663
639
  :query_params => query_params,
664
640
  :form_params => form_params,
@@ -691,12 +667,13 @@ module Freeclimb
691
667
  if @api_client.config.debugging
692
668
  @api_client.config.logger.debug 'Calling API: DefaultApi.filter_logs ...'
693
669
  end
670
+
694
671
  # verify the required parameter 'filter_logs_request' is set
695
672
  if @api_client.config.client_side_validation && filter_logs_request.nil?
696
673
  fail ArgumentError, "Missing the required parameter 'filter_logs_request' when calling DefaultApi.filter_logs"
697
674
  end
698
675
  # resource path
699
- local_var_path = '/Accounts/{accountId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
676
+ local_var_path = '/Accounts/{accountId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
700
677
 
701
678
  # query parameters
702
679
  query_params = opts[:query_params] || {}
@@ -706,21 +683,25 @@ module Freeclimb
706
683
  # HTTP header 'Accept' (if needed)
707
684
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
708
685
  # HTTP header 'Content-Type'
709
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
686
+ content_type = @api_client.select_header_content_type(['application/json'])
687
+ if !content_type.nil?
688
+ header_params['Content-Type'] = content_type
689
+ end
710
690
 
711
691
  # form parameters
712
692
  form_params = opts[:form_params] || {}
713
693
 
714
694
  # http body (model)
715
- post_body = opts[:body] || @api_client.object_to_http_body(filter_logs_request)
695
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(filter_logs_request)
716
696
 
717
697
  # return_type
718
- return_type = opts[:return_type] || 'LogList'
698
+ return_type = opts[:debug_return_type] || 'LogList'
719
699
 
720
700
  # auth_names
721
- auth_names = opts[:auth_names] || ['fc']
701
+ auth_names = opts[:debug_auth_names] || ['fc']
722
702
 
723
703
  new_options = opts.merge(
704
+ :operation => :"DefaultApi.filter_logs",
724
705
  :header_params => header_params,
725
706
  :query_params => query_params,
726
707
  :form_params => form_params,
@@ -753,12 +734,13 @@ module Freeclimb
753
734
  if @api_client.config.debugging
754
735
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_call ...'
755
736
  end
737
+
756
738
  # verify the required parameter 'call_id' is set
757
739
  if @api_client.config.client_side_validation && call_id.nil?
758
740
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.get_a_call"
759
741
  end
760
742
  # resource path
761
- local_var_path = '/Accounts/{accountId}/Calls/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
743
+ local_var_path = '/Accounts/{accountId}/Calls/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
762
744
 
763
745
  # query parameters
764
746
  query_params = opts[:query_params] || {}
@@ -772,15 +754,16 @@ module Freeclimb
772
754
  form_params = opts[:form_params] || {}
773
755
 
774
756
  # http body (model)
775
- post_body = opts[:body]
757
+ post_body = opts[:debug_body]
776
758
 
777
759
  # return_type
778
- return_type = opts[:return_type] || 'CallResult'
760
+ return_type = opts[:debug_return_type] || 'CallResult'
779
761
 
780
762
  # auth_names
781
- auth_names = opts[:auth_names] || ['fc']
763
+ auth_names = opts[:debug_auth_names] || ['fc']
782
764
 
783
765
  new_options = opts.merge(
766
+ :operation => :"DefaultApi.get_a_call",
784
767
  :header_params => header_params,
785
768
  :query_params => query_params,
786
769
  :form_params => form_params,
@@ -813,12 +796,13 @@ module Freeclimb
813
796
  if @api_client.config.debugging
814
797
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_conference ...'
815
798
  end
799
+
816
800
  # verify the required parameter 'conference_id' is set
817
801
  if @api_client.config.client_side_validation && conference_id.nil?
818
802
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.get_a_conference"
819
803
  end
820
804
  # resource path
821
- local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
805
+ local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
822
806
 
823
807
  # query parameters
824
808
  query_params = opts[:query_params] || {}
@@ -832,15 +816,16 @@ module Freeclimb
832
816
  form_params = opts[:form_params] || {}
833
817
 
834
818
  # http body (model)
835
- post_body = opts[:body]
819
+ post_body = opts[:debug_body]
836
820
 
837
821
  # return_type
838
- return_type = opts[:return_type] || 'ConferenceResult'
822
+ return_type = opts[:debug_return_type] || 'ConferenceResult'
839
823
 
840
824
  # auth_names
841
- auth_names = opts[:auth_names] || ['fc']
825
+ auth_names = opts[:debug_auth_names] || ['fc']
842
826
 
843
827
  new_options = opts.merge(
828
+ :operation => :"DefaultApi.get_a_conference",
844
829
  :header_params => header_params,
845
830
  :query_params => query_params,
846
831
  :form_params => form_params,
@@ -875,16 +860,18 @@ module Freeclimb
875
860
  if @api_client.config.debugging
876
861
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_member ...'
877
862
  end
863
+
878
864
  # verify the required parameter 'queue_id' is set
879
865
  if @api_client.config.client_side_validation && queue_id.nil?
880
866
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.get_a_member"
881
867
  end
868
+
882
869
  # verify the required parameter 'call_id' is set
883
870
  if @api_client.config.client_side_validation && call_id.nil?
884
871
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.get_a_member"
885
872
  end
886
873
  # resource path
887
- local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
874
+ local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
888
875
 
889
876
  # query parameters
890
877
  query_params = opts[:query_params] || {}
@@ -898,15 +885,16 @@ module Freeclimb
898
885
  form_params = opts[:form_params] || {}
899
886
 
900
887
  # http body (model)
901
- post_body = opts[:body]
888
+ post_body = opts[:debug_body]
902
889
 
903
890
  # return_type
904
- return_type = opts[:return_type] || 'QueueMember'
891
+ return_type = opts[:debug_return_type] || 'QueueMember'
905
892
 
906
893
  # auth_names
907
- auth_names = opts[:auth_names] || ['fc']
894
+ auth_names = opts[:debug_auth_names] || ['fc']
908
895
 
909
896
  new_options = opts.merge(
897
+ :operation => :"DefaultApi.get_a_member",
910
898
  :header_params => header_params,
911
899
  :query_params => query_params,
912
900
  :form_params => form_params,
@@ -941,16 +929,18 @@ module Freeclimb
941
929
  if @api_client.config.debugging
942
930
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_participant ...'
943
931
  end
932
+
944
933
  # verify the required parameter 'conference_id' is set
945
934
  if @api_client.config.client_side_validation && conference_id.nil?
946
935
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.get_a_participant"
947
936
  end
937
+
948
938
  # verify the required parameter 'call_id' is set
949
939
  if @api_client.config.client_side_validation && call_id.nil?
950
940
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.get_a_participant"
951
941
  end
952
942
  # resource path
953
- local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
943
+ local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
954
944
 
955
945
  # query parameters
956
946
  query_params = opts[:query_params] || {}
@@ -964,15 +954,16 @@ module Freeclimb
964
954
  form_params = opts[:form_params] || {}
965
955
 
966
956
  # http body (model)
967
- post_body = opts[:body]
957
+ post_body = opts[:debug_body]
968
958
 
969
959
  # return_type
970
- return_type = opts[:return_type] || 'ConferenceParticipantResult'
960
+ return_type = opts[:debug_return_type] || 'ConferenceParticipantResult'
971
961
 
972
962
  # auth_names
973
- auth_names = opts[:auth_names] || ['fc']
963
+ auth_names = opts[:debug_auth_names] || ['fc']
974
964
 
975
965
  new_options = opts.merge(
966
+ :operation => :"DefaultApi.get_a_participant",
976
967
  :header_params => header_params,
977
968
  :query_params => query_params,
978
969
  :form_params => form_params,
@@ -1005,12 +996,13 @@ module Freeclimb
1005
996
  if @api_client.config.debugging
1006
997
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_queue ...'
1007
998
  end
999
+
1008
1000
  # verify the required parameter 'queue_id' is set
1009
1001
  if @api_client.config.client_side_validation && queue_id.nil?
1010
1002
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.get_a_queue"
1011
1003
  end
1012
1004
  # resource path
1013
- local_var_path = '/Accounts/{accountId}/Queues/{queueId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
1005
+ local_var_path = '/Accounts/{accountId}/Queues/{queueId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
1014
1006
 
1015
1007
  # query parameters
1016
1008
  query_params = opts[:query_params] || {}
@@ -1024,15 +1016,16 @@ module Freeclimb
1024
1016
  form_params = opts[:form_params] || {}
1025
1017
 
1026
1018
  # http body (model)
1027
- post_body = opts[:body]
1019
+ post_body = opts[:debug_body]
1028
1020
 
1029
1021
  # return_type
1030
- return_type = opts[:return_type] || 'QueueResult'
1022
+ return_type = opts[:debug_return_type] || 'QueueResult'
1031
1023
 
1032
1024
  # auth_names
1033
- auth_names = opts[:auth_names] || ['fc']
1025
+ auth_names = opts[:debug_auth_names] || ['fc']
1034
1026
 
1035
1027
  new_options = opts.merge(
1028
+ :operation => :"DefaultApi.get_a_queue",
1036
1029
  :header_params => header_params,
1037
1030
  :query_params => query_params,
1038
1031
  :form_params => form_params,
@@ -1065,12 +1058,13 @@ module Freeclimb
1065
1058
  if @api_client.config.debugging
1066
1059
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_recording ...'
1067
1060
  end
1061
+
1068
1062
  # verify the required parameter 'recording_id' is set
1069
1063
  if @api_client.config.client_side_validation && recording_id.nil?
1070
1064
  fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.get_a_recording"
1071
1065
  end
1072
1066
  # resource path
1073
- local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
1067
+ local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
1074
1068
 
1075
1069
  # query parameters
1076
1070
  query_params = opts[:query_params] || {}
@@ -1084,15 +1078,16 @@ module Freeclimb
1084
1078
  form_params = opts[:form_params] || {}
1085
1079
 
1086
1080
  # http body (model)
1087
- post_body = opts[:body]
1081
+ post_body = opts[:debug_body]
1088
1082
 
1089
1083
  # return_type
1090
- return_type = opts[:return_type] || 'RecordingResult'
1084
+ return_type = opts[:debug_return_type] || 'RecordingResult'
1091
1085
 
1092
1086
  # auth_names
1093
- auth_names = opts[:auth_names] || ['fc']
1087
+ auth_names = opts[:debug_auth_names] || ['fc']
1094
1088
 
1095
1089
  new_options = opts.merge(
1090
+ :operation => :"DefaultApi.get_a_recording",
1096
1091
  :header_params => header_params,
1097
1092
  :query_params => query_params,
1098
1093
  :form_params => form_params,
@@ -1108,6 +1103,61 @@ module Freeclimb
1108
1103
  return data, status_code, headers
1109
1104
  end
1110
1105
 
1106
+ # Get an Account
1107
+ # @param [Hash] opts the optional parameters
1108
+ # @return [AccountResult]
1109
+ def get_an_account(opts = {})
1110
+ data, _status_code, _headers = get_an_account_with_http_info(opts)
1111
+ data
1112
+ end
1113
+
1114
+ # Get an Account
1115
+ # @param [Hash] opts the optional parameters
1116
+ # @return [Array<(AccountResult, Integer, Hash)>] AccountResult data, response status code and response headers
1117
+ def get_an_account_with_http_info(opts = {})
1118
+ if @api_client.config.debugging
1119
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_account ...'
1120
+ end
1121
+ # resource path
1122
+ local_var_path = '/Accounts/{accountId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1123
+
1124
+ # query parameters
1125
+ query_params = opts[:query_params] || {}
1126
+
1127
+ # header parameters
1128
+ header_params = opts[:header_params] || {}
1129
+ # HTTP header 'Accept' (if needed)
1130
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1131
+
1132
+ # form parameters
1133
+ form_params = opts[:form_params] || {}
1134
+
1135
+ # http body (model)
1136
+ post_body = opts[:debug_body]
1137
+
1138
+ # return_type
1139
+ return_type = opts[:debug_return_type] || 'AccountResult'
1140
+
1141
+ # auth_names
1142
+ auth_names = opts[:debug_auth_names] || ['fc']
1143
+
1144
+ new_options = opts.merge(
1145
+ :operation => :"DefaultApi.get_an_account",
1146
+ :header_params => header_params,
1147
+ :query_params => query_params,
1148
+ :form_params => form_params,
1149
+ :body => post_body,
1150
+ :auth_names => auth_names,
1151
+ :return_type => return_type
1152
+ )
1153
+
1154
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1155
+ if @api_client.config.debugging
1156
+ @api_client.config.logger.debug "API called: DefaultApi#get_an_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1157
+ end
1158
+ return data, status_code, headers
1159
+ end
1160
+
1111
1161
  # Get an Application
1112
1162
  # @param application_id [String] A string that uniquely identifies this application resource.
1113
1163
  # @param [Hash] opts the optional parameters
@@ -1125,12 +1175,13 @@ module Freeclimb
1125
1175
  if @api_client.config.debugging
1126
1176
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_application ...'
1127
1177
  end
1178
+
1128
1179
  # verify the required parameter 'application_id' is set
1129
1180
  if @api_client.config.client_side_validation && application_id.nil?
1130
1181
  fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.get_an_application"
1131
1182
  end
1132
1183
  # resource path
1133
- local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
1184
+ local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
1134
1185
 
1135
1186
  # query parameters
1136
1187
  query_params = opts[:query_params] || {}
@@ -1144,15 +1195,16 @@ module Freeclimb
1144
1195
  form_params = opts[:form_params] || {}
1145
1196
 
1146
1197
  # http body (model)
1147
- post_body = opts[:body]
1198
+ post_body = opts[:debug_body]
1148
1199
 
1149
1200
  # return_type
1150
- return_type = opts[:return_type] || 'ApplicationResult'
1201
+ return_type = opts[:debug_return_type] || 'ApplicationResult'
1151
1202
 
1152
1203
  # auth_names
1153
- auth_names = opts[:auth_names] || ['fc']
1204
+ auth_names = opts[:debug_auth_names] || ['fc']
1154
1205
 
1155
1206
  new_options = opts.merge(
1207
+ :operation => :"DefaultApi.get_an_application",
1156
1208
  :header_params => header_params,
1157
1209
  :query_params => query_params,
1158
1210
  :form_params => form_params,
@@ -1185,12 +1237,13 @@ module Freeclimb
1185
1237
  if @api_client.config.debugging
1186
1238
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_incoming_number ...'
1187
1239
  end
1240
+
1188
1241
  # verify the required parameter 'phone_number_id' is set
1189
1242
  if @api_client.config.client_side_validation && phone_number_id.nil?
1190
1243
  fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.get_an_incoming_number"
1191
1244
  end
1192
1245
  # resource path
1193
- local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
1246
+ local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
1194
1247
 
1195
1248
  # query parameters
1196
1249
  query_params = opts[:query_params] || {}
@@ -1204,15 +1257,16 @@ module Freeclimb
1204
1257
  form_params = opts[:form_params] || {}
1205
1258
 
1206
1259
  # http body (model)
1207
- post_body = opts[:body]
1260
+ post_body = opts[:debug_body]
1208
1261
 
1209
1262
  # return_type
1210
- return_type = opts[:return_type] || 'IncomingNumberResult'
1263
+ return_type = opts[:debug_return_type] || 'IncomingNumberResult'
1211
1264
 
1212
1265
  # auth_names
1213
- auth_names = opts[:auth_names] || ['fc']
1266
+ auth_names = opts[:debug_auth_names] || ['fc']
1214
1267
 
1215
1268
  new_options = opts.merge(
1269
+ :operation => :"DefaultApi.get_an_incoming_number",
1216
1270
  :header_params => header_params,
1217
1271
  :query_params => query_params,
1218
1272
  :form_params => form_params,
@@ -1245,12 +1299,13 @@ module Freeclimb
1245
1299
  if @api_client.config.debugging
1246
1300
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_sms_message ...'
1247
1301
  end
1302
+
1248
1303
  # verify the required parameter 'message_id' is set
1249
1304
  if @api_client.config.client_side_validation && message_id.nil?
1250
1305
  fail ArgumentError, "Missing the required parameter 'message_id' when calling DefaultApi.get_an_sms_message"
1251
1306
  end
1252
1307
  # resource path
1253
- local_var_path = '/Accounts/{accountId}/Messages/{messageId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'messageId' + '}', CGI.escape(message_id.to_s))
1308
+ local_var_path = '/Accounts/{accountId}/Messages/{messageId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'messageId' + '}', CGI.escape(message_id.to_s))
1254
1309
 
1255
1310
  # query parameters
1256
1311
  query_params = opts[:query_params] || {}
@@ -1264,15 +1319,16 @@ module Freeclimb
1264
1319
  form_params = opts[:form_params] || {}
1265
1320
 
1266
1321
  # http body (model)
1267
- post_body = opts[:body]
1322
+ post_body = opts[:debug_body]
1268
1323
 
1269
1324
  # return_type
1270
- return_type = opts[:return_type] || 'MessageResult'
1325
+ return_type = opts[:debug_return_type] || 'MessageResult'
1271
1326
 
1272
1327
  # auth_names
1273
- auth_names = opts[:auth_names] || ['fc']
1328
+ auth_names = opts[:debug_auth_names] || ['fc']
1274
1329
 
1275
1330
  new_options = opts.merge(
1331
+ :operation => :"DefaultApi.get_an_sms_message",
1276
1332
  :header_params => header_params,
1277
1333
  :query_params => query_params,
1278
1334
  :form_params => form_params,
@@ -1305,12 +1361,13 @@ module Freeclimb
1305
1361
  if @api_client.config.debugging
1306
1362
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_head_member ...'
1307
1363
  end
1364
+
1308
1365
  # verify the required parameter 'queue_id' is set
1309
1366
  if @api_client.config.client_side_validation && queue_id.nil?
1310
1367
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.get_head_member"
1311
1368
  end
1312
1369
  # resource path
1313
- local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/Front'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
1370
+ local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/Front'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
1314
1371
 
1315
1372
  # query parameters
1316
1373
  query_params = opts[:query_params] || {}
@@ -1324,15 +1381,16 @@ module Freeclimb
1324
1381
  form_params = opts[:form_params] || {}
1325
1382
 
1326
1383
  # http body (model)
1327
- post_body = opts[:body]
1384
+ post_body = opts[:debug_body]
1328
1385
 
1329
1386
  # return_type
1330
- return_type = opts[:return_type] || 'QueueMember'
1387
+ return_type = opts[:debug_return_type] || 'QueueMember'
1331
1388
 
1332
1389
  # auth_names
1333
- auth_names = opts[:auth_names] || ['fc']
1390
+ auth_names = opts[:debug_auth_names] || ['fc']
1334
1391
 
1335
1392
  new_options = opts.merge(
1393
+ :operation => :"DefaultApi.get_head_member",
1336
1394
  :header_params => header_params,
1337
1395
  :query_params => query_params,
1338
1396
  :form_params => form_params,
@@ -1366,7 +1424,7 @@ module Freeclimb
1366
1424
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_active_queues ...'
1367
1425
  end
1368
1426
  # resource path
1369
- local_var_path = '/Accounts/{accountId}/Queues'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
1427
+ local_var_path = '/Accounts/{accountId}/Queues'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1370
1428
 
1371
1429
  # query parameters
1372
1430
  query_params = opts[:query_params] || {}
@@ -1381,15 +1439,16 @@ module Freeclimb
1381
1439
  form_params = opts[:form_params] || {}
1382
1440
 
1383
1441
  # http body (model)
1384
- post_body = opts[:body]
1442
+ post_body = opts[:debug_body]
1385
1443
 
1386
1444
  # return_type
1387
- return_type = opts[:return_type] || 'QueueList'
1445
+ return_type = opts[:debug_return_type] || 'QueueList'
1388
1446
 
1389
1447
  # auth_names
1390
- auth_names = opts[:auth_names] || ['fc']
1448
+ auth_names = opts[:debug_auth_names] || ['fc']
1391
1449
 
1392
1450
  new_options = opts.merge(
1451
+ :operation => :"DefaultApi.list_active_queues",
1393
1452
  :header_params => header_params,
1394
1453
  :query_params => query_params,
1395
1454
  :form_params => form_params,
@@ -1421,7 +1480,7 @@ module Freeclimb
1421
1480
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_all_account_logs ...'
1422
1481
  end
1423
1482
  # resource path
1424
- local_var_path = '/Accounts/{accountId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
1483
+ local_var_path = '/Accounts/{accountId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1425
1484
 
1426
1485
  # query parameters
1427
1486
  query_params = opts[:query_params] || {}
@@ -1435,15 +1494,16 @@ module Freeclimb
1435
1494
  form_params = opts[:form_params] || {}
1436
1495
 
1437
1496
  # http body (model)
1438
- post_body = opts[:body]
1497
+ post_body = opts[:debug_body]
1439
1498
 
1440
1499
  # return_type
1441
- return_type = opts[:return_type] || 'LogList'
1500
+ return_type = opts[:debug_return_type] || 'LogList'
1442
1501
 
1443
1502
  # auth_names
1444
- auth_names = opts[:auth_names] || ['fc']
1503
+ auth_names = opts[:debug_auth_names] || ['fc']
1445
1504
 
1446
1505
  new_options = opts.merge(
1506
+ :operation => :"DefaultApi.list_all_account_logs",
1447
1507
  :header_params => header_params,
1448
1508
  :query_params => query_params,
1449
1509
  :form_params => form_params,
@@ -1477,7 +1537,7 @@ module Freeclimb
1477
1537
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_an_application ...'
1478
1538
  end
1479
1539
  # resource path
1480
- local_var_path = '/Accounts/{accountId}/Applications'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
1540
+ local_var_path = '/Accounts/{accountId}/Applications'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1481
1541
 
1482
1542
  # query parameters
1483
1543
  query_params = opts[:query_params] || {}
@@ -1492,15 +1552,16 @@ module Freeclimb
1492
1552
  form_params = opts[:form_params] || {}
1493
1553
 
1494
1554
  # http body (model)
1495
- post_body = opts[:body]
1555
+ post_body = opts[:debug_body]
1496
1556
 
1497
1557
  # return_type
1498
- return_type = opts[:return_type] || 'ApplicationList'
1558
+ return_type = opts[:debug_return_type] || 'ApplicationList'
1499
1559
 
1500
1560
  # auth_names
1501
- auth_names = opts[:auth_names] || ['fc']
1561
+ auth_names = opts[:debug_auth_names] || ['fc']
1502
1562
 
1503
1563
  new_options = opts.merge(
1564
+ :operation => :"DefaultApi.list_an_application",
1504
1565
  :header_params => header_params,
1505
1566
  :query_params => query_params,
1506
1567
  :form_params => form_params,
@@ -1518,8 +1579,16 @@ module Freeclimb
1518
1579
 
1519
1580
  # List available numbers
1520
1581
  # @param [Hash] opts the optional parameters
1521
- # @option opts [String] :_alias Filter on numbers based on the formatted string of the phone number.
1522
1582
  # @option opts [String] :phone_number PCRE-compatible regular expression to filter against &#x60;phoneNumber&#x60; field, which is in E.164 format.
1583
+ # @option opts [String] :region State or province of this phone number.
1584
+ # @option opts [String] :country Country of this phone number.
1585
+ # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (default to true)
1586
+ # @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (default to true)
1587
+ # @option opts [Boolean] :capabilities_voice
1588
+ # @option opts [Boolean] :capabilities_sms
1589
+ # @option opts [Boolean] :capabilities_toll_free
1590
+ # @option opts [Boolean] :capabilities_ten_dlc
1591
+ # @option opts [Boolean] :capabilities_short_code
1523
1592
  # @return [AvailableNumberList]
1524
1593
  def list_available_numbers(opts = {})
1525
1594
  data, _status_code, _headers = list_available_numbers_with_http_info(opts)
@@ -1528,8 +1597,16 @@ module Freeclimb
1528
1597
 
1529
1598
  # List available numbers
1530
1599
  # @param [Hash] opts the optional parameters
1531
- # @option opts [String] :_alias Filter on numbers based on the formatted string of the phone number.
1532
1600
  # @option opts [String] :phone_number PCRE-compatible regular expression to filter against &#x60;phoneNumber&#x60; field, which is in E.164 format.
1601
+ # @option opts [String] :region State or province of this phone number.
1602
+ # @option opts [String] :country Country of this phone number.
1603
+ # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers.
1604
+ # @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers.
1605
+ # @option opts [Boolean] :capabilities_voice
1606
+ # @option opts [Boolean] :capabilities_sms
1607
+ # @option opts [Boolean] :capabilities_toll_free
1608
+ # @option opts [Boolean] :capabilities_ten_dlc
1609
+ # @option opts [Boolean] :capabilities_short_code
1533
1610
  # @return [Array<(AvailableNumberList, Integer, Hash)>] AvailableNumberList data, response status code and response headers
1534
1611
  def list_available_numbers_with_http_info(opts = {})
1535
1612
  if @api_client.config.debugging
@@ -1540,8 +1617,16 @@ module Freeclimb
1540
1617
 
1541
1618
  # query parameters
1542
1619
  query_params = opts[:query_params] || {}
1543
- query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].nil?
1544
1620
  query_params[:'phoneNumber'] = opts[:'phone_number'] if !opts[:'phone_number'].nil?
1621
+ query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
1622
+ query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
1623
+ query_params[:'voiceEnabled'] = opts[:'voice_enabled'] if !opts[:'voice_enabled'].nil?
1624
+ query_params[:'smsEnabled'] = opts[:'sms_enabled'] if !opts[:'sms_enabled'].nil?
1625
+ query_params[:'capabilities.voice'] = opts[:'capabilities_voice'] if !opts[:'capabilities_voice'].nil?
1626
+ query_params[:'capabilities.sms'] = opts[:'capabilities_sms'] if !opts[:'capabilities_sms'].nil?
1627
+ query_params[:'capabilities.tollFree'] = opts[:'capabilities_toll_free'] if !opts[:'capabilities_toll_free'].nil?
1628
+ query_params[:'capabilities.tenDLC'] = opts[:'capabilities_ten_dlc'] if !opts[:'capabilities_ten_dlc'].nil?
1629
+ query_params[:'capabilities.shortCode'] = opts[:'capabilities_short_code'] if !opts[:'capabilities_short_code'].nil?
1545
1630
 
1546
1631
  # header parameters
1547
1632
  header_params = opts[:header_params] || {}
@@ -1552,15 +1637,16 @@ module Freeclimb
1552
1637
  form_params = opts[:form_params] || {}
1553
1638
 
1554
1639
  # http body (model)
1555
- post_body = opts[:body]
1640
+ post_body = opts[:debug_body]
1556
1641
 
1557
1642
  # return_type
1558
- return_type = opts[:return_type] || 'AvailableNumberList'
1643
+ return_type = opts[:debug_return_type] || 'AvailableNumberList'
1559
1644
 
1560
1645
  # auth_names
1561
- auth_names = opts[:auth_names] || ['fc']
1646
+ auth_names = opts[:debug_auth_names] || ['fc']
1562
1647
 
1563
1648
  new_options = opts.merge(
1649
+ :operation => :"DefaultApi.list_available_numbers",
1564
1650
  :header_params => header_params,
1565
1651
  :query_params => query_params,
1566
1652
  :form_params => form_params,
@@ -1593,12 +1679,13 @@ module Freeclimb
1593
1679
  if @api_client.config.debugging
1594
1680
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_call_logs ...'
1595
1681
  end
1682
+
1596
1683
  # verify the required parameter 'call_id' is set
1597
1684
  if @api_client.config.client_side_validation && call_id.nil?
1598
1685
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.list_call_logs"
1599
1686
  end
1600
1687
  # resource path
1601
- local_var_path = '/Accounts/{accountId}/Calls/{callId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
1688
+ local_var_path = '/Accounts/{accountId}/Calls/{callId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
1602
1689
 
1603
1690
  # query parameters
1604
1691
  query_params = opts[:query_params] || {}
@@ -1612,15 +1699,16 @@ module Freeclimb
1612
1699
  form_params = opts[:form_params] || {}
1613
1700
 
1614
1701
  # http body (model)
1615
- post_body = opts[:body]
1702
+ post_body = opts[:debug_body]
1616
1703
 
1617
1704
  # return_type
1618
- return_type = opts[:return_type] || 'LogList'
1705
+ return_type = opts[:debug_return_type] || 'LogList'
1619
1706
 
1620
1707
  # auth_names
1621
- auth_names = opts[:auth_names] || ['fc']
1708
+ auth_names = opts[:debug_auth_names] || ['fc']
1622
1709
 
1623
1710
  new_options = opts.merge(
1711
+ :operation => :"DefaultApi.list_call_logs",
1624
1712
  :header_params => header_params,
1625
1713
  :query_params => query_params,
1626
1714
  :form_params => form_params,
@@ -1655,12 +1743,13 @@ module Freeclimb
1655
1743
  if @api_client.config.debugging
1656
1744
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_call_recordings ...'
1657
1745
  end
1746
+
1658
1747
  # verify the required parameter 'call_id' is set
1659
1748
  if @api_client.config.client_side_validation && call_id.nil?
1660
1749
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.list_call_recordings"
1661
1750
  end
1662
1751
  # resource path
1663
- local_var_path = '/Accounts/{accountId}/Calls/{callId}/Recordings'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
1752
+ local_var_path = '/Accounts/{accountId}/Calls/{callId}/Recordings'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
1664
1753
 
1665
1754
  # query parameters
1666
1755
  query_params = opts[:query_params] || {}
@@ -1675,15 +1764,16 @@ module Freeclimb
1675
1764
  form_params = opts[:form_params] || {}
1676
1765
 
1677
1766
  # http body (model)
1678
- post_body = opts[:body]
1767
+ post_body = opts[:debug_body]
1679
1768
 
1680
1769
  # return_type
1681
- return_type = opts[:return_type] || 'RecordingList'
1770
+ return_type = opts[:debug_return_type] || 'RecordingList'
1682
1771
 
1683
1772
  # auth_names
1684
- auth_names = opts[:auth_names] || ['fc']
1773
+ auth_names = opts[:debug_auth_names] || ['fc']
1685
1774
 
1686
1775
  new_options = opts.merge(
1776
+ :operation => :"DefaultApi.list_call_recordings",
1687
1777
  :header_params => header_params,
1688
1778
  :query_params => query_params,
1689
1779
  :form_params => form_params,
@@ -1701,6 +1791,7 @@ module Freeclimb
1701
1791
 
1702
1792
  # List Calls
1703
1793
  # @param [Hash] opts the optional parameters
1794
+ # @option opts [Boolean] :active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (default to false)
1704
1795
  # @option opts [String] :to Only show Calls to this phone number.
1705
1796
  # @option opts [String] :from Only show Calls from this phone number.
1706
1797
  # @option opts [String] :status Only show Calls currently in this status. May be &#x60;queued&#x60;, &#x60;ringing&#x60;, &#x60;inProgress&#x60;, &#x60;canceled&#x60;, &#x60;completed&#x60;, &#x60;failed&#x60;, &#x60;busy&#x60;, or &#x60;noAnswer&#x60;.
@@ -1715,6 +1806,7 @@ module Freeclimb
1715
1806
 
1716
1807
  # List Calls
1717
1808
  # @param [Hash] opts the optional parameters
1809
+ # @option opts [Boolean] :active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query.
1718
1810
  # @option opts [String] :to Only show Calls to this phone number.
1719
1811
  # @option opts [String] :from Only show Calls from this phone number.
1720
1812
  # @option opts [String] :status Only show Calls currently in this status. May be &#x60;queued&#x60;, &#x60;ringing&#x60;, &#x60;inProgress&#x60;, &#x60;canceled&#x60;, &#x60;completed&#x60;, &#x60;failed&#x60;, &#x60;busy&#x60;, or &#x60;noAnswer&#x60;.
@@ -1727,10 +1819,11 @@ module Freeclimb
1727
1819
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_calls ...'
1728
1820
  end
1729
1821
  # resource path
1730
- local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
1822
+ local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1731
1823
 
1732
1824
  # query parameters
1733
1825
  query_params = opts[:query_params] || {}
1826
+ query_params[:'active'] = opts[:'active'] if !opts[:'active'].nil?
1734
1827
  query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
1735
1828
  query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
1736
1829
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
@@ -1747,15 +1840,16 @@ module Freeclimb
1747
1840
  form_params = opts[:form_params] || {}
1748
1841
 
1749
1842
  # http body (model)
1750
- post_body = opts[:body]
1843
+ post_body = opts[:debug_body]
1751
1844
 
1752
1845
  # return_type
1753
- return_type = opts[:return_type] || 'CallList'
1846
+ return_type = opts[:debug_return_type] || 'CallList'
1754
1847
 
1755
1848
  # auth_names
1756
- auth_names = opts[:auth_names] || ['fc']
1849
+ auth_names = opts[:debug_auth_names] || ['fc']
1757
1850
 
1758
1851
  new_options = opts.merge(
1852
+ :operation => :"DefaultApi.list_calls",
1759
1853
  :header_params => header_params,
1760
1854
  :query_params => query_params,
1761
1855
  :form_params => form_params,
@@ -1795,7 +1889,7 @@ module Freeclimb
1795
1889
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_conferences ...'
1796
1890
  end
1797
1891
  # resource path
1798
- local_var_path = '/Accounts/{accountId}/Conferences'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
1892
+ local_var_path = '/Accounts/{accountId}/Conferences'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1799
1893
 
1800
1894
  # query parameters
1801
1895
  query_params = opts[:query_params] || {}
@@ -1813,15 +1907,16 @@ module Freeclimb
1813
1907
  form_params = opts[:form_params] || {}
1814
1908
 
1815
1909
  # http body (model)
1816
- post_body = opts[:body]
1910
+ post_body = opts[:debug_body]
1817
1911
 
1818
1912
  # return_type
1819
- return_type = opts[:return_type] || 'ConferenceList'
1913
+ return_type = opts[:debug_return_type] || 'ConferenceList'
1820
1914
 
1821
1915
  # auth_names
1822
- auth_names = opts[:auth_names] || ['fc']
1916
+ auth_names = opts[:debug_auth_names] || ['fc']
1823
1917
 
1824
1918
  new_options = opts.merge(
1919
+ :operation => :"DefaultApi.list_conferences",
1825
1920
  :header_params => header_params,
1826
1921
  :query_params => query_params,
1827
1922
  :form_params => form_params,
@@ -1841,6 +1936,17 @@ module Freeclimb
1841
1936
  # @param [Hash] opts the optional parameters
1842
1937
  # @option opts [String] :phone_number Only show incoming phone number resources that match this PCRE-compatible regular expression.
1843
1938
  # @option opts [String] :_alias Only show incoming phone numbers with aliases that exactly match this value.
1939
+ # @option opts [String] :region State or province of this phone number.
1940
+ # @option opts [String] :country Country of this phone number.
1941
+ # @option opts [String] :application_id ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId.
1942
+ # @option opts [Boolean] :has_application Indication of whether the phone number has an application linked to it. (default to false)
1943
+ # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (default to true)
1944
+ # @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (default to true)
1945
+ # @option opts [Boolean] :capabilities_voice
1946
+ # @option opts [Boolean] :capabilities_sms
1947
+ # @option opts [Boolean] :capabilities_toll_free
1948
+ # @option opts [Boolean] :capabilities_ten_dlc
1949
+ # @option opts [Boolean] :capabilities_short_code
1844
1950
  # @return [IncomingNumberList]
1845
1951
  def list_incoming_numbers(opts = {})
1846
1952
  data, _status_code, _headers = list_incoming_numbers_with_http_info(opts)
@@ -1851,18 +1957,40 @@ module Freeclimb
1851
1957
  # @param [Hash] opts the optional parameters
1852
1958
  # @option opts [String] :phone_number Only show incoming phone number resources that match this PCRE-compatible regular expression.
1853
1959
  # @option opts [String] :_alias Only show incoming phone numbers with aliases that exactly match this value.
1960
+ # @option opts [String] :region State or province of this phone number.
1961
+ # @option opts [String] :country Country of this phone number.
1962
+ # @option opts [String] :application_id ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId.
1963
+ # @option opts [Boolean] :has_application Indication of whether the phone number has an application linked to it.
1964
+ # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers.
1965
+ # @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers.
1966
+ # @option opts [Boolean] :capabilities_voice
1967
+ # @option opts [Boolean] :capabilities_sms
1968
+ # @option opts [Boolean] :capabilities_toll_free
1969
+ # @option opts [Boolean] :capabilities_ten_dlc
1970
+ # @option opts [Boolean] :capabilities_short_code
1854
1971
  # @return [Array<(IncomingNumberList, Integer, Hash)>] IncomingNumberList data, response status code and response headers
1855
1972
  def list_incoming_numbers_with_http_info(opts = {})
1856
1973
  if @api_client.config.debugging
1857
1974
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_incoming_numbers ...'
1858
1975
  end
1859
1976
  # resource path
1860
- local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
1977
+ local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1861
1978
 
1862
1979
  # query parameters
1863
1980
  query_params = opts[:query_params] || {}
1864
1981
  query_params[:'phoneNumber'] = opts[:'phone_number'] if !opts[:'phone_number'].nil?
1865
1982
  query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].nil?
1983
+ query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
1984
+ query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
1985
+ query_params[:'applicationId'] = opts[:'application_id'] if !opts[:'application_id'].nil?
1986
+ query_params[:'hasApplication'] = opts[:'has_application'] if !opts[:'has_application'].nil?
1987
+ query_params[:'voiceEnabled'] = opts[:'voice_enabled'] if !opts[:'voice_enabled'].nil?
1988
+ query_params[:'smsEnabled'] = opts[:'sms_enabled'] if !opts[:'sms_enabled'].nil?
1989
+ query_params[:'capabilities.voice'] = opts[:'capabilities_voice'] if !opts[:'capabilities_voice'].nil?
1990
+ query_params[:'capabilities.sms'] = opts[:'capabilities_sms'] if !opts[:'capabilities_sms'].nil?
1991
+ query_params[:'capabilities.tollFree'] = opts[:'capabilities_toll_free'] if !opts[:'capabilities_toll_free'].nil?
1992
+ query_params[:'capabilities.tenDLC'] = opts[:'capabilities_ten_dlc'] if !opts[:'capabilities_ten_dlc'].nil?
1993
+ query_params[:'capabilities.shortCode'] = opts[:'capabilities_short_code'] if !opts[:'capabilities_short_code'].nil?
1866
1994
 
1867
1995
  # header parameters
1868
1996
  header_params = opts[:header_params] || {}
@@ -1873,15 +2001,16 @@ module Freeclimb
1873
2001
  form_params = opts[:form_params] || {}
1874
2002
 
1875
2003
  # http body (model)
1876
- post_body = opts[:body]
2004
+ post_body = opts[:debug_body]
1877
2005
 
1878
2006
  # return_type
1879
- return_type = opts[:return_type] || 'IncomingNumberList'
2007
+ return_type = opts[:debug_return_type] || 'IncomingNumberList'
1880
2008
 
1881
2009
  # auth_names
1882
- auth_names = opts[:auth_names] || ['fc']
2010
+ auth_names = opts[:debug_auth_names] || ['fc']
1883
2011
 
1884
2012
  new_options = opts.merge(
2013
+ :operation => :"DefaultApi.list_incoming_numbers",
1885
2014
  :header_params => header_params,
1886
2015
  :query_params => query_params,
1887
2016
  :form_params => form_params,
@@ -1914,12 +2043,13 @@ module Freeclimb
1914
2043
  if @api_client.config.debugging
1915
2044
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_members ...'
1916
2045
  end
2046
+
1917
2047
  # verify the required parameter 'queue_id' is set
1918
2048
  if @api_client.config.client_side_validation && queue_id.nil?
1919
2049
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.list_members"
1920
2050
  end
1921
2051
  # resource path
1922
- local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
2052
+ local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
1923
2053
 
1924
2054
  # query parameters
1925
2055
  query_params = opts[:query_params] || {}
@@ -1933,15 +2063,16 @@ module Freeclimb
1933
2063
  form_params = opts[:form_params] || {}
1934
2064
 
1935
2065
  # http body (model)
1936
- post_body = opts[:body]
2066
+ post_body = opts[:debug_body]
1937
2067
 
1938
2068
  # return_type
1939
- return_type = opts[:return_type] || 'QueueMemberList'
2069
+ return_type = opts[:debug_return_type] || 'QueueMemberList'
1940
2070
 
1941
2071
  # auth_names
1942
- auth_names = opts[:auth_names] || ['fc']
2072
+ auth_names = opts[:debug_auth_names] || ['fc']
1943
2073
 
1944
2074
  new_options = opts.merge(
2075
+ :operation => :"DefaultApi.list_members",
1945
2076
  :header_params => header_params,
1946
2077
  :query_params => query_params,
1947
2078
  :form_params => form_params,
@@ -1978,12 +2109,13 @@ module Freeclimb
1978
2109
  if @api_client.config.debugging
1979
2110
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_participants ...'
1980
2111
  end
2112
+
1981
2113
  # verify the required parameter 'conference_id' is set
1982
2114
  if @api_client.config.client_side_validation && conference_id.nil?
1983
2115
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.list_participants"
1984
2116
  end
1985
2117
  # resource path
1986
- local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
2118
+ local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
1987
2119
 
1988
2120
  # query parameters
1989
2121
  query_params = opts[:query_params] || {}
@@ -1999,15 +2131,16 @@ module Freeclimb
1999
2131
  form_params = opts[:form_params] || {}
2000
2132
 
2001
2133
  # http body (model)
2002
- post_body = opts[:body]
2134
+ post_body = opts[:debug_body]
2003
2135
 
2004
2136
  # return_type
2005
- return_type = opts[:return_type] || 'ConferenceParticipantList'
2137
+ return_type = opts[:debug_return_type] || 'ConferenceParticipantList'
2006
2138
 
2007
2139
  # auth_names
2008
- auth_names = opts[:auth_names] || ['fc']
2140
+ auth_names = opts[:debug_auth_names] || ['fc']
2009
2141
 
2010
2142
  new_options = opts.merge(
2143
+ :operation => :"DefaultApi.list_participants",
2011
2144
  :header_params => header_params,
2012
2145
  :query_params => query_params,
2013
2146
  :form_params => form_params,
@@ -2045,7 +2178,7 @@ module Freeclimb
2045
2178
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_recordings ...'
2046
2179
  end
2047
2180
  # resource path
2048
- local_var_path = '/Accounts/{accountId}/Recordings'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
2181
+ local_var_path = '/Accounts/{accountId}/Recordings'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2049
2182
 
2050
2183
  # query parameters
2051
2184
  query_params = opts[:query_params] || {}
@@ -2062,15 +2195,16 @@ module Freeclimb
2062
2195
  form_params = opts[:form_params] || {}
2063
2196
 
2064
2197
  # http body (model)
2065
- post_body = opts[:body]
2198
+ post_body = opts[:debug_body]
2066
2199
 
2067
2200
  # return_type
2068
- return_type = opts[:return_type] || 'RecordingList'
2201
+ return_type = opts[:debug_return_type] || 'RecordingList'
2069
2202
 
2070
2203
  # auth_names
2071
- auth_names = opts[:auth_names] || ['fc']
2204
+ auth_names = opts[:debug_auth_names] || ['fc']
2072
2205
 
2073
2206
  new_options = opts.merge(
2207
+ :operation => :"DefaultApi.list_recordings",
2074
2208
  :header_params => header_params,
2075
2209
  :query_params => query_params,
2076
2210
  :form_params => form_params,
@@ -2093,7 +2227,6 @@ module Freeclimb
2093
2227
  # @option opts [String] :begin_time Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*.
2094
2228
  # @option opts [String] :end_time Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*..
2095
2229
  # @option opts [String] :direction Either &#x60;inbound&#x60; or &#x60;outbound&#x60;. Only show Messages that were either *sent from* or *received by* FreeClimb.
2096
- # @option opts [String] :account_id String that uniquely identifies this account resource.
2097
2230
  # @return [MessagesList]
2098
2231
  def list_sms_messages(opts = {})
2099
2232
  data, _status_code, _headers = list_sms_messages_with_http_info(opts)
@@ -2107,14 +2240,13 @@ module Freeclimb
2107
2240
  # @option opts [String] :begin_time Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*.
2108
2241
  # @option opts [String] :end_time Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*..
2109
2242
  # @option opts [String] :direction Either &#x60;inbound&#x60; or &#x60;outbound&#x60;. Only show Messages that were either *sent from* or *received by* FreeClimb.
2110
- # @option opts [String] :account_id String that uniquely identifies this account resource.
2111
2243
  # @return [Array<(MessagesList, Integer, Hash)>] MessagesList data, response status code and response headers
2112
2244
  def list_sms_messages_with_http_info(opts = {})
2113
2245
  if @api_client.config.debugging
2114
2246
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_sms_messages ...'
2115
2247
  end
2116
2248
  # resource path
2117
- local_var_path = '/Accounts/{accountId}/Messages'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
2249
+ local_var_path = '/Accounts/{accountId}/Messages'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2118
2250
 
2119
2251
  # query parameters
2120
2252
  query_params = opts[:query_params] || {}
@@ -2123,7 +2255,6 @@ module Freeclimb
2123
2255
  query_params[:'beginTime'] = opts[:'begin_time'] if !opts[:'begin_time'].nil?
2124
2256
  query_params[:'endTime'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2125
2257
  query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
2126
- query_params[:'accountID'] = opts[:'account_id'] if !opts[:'account_id'].nil?
2127
2258
 
2128
2259
  # header parameters
2129
2260
  header_params = opts[:header_params] || {}
@@ -2134,15 +2265,16 @@ module Freeclimb
2134
2265
  form_params = opts[:form_params] || {}
2135
2266
 
2136
2267
  # http body (model)
2137
- post_body = opts[:body]
2268
+ post_body = opts[:debug_body]
2138
2269
 
2139
2270
  # return_type
2140
- return_type = opts[:return_type] || 'MessagesList'
2271
+ return_type = opts[:debug_return_type] || 'MessagesList'
2141
2272
 
2142
2273
  # auth_names
2143
- auth_names = opts[:auth_names] || ['fc']
2274
+ auth_names = opts[:debug_auth_names] || ['fc']
2144
2275
 
2145
2276
  new_options = opts.merge(
2277
+ :operation => :"DefaultApi.list_sms_messages",
2146
2278
  :header_params => header_params,
2147
2279
  :query_params => query_params,
2148
2280
  :form_params => form_params,
@@ -2176,7 +2308,7 @@ module Freeclimb
2176
2308
  @api_client.config.logger.debug 'Calling API: DefaultApi.make_a_call ...'
2177
2309
  end
2178
2310
  # resource path
2179
- local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
2311
+ local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2180
2312
 
2181
2313
  # query parameters
2182
2314
  query_params = opts[:query_params] || {}
@@ -2186,21 +2318,25 @@ module Freeclimb
2186
2318
  # HTTP header 'Accept' (if needed)
2187
2319
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2188
2320
  # HTTP header 'Content-Type'
2189
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2321
+ content_type = @api_client.select_header_content_type(['application/json'])
2322
+ if !content_type.nil?
2323
+ header_params['Content-Type'] = content_type
2324
+ end
2190
2325
 
2191
2326
  # form parameters
2192
2327
  form_params = opts[:form_params] || {}
2193
2328
 
2194
2329
  # http body (model)
2195
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'make_call_request'])
2330
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'make_call_request'])
2196
2331
 
2197
2332
  # return_type
2198
- return_type = opts[:return_type] || 'CallResult'
2333
+ return_type = opts[:debug_return_type] || 'CallResult'
2199
2334
 
2200
2335
  # auth_names
2201
- auth_names = opts[:auth_names] || ['fc']
2336
+ auth_names = opts[:debug_auth_names] || ['fc']
2202
2337
 
2203
2338
  new_options = opts.merge(
2339
+ :operation => :"DefaultApi.make_a_call",
2204
2340
  :header_params => header_params,
2205
2341
  :query_params => query_params,
2206
2342
  :form_params => form_params,
@@ -2235,16 +2371,18 @@ module Freeclimb
2235
2371
  if @api_client.config.debugging
2236
2372
  @api_client.config.logger.debug 'Calling API: DefaultApi.remove_a_participant ...'
2237
2373
  end
2374
+
2238
2375
  # verify the required parameter 'conference_id' is set
2239
2376
  if @api_client.config.client_side_validation && conference_id.nil?
2240
2377
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.remove_a_participant"
2241
2378
  end
2379
+
2242
2380
  # verify the required parameter 'call_id' is set
2243
2381
  if @api_client.config.client_side_validation && call_id.nil?
2244
2382
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.remove_a_participant"
2245
2383
  end
2246
2384
  # resource path
2247
- local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
2385
+ local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
2248
2386
 
2249
2387
  # query parameters
2250
2388
  query_params = opts[:query_params] || {}
@@ -2256,15 +2394,16 @@ module Freeclimb
2256
2394
  form_params = opts[:form_params] || {}
2257
2395
 
2258
2396
  # http body (model)
2259
- post_body = opts[:body]
2397
+ post_body = opts[:debug_body]
2260
2398
 
2261
2399
  # return_type
2262
- return_type = opts[:return_type]
2400
+ return_type = opts[:debug_return_type]
2263
2401
 
2264
2402
  # auth_names
2265
- auth_names = opts[:auth_names] || ['fc']
2403
+ auth_names = opts[:debug_auth_names] || ['fc']
2266
2404
 
2267
2405
  new_options = opts.merge(
2406
+ :operation => :"DefaultApi.remove_a_participant",
2268
2407
  :header_params => header_params,
2269
2408
  :query_params => query_params,
2270
2409
  :form_params => form_params,
@@ -2297,12 +2436,13 @@ module Freeclimb
2297
2436
  if @api_client.config.debugging
2298
2437
  @api_client.config.logger.debug 'Calling API: DefaultApi.send_an_sms_message ...'
2299
2438
  end
2439
+
2300
2440
  # verify the required parameter 'message_request' is set
2301
2441
  if @api_client.config.client_side_validation && message_request.nil?
2302
2442
  fail ArgumentError, "Missing the required parameter 'message_request' when calling DefaultApi.send_an_sms_message"
2303
2443
  end
2304
2444
  # resource path
2305
- local_var_path = '/Accounts/{accountId}/Messages'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
2445
+ local_var_path = '/Accounts/{accountId}/Messages'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2306
2446
 
2307
2447
  # query parameters
2308
2448
  query_params = opts[:query_params] || {}
@@ -2312,21 +2452,25 @@ module Freeclimb
2312
2452
  # HTTP header 'Accept' (if needed)
2313
2453
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2314
2454
  # HTTP header 'Content-Type'
2315
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2455
+ content_type = @api_client.select_header_content_type(['application/json'])
2456
+ if !content_type.nil?
2457
+ header_params['Content-Type'] = content_type
2458
+ end
2316
2459
 
2317
2460
  # form parameters
2318
2461
  form_params = opts[:form_params] || {}
2319
2462
 
2320
2463
  # http body (model)
2321
- post_body = opts[:body] || @api_client.object_to_http_body(message_request)
2464
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(message_request)
2322
2465
 
2323
2466
  # return_type
2324
- return_type = opts[:return_type] || 'MessageResult'
2467
+ return_type = opts[:debug_return_type] || 'MessageResult'
2325
2468
 
2326
2469
  # auth_names
2327
- auth_names = opts[:auth_names] || ['fc']
2470
+ auth_names = opts[:debug_auth_names] || ['fc']
2328
2471
 
2329
2472
  new_options = opts.merge(
2473
+ :operation => :"DefaultApi.send_an_sms_message",
2330
2474
  :header_params => header_params,
2331
2475
  :query_params => query_params,
2332
2476
  :form_params => form_params,
@@ -2359,12 +2503,13 @@ module Freeclimb
2359
2503
  if @api_client.config.debugging
2360
2504
  @api_client.config.logger.debug 'Calling API: DefaultApi.stream_a_recording_file ...'
2361
2505
  end
2506
+
2362
2507
  # verify the required parameter 'recording_id' is set
2363
2508
  if @api_client.config.client_side_validation && recording_id.nil?
2364
2509
  fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.stream_a_recording_file"
2365
2510
  end
2366
2511
  # resource path
2367
- local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}/Stream'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
2512
+ local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}/Stream'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
2368
2513
 
2369
2514
  # query parameters
2370
2515
  query_params = opts[:query_params] || {}
@@ -2378,15 +2523,16 @@ module Freeclimb
2378
2523
  form_params = opts[:form_params] || {}
2379
2524
 
2380
2525
  # http body (model)
2381
- post_body = opts[:body]
2526
+ post_body = opts[:debug_body]
2382
2527
 
2383
2528
  # return_type
2384
- return_type = opts[:return_type] || 'File'
2529
+ return_type = opts[:debug_return_type] || 'File'
2385
2530
 
2386
2531
  # auth_names
2387
- auth_names = opts[:auth_names] || ['fc']
2532
+ auth_names = opts[:debug_auth_names] || ['fc']
2388
2533
 
2389
2534
  new_options = opts.merge(
2535
+ :operation => :"DefaultApi.stream_a_recording_file",
2390
2536
  :header_params => header_params,
2391
2537
  :query_params => query_params,
2392
2538
  :form_params => form_params,
@@ -2421,12 +2567,13 @@ module Freeclimb
2421
2567
  if @api_client.config.debugging
2422
2568
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_conference ...'
2423
2569
  end
2570
+
2424
2571
  # verify the required parameter 'conference_id' is set
2425
2572
  if @api_client.config.client_side_validation && conference_id.nil?
2426
2573
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.update_a_conference"
2427
2574
  end
2428
2575
  # resource path
2429
- local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
2576
+ local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
2430
2577
 
2431
2578
  # query parameters
2432
2579
  query_params = opts[:query_params] || {}
@@ -2436,21 +2583,25 @@ module Freeclimb
2436
2583
  # HTTP header 'Accept' (if needed)
2437
2584
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2438
2585
  # HTTP header 'Content-Type'
2439
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2586
+ content_type = @api_client.select_header_content_type(['application/json'])
2587
+ if !content_type.nil?
2588
+ header_params['Content-Type'] = content_type
2589
+ end
2440
2590
 
2441
2591
  # form parameters
2442
2592
  form_params = opts[:form_params] || {}
2443
2593
 
2444
2594
  # http body (model)
2445
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'update_conference_request'])
2595
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_conference_request'])
2446
2596
 
2447
2597
  # return_type
2448
- return_type = opts[:return_type] || 'ConferenceResult'
2598
+ return_type = opts[:debug_return_type] || 'ConferenceResult'
2449
2599
 
2450
2600
  # auth_names
2451
- auth_names = opts[:auth_names] || ['fc']
2601
+ auth_names = opts[:debug_auth_names] || ['fc']
2452
2602
 
2453
2603
  new_options = opts.merge(
2604
+ :operation => :"DefaultApi.update_a_conference",
2454
2605
  :header_params => header_params,
2455
2606
  :query_params => query_params,
2456
2607
  :form_params => form_params,
@@ -2485,16 +2636,18 @@ module Freeclimb
2485
2636
  if @api_client.config.debugging
2486
2637
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_live_call ...'
2487
2638
  end
2639
+
2488
2640
  # verify the required parameter 'call_id' is set
2489
2641
  if @api_client.config.client_side_validation && call_id.nil?
2490
2642
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.update_a_live_call"
2491
2643
  end
2644
+
2492
2645
  # verify the required parameter 'update_call_request' is set
2493
2646
  if @api_client.config.client_side_validation && update_call_request.nil?
2494
2647
  fail ArgumentError, "Missing the required parameter 'update_call_request' when calling DefaultApi.update_a_live_call"
2495
2648
  end
2496
2649
  # resource path
2497
- local_var_path = '/Accounts/{accountId}/Calls/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
2650
+ local_var_path = '/Accounts/{accountId}/Calls/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
2498
2651
 
2499
2652
  # query parameters
2500
2653
  query_params = opts[:query_params] || {}
@@ -2502,21 +2655,25 @@ module Freeclimb
2502
2655
  # header parameters
2503
2656
  header_params = opts[:header_params] || {}
2504
2657
  # HTTP header 'Content-Type'
2505
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2658
+ content_type = @api_client.select_header_content_type(['application/json'])
2659
+ if !content_type.nil?
2660
+ header_params['Content-Type'] = content_type
2661
+ end
2506
2662
 
2507
2663
  # form parameters
2508
2664
  form_params = opts[:form_params] || {}
2509
2665
 
2510
2666
  # http body (model)
2511
- post_body = opts[:body] || @api_client.object_to_http_body(update_call_request)
2667
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_call_request)
2512
2668
 
2513
2669
  # return_type
2514
- return_type = opts[:return_type]
2670
+ return_type = opts[:debug_return_type]
2515
2671
 
2516
2672
  # auth_names
2517
- auth_names = opts[:auth_names] || ['fc']
2673
+ auth_names = opts[:debug_auth_names] || ['fc']
2518
2674
 
2519
2675
  new_options = opts.merge(
2676
+ :operation => :"DefaultApi.update_a_live_call",
2520
2677
  :header_params => header_params,
2521
2678
  :query_params => query_params,
2522
2679
  :form_params => form_params,
@@ -2553,16 +2710,18 @@ module Freeclimb
2553
2710
  if @api_client.config.debugging
2554
2711
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_participant ...'
2555
2712
  end
2713
+
2556
2714
  # verify the required parameter 'conference_id' is set
2557
2715
  if @api_client.config.client_side_validation && conference_id.nil?
2558
2716
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.update_a_participant"
2559
2717
  end
2718
+
2560
2719
  # verify the required parameter 'call_id' is set
2561
2720
  if @api_client.config.client_side_validation && call_id.nil?
2562
2721
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.update_a_participant"
2563
2722
  end
2564
2723
  # resource path
2565
- local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
2724
+ local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
2566
2725
 
2567
2726
  # query parameters
2568
2727
  query_params = opts[:query_params] || {}
@@ -2572,21 +2731,25 @@ module Freeclimb
2572
2731
  # HTTP header 'Accept' (if needed)
2573
2732
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2574
2733
  # HTTP header 'Content-Type'
2575
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2734
+ content_type = @api_client.select_header_content_type(['application/json'])
2735
+ if !content_type.nil?
2736
+ header_params['Content-Type'] = content_type
2737
+ end
2576
2738
 
2577
2739
  # form parameters
2578
2740
  form_params = opts[:form_params] || {}
2579
2741
 
2580
2742
  # http body (model)
2581
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'update_conference_participant_request'])
2743
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_conference_participant_request'])
2582
2744
 
2583
2745
  # return_type
2584
- return_type = opts[:return_type] || 'ConferenceParticipantResult'
2746
+ return_type = opts[:debug_return_type] || 'ConferenceParticipantResult'
2585
2747
 
2586
2748
  # auth_names
2587
- auth_names = opts[:auth_names] || ['fc']
2749
+ auth_names = opts[:debug_auth_names] || ['fc']
2588
2750
 
2589
2751
  new_options = opts.merge(
2752
+ :operation => :"DefaultApi.update_a_participant",
2590
2753
  :header_params => header_params,
2591
2754
  :query_params => query_params,
2592
2755
  :form_params => form_params,
@@ -2621,12 +2784,13 @@ module Freeclimb
2621
2784
  if @api_client.config.debugging
2622
2785
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_queue ...'
2623
2786
  end
2787
+
2624
2788
  # verify the required parameter 'queue_id' is set
2625
2789
  if @api_client.config.client_side_validation && queue_id.nil?
2626
2790
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.update_a_queue"
2627
2791
  end
2628
2792
  # resource path
2629
- local_var_path = '/Accounts/{accountId}/Queues/{queueId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
2793
+ local_var_path = '/Accounts/{accountId}/Queues/{queueId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
2630
2794
 
2631
2795
  # query parameters
2632
2796
  query_params = opts[:query_params] || {}
@@ -2636,21 +2800,25 @@ module Freeclimb
2636
2800
  # HTTP header 'Accept' (if needed)
2637
2801
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2638
2802
  # HTTP header 'Content-Type'
2639
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2803
+ content_type = @api_client.select_header_content_type(['application/json'])
2804
+ if !content_type.nil?
2805
+ header_params['Content-Type'] = content_type
2806
+ end
2640
2807
 
2641
2808
  # form parameters
2642
2809
  form_params = opts[:form_params] || {}
2643
2810
 
2644
2811
  # http body (model)
2645
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'queue_request'])
2812
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'queue_request'])
2646
2813
 
2647
2814
  # return_type
2648
- return_type = opts[:return_type] || 'QueueResult'
2815
+ return_type = opts[:debug_return_type] || 'QueueResult'
2649
2816
 
2650
2817
  # auth_names
2651
- auth_names = opts[:auth_names] || ['fc']
2818
+ auth_names = opts[:debug_auth_names] || ['fc']
2652
2819
 
2653
2820
  new_options = opts.merge(
2821
+ :operation => :"DefaultApi.update_a_queue",
2654
2822
  :header_params => header_params,
2655
2823
  :query_params => query_params,
2656
2824
  :form_params => form_params,
@@ -2684,7 +2852,7 @@ module Freeclimb
2684
2852
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_an_account ...'
2685
2853
  end
2686
2854
  # resource path
2687
- local_var_path = '/Accounts/{accountId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
2855
+ local_var_path = '/Accounts/{accountId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2688
2856
 
2689
2857
  # query parameters
2690
2858
  query_params = opts[:query_params] || {}
@@ -2692,21 +2860,25 @@ module Freeclimb
2692
2860
  # header parameters
2693
2861
  header_params = opts[:header_params] || {}
2694
2862
  # HTTP header 'Content-Type'
2695
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2863
+ content_type = @api_client.select_header_content_type(['application/json'])
2864
+ if !content_type.nil?
2865
+ header_params['Content-Type'] = content_type
2866
+ end
2696
2867
 
2697
2868
  # form parameters
2698
2869
  form_params = opts[:form_params] || {}
2699
2870
 
2700
2871
  # http body (model)
2701
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'account_request'])
2872
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'account_request'])
2702
2873
 
2703
2874
  # return_type
2704
- return_type = opts[:return_type]
2875
+ return_type = opts[:debug_return_type]
2705
2876
 
2706
2877
  # auth_names
2707
- auth_names = opts[:auth_names] || ['fc']
2878
+ auth_names = opts[:debug_auth_names] || ['fc']
2708
2879
 
2709
2880
  new_options = opts.merge(
2881
+ :operation => :"DefaultApi.update_an_account",
2710
2882
  :header_params => header_params,
2711
2883
  :query_params => query_params,
2712
2884
  :form_params => form_params,
@@ -2741,12 +2913,13 @@ module Freeclimb
2741
2913
  if @api_client.config.debugging
2742
2914
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_an_application ...'
2743
2915
  end
2916
+
2744
2917
  # verify the required parameter 'application_id' is set
2745
2918
  if @api_client.config.client_side_validation && application_id.nil?
2746
2919
  fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.update_an_application"
2747
2920
  end
2748
2921
  # resource path
2749
- local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
2922
+ local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
2750
2923
 
2751
2924
  # query parameters
2752
2925
  query_params = opts[:query_params] || {}
@@ -2756,21 +2929,25 @@ module Freeclimb
2756
2929
  # HTTP header 'Accept' (if needed)
2757
2930
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2758
2931
  # HTTP header 'Content-Type'
2759
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2932
+ content_type = @api_client.select_header_content_type(['application/json'])
2933
+ if !content_type.nil?
2934
+ header_params['Content-Type'] = content_type
2935
+ end
2760
2936
 
2761
2937
  # form parameters
2762
2938
  form_params = opts[:form_params] || {}
2763
2939
 
2764
2940
  # http body (model)
2765
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'application_request'])
2941
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'application_request'])
2766
2942
 
2767
2943
  # return_type
2768
- return_type = opts[:return_type] || 'ApplicationResult'
2944
+ return_type = opts[:debug_return_type] || 'ApplicationResult'
2769
2945
 
2770
2946
  # auth_names
2771
- auth_names = opts[:auth_names] || ['fc']
2947
+ auth_names = opts[:debug_auth_names] || ['fc']
2772
2948
 
2773
2949
  new_options = opts.merge(
2950
+ :operation => :"DefaultApi.update_an_application",
2774
2951
  :header_params => header_params,
2775
2952
  :query_params => query_params,
2776
2953
  :form_params => form_params,
@@ -2805,12 +2982,13 @@ module Freeclimb
2805
2982
  if @api_client.config.debugging
2806
2983
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_an_incoming_number ...'
2807
2984
  end
2985
+
2808
2986
  # verify the required parameter 'phone_number_id' is set
2809
2987
  if @api_client.config.client_side_validation && phone_number_id.nil?
2810
2988
  fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.update_an_incoming_number"
2811
2989
  end
2812
2990
  # resource path
2813
- local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
2991
+ local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
2814
2992
 
2815
2993
  # query parameters
2816
2994
  query_params = opts[:query_params] || {}
@@ -2820,21 +2998,25 @@ module Freeclimb
2820
2998
  # HTTP header 'Accept' (if needed)
2821
2999
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2822
3000
  # HTTP header 'Content-Type'
2823
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3001
+ content_type = @api_client.select_header_content_type(['application/json'])
3002
+ if !content_type.nil?
3003
+ header_params['Content-Type'] = content_type
3004
+ end
2824
3005
 
2825
3006
  # form parameters
2826
3007
  form_params = opts[:form_params] || {}
2827
3008
 
2828
3009
  # http body (model)
2829
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'incoming_number_request'])
3010
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'incoming_number_request'])
2830
3011
 
2831
3012
  # return_type
2832
- return_type = opts[:return_type] || 'IncomingNumberResult'
3013
+ return_type = opts[:debug_return_type] || 'IncomingNumberResult'
2833
3014
 
2834
3015
  # auth_names
2835
- auth_names = opts[:auth_names] || ['fc']
3016
+ auth_names = opts[:debug_auth_names] || ['fc']
2836
3017
 
2837
3018
  new_options = opts.merge(
3019
+ :operation => :"DefaultApi.update_an_incoming_number",
2838
3020
  :header_params => header_params,
2839
3021
  :query_params => query_params,
2840
3022
  :form_params => form_params,