freeclimb 5.1.0 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (334) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/Gemfile +4 -5
  4. data/Gemfile.lock +20 -7
  5. data/README.md +17 -4
  6. data/Rakefile +1 -1
  7. data/docs/CallResult.md +2 -2
  8. data/docs/CreateConference.md +4 -2
  9. data/docs/CreateConferenceRequest.md +1 -1
  10. data/docs/DefaultApi.md +369 -2
  11. data/docs/ExportList.md +32 -0
  12. data/docs/ExportOutputType.md +16 -0
  13. data/docs/ExportRequest.md +24 -0
  14. data/docs/ExportRequestOutput.md +18 -0
  15. data/docs/ExportResourceType.md +17 -0
  16. data/docs/ExportResult.md +40 -0
  17. data/docs/ExportResultOutput.md +18 -0
  18. data/docs/ExportStatus.md +21 -0
  19. data/freeclimb.gemspec +21 -26
  20. data/lib/freeclimb/api/default_api.rb +1191 -878
  21. data/lib/freeclimb/api_client.rb +78 -83
  22. data/lib/freeclimb/api_error.rb +17 -19
  23. data/lib/freeclimb/configuration.rb +27 -29
  24. data/lib/freeclimb/models/account_request.rb +36 -41
  25. data/lib/freeclimb/models/account_result.rb +88 -92
  26. data/lib/freeclimb/models/account_status.rb +12 -14
  27. data/lib/freeclimb/models/account_type.rb +12 -14
  28. data/lib/freeclimb/models/add_to_conference.rb +81 -85
  29. data/lib/freeclimb/models/add_to_conference_notification_webhook.rb +99 -103
  30. data/lib/freeclimb/models/add_to_queue_notification_webhook.rb +78 -82
  31. data/lib/freeclimb/models/answered_by.rb +12 -14
  32. data/lib/freeclimb/models/application_list.rb +74 -78
  33. data/lib/freeclimb/models/application_request.rb +66 -70
  34. data/lib/freeclimb/models/application_result.rb +100 -104
  35. data/lib/freeclimb/models/available_number.rb +66 -70
  36. data/lib/freeclimb/models/available_number_list.rb +74 -78
  37. data/lib/freeclimb/models/barge_in_reason.rb +12 -14
  38. data/lib/freeclimb/models/buy_incoming_number_request.rb +41 -45
  39. data/lib/freeclimb/models/call_control_webhook.rb +56 -61
  40. data/lib/freeclimb/models/call_direction.rb +12 -14
  41. data/lib/freeclimb/models/call_ended_reason.rb +12 -14
  42. data/lib/freeclimb/models/call_list.rb +74 -78
  43. data/lib/freeclimb/models/call_result.rb +144 -148
  44. data/lib/freeclimb/models/call_status.rb +12 -14
  45. data/lib/freeclimb/models/call_status_webhook.rb +84 -88
  46. data/lib/freeclimb/models/capabilities.rb +55 -59
  47. data/lib/freeclimb/models/completion_request.rb +32 -36
  48. data/lib/freeclimb/models/completion_result.rb +36 -40
  49. data/lib/freeclimb/models/completion_result_status.rb +12 -14
  50. data/lib/freeclimb/models/conference_list.rb +74 -78
  51. data/lib/freeclimb/models/conference_participant_list.rb +74 -78
  52. data/lib/freeclimb/models/conference_participant_result.rb +88 -92
  53. data/lib/freeclimb/models/conference_recording_status_webhook.rb +99 -103
  54. data/lib/freeclimb/models/conference_result.rb +106 -110
  55. data/lib/freeclimb/models/conference_status.rb +12 -14
  56. data/lib/freeclimb/models/conference_status_webhook.rb +102 -106
  57. data/lib/freeclimb/models/create_conference.rb +71 -64
  58. data/lib/freeclimb/models/create_conference_request.rb +55 -54
  59. data/lib/freeclimb/models/create_conference_webhook.rb +102 -106
  60. data/lib/freeclimb/models/create_web_rtc_token.rb +42 -46
  61. data/lib/freeclimb/models/dequeue.rb +28 -33
  62. data/lib/freeclimb/models/dequeue_webhook.rb +89 -93
  63. data/lib/freeclimb/models/enqueue.rb +48 -52
  64. data/lib/freeclimb/models/export_list.rb +304 -0
  65. data/lib/freeclimb/models/export_output_type.rb +34 -0
  66. data/lib/freeclimb/models/export_request.rb +276 -0
  67. data/lib/freeclimb/models/export_request_output.rb +243 -0
  68. data/lib/freeclimb/models/export_resource_type.rb +35 -0
  69. data/lib/freeclimb/models/export_result.rb +405 -0
  70. data/lib/freeclimb/models/export_result_output.rb +243 -0
  71. data/lib/freeclimb/models/export_status.rb +39 -0
  72. data/lib/freeclimb/models/filter_logs_request.rb +31 -35
  73. data/lib/freeclimb/models/get_digits.rb +73 -77
  74. data/lib/freeclimb/models/get_digits_reason.rb +12 -14
  75. data/lib/freeclimb/models/get_digits_webhook.rb +93 -97
  76. data/lib/freeclimb/models/get_speech.rb +94 -97
  77. data/lib/freeclimb/models/get_speech_reason.rb +12 -14
  78. data/lib/freeclimb/models/get_speech_webhook.rb +118 -122
  79. data/lib/freeclimb/models/grammar_file_built_in.rb +12 -14
  80. data/lib/freeclimb/models/grammar_type.rb +12 -14
  81. data/lib/freeclimb/models/hangup.rb +34 -39
  82. data/lib/freeclimb/models/if_machine.rb +12 -14
  83. data/lib/freeclimb/models/inbound_call_webhook.rb +85 -89
  84. data/lib/freeclimb/models/incoming_number_list.rb +74 -78
  85. data/lib/freeclimb/models/incoming_number_request.rb +41 -45
  86. data/lib/freeclimb/models/incoming_number_result.rb +122 -126
  87. data/lib/freeclimb/models/language.rb +12 -14
  88. data/lib/freeclimb/models/leave_conference_webhook.rb +79 -83
  89. data/lib/freeclimb/models/log_level.rb +12 -14
  90. data/lib/freeclimb/models/log_list.rb +74 -78
  91. data/lib/freeclimb/models/log_result.rb +67 -71
  92. data/lib/freeclimb/models/machine_detected_webhook.rb +89 -93
  93. data/lib/freeclimb/models/machine_type.rb +12 -14
  94. data/lib/freeclimb/models/make_call_request.rb +77 -81
  95. data/lib/freeclimb/models/message_delivery_webhook.rb +81 -86
  96. data/lib/freeclimb/models/message_direction.rb +12 -14
  97. data/lib/freeclimb/models/message_request.rb +72 -75
  98. data/lib/freeclimb/models/message_result.rb +135 -139
  99. data/lib/freeclimb/models/message_status.rb +12 -14
  100. data/lib/freeclimb/models/message_status_webhook.rb +86 -90
  101. data/lib/freeclimb/models/messages_list.rb +74 -78
  102. data/lib/freeclimb/models/mutable_resource_model.rb +46 -51
  103. data/lib/freeclimb/models/out_dial.rb +80 -84
  104. data/lib/freeclimb/models/out_dial_api_connect_webhook.rb +84 -88
  105. data/lib/freeclimb/models/out_dial_connect_webhook.rb +84 -88
  106. data/lib/freeclimb/models/out_dial_start_webhook.rb +90 -94
  107. data/lib/freeclimb/models/pagination_model.rb +67 -71
  108. data/lib/freeclimb/models/park.rb +44 -48
  109. data/lib/freeclimb/models/pause.rb +33 -37
  110. data/lib/freeclimb/models/percl_command.rb +36 -40
  111. data/lib/freeclimb/models/percl_script.rb +32 -36
  112. data/lib/freeclimb/models/play.rb +44 -48
  113. data/lib/freeclimb/models/play_beep.rb +12 -14
  114. data/lib/freeclimb/models/play_early_media.rb +33 -37
  115. data/lib/freeclimb/models/queue_list.rb +74 -78
  116. data/lib/freeclimb/models/queue_member.rb +55 -59
  117. data/lib/freeclimb/models/queue_member_list.rb +74 -78
  118. data/lib/freeclimb/models/queue_request.rb +37 -42
  119. data/lib/freeclimb/models/queue_result.rb +88 -92
  120. data/lib/freeclimb/models/queue_result_status.rb +12 -14
  121. data/lib/freeclimb/models/queue_wait_webhook.rb +94 -98
  122. data/lib/freeclimb/models/record_utterance.rb +63 -67
  123. data/lib/freeclimb/models/record_utterance_term_reason.rb +12 -14
  124. data/lib/freeclimb/models/record_webhook.rb +119 -123
  125. data/lib/freeclimb/models/recording_list.rb +74 -78
  126. data/lib/freeclimb/models/recording_result.rb +76 -80
  127. data/lib/freeclimb/models/redirect.rb +33 -37
  128. data/lib/freeclimb/models/redirect_webhook.rb +84 -88
  129. data/lib/freeclimb/models/reject.rb +34 -39
  130. data/lib/freeclimb/models/remove_from_conference.rb +28 -33
  131. data/lib/freeclimb/models/remove_from_queue_notification_webhook.rb +89 -93
  132. data/lib/freeclimb/models/request_type.rb +12 -14
  133. data/lib/freeclimb/models/say.rb +49 -53
  134. data/lib/freeclimb/models/send_digits.rb +43 -47
  135. data/lib/freeclimb/models/set_dtmf_pass_through.rb +34 -39
  136. data/lib/freeclimb/models/set_listen.rb +34 -39
  137. data/lib/freeclimb/models/set_talk.rb +34 -39
  138. data/lib/freeclimb/models/sms.rb +48 -52
  139. data/lib/freeclimb/models/sms_ten_dlc_brand.rb +187 -190
  140. data/lib/freeclimb/models/sms_ten_dlc_brand_alt_business_id_type.rb +12 -14
  141. data/lib/freeclimb/models/sms_ten_dlc_brand_entity_type.rb +12 -14
  142. data/lib/freeclimb/models/sms_ten_dlc_brand_identity_status.rb +12 -14
  143. data/lib/freeclimb/models/sms_ten_dlc_brand_relationship.rb +12 -14
  144. data/lib/freeclimb/models/sms_ten_dlc_brand_stock_exchange.rb +12 -14
  145. data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +74 -78
  146. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +226 -229
  147. data/lib/freeclimb/models/sms_ten_dlc_campaign_status.rb +12 -14
  148. data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +74 -78
  149. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +186 -189
  150. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +84 -87
  151. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_status.rb +12 -14
  152. data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +74 -78
  153. data/lib/freeclimb/models/sms_toll_free_campaign.rb +61 -64
  154. data/lib/freeclimb/models/sms_toll_free_campaign_registration_status.rb +12 -14
  155. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +74 -78
  156. data/lib/freeclimb/models/start_record_call.rb +28 -33
  157. data/lib/freeclimb/models/terminate_conference.rb +28 -33
  158. data/lib/freeclimb/models/tfn.rb +31 -35
  159. data/lib/freeclimb/models/tfn_campaign.rb +76 -79
  160. data/lib/freeclimb/models/transcribe_reason.rb +12 -14
  161. data/lib/freeclimb/models/transcribe_term_reason.rb +12 -14
  162. data/lib/freeclimb/models/transcribe_utterance.rb +61 -65
  163. data/lib/freeclimb/models/transcribe_utterance_record.rb +43 -47
  164. data/lib/freeclimb/models/transcribe_webhook.rb +150 -154
  165. data/lib/freeclimb/models/unpark.rb +28 -33
  166. data/lib/freeclimb/models/update_call_request.rb +31 -35
  167. data/lib/freeclimb/models/update_call_request_status.rb +12 -14
  168. data/lib/freeclimb/models/update_conference_participant_request.rb +41 -46
  169. data/lib/freeclimb/models/update_conference_request.rb +41 -45
  170. data/lib/freeclimb/models/update_conference_request_status.rb +12 -14
  171. data/lib/freeclimb/models/webhook.rb +32 -37
  172. data/lib/freeclimb/utils/request_verifier.rb +14 -14
  173. data/lib/freeclimb/utils/signature_information.rb +8 -8
  174. data/lib/freeclimb/version.rb +10 -12
  175. data/lib/freeclimb.rb +164 -158
  176. data/openapi.json +373 -2
  177. data/package.json +1 -1
  178. data/spec/api/default_api_spec.rb +631 -676
  179. data/spec/api_client_spec.rb +100 -102
  180. data/spec/configuration_spec.rb +16 -18
  181. data/spec/models/account_request_spec.rb +104 -233
  182. data/spec/models/account_result_spec.rb +393 -1013
  183. data/spec/models/account_status_spec.rb +27 -30
  184. data/spec/models/account_type_spec.rb +24 -27
  185. data/spec/models/add_to_conference_notification_webhook_spec.rb +464 -1197
  186. data/spec/models/add_to_conference_spec.rb +354 -850
  187. data/spec/models/add_to_queue_notification_webhook_spec.rb +341 -864
  188. data/spec/models/answered_by_spec.rb +24 -27
  189. data/spec/models/application_list_spec.rb +289 -646
  190. data/spec/models/application_request_spec.rb +265 -679
  191. data/spec/models/application_result_spec.rb +444 -1184
  192. data/spec/models/available_number_list_spec.rb +289 -646
  193. data/spec/models/available_number_spec.rb +271 -650
  194. data/spec/models/barge_in_reason_spec.rb +27 -30
  195. data/spec/models/buy_incoming_number_request_spec.rb +136 -322
  196. data/spec/models/call_control_webhook_spec.rb +203 -503
  197. data/spec/models/call_direction_spec.rb +27 -30
  198. data/spec/models/call_ended_reason_spec.rb +107 -110
  199. data/spec/models/call_list_spec.rb +289 -646
  200. data/spec/models/call_result_spec.rb +699 -1798
  201. data/spec/models/call_status_spec.rb +47 -50
  202. data/spec/models/call_status_webhook_spec.rb +413 -990
  203. data/spec/models/capabilities_spec.rb +202 -411
  204. data/spec/models/completion_request_spec.rb +75 -143
  205. data/spec/models/completion_result_spec.rb +104 -231
  206. data/spec/models/completion_result_status_spec.rb +24 -27
  207. data/spec/models/conference_list_spec.rb +289 -646
  208. data/spec/models/conference_participant_list_spec.rb +289 -646
  209. data/spec/models/conference_participant_result_spec.rb +384 -938
  210. data/spec/models/conference_recording_status_webhook_spec.rb +464 -1197
  211. data/spec/models/conference_result_spec.rb +489 -1263
  212. data/spec/models/conference_status_spec.rb +31 -34
  213. data/spec/models/conference_status_webhook_spec.rb +464 -1197
  214. data/spec/models/create_conference_request_spec.rb +204 -485
  215. data/spec/models/create_conference_spec.rb +289 -561
  216. data/spec/models/create_conference_webhook_spec.rb +464 -1197
  217. data/spec/models/create_web_rtc_token_spec.rb +136 -307
  218. data/spec/models/dequeue_spec.rb +14 -17
  219. data/spec/models/dequeue_webhook_spec.rb +400 -1021
  220. data/spec/models/enqueue_spec.rb +169 -412
  221. data/spec/models/export_list_spec.rb +502 -0
  222. data/spec/models/export_output_type_spec.rb +43 -0
  223. data/spec/models/export_request_output_spec.rb +162 -0
  224. data/spec/models/export_request_spec.rb +320 -0
  225. data/spec/models/export_resource_type_spec.rb +59 -0
  226. data/spec/models/export_result_output_spec.rb +162 -0
  227. data/spec/models/export_result_spec.rb +718 -0
  228. data/spec/models/export_status_spec.rb +123 -0
  229. data/spec/models/filter_logs_request_spec.rb +73 -145
  230. data/spec/models/get_digits_reason_spec.rb +31 -34
  231. data/spec/models/get_digits_spec.rb +326 -737
  232. data/spec/models/get_digits_webhook_spec.rb +435 -1127
  233. data/spec/models/get_speech_reason_spec.rb +39 -42
  234. data/spec/models/get_speech_spec.rb +399 -1036
  235. data/spec/models/get_speech_webhook_spec.rb +608 -1553
  236. data/spec/models/grammar_file_built_in_spec.rb +75 -78
  237. data/spec/models/grammar_type_spec.rb +24 -27
  238. data/spec/models/hangup_spec.rb +73 -145
  239. data/spec/models/if_machine_spec.rb +24 -27
  240. data/spec/models/inbound_call_webhook_spec.rb +371 -951
  241. data/spec/models/incoming_number_list_spec.rb +289 -646
  242. data/spec/models/incoming_number_request_spec.rb +136 -322
  243. data/spec/models/incoming_number_result_spec.rb +573 -1489
  244. data/spec/models/language_spec.rb +120 -123
  245. data/spec/models/leave_conference_webhook_spec.rb +341 -864
  246. data/spec/models/log_level_spec.rb +27 -30
  247. data/spec/models/log_list_spec.rb +289 -646
  248. data/spec/models/log_result_spec.rb +272 -667
  249. data/spec/models/machine_detected_webhook_spec.rb +401 -1036
  250. data/spec/models/machine_type_spec.rb +24 -27
  251. data/spec/models/make_call_request_spec.rb +353 -905
  252. data/spec/models/message_delivery_webhook_spec.rb +357 -942
  253. data/spec/models/message_direction_spec.rb +24 -27
  254. data/spec/models/message_request_spec.rb +324 -818
  255. data/spec/models/message_result_spec.rb +647 -1710
  256. data/spec/models/message_status_spec.rb +60 -63
  257. data/spec/models/message_status_webhook_spec.rb +405 -1045
  258. data/spec/models/messages_list_spec.rb +289 -646
  259. data/spec/models/mutable_resource_model_spec.rb +168 -395
  260. data/spec/models/out_dial_api_connect_webhook_spec.rb +371 -951
  261. data/spec/models/out_dial_connect_webhook_spec.rb +371 -951
  262. data/spec/models/out_dial_spec.rb +354 -903
  263. data/spec/models/out_dial_start_webhook_spec.rb +401 -1038
  264. data/spec/models/pagination_model_spec.rb +259 -577
  265. data/spec/models/park_spec.rb +136 -322
  266. data/spec/models/pause_spec.rb +72 -128
  267. data/spec/models/percl_command_spec.rb +76 -145
  268. data/spec/models/percl_script_spec.rb +73 -127
  269. data/spec/models/play_beep_spec.rb +31 -34
  270. data/spec/models/play_early_media_spec.rb +73 -145
  271. data/spec/models/play_spec.rb +135 -287
  272. data/spec/models/queue_list_spec.rb +289 -646
  273. data/spec/models/queue_member_list_spec.rb +289 -646
  274. data/spec/models/queue_member_spec.rb +199 -467
  275. data/spec/models/queue_request_spec.rb +103 -216
  276. data/spec/models/queue_result_spec.rb +388 -965
  277. data/spec/models/queue_result_status_spec.rb +31 -34
  278. data/spec/models/queue_wait_webhook_spec.rb +429 -1091
  279. data/spec/models/record_utterance_spec.rb +263 -591
  280. data/spec/models/record_utterance_term_reason_spec.rb +31 -34
  281. data/spec/models/record_webhook_spec.rb +605 -1548
  282. data/spec/models/recording_list_spec.rb +289 -646
  283. data/spec/models/recording_result_spec.rb +323 -819
  284. data/spec/models/redirect_spec.rb +73 -145
  285. data/spec/models/redirect_webhook_spec.rb +371 -951
  286. data/spec/models/reject_spec.rb +73 -145
  287. data/spec/models/remove_from_conference_spec.rb +14 -17
  288. data/spec/models/remove_from_queue_notification_webhook_spec.rb +404 -1023
  289. data/spec/models/request_type_spec.rb +107 -110
  290. data/spec/models/say_spec.rb +168 -377
  291. data/spec/models/send_digits_spec.rb +135 -287
  292. data/spec/models/set_dtmf_pass_through_spec.rb +74 -127
  293. data/spec/models/set_listen_spec.rb +74 -127
  294. data/spec/models/set_talk_spec.rb +74 -127
  295. data/spec/models/sms_spec.rb +169 -412
  296. data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +31 -34
  297. data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +35 -38
  298. data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +31 -34
  299. data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +35 -38
  300. data/spec/models/sms_ten_dlc_brand_spec.rb +1082 -2746
  301. data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +124 -127
  302. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +289 -646
  303. data/spec/models/sms_ten_dlc_campaign_spec.rb +1139 -2881
  304. data/spec/models/sms_ten_dlc_campaign_status_spec.rb +24 -27
  305. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +289 -646
  306. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +406 -1004
  307. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +961 -2393
  308. data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +24 -27
  309. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +289 -646
  310. data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +35 -38
  311. data/spec/models/sms_toll_free_campaign_spec.rb +270 -666
  312. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +289 -646
  313. data/spec/models/start_record_call_spec.rb +14 -17
  314. data/spec/models/terminate_conference_spec.rb +14 -17
  315. data/spec/models/tfn_campaign_spec.rb +330 -858
  316. data/spec/models/tfn_spec.rb +73 -145
  317. data/spec/models/transcribe_reason_spec.rb +35 -38
  318. data/spec/models/transcribe_term_reason_spec.rb +24 -27
  319. data/spec/models/transcribe_utterance_record_spec.rb +134 -270
  320. data/spec/models/transcribe_utterance_spec.rb +236 -523
  321. data/spec/models/transcribe_webhook_spec.rb +749 -1918
  322. data/spec/models/unpark_spec.rb +14 -17
  323. data/spec/models/update_call_request_spec.rb +74 -143
  324. data/spec/models/update_call_request_status_spec.rb +24 -27
  325. data/spec/models/update_conference_participant_request_spec.rb +137 -268
  326. data/spec/models/update_conference_request_spec.rb +140 -321
  327. data/spec/models/update_conference_request_status_spec.rb +24 -27
  328. data/spec/models/webhook_spec.rb +68 -137
  329. data/spec/quickstart_spec.rb +5 -5
  330. data/spec/spec_helper.rb +92 -100
  331. data/spec/utils/request_verifier_spec.rb +70 -71
  332. data/spec/utils/signature_information_spec.rb +23 -23
  333. data/yarn.lock +38 -29
  334. metadata +27 -151
