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::RecordWebhook
18
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -20,931 +19,865 @@ require 'date'
20
19
  describe Freeclimb::RecordWebhook do
21
20
  let(:instance) { Freeclimb::RecordWebhook.new }
22
21
 
23
- describe 'test an instance of RecordWebhook' do
24
- it 'should create an instance of RecordWebhook' do
22
+ describe "test an instance of RecordWebhook" do
23
+ it "should create an instance of RecordWebhook" do
25
24
  expect(instance).to be_instance_of(Freeclimb::RecordWebhook)
26
25
  end
27
26
  end
28
- describe '.deserialize' do
29
- it 'deserializes a json payload into instance of RecordWebhook' do
27
+ describe ".deserialize" do
28
+ it "deserializes a json payload into instance of RecordWebhook" do
30
29
  payload = '{ "requestType": "record" }'
31
30
  expect(Freeclimb::RecordWebhook.deserialize(payload)).to be_instance_of(Freeclimb::RecordWebhook)
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 "account_id"' do
44
- it 'should work' do
42
+ it "should work" do
45
43
  instance.account_id = "TEST_STRING"
46
- expect(instance.account_id).to eq("TEST_STRING")
47
-
44
+ expect(instance.account_id).to eq("TEST_STRING")
48
45
  end
49
46
  end
50
47
 
51
48
  describe 'test attribute "call_id"' do
52
- it 'should work' do
49
+ it "should work" do
53
50
  instance.call_id = "TEST_STRING"
