freeclimb 3.0.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (330) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/Gemfile +4 -1
  4. data/Gemfile.lock +41 -20
  5. data/README.md +34 -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 -14
  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 +1670 -600
  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 +424 -272
  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 +19 -7
  117. data/lib/freeclimb/models/account_result_all_of.rb +19 -7
  118. data/lib/freeclimb/models/add_to_conference.rb +19 -7
  119. data/lib/freeclimb/models/add_to_conference_all_of.rb +19 -7
  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 -8
  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 +19 -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 +1001 -18
  221. data/spec/api_client_spec.rb +4 -4
  222. data/spec/configuration_spec.rb +9 -9
  223. data/spec/factories.rb +80 -0
  224. data/spec/models/account_request_spec.rb +4 -11
  225. data/spec/models/account_result_spec.rb +5 -12
  226. data/spec/models/add_to_conference_spec.rb +4 -11
  227. data/spec/models/application_list_spec.rb +4 -11
  228. data/spec/models/application_request_spec.rb +4 -11
  229. data/spec/models/application_result_spec.rb +4 -11
  230. data/spec/models/available_number_list_spec.rb +4 -11
  231. data/spec/models/available_number_spec.rb +10 -11
  232. data/spec/models/buy_incoming_number_request_spec.rb +4 -11
  233. data/spec/models/call_list_spec.rb +4 -11
  234. data/spec/models/call_result_spec.rb +5 -12
  235. data/spec/models/{say_all_of_spec.rb → capabilities_spec.rb} +12 -19
  236. data/spec/models/conference_list_spec.rb +4 -11
  237. data/spec/models/conference_participant_list_spec.rb +4 -11
  238. data/spec/models/conference_participant_result_spec.rb +4 -11
  239. data/spec/models/conference_result_spec.rb +6 -13
  240. data/spec/models/create_conference_request_spec.rb +5 -12
  241. data/spec/models/create_conference_spec.rb +4 -11
  242. data/spec/models/dequeue_spec.rb +4 -11
  243. data/spec/models/enqueue_spec.rb +4 -11
  244. data/spec/models/filter_logs_request_spec.rb +4 -11
  245. data/spec/models/get_digits_spec.rb +4 -11
  246. data/spec/models/get_speech_spec.rb +4 -11
  247. data/spec/models/hangup_spec.rb +4 -11
  248. data/spec/models/incoming_number_list_spec.rb +4 -11
  249. data/spec/models/incoming_number_request_spec.rb +4 -11
  250. data/spec/models/incoming_number_result_spec.rb +10 -11
  251. data/spec/models/log_list_spec.rb +4 -11
  252. data/spec/models/log_result_spec.rb +5 -12
  253. data/spec/models/make_call_request_spec.rb +4 -11
  254. data/spec/models/message_request_spec.rb +4 -11
  255. data/spec/models/message_result_spec.rb +5 -12
  256. data/spec/models/messages_list_spec.rb +4 -11
  257. data/spec/models/mutable_resource_model_spec.rb +4 -11
  258. data/spec/models/out_dial_spec.rb +4 -11
  259. data/spec/models/pagination_model_spec.rb +4 -11
  260. data/spec/models/pause_spec.rb +4 -11
  261. data/spec/models/percl_command_spec.rb +4 -11
  262. data/spec/models/percl_script_spec.rb +4 -11
  263. data/spec/models/play_early_media_spec.rb +4 -11
  264. data/spec/models/play_spec.rb +4 -11
  265. data/spec/models/queue_list_spec.rb +4 -11
  266. data/spec/models/queue_member_list_spec.rb +4 -11
  267. data/spec/models/queue_member_spec.rb +4 -11
  268. data/spec/models/queue_request_spec.rb +4 -11
  269. data/spec/models/queue_result_spec.rb +4 -11
  270. data/spec/models/record_utterance_spec.rb +4 -11
  271. data/spec/models/recording_list_spec.rb +4 -11
  272. data/spec/models/recording_result_spec.rb +4 -11
  273. data/spec/models/redirect_spec.rb +4 -11
  274. data/spec/models/reject_spec.rb +4 -11
  275. data/spec/models/remove_from_conference_spec.rb +4 -11
  276. data/spec/models/say_spec.rb +4 -11
  277. data/spec/models/send_digits_spec.rb +4 -11
  278. data/spec/models/set_listen_spec.rb +4 -11
  279. data/spec/models/set_talk_spec.rb +4 -11
  280. data/spec/models/sms_spec.rb +4 -11
  281. data/spec/models/start_record_call_spec.rb +4 -11
  282. data/spec/models/terminate_conference_spec.rb +4 -11
  283. data/spec/models/update_call_request_spec.rb +5 -12
  284. data/spec/models/update_conference_participant_request_spec.rb +4 -11
  285. data/spec/models/update_conference_request_spec.rb +5 -12
  286. data/spec/quickstart_spec.rb +10 -0
  287. data/spec/spec_helper.rb +55 -1
  288. metadata +20 -117
  289. data/lib/freeclimb/utils.rb +0 -34
  290. data/spec/api/web_mocks.rb +0 -473
  291. data/spec/models/account_result_all_of_spec.rb +0 -81
  292. data/spec/models/add_to_conference_all_of_spec.rb +0 -95
  293. data/spec/models/application_list_all_of_spec.rb +0 -41
  294. data/spec/models/application_result_all_of_spec.rb +0 -89
  295. data/spec/models/available_number_list_all_of_spec.rb +0 -41
  296. data/spec/models/call_list_all_of_spec.rb +0 -41
  297. data/spec/models/call_result_all_of_spec.rb +0 -129
  298. data/spec/models/conference_list_all_of_spec.rb +0 -41
  299. data/spec/models/conference_participant_list_all_of_spec.rb +0 -41
  300. data/spec/models/conference_participant_result_all_of_spec.rb +0 -71
  301. data/spec/models/conference_result_all_of_spec.rb +0 -103
  302. data/spec/models/create_conference_all_of_spec.rb +0 -71
  303. data/spec/models/enqueue_all_of_spec.rb +0 -59
  304. data/spec/models/get_digits_all_of_spec.rb +0 -89
  305. data/spec/models/get_speech_all_of_spec.rb +0 -113
  306. data/spec/models/hangup_all_of_spec.rb +0 -41
  307. data/spec/models/incoming_number_list_all_of_spec.rb +0 -41
  308. data/spec/models/incoming_number_result_all_of_spec.rb +0 -89
  309. data/spec/models/log_list_all_of_spec.rb +0 -41
  310. data/spec/models/message_request_all_of_spec.rb +0 -65
  311. data/spec/models/message_result_all_of_spec.rb +0 -87
  312. data/spec/models/messages_list_all_of_spec.rb +0 -41
  313. data/spec/models/out_dial_all_of_spec.rb +0 -95
  314. data/spec/models/pause_all_of_spec.rb +0 -41
  315. data/spec/models/play_all_of_spec.rb +0 -59
  316. data/spec/models/play_early_media_all_of_spec.rb +0 -41
  317. data/spec/models/queue_list_all_of_spec.rb +0 -41
  318. data/spec/models/queue_member_list_all_of_spec.rb +0 -41
  319. data/spec/models/queue_result_all_of_spec.rb +0 -77
  320. data/spec/models/record_utterance_all_of_spec.rb +0 -77
  321. data/spec/models/recording_list_all_of_spec.rb +0 -41
  322. data/spec/models/recording_result_all_of_spec.rb +0 -65
  323. data/spec/models/redirect_all_of_spec.rb +0 -41
  324. data/spec/models/reject_all_of_spec.rb +0 -41
  325. data/spec/models/remove_from_conference_all_of_spec.rb +0 -41
  326. data/spec/models/send_digits_all_of_spec.rb +0 -53
  327. data/spec/models/set_listen_all_of_spec.rb +0 -47
  328. data/spec/models/set_talk_all_of_spec.rb +0 -47
  329. data/spec/models/sms_all_of_spec.rb +0 -59
  330. data/spec/models/terminate_conference_all_of_spec.rb +0 -41
