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