54
- expect(instance.call_id).to eq("TEST_STRING")
55
-
51
+ expect(instance.call_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
132
  describe 'test attribute "recording_id"' do
142
- it 'should work' do
133
+ it "should work" do
143
134
  instance.recording_id = "TEST_STRING"
144
- expect(instance.recording_id).to eq("TEST_STRING")
145
-
135
+ expect(instance.recording_id).to eq("TEST_STRING")
146
136
  end
147
137
  end
148
138
 
149
139
  describe 'test attribute "recording_url"' do
150
- it 'should work' do
140
+ it "should work" do
151
141
  instance.recording_url = "TEST_STRING"
152
- expect(instance.recording_url).to eq("TEST_STRING")
153
-
142
+ expect(instance.recording_url).to eq("TEST_STRING")
154
143
  end
155
144
  end
156
145
 
157
146
  describe 'test attribute "recording_size"' do
158
- it 'should work' do
147
+ it "should work" do
159
148
  instance.recording_size = "TEST_STRING"
160
- expect(instance.recording_size).to eq("TEST_STRING")
161
-
149
+ expect(instance.recording_size).to eq("TEST_STRING")
162
150
  end
163
151
  end
164
152
 
165
153
  describe 'test attribute "recording_format"' do
166
- it 'should work' do
154
+ it "should work" do
167
155
  instance.recording_format = "TEST_STRING"
168
- expect(instance.recording_format).to eq("TEST_STRING")
169
-
156
+ expect(instance.recording_format).to eq("TEST_STRING")
170
157
  end
171
158
  end
172
159
 
173
160
  describe 'test attribute "recording_duration_sec"' do
174
- it 'should work' do
175
-
176
-
161
+ it "should work" do
177
162
  instance.recording_duration_sec = 1
178
163
  expect(instance.recording_duration_sec).to eq(1)
179
-
180
164
  end
181
165
  end
182
166
 
183
-
184
167
  describe 'test attribute "term_reason"' do
185
- it 'assigns value FINISH_KEY' do
168
+ it "assigns value FINISH_KEY" do
186
169
  instance.term_reason = Freeclimb::RecordUtteranceTermReason::FINISH_KEY
187
- expect(instance.term_reason).to eq(Freeclimb::RecordUtteranceTermReason::FINISH_KEY)
170
+ expect(instance.term_reason).to eq(Freeclimb::RecordUtteranceTermReason::FINISH_KEY)
188
171
  end
189
- it 'assigns value TIMEOUT' do
172
+ it "assigns value TIMEOUT" do
190
173
  instance.term_reason = Freeclimb::RecordUtteranceTermReason::TIMEOUT
191
- expect(instance.term_reason).to eq(Freeclimb::RecordUtteranceTermReason::TIMEOUT)
174
+ expect(instance.term_reason).to eq(Freeclimb::RecordUtteranceTermReason::TIMEOUT)
192
175
  end
193
- it 'assigns value HANGUP' do
176
+ it "assigns value HANGUP" do
194
177
  instance.term_reason = Freeclimb::RecordUtteranceTermReason::HANGUP
195
- expect(instance.term_reason).to eq(Freeclimb::RecordUtteranceTermReason::HANGUP)
178
+ expect(instance.term_reason).to eq(Freeclimb::RecordUtteranceTermReason::HANGUP)
196
179
  end
197
- it 'assigns value MAX_LENGTH' do
180
+ it "assigns value MAX_LENGTH" do
198
181
  instance.term_reason = Freeclimb::RecordUtteranceTermReason::MAX_LENGTH
199
- expect(instance.term_reason).to eq(Freeclimb::RecordUtteranceTermReason::MAX_LENGTH)
182
+ expect(instance.term_reason).to eq(Freeclimb::RecordUtteranceTermReason::MAX_LENGTH)
200
183
  end
201
184
  end
202
185
  describe 'test attribute "parent_call_id"' do
203
- it 'should work' do
186
+ it "should work" do
204
187
  instance.parent_call_id = "TEST_STRING"
205
- expect(instance.parent_call_id).to eq("TEST_STRING")
206
-
188
+ expect(instance.parent_call_id).to eq("TEST_STRING")
207
189
  end
208
190
  end
209
191
 
210
192
  describe 'test attribute "privacy_mode"' do
211
- it 'should work' do
193
+ it "should work" do
212
194
  instance.privacy_mode = false
213
- expect(instance.privacy_mode).to eq(false)
214
-
195
+ expect(instance.privacy_mode).to eq(false)
215
196
  end
216
197
  end
217
198
 
218
199
  describe 'test method "initialize"' do
219
- it 'properly initializes with values' do
220
- expect { instance = Freeclimb::RecordWebhook.new(
221
- request_type: "TS",
222
-
223
- account_id: "TS",
224
-
225
- call_id: "TS",
226
-
227
- from: "TS",
228
-
229
- to: "TS",
230
-
231
-
232
- call_status: Freeclimb::CallStatus::QUEUED,
233
-
234
-
235
- direction: Freeclimb::CallDirection::INBOUND,
236
-
237
- conference_id: "TS",
238
-
239
- queue_id: "TS",
240
-
241
- recording_id: "TS",
242
-
243
- recording_url: "TS",
244
-
245
- recording_size: "TS",
246
-
247
- recording_format: "TS",
248
-
249
- recording_duration_sec: 1,
250
-
251
-
252
- term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
253
-
254
- parent_call_id: "TS",
255
-
256
- privacy_mode: true,
257
-
258
- )}.not_to raise_error()
259
- end
260
- it 'fails to initialize with input argument that is not a hash in Freeclimb::RecordWebhook' do
261
- expect { instance = Freeclimb::RecordWebhook.new(
262
- request_type: "TS",
263
-
264
- account_id: "TS",
265
-
266
- call_id: "TS",
267
-
268
- from: "TS",
269
-
270
- to: "TS",
271
-
272
-
273
- call_status: Freeclimb::CallStatus::QUEUED,
274
-
275
-
276
- direction: Freeclimb::CallDirection::INBOUND,
277
-
278
- conference_id: "TS",
279
-
280
- queue_id: "TS",
281
-
282
- recording_id: "TS",
283
-
284
- recording_url: "TS",
285
-
286
- recording_size: "TS",
287
-
288
- recording_format: "TS",
289
-
290
- recording_duration_sec: 1,
291
-
292
-
293
- term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
294
-
295
- parent_call_id: "TS",
296
-
297
- privacy_mode: true,
298
-
299
- invalid_attribute: true
300
- )}.to raise_error(ArgumentError)
301
- end
302
- it 'fails to initialize with invalid attribute' do
303
- expect { instance = Freeclimb::RecordWebhook.new(
304
- request_type: "TS",
305
-
306
- account_id: "TS",
307
-
308
- call_id: "TS",
309
-
310
- from: "TS",
311
-
312
- to: "TS",
313
-
314
-
315
- call_status: Freeclimb::CallStatus::QUEUED,
316
-
317
-
318
- direction: Freeclimb::CallDirection::INBOUND,
319
-
320
- conference_id: "TS",
321
-
322
- queue_id: "TS",
323
-
324
- recording_id: "TS",
325
-
326
- recording_url: "TS",
327
-
328
- recording_size: "TS",
329
-
330
- recording_format: "TS",
331
-
332
- recording_duration_sec: 1,
333
-
334
-
335
- term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
336
-
337
- parent_call_id: "TS",
338
-
339
- privacy_mode: true,
340
-
341
- invalid_attribute: true
342
- )}.to raise_error(ArgumentError)
343
- end
344
- end
345
-
346
- describe 'test method "valid"' do
347
- it 'checks if properties are valid' do
348
- instance = Freeclimb::RecordWebhook.new(
200
+ it "properly initializes with values" do
201
+ expect {
202
+ Freeclimb::RecordWebhook.new(
349
203
  request_type: "TS",
350
-
204
+
351
205
  account_id: "TS",
352
-
206
+
353
207
  call_id: "TS",
354
-
208
+
355
209
  from: "TS",
356
-
210
+
357
211
  to: "TS",
358
-
359
-
212
+
360
213
  call_status: Freeclimb::CallStatus::QUEUED,
361
-
362
-
214
+
363
215
  direction: Freeclimb::CallDirection::INBOUND,
364
-
216
+
365
217
  conference_id: "TS",
366
-
218
+
367
219
  queue_id: "TS",
368
-
220
+
369
221
  recording_id: "TS",
370
-
222
+
371
223
  recording_url: "TS",
372
-
224
+
373
225
  recording_size: "TS",
374
-
226
+
375
227
  recording_format: "TS",
376
-
228
+
377
229
  recording_duration_sec: 1,
378
-
379
-
230
+
380
231
  term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
381
-
382
- parent_call_id: "TS",
383
-
384
- privacy_mode: true,
385
-
386
- )
387
- expect(instance.valid?).to eq(true)
388
- end
389
232
 
233
+ parent_call_id: "TS",
390
234
 
391
- skip 'checks if properties are invalid' do
392
- instance = Freeclimb::RecordWebhook.new(
393
-
394
- )
395
- expect(instance.valid?).to eq(false)
235
+ privacy_mode: true
236
+ )
237
+ }.not_to raise_error
396
238
  end
397
-
398
- end
399
-
400
- describe 'test method "eql?"' do
401
- it 'checks if objects are equal' do
402
- obj = Object.new()
403
- instance_1 = Freeclimb::RecordWebhook.new(
404
- request_type: "TS",
405
-
406
- account_id: "TS",
407
-
408
- call_id: "TS",
409
-
410
- from: "TS",
411
-
412
- to: "TS",
413
-
414
-
415
- call_status: Freeclimb::CallStatus::QUEUED,
416
-
417
-
418
- direction: Freeclimb::CallDirection::INBOUND,
419
-
420
- conference_id: "TS",
421
-
422
- queue_id: "TS",
423
-
424
- recording_id: "TS",
425
-
426
- recording_url: "TS",
427
-
428
- recording_size: "TS",
429
-
430
- recording_format: "TS",
431
-
432
- recording_duration_sec: 1,
433
-
434
-
435
- term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
436
-
437
- parent_call_id: "TS",
438
-
439
- privacy_mode: true,
440
-
441
- )
442
- instance_2 = Freeclimb::RecordWebhook.new(
239
+ it "fails to initialize with input argument that is not a hash in Freeclimb::RecordWebhook" do
240
+ expect {
241
+ Freeclimb::RecordWebhook.new(
443
242
  request_type: "TS",
444
-
243
+
445
244
  account_id: "TS",
446
-
245
+
447
246
  call_id: "TS",
448
-
247
+
449
248
  from: "TS",
450
-
249
+
451
250
  to: "TS",
452
-
453
-
251
+
454
252
  call_status: Freeclimb::CallStatus::QUEUED,
455
-
456
-
253
+
457
254
  direction: Freeclimb::CallDirection::INBOUND,
458
-
255
+
459
256
  conference_id: "TS",
460
-
257
+
461
258
  queue_id: "TS",
462
-
259
+
463
260
  recording_id: "TS",
464
-
261
+
465
262
  recording_url: "TS",
466
-
263
+
467
264
  recording_size: "TS",
468
-
265
+
469
266
  recording_format: "TS",
470
-
267
+
471
268
  recording_duration_sec: 1,
472
-
473
-
269
+
474
270
  term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
475
-
271
+
476
272
  parent_call_id: "TS",
477
-
273
+
478
274
  privacy_mode: true,
479
-
480
- )
481
- expect(instance_1.eql?(instance_2)).to eq(true)
275
+
276
+ invalid_attribute: true
277
+ )
278
+ }.to raise_error(ArgumentError)
482
279
  end
483
-
484
- it 'checks if objects are not equal' do
485
- instance_1 = Freeclimb::RecordWebhook.new(
280
+ it "fails to initialize with invalid attribute" do
281
+ expect {
282
+ Freeclimb::RecordWebhook.new(
486
283
  request_type: "TS",
487
-
284
+
488
285
  account_id: "TS",
489
-
286
+
490
287
  call_id: "TS",
491
-
288
+
492
289
  from: "TS",
493
-
290
+
494
291
  to: "TS",
495
-
496
-
292
+
497
293
  call_status: Freeclimb::CallStatus::QUEUED,
498
-
499
-
294
+
500
295
  direction: Freeclimb::CallDirection::INBOUND,
501
-
296
+
502
297
  conference_id: "TS",
503
-
298
+
504
299
  queue_id: "TS",
505
-
300
+
506
301
  recording_id: "TS",
507
-
302
+
508
303
  recording_url: "TS",
509
-
304
+
510
305
  recording_size: "TS",
511
-
306
+
512
307
  recording_format: "TS",
513
-
514
- recording_duration_sec: 2,
515
-
516
-
308
+
309
+ recording_duration_sec: 1,
310
+
517
311
  term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
518
-
312
+
519
313
  parent_call_id: "TS",
520
-
314
+
521
315
  privacy_mode: true,
522
-
523
- )
524
- instance_2 = Freeclimb::RecordWebhook.new(
525
- request_type: "ST",
526
-
527
- account_id: "ST",
528
-
529
- call_id: "ST",
530
-
531
- from: "ST",
532
-
533
- to: "ST",
534
-
535
-
536
- call_status: nil,
537
-
538
-
539
- direction: nil,
540
-
541
- conference_id: "ST",
542
-
543
- queue_id: "ST",
544
-
545
- recording_id: "ST",
546
-
547
- recording_url: "ST",
548
-
549
- recording_size: "ST",
550
-
551
- recording_format: "ST",
552
-
553
- recording_duration_sec: 1,
554
-
555
-
556
- term_reason: nil,
557
-
558
- parent_call_id: "ST",
559
-
560
- privacy_mode: false,
561
-
562
- )
563
- expect(instance_1.eql?(instance_2)).to eq(false)
564
- end
565
- end
566
-
567
- describe 'test method "hash"' do
568
- it 'calculates hash code' do
569
- instance = Freeclimb::RecordWebhook.new(
570
- request_type: "TS",
571
-
572
- account_id: "TS",
573
-
574
- call_id: "TS",
575
-
576
- from: "TS",
577
-
578
- to: "TS",
579
-
580
-
581
- call_status: Freeclimb::CallStatus::QUEUED,
582
-
583
-
584
- direction: Freeclimb::CallDirection::INBOUND,
585
-
586
- conference_id: "TS",
587
-
588
- queue_id: "TS",
589
-
590
- recording_id: "TS",
591
-
592
- recording_url: "TS",
593
-
594
- recording_size: "TS",
595
-
596
- recording_format: "TS",
597
-
598
- recording_duration_sec: 1,
599
-
600
-
601
- term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
602
-
603
- parent_call_id: "TS",
604
-
605
- privacy_mode: true,
606
-
607
- )
608
- expect(instance.hash).to be_a_kind_of(Integer)
316
+
317
+ invalid_attribute: true
318
+ )
319
+ }.to raise_error(ArgumentError)
609
320
  end
610
321
  end
611
322
 
612
- describe 'test method "build_from_hash"' do
613
- it 'builds equivalent model from hash code' do
614
- instance_1 = Freeclimb::RecordWebhook.new(
323
+ describe 'test method "valid"' do
324
+ it "checks if properties are valid" do
325
+ instance = Freeclimb::RecordWebhook.new(
615
326
  request_type: "TS",
616
-
327
+
617
328
  account_id: "TS",
618
-
329
+
619
330
  call_id: "TS",
620
-
331
+
621
332
  from: "TS",
622
-
333
+
623
334
  to: "TS",
624
-
625
-
335
+
626
336
  call_status: Freeclimb::CallStatus::QUEUED,
627
-
628
-
337
+
629
338
  direction: Freeclimb::CallDirection::INBOUND,
630
-
339
+
631
340
  conference_id: "TS",
632
-
341
+
633
342
  queue_id: "TS",
634
-
343
+
635
344
  recording_id: "TS",
636
-
345
+
637
346
  recording_url: "TS",
638
-
347
+
639
348
  recording_size: "TS",
640
-
349
+
641
350
  recording_format: "TS",
642
-
351
+
643
352
  recording_duration_sec: 1,
644
-
645
-
353
+
646
354
  term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
647
-
355
+
648
356
  parent_call_id: "TS",
649
-
650
- privacy_mode: true,
651
-
357
+
358
+ privacy_mode: true
652
359
  )
653
- instance_2 = Freeclimb::RecordWebhook.new(
360
+ expect(instance.valid?).to eq(true)
361
+ end
362
+
363
+ skip "checks if properties are invalid" do
364
+ instance = Freeclimb::RecordWebhook.new
365
+
366
+ expect(instance.valid?).to eq(false)
367
+ end
368
+ end
369
+
370
+ describe 'test method "eql?"' do
371
+ it "checks if objects are equal" do
372
+ instance_1 = Freeclimb::RecordWebhook.new(
654
373
  request_type: "TS",
655
-
374
+
656
375
  account_id: "TS",
657
-
376
+
658
377
  call_id: "TS",
659
-
378
+
660
379
  from: "TS",
661
-
380
+
662
381
  to: "TS",
663
-
664
-
382
+
665
383
  call_status: Freeclimb::CallStatus::QUEUED,
666
-
667
-
384
+
668
385
  direction: Freeclimb::CallDirection::INBOUND,
669
-
386
+
670
387
  conference_id: "TS",
671
-
388
+
672
389
  queue_id: "TS",
673
-
390
+
674
391
  recording_id: "TS",
675
-
392
+
676
393
  recording_url: "TS",
677
-
394
+
678
395
  recording_size: "TS",
679
-
396
+
680
397
  recording_format: "TS",
681
-
398
+
682
399
  recording_duration_sec: 1,
683
-
684
-
400
+
685
401
  term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
686
-
687
- parent_call_id: "TS",
688
-
689
- privacy_mode: true,
690
-
691
- )
692
402
 
693
- expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
694
- end
695
- end
403
+ parent_call_id: "TS",
696
404
 
697
- describe 'test method "_deserialize"' do
698
- instance = Freeclimb::RecordWebhook.new(
405
+ privacy_mode: true
406
+ )
407
+ instance_2 = Freeclimb::RecordWebhook.new(
699
408
  request_type: "TS",
700
-
409
+
701
410
  account_id: "TS",
702
-
411
+
703
412
  call_id: "TS",
704
-
413
+
705
414
  from: "TS",
706
-
415
+
707
416
  to: "TS",
708
-
709
-
417
+
710
418
  call_status: Freeclimb::CallStatus::QUEUED,
711
-
712
-
419
+
713
420
  direction: Freeclimb::CallDirection::INBOUND,
714
-
421
+
715
422
  conference_id: "TS",
716
-
423
+
717
424
  queue_id: "TS",
718
-
425
+
719
426
  recording_id: "TS",
720
-
427
+
721
428
  recording_url: "TS",
722
-
429
+
723
430
  recording_size: "TS",
724
-
431
+
725
432
  recording_format: "TS",
726
-
433
+
727
434
  recording_duration_sec: 1,
728
-
729
-
435
+
730
436
  term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
731
-
437
+
732
438
  parent_call_id: "TS",
733
-
734
- privacy_mode: true,
735
-
736
- )
737
- it 'deserializes the data of request_type' do
738
- expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String)
739
- end
740
- it 'deserializes the data of account_id' do
741
- expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
742
- end
743
- it 'deserializes the data of call_id' do
744
- expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String)
745
- end
746
- it 'deserializes the data of from' do
747
- expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String)
748
- end
749
- it 'deserializes the data of to' do
750
- expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String)
751
- end
752
- it 'deserializes the data of conference_id' do
753
- expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String)
439
+
440
+ privacy_mode: true
441
+ )
442
+ expect(instance_1.eql?(instance_2)).to eq(true)
754
443
  end
