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
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"
14
+ include Freeclimb
16
15
 
17
16
  # Unit tests for Freeclimb::CallStatusWebhook
18
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -20,538 +19,490 @@ require 'date'
20
19
  describe Freeclimb::CallStatusWebhook do
21
20
  let(:instance) { Freeclimb::CallStatusWebhook.new }
22
21
 
23
- describe 'test an instance of CallStatusWebhook' do
24
- it 'should create an instance of CallStatusWebhook' do
22
+ describe "test an instance of CallStatusWebhook" do
23
+ it "should create an instance of CallStatusWebhook" do
25
24
  expect(instance).to be_instance_of(Freeclimb::CallStatusWebhook)
26
25
  end
27
26
  end
28
- describe '.deserialize' do
29
- it 'deserializes a json payload into instance of CallStatusWebhook' do
27
+ describe ".deserialize" do
28
+ it "deserializes a json payload into instance of CallStatusWebhook" do
30
29
  payload = '{ "requestType": "callStatus" }'
31
30
  expect(Freeclimb::CallStatusWebhook.deserialize(payload)).to be_instance_of(Freeclimb::CallStatusWebhook)
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 "call_ended_reason"' do
112
- it 'assigns value BUSY' do
105
+ it "assigns value BUSY" do
113
106
  instance.call_ended_reason = Freeclimb::CallEndedReason::BUSY
114
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::BUSY)
107
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::BUSY)
115
108
  end
116
- it 'assigns value FAILED' do
109
+ it "assigns value FAILED" do
117
110
  instance.call_ended_reason = Freeclimb::CallEndedReason::FAILED
118
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::FAILED)
111
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::FAILED)
119
112
  end
120
- it 'assigns value NO_ANSWER' do
113
+ it "assigns value NO_ANSWER" do
121
114
  instance.call_ended_reason = Freeclimb::CallEndedReason::NO_ANSWER
122
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::NO_ANSWER)
115
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::NO_ANSWER)
123
116
  end
124
- it 'assigns value CALL_CANCELED' do
117
+ it "assigns value CALL_CANCELED" do
125
118
  instance.call_ended_reason = Freeclimb::CallEndedReason::CALL_CANCELED
126
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::CALL_CANCELED)
119
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::CALL_CANCELED)
127
120
  end
128
- it 'assigns value FAR_END_HANGUP' do
121
+ it "assigns value FAR_END_HANGUP" do
129
122
  instance.call_ended_reason = Freeclimb::CallEndedReason::FAR_END_HANGUP
130
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::FAR_END_HANGUP)
123
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::FAR_END_HANGUP)
131
124
  end
132
- it 'assigns value APP_HANGUP' do
125
+ it "assigns value APP_HANGUP" do
133
126
  instance.call_ended_reason = Freeclimb::CallEndedReason::APP_HANGUP
134
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::APP_HANGUP)
127
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::APP_HANGUP)
135
128
  end
136
- it 'assigns value APP_REJECT' do
129
+ it "assigns value APP_REJECT" do
137
130
  instance.call_ended_reason = Freeclimb::CallEndedReason::APP_REJECT
138
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::APP_REJECT)
131
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::APP_REJECT)
139
132
  end
140
- it 'assigns value APP_NO_PERCL' do
133
+ it "assigns value APP_NO_PERCL" do
141
134
  instance.call_ended_reason = Freeclimb::CallEndedReason::APP_NO_PERCL
142
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::APP_NO_PERCL)
135
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::APP_NO_PERCL)
143
136
  end
144
- it 'assigns value APP_INVALID_PERCL' do
137
+ it "assigns value APP_INVALID_PERCL" do
145
138
  instance.call_ended_reason = Freeclimb::CallEndedReason::APP_INVALID_PERCL
146
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::APP_INVALID_PERCL)
139
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::APP_INVALID_PERCL)
147
140
  end
148
- it 'assigns value CONFERENCE_TERMINATED' do
141
+ it "assigns value CONFERENCE_TERMINATED" do
149
142
  instance.call_ended_reason = Freeclimb::CallEndedReason::CONFERENCE_TERMINATED
150
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::CONFERENCE_TERMINATED)
143
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::CONFERENCE_TERMINATED)
151
144
  end
152
- it 'assigns value CONFERENCE_EMPTIED' do
145
+ it "assigns value CONFERENCE_EMPTIED" do
153
146
  instance.call_ended_reason = Freeclimb::CallEndedReason::CONFERENCE_EMPTIED