@@ -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,
@@ -1171,12 +1223,6 @@ module Freeclimb
1171
1223
  # Get an Incoming Number
1172
1224
  # @param phone_number_id [String] String that uniquely identifies this phone number resource.
1173
1225
  # @param [Hash] opts the optional parameters
1174
- # @option opts [String] :region State or province of this phone number.
1175
- # @option opts [String] :country Country of this phone number.
1176
- # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (default to true)
1177
- # @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)
1178
- # @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.
1179
- # @option opts [Boolean] :has_application Indication of whether the phone number has an application linked to it. (default to false)
1180
1226
  # @return [IncomingNumberResult]
1181
1227
  def get_an_incoming_number(phone_number_id, opts = {})
1182
1228
  data, _status_code, _headers = get_an_incoming_number_with_http_info(phone_number_id, opts)
@@ -1186,32 +1232,21 @@ module Freeclimb
1186
1232
  # Get an Incoming Number
1187
1233
  # @param phone_number_id [String] String that uniquely identifies this phone number resource.
1188
1234
  # @param [Hash] opts the optional parameters
1189
- # @option opts [String] :region State or province of this phone number.
1190
- # @option opts [String] :country Country of this phone number.
1191
- # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers.
1192
- # @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.
1193
- # @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.
1194
- # @option opts [Boolean] :has_application Indication of whether the phone number has an application linked to it.
1195
1235
  # @return [Array<(IncomingNumberResult, Integer, Hash)>] IncomingNumberResult data, response status code and response headers
1196
1236
  def get_an_incoming_number_with_http_info(phone_number_id, opts = {})
1197
1237
  if @api_client.config.debugging
1198
1238
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_incoming_number ...'
1199
1239
  end
1240
+
1200
1241
  # verify the required parameter 'phone_number_id' is set
1201
1242
  if @api_client.config.client_side_validation && phone_number_id.nil?
1202
1243
  fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.get_an_incoming_number"
1203
1244
  end
1204
1245
  # resource path
1205
- 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))
1206
1247
 
1207
1248
  # query parameters
1208
1249
  query_params = opts[:query_params] || {}
1209
- query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
1210
- query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
1211
- query_params[:'voiceEnabled'] = opts[:'voice_enabled'] if !opts[:'voice_enabled'].nil?
1212
- query_params[:'smsEnabled'] = opts[:'sms_enabled'] if !opts[:'sms_enabled'].nil?
1213
- query_params[:'applicationId'] = opts[:'application_id'] if !opts[:'application_id'].nil?
1214
- query_params[:'hasApplication'] = opts[:'has_application'] if !opts[:'has_application'].nil?
1215
1250
 
1216
1251
  # header parameters
1217
1252
  header_params = opts[:header_params] || {}
@@ -1222,15 +1257,16 @@ module Freeclimb
1222
1257
  form_params = opts[:form_params] || {}
1223
1258
 
1224
1259
  # http body (model)
1225
- post_body = opts[:body]
1260
+ post_body = opts[:debug_body]
1226
1261
 
1227
1262
  # return_type
1228
- return_type = opts[:return_type] || 'IncomingNumberResult'
1263
+ return_type = opts[:debug_return_type] || 'IncomingNumberResult'
1229
1264
 
1230
1265
  # auth_names
1231
- auth_names = opts[:auth_names] || ['fc']
1266
+ auth_names = opts[:debug_auth_names] || ['fc']
1232
1267
 
1233
1268
  new_options = opts.merge(
1269
+ :operation => :"DefaultApi.get_an_incoming_number",
1234
1270
  :header_params => header_params,
1235
1271
  :query_params => query_params,
1236
1272
  :form_params => form_params,
@@ -1263,12 +1299,13 @@ module Freeclimb
1263
1299
  if @api_client.config.debugging
1264
1300
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_sms_message ...'
1265
1301
  end
1302
+
1266
1303
  # verify the required parameter 'message_id' is set
1267
1304
  if @api_client.config.client_side_validation && message_id.nil?
1268
1305
  fail ArgumentError, "Missing the required parameter 'message_id' when calling DefaultApi.get_an_sms_message"
1269
1306
  end
1270
1307
  # resource path
1271
- 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))
1272
1309
 
1273
1310
  # query parameters
1274
1311
  query_params = opts[:query_params] || {}
@@ -1282,15 +1319,16 @@ module Freeclimb
1282
1319
  form_params = opts[:form_params] || {}
1283
1320
 
1284
1321
  # http body (model)
1285
- post_body = opts[:body]
1322
+ post_body = opts[:debug_body]
1286
1323
 
1287
1324
  # return_type
1288
- return_type = opts[:return_type] || 'MessageResult'
1325
+ return_type = opts[:debug_return_type] || 'MessageResult'
1289
1326
 
1290
1327
  # auth_names
1291
- auth_names = opts[:auth_names] || ['fc']
1328
+ auth_names = opts[:debug_auth_names] || ['fc']
1292
1329
 