@@ -1,18 +1,16 @@
1
- =begin
2
- #FreeClimb API
1
+ # #FreeClimb API
2
+ #
3
+ # FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
4
+ #
5
+ # The version of the OpenAPI document: 1.0.0
6
+ # Contact: support@freeclimb.com
7
+ # Generated by: https://openapi-generator.tech
8
+ # OpenAPI Generator version: 7.9.0
9
+ #
3
10
 
4
- #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
-
6
- The version of the OpenAPI document: 1.0.0
7
- Contact: support@freeclimb.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.9.0
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
- require 'date'
11
+ require "spec_helper"
12
+ require "json"
13
+ require "date"
16
14
  include Freeclimb
17
15
 
18
16
  # Unit tests for Freeclimb::MakeCallRequest
@@ -21,725 +19,361 @@ include Freeclimb
21
19
  describe Freeclimb::MakeCallRequest do
22
20
  let(:instance) { Freeclimb::MakeCallRequest.new }
23
21
 
24
- describe 'test an instance of MakeCallRequest' do
25
- it 'should create an instance of MakeCallRequest' do
22
+ describe "test an instance of MakeCallRequest" do
23
+ it "should create an instance of MakeCallRequest" do
26
24
  expect(instance).to be_instance_of(Freeclimb::MakeCallRequest)