154
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::CONFERENCE_EMPTIED)
147
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::CONFERENCE_EMPTIED)
155
148
  end
156
- it 'assigns value REMOVED_FROM_CONFERENCE' do
149
+ it "assigns value REMOVED_FROM_CONFERENCE" do
157
150
  instance.call_ended_reason = Freeclimb::CallEndedReason::REMOVED_FROM_CONFERENCE
158
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::REMOVED_FROM_CONFERENCE)
151
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::REMOVED_FROM_CONFERENCE)
159
152
  end
160
- it 'assigns value MACHINE_DETECTED' do
153
+ it "assigns value MACHINE_DETECTED" do
161
154
  instance.call_ended_reason = Freeclimb::CallEndedReason::MACHINE_DETECTED
162
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::MACHINE_DETECTED)
155
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::MACHINE_DETECTED)
163
156
  end
164
- it 'assigns value WEBHOOK_FAILED' do
157
+ it "assigns value WEBHOOK_FAILED" do
165
158
  instance.call_ended_reason = Freeclimb::CallEndedReason::WEBHOOK_FAILED
166
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::WEBHOOK_FAILED)
159
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::WEBHOOK_FAILED)
167
160
  end
168
- it 'assigns value WEBHOOK_INVALID_RESPONSE' do
161
+ it "assigns value WEBHOOK_INVALID_RESPONSE" do
169
162
  instance.call_ended_reason = Freeclimb::CallEndedReason::WEBHOOK_INVALID_RESPONSE
170
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::WEBHOOK_INVALID_RESPONSE)
163
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::WEBHOOK_INVALID_RESPONSE)
171
164
  end
172
- it 'assigns value VOICE_DISABLED' do
165
+ it "assigns value VOICE_DISABLED" do
173
166
  instance.call_ended_reason = Freeclimb::CallEndedReason::VOICE_DISABLED
174
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::VOICE_DISABLED)
167
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::VOICE_DISABLED)
175
168
  end
176
- it 'assigns value CONFIG_ERROR_NO_APPLICATION' do
169
+ it "assigns value CONFIG_ERROR_NO_APPLICATION" do
177
170
  instance.call_ended_reason = Freeclimb::CallEndedReason::CONFIG_ERROR_NO_APPLICATION
178
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::CONFIG_ERROR_NO_APPLICATION)
171
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::CONFIG_ERROR_NO_APPLICATION)
179
172
  end
180
- it 'assigns value CONFIG_ERROR_NO_VOICE_URL' do
173
+ it "assigns value CONFIG_ERROR_NO_VOICE_URL" do
181
174
  instance.call_ended_reason = Freeclimb::CallEndedReason::CONFIG_ERROR_NO_VOICE_URL
182
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::CONFIG_ERROR_NO_VOICE_URL)
175
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::CONFIG_ERROR_NO_VOICE_URL)
183
176
  end
184
- it 'assigns value MAX_REDIRECTS_ERROR' do
177
+ it "assigns value MAX_REDIRECTS_ERROR" do
185
178
  instance.call_ended_reason = Freeclimb::CallEndedReason::MAX_REDIRECTS_ERROR
186
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::MAX_REDIRECTS_ERROR)
179
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::MAX_REDIRECTS_ERROR)
187
180
  end
188
- it 'assigns value PERCL_PROCESSING_ERROR' do
181
+ it "assigns value PERCL_PROCESSING_ERROR" do
189
182
  instance.call_ended_reason = Freeclimb::CallEndedReason::PERCL_PROCESSING_ERROR
190
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::PERCL_PROCESSING_ERROR)
183
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::PERCL_PROCESSING_ERROR)
191
184
  end
192
- it 'assigns value INTERNAL_ERROR' do
185
+ it "assigns value INTERNAL_ERROR" do
193
186
  instance.call_ended_reason = Freeclimb::CallEndedReason::INTERNAL_ERROR
194
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::INTERNAL_ERROR)
187
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::INTERNAL_ERROR)
195
188
  end
196
- it 'assigns value GRPC_HANGUP' do
189
+ it "assigns value GRPC_HANGUP" do
197
190
  instance.call_ended_reason = Freeclimb::CallEndedReason::GRPC_HANGUP
198
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::GRPC_HANGUP)
191
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::GRPC_HANGUP)
199
192
  end