1293
1330
  new_options = opts.merge(
1331
+ :operation => :"DefaultApi.get_an_sms_message",
1294
1332
  :header_params => header_params,
1295
1333
  :query_params => query_params,
1296
1334
  :form_params => form_params,
@@ -1323,12 +1361,13 @@ module Freeclimb
1323
1361
  if @api_client.config.debugging
1324
1362
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_head_member ...'
1325
1363
  end
1364
+
1326
1365
  # verify the required parameter 'queue_id' is set
1327
1366
  if @api_client.config.client_side_validation && queue_id.nil?
1328
1367
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.get_head_member"
1329
1368
  end
1330
1369
  # resource path
1331
- 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))
1332
1371
 
1333
1372
  # query parameters
1334
1373
  query_params = opts[:query_params] || {}
@@ -1342,15 +1381,16 @@ module Freeclimb
1342
1381
  form_params = opts[:form_params] || {}
1343
1382
 
1344
1383
  # http body (model)
1345
- post_body = opts[:body]
1384
+ post_body = opts[:debug_body]
1346
1385
 
1347
1386
  # return_type
1348
- return_type = opts[:return_type] || 'QueueMember'
1387
+ return_type = opts[:debug_return_type] || 'QueueMember'
1349
1388
 
1350
1389
  # auth_names
1351
- auth_names = opts[:auth_names] || ['fc']
1390
+ auth_names = opts[:debug_auth_names] || ['fc']
1352
1391
 
1353
1392
  new_options = opts.merge(
1393
+ :operation => :"DefaultApi.get_head_member",
1354
1394
  :header_params => header_params,
1355
1395
  :query_params => query_params,
1356
1396
  :form_params => form_params,
@@ -1384,7 +1424,7 @@ module Freeclimb
1384
1424
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_active_queues ...'
1385
1425
  end
1386
1426
  # resource path
1387
- 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))
1388
1428
 
1389
1429
  # query parameters
1390
1430
  query_params = opts[:query_params] || {}
@@ -1399,15 +1439,16 @@ module Freeclimb
1399
1439
  form_params = opts[:form_params] || {}
1400
1440
 
1401
1441
  # http body (model)
1402
- post_body = opts[:body]
1442
+ post_body = opts[:debug_body]
1403
1443
 
1404
1444
  # return_type
1405
- return_type = opts[:return_type] || 'QueueList'
1445
+ return_type = opts[:debug_return_type] || 'QueueList'
1406
1446
 
1407
1447
  # auth_names
1408
- auth_names = opts[:auth_names] || ['fc']
1448
+ auth_names = opts[:debug_auth_names] || ['fc']
1409
1449
 
1410
1450
  new_options = opts.merge(
1451
+ :operation => :"DefaultApi.list_active_queues",
1411
1452
  :header_params => header_params,
1412
1453
  :query_params => query_params,
1413
1454
  :form_params => form_params,
@@ -1439,7 +1480,7 @@ module Freeclimb
1439
1480
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_all_account_logs ...'
1440
1481
  end
1441
1482
  # resource path
1442
- 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))
1443
1484
 
1444
1485
  # query parameters
1445
1486
  query_params = opts[:query_params] || {}
@@ -1453,15 +1494,16 @@ module Freeclimb
1453
1494
  form_params = opts[:form_params] || {}
1454
1495
 
1455
1496
  # http body (model)
1456
- post_body = opts[:body]
1497
+ post_body = opts[:debug_body]
1457
1498
 
1458
1499
  # return_type
1459
- return_type = opts[:return_type] || 'LogList'
1500
+ return_type = opts[:debug_return_type] || 'LogList'
1460
1501
 
1461
1502
  # auth_names
1462
- auth_names = opts[:auth_names] || ['fc']
1503
+ auth_names = opts[:debug_auth_names] || ['fc']
1463
1504
 
1464
1505
  new_options = opts.merge(
1506
+ :operation => :"DefaultApi.list_all_account_logs",
1465
1507
  :header_params => header_params,
1466
1508
  :query_params => query_params,
1467
1509
  :form_params => form_params,
@@ -1495,7 +1537,7 @@ module Freeclimb
1495
1537
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_an_application ...'
1496
1538
  end
1497
1539
  # resource path
1498
- 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))
1499
1541
 
1500
1542
  # query parameters
1501
1543
  query_params = opts[:query_params] || {}
@@ -1510,15 +1552,16 @@ module Freeclimb
1510
1552
  form_params = opts[:form_params] || {}
1511
1553
 
1512
1554
  # http body (model)
1513
- post_body = opts[:body]
1555
+ post_body = opts[:debug_body]
1514
1556
 
1515
1557
  # return_type
1516
- return_type = opts[:return_type] || 'ApplicationList'
1558
+ return_type = opts[:debug_return_type] || 'ApplicationList'
1517
1559
 
1518
1560
  # auth_names
1519
- auth_names = opts[:auth_names] || ['fc']
1561
+ auth_names = opts[:debug_auth_names] || ['fc']
1520
1562
 
1521
1563
  new_options = opts.merge(
1564
+ :operation => :"DefaultApi.list_an_application",
1522
1565
  :header_params => header_params,
1523
1566
  :query_params => query_params,
1524
1567
  :form_params => form_params,
@@ -1541,6 +1584,11 @@ module Freeclimb
1541
1584
  # @option opts [String] :country Country of this phone number.
1542
1585
  # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (default to true)
1543
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
1544
1592
  # @return [AvailableNumberList]
1545
1593
  def list_available_numbers(opts = {})
1546
1594
  data, _status_code, _headers = list_available_numbers_with_http_info(opts)
@@ -1554,6 +1602,11 @@ module Freeclimb
1554
1602
  # @option opts [String] :country Country of this phone number.
1555
1603
  # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers.
1556
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
1557
1610
  # @return [Array<(AvailableNumberList, Integer, Hash)>] AvailableNumberList data, response status code and response headers
1558
1611
  def list_available_numbers_with_http_info(opts = {})
1559
1612
  if @api_client.config.debugging
@@ -1569,6 +1622,11 @@ module Freeclimb
1569
1622
  query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
1570
1623
  query_params[:'voiceEnabled'] = opts[:'voice_enabled'] if !opts[:'voice_enabled'].nil?
1571
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?
1572
1630
 
1573
1631
  # header parameters
1574
1632
  header_params = opts[:header_params] || {}
@@ -1579,15 +1637,16 @@ module Freeclimb
1579
1637
  form_params = opts[:form_params] || {}
1580
1638
 
1581
1639
  # http body (model)
1582
- post_body = opts[:body]
1640
+ post_body = opts[:debug_body]
1583
1641
 
1584
1642
  # return_type
1585
- return_type = opts[:return_type] || 'AvailableNumberList'
1643
+ return_type = opts[:debug_return_type] || 'AvailableNumberList'
1586
1644
 
1587
1645
  # auth_names
1588
- auth_names = opts[:auth_names] || ['fc']
1646
+ auth_names = opts[:debug_auth_names] || ['fc']
1589
1647
 
1590
1648
  new_options = opts.merge(
1649
+ :operation => :"DefaultApi.list_available_numbers",
1591
1650
  :header_params => header_params,
1592
1651
  :query_params => query_params,
1593
1652
  :form_params => form_params,
@@ -1620,12 +1679,13 @@ module Freeclimb
1620
1679
  if @api_client.config.debugging
1621
1680
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_call_logs ...'
1622
1681
  end
1682
+
1623
1683
  # verify the required parameter 'call_id' is set
1624
1684
  if @api_client.config.client_side_validation && call_id.nil?
1625
1685
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.list_call_logs"
1626
1686
  end
1627
1687
  # resource path
1628
- 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))
1629
1689
 