755
- it 'deserializes the data of queue_id' do
444
+
445
+ it "checks if objects are not equal" do
446
+ instance_1 = Freeclimb::RecordWebhook.new(
447
+ request_type: "TS",
448
+
449
+ account_id: "TS",
450
+
451
+ call_id: "TS",
452
+
453
+ from: "TS",
454
+
455
+ to: "TS",
456
+
457
+ call_status: Freeclimb::CallStatus::QUEUED,
458
+
459
+ direction: Freeclimb::CallDirection::INBOUND,
460
+
461
+ conference_id: "TS",
462
+
463
+ queue_id: "TS",
464
+
465
+ recording_id: "TS",
466
+
467
+ recording_url: "TS",
468
+
469
+ recording_size: "TS",
470
+
471
+ recording_format: "TS",
472
+
473
+ recording_duration_sec: 2,
474
+
475
+ term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
476
+
477
+ parent_call_id: "TS",
478
+
479
+ privacy_mode: true
480
+ )
481
+ instance_2 = Freeclimb::RecordWebhook.new(
482
+ request_type: "ST",
483
+
484
+ account_id: "ST",
485
+
486
+ call_id: "ST",
487
+
488
+ from: "ST",
489
+
490
+ to: "ST",
491
+
492
+ call_status: nil,
493
+
494
+ direction: nil,
495
+
496
+ conference_id: "ST",
497
+
498
+ queue_id: "ST",
499
+
500
+ recording_id: "ST",
501
+
502
+ recording_url: "ST",
503
+
504
+ recording_size: "ST",
505
+
506
+ recording_format: "ST",
507
+
508
+ recording_duration_sec: 1,
509
+
510
+ term_reason: nil,
511
+
512
+ parent_call_id: "ST",
513
+
514
+ privacy_mode: false
515
+ )
516
+ expect(instance_1.eql?(instance_2)).to eq(false)
517
+ end
518
+ end
519
+
520
+ describe 'test method "hash"' do
521
+ it "calculates hash code" do
522
+ instance = Freeclimb::RecordWebhook.new(
523
+ request_type: "TS",
524
+
525
+ account_id: "TS",
526
+
527
+ call_id: "TS",
528
+
529
+ from: "TS",
530
+
531
+ to: "TS",
532
+
533
+ call_status: Freeclimb::CallStatus::QUEUED,
534
+
535
+ direction: Freeclimb::CallDirection::INBOUND,
536
+
537
+ conference_id: "TS",
538
+
539
+ queue_id: "TS",
540
+
541
+ recording_id: "TS",
542
+
543
+ recording_url: "TS",
544
+
545
+ recording_size: "TS",
546
+
547
+ recording_format: "TS",
548
+
549
+ recording_duration_sec: 1,
550
+
551
+ term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
552
+
553
+ parent_call_id: "TS",
554
+
555
+ privacy_mode: true
556
+ )
557
+ expect(instance.hash).to be_a_kind_of(Integer)
558
+ end
559
+ end
560
+
561
+ describe 'test method "build_from_hash"' do
562
+ it "builds equivalent model from hash code" do
563
+ instance_1 = Freeclimb::RecordWebhook.new(
564
+ request_type: "TS",
565
+
566
+ account_id: "TS",
567
+
568
+ call_id: "TS",
569
+
570
+ from: "TS",
571
+
572
+ to: "TS",
573
+
574
+ call_status: Freeclimb::CallStatus::QUEUED,
575
+
576
+ direction: Freeclimb::CallDirection::INBOUND,
577
+
578
+ conference_id: "TS",
579
+
580
+ queue_id: "TS",
581
+
582
+ recording_id: "TS",
583
+
584
+ recording_url: "TS",
585
+
586
+ recording_size: "TS",
587
+
588
+ recording_format: "TS",
589
+
590
+ recording_duration_sec: 1,
591
+
592
+ term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
593
+
594
+ parent_call_id: "TS",
595
+
596
+ privacy_mode: true
597
+ )
598
+ instance_2 = Freeclimb::RecordWebhook.new(
599
+ request_type: "TS",
600
+
601
+ account_id: "TS",
602
+
603
+ call_id: "TS",
604
+
605
+ from: "TS",
606
+
607
+ to: "TS",
608
+
609
+ call_status: Freeclimb::CallStatus::QUEUED,
610
+
611
+ direction: Freeclimb::CallDirection::INBOUND,
612
+
613
+ conference_id: "TS",
614
+
615
+ queue_id: "TS",
616
+
617
+ recording_id: "TS",
618
+
619
+ recording_url: "TS",
620
+
621
+ recording_size: "TS",
622
+
623
+ recording_format: "TS",
624
+
625
+ recording_duration_sec: 1,
626
+
627
+ term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
628
+
629
+ parent_call_id: "TS",
630
+
631
+ privacy_mode: true
632
+ )
633
+
634
+ expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
635
+ end
636
+ end
637
+
638
+ describe 'test method "_deserialize"' do
639
+ instance = Freeclimb::RecordWebhook.new(
640
+ request_type: "TS",
641
+
642
+ account_id: "TS",
643
+
644
+ call_id: "TS",
645
+
646
+ from: "TS",
647
+
648
+ to: "TS",
649
+
650
+ call_status: Freeclimb::CallStatus::QUEUED,
651
+
652
+ direction: Freeclimb::CallDirection::INBOUND,
653
+
654
+ conference_id: "TS",
655
+
656
+ queue_id: "TS",
657
+
658
+ recording_id: "TS",
659
+
660
+ recording_url: "TS",
661
+
662
+ recording_size: "TS",
663
+
664
+ recording_format: "TS",
665
+
666
+ recording_duration_sec: 1,
667
+
668
+ term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
669
+
670
+ parent_call_id: "TS",
671
+
672
+ privacy_mode: true
673
+ )
674
+ it "deserializes the data of request_type" do
675
+ expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String)
676
+ end
677
+
678
+ it "deserializes the data of account_id" do
679
+ expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
680
+ end
681
+
682
+ it "deserializes the data of call_id" do
683
+ expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String)
684
+ end
685
+
686
+ it "deserializes the data of from" do
687
+ expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String)
688
+ end
689
+
690
+ it "deserializes the data of to" do
691
+ expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String)
692
+ end
693
+
694
+ it "deserializes the data of conference_id" do
695
+ expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String)
696
+ end
697
+
698
+ it "deserializes the data of queue_id" do
756
699
  expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String)