200
- it 'assigns value MAX_DURATION' do
193
+ it "assigns value MAX_DURATION" do
201
194
  instance.call_ended_reason = Freeclimb::CallEndedReason::MAX_DURATION
202
- expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::MAX_DURATION)
195
+ expect(instance.call_ended_reason).to eq(Freeclimb::CallEndedReason::MAX_DURATION)
203
196
  end
204
197
  end
205
198
 
206
199
  describe 'test attribute "direction"' do
207
- it 'assigns value INBOUND' do
200
+ it "assigns value INBOUND" do
208
201
  instance.direction = Freeclimb::CallDirection::INBOUND
209
- expect(instance.direction).to eq(Freeclimb::CallDirection::INBOUND)
202
+ expect(instance.direction).to eq(Freeclimb::CallDirection::INBOUND)
210
203
  end
211
- it 'assigns value OUTBOUND_API' do
204
+ it "assigns value OUTBOUND_API" do
212
205
  instance.direction = Freeclimb::CallDirection::OUTBOUND_API
213
- expect(instance.direction).to eq(Freeclimb::CallDirection::OUTBOUND_API)
206
+ expect(instance.direction).to eq(Freeclimb::CallDirection::OUTBOUND_API)
214
207
  end
215
- it 'assigns value OUTBOUND_DIAL' do
208
+ it "assigns value OUTBOUND_DIAL" do
216
209
  instance.direction = Freeclimb::CallDirection::OUTBOUND_DIAL
217
- expect(instance.direction).to eq(Freeclimb::CallDirection::OUTBOUND_DIAL)
210
+ expect(instance.direction).to eq(Freeclimb::CallDirection::OUTBOUND_DIAL)
218
211
  end
219
212
  end
220
213
  describe 'test attribute "conference_id"' do
221
- it 'should work' do
214
+ it "should work" do
222
215
  instance.conference_id = "TEST_STRING"
223
- expect(instance.conference_id).to eq("TEST_STRING")
224
-
216
+ expect(instance.conference_id).to eq("TEST_STRING")
225
217
  end
226
218
  end
227
219
 
228
220
  describe 'test attribute "queue_id"' do
229
- it 'should work' do
221
+ it "should work" do
230
222
  instance.queue_id = "TEST_STRING"
231
- expect(instance.queue_id).to eq("TEST_STRING")
232
-
223
+ expect(instance.queue_id).to eq("TEST_STRING")
233
224
  end
234
225
  end
235
226
 
236
227
  describe 'test method "initialize"' do
237
- it 'properly initializes with values' do
238
- expect { instance = Freeclimb::CallStatusWebhook.new(
239
- request_type: "TS",
240
-
241
- call_id: "TS",
242
-
243
- account_id: "TS",
244
-
245
- from: "TS",
246
-
247
- to: "TS",
248
-
249
-
250
- call_status: Freeclimb::CallStatus::QUEUED,
251
-
252
-
253
- call_ended_reason: Freeclimb::CallEndedReason::BUSY,
254
-
255
-
256
- direction: Freeclimb::CallDirection::INBOUND,
257
-
258
- conference_id: "TS",
259
-
260
- queue_id: "TS",
261
-
262
- )}.not_to raise_error()
263
- end
264
- it 'fails to initialize with input argument that is not a hash in Freeclimb::CallStatusWebhook' do
265
- expect { instance = Freeclimb::CallStatusWebhook.new(
266
- request_type: "TS",
267
-
268
- call_id: "TS",
269
-
270
- account_id: "TS",
271
-
272
- from: "TS",
273
-
274
- to: "TS",
275
-
276
-
277
- call_status: Freeclimb::CallStatus::QUEUED,
278
-
279
-
280
- call_ended_reason: Freeclimb::CallEndedReason::BUSY,
281
-
282
-
283
- direction: Freeclimb::CallDirection::INBOUND,
284
-
285
- conference_id: "TS",
286
-
287
- queue_id: "TS",
288
-
289
- invalid_attribute: true
290
- )}.to raise_error(ArgumentError)
291
- end
292
- it 'fails to initialize with invalid attribute' do
293
- expect { instance = Freeclimb::CallStatusWebhook.new(
294
- request_type: "TS",
295
-
296
- call_id: "TS",
297
-
298
- account_id: "TS",
299
-
300
- from: "TS",
301
-
302
- to: "TS",
303
-
304
-
305
- call_status: Freeclimb::CallStatus::QUEUED,
306
-
307
-
308
- call_ended_reason: Freeclimb::CallEndedReason::BUSY,
309
-
310
-
311
- direction: Freeclimb::CallDirection::INBOUND,
312
-
313
- conference_id: "TS",
314
-
315
- queue_id: "TS",
316
-
317
- invalid_attribute: true
318
- )}.to raise_error(ArgumentError)
319
- end
320
- end
321
-
322
- describe 'test method "valid"' do
323
- it 'checks if properties are valid' do
324
- instance = Freeclimb::CallStatusWebhook.new(
228
+ it "properly initializes with values" do
229
+ expect {
230
+ Freeclimb::CallStatusWebhook.new(
325
231
  request_type: "TS",
326
-
232
+
327
233
  call_id: "TS",
328
-
234
+
329
235
  account_id: "TS",
330
-
236
+
331
237
  from: "TS",
332
-
238
+
333
239
  to: "TS",
334
-
335
-
240
+
336
241
  call_status: Freeclimb::CallStatus::QUEUED,
337
-
338
-
242
+
339
243
  call_ended_reason: Freeclimb::CallEndedReason::BUSY,
340
-
341
-
244
+
342
245
  direction: Freeclimb::CallDirection::INBOUND,
343
-
344
- conference_id: "TS",
345
-
346
- queue_id: "TS",
347
-
348
- )
349
- expect(instance.valid?).to eq(true)
350
- end
351
246
 
247
+ conference_id: "TS",
352
248
 
353
- skip 'checks if properties are invalid' do
354
- instance = Freeclimb::CallStatusWebhook.new(
355
-
356
- )
357
- expect(instance.valid?).to eq(false)
249
+ queue_id: "TS"
250
+ )
251
+ }.not_to raise_error
358
252
  end