1630
1690
  # query parameters
1631
1691
  query_params = opts[:query_params] || {}
@@ -1639,15 +1699,16 @@ module Freeclimb
1639
1699
  form_params = opts[:form_params] || {}
1640
1700
 
1641
1701
  # http body (model)
1642
- post_body = opts[:body]
1702
+ post_body = opts[:debug_body]
1643
1703
 
1644
1704
  # return_type
1645
- return_type = opts[:return_type] || 'LogList'
1705
+ return_type = opts[:debug_return_type] || 'LogList'
1646
1706
 
1647
1707
  # auth_names
1648
- auth_names = opts[:auth_names] || ['fc']
1708
+ auth_names = opts[:debug_auth_names] || ['fc']
1649
1709
 
1650
1710
  new_options = opts.merge(
1711
+ :operation => :"DefaultApi.list_call_logs",
1651
1712
  :header_params => header_params,
1652
1713
  :query_params => query_params,
1653
1714
  :form_params => form_params,
@@ -1682,12 +1743,13 @@ module Freeclimb
1682
1743
  if @api_client.config.debugging
1683
1744
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_call_recordings ...'
1684
1745
  end
1746
+
1685
1747
  # verify the required parameter 'call_id' is set
1686
1748
  if @api_client.config.client_side_validation && call_id.nil?
1687
1749
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.list_call_recordings"
1688
1750
  end
1689
1751
  # resource path
1690
- 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))
1691
1753
 
1692
1754
  # query parameters
1693
1755
  query_params = opts[:query_params] || {}
@@ -1702,15 +1764,16 @@ module Freeclimb
1702
1764
  form_params = opts[:form_params] || {}
1703
1765
 
1704
1766
  # http body (model)
1705
- post_body = opts[:body]
1767
+ post_body = opts[:debug_body]
1706
1768
 
1707
1769
  # return_type
1708
- return_type = opts[:return_type] || 'RecordingList'
1770
+ return_type = opts[:debug_return_type] || 'RecordingList'
1709
1771
 
1710
1772
  # auth_names
1711
- auth_names = opts[:auth_names] || ['fc']
1773
+ auth_names = opts[:debug_auth_names] || ['fc']
1712
1774
 
1713
1775
  new_options = opts.merge(
1776
+ :operation => :"DefaultApi.list_call_recordings",
1714
1777
  :header_params => header_params,
1715
1778
  :query_params => query_params,
1716
1779
  :form_params => form_params,
@@ -1756,7 +1819,7 @@ module Freeclimb
1756
1819
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_calls ...'
1757
1820
  end
1758
1821
  # resource path
1759
- 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))
1760
1823
 
1761
1824
  # query parameters
1762
1825
  query_params = opts[:query_params] || {}
@@ -1777,15 +1840,16 @@ module Freeclimb
1777
1840
  form_params = opts[:form_params] || {}
1778
1841
 
1779
1842
  # http body (model)
1780
- post_body = opts[:body]
1843
+ post_body = opts[:debug_body]
1781
1844
 
1782
1845
  # return_type
1783
- return_type = opts[:return_type] || 'CallList'
1846
+ return_type = opts[:debug_return_type] || 'CallList'
1784
1847
 
1785
1848
  # auth_names
1786
- auth_names = opts[:auth_names] || ['fc']
1849
+ auth_names = opts[:debug_auth_names] || ['fc']
1787
1850
 
1788
1851
  new_options = opts.merge(
1852
+ :operation => :"DefaultApi.list_calls",
1789
1853
  :header_params => header_params,
1790
1854
  :query_params => query_params,
1791
1855
  :form_params => form_params,
@@ -1825,7 +1889,7 @@ module Freeclimb
1825
1889
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_conferences ...'
1826
1890
  end
1827
1891
  # resource path
1828
- 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))
1829
1893
 
1830
1894
  # query parameters
1831
1895
  query_params = opts[:query_params] || {}
@@ -1843,15 +1907,16 @@ module Freeclimb
1843
1907
  form_params = opts[:form_params] || {}
1844
1908
 
1845
1909
  # http body (model)
1846
- post_body = opts[:body]
1910
+ post_body = opts[:debug_body]
1847
1911
 
1848
1912
  # return_type
1849
- return_type = opts[:return_type] || 'ConferenceList'
1913
+ return_type = opts[:debug_return_type] || 'ConferenceList'
1850
1914
 
1851
1915
  # auth_names
1852
- auth_names = opts[:auth_names] || ['fc']
1916
+ auth_names = opts[:debug_auth_names] || ['fc']
1853
1917
 
1854
1918
  new_options = opts.merge(
1919
+ :operation => :"DefaultApi.list_conferences",
1855
1920
  :header_params => header_params,
1856
1921
  :query_params => query_params,
1857
1922
  :form_params => form_params,
@@ -1871,6 +1936,17 @@ module Freeclimb
1871
1936
  # @param [Hash] opts the optional parameters
1872
1937
  # @option opts [String] :phone_number Only show incoming phone number resources that match this PCRE-compatible regular expression.
1873
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
1874
1950
  # @return [IncomingNumberList]
1875
1951
  def list_incoming_numbers(opts = {})
1876
1952
  data, _status_code, _headers = list_incoming_numbers_with_http_info(opts)
@@ -1881,18 +1957,40 @@ module Freeclimb
1881
1957
  # @param [Hash] opts the optional parameters
1882
1958
  # @option opts [String] :phone_number Only show incoming phone number resources that match this PCRE-compatible regular expression.
1883
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
1884
1971
  # @return [Array<(IncomingNumberList, Integer, Hash)>] IncomingNumberList data, response status code and response headers
1885
1972
  def list_incoming_numbers_with_http_info(opts = {})
1886
1973
  if @api_client.config.debugging
1887
1974
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_incoming_numbers ...'
1888
1975
  end
1889
1976
  # resource path
1890
- 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))
1891
1978
 