757
700
  end
758
- it 'deserializes the data of recording_id' do
701
+
702
+ it "deserializes the data of recording_id" do
759
703
  expect(instance._deserialize("String", instance.recording_id)).to be_a_kind_of(String)
760
704
  end
761
- it 'deserializes the data of recording_url' do
705
+
706
+ it "deserializes the data of recording_url" do
762
707
  expect(instance._deserialize("String", instance.recording_url)).to be_a_kind_of(String)
763
708
  end
764
- it 'deserializes the data of recording_size' do
709
+
710
+ it "deserializes the data of recording_size" do
765
711
  expect(instance._deserialize("String", instance.recording_size)).to be_a_kind_of(String)
766
712
  end
767
- it 'deserializes the data of recording_format' do
713
+
714
+ it "deserializes the data of recording_format" do
768
715
  expect(instance._deserialize("String", instance.recording_format)).to be_a_kind_of(String)
769
716
  end
770
- it 'deserializes the data of recording_duration_sec' do
717
+
718
+ it "deserializes the data of recording_duration_sec" do
771
719
  expect(instance._deserialize("Integer", instance.recording_duration_sec)).to be_a_kind_of(Integer)
772
720
  end
773
- it 'deserializes the data of parent_call_id' do
721
+
722
+ it "deserializes the data of parent_call_id" do
774
723
  expect(instance._deserialize("String", instance.parent_call_id)).to be_a_kind_of(String)