359
-
360
- end
361
-
362
- describe 'test method "eql?"' do
363
- it 'checks if objects are equal' do
364
- obj = Object.new()
365
- instance_1 = Freeclimb::CallStatusWebhook.new(
253
+ it "fails to initialize with input argument that is not a hash in Freeclimb::CallStatusWebhook" do
254
+ expect {
255
+ Freeclimb::CallStatusWebhook.new(
366
256
  request_type: "TS",
367
-
257
+
368
258
  call_id: "TS",
369
-
259
+
370
260
  account_id: "TS",
371
-
261
+
372
262
  from: "TS",
373
-
263
+
374
264
  to: "TS",
375
-
376
-
265
+
377
266
  call_status: Freeclimb::CallStatus::QUEUED,
378
-
379
-
267
+
380
268
  call_ended_reason: Freeclimb::CallEndedReason::BUSY,
381
-
382
-
269
+
383
270
  direction: Freeclimb::CallDirection::INBOUND,
384
-
271
+
385
272
  conference_id: "TS",
386
-
273
+
387
274
  queue_id: "TS",
388
-
389
- )
390
- instance_2 = Freeclimb::CallStatusWebhook.new(
275
+
276
+ invalid_attribute: true
277
+ )
278
+ }.to raise_error(ArgumentError)
279
+ end
280
+ it "fails to initialize with invalid attribute" do
281
+ expect {
282
+ Freeclimb::CallStatusWebhook.new(
391
283
  request_type: "TS",
392
-
284
+
393
285
  call_id: "TS",
394
-
286
+
395
287
  account_id: "TS",
396
-
288
+
397
289
  from: "TS",
398
-
290
+
399
291
  to: "TS",
400
-
401
-
292
+
402
293
  call_status: Freeclimb::CallStatus::QUEUED,
403
-
404
-
294
+
405
295
  call_ended_reason: Freeclimb::CallEndedReason::BUSY,
406
-
407
-
296
+
408
297
  direction: Freeclimb::CallDirection::INBOUND,
409
-
298
+
410
299
  conference_id: "TS",
411
-
300
+
412
301
  queue_id: "TS",
413
-
302
+
303
+ invalid_attribute: true
304
+ )
305
+ }.to raise_error(ArgumentError)
306
+ end
307
+ end
308
+
309
+ describe 'test method "valid"' do
310
+ it "checks if properties are valid" do
311
+ instance = Freeclimb::CallStatusWebhook.new(
312
+ request_type: "TS",
313
+
314
+ call_id: "TS",
315
+
316
+ account_id: "TS",
317
+
318
+ from: "TS",
319
+
320
+ to: "TS",
321
+
322
+ call_status: Freeclimb::CallStatus::QUEUED,
323
+
324
+ call_ended_reason: Freeclimb::CallEndedReason::BUSY,
325
+
326
+ direction: Freeclimb::CallDirection::INBOUND,
327
+
328
+ conference_id: "TS",
329
+
330
+ queue_id: "TS"
331
+ )
332
+ expect(instance.valid?).to eq(true)
333
+ end
334
+
335
+ skip "checks if properties are invalid" do
336
+ instance = Freeclimb::CallStatusWebhook.new
337
+
338
+ expect(instance.valid?).to eq(false)
339
+ end
340
+ end
341
+
342
+ describe 'test method "eql?"' do
343
+ it "checks if objects are equal" do
344
+ instance_1 = Freeclimb::CallStatusWebhook.new(
345
+ request_type: "TS",
346
+
347
+ call_id: "TS",
348
+
349
+ account_id: "TS",
350
+
351
+ from: "TS",
352
+
353
+ to: "TS",
354
+
355
+ call_status: Freeclimb::CallStatus::QUEUED,
356
+
357
+ call_ended_reason: Freeclimb::CallEndedReason::BUSY,
358
+
359
+ direction: Freeclimb::CallDirection::INBOUND,
360
+
361
+ conference_id: "TS",
362
+
363
+ queue_id: "TS"
364
+ )
365
+ instance_2 = Freeclimb::CallStatusWebhook.new(
366
+ request_type: "TS",
367
+
368
+ call_id: "TS",
369
+
370
+ account_id: "TS",
371
+
372
+ from: "TS",
373
+
374
+ to: "TS",
375
+
376
+ call_status: Freeclimb::CallStatus::QUEUED,
377
+
378
+ call_ended_reason: Freeclimb::CallEndedReason::BUSY,
379
+
380
+ direction: Freeclimb::CallDirection::INBOUND,
381
+
382
+ conference_id: "TS",
383
+
384
+ queue_id: "TS"
414
385
  )
415
386
  expect(instance_1.eql?(instance_2)).to eq(true)
416
387
  end
417
-
418
- it 'checks if objects are not equal' do
388
+
389
+ it "checks if objects are not equal" do
419
390
  instance_1 = Freeclimb::CallStatusWebhook.new(
420
- request_type: "TS",
421
-
422
- call_id: "TS",
423
-
424
- account_id: "TS",
425
-
426
- from: "TS",
427
-
428
- to: "TS",
429
-
430
-
431
- call_status: Freeclimb::CallStatus::QUEUED,
432
-
433
-
434
- call_ended_reason: Freeclimb::CallEndedReason::BUSY,
435
-
436
-
437
- direction: Freeclimb::CallDirection::INBOUND,
438
-
439
- conference_id: "TS",
440
-
441
- queue_id: "TS",
442
-
391
+ request_type: "TS",
392
+
393
+ call_id: "TS",
394
+
395
+ account_id: "TS",
396
+
397
+ from: "TS",
398
+
399
+ to: "TS",
400
+
401
+ call_status: Freeclimb::CallStatus::QUEUED,
402
+
403
+ call_ended_reason: Freeclimb::CallEndedReason::BUSY,
404
+
405
+ direction: Freeclimb::CallDirection::INBOUND,
406
+
407
+ conference_id: "TS",
408
+
409
+ queue_id: "TS"
443
410
  )
444
411
  instance_2 = Freeclimb::CallStatusWebhook.new(
445
- request_type: "ST",
446
-
447
- call_id: "ST",
448
-
449
- account_id: "ST",
450
-
451
- from: "ST",
452
-
453
- to: "ST",
454
-
455
-
456
- call_status: nil,
457
-
458
-
459
- call_ended_reason: nil,
460
-
461
-
462
- direction: nil,
463
-
464
- conference_id: "ST",
465
-
466
- queue_id: "ST",
467
-
412
+ request_type: "ST",
413
+
414
+ call_id: "ST",
415
+
416
+ account_id: "ST",
417
+
418
+ from: "ST",
419
+
420
+ to: "ST",
421
+
422
+ call_status: nil,
423
+
424
+ call_ended_reason: nil,
425
+
426
+ direction: nil,
427
+
428
+ conference_id: "ST",
429
+
430
+ queue_id: "ST"
468
431
  )
469
432
  expect(instance_1.eql?(instance_2)).to eq(false)
470
433
  end
471
434
  end
472
-
435
+
473
436
  describe 'test method "hash"' do
474
- it 'calculates hash code' do
437
+ it "calculates hash code" do
475
438
  instance = Freeclimb::CallStatusWebhook.new(
476
- request_type: "TS",
477
-
478
- call_id: "TS",
479
-
480
- account_id: "TS",
481
-
482
- from: "TS",
483
-
484
- to: "TS",
485
-
486
-
487
- call_status: Freeclimb::CallStatus::QUEUED,
488
-
489
-
490
- call_ended_reason: Freeclimb::CallEndedReason::BUSY,
491
-
492
-
493
- direction: Freeclimb::CallDirection::INBOUND,
494
-
495
- conference_id: "TS",
496
-
497
- queue_id: "TS",
498
-
499
- )
439
+ request_type: "TS",
440
+
441
+ call_id: "TS",
442
+
443
+ account_id: "TS",
444
+
445
+ from: "TS",
446
+
447
+ to: "TS",
448
+
449
+ call_status: Freeclimb::CallStatus::QUEUED,
450
+
451
+ call_ended_reason: Freeclimb::CallEndedReason::BUSY,
452
+
453
+ direction: Freeclimb::CallDirection::INBOUND,
454
+
455
+ conference_id: "TS",
456
+
457
+ queue_id: "TS"
458
+ )
500
459
  expect(instance.hash).to be_a_kind_of(Integer)