27
25
  end
28
26
  end
29
-
27
+
30
28
  describe 'test attribute "from"' do
31
- it 'should work' do
32
-
29
+ it "should work" do
33
30
  instance.from = "TEST_STRING"
34
- expect(instance.from).to eq("TEST_STRING")
35
-
36
-
37
-
31
+ expect(instance.from).to eq("TEST_STRING")
38
32
  end
39
33
  end
40
34
 
41
35
  describe 'test attribute "to"' do
42
- it 'should work' do
43
-
36
+ it "should work" do
44
37
  instance.to = "TEST_STRING"
45
- expect(instance.to).to eq("TEST_STRING")
46
-
47
-
48
-
38
+ expect(instance.to).to eq("TEST_STRING")
49
39
  end
50
40
  end
51
41
 
52
42
  describe 'test attribute "application_id"' do
53
- it 'should work' do
54
-
43
+ it "should work" do
55
44
  instance.application_id = "TEST_STRING"
56
- expect(instance.application_id).to eq("TEST_STRING")
57
-
58
-
59
-
45
+ expect(instance.application_id).to eq("TEST_STRING")
60
46
  end
61
47
  end
62
48
 
63
49
  describe 'test attribute "send_digits"' do
64
- it 'should work' do
65
-
50
+ it "should work" do
66
51
  instance.send_digits = "TEST_STRING"