775
724
  end
776
- it 'deserializes the data of privacy_mode' do
725
+
726
+ it "deserializes the data of privacy_mode" do
777
727
  expect(instance._deserialize("Boolean", instance.privacy_mode)).to be_a_kind_of(TrueClass)
778
728
  end
779
729
  end
780
730
 
781
731
  describe 'test method "to_s"' do
782
- it 'returns the string representation of the object' do
732
+ it "returns the string representation of the object" do
783
733
  instance = Freeclimb::RecordWebhook.new(
784
734
  request_type: "TS",
785
-
735
+
786
736
  account_id: "TS",
787
-
737
+
788
738
  call_id: "TS",
789
-
739
+
790
740
  from: "TS",
791
-
741
+
792
742
  to: "TS",
793
-
794
-
743
+
795
744
  call_status: Freeclimb::CallStatus::QUEUED,
796
-
797
-
745
+
798
746
  direction: Freeclimb::CallDirection::INBOUND,
799
-
747
+
800
748
  conference_id: "TS",
801
-
749
+
802
750
  queue_id: "TS",
803
-
751
+
804
752
  recording_id: "TS",
805
-
753
+
806
754
  recording_url: "TS",
807
-
755
+
808
756
  recording_size: "TS",
809
-
757
+
810
758
  recording_format: "TS",
811
-
759
+
812
760
  recording_duration_sec: 1,
813
-
814
-
761
+
815
762
  term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
816
-
763
+
817
764
  parent_call_id: "TS",
818
-
819
- privacy_mode: true,
820
-
765
+
766
+ privacy_mode: true
821
767
  )