501
460
  end
502
461
  end
503
462
 
504
463
  describe 'test method "build_from_hash"' do
505
- it 'builds equivalent model from hash code' do
464
+ it "builds equivalent model from hash code" do
506
465
  instance_1 = Freeclimb::CallStatusWebhook.new(
507
466
  request_type: "TS",
508
-
467
+
509
468
  call_id: "TS",
510
-
469
+
511
470
  account_id: "TS",
512
-
471
+
513
472
  from: "TS",
514
-
473
+
515
474
  to: "TS",
516
-
517
-
475
+
518
476
  call_status: Freeclimb::CallStatus::QUEUED,
519
-
520
-
477
+
521
478
  call_ended_reason: Freeclimb::CallEndedReason::BUSY,
522
-
523
-
479
+
524
480
  direction: Freeclimb::CallDirection::INBOUND,
525
-
481
+
526
482
  conference_id: "TS",
527
-
528
- queue_id: "TS",
529
-
483
+
484
+ queue_id: "TS"
530
485
  )
531
486
  instance_2 = Freeclimb::CallStatusWebhook.new(
532
487
  request_type: "TS",
533
-
488
+
534
489
  call_id: "TS",
535
-
490
+
536
491
  account_id: "TS",
537
-
492
+
538
493
  from: "TS",
539
-
494
+
540
495
  to: "TS",
541
-
542
-
496
+
543
497
  call_status: Freeclimb::CallStatus::QUEUED,
544
-
545
-
498
+
546
499
  call_ended_reason: Freeclimb::CallEndedReason::BUSY,
547
-
548
-
500
+
549
501
  direction: Freeclimb::CallDirection::INBOUND,
550
-
502
+
551
503
  conference_id: "TS",
552
-
553
- queue_id: "TS",
554
-
504
+
505
+ queue_id: "TS"
555
506
  )