67
- expect(instance.send_digits).to eq("TEST_STRING")
68
-
69
-
70
-
52
+ expect(instance.send_digits).to eq("TEST_STRING")
71
53
  end
72
54
  end
73
55
 
74
56
  describe 'test attribute "if_machine"' do
75
- it 'should work' do
76
-
57
+ it "should work" do
77
58
  instance.if_machine = "TEST_STRING"
78
- expect(instance.if_machine).to eq("TEST_STRING")
79
-
80
-
81
-
59
+ expect(instance.if_machine).to eq("TEST_STRING")
82
60
  end
83
61
  end
84
62
 
85
63
  describe 'test attribute "if_machine_url"' do
86
- it 'should work' do
87
-
64
+ it "should work" do
88
65
  instance.if_machine_url = "TEST_STRING"
89
- expect(instance.if_machine_url).to eq("TEST_STRING")
90
-
91
-
92
-
66
+ expect(instance.if_machine_url).to eq("TEST_STRING")
93
67
  end
94
68
  end
95
69
 
96
70
  describe 'test attribute "timeout"' do
97
- it 'should work' do
98
-
99
-
71
+ it "should work" do
100
72
  instance.timeout = 1
101
73
  expect(instance.timeout).to eq(1)
102
-
103
-
104
-
105
74
  end
106
75
  end
107
76
 
108
77
  describe 'test attribute "parent_call_id"' do
109
- it 'should work' do
110
-
78
+ it "should work" do
111
79
  instance.parent_call_id = "TEST_STRING"
112
- expect(instance.parent_call_id).to eq("TEST_STRING")
113
-
114
-
115
-
80
+ expect(instance.parent_call_id).to eq("TEST_STRING")
116
81
  end
117
82
  end
118
83
 
119
84
  describe 'test attribute "privacy_mode"' do
120
- it 'should work' do
85
+ it "should work" do
121
86
  instance.privacy_mode = false
122
- expect(instance.privacy_mode).to eq(false)
123
-
124
-
125
-
87
+ expect(instance.privacy_mode).to eq(false)
126
88
  end
127
89
  end
128
90
 
129
91
  describe 'test attribute "call_connect_url"' do
130
- it 'should work' do
131
-
92
+ it "should work" do
132
93
  instance.call_connect_url = "TEST_STRING"