822
768
  expect(instance.to_s).to eq(instance.to_hash.to_s)
823
769
  end
824
770
  end
825
771
 
826
772
  describe 'test method "to_hash"' do
827
- it 'returns the object in the form of hash' do
773
+ it "returns the object in the form of hash" do
828
774
  instance = Freeclimb::RecordWebhook.new(
829
775
  request_type: "TS",
830
-
776
+
831
777
  account_id: "TS",
832
-
778
+
833
779
  call_id: "TS",
834
-
780
+
835
781
  from: "TS",
836
-
782
+
837
783
  to: "TS",
838
-
839
-
784
+
840
785
  call_status: Freeclimb::CallStatus::QUEUED,
841
-
842
-
786
+
843
787
  direction: Freeclimb::CallDirection::INBOUND,
844
-
788
+
845
789
  conference_id: "TS",
846
-
790
+
847
791
  queue_id: "TS",
848
-
792
+
849
793
  recording_id: "TS",
850
-
794
+
851
795
  recording_url: "TS",
852
-
796
+
853
797
  recording_size: "TS",
854
-
798
+
855
799
  recording_format: "TS",
856
-
800
+
857
801
  recording_duration_sec: 1,
858
-
859
-
802
+
860
803
  term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
861
-
804
+
862
805
  parent_call_id: "TS",
863
-
864
- privacy_mode: true,
865
-
806
+
807
+ privacy_mode: true
866
808
  )