556
507
 
557
508
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
@@ -560,164 +511,149 @@ describe Freeclimb::CallStatusWebhook do
560
511
 
561
512
  describe 'test method "_deserialize"' do
562
513
  instance = Freeclimb::CallStatusWebhook.new(
563
- request_type: "TS",
564
-
565
- call_id: "TS",
566
-
567
- account_id: "TS",
568
-
569
- from: "TS",
570
-
571
- to: "TS",
572
-
573
-
574
- call_status: Freeclimb::CallStatus::QUEUED,
575
-
576
-
577
- call_ended_reason: Freeclimb::CallEndedReason::BUSY,
578
-
579
-
580
- direction: Freeclimb::CallDirection::INBOUND,
581
-
582
- conference_id: "TS",
583
-
584
- queue_id: "TS",
585
-
514
+ request_type: "TS",
515
+
516
+ call_id: "TS",
517
+
518
+ account_id: "TS",
519
+
520
+ from: "TS",
521
+
522
+ to: "TS",
523
+
524
+ call_status: Freeclimb::CallStatus::QUEUED,
525
+
526
+ call_ended_reason: Freeclimb::CallEndedReason::BUSY,
527
+
528
+ direction: Freeclimb::CallDirection::INBOUND,
529
+
530
+ conference_id: "TS",
531
+
532
+ queue_id: "TS"
586
533
  )