133
- expect(instance.call_connect_url).to eq("TEST_STRING")
134
-
135
-
136
-
94
+ expect(instance.call_connect_url).to eq("TEST_STRING")
137
95
  end
138
96
  end
139
97
 
140
98
  describe 'test method "initialize"' do
141
- it 'properly initializes with values' do
142
- expect { instance = Freeclimb::MakeCallRequest.new(
143
-
144
- from: "TS",
145
-
146
-
147
-
148
-
149
- to: "TS",
150
-
151
-
152
-
153
-
154
- application_id: "TS",
155
-
156
-
157
-
158
-
159
- send_digits: "TS",
160
-
161
-
162
-
163
-
164
- if_machine: "TS",
165
-
166
-
167
-
168
-
169
- if_machine_url: "TS",
170
-
171
-
172
-
173
- timeout: 1,
174
-
175
-
176
-
177
-
178
- parent_call_id: "TS",
179
-
180
-
181
-
182
- privacy_mode: true,
183
-
184
-
185
-
186
-
187
- call_connect_url: "TS",
188
-
189
-
190
-
191
- )}.not_to raise_error()
192
- end
193
- it 'fails to initialize with input argument that is not a hash in Freeclimb::MakeCallRequest' do
194
- expect { instance = Freeclimb::MakeCallRequest.new(
195
-
196
- from: "TS",
197
-
198
-
199
-
200
-
201
- to: "TS",
202
-
203
-
204
-
205
-
206
- application_id: "TS",
207
-
208
-
209
-
210
-
211
- send_digits: "TS",
212
-
213
-
214
-
215
-
216
- if_machine: "TS",
217
-
218
-
219
-
220
-
221
- if_machine_url: "TS",
222
-
223
-
224
-
225
- timeout: 1,
226
-
227
-
228
-
229
-
230
- parent_call_id: "TS",
231
-
232
-
233
-
234
- privacy_mode: true,
235
-
236
-
237
-
238
-
239
- call_connect_url: "TS",
240
-
241
-
242
-
243
- invalid_attribute: true
244
- )}.to raise_error(ArgumentError)
245
- end
246
- it 'fails to initialize with invalid attribute' do
247
- expect { instance = Freeclimb::MakeCallRequest.new(
248
-
249
- from: "TS",
250
-
251
-
252
-
253
-
254
- to: "TS",
255
-
256
-
257
-
258
-
259
- application_id: "TS",
260
-
261
-
262
-
263
-
264
- send_digits: "TS",
265
-
266
-
267
-
268
-
269
- if_machine: "TS",
270
-
271
-
272
-
273
-
274
- if_machine_url: "TS",
275
-
276
-
277
-
278
- timeout: 1,
279
-
280
-
281
-
282
-
283
- parent_call_id: "TS",
284
-
285
-
286
-
287
- privacy_mode: true,
288
-
289
-
290
-
291
-
292
- call_connect_url: "TS",
293
-
294
-
295
-
296
- invalid_attribute: true
297
- )}.to raise_error(ArgumentError)
298
- end
299
- end
300
-
301
- describe 'test method "valid"' do
302
- it 'checks if properties are valid' do
303
- instance = Freeclimb::MakeCallRequest.new(
304
-
99
+ it "properly initializes with values" do
100
+ expect {
101
+ Freeclimb::MakeCallRequest.new(
305
102
  from: "TS",
306
-
307
-
308
-
309
-
103
+
310
104
  to: "TS",
311
-
312
-
313
-
314
-
105
+
315
106
  application_id: "TS",
316
-
317
-
318
-
319
-
107
+
320
108
  send_digits: "TS",
321
-
322
-
323
-
324
-
109
+
325
110
  if_machine: "TS",
326
-
327
-
328
-
329
-
111
+
330
112
  if_machine_url: "TS",
331
-
332
-
333
-
113
+
334
114
  timeout: 1,
335
-
336
-
337
-
338
-
115
+
339
116
  parent_call_id: "TS",
340
-
341
-
342
-
343
- privacy_mode: true,
344
-
345
-
346
-
347
-
348
- call_connect_url: "TS",
349
-
350
-
351
-
352
- )
353
- expect(instance.valid?).to eq(true)
354
- end
355
117
 
118
+ privacy_mode: true,
356
119
 
357
- skip 'checks if properties are invalid' do
358
- instance = Freeclimb::MakeCallRequest.new(
359
-
360
- )
361
- expect(instance.valid?).to eq(false)
120
+ call_connect_url: "TS"
121
+ )
122
+ }.not_to raise_error
362
123
  end