867
809
  expect(instance.to_hash).to be_a_kind_of(Hash)
868
810
  end
869
- it 'creates equal hash for two equal objects' do
870
- obj = Object.new()
811
+ it "creates equal hash for two equal objects" do
871
812
  instance_1 = Freeclimb::RecordWebhook.new(
872
813
  request_type: "TS",
873
-
814
+
874
815
  account_id: "TS",
875
-
816
+
876
817
  call_id: "TS",
877
-
818
+
878
819
  from: "TS",
879
-
820
+
880
821
  to: "TS",
881
-
882
-
822
+
883
823
  call_status: Freeclimb::CallStatus::QUEUED,
884
-
885
-
824
+
886
825
  direction: Freeclimb::CallDirection::INBOUND,
887
-
826
+
888
827
  conference_id: "TS",
889
-
828
+
890
829
  queue_id: "TS",
891
-
830
+
892
831
  recording_id: "TS",
893
-
832
+
894
833
  recording_url: "TS",
895
-
834
+
896
835
  recording_size: "TS",
897
-
836
+
898
837
  recording_format: "TS",
899
-
838
+
900
839
  recording_duration_sec: 1,
901
-
902
-
840
+
903
841
  term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
904
-
842
+
905
843
  parent_call_id: "TS",
906
-
907
- privacy_mode: true,
908
-
844
+
845
+ privacy_mode: true
909
846
  )
910
847
  instance_2 = Freeclimb::RecordWebhook.new(
911
848
  request_type: "TS",
912
-
849
+
913
850
  account_id: "TS",
914
-
851
+
915
852
  call_id: "TS",
916
-
853
+
917
854
  from: "TS",
918
-
855
+
919
856
  to: "TS",
920
-
921
-
857
+
922
858
  call_status: Freeclimb::CallStatus::QUEUED,
923
-
924
-
859
+
925
860
  direction: Freeclimb::CallDirection::INBOUND,
926
-
861
+
927
862
  conference_id: "TS",
928
-
863
+
929
864
  queue_id: "TS",
930
-
865
+
931
866
  recording_id: "TS",
932
-
867
+
933
868
  recording_url: "TS",
934
-
869
+
935
870
  recording_size: "TS",
936
-
871
+
937
872
  recording_format: "TS",
938
-
873
+
939
874
  recording_duration_sec: 1,
940
-
941
-
875
+
942
876
  term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
943
-
877
+
944
878
  parent_call_id: "TS",
945
-
946
- privacy_mode: true,
947
-
879
+
880
+ privacy_mode: true
948
881
  )
949
882
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
950
883
  end
@@ -952,111 +885,90 @@ describe Freeclimb::RecordWebhook do
952
885
 
953
886
  describe 'test method "_to_hash"' do