587
- it 'deserializes the data of request_type' do
534
+ it "deserializes the data of request_type" do
588
535
  expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String)
589
536
  end
590
- it 'deserializes the data of call_id' do
537
+
538
+ it "deserializes the data of call_id" do
591
539
  expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String)
592
540
  end
593
- it 'deserializes the data of account_id' do
541
+
542
+ it "deserializes the data of account_id" do
594
543
  expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
595
544
  end
596
- it 'deserializes the data of from' do
545
+
546
+ it "deserializes the data of from" do
597
547
  expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String)
598
548
  end
599
- it 'deserializes the data of to' do
549
+
550
+ it "deserializes the data of to" do
600
551
  expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String)
601
552
  end
602
- it 'deserializes the data of conference_id' do
553
+
554
+ it "deserializes the data of conference_id" do
603
555
  expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String)
604
556
  end
605
- it 'deserializes the data of queue_id' do
557
+
558
+ it "deserializes the data of queue_id" do
606
559
  expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String)
607
560
  end
608
561
  end
609
562
 
610
563
  describe 'test method "to_s"' do
611
- it 'returns the string representation of the object' do
564
+ it "returns the string representation of the object" do
612
565
  instance = Freeclimb::CallStatusWebhook.new(
613
566
  request_type: "TS",
614
-
567
+
615
568
  call_id: "TS",
616
-
569
+
617
570
  account_id: "TS",
618
-
571
+
619
572
  from: "TS",
620
-
573
+
621
574
  to: "TS",
622
-
623
-
575
+
624
576
  call_status: Freeclimb::CallStatus::QUEUED,
625
-
626
-
577
+
627
578
  call_ended_reason: Freeclimb::CallEndedReason::BUSY,
628
-
629
-
579
+
630
580
  direction: Freeclimb::CallDirection::INBOUND,
631
-
581
+
632
582
  conference_id: "TS",
633
-
634
- queue_id: "TS",
635
-
583
+
584
+ queue_id: "TS"
636
585
  )
637
586
  expect(instance.to_s).to eq(instance.to_hash.to_s)
638
587
  end
639
588
  end
640
589
 
641
590
  describe 'test method "to_hash"' do
642
- it 'returns the object in the form of hash' do
591
+ it "returns the object in the form of hash" do
643
592
  instance = Freeclimb::CallStatusWebhook.new(
644
593
  request_type: "TS",
645
-
594
+
646
595
  call_id: "TS",
647
-
596
+
648
597
  account_id: "TS",
649
-
598
+
650
599
  from: "TS",
651
-
600
+
652
601
  to: "TS",
653
-
654
-
602
+
655
603
  call_status: Freeclimb::CallStatus::QUEUED,
656
-
657
-
604
+
658
605
  call_ended_reason: Freeclimb::CallEndedReason::BUSY,
659
-
660
-
606
+
661
607
  direction: Freeclimb::CallDirection::INBOUND,
662
-
608
+
663
609
  conference_id: "TS",
664
-
665
- queue_id: "TS",
666
-
610
+
611
+ queue_id: "TS"
667
612
  )
668
613
  expect(instance.to_hash).to be_a_kind_of(Hash)
669
614
  end
670
- it 'creates equal hash for two equal objects' do
671
- obj = Object.new()
615
+ it "creates equal hash for two equal objects" do
672
616
  instance_1 = Freeclimb::CallStatusWebhook.new(
673
617
  request_type: "TS",
674
-
618
+
675
619
  call_id: "TS",
676
-
620
+
677
621
  account_id: "TS",
678
-
622
+
679
623
  from: "TS",
680
-
624
+
681
625
  to: "TS",
682
-
683
-
626
+
684
627
  call_status: Freeclimb::CallStatus::QUEUED,
685
-
686
-
628
+
687
629
  call_ended_reason: Freeclimb::CallEndedReason::BUSY,
688
-
689
-
630
+
690
631
  direction: Freeclimb::CallDirection::INBOUND,
691
-
632
+
692
633
  conference_id: "TS",
693
-
694
- queue_id: "TS",
695
-
634
+
635
+ queue_id: "TS"
696
636
  )