1892
1979
  # query parameters
1893
1980
  query_params = opts[:query_params] || {}
1894
1981
  query_params[:'phoneNumber'] = opts[:'phone_number'] if !opts[:'phone_number'].nil?
1895
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?
1896
1994
 
1897
1995
  # header parameters
1898
1996
  header_params = opts[:header_params] || {}
@@ -1903,15 +2001,16 @@ module Freeclimb
1903
2001
  form_params = opts[:form_params] || {}
1904
2002
 
1905
2003
  # http body (model)
1906
- post_body = opts[:body]
2004
+ post_body = opts[:debug_body]
1907
2005
 
1908
2006
  # return_type
1909
- return_type = opts[:return_type] || 'IncomingNumberList'
2007
+ return_type = opts[:debug_return_type] || 'IncomingNumberList'
1910
2008
 
1911
2009
  # auth_names
1912
- auth_names = opts[:auth_names] || ['fc']
2010
+ auth_names = opts[:debug_auth_names] || ['fc']
1913
2011
 
1914
2012
  new_options = opts.merge(
2013
+ :operation => :"DefaultApi.list_incoming_numbers",
1915
2014
  :header_params => header_params,
1916
2015
  :query_params => query_params,
1917
2016
  :form_params => form_params,
@@ -1944,12 +2043,13 @@ module Freeclimb
1944
2043
  if @api_client.config.debugging
1945
2044
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_members ...'
1946
2045
  end
2046
+
1947
2047
  # verify the required parameter 'queue_id' is set
1948
2048
  if @api_client.config.client_side_validation && queue_id.nil?
1949
2049
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.list_members"
1950
2050
  end
1951
2051
  # resource path
1952
- 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))
1953
2053
 
1954
2054
  # query parameters
1955
2055
  query_params = opts[:query_params] || {}
@@ -1963,15 +2063,16 @@ module Freeclimb
1963
2063
  form_params = opts[:form_params] || {}
1964
2064
 
1965
2065
  # http body (model)
1966
- post_body = opts[:body]
2066
+ post_body = opts[:debug_body]
1967
2067
 
1968
2068
  # return_type
1969
- return_type = opts[:return_type] || 'QueueMemberList'
2069
+ return_type = opts[:debug_return_type] || 'QueueMemberList'
1970
2070
 
1971
2071
  # auth_names
1972
- auth_names = opts[:auth_names] || ['fc']
2072
+ auth_names = opts[:debug_auth_names] || ['fc']
1973
2073
 
1974
2074
  new_options = opts.merge(
2075
+ :operation => :"DefaultApi.list_members",
1975
2076
  :header_params => header_params,
1976
2077
  :query_params => query_params,
1977
2078
  :form_params => form_params,
@@ -2008,12 +2109,13 @@ module Freeclimb
2008
2109
  if @api_client.config.debugging
2009
2110
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_participants ...'
2010
2111
  end
2112
+
2011
2113
  # verify the required parameter 'conference_id' is set
2012
2114
  if @api_client.config.client_side_validation && conference_id.nil?
2013
2115
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.list_participants"
2014
2116
  end
2015
2117
  # resource path
2016
- 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))
2017
2119
 
2018
2120
  # query parameters
2019
2121
  query_params = opts[:query_params] || {}
@@ -2029,15 +2131,16 @@ module Freeclimb
2029
2131
  form_params = opts[:form_params] || {}
2030
2132
 
2031
2133
  # http body (model)
2032
- post_body = opts[:body]
2134
+ post_body = opts[:debug_body]
2033
2135
 
2034
2136
  # return_type
2035
- return_type = opts[:return_type] || 'ConferenceParticipantList'
2137
+ return_type = opts[:debug_return_type] || 'ConferenceParticipantList'
2036
2138
 
2037
2139
  # auth_names
2038
- auth_names = opts[:auth_names] || ['fc']
2140
+ auth_names = opts[:debug_auth_names] || ['fc']
2039
2141
 
2040
2142
  new_options = opts.merge(
2143
+ :operation => :"DefaultApi.list_participants",
2041
2144
  :header_params => header_params,
2042
2145
  :query_params => query_params,
2043
2146
  :form_params => form_params,
@@ -2075,7 +2178,7 @@ module Freeclimb
2075
2178
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_recordings ...'
2076
2179
  end
2077
2180
  # resource path
2078
- 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))
2079
2182
 
2080
2183
  # query parameters
2081
2184
  query_params = opts[:query_params] || {}
@@ -2092,15 +2195,16 @@ module Freeclimb
2092
2195
  form_params = opts[:form_params] || {}
2093
2196
 
2094
2197
  # http body (model)
2095
- post_body = opts[:body]
2198
+ post_body = opts[:debug_body]
2096
2199
 
2097
2200
  # return_type
2098
- return_type = opts[:return_type] || 'RecordingList'
2201
+ return_type = opts[:debug_return_type] || 'RecordingList'
2099
2202
 
2100
2203
  # auth_names
2101
- auth_names = opts[:auth_names] || ['fc']
2204
+ auth_names = opts[:debug_auth_names] || ['fc']
2102
2205
 
2103
2206
  new_options = opts.merge(
2207
+ :operation => :"DefaultApi.list_recordings",
2104
2208
  :header_params => header_params,
2105
2209
  :query_params => query_params,
2106
2210
  :form_params => form_params,
@@ -2123,7 +2227,6 @@ module Freeclimb
2123
2227
  # @option opts [String] :begin_time Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*.
2124
2228
  # @option opts [String] :end_time Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*..
2125
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.
2126
- # @option opts [String] :account_id String that uniquely identifies this account resource.
2127
2230
  # @return [MessagesList]
2128
2231
  def list_sms_messages(opts = {})
2129
2232
  data, _status_code, _headers = list_sms_messages_with_http_info(opts)
@@ -2137,14 +2240,13 @@ module Freeclimb
2137
2240
  # @option opts [String] :begin_time Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*.
2138
2241
  # @option opts [String] :end_time Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*..
2139
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.
2140
- # @option opts [String] :account_id String that uniquely identifies this account resource.
2141
2243
  # @return [Array<(MessagesList, Integer, Hash)>] MessagesList data, response status code and response headers
2142
2244
  def list_sms_messages_with_http_info(opts = {})
2143
2245
  if @api_client.config.debugging
2144
2246
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_sms_messages ...'
2145
2247
  end
2146
2248
  # resource path
2147
- 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))
2148
2250
 