954
887
  instance = Freeclimb::RecordWebhook.new(
955
- request_type: "TS",
956
-
957
-
958
- account_id: "TS",
959
-
960
-
961
- call_id: "TS",
962
-
963
-
964
- from: "TS",
965
-
966
-
967
- to: "TS",
968
-
969
-
970
-
971
- call_status: Freeclimb::CallStatus::QUEUED,
972
-
973
-
974
-
975
- direction: Freeclimb::CallDirection::INBOUND,
976
-
977
-
978
- conference_id: "TS",
979
-
980
-
981
- queue_id: "TS",
982
-
983
-
984
- recording_id: "TS",
985
-
986
-
987
- recording_url: "TS",
988
-
989
-
990
- recording_size: "TS",
991
-
992
-
993
- recording_format: "TS",
994
-
995
-
996
- recording_duration_sec: 1,
997
-
998
-
999
-
1000
- term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
1001
-
1002
-
1003
- parent_call_id: "TS",
1004
-
1005
-
1006
- privacy_mode: true,
1007
-
1008
- )
1009
- it 'returns request_type in the form of hash' do
888
+ request_type: "TS",
889
+
890
+ account_id: "TS",
891
+
892
+ call_id: "TS",
893
+
894
+ from: "TS",
895
+
896
+ to: "TS",
897
+
898
+ call_status: Freeclimb::CallStatus::QUEUED,
899
+
900
+ direction: Freeclimb::CallDirection::INBOUND,
901
+
902
+ conference_id: "TS",
903
+
904
+ queue_id: "TS",
905
+
906
+ recording_id: "TS",
907
+
908
+ recording_url: "TS",
909
+
910
+ recording_size: "TS",
911
+
912
+ recording_format: "TS",
913
+
914
+ recording_duration_sec: 1,
915
+
916
+ term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY,
917
+
918
+ parent_call_id: "TS",
919
+
920
+ privacy_mode: true
921
+ )
922
+ it "returns request_type in the form of hash" do
1010
923
  expect(instance._to_hash(instance.request_type)).to eq(instance.request_type)
1011
924
  end
1012
- it 'returns account_id in the form of hash' do
925
+ it "returns account_id in the form of hash" do
1013
926
  expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)
1014
927
  end
1015
- it 'returns call_id in the form of hash' do
928
+ it "returns call_id in the form of hash" do
1016
929
  expect(instance._to_hash(instance.call_id)).to eq(instance.call_id)
1017
930
  end
1018
- it 'returns from in the form of hash' do
931
+ it "returns from in the form of hash" do
1019
932
  expect(instance._to_hash(instance.from)).to eq(instance.from)
1020
933
  end
1021
- it 'returns to in the form of hash' do
934
+ it "returns to in the form of hash" do
1022
935
  expect(instance._to_hash(instance.to)).to eq(instance.to)
1023
936
  end
1024
- it 'returns call_status in the form of hash' do
937
+ it "returns call_status in the form of hash" do
1025
938
  expect(instance._to_hash(instance.call_status)).to eq(instance.call_status)
1026
939
  end
1027
- it 'returns direction in the form of hash' do
940
+ it "returns direction in the form of hash" do
1028
941
  expect(instance._to_hash(instance.direction)).to eq(instance.direction)
1029
942
  end
1030
- it 'returns conference_id in the form of hash' do
943
+ it "returns conference_id in the form of hash" do
1031
944
  expect(instance._to_hash(instance.conference_id)).to eq(instance.conference_id)
1032
945
  end
1033
- it 'returns queue_id in the form of hash' do
946
+ it "returns queue_id in the form of hash" do
1034
947
  expect(instance._to_hash(instance.queue_id)).to eq(instance.queue_id)
1035
948
  end
1036
- it 'returns recording_id in the form of hash' do
949
+ it "returns recording_id in the form of hash" do
1037
950
  expect(instance._to_hash(instance.recording_id)).to eq(instance.recording_id)
1038
951
  end
1039
- it 'returns recording_url in the form of hash' do
952
+ it "returns recording_url in the form of hash" do
1040
953
  expect(instance._to_hash(instance.recording_url)).to eq(instance.recording_url)
1041
954
  end
1042
- it 'returns recording_size in the form of hash' do
955
+ it "returns recording_size in the form of hash" do
1043
956
  expect(instance._to_hash(instance.recording_size)).to eq(instance.recording_size)
1044
957
  end
1045
- it 'returns recording_format in the form of hash' do
958
+ it "returns recording_format in the form of hash" do
1046
959
  expect(instance._to_hash(instance.recording_format)).to eq(instance.recording_format)
1047
960
  end
1048
- it 'returns recording_duration_sec in the form of hash' do
961
+ it "returns recording_duration_sec in the form of hash" do
1049
962
  expect(instance._to_hash(instance.recording_duration_sec)).to eq(instance.recording_duration_sec)
1050
963
  end
1051
- it 'returns term_reason in the form of hash' do
964
+ it "returns term_reason in the form of hash" do
1052
965
  expect(instance._to_hash(instance.term_reason)).to eq(instance.term_reason)
1053
966
  end
1054
- it 'returns parent_call_id in the form of hash' do
967
+ it "returns parent_call_id in the form of hash" do
1055
968
  expect(instance._to_hash(instance.parent_call_id)).to eq(instance.parent_call_id)
1056
969
  end
1057
- it 'returns privacy_mode in the form of hash' do
970
+ it "returns privacy_mode in the form of hash" do
1058
971
  expect(instance._to_hash(instance.privacy_mode)).to eq(instance.privacy_mode)
1059
972
  end
1060
973
  end
1061
-
1062
974
  end