697
637
  instance_2 = Freeclimb::CallStatusWebhook.new(
698
638
  request_type: "TS",
699
-
639
+
700
640
  call_id: "TS",
701
-
641
+
702
642
  account_id: "TS",
703
-
643
+
704
644
  from: "TS",
705
-
645
+
706
646
  to: "TS",
707
-
708
-
647
+
709
648
  call_status: Freeclimb::CallStatus::QUEUED,
710
-
711
-
649
+
712
650
  call_ended_reason: Freeclimb::CallEndedReason::BUSY,
713
-
714
-
651
+
715
652
  direction: Freeclimb::CallDirection::INBOUND,
716
-
653
+
717
654
  conference_id: "TS",
718
-
719
- queue_id: "TS",
720
-
655
+
656
+ queue_id: "TS"
721
657
  )
722
658
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
723
659
  end
@@ -725,69 +661,55 @@ describe Freeclimb::CallStatusWebhook do
725
661
 
726
662
  describe 'test method "_to_hash"' do
727
663
  instance = Freeclimb::CallStatusWebhook.new(
728
- request_type: "TS",
729
-
730
-
731
- call_id: "TS",
732
-
733
-
734
- account_id: "TS",
735
-
736
-
737
- from: "TS",
738
-
739
-
740
- to: "TS",
741
-
742
-
743
-
744
- call_status: Freeclimb::CallStatus::QUEUED,
745
-
746
-
747
-
748
- call_ended_reason: Freeclimb::CallEndedReason::BUSY,
749
-
750
-
751
-
752
- direction: Freeclimb::CallDirection::INBOUND,
753
-
754
-
755
- conference_id: "TS",
756
-
757
-
758
- queue_id: "TS",
759
-
760
- )
761
- it 'returns request_type in the form of hash' do
664
+ request_type: "TS",
665
+
666
+ call_id: "TS",
667
+
668
+ account_id: "TS",
669
+
670
+ from: "TS",
671
+
672
+ to: "TS",
673
+
674
+ call_status: Freeclimb::CallStatus::QUEUED,
675
+
676
+ call_ended_reason: Freeclimb::CallEndedReason::BUSY,
677
+
678
+ direction: Freeclimb::CallDirection::INBOUND,
679
+
680
+ conference_id: "TS",
681
+
682
+ queue_id: "TS"
683
+ )
684
+ it "returns request_type in the form of hash" do
762
685
  expect(instance._to_hash(instance.request_type)).to eq(instance.request_type)
763
686
  end
764
- it 'returns call_id in the form of hash' do
687
+ it "returns call_id in the form of hash" do
765
688
  expect(instance._to_hash(instance.call_id)).to eq(instance.call_id)
766
689
  end
767
- it 'returns account_id in the form of hash' do
690
+ it "returns account_id in the form of hash" do
768
691
  expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)
769
692
  end
770
- it 'returns from in the form of hash' do
693
+ it "returns from in the form of hash" do
771
694
  expect(instance._to_hash(instance.from)).to eq(instance.from)
772
695
  end
773
- it 'returns to in the form of hash' do
696
+ it "returns to in the form of hash" do
774
697
  expect(instance._to_hash(instance.to)).to eq(instance.to)
775
698
  end
776
- it 'returns call_status in the form of hash' do
699
+ it "returns call_status in the form of hash" do
777
700
  expect(instance._to_hash(instance.call_status)).to eq(instance.call_status)
778
701
  end
779
- it 'returns call_ended_reason in the form of hash' do
702
+ it "returns call_ended_reason in the form of hash" do
780
703
  expect(instance._to_hash(instance.call_ended_reason)).to eq(instance.call_ended_reason)
781
704
  end
782
- it 'returns direction in the form of hash' do
705
+ it "returns direction in the form of hash" do
783
706
  expect(instance._to_hash(instance.direction)).to eq(instance.direction)
784
707
  end
785
- it 'returns conference_id in the form of hash' do
708
+ it "returns conference_id in the form of hash" do
786
709
  expect(instance._to_hash(instance.conference_id)).to eq(instance.conference_id)
787
710
  end
788
- it 'returns queue_id in the form of hash' do
711
+ it "returns queue_id in the form of hash" do
789
712
  expect(instance._to_hash(instance.queue_id)).to eq(instance.queue_id)
790
713
  end
791
714
  end
792
-
793
715
  end