363
-
364
- end
365
-
366
- describe 'test method "eql?"' do
367
- it 'checks if objects are equal' do
368
-
369
-
370
-
371
-
372
-
373
-
374
-
375
-
376
-
377
-
378
- instance_1 = Freeclimb::MakeCallRequest.new(
379
-
124
+ it "fails to initialize with input argument that is not a hash in Freeclimb::MakeCallRequest" do
125
+ expect {
126
+ Freeclimb::MakeCallRequest.new(
380
127
  from: "TS",
381
-
382
-
383
-
384
-
128
+
385
129
  to: "TS",
386
-
387
-
388
-
389
-
130
+
390
131
  application_id: "TS",
391
-
392
-
393
-
394
-
132
+
395
133
  send_digits: "TS",
396
-
397
-
398
-
399
-
134
+
400
135
  if_machine: "TS",
401
-
402
-
403
-
404
-
136
+
405
137
  if_machine_url: "TS",
406
-
407
-
408
-
138
+
409
139
  timeout: 1,
410
-
411
-
412
-
413
-
140
+
414
141
  parent_call_id: "TS",
415
-
416
-
417
-
142
+
418
143
  privacy_mode: true,
419
-
420
-
421
-
422
-
144
+
423
145
  call_connect_url: "TS",
424
-
425
-
426
-
427
- )
428
- instance_2 = Freeclimb::MakeCallRequest.new(
429
-
146
+
147
+ invalid_attribute: true
148
+ )
149
+ }.to raise_error(ArgumentError)
150
+ end
151
+ it "fails to initialize with invalid attribute" do
152
+ expect {
153
+ Freeclimb::MakeCallRequest.new(
430
154
  from: "TS",
431
-
432
-
433
-
434
-
155
+
435
156
  to: "TS",
436
-
437
-
438
-
439
-
157
+
440
158
  application_id: "TS",
441
-
442
-
443
-
444
-
159
+
445
160
  send_digits: "TS",
446
-
447
-
448
-
449
-
161
+
450
162
  if_machine: "TS",
451
-
452
-
453
-
454
-
163
+
455
164
  if_machine_url: "TS",
456
-
457
-
458
-
459
-
460
-
165
+
461
166
  timeout: 1,
462
-
463
-
167
+
464
168
  parent_call_id: "TS",
465
-
466
-
467
-
169
+
468
170
  privacy_mode: true,
469
-
470
-
471
-
472
-
171
+
473
172
  call_connect_url: "TS",
474
-
475
-
476
-
173
+
174
+ invalid_attribute: true
175
+ )
176
+ }.to raise_error(ArgumentError)
177
+ end
178
+ end
179
+
180
+ describe 'test method "valid"' do
181
+ it "checks if properties are valid" do
182
+ instance = Freeclimb::MakeCallRequest.new(
183
+ from: "TS",
184
+
185
+ to: "TS",
186
+
187
+ application_id: "TS",
188
+
189
+ send_digits: "TS",
190
+
191
+ if_machine: "TS",
192
+
193
+ if_machine_url: "TS",
194
+
195
+ timeout: 1,
196
+
197
+ parent_call_id: "TS",
198
+
199
+ privacy_mode: true,
200
+
201
+ call_connect_url: "TS"
202
+ )
203
+ expect(instance.valid?).to eq(true)
204
+ end
205
+
206
+ skip "checks if properties are invalid" do
207
+ instance = Freeclimb::MakeCallRequest.new
208
+
209
+ expect(instance.valid?).to eq(false)
210
+ end
211
+ end
212
+
213
+ describe 'test method "eql?"' do
214
+ it "checks if objects are equal" do
215
+ instance_1 = Freeclimb::MakeCallRequest.new(
216
+ from: "TS",
217
+
218
+ to: "TS",
219
+
220
+ application_id: "TS",
221
+
222
+ send_digits: "TS",
223
+
224
+ if_machine: "TS",
225
+
226
+ if_machine_url: "TS",
227
+
228
+ timeout: 1,
229
+
230
+ parent_call_id: "TS",
231
+
232
+ privacy_mode: true,
233
+
234
+ call_connect_url: "TS"
235
+ )
236
+ instance_2 = Freeclimb::MakeCallRequest.new(
237
+ from: "TS",
238
+
239
+ to: "TS",
240
+
241
+ application_id: "TS",
242
+
243
+ send_digits: "TS",
244
+
245
+ if_machine: "TS",
246
+
247
+ if_machine_url: "TS",
248
+
249
+ timeout: 1,
250
+
251
+ parent_call_id: "TS",
252
+
253
+ privacy_mode: true,
254
+
255
+ call_connect_url: "TS"
477
256
  )
478
257
  expect(instance_1.eql?(instance_2)).to eq(true)
479
258
  end
480
-
481
- it 'checks if objects are not equal' do
259
+
260
+ it "checks if objects are not equal" do
482
261
  instance_1 = Freeclimb::MakeCallRequest.new(
483
-
484
- from: "TS",
485
-
486
-
487
-
488
-
489
- to: "TS",
490
-
491
-
492
-
493
-
494
- application_id: "TS",
495
-
496
-
497
-
498
-
499
- send_digits: "TS",
500
-
501
-
502
-
503
-
504
- if_machine: "TS",
505
-
506
-
507
-
508
-
509
- if_machine_url: "TS",
510
-
511
-
512
-
513
- timeout: 2,
514
-
515
-
516
-
517
-
518
- parent_call_id: "TS",
519
-
520
-
521
-
522
- privacy_mode: true,
523
-
524
-
525
-
526
-
527
- call_connect_url: "TS",
528
-
529
-
530
-
262
+ from: "TS",
263
+
264
+ to: "TS",
265
+
266
+ application_id: "TS",
267
+
268
+ send_digits: "TS",
269
+
270
+ if_machine: "TS",
271
+
272
+ if_machine_url: "TS",
273
+
274
+ timeout: 2,
275
+
276
+ parent_call_id: "TS",
277
+
278
+ privacy_mode: true,
279
+
280
+ call_connect_url: "TS"
531
281
  )
532
282
  instance_2 = Freeclimb::MakeCallRequest.new(
533
-
534
- from: "ST",
535
-
536
-
537
-
538
-
539
- to: "ST",
540
-
541
-
542
-
543
-
544
- application_id: "ST",
545
-
546
-
547
-
548
-
549
- send_digits: "ST",
550
-
551
-
552
-
553
-
554
- if_machine: "ST",
555
-
556
-
557
-
558
-
559
- if_machine_url: "ST",
560
-
561
-
562
-
563
- timeout: 1,
564
-
565
-
566
-
567
-
568
- parent_call_id: "ST",
569
-
570
-
571
-
572
- privacy_mode: false,
573
-
574
-
575
-
576
-
577
- call_connect_url: "ST",
578
-
579
-
580
-
283
+ from: "ST",
284
+
285
+ to: "ST",
286
+
287
+ application_id: "ST",
288
+
289
+ send_digits: "ST",
290
+
291
+ if_machine: "ST",
292
+
293
+ if_machine_url: "ST",
294
+
295
+ timeout: 1,
296
+
297
+ parent_call_id: "ST",
298
+
299
+ privacy_mode: false,
300
+
301
+ call_connect_url: "ST"
581
302
  )
582
303
  expect(instance_1.eql?(instance_2)).to eq(false)
583
304
  end
584
305
  end
585
-
306
+
586
307
  describe 'test method "hash"' do
587
- it 'calculates hash code' do
308
+ it "calculates hash code" do
588
309
  instance = Freeclimb::MakeCallRequest.new(
589
-
590
- from: "TS",
591
-
592
-
593
-
594
-
595
- to: "TS",
596
-
597
-
598
-
599
-
600
- application_id: "TS",
601
-
602
-
603
-
604
-
605
- send_digits: "TS",
606
-
607
-
608
-
609
-
610
- if_machine: "TS",
611
-
612
-
613
-
614
-
615
- if_machine_url: "TS",
616
-
617
-
618
-
619
- timeout: 1,
620
-
621
-
622
-
623
-
624
- parent_call_id: "TS",
625
-
626
-
627
-
628
- privacy_mode: true,
629
-
630
-
631
-
632
-
633
- call_connect_url: "TS",
634
-
635
-
636
-
637
- )
310
+ from: "TS",
311
+
312
+ to: "TS",
313
+
314
+ application_id: "TS",
315
+
316
+ send_digits: "TS",
317
+
318
+ if_machine: "TS",
319
+
320
+ if_machine_url: "TS",
321
+
322
+ timeout: 1,
323
+
324
+ parent_call_id: "TS",
325
+
326
+ privacy_mode: true,
327
+
328
+ call_connect_url: "TS"
329
+ )
638
330
  expect(instance.hash).to be_a_kind_of(Integer)
639
331
  end
640
332
  end
641
333
 
642
334
  describe 'test method "build_from_hash"' do