2149
2251
  # query parameters
2150
2252
  query_params = opts[:query_params] || {}
@@ -2153,7 +2255,6 @@ module Freeclimb
2153
2255
  query_params[:'beginTime'] = opts[:'begin_time'] if !opts[:'begin_time'].nil?
2154
2256
  query_params[:'endTime'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2155
2257
  query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
2156
- query_params[:'accountID'] = opts[:'account_id'] if !opts[:'account_id'].nil?
2157
2258
 
2158
2259
  # header parameters
2159
2260
  header_params = opts[:header_params] || {}
@@ -2164,15 +2265,16 @@ module Freeclimb
2164
2265
  form_params = opts[:form_params] || {}
2165
2266
 
2166
2267
  # http body (model)
2167
- post_body = opts[:body]
2268
+ post_body = opts[:debug_body]
2168
2269
 
2169
2270
  # return_type
2170
- return_type = opts[:return_type] || 'MessagesList'
2271
+ return_type = opts[:debug_return_type] || 'MessagesList'
2171
2272
 
2172
2273
  # auth_names
2173
- auth_names = opts[:auth_names] || ['fc']
2274
+ auth_names = opts[:debug_auth_names] || ['fc']
2174
2275
 
2175
2276
  new_options = opts.merge(
2277
+ :operation => :"DefaultApi.list_sms_messages",
2176
2278
  :header_params => header_params,
2177
2279
  :query_params => query_params,
2178
2280
  :form_params => form_params,
@@ -2206,7 +2308,7 @@ module Freeclimb
2206
2308
  @api_client.config.logger.debug 'Calling API: DefaultApi.make_a_call ...'
2207
2309
  end
2208
2310
  # resource path
2209
- 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))
2210
2312
 
2211
2313
  # query parameters
2212
2314
  query_params = opts[:query_params] || {}
@@ -2216,21 +2318,25 @@ module Freeclimb
2216
2318
  # HTTP header 'Accept' (if needed)
2217
2319
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2218
2320
  # HTTP header 'Content-Type'
2219
- 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
2220
2325
 
2221
2326
  # form parameters
2222
2327
  form_params = opts[:form_params] || {}
2223
2328
 
2224
2329
  # http body (model)
2225
- 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'])
2226
2331
 
2227
2332
  # return_type
2228
- return_type = opts[:return_type] || 'CallResult'
2333
+ return_type = opts[:debug_return_type] || 'CallResult'
2229
2334
 
2230
2335
  # auth_names
2231
- auth_names = opts[:auth_names] || ['fc']
2336
+ auth_names = opts[:debug_auth_names] || ['fc']
2232
2337
 
2233
2338
  new_options = opts.merge(
2339
+ :operation => :"DefaultApi.make_a_call",
2234
2340
  :header_params => header_params,
2235
2341
  :query_params => query_params,
2236
2342
  :form_params => form_params,
@@ -2265,16 +2371,18 @@ module Freeclimb
2265
2371
  if @api_client.config.debugging
2266
2372
  @api_client.config.logger.debug 'Calling API: DefaultApi.remove_a_participant ...'
2267
2373
  end
2374
+
2268
2375
  # verify the required parameter 'conference_id' is set
2269
2376
  if @api_client.config.client_side_validation && conference_id.nil?
2270
2377
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.remove_a_participant"
2271
2378
  end
2379
+
2272
2380
  # verify the required parameter 'call_id' is set
2273
2381
  if @api_client.config.client_side_validation && call_id.nil?
2274
2382
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.remove_a_participant"
2275
2383
  end
2276
2384
  # resource path
2277
- 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))
2278
2386
 
2279
2387
  # query parameters
2280
2388
  query_params = opts[:query_params] || {}
@@ -2286,15 +2394,16 @@ module Freeclimb
2286
2394
  form_params = opts[:form_params] || {}
2287
2395
 
2288
2396
  # http body (model)
2289
- post_body = opts[:body]
2397
+ post_body = opts[:debug_body]
2290
2398
 
2291
2399
  # return_type
2292
- return_type = opts[:return_type]
2400
+ return_type = opts[:debug_return_type]
2293
2401
 
2294
2402
  # auth_names
2295
- auth_names = opts[:auth_names] || ['fc']
2403
+ auth_names = opts[:debug_auth_names] || ['fc']
2296
2404
 
2297
2405
  new_options = opts.merge(
2406
+ :operation => :"DefaultApi.remove_a_participant",
2298
2407
  :header_params => header_params,
2299
2408
  :query_params => query_params,
2300
2409
  :form_params => form_params,
@@ -2327,12 +2436,13 @@ module Freeclimb
2327
2436
  if @api_client.config.debugging
2328
2437
  @api_client.config.logger.debug 'Calling API: DefaultApi.send_an_sms_message ...'
2329
2438
  end
2439
+
2330
2440
  # verify the required parameter 'message_request' is set
2331
2441
  if @api_client.config.client_side_validation && message_request.nil?
2332
2442
  fail ArgumentError, "Missing the required parameter 'message_request' when calling DefaultApi.send_an_sms_message"
2333
2443
  end
2334
2444
  # resource path
2335
- 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))
2336
2446
 
2337
2447
  # query parameters
2338
2448
  query_params = opts[:query_params] || {}
@@ -2342,21 +2452,25 @@ module Freeclimb
2342
2452
  # HTTP header 'Accept' (if needed)
2343
2453
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2344
2454
  # HTTP header 'Content-Type'
2345
- 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
2346
2459
 
2347
2460
  # form parameters
2348
2461
  form_params = opts[:form_params] || {}
2349
2462
 
2350
2463
  # http body (model)
2351
- 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)
2352
2465
 
2353
2466
  # return_type
2354
- return_type = opts[:return_type] || 'MessageResult'
2467
+ return_type = opts[:debug_return_type] || 'MessageResult'
2355
2468
 
2356
2469
  # auth_names
2357
- auth_names = opts[:auth_names] || ['fc']
2470
+ auth_names = opts[:debug_auth_names] || ['fc']
2358
2471
 
2359
2472
  new_options = opts.merge(
2473
+ :operation => :"DefaultApi.send_an_sms_message",
2360
2474
  :header_params => header_params,
2361
2475
  :query_params => query_params,
2362
2476
  :form_params => form_params,
@@ -2389,12 +2503,13 @@ module Freeclimb
2389
2503
  if @api_client.config.debugging
2390
2504
  @api_client.config.logger.debug 'Calling API: DefaultApi.stream_a_recording_file ...'
2391
2505
  end
2506
+
2392
2507
  # verify the required parameter 'recording_id' is set
2393
2508
  if @api_client.config.client_side_validation && recording_id.nil?
2394
2509
  fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.stream_a_recording_file"
2395
2510
  end
2396
2511
  # resource path
2397
- 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))
2398
2513
 
2399
2514
  # query parameters
2400
2515
  query_params = opts[:query_params] || {}
@@ -2408,15 +2523,16 @@ module Freeclimb
2408
2523
  form_params = opts[:form_params] || {}
2409
2524
 
2410
2525
  # http body (model)
2411
- post_body = opts[:body]
2526
+ post_body = opts[:debug_body]
2412
2527
 
2413
2528
  # return_type
2414
- return_type = opts[:return_type] || 'File'
2529
+ return_type = opts[:debug_return_type] || 'File'
2415
2530
 
2416
2531
  # auth_names
2417
- auth_names = opts[:auth_names] || ['fc']
2532
+ auth_names = opts[:debug_auth_names] || ['fc']
2418
2533
 
2419
2534
  new_options = opts.merge(
2535
+ :operation => :"DefaultApi.stream_a_recording_file",
2420
2536
  :header_params => header_params,
2421
2537
  :query_params => query_params,
2422
2538
  :form_params => form_params,
@@ -2451,12 +2567,13 @@ module Freeclimb
2451
2567
  if @api_client.config.debugging
2452
2568
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_conference ...'
2453
2569
  end
2570
+
2454
2571
  # verify the required parameter 'conference_id' is set
2455
2572
  if @api_client.config.client_side_validation && conference_id.nil?
2456
2573
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.update_a_conference"
2457
2574
  end
2458
2575
  # resource path
2459
- 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))
2460
2577
 
2461
2578
  # query parameters
2462
2579
  query_params = opts[:query_params] || {}
@@ -2466,21 +2583,25 @@ module Freeclimb
2466
2583
  # HTTP header 'Accept' (if needed)
2467
2584
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2468
2585
  # HTTP header 'Content-Type'
2469
- 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
2470
2590
 
2471
2591
  # form parameters
2472
2592
  form_params = opts[:form_params] || {}
2473
2593
 
2474
2594
  # http body (model)
2475
- 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'])
2476
2596
 
2477
2597
  # return_type
2478
- return_type = opts[:return_type] || 'ConferenceResult'
2598
+ return_type = opts[:debug_return_type] || 'ConferenceResult'
2479
2599
 
2480
2600
  # auth_names
2481
- auth_names = opts[:auth_names] || ['fc']
2601
+ auth_names = opts[:debug_auth_names] || ['fc']
2482
2602
 
2483
2603
  new_options = opts.merge(
2604
+ :operation => :"DefaultApi.update_a_conference",
2484
2605
  :header_params => header_params,
2485
2606
  :query_params => query_params,
2486
2607
  :form_params => form_params,
@@ -2515,16 +2636,18 @@ module Freeclimb
2515
2636
  if @api_client.config.debugging
2516
2637
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_live_call ...'
2517
2638
  end
2639
+
2518
2640
  # verify the required parameter 'call_id' is set
2519
2641
  if @api_client.config.client_side_validation && call_id.nil?
2520
2642
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.update_a_live_call"
2521
2643
  end
2644
+
2522
2645
  # verify the required parameter 'update_call_request' is set
2523
2646
  if @api_client.config.client_side_validation && update_call_request.nil?
2524
2647
  fail ArgumentError, "Missing the required parameter 'update_call_request' when calling DefaultApi.update_a_live_call"
2525
2648
  end
2526
2649
  # resource path
2527
- 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))
2528
2651
 
2529
2652
  # query parameters
2530
2653
  query_params = opts[:query_params] || {}
@@ -2532,21 +2655,25 @@ module Freeclimb
2532
2655
  # header parameters
2533
2656
  header_params = opts[:header_params] || {}
2534
2657
  # HTTP header 'Content-Type'
2535
- 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
2536
2662
 
2537
2663
  # form parameters
2538
2664
  form_params = opts[:form_params] || {}
2539
2665
 
2540
2666
  # http body (model)
2541
- 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)
2542
2668
 
2543
2669
  # return_type
2544
- return_type = opts[:return_type]
2670
+ return_type = opts[:debug_return_type]
2545
2671
 
2546
2672
  # auth_names
2547
- auth_names = opts[:auth_names] || ['fc']
2673
+ auth_names = opts[:debug_auth_names] || ['fc']
2548
2674
 
2549
2675
  new_options = opts.merge(
2676
+ :operation => :"DefaultApi.update_a_live_call",
2550
2677
  :header_params => header_params,
2551
2678
  :query_params => query_params,
2552
2679
  :form_params => form_params,
@@ -2583,16 +2710,18 @@ module Freeclimb
2583
2710
  if @api_client.config.debugging
2584
2711
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_participant ...'
2585
2712
  end
2713
+
2586
2714
  # verify the required parameter 'conference_id' is set
2587
2715
  if @api_client.config.client_side_validation && conference_id.nil?
2588
2716
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.update_a_participant"
2589
2717
  end
2718
+
2590
2719
  # verify the required parameter 'call_id' is set
2591
2720
  if @api_client.config.client_side_validation && call_id.nil?
2592
2721
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.update_a_participant"
2593
2722
  end
2594
2723
  # resource path
2595
- 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))
2596
2725
 
2597
2726
  # query parameters
2598
2727
  query_params = opts[:query_params] || {}
@@ -2602,21 +2731,25 @@ module Freeclimb
2602
2731
  # HTTP header 'Accept' (if needed)
2603
2732
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2604
2733
  # HTTP header 'Content-Type'
2605
- 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
2606
2738
 
2607
2739
  # form parameters
2608
2740
  form_params = opts[:form_params] || {}
2609
2741
 
2610
2742
  # http body (model)
2611
- 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'])
2612
2744
 
2613
2745
  # return_type
2614
- return_type = opts[:return_type] || 'ConferenceParticipantResult'
2746
+ return_type = opts[:debug_return_type] || 'ConferenceParticipantResult'
2615
2747
 