643
- it 'builds equivalent model from hash code' do
335
+ it "builds equivalent model from hash code" do
644
336
  instance_1 = Freeclimb::MakeCallRequest.new(
645
-
646
337
  from: "TS",
647
-
648
-
649
-
650
-
338
+
651
339
  to: "TS",
652
-
653
-
654
-
655
-
340
+
656
341
  application_id: "TS",
657
-
658
-
659
-
660
-
342
+
661
343
  send_digits: "TS",
662
-
663
-
664
-
665
-
344
+
666
345
  if_machine: "TS",
667
-
668
-
669
-
670
-
346
+
671
347
  if_machine_url: "TS",
672
-
673
-
674
-
348
+
675
349
  timeout: 1,
676
-
677
-
678
-
679
-
350
+
680
351
  parent_call_id: "TS",
681
-
682
-
683
-
352
+
684
353
  privacy_mode: true,
685
-
686
-
687
-
688
-
689
- call_connect_url: "TS",
690
-
691
-
692
-
354
+
355
+ call_connect_url: "TS"
693
356
  )
694
357
  instance_2 = Freeclimb::MakeCallRequest.new(
695
-
696
358
  from: "TS",
697
-
698
-
699
-
700
-
359
+
701
360
  to: "TS",
702
-
703
-
704
-
705
-
361
+
706
362
  application_id: "TS",
707
-
708
-
709
-
710
-
363
+
711
364
  send_digits: "TS",
712
-
713
-
714
-
715
-
365
+
716
366
  if_machine: "TS",
717
-
718
-
719
-
720
-
367
+
721
368
  if_machine_url: "TS",
722
-
723
-
724
-
369
+
725
370
  timeout: 1,
726
-
727
-
728
-
729
-
371
+
730
372
  parent_call_id: "TS",
731
-
732
-
733
-
373
+
734
374
  privacy_mode: true,
735
-
736
-
737
-
738
-
739
- call_connect_url: "TS",
740
-
741
-
742
-
375
+
376
+ call_connect_url: "TS"
743
377
  )
744
378
 
745
379
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
@@ -748,327 +382,160 @@ describe Freeclimb::MakeCallRequest do
748
382
 
749
383
  describe 'test method "_deserialize"' do
750
384
  instance = Freeclimb::MakeCallRequest.new(
751
-
752
- from: "TS",
753
-
754
-
755
-
756
-
757
- to: "TS",
758
-
759
-
760
-
761
-
762
- application_id: "TS",
763
-
764
-
765
-
766
-
767
- send_digits: "TS",
768
-
769
-
770
-
771
-
772
- if_machine: "TS",
773
-
774
-
775
-
776
-
777
- if_machine_url: "TS",
778
-
779
-
780
-
781
- timeout: 1,
782
-
783
-
784
-
785
-
786
- parent_call_id: "TS",
787
-
788
-
789
-
790
- privacy_mode: true,
791
-
792
-
793
-
794
-
795
- call_connect_url: "TS",
796
-
797
-
798
-
385
+ from: "TS",
386
+
387
+ to: "TS",
388
+
389
+ application_id: "TS",
390
+
391
+ send_digits: "TS",
392
+
393
+ if_machine: "TS",
394
+
395
+ if_machine_url: "TS",
396
+
397
+ timeout: 1,
398
+
399
+ parent_call_id: "TS",
400
+
401
+ privacy_mode: true,
402
+
403
+ call_connect_url: "TS"
799
404
  )
800
- it 'deserializes the data of from' do
405
+ it "deserializes the data of from" do
801
406
  expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String)
802
407
  end
803
-
804
-
805
- it 'deserializes the data of to' do
408
+
409
+ it "deserializes the data of to" do
806
410
  expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String)
807
411
  end
808
-
809
-
810
- it 'deserializes the data of application_id' do
412
+
413
+ it "deserializes the data of application_id" do
811
414
  expect(instance._deserialize("String", instance.application_id)).to be_a_kind_of(String)
812
415
  end
813
-
814
-
815
- it 'deserializes the data of send_digits' do
416
+
417
+ it "deserializes the data of send_digits" do
816
418
  expect(instance._deserialize("String", instance.send_digits)).to be_a_kind_of(String)
817
419
  end
818
-
819
-
820
- it 'deserializes the data of if_machine' do
420
+
421
+ it "deserializes the data of if_machine" do
821
422
  expect(instance._deserialize("String", instance.if_machine)).to be_a_kind_of(String)
822
423
  end
823
-
824
-
825
- it 'deserializes the data of if_machine_url' do
424
+
425
+ it "deserializes the data of if_machine_url" do
826
426
  expect(instance._deserialize("String", instance.if_machine_url)).to be_a_kind_of(String)
827
427
  end
828
-
829
-
830
- it 'deserializes the data of timeout' do
428
+
429
+ it "deserializes the data of timeout" do
831
430
  expect(instance._deserialize("Integer", instance.timeout)).to be_a_kind_of(Integer)
832
431
  end
833
-
834
-
835
- it 'deserializes the data of parent_call_id' do
432
+
433
+ it "deserializes the data of parent_call_id" do
836
434
  expect(instance._deserialize("String", instance.parent_call_id)).to be_a_kind_of(String)
837
435
  end
838
-
839
-
840
-
841
-
842
- it 'deserializes the data of privacy_mode' do
436
+
437
+ it "deserializes the data of privacy_mode" do
843
438
  expect(instance._deserialize("Boolean", instance.privacy_mode)).to be_a_kind_of(TrueClass)
844
439
  end
845
- it 'deserializes the data of call_connect_url' do
440
+ it "deserializes the data of call_connect_url" do
846
441
  expect(instance._deserialize("String", instance.call_connect_url)).to be_a_kind_of(String)
847
442
  end
848
-
849
-
850
443
  end
851
444
 
852
445
  describe 'test method "to_s"' do
853
- it 'returns the string representation of the object' do
446
+ it "returns the string representation of the object" do
854
447
  instance = Freeclimb::MakeCallRequest.new(
855
-
856
448
  from: "TS",
857
-
858
-
859
-
860
-
449
+
861
450
  to: "TS",
862
-
863
-
864
-
865
-
451
+
866
452
  application_id: "TS",
867
-
868
-
869
-
870
-
453
+
871
454
  send_digits: "TS",
872
-
873
-
874
-
875
-
455
+
876
456
  if_machine: "TS",
877
-
878
-
879
-
880
-
457
+
881
458
  if_machine_url: "TS",
882
-
883
-
884
-
459
+
885
460
  timeout: 1,
886
-
887
-
888
-
889
-
461
+
890
462
  parent_call_id: "TS",
891
-
892
-
893
-
463
+
894
464
  privacy_mode: true,
895
-
896
-
897
-
898
-
899
- call_connect_url: "TS",
900
-
901
-
902
-
465
+
466
+ call_connect_url: "TS"
903
467
  )
904
468
  expect(instance.to_s).to eq(instance.to_hash.to_s)
905
469
  end
906
470
  end
907
471
 
908
472
  describe 'test method "to_hash"' do