2616
2748
  # auth_names
2617
- auth_names = opts[:auth_names] || ['fc']
2749
+ auth_names = opts[:debug_auth_names] || ['fc']
2618
2750
 
2619
2751
  new_options = opts.merge(
2752
+ :operation => :"DefaultApi.update_a_participant",
2620
2753
  :header_params => header_params,
2621
2754
  :query_params => query_params,
2622
2755
  :form_params => form_params,
@@ -2651,12 +2784,13 @@ module Freeclimb
2651
2784
  if @api_client.config.debugging
2652
2785
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_queue ...'
2653
2786
  end
2787
+
2654
2788
  # verify the required parameter 'queue_id' is set
2655
2789
  if @api_client.config.client_side_validation && queue_id.nil?
2656
2790
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.update_a_queue"
2657
2791
  end
2658
2792
  # resource path
2659
- 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))
2660
2794
 
2661
2795
  # query parameters
2662
2796
  query_params = opts[:query_params] || {}
@@ -2666,21 +2800,25 @@ module Freeclimb
2666
2800
  # HTTP header 'Accept' (if needed)
2667
2801
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2668
2802
  # HTTP header 'Content-Type'
2669
- 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
2670
2807
 
2671
2808
  # form parameters
2672
2809
  form_params = opts[:form_params] || {}
2673
2810
 
2674
2811
  # http body (model)
2675
- 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'])
2676
2813
 
2677
2814
  # return_type
2678
- return_type = opts[:return_type] || 'QueueResult'
2815
+ return_type = opts[:debug_return_type] || 'QueueResult'
2679
2816
 
2680
2817
  # auth_names
2681
- auth_names = opts[:auth_names] || ['fc']
2818
+ auth_names = opts[:debug_auth_names] || ['fc']
2682
2819
 
2683
2820
  new_options = opts.merge(
2821
+ :operation => :"DefaultApi.update_a_queue",
2684
2822
  :header_params => header_params,
2685
2823
  :query_params => query_params,
2686
2824
  :form_params => form_params,
@@ -2714,7 +2852,7 @@ module Freeclimb
2714
2852
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_an_account ...'
2715
2853
  end
2716
2854
  # resource path
2717
- 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))
2718
2856
 
2719
2857
  # query parameters
2720
2858
  query_params = opts[:query_params] || {}
@@ -2722,21 +2860,25 @@ module Freeclimb
2722
2860
  # header parameters
2723
2861
  header_params = opts[:header_params] || {}
2724
2862
  # HTTP header 'Content-Type'
2725
- 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
2726
2867
 
2727
2868
  # form parameters
2728
2869
  form_params = opts[:form_params] || {}
2729
2870
 
2730
2871
  # http body (model)
2731
- 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'])
2732
2873
 
2733
2874
  # return_type
2734
- return_type = opts[:return_type]
2875
+ return_type = opts[:debug_return_type]
2735
2876
 
2736
2877
  # auth_names
2737
- auth_names = opts[:auth_names] || ['fc']
2878
+ auth_names = opts[:debug_auth_names] || ['fc']
2738
2879
 
2739
2880
  new_options = opts.merge(
2881
+ :operation => :"DefaultApi.update_an_account",
2740
2882
  :header_params => header_params,
2741
2883
  :query_params => query_params,
2742
2884
  :form_params => form_params,
@@ -2771,12 +2913,13 @@ module Freeclimb
2771
2913
  if @api_client.config.debugging
2772
2914
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_an_application ...'
2773
2915
  end
2916
+
2774
2917
  # verify the required parameter 'application_id' is set
2775
2918
  if @api_client.config.client_side_validation && application_id.nil?
2776
2919
  fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.update_an_application"
2777
2920
  end
2778
2921
  # resource path
2779
- 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))
2780
2923
 
2781
2924
  # query parameters
2782
2925
  query_params = opts[:query_params] || {}
@@ -2786,21 +2929,25 @@ module Freeclimb
2786
2929
  # HTTP header 'Accept' (if needed)
2787
2930
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2788
2931
  # HTTP header 'Content-Type'
2789
- 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
2790
2936
 
2791
2937
  # form parameters
2792
2938
  form_params = opts[:form_params] || {}
2793
2939
 
2794
2940
  # http body (model)
2795
- 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'])
2796
2942
 
2797
2943
  # return_type
2798
- return_type = opts[:return_type] || 'ApplicationResult'
2944
+ return_type = opts[:debug_return_type] || 'ApplicationResult'
2799
2945
 
2800
2946
  # auth_names
2801
- auth_names = opts[:auth_names] || ['fc']
2947
+ auth_names = opts[:debug_auth_names] || ['fc']
2802
2948
 
2803
2949
  new_options = opts.merge(
2950
+ :operation => :"DefaultApi.update_an_application",
2804
2951
  :header_params => header_params,
2805
2952
  :query_params => query_params,
2806
2953
  :form_params => form_params,
@@ -2835,12 +2982,13 @@ module Freeclimb
2835
2982
  if @api_client.config.debugging
2836
2983
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_an_incoming_number ...'
2837
2984
  end
2985
+
2838
2986
  # verify the required parameter 'phone_number_id' is set
2839
2987
  if @api_client.config.client_side_validation && phone_number_id.nil?
2840
2988
  fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.update_an_incoming_number"
2841
2989
  end
2842
2990
  # resource path
2843
- 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))
2844
2992
 
2845
2993
  # query parameters
2846
2994
  query_params = opts[:query_params] || {}
@@ -2850,21 +2998,25 @@ module Freeclimb
2850
2998
  # HTTP header 'Accept' (if needed)
2851
2999
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2852
3000
  # HTTP header 'Content-Type'
2853
- 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
2854
3005
 
2855
3006
  # form parameters
2856
3007
  form_params = opts[:form_params] || {}
2857
3008
 
2858
3009
  # http body (model)
2859
- 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'])
2860
3011
 
2861
3012
  # return_type
2862
- return_type = opts[:return_type] || 'IncomingNumberResult'
3013
+ return_type = opts[:debug_return_type] || 'IncomingNumberResult'
2863
3014
 
2864
3015
  # auth_names
2865
- auth_names = opts[:auth_names] || ['fc']
3016
+ auth_names = opts[:debug_auth_names] || ['fc']
2866
3017
 
2867
3018
  new_options = opts.merge(
3019
+ :operation => :"DefaultApi.update_an_incoming_number",
2868
3020
  :header_params => header_params,
2869
3021
  :query_params => query_params,
2870
3022
  :form_params => form_params,