909
- it 'returns the object in the form of hash' do
473
+ it "returns the object in the form of hash" do
910
474
  instance = Freeclimb::MakeCallRequest.new(
911
-
912
475
  from: "TS",
913
-
914
-
915
-
916
-
476
+
917
477
  to: "TS",
918
-
919
-
920
-
921
-
478
+
922
479
  application_id: "TS",
923
-
924
-
925
-
926
-
480
+
927
481
  send_digits: "TS",
928
-
929
-
930
-
931
-
482
+
932
483
  if_machine: "TS",
933
-
934
-
935
-
936
-
484
+
937
485
  if_machine_url: "TS",
938
-
939
-
940
-
486
+
941
487
  timeout: 1,
942
-
943
-
944
-
945
-
488
+
946
489
  parent_call_id: "TS",
947
-
948
-
949
-
490
+
950
491
  privacy_mode: true,
951
-
952
-
953
-
954
-
955
- call_connect_url: "TS",
956
-
957
-
958
-
492
+
493
+ call_connect_url: "TS"
959
494
  )
960
495
  expect(instance.to_hash).to be_a_kind_of(Hash)
961
496
  end
962
- it 'creates equal hash for two equal objects' do
963
-
964
-
965
-
966
-
967
-
968
-
969
-
970
-
971
-
972
-
497
+ it "creates equal hash for two equal objects" do
973
498
  instance_1 = Freeclimb::MakeCallRequest.new(
974
-
975
499
  from: "TS",
976
-
977
-
978
-
979
-
500
+
980
501
  to: "TS",
981
-
982
-
983
-
984
-
502
+
985
503
  application_id: "TS",
986
-
987
-
988
-
989
-
504
+
990
505
  send_digits: "TS",
991
-
992
-
993
-
994
-
506
+
995
507
  if_machine: "TS",
996
-
997
-
998
-
999
-
508
+
1000
509
  if_machine_url: "TS",
1001
-
1002
-
1003
-
510
+
1004
511
  timeout: 1,
1005
-
1006
-
1007
-
1008
-
512
+
1009
513
  parent_call_id: "TS",
1010
-
1011
-
1012
-
514
+
1013
515
  privacy_mode: true,
1014
-
1015
-
1016
-
1017
-
1018
- call_connect_url: "TS",
1019
-
1020
-
1021
-
516
+
517
+ call_connect_url: "TS"
1022
518
  )
1023
519
  instance_2 = Freeclimb::MakeCallRequest.new(
1024
-
1025
520
  from: "TS",
1026
-
1027
-
1028
-
1029
-
521
+
1030
522
  to: "TS",
1031
-
1032
-
1033
-
1034
-
523
+
1035
524
  application_id: "TS",
1036
-
1037
-
1038
-
1039
-
525
+
1040
526
  send_digits: "TS",
1041
-
1042
-
1043
-
1044
-
527
+
1045
528
  if_machine: "TS",
1046
-
1047
-
1048
-
1049
-
529
+
1050
530
  if_machine_url: "TS",
1051
-
1052
-
1053
-
531
+
1054
532
  timeout: 1,
1055
-
1056
-
1057
-
1058
-
533
+
1059
534
  parent_call_id: "TS",
1060
-
1061
-
1062
-
535
+
1063
536
  privacy_mode: true,
1064
-
1065
-
1066
-
1067
-
1068
- call_connect_url: "TS",
1069
-
1070
-
1071
-
537
+
538
+ call_connect_url: "TS"
1072
539
  )
1073
540
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
1074
541
  end
@@ -1076,74 +543,55 @@ describe Freeclimb::MakeCallRequest do
1076
543
 
1077
544
  describe 'test method "_to_hash"' do
1078
545
  instance = Freeclimb::MakeCallRequest.new(
1079
-
1080
- from: "TS",
1081
-
1082
-
1083
-
1084
- to: "TS",
1085
-
1086
-
1087
-
1088
- application_id: "TS",
1089
-
1090
-
1091
-
1092
- send_digits: "TS",
1093
-
1094
-
1095
-
1096
- if_machine: "TS",
1097
-
1098
-
1099
-
1100
- if_machine_url: "TS",
1101
-
1102
-
1103
- timeout: 1,
1104
-
1105
-
1106
-
1107
- parent_call_id: "TS",
1108
-
1109
-
1110
- privacy_mode: true,
1111
-
1112
-
1113
-
1114
- call_connect_url: "TS",
1115
-
1116
- )
1117
- it 'returns from in the form of hash' do
546
+ from: "TS",
547
+
548
+ to: "TS",
549
+
550
+ application_id: "TS",
551
+
552
+ send_digits: "TS",
553
+
554
+ if_machine: "TS",
555
+
556
+ if_machine_url: "TS",
557
+
558
+ timeout: 1,
559
+
560
+ parent_call_id: "TS",
561
+
562
+ privacy_mode: true,
563
+
564
+ call_connect_url: "TS"
565
+ )
566
+ it "returns from in the form of hash" do
1118
567
  expect(instance._to_hash(instance.from)).to eq(instance.from)
1119
568
  end
1120
- it 'returns to in the form of hash' do
569
+ it "returns to in the form of hash" do
1121
570
  expect(instance._to_hash(instance.to)).to eq(instance.to)
1122
571
  end
1123
- it 'returns application_id in the form of hash' do
572
+ it "returns application_id in the form of hash" do
1124
573
  expect(instance._to_hash(instance.application_id)).to eq(instance.application_id)
1125
574
  end
1126
- it 'returns send_digits in the form of hash' do
575
+ it "returns send_digits in the form of hash" do
1127
576
  expect(instance._to_hash(instance.send_digits)).to eq(instance.send_digits)
1128
577
  end
1129
- it 'returns if_machine in the form of hash' do
578
+ it "returns if_machine in the form of hash" do
1130
579
  expect(instance._to_hash(instance.if_machine)).to eq(instance.if_machine)
1131
580
  end
1132
- it 'returns if_machine_url in the form of hash' do
581
+ it "returns if_machine_url in the form of hash" do
1133
582
  expect(instance._to_hash(instance.if_machine_url)).to eq(instance.if_machine_url)
1134
583
  end
1135
- it 'returns timeout in the form of hash' do
584
+ it "returns timeout in the form of hash" do
1136
585
  expect(instance._to_hash(instance.timeout)).to eq(instance.timeout)
1137
586
  end
1138
- it 'returns parent_call_id in the form of hash' do
587
+ it "returns parent_call_id in the form of hash" do
1139
588
  expect(instance._to_hash(instance.parent_call_id)).to eq(instance.parent_call_id)
1140
589
  end
1141
- it 'returns privacy_mode in the form of hash' do
590
+ it "returns privacy_mode in the form of hash" do
1142
591
  expect(instance._to_hash(instance.privacy_mode)).to eq(instance.privacy_mode)
1143
592
  end
1144
- it 'returns call_connect_url in the form of hash' do
593
+ it "returns call_connect_url in the form of hash" do
1145
594
  expect(instance._to_hash(instance.call_connect_url)).to eq(instance.call_connect_url)
1146
595
  end
1147
596
  end
1148
-
1149
597
  end