freeclimb 4.9.0 → 5.1.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 (442) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/Gemfile +2 -1
  4. data/Gemfile.lock +49 -27
  5. data/README.md +44 -51
  6. data/docs/AddToConferenceNotificationWebhook.md +42 -0
  7. data/docs/AddToQueueNotificationWebhook.md +34 -0
  8. data/docs/BargeInReason.md +18 -0
  9. data/docs/CallControlWebhook.md +26 -0
  10. data/docs/CallEndedReason.md +38 -0
  11. data/docs/CallStatusWebhook.md +36 -0
  12. data/docs/CompletionResult.md +1 -1
  13. data/docs/CompletionResultStatus.md +17 -0
  14. data/docs/ConferenceRecordingStatusWebhook.md +42 -0
  15. data/docs/ConferenceResult.md +1 -1
  16. data/docs/ConferenceStatusWebhook.md +42 -0
  17. data/docs/CreateConference.md +1 -1
  18. data/docs/CreateConferenceRequest.md +1 -1
  19. data/docs/CreateConferenceWebhook.md +42 -0
  20. data/docs/DequeueWebhook.md +38 -0
  21. data/docs/GetDigitsReason.md +19 -0
  22. data/docs/GetDigitsWebhook.md +40 -0
  23. data/docs/GetSpeechWebhook.md +50 -0
  24. data/docs/InboundCallWebhook.md +36 -0
  25. data/docs/LeaveConferenceWebhook.md +34 -0
  26. data/docs/MachineDetectedWebhook.md +38 -0
  27. data/docs/MachineType.md +2 -2
  28. data/docs/MessageDeliveryWebhook.md +36 -0
  29. data/docs/MessageResult.md +7 -1
  30. data/docs/MessageStatusWebhook.md +38 -0
  31. data/docs/OutDialApiConnectWebhook.md +36 -0
  32. data/docs/OutDialConnectWebhook.md +36 -0
  33. data/docs/OutDialStartWebhook.md +38 -0
  34. data/docs/QueueWaitWebhook.md +40 -0
  35. data/docs/RecordWebhook.md +50 -0
  36. data/docs/RedirectWebhook.md +36 -0
  37. data/docs/RemoveFromQueueNotificationWebhook.md +38 -0
  38. data/docs/SMSTenDLCBrand.md +6 -6
  39. data/docs/SMSTenDLCBrandAltBusinessIdType.md +19 -0
  40. data/docs/SMSTenDLCBrandEntityType.md +20 -0
  41. data/docs/SMSTenDLCBrandIdentityStatus.md +19 -0
  42. data/docs/SMSTenDLCBrandRelationship.md +20 -0
  43. data/docs/SMSTenDLCBrandStockExchange.md +42 -0
  44. data/docs/SMSTenDLCCampaign.md +1 -1
  45. data/docs/SMSTenDLCCampaignStatus.md +17 -0
  46. data/docs/SMSTenDLCPartnerCampaign.md +1 -1
  47. data/docs/SMSTenDLCPartnerCampaignStatus.md +17 -0
  48. data/docs/SMSTollFreeCampaign.md +1 -1
  49. data/docs/SMSTollFreeCampaignRegistrationStatus.md +20 -0
  50. data/docs/TFNCampaign.md +34 -0
  51. data/docs/TranscribeReason.md +20 -0
  52. data/docs/TranscribeTermReason.md +17 -0
  53. data/docs/TranscribeUtterance.md +2 -2
  54. data/docs/TranscribeWebhook.md +62 -0
  55. data/docs/UpdateConferenceRequest.md +1 -1
  56. data/docs/Webhook.md +18 -0
  57. data/freeclimb.gemspec +1 -1
  58. data/lib/freeclimb/api/default_api.rb +18 -18
  59. data/lib/freeclimb/api_client.rb +1 -1
  60. data/lib/freeclimb/api_error.rb +1 -1
  61. data/lib/freeclimb/configuration.rb +2 -4
  62. data/lib/freeclimb/models/account_request.rb +1 -3
  63. data/lib/freeclimb/models/account_result.rb +23 -4
  64. data/lib/freeclimb/models/account_status.rb +1 -1
  65. data/lib/freeclimb/models/account_type.rb +1 -1
  66. data/lib/freeclimb/models/add_to_conference.rb +1 -4
  67. data/lib/freeclimb/models/add_to_conference_notification_webhook.rb +384 -0
  68. data/lib/freeclimb/models/{conference_participant_result_all_of.rb → add_to_queue_notification_webhook.rb} +112 -59
  69. data/lib/freeclimb/models/answered_by.rb +1 -1
  70. data/lib/freeclimb/models/application_list.rb +1 -4
  71. data/lib/freeclimb/models/application_request.rb +1 -3
  72. data/lib/freeclimb/models/application_result.rb +1 -4
  73. data/lib/freeclimb/models/available_number.rb +1 -3
  74. data/lib/freeclimb/models/available_number_list.rb +1 -4
  75. data/lib/freeclimb/models/barge_in_reason.rb +38 -0
  76. data/lib/freeclimb/models/buy_incoming_number_request.rb +1 -3
  77. data/lib/freeclimb/models/{recording_result_all_of.rb → call_control_webhook.rb} +57 -45
  78. data/lib/freeclimb/models/call_direction.rb +1 -1
  79. data/lib/freeclimb/models/call_ended_reason.rb +58 -0
  80. data/lib/freeclimb/models/call_list.rb +1 -4
  81. data/lib/freeclimb/models/call_result.rb +23 -4
  82. data/lib/freeclimb/models/call_status.rb +1 -1
  83. data/lib/freeclimb/models/call_status_webhook.rb +354 -0
  84. data/lib/freeclimb/models/capabilities.rb +1 -3
  85. data/lib/freeclimb/models/completion_request.rb +1 -3
  86. data/lib/freeclimb/models/completion_result.rb +2 -15
  87. data/lib/freeclimb/models/completion_result_status.rb +37 -0
  88. data/lib/freeclimb/models/conference_list.rb +1 -4
  89. data/lib/freeclimb/models/conference_participant_list.rb +1 -4
  90. data/lib/freeclimb/models/conference_participant_result.rb +1 -4
  91. data/lib/freeclimb/models/conference_recording_status_webhook.rb +384 -0
  92. data/lib/freeclimb/models/conference_result.rb +23 -6
  93. data/lib/freeclimb/models/conference_status.rb +1 -1
  94. data/lib/freeclimb/models/conference_status_webhook.rb +387 -0
  95. data/lib/freeclimb/models/create_conference.rb +23 -6
  96. data/lib/freeclimb/models/create_conference_request.rb +23 -5
  97. data/lib/freeclimb/models/create_conference_webhook.rb +387 -0
  98. data/lib/freeclimb/models/create_web_rtc_token.rb +1 -3
  99. data/lib/freeclimb/models/dequeue.rb +3 -7
  100. data/lib/freeclimb/models/dequeue_webhook.rb +365 -0
  101. data/lib/freeclimb/models/enqueue.rb +1 -4
  102. data/lib/freeclimb/models/filter_logs_request.rb +1 -3
  103. data/lib/freeclimb/models/get_digits.rb +1 -4
  104. data/lib/freeclimb/models/get_digits_reason.rb +39 -0
  105. data/lib/freeclimb/models/get_digits_webhook.rb +373 -0
  106. data/lib/freeclimb/models/get_speech.rb +23 -4
  107. data/lib/freeclimb/models/get_speech_reason.rb +1 -1
  108. data/lib/freeclimb/models/get_speech_webhook.rb +423 -0
  109. data/lib/freeclimb/models/grammar_file_built_in.rb +1 -1
  110. data/lib/freeclimb/models/grammar_type.rb +1 -1
  111. data/lib/freeclimb/models/hangup.rb +1 -4
  112. data/lib/freeclimb/models/if_machine.rb +1 -1
  113. data/lib/freeclimb/models/inbound_call_webhook.rb +355 -0
  114. data/lib/freeclimb/models/incoming_number_list.rb +1 -4
  115. data/lib/freeclimb/models/incoming_number_request.rb +1 -3
  116. data/lib/freeclimb/models/incoming_number_result.rb +1 -4
  117. data/lib/freeclimb/models/language.rb +1 -1
  118. data/lib/freeclimb/models/{conference_result_all_of.rb → leave_conference_webhook.rb} +110 -89
  119. data/lib/freeclimb/models/log_level.rb +1 -1
  120. data/lib/freeclimb/models/log_list.rb +1 -4
  121. data/lib/freeclimb/models/log_result.rb +23 -3
  122. data/lib/freeclimb/models/{call_result_all_of.rb → machine_detected_webhook.rb} +96 -119
  123. data/lib/freeclimb/models/machine_type.rb +3 -3
  124. data/lib/freeclimb/models/make_call_request.rb +1 -3
  125. data/lib/freeclimb/models/{message_result_all_of.rb → message_delivery_webhook.rb} +71 -87
  126. data/lib/freeclimb/models/message_direction.rb +1 -1
  127. data/lib/freeclimb/models/message_request.rb +1 -4
  128. data/lib/freeclimb/models/message_result.rb +59 -9
  129. data/lib/freeclimb/models/message_status.rb +1 -1
  130. data/lib/freeclimb/models/{incoming_number_result_all_of.rb → message_status_webhook.rb} +117 -107
  131. data/lib/freeclimb/models/messages_list.rb +1 -4
  132. data/lib/freeclimb/models/mutable_resource_model.rb +1 -3
  133. data/lib/freeclimb/models/out_dial.rb +23 -4
  134. data/lib/freeclimb/models/out_dial_api_connect_webhook.rb +355 -0
  135. data/lib/freeclimb/models/out_dial_connect_webhook.rb +355 -0
  136. data/lib/freeclimb/models/out_dial_start_webhook.rb +366 -0
  137. data/lib/freeclimb/models/pagination_model.rb +1 -3
  138. data/lib/freeclimb/models/park.rb +1 -4
  139. data/lib/freeclimb/models/pause.rb +1 -4
  140. data/lib/freeclimb/models/percl_command.rb +3 -5
  141. data/lib/freeclimb/models/percl_script.rb +2 -4
  142. data/lib/freeclimb/models/play.rb +2 -5
  143. data/lib/freeclimb/models/play_beep.rb +1 -1
  144. data/lib/freeclimb/models/play_early_media.rb +2 -5
  145. data/lib/freeclimb/models/queue_list.rb +2 -5
  146. data/lib/freeclimb/models/queue_member.rb +1 -3
  147. data/lib/freeclimb/models/queue_member_list.rb +2 -5
  148. data/lib/freeclimb/models/queue_request.rb +1 -3
  149. data/lib/freeclimb/models/queue_result.rb +2 -5
  150. data/lib/freeclimb/models/queue_result_status.rb +1 -1
  151. data/lib/freeclimb/models/queue_wait_webhook.rb +375 -0
  152. data/lib/freeclimb/models/record_utterance.rb +2 -5
  153. data/lib/freeclimb/models/record_utterance_term_reason.rb +1 -1
  154. data/lib/freeclimb/models/record_webhook.rb +424 -0
  155. data/lib/freeclimb/models/recording_list.rb +2 -5
  156. data/lib/freeclimb/models/recording_result.rb +2 -5
  157. data/lib/freeclimb/models/redirect.rb +2 -5
  158. data/lib/freeclimb/models/redirect_webhook.rb +355 -0
  159. data/lib/freeclimb/models/reject.rb +2 -5
  160. data/lib/freeclimb/models/remove_from_conference.rb +3 -7
  161. data/lib/freeclimb/models/remove_from_queue_notification_webhook.rb +364 -0
  162. data/lib/freeclimb/models/request_type.rb +1 -1
  163. data/lib/freeclimb/models/say.rb +2 -5
  164. data/lib/freeclimb/models/send_digits.rb +2 -5
  165. data/lib/freeclimb/models/set_dtmf_pass_through.rb +2 -5
  166. data/lib/freeclimb/models/set_listen.rb +2 -5
  167. data/lib/freeclimb/models/set_talk.rb +2 -5
  168. data/lib/freeclimb/models/sms.rb +2 -5
  169. data/lib/freeclimb/models/sms_ten_dlc_brand.rb +6 -67
  170. data/lib/freeclimb/models/sms_ten_dlc_brand_alt_business_id_type.rb +39 -0
  171. data/lib/freeclimb/models/sms_ten_dlc_brand_entity_type.rb +40 -0
  172. data/lib/freeclimb/models/sms_ten_dlc_brand_identity_status.rb +39 -0
  173. data/lib/freeclimb/models/sms_ten_dlc_brand_relationship.rb +40 -0
  174. data/lib/freeclimb/models/sms_ten_dlc_brand_stock_exchange.rb +62 -0
  175. data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +2 -5
  176. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +2 -15
  177. data/lib/freeclimb/models/sms_ten_dlc_campaign_status.rb +37 -0
  178. data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +2 -5
  179. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +2 -15
  180. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +1 -3
  181. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_status.rb +37 -0
  182. data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +2 -5
  183. data/lib/freeclimb/models/sms_toll_free_campaign.rb +2 -15
  184. data/lib/freeclimb/models/sms_toll_free_campaign_registration_status.rb +40 -0
  185. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +2 -5
  186. data/lib/freeclimb/models/start_record_call.rb +3 -7
  187. data/lib/freeclimb/models/terminate_conference.rb +3 -7
  188. data/lib/freeclimb/models/tfn.rb +1 -3
  189. data/lib/freeclimb/models/{application_result_all_of.rb → tfn_campaign.rb} +129 -72
  190. data/lib/freeclimb/models/transcribe_reason.rb +40 -0
  191. data/lib/freeclimb/models/transcribe_term_reason.rb +37 -0
  192. data/lib/freeclimb/models/transcribe_utterance.rb +4 -7
  193. data/lib/freeclimb/models/{transcribe_utterance_all_of_record.rb → transcribe_utterance_record.rb} +8 -10
  194. data/lib/freeclimb/models/transcribe_webhook.rb +481 -0
  195. data/lib/freeclimb/models/unpark.rb +3 -7
  196. data/lib/freeclimb/models/update_call_request.rb +23 -3
  197. data/lib/freeclimb/models/update_call_request_status.rb +1 -1
  198. data/lib/freeclimb/models/update_conference_participant_request.rb +1 -3
  199. data/lib/freeclimb/models/update_conference_request.rb +23 -5
  200. data/lib/freeclimb/models/update_conference_request_status.rb +1 -1
  201. data/lib/freeclimb/models/{call_list_all_of.rb → webhook.rb} +18 -17
  202. data/lib/freeclimb/utils/request_verifier.rb +51 -51
  203. data/lib/freeclimb/utils/signature_information.rb +34 -34
  204. data/lib/freeclimb/version.rb +2 -2
  205. data/lib/freeclimb.rb +42 -49
  206. data/openapi.json +1756 -648
  207. data/package.json +3 -1
  208. data/spec/api/default_api_spec.rb +97 -149
  209. data/spec/factories.rb +78 -78
  210. data/spec/models/account_request_spec.rb +168 -19
  211. data/spec/models/account_result_spec.rb +878 -91
  212. data/spec/models/account_status_spec.rb +2 -1
  213. data/spec/models/account_type_spec.rb +2 -1
  214. data/spec/models/add_to_conference_notification_webhook_spec.rb +1515 -0
  215. data/spec/models/add_to_conference_spec.rb +725 -43
  216. data/spec/models/add_to_queue_notification_webhook_spec.rb +1106 -0
  217. data/spec/models/answered_by_spec.rb +2 -1
  218. data/spec/models/application_list_spec.rb +504 -41
  219. data/spec/models/application_request_spec.rb +553 -34
  220. data/spec/models/application_result_spec.rb +997 -52
  221. data/spec/models/available_number_list_spec.rb +504 -41
  222. data/spec/models/available_number_spec.rb +536 -49
  223. data/spec/models/barge_in_reason_spec.rb +78 -0
  224. data/spec/models/buy_incoming_number_request_spec.rb +245 -22
  225. data/spec/models/call_control_webhook_spec.rb +664 -0
  226. data/spec/models/call_direction_spec.rb +2 -1
  227. data/spec/models/call_ended_reason_spec.rb +398 -0
  228. data/spec/models/call_list_spec.rb +504 -41
  229. data/spec/models/call_result_spec.rb +1712 -272
  230. data/spec/models/call_status_spec.rb +2 -1
  231. data/spec/models/call_status_webhook_spec.rb +1292 -0
  232. data/spec/models/capabilities_spec.rb +309 -28
  233. data/spec/models/completion_request_spec.rb +89 -17
  234. data/spec/models/completion_result_spec.rb +184 -47
  235. data/spec/models/completion_result_status_spec.rb +62 -0
  236. data/spec/models/conference_list_spec.rb +504 -41
  237. data/spec/models/conference_participant_list_spec.rb +504 -41
  238. data/spec/models/conference_participant_result_spec.rb +804 -48
  239. data/spec/models/conference_recording_status_webhook_spec.rb +1515 -0
  240. data/spec/models/conference_result_spec.rb +1215 -224
  241. data/spec/models/conference_status_spec.rb +2 -1
  242. data/spec/models/conference_status_webhook_spec.rb +1515 -0
  243. data/spec/models/create_conference_request_spec.rb +391 -46
  244. data/spec/models/create_conference_spec.rb +450 -49
  245. data/spec/models/create_conference_webhook_spec.rb +1515 -0
  246. data/spec/models/create_web_rtc_token_spec.rb +227 -22
  247. data/spec/models/dequeue_spec.rb +2 -1
  248. data/spec/models/dequeue_webhook_spec.rb +1300 -0
  249. data/spec/models/enqueue_spec.rb +322 -25
  250. data/spec/models/filter_logs_request_spec.rb +91 -16
  251. data/spec/models/get_digits_reason_spec.rb +94 -0
  252. data/spec/models/get_digits_spec.rb +581 -44
  253. data/spec/models/get_digits_webhook_spec.rb +1426 -0
  254. data/spec/models/get_speech_reason_spec.rb +2 -1
  255. data/spec/models/get_speech_spec.rb +856 -69
  256. data/spec/models/get_speech_webhook_spec.rb +1927 -0
  257. data/spec/models/grammar_file_built_in_spec.rb +2 -1
  258. data/spec/models/grammar_type_spec.rb +2 -1
  259. data/spec/models/hangup_spec.rb +91 -16
  260. data/spec/models/if_machine_spec.rb +2 -1
  261. data/spec/models/inbound_call_webhook_spec.rb +1211 -0
  262. data/spec/models/incoming_number_list_spec.rb +504 -41
  263. data/spec/models/incoming_number_request_spec.rb +245 -22
  264. data/spec/models/incoming_number_result_spec.rb +1430 -235
  265. data/spec/models/language_spec.rb +2 -1
  266. data/spec/models/leave_conference_webhook_spec.rb +1106 -0
  267. data/spec/models/log_level_spec.rb +2 -1
  268. data/spec/models/log_list_spec.rb +504 -41
  269. data/spec/models/log_result_spec.rb +556 -57
  270. data/spec/models/machine_detected_webhook_spec.rb +1313 -0
  271. data/spec/models/machine_type_spec.rb +11 -10
  272. data/spec/models/make_call_request_spec.rb +749 -44
  273. data/spec/models/message_delivery_webhook_spec.rb +1189 -0
  274. data/spec/models/message_direction_spec.rb +2 -1
  275. data/spec/models/message_request_spec.rb +672 -41
  276. data/spec/models/message_result_spec.rb +1644 -204
  277. data/spec/models/message_status_spec.rb +2 -1
  278. data/spec/models/message_status_webhook_spec.rb +1327 -0
  279. data/spec/models/messages_list_spec.rb +504 -41
  280. data/spec/models/mutable_resource_model_spec.rb +304 -25
  281. data/spec/models/out_dial_api_connect_webhook_spec.rb +1211 -0
  282. data/spec/models/out_dial_connect_webhook_spec.rb +1211 -0
  283. data/spec/models/out_dial_spec.rb +759 -62
  284. data/spec/models/out_dial_start_webhook_spec.rb +1316 -0
  285. data/spec/models/pagination_model_spec.rb +445 -34
  286. data/spec/models/park_spec.rb +245 -22
  287. data/spec/models/pause_spec.rb +73 -16
  288. data/spec/models/percl_command_spec.rb +88 -16
  289. data/spec/models/percl_script_spec.rb +73 -20
  290. data/spec/models/play_beep_spec.rb +2 -1
  291. data/spec/models/play_early_media_spec.rb +91 -16
  292. data/spec/models/play_spec.rb +209 -22
  293. data/spec/models/queue_list_spec.rb +504 -41
  294. data/spec/models/queue_member_list_spec.rb +504 -41
  295. data/spec/models/queue_member_spec.rb +363 -28
  296. data/spec/models/queue_request_spec.rb +150 -19
  297. data/spec/models/queue_result_spec.rb +801 -52
  298. data/spec/models/queue_result_status_spec.rb +2 -1
  299. data/spec/models/queue_wait_webhook_spec.rb +1389 -0
  300. data/spec/models/record_utterance_spec.rb +463 -34
  301. data/spec/models/record_utterance_term_reason_spec.rb +2 -1
  302. data/spec/models/record_webhook_spec.rb +1917 -0
  303. data/spec/models/recording_list_spec.rb +504 -41
  304. data/spec/models/recording_result_spec.rb +672 -41
  305. data/spec/models/redirect_spec.rb +91 -16
  306. data/spec/models/redirect_webhook_spec.rb +1211 -0
  307. data/spec/models/reject_spec.rb +91 -16
  308. data/spec/models/remove_from_conference_spec.rb +2 -1
  309. data/spec/models/remove_from_queue_notification_webhook_spec.rb +1305 -0
  310. data/spec/models/request_type_spec.rb +2 -1
  311. data/spec/models/say_spec.rb +286 -25
  312. data/spec/models/send_digits_spec.rb +209 -22
  313. data/spec/models/set_dtmf_pass_through_spec.rb +73 -16
  314. data/spec/models/set_listen_spec.rb +73 -16
  315. data/spec/models/set_talk_spec.rb +73 -16
  316. data/spec/models/sms_spec.rb +322 -25
  317. data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +94 -0
  318. data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +110 -0
  319. data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +94 -0
  320. data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +110 -0
  321. data/spec/models/sms_ten_dlc_brand_spec.rb +2585 -484
  322. data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +462 -0
  323. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +504 -41
  324. data/spec/models/sms_ten_dlc_campaign_spec.rb +2604 -274
  325. data/spec/models/sms_ten_dlc_campaign_status_spec.rb +62 -0
  326. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +504 -41
  327. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +835 -55
  328. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +2078 -166
  329. data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +62 -0
  330. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +504 -41
  331. data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +110 -0
  332. data/spec/models/sms_toll_free_campaign_spec.rb +555 -71
  333. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +504 -41
  334. data/spec/models/start_record_call_spec.rb +2 -1
  335. data/spec/models/terminate_conference_spec.rb +2 -1
  336. data/spec/models/tfn_campaign_spec.rb +1089 -0
  337. data/spec/models/tfn_spec.rb +91 -16
  338. data/spec/models/transcribe_reason_spec.rb +110 -0
  339. data/spec/models/transcribe_term_reason_spec.rb +62 -0
  340. data/spec/models/{transcribe_utterance_all_of_record_spec.rb → transcribe_utterance_record_spec.rb} +214 -45
  341. data/spec/models/transcribe_utterance_spec.rb +424 -47
  342. data/spec/models/transcribe_webhook_spec.rb +2418 -0
  343. data/spec/models/unpark_spec.rb +2 -1
  344. data/spec/models/update_call_request_spec.rb +101 -34
  345. data/spec/models/update_call_request_status_spec.rb +2 -1
  346. data/spec/models/update_conference_participant_request_spec.rb +219 -19
  347. data/spec/models/update_conference_request_spec.rb +265 -58
  348. data/spec/models/update_conference_request_status_spec.rb +2 -1
  349. data/spec/models/webhook_spec.rb +228 -0
  350. data/spec/quickstart_spec.rb +7 -7
  351. data/spec/spec_helper.rb +1 -1
  352. data/spec/utils/request_verifier_spec.rb +123 -123
  353. data/spec/utils/signature_information_spec.rb +36 -36
  354. data/yarn.lock +91 -91
  355. metadata +247 -186
  356. data/docs/AccountResultAllOf.md +0 -30
  357. data/docs/AddToConferenceAllOf.md +0 -36
  358. data/docs/ApplicationListAllOf.md +0 -18
  359. data/docs/ApplicationResultAllOf.md +0 -34
  360. data/docs/AvailableNumberListAllOf.md +0 -18
  361. data/docs/CallListAllOf.md +0 -18
  362. data/docs/CallResultAllOf.md +0 -48
  363. data/docs/ConferenceListAllOf.md +0 -18
  364. data/docs/ConferenceParticipantListAllOf.md +0 -18
  365. data/docs/ConferenceParticipantResultAllOf.md +0 -30
  366. data/docs/ConferenceResultAllOf.md +0 -36
  367. data/docs/CreateConferenceAllOf.md +0 -28
  368. data/docs/EnqueueAllOf.md +0 -24
  369. data/docs/GetDigitsAllOf.md +0 -34
  370. data/docs/GetSpeechAllOf.md +0 -42
  371. data/docs/HangupAllOf.md +0 -18
  372. data/docs/IncomingNumberListAllOf.md +0 -18
  373. data/docs/IncomingNumberResultAllOf.md +0 -42
  374. data/docs/LogListAllOf.md +0 -18
  375. data/docs/MessageRequestAllOf.md +0 -26
  376. data/docs/MessageResultAllOf.md +0 -40
  377. data/docs/MessagesListAllOf.md +0 -18
  378. data/docs/OutDialAllOf.md +0 -36
  379. data/docs/ParkAllOf.md +0 -22
  380. data/docs/PauseAllOf.md +0 -18
  381. data/docs/PlayAllOf.md +0 -22
  382. data/docs/PlayEarlyMediaAllOf.md +0 -18
  383. data/docs/QueueListAllOf.md +0 -18
  384. data/docs/QueueMemberListAllOf.md +0 -18
  385. data/docs/QueueResultAllOf.md +0 -30
  386. data/docs/RecordUtteranceAllOf.md +0 -30
  387. data/docs/RecordingListAllOf.md +0 -18
  388. data/docs/RecordingResultAllOf.md +0 -26
  389. data/docs/RedirectAllOf.md +0 -18
  390. data/docs/RejectAllOf.md +0 -18
  391. data/docs/RemoveFromConferenceAllOf.md +0 -18
  392. data/docs/SMSTenDLCBrandsListResultAllOf.md +0 -18
  393. data/docs/SMSTenDLCCampaignsListResultAllOf.md +0 -18
  394. data/docs/SMSTenDLCPartnerCampaignsListResultAllOf.md +0 -18
  395. data/docs/SMSTollFreeCampaignsListResultAllOf.md +0 -18
  396. data/docs/SayAllOf.md +0 -24
  397. data/docs/SendDigitsAllOf.md +0 -22
  398. data/docs/SetDTMFPassThroughAllOf.md +0 -18
  399. data/docs/SetListenAllOf.md +0 -18
  400. data/docs/SetTalkAllOf.md +0 -18
  401. data/docs/SmsAllOf.md +0 -24
  402. data/docs/TerminateConferenceAllOf.md +0 -18
  403. data/docs/TranscribeUtteranceAllOf.md +0 -28
  404. data/docs/TranscribeUtteranceAllOfRecord.md +0 -22
  405. data/lib/freeclimb/models/account_result_all_of.rb +0 -289
  406. data/lib/freeclimb/models/add_to_conference_all_of.rb +0 -318
  407. data/lib/freeclimb/models/application_list_all_of.rb +0 -226
  408. data/lib/freeclimb/models/available_number_list_all_of.rb +0 -226
  409. data/lib/freeclimb/models/conference_list_all_of.rb +0 -226
  410. data/lib/freeclimb/models/conference_participant_list_all_of.rb +0 -226
  411. data/lib/freeclimb/models/create_conference_all_of.rb +0 -280
  412. data/lib/freeclimb/models/enqueue_all_of.rb +0 -266
  413. data/lib/freeclimb/models/get_digits_all_of.rb +0 -310
  414. data/lib/freeclimb/models/get_speech_all_of.rb +0 -354
  415. data/lib/freeclimb/models/hangup_all_of.rb +0 -224
  416. data/lib/freeclimb/models/incoming_number_list_all_of.rb +0 -226
  417. data/lib/freeclimb/models/log_list_all_of.rb +0 -226
  418. data/lib/freeclimb/models/message_request_all_of.rb +0 -279
  419. data/lib/freeclimb/models/messages_list_all_of.rb +0 -227
  420. data/lib/freeclimb/models/out_dial_all_of.rb +0 -329
  421. data/lib/freeclimb/models/park_all_of.rb +0 -252
  422. data/lib/freeclimb/models/pause_all_of.rb +0 -228
  423. data/lib/freeclimb/models/play_all_of.rb +0 -248
  424. data/lib/freeclimb/models/play_early_media_all_of.rb +0 -228
  425. data/lib/freeclimb/models/queue_list_all_of.rb +0 -226
  426. data/lib/freeclimb/models/queue_member_list_all_of.rb +0 -226
  427. data/lib/freeclimb/models/queue_result_all_of.rb +0 -291
  428. data/lib/freeclimb/models/record_utterance_all_of.rb +0 -288
  429. data/lib/freeclimb/models/recording_list_all_of.rb +0 -226
  430. data/lib/freeclimb/models/redirect_all_of.rb +0 -228
  431. data/lib/freeclimb/models/reject_all_of.rb +0 -224
  432. data/lib/freeclimb/models/say_all_of.rb +0 -260
  433. data/lib/freeclimb/models/send_digits_all_of.rb +0 -248
  434. data/lib/freeclimb/models/set_dtmf_pass_through_all_of.rb +0 -224
  435. data/lib/freeclimb/models/set_listen_all_of.rb +0 -224
  436. data/lib/freeclimb/models/set_talk_all_of.rb +0 -224
  437. data/lib/freeclimb/models/sms_all_of.rb +0 -266
  438. data/lib/freeclimb/models/sms_ten_dlc_brands_list_result_all_of.rb +0 -226
  439. data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result_all_of.rb +0 -226
  440. data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result_all_of.rb +0 -226
  441. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result_all_of.rb +0 -226
  442. data/lib/freeclimb/models/transcribe_utterance_all_of.rb +0 -281
@@ -6,13 +6,14 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@freeclimb.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 7.9.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
+ include Freeclimb
16
17
 
17
18
  # Unit tests for Freeclimb::CallResult
18
19
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -28,25 +29,34 @@ describe Freeclimb::CallResult do
28
29
 
29
30
  describe 'test attribute "uri"' do
30
31
  it 'should work' do
32
+
31
33
  instance.uri = "TEST_STRING"
32
34
  expect(instance.uri).to eq("TEST_STRING")
33
35
 
36
+
37
+
34
38
  end
35
39
  end
36
40
 
37
41
  describe 'test attribute "date_created"' do
38
42
  it 'should work' do
43
+
39
44
  instance.date_created = "TEST_STRING"
40
45
  expect(instance.date_created).to eq("TEST_STRING")
41
46
 
47
+
48
+
42
49
  end
43
50
  end
44
51
 
45
52
  describe 'test attribute "date_updated"' do
46
53
  it 'should work' do
54
+
47
55
  instance.date_updated = "TEST_STRING"
48
56
  expect(instance.date_updated).to eq("TEST_STRING")
49
57
 
58
+
59
+
50
60
  end
51
61
  end
52
62
 
@@ -57,54 +67,74 @@ describe Freeclimb::CallResult do
57
67
  instance.revision = 1
58
68
  expect(instance.revision).to eq(1)
59
69
 
70
+
71
+
60
72
  end
61
73
  end
62
74
 
63
75
  describe 'test attribute "call_id"' do
64
76
  it 'should work' do
77
+
65
78
  instance.call_id = "TEST_STRING"
66
79
  expect(instance.call_id).to eq("TEST_STRING")
67
80
 
81
+
82
+
68
83
  end
69
84
  end
70
85
 
71
86
  describe 'test attribute "parent_call_id"' do
72
87
  it 'should work' do
88
+
73
89
  instance.parent_call_id = "TEST_STRING"
74
90
  expect(instance.parent_call_id).to eq("TEST_STRING")
75
91
 
92
+
93
+
76
94
  end
77
95
  end
78
96
 
79
97
  describe 'test attribute "account_id"' do
80
98
  it 'should work' do
99
+
81
100
  instance.account_id = "TEST_STRING"
82
101
  expect(instance.account_id).to eq("TEST_STRING")
83
102
 
103
+
104
+
84
105
  end
85
106
  end
86
107
 
87
108
  describe 'test attribute "from"' do
88
109
  it 'should work' do
110
+
89
111
  instance.from = "TEST_STRING"
90
112
  expect(instance.from).to eq("TEST_STRING")
91
113
 
114
+
115
+
92
116
  end
93
117
  end
94
118
 
95
119
  describe 'test attribute "to"' do
96
120
  it 'should work' do
121
+
97
122
  instance.to = "TEST_STRING"
98
123
  expect(instance.to).to eq("TEST_STRING")
99
124
 
125
+
126
+
100
127
  end
101
128
  end
102
129
 
103
130
  describe 'test attribute "phone_number_id"' do
104
131
  it 'should work' do
132
+
105
133
  instance.phone_number_id = "TEST_STRING"
106
134
  expect(instance.phone_number_id).to eq("TEST_STRING")
107
135
 
136
+
137
+
108
138
  end
109
139
  end
110
140
 
@@ -143,28 +173,36 @@ describe Freeclimb::CallResult do
143
173
  expect(instance.call_status).to eq(Freeclimb::CallStatus::NO_ANSWER)
144
174
  end
145
175
  end
146
-
147
176
  describe 'test attribute "start_time"' do
148
177
  it 'should work' do
178
+
149
179
  instance.start_time = "TEST_STRING"
150
180
  expect(instance.start_time).to eq("TEST_STRING")
151
181
 
182
+
183
+
152
184
  end
153
185
  end
154
186
 
155
187
  describe 'test attribute "connect_time"' do
156
188
  it 'should work' do
189
+
157
190
  instance.connect_time = "TEST_STRING"
158
191
  expect(instance.connect_time).to eq("TEST_STRING")
159
192
 
193
+
194
+
160
195
  end
161
196
  end
162
197
 
163
198
  describe 'test attribute "end_time"' do
164
199
  it 'should work' do
200
+
165
201
  instance.end_time = "TEST_STRING"
166
202
  expect(instance.end_time).to eq("TEST_STRING")
167
203
 
204
+
205
+
168
206
  end
169
207
  end
170
208
 
@@ -175,6 +213,8 @@ describe Freeclimb::CallResult do
175
213
  instance.duration = 1
176
214
  expect(instance.duration).to eq(1)
177
215
 
216
+
217
+
178
218
  end
179
219
  end
180
220
 
@@ -185,6 +225,8 @@ describe Freeclimb::CallResult do
185
225
  instance.connect_duration = 1
186
226
  expect(instance.connect_duration).to eq(1)
187
227
 
228
+
229
+
188
230
  end
189
231
  end
190
232
 
@@ -204,7 +246,6 @@ describe Freeclimb::CallResult do
204
246
  end
205
247
  end
206
248
 
207
-
208
249
  describe 'test attribute "answered_by"' do
209
250
  it 'assigns value HUMAN' do
210
251
  instance.answered_by = Freeclimb::AnsweredBy::HUMAN
@@ -215,382 +256,1486 @@ describe Freeclimb::CallResult do
215
256
  expect(instance.answered_by).to eq(Freeclimb::AnsweredBy::MACHINE)
216
257
  end
217
258
  end
218
-
219
259
  describe 'test attribute "subresource_uris"' do
220
260
  it 'should work' do
221
261
 
222
262
  testObject = Object.new()
223
263
  instance.subresource_uris = testObject
224
264
  expect(instance.subresource_uris).to eq(testObject)
265
+
266
+
267
+ instance.subresource_uris = Object.new
268
+ expect(instance.subresource_uris).to be_instance_of(Object)
269
+
225
270
  end
226
271
  end
227
272
 
228
- describe 'test method "initialize"' do
229
- it 'properly initializes with values' do
230
- expect{instance = Freeclimb::CallResult.new(
231
- uri: "TS",
232
- date_created: "TS",
233
- date_updated: "TS",
234
- revision: 1,
235
- call_id: "TS",
236
- parent_call_id: "TS",
237
- account_id: "TS",
238
- from: "TS",
239
- to: "TS",
240
- phone_number_id: "TS",
241
- call_status: "QUEUED",
242
- start_time: "TS",
243
- connect_time: "TS",
244
- end_time: "TS",
245
- duration: 1,
246
- connect_duration: 1,
247
- direction: "INBOUND",
248
- answered_by: "HUMAN",
249
- subresource_uris: Object.new(),
250
- )}.not_to raise_error()
251
- end
252
- it 'fails to initialize with input argument that is not a hash in Freeclimb::CallResult' do
253
- expect{instance = Freeclimb::CallResult.new(
254
- uri: "TS",
255
- date_created: "TS",
256
- date_updated: "TS",
257
- revision: 1,
258
- call_id: "TS",
259
- parent_call_id: "TS",
260
- account_id: "TS",
261
- from: "TS",
262
- to: "TS",
263
- phone_number_id: "TS",
264
- call_status: "QUEUED",
265
- start_time: "TS",
266
- connect_time: "TS",
267
- end_time: "TS",
268
- duration: 1,
269
- connect_duration: 1,
270
- direction: "INBOUND",
271
- answered_by: "HUMAN",
272
- subresource_uris: Object.new(),
273
- invalid_attribute: true
274
- )}.to raise_error(ArgumentError)
275
- end
276
- it 'fails to initialize with invalid attribute' do
277
- expect{instance = Freeclimb::CallResult.new(
278
- uri: "TS",
279
- date_created: "TS",
280
- date_updated: "TS",
281
- revision: 1,
282
- call_id: "TS",
283
- parent_call_id: "TS",
284
- account_id: "TS",
285
- from: "TS",
286
- to: "TS",
287
- phone_number_id: "TS",
288
- call_status: "QUEUED",
289
- start_time: "TS",
290
- connect_time: "TS",
291
- end_time: "TS",
292
- duration: 1,
293
- connect_duration: 1,
294
- direction: "INBOUND",
295
- answered_by: "HUMAN",
296
- subresource_uris: Object.new(),
297
- invalid_attribute: true
298
- )}.to raise_error(ArgumentError)
299
- end
300
- end
301
-
302
- describe 'test method "valid"' do
303
- it 'checks if properties are valid' do
304
- instance = Freeclimb::CallResult.new(
305
- uri: "TS",
306
- date_created: "TS",
307
- date_updated: "TS",
308
- revision: 1,
309
- call_id: "TS",
310
- parent_call_id: "TS",
311
- account_id: "TS",
312
- from: "TS",
313
- to: "TS",
314
- phone_number_id: "TS",
315
- call_status: "QUEUED",
316
- start_time: "TS",
317
- connect_time: "TS",
318
- end_time: "TS",
319
- duration: 1,
320
- connect_duration: 1,
321
- direction: "INBOUND",
322
- answered_by: "HUMAN",
323
- subresource_uris: Object.new(),
324
- )
325
- expect(instance.valid?).to eq(true)
326
- end
327
-
328
-
329
- skip 'checks if properties are invalid' do
330
- instance = Freeclimb::CallResult.new(
273
+ describe 'test attribute "application_id"' do
274
+ it 'should work' do
275
+
276
+ instance.application_id = "TEST_STRING"
277
+ expect(instance.application_id).to eq("TEST_STRING")
331
278
 
332
- )
333
- expect(instance.valid?).to eq(false)
334
- end
335
279
 
336
- end
337
-
338
- describe 'test method "eql?"' do
339
- it 'checks if objects are equal' do
340
- obj = Object.new()
341
- instance_1 = Freeclimb::CallResult.new(
342
- uri: "TS",
343
- date_created: "TS",
344
- date_updated: "TS",
345
- revision: 1,
346
- call_id: "TS",
347
- parent_call_id: "TS",
348
- account_id: "TS",
349
- from: "TS",
350
- to: "TS",
351
- phone_number_id: "TS",
352
- call_status: Freeclimb::CallStatus.new(),
353
- call_status: "QUEUED",
354
- start_time: "TS",
355
- connect_time: "TS",
356
- end_time: "TS",
357
- duration: 1,
358
- connect_duration: 1,
359
- direction: Freeclimb::CallDirection.new(),
360
- direction: "INBOUND",
361
- answered_by: Freeclimb::AnsweredBy.new(),
362
- answered_by: "HUMAN",
363
- subresource_uris: obj,
364
- )
365
- instance_2 = Freeclimb::CallResult.new(
366
- uri: "TS",
367
- date_created: "TS",
368
- date_updated: "TS",
369
- revision: 1,
370
- call_id: "TS",
371
- parent_call_id: "TS",
372
- account_id: "TS",
373
- from: "TS",
374
- to: "TS",
375
- phone_number_id: "TS",
376
- call_status: Freeclimb::CallStatus.new(),
377
- call_status: "QUEUED",
378
- start_time: "TS",
379
- connect_time: "TS",
380
- end_time: "TS",
381
- duration: 1,
382
- connect_duration: 1,
383
- direction: Freeclimb::CallDirection.new(),
384
- direction: "INBOUND",
385
- answered_by: Freeclimb::AnsweredBy.new(),
386
- answered_by: "HUMAN",
387
- subresource_uris: obj,
388
- )
389
- expect(instance_1.eql?(instance_2)).to eq(true)
390
- end
391
280
 
392
- it 'checks if objects are not equal' do
393
- instance_1 = Freeclimb::CallResult.new(
394
- uri: "TS",
395
- date_created: "TS",
396
- date_updated: "TS",
397
- revision: 2,
398
- call_id: "TS",
399
- parent_call_id: "TS",
400
- account_id: "TS",
401
- from: "TS",
402
- to: "TS",
403
- phone_number_id: "TS",
404
- call_status: Freeclimb::CallStatus.new(),
405
- call_status: "QUEUED",
406
- start_time: "TS",
407
- connect_time: "TS",
408
- end_time: "TS",
409
- duration: 2,
410
- connect_duration: 2,
411
- direction: Freeclimb::CallDirection.new(),
412
- direction: "INBOUND",
413
- answered_by: Freeclimb::AnsweredBy.new(),
414
- answered_by: "HUMAN",
415
- subresource_uris: Object.new(),
416
- )
417
- instance_2 = Freeclimb::CallResult.new(
418
- uri: "ST",
419
- date_created: "ST",
420
- date_updated: "ST",
421
- revision: 1,
422
- call_id: "ST",
423
- parent_call_id: "ST",
424
- account_id: "ST",
425
- from: "ST",
426
- to: "ST",
427
- phone_number_id: "ST",
428
- call_status: Freeclimb::CallStatus.new(),
429
- call_status: "RINGING",
430
- start_time: "ST",
431
- connect_time: "ST",
432
- end_time: "ST",
433
- duration: 1,
434
- connect_duration: 1,
435
- direction: Freeclimb::CallDirection.new(),
436
- direction: "OUTBOUND_API",
437
- answered_by: Freeclimb::AnsweredBy.new(),
438
- answered_by: "MACHINE",
439
- subresource_uris: nil,
440
- )
441
- expect(instance_1.eql?(instance_2)).to eq(false)
442
- end
443
- end
444
-
445
- describe 'test method "hash"' do
446
- it 'calculates hash code' do
447
- instance = Freeclimb::CallResult.new(
448
- uri: "TS",
449
- date_created: "TS",
450
- date_updated: "TS",
451
- revision: 1,
452
- call_id: "TS",
453
- parent_call_id: "TS",
454
- account_id: "TS",
455
- from: "TS",
456
- to: "TS",
457
- phone_number_id: "TS",
458
- call_status: "QUEUED",
459
- start_time: "TS",
460
- connect_time: "TS",
461
- end_time: "TS",
462
- duration: 1,
463
- connect_duration: 1,
464
- direction: "INBOUND",
465
- answered_by: "HUMAN",
466
- subresource_uris: Object.new(),
467
- )
468
- expect(instance.hash).to be_a_kind_of(Integer)
469
281
  end
470
282
  end
471
283
 
472
- describe 'test method "build_from_hash"' do
473
- it 'builds equivalent model from hash code' do
474
- instance_1 = Freeclimb::CallResult.new(
284
+ describe 'test method "initialize"' do
285
+ it 'properly initializes with values' do
286
+ expect { instance = Freeclimb::CallResult.new(
287
+
475
288
  uri: "TS",
289
+
290
+
291
+
292
+
476
293
  date_created: "TS",
294
+
295
+
296
+
297
+
477
298
  date_updated: "TS",
299
+
300
+
301
+
478
302
  revision: 1,
479
- call_id: "TS",
480
- parent_call_id: "TS",
303
+
304
+
305
+
306
+
307
+ call_id: "TS",
308
+
309
+
310
+
311
+
312
+ parent_call_id: "TS",
313
+
314
+
315
+
316
+
317
+ account_id: "TS",
318
+
319
+
320
+
321
+
322
+ from: "TS",
323
+
324
+
325
+
326
+
327
+ to: "TS",
328
+
329
+
330
+
331
+
332
+ phone_number_id: "TS",
333
+
334
+
335
+
336
+
337
+ call_status: Freeclimb::CallStatus::QUEUED,
338
+
339
+
340
+
341
+
342
+ start_time: "TS",
343
+
344
+
345
+
346
+
347
+ connect_time: "TS",
348
+
349
+
350
+
351
+
352
+ end_time: "TS",
353
+
354
+
355
+
356
+ duration: 1,
357
+
358
+
359
+
360
+ connect_duration: 1,
361
+
362
+
363
+
364
+
365
+ direction: Freeclimb::CallDirection::INBOUND,
366
+
367
+
368
+
369
+
370
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
371
+
372
+
373
+
374
+
375
+
376
+
377
+ subresource_uris: Object.new(),
378
+
379
+
380
+ application_id: "TS",
381
+
382
+
383
+
384
+ )}.not_to raise_error()
385
+ end
386
+ it 'fails to initialize with input argument that is not a hash in Freeclimb::CallResult' do
387
+ expect { instance = Freeclimb::CallResult.new(
388
+
389
+ uri: "TS",
390
+
391
+
392
+
393
+
394
+ date_created: "TS",
395
+
396
+
397
+
398
+
399
+ date_updated: "TS",
400
+
401
+
402
+
403
+ revision: 1,
404
+
405
+
406
+
407
+
408
+ call_id: "TS",
409
+
410
+
411
+
412
+
413
+ parent_call_id: "TS",
414
+
415
+
416
+
417
+
418
+ account_id: "TS",
419
+
420
+
421
+
422
+
423
+ from: "TS",
424
+
425
+
426
+
427
+
428
+ to: "TS",
429
+
430
+
431
+
432
+
433
+ phone_number_id: "TS",
434
+
435
+
436
+
437
+
438
+ call_status: Freeclimb::CallStatus::QUEUED,
439
+
440
+
441
+
442
+
443
+ start_time: "TS",
444
+
445
+
446
+
447
+
448
+ connect_time: "TS",
449
+
450
+
451
+
452
+
453
+ end_time: "TS",
454
+
455
+
456
+
457
+ duration: 1,
458
+
459
+
460
+
461
+ connect_duration: 1,
462
+
463
+
464
+
465
+
466
+ direction: Freeclimb::CallDirection::INBOUND,
467
+
468
+
469
+
470
+
471
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
472
+
473
+
474
+
475
+
476
+
477
+
478
+ subresource_uris: Object.new,
479
+
480
+
481
+ application_id: "TS",
482
+
483
+
484
+
485
+ invalid_attribute: true
486
+ )}.to raise_error(ArgumentError)
487
+ end
488
+ it 'fails to initialize with invalid attribute' do
489
+ expect { instance = Freeclimb::CallResult.new(
490
+
491
+ uri: "TS",
492
+
493
+
494
+
495
+
496
+ date_created: "TS",
497
+
498
+
499
+
500
+
501
+ date_updated: "TS",
502
+
503
+
504
+
505
+ revision: 1,
506
+
507
+
508
+
509
+
510
+ call_id: "TS",
511
+
512
+
513
+
514
+
515
+ parent_call_id: "TS",
516
+
517
+
518
+
519
+
520
+ account_id: "TS",
521
+
522
+
523
+
524
+
525
+ from: "TS",
526
+
527
+
528
+
529
+
530
+ to: "TS",
531
+
532
+
533
+
534
+
535
+ phone_number_id: "TS",
536
+
537
+
538
+
539
+
540
+ call_status: Freeclimb::CallStatus::QUEUED,
541
+
542
+
543
+
544
+
545
+ start_time: "TS",
546
+
547
+
548
+
549
+
550
+ connect_time: "TS",
551
+
552
+
553
+
554
+
555
+ end_time: "TS",
556
+
557
+
558
+
559
+ duration: 1,
560
+
561
+
562
+
563
+ connect_duration: 1,
564
+
565
+
566
+
567
+
568
+ direction: Freeclimb::CallDirection::INBOUND,
569
+
570
+
571
+
572
+
573
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
574
+
575
+
576
+
577
+
578
+
579
+
580
+ subresource_uris: Object.new,
581
+
582
+
583
+ application_id: "TS",
584
+
585
+
586
+
587
+ invalid_attribute: true
588
+ )}.to raise_error(ArgumentError)
589
+ end
590
+ end
591
+
592
+ describe 'test method "valid"' do
593
+ it 'checks if properties are valid' do
594
+ instance = Freeclimb::CallResult.new(
595
+
596
+ uri: "TS",
597
+
598
+
599
+
600
+
601
+ date_created: "TS",
602
+
603
+
604
+
605
+
606
+ date_updated: "TS",
607
+
608
+
609
+
610
+ revision: 1,
611
+
612
+
613
+
614
+
615
+ call_id: "TS",
616
+
617
+
618
+
619
+
620
+ parent_call_id: "TS",
621
+
622
+
623
+
624
+
625
+ account_id: "TS",
626
+
627
+
628
+
629
+
630
+ from: "TS",
631
+
632
+
633
+
634
+
635
+ to: "TS",
636
+
637
+
638
+
639
+
640
+ phone_number_id: "TS",
641
+
642
+
643
+
644
+
645
+ call_status: Freeclimb::CallStatus::QUEUED,
646
+
647
+
648
+
649
+
650
+ start_time: "TS",
651
+
652
+
653
+
654
+
655
+ connect_time: "TS",
656
+
657
+
658
+
659
+
660
+ end_time: "TS",
661
+
662
+
663
+
664
+ duration: 1,
665
+
666
+
667
+
668
+ connect_duration: 1,
669
+
670
+
671
+
672
+
673
+ direction: Freeclimb::CallDirection::INBOUND,
674
+
675
+
676
+
677
+
678
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
679
+
680
+
681
+
682
+
683
+
684
+
685
+ subresource_uris: Object.new(),
686
+
687
+
688
+ application_id: "TS",
689
+
690
+
691
+
692
+ )
693
+ expect(instance.valid?).to eq(true)
694
+ end
695
+
696
+
697
+ skip 'checks if properties are invalid' do
698
+ instance = Freeclimb::CallResult.new(
699
+
700
+ )
701
+ expect(instance.valid?).to eq(false)
702
+ end
703
+
704
+ end
705
+
706
+ describe 'test method "eql?"' do
707
+ it 'checks if objects are equal' do
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+
717
+
718
+
719
+
720
+
721
+
722
+
723
+
724
+
725
+
726
+
727
+ obj_Object = Object.new()
728
+
729
+
730
+ instance_1 = Freeclimb::CallResult.new(
731
+
732
+ uri: "TS",
733
+
734
+
735
+
736
+
737
+ date_created: "TS",
738
+
739
+
740
+
741
+
742
+ date_updated: "TS",
743
+
744
+
745
+
746
+ revision: 1,
747
+
748
+
749
+
750
+
751
+ call_id: "TS",
752
+
753
+
754
+
755
+
756
+ parent_call_id: "TS",
757
+
758
+
759
+
760
+
761
+ account_id: "TS",
762
+
763
+
764
+
765
+
766
+ from: "TS",
767
+
768
+
769
+
770
+
771
+ to: "TS",
772
+
773
+
774
+
775
+
776
+ phone_number_id: "TS",
777
+
778
+
779
+
780
+
781
+
782
+
783
+ call_status: Freeclimb::CallStatus::QUEUED,
784
+
785
+
786
+ start_time: "TS",
787
+
788
+
789
+
790
+
791
+ connect_time: "TS",
792
+
793
+
794
+
795
+
796
+ end_time: "TS",
797
+
798
+
799
+
800
+ duration: 1,
801
+
802
+
803
+
804
+ connect_duration: 1,
805
+
806
+
807
+
808
+
809
+
810
+
811
+ direction: Freeclimb::CallDirection::INBOUND,
812
+
813
+
814
+
815
+
816
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
817
+
818
+
819
+
820
+ subresource_uris: obj_Object,
821
+
822
+
823
+
824
+ application_id: "TS",
825
+
826
+
827
+
828
+ )
829
+ instance_2 = Freeclimb::CallResult.new(
830
+
831
+ uri: "TS",
832
+
833
+
834
+
835
+
836
+ date_created: "TS",
837
+
838
+
839
+
840
+
841
+ date_updated: "TS",
842
+
843
+
844
+
845
+
846
+
847
+ revision: 1,
848
+
849
+
850
+ call_id: "TS",
851
+
852
+
853
+
854
+
855
+ parent_call_id: "TS",
856
+
857
+
858
+
859
+
860
+ account_id: "TS",
861
+
862
+
863
+
864
+
865
+ from: "TS",
866
+
867
+
868
+
869
+
870
+ to: "TS",
871
+
872
+
873
+
874
+
875
+ phone_number_id: "TS",
876
+
877
+
878
+
879
+
880
+
881
+
882
+ call_status: Freeclimb::CallStatus::QUEUED,
883
+
884
+
885
+ start_time: "TS",
886
+
887
+
888
+
889
+
890
+ connect_time: "TS",
891
+
892
+
893
+
894
+
895
+ end_time: "TS",
896
+
897
+
898
+
899
+
900
+
901
+ duration: 1,
902
+
903
+
904
+
905
+ connect_duration: 1,
906
+
907
+
908
+
909
+
910
+ direction: Freeclimb::CallDirection::INBOUND,
911
+
912
+
913
+
914
+
915
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
916
+
917
+
918
+
919
+ subresource_uris: obj_Object,
920
+
921
+
922
+
923
+ application_id: "TS",
924
+
925
+
926
+
927
+ )
928
+ expect(instance_1.eql?(instance_2)).to eq(true)
929
+ end
930
+
931
+ it 'checks if objects are not equal' do
932
+ instance_1 = Freeclimb::CallResult.new(
933
+
934
+ uri: "TS",
935
+
936
+
937
+
938
+
939
+ date_created: "TS",
940
+
941
+
942
+
943
+
944
+ date_updated: "TS",
945
+
946
+
947
+
948
+ revision: 2,
949
+
950
+
951
+
952
+
953
+ call_id: "TS",
954
+
955
+
956
+
957
+
958
+ parent_call_id: "TS",
959
+
960
+
961
+
962
+
963
+ account_id: "TS",
964
+
965
+
966
+
967
+
968
+ from: "TS",
969
+
970
+
971
+
972
+
973
+ to: "TS",
974
+
975
+
976
+
977
+
978
+ phone_number_id: "TS",
979
+
980
+
981
+
982
+
983
+
984
+
985
+ call_status: Freeclimb::CallStatus::QUEUED,
986
+
987
+
988
+ start_time: "TS",
989
+
990
+
991
+
992
+
993
+ connect_time: "TS",
994
+
995
+
996
+
997
+
998
+ end_time: "TS",
999
+
1000
+
1001
+
1002
+ duration: 2,
1003
+
1004
+
1005
+
1006
+ connect_duration: 2,
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+ direction: Freeclimb::CallDirection::INBOUND,
1014
+
1015
+
1016
+
1017
+
1018
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
1019
+
1020
+
1021
+
1022
+ subresource_uris: Object.new(),
1023
+
1024
+ subresource_uris: Object.new(),
1025
+
1026
+
1027
+ application_id: "TS",
1028
+
1029
+
1030
+
1031
+ )
1032
+ instance_2 = Freeclimb::CallResult.new(
1033
+
1034
+ uri: "ST",
1035
+
1036
+
1037
+
1038
+
1039
+ date_created: "ST",
1040
+
1041
+
1042
+
1043
+
1044
+ date_updated: "ST",
1045
+
1046
+
1047
+
1048
+ revision: 1,
1049
+
1050
+
1051
+
1052
+
1053
+ call_id: "ST",
1054
+
1055
+
1056
+
1057
+
1058
+ parent_call_id: "ST",
1059
+
1060
+
1061
+
1062
+
1063
+ account_id: "ST",
1064
+
1065
+
1066
+
1067
+
1068
+ from: "ST",
1069
+
1070
+
1071
+
1072
+
1073
+ to: "ST",
1074
+
1075
+
1076
+
1077
+
1078
+ phone_number_id: "ST",
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+
1085
+ call_status: nil,
1086
+
1087
+
1088
+ start_time: "ST",
1089
+
1090
+
1091
+
1092
+
1093
+ connect_time: "ST",
1094
+
1095
+
1096
+
1097
+
1098
+ end_time: "ST",
1099
+
1100
+
1101
+
1102
+ duration: 1,
1103
+
1104
+
1105
+
1106
+ connect_duration: 1,
1107
+
1108
+
1109
+
1110
+
1111
+
1112
+
1113
+ direction: nil,
1114
+
1115
+
1116
+
1117
+
1118
+ answered_by: nil,
1119
+
1120
+
1121
+
1122
+ subresource_uris: Object.new(),
1123
+
1124
+
1125
+
1126
+ application_id: "ST",
1127
+
1128
+
1129
+
1130
+ )
1131
+ expect(instance_1.eql?(instance_2)).to eq(false)
1132
+ end
1133
+ end
1134
+
1135
+ describe 'test method "hash"' do
1136
+ it 'calculates hash code' do
1137
+ instance = Freeclimb::CallResult.new(
1138
+
1139
+ uri: "TS",
1140
+
1141
+
1142
+
1143
+
1144
+ date_created: "TS",
1145
+
1146
+
1147
+
1148
+
1149
+ date_updated: "TS",
1150
+
1151
+
1152
+
1153
+ revision: 1,
1154
+
1155
+
1156
+
1157
+
1158
+ call_id: "TS",
1159
+
1160
+
1161
+
1162
+
1163
+ parent_call_id: "TS",
1164
+
1165
+
1166
+
1167
+
1168
+ account_id: "TS",
1169
+
1170
+
1171
+
1172
+
1173
+ from: "TS",
1174
+
1175
+
1176
+
1177
+
1178
+ to: "TS",
1179
+
1180
+
1181
+
1182
+
1183
+ phone_number_id: "TS",
1184
+
1185
+
1186
+
1187
+
1188
+ call_status: Freeclimb::CallStatus::QUEUED,
1189
+
1190
+
1191
+
1192
+
1193
+ start_time: "TS",
1194
+
1195
+
1196
+
1197
+
1198
+ connect_time: "TS",
1199
+
1200
+
1201
+
1202
+
1203
+ end_time: "TS",
1204
+
1205
+
1206
+
1207
+ duration: 1,
1208
+
1209
+
1210
+
1211
+ connect_duration: 1,
1212
+
1213
+
1214
+
1215
+
1216
+ direction: Freeclimb::CallDirection::INBOUND,
1217
+
1218
+
1219
+
1220
+
1221
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
1222
+
1223
+
1224
+
1225
+
1226
+
1227
+
1228
+ subresource_uris: Object.new(),
1229
+
1230
+
1231
+ application_id: "TS",
1232
+
1233
+
1234
+
1235
+ )
1236
+ expect(instance.hash).to be_a_kind_of(Integer)
1237
+ end
1238
+ end
1239
+
1240
+ describe 'test method "build_from_hash"' do
1241
+ it 'builds equivalent model from hash code' do
1242
+ instance_1 = Freeclimb::CallResult.new(
1243
+
1244
+ uri: "TS",
1245
+
1246
+
1247
+
1248
+
1249
+ date_created: "TS",
1250
+
1251
+
1252
+
1253
+
1254
+ date_updated: "TS",
1255
+
1256
+
1257
+
1258
+ revision: 1,
1259
+
1260
+
1261
+
1262
+
1263
+ call_id: "TS",
1264
+
1265
+
1266
+
1267
+
1268
+ parent_call_id: "TS",
1269
+
1270
+
1271
+
1272
+
1273
+ account_id: "TS",
1274
+
1275
+
1276
+
1277
+
1278
+ from: "TS",
1279
+
1280
+
1281
+
1282
+
1283
+ to: "TS",
1284
+
1285
+
1286
+
1287
+
1288
+ phone_number_id: "TS",
1289
+
1290
+
1291
+
1292
+
1293
+ call_status: Freeclimb::CallStatus::QUEUED,
1294
+
1295
+
1296
+
1297
+
1298
+ start_time: "TS",
1299
+
1300
+
1301
+
1302
+
1303
+ connect_time: "TS",
1304
+
1305
+
1306
+
1307
+
1308
+ end_time: "TS",
1309
+
1310
+
1311
+
1312
+ duration: 1,
1313
+
1314
+
1315
+
1316
+ connect_duration: 1,
1317
+
1318
+
1319
+
1320
+
1321
+ direction: Freeclimb::CallDirection::INBOUND,
1322
+
1323
+
1324
+
1325
+
1326
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
1327
+
1328
+
1329
+
1330
+
1331
+
1332
+
1333
+ subresource_uris: Object.new(),
1334
+
1335
+
1336
+ application_id: "TS",
1337
+
1338
+
1339
+
1340
+ )
1341
+ instance_2 = Freeclimb::CallResult.new(
1342
+
1343
+ uri: "TS",
1344
+
1345
+
1346
+
1347
+
1348
+ date_created: "TS",
1349
+
1350
+
1351
+
1352
+
1353
+ date_updated: "TS",
1354
+
1355
+
1356
+
1357
+ revision: 1,
1358
+
1359
+
1360
+
1361
+
1362
+ call_id: "TS",
1363
+
1364
+
1365
+
1366
+
1367
+ parent_call_id: "TS",
1368
+
1369
+
1370
+
1371
+
481
1372
  account_id: "TS",
1373
+
1374
+
1375
+
1376
+
482
1377
  from: "TS",
1378
+
1379
+
1380
+
1381
+
483
1382
  to: "TS",
1383
+
1384
+
1385
+
1386
+
484
1387
  phone_number_id: "TS",
485
- call_status: "QUEUED",
1388
+
1389
+
1390
+
1391
+
1392
+ call_status: Freeclimb::CallStatus::QUEUED,
1393
+
1394
+
1395
+
1396
+
486
1397
  start_time: "TS",
1398
+
1399
+
1400
+
1401
+
487
1402
  connect_time: "TS",
1403
+
1404
+
1405
+
1406
+
488
1407
  end_time: "TS",
1408
+
1409
+
1410
+
489
1411
  duration: 1,
1412
+
1413
+
1414
+
490
1415
  connect_duration: 1,
491
- direction: "INBOUND",
492
- answered_by: "HUMAN",
1416
+
1417
+
1418
+
1419
+
1420
+ direction: Freeclimb::CallDirection::INBOUND,
1421
+
1422
+
1423
+
1424
+
1425
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
1426
+
1427
+
1428
+
1429
+
1430
+
1431
+
493
1432
  subresource_uris: Object.new(),
1433
+
1434
+
1435
+ application_id: "TS",
1436
+
1437
+
1438
+
494
1439
  )
495
- instance_2 = Freeclimb::CallResult.new
1440
+
496
1441
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
497
1442
  end
498
1443
  end
499
1444
 
500
1445
  describe 'test method "_deserialize"' do
501
1446
  instance = Freeclimb::CallResult.new(
1447
+
502
1448
  uri: "TS",
1449
+
1450
+
1451
+
1452
+
503
1453
  date_created: "TS",
1454
+
1455
+
1456
+
1457
+
504
1458
  date_updated: "TS",
1459
+
1460
+
1461
+
505
1462
  revision: 1,
1463
+
1464
+
1465
+
1466
+
506
1467
  call_id: "TS",
1468
+
1469
+
1470
+
1471
+
507
1472
  parent_call_id: "TS",
1473
+
1474
+
1475
+
1476
+
508
1477
  account_id: "TS",
1478
+
1479
+
1480
+
1481
+
509
1482
  from: "TS",
1483
+
1484
+
1485
+
1486
+
510
1487
  to: "TS",
1488
+
1489
+
1490
+
1491
+
511
1492
  phone_number_id: "TS",
512
- call_status: "QUEUED",
1493
+
1494
+
1495
+
1496
+
1497
+ call_status: Freeclimb::CallStatus::QUEUED,
1498
+
1499
+
1500
+
1501
+
513
1502
  start_time: "TS",
1503
+
1504
+
1505
+
1506
+
514
1507
  connect_time: "TS",
1508
+
1509
+
1510
+
1511
+
515
1512
  end_time: "TS",
1513
+
1514
+
1515
+
516
1516
  duration: 1,
1517
+
1518
+
1519
+
517
1520
  connect_duration: 1,
518
- direction: "INBOUND",
519
- answered_by: "HUMAN",
1521
+
1522
+
1523
+
1524
+
1525
+ direction: Freeclimb::CallDirection::INBOUND,
1526
+
1527
+
1528
+
1529
+
1530
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
1531
+
1532
+
1533
+
1534
+
1535
+
1536
+
520
1537
  subresource_uris: Object.new(),
1538
+
1539
+
1540
+ application_id: "TS",
1541
+
1542
+
1543
+
521
1544
  )
522
1545
  it 'deserializes the data of uri' do
523
1546
  expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String)
524
1547
  end
1548
+
1549
+
525
1550
  it 'deserializes the data of date_created' do
526
1551
  expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String)
527
1552
  end
1553
+
1554
+
528
1555
  it 'deserializes the data of date_updated' do
529
1556
  expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String)
530
1557
  end
1558
+
1559
+
531
1560
  it 'deserializes the data of revision' do
532
1561
  expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer)
533
1562
  end
1563
+
1564
+
534
1565
  it 'deserializes the data of call_id' do
535
1566
  expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String)
536
1567
  end
1568
+
1569
+
537
1570
  it 'deserializes the data of parent_call_id' do
538
1571
  expect(instance._deserialize("String", instance.parent_call_id)).to be_a_kind_of(String)
539
1572
  end
1573
+
1574
+
540
1575
  it 'deserializes the data of account_id' do
541
1576
  expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
542
1577
  end
1578
+
1579
+
543
1580
  it 'deserializes the data of from' do
544
1581
  expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String)
545
1582
  end
1583
+
1584
+
546
1585
  it 'deserializes the data of to' do
547
1586
  expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String)
548
1587
  end
1588
+
1589
+
549
1590
  it 'deserializes the data of phone_number_id' do
550
1591
  expect(instance._deserialize("String", instance.phone_number_id)).to be_a_kind_of(String)
551
1592
  end
1593
+
1594
+
1595
+
1596
+
552
1597
  it 'deserializes the data of start_time' do
553
1598
  expect(instance._deserialize("String", instance.start_time)).to be_a_kind_of(String)
554
1599
  end
1600
+
1601
+
555
1602
  it 'deserializes the data of connect_time' do
556
1603
  expect(instance._deserialize("String", instance.connect_time)).to be_a_kind_of(String)
557
1604
  end
1605
+
1606
+
558
1607
  it 'deserializes the data of end_time' do
559
1608
  expect(instance._deserialize("String", instance.end_time)).to be_a_kind_of(String)
560
1609
  end
1610
+
1611
+
561
1612
  it 'deserializes the data of duration' do
562
1613
  expect(instance._deserialize("Integer", instance.duration)).to be_a_kind_of(Integer)
563
1614
  end
1615
+
1616
+
564
1617
  it 'deserializes the data of connect_duration' do
565
1618
  expect(instance._deserialize("Integer", instance.connect_duration)).to be_a_kind_of(Integer)
566
1619
  end
1620
+
1621
+
1622
+
1623
+
1624
+
1625
+
1626
+
1627
+
567
1628
  it 'deserializes the data of subresource_uris' do
568
1629
  expect(instance._deserialize("Object", instance.subresource_uris)).to be_a_kind_of(Object)
569
1630
  end
1631
+
1632
+ it 'deserializes the data of application_id' do
1633
+ expect(instance._deserialize("String", instance.application_id)).to be_a_kind_of(String)
1634
+ end
1635
+
1636
+
570
1637
  end
571
1638
 
572
1639
  describe 'test method "to_s"' do
573
1640
  it 'returns the string representation of the object' do
574
1641
  instance = Freeclimb::CallResult.new(
1642
+
575
1643
  uri: "TS",
1644
+
1645
+
1646
+
1647
+
576
1648
  date_created: "TS",
1649
+
1650
+
1651
+
1652
+
577
1653
  date_updated: "TS",
1654
+
1655
+
1656
+
578
1657
  revision: 1,
1658
+
1659
+
1660
+
1661
+
579
1662
  call_id: "TS",
1663
+
1664
+
1665
+
1666
+
580
1667
  parent_call_id: "TS",
1668
+
1669
+
1670
+
1671
+
581
1672
  account_id: "TS",
1673
+
1674
+
1675
+
1676
+
582
1677
  from: "TS",
1678
+
1679
+
1680
+
1681
+
583
1682
  to: "TS",
1683
+
1684
+
1685
+
1686
+
584
1687
  phone_number_id: "TS",
585
- call_status: "QUEUED",
1688
+
1689
+
1690
+
1691
+
1692
+ call_status: Freeclimb::CallStatus::QUEUED,
1693
+
1694
+
1695
+
1696
+
586
1697
  start_time: "TS",
1698
+
1699
+
1700
+
1701
+
587
1702
  connect_time: "TS",
1703
+
1704
+
1705
+
1706
+
588
1707
  end_time: "TS",
1708
+
1709
+
1710
+
589
1711
  duration: 1,
1712
+
1713
+
1714
+
590
1715
  connect_duration: 1,
591
- direction: "INBOUND",
592
- answered_by: "HUMAN",
593
- subresource_uris: Object.new(),
1716
+
1717
+
1718
+
1719
+
1720
+ direction: Freeclimb::CallDirection::INBOUND,
1721
+
1722
+
1723
+
1724
+
1725
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
1726
+
1727
+
1728
+
1729
+
1730
+
1731
+
1732
+ subresource_uris: Object.new,
1733
+
1734
+
1735
+ application_id: "TS",
1736
+
1737
+
1738
+
594
1739
  )
595
1740
  expect(instance.to_s).to eq(instance.to_hash.to_s)
596
1741
  end
@@ -599,71 +1744,326 @@ describe Freeclimb::CallResult do
599
1744
  describe 'test method "to_hash"' do
600
1745
  it 'returns the object in the form of hash' do
601
1746
  instance = Freeclimb::CallResult.new(
1747
+
602
1748
  uri: "TS",
1749
+
1750
+
1751
+
1752
+
603
1753
  date_created: "TS",
1754
+
1755
+
1756
+
1757
+
604
1758
  date_updated: "TS",
1759
+
1760
+
1761
+
605
1762
  revision: 1,
1763
+
1764
+
1765
+
1766
+
606
1767
  call_id: "TS",
1768
+
1769
+
1770
+
1771
+
607
1772
  parent_call_id: "TS",
1773
+
1774
+
1775
+
1776
+
608
1777
  account_id: "TS",
1778
+
1779
+
1780
+
1781
+
609
1782
  from: "TS",
1783
+
1784
+
1785
+
1786
+
610
1787
  to: "TS",
1788
+
1789
+
1790
+
1791
+
611
1792
  phone_number_id: "TS",
612
- call_status: "QUEUED",
1793
+
1794
+
1795
+
1796
+
1797
+ call_status: Freeclimb::CallStatus::QUEUED,
1798
+
1799
+
1800
+
1801
+
613
1802
  start_time: "TS",
1803
+
1804
+
1805
+
1806
+
614
1807
  connect_time: "TS",
1808
+
1809
+
1810
+
1811
+
615
1812
  end_time: "TS",
1813
+
1814
+
1815
+
616
1816
  duration: 1,
1817
+
1818
+
1819
+
617
1820
  connect_duration: 1,
618
- direction: "INBOUND",
619
- answered_by: "HUMAN",
620
- subresource_uris: Object.new(),
1821
+
1822
+
1823
+
1824
+
1825
+ direction: Freeclimb::CallDirection::INBOUND,
1826
+
1827
+
1828
+
1829
+
1830
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
1831
+
1832
+
1833
+
1834
+
1835
+
1836
+
1837
+ subresource_uris: Object.new,
1838
+
1839
+
1840
+ application_id: "TS",
1841
+
1842
+
1843
+
621
1844
  )
622
1845
  expect(instance.to_hash).to be_a_kind_of(Hash)
623
1846
  end
624
1847
  it 'creates equal hash for two equal objects' do
1848
+
1849
+
1850
+
1851
+
1852
+
1853
+
1854
+
1855
+
1856
+
1857
+
1858
+
1859
+
1860
+
1861
+
1862
+
1863
+
1864
+
1865
+
1866
+
625
1867
  obj = Object.new()
1868
+
1869
+
626
1870
  instance_1 = Freeclimb::CallResult.new(
1871
+
627
1872
  uri: "TS",
1873
+
1874
+
1875
+
1876
+
628
1877
  date_created: "TS",
1878
+
1879
+
1880
+
1881
+
629
1882
  date_updated: "TS",
1883
+
1884
+
1885
+
630
1886
  revision: 1,
1887
+
1888
+
1889
+
1890
+
631
1891
  call_id: "TS",
1892
+
1893
+
1894
+
1895
+
632
1896
  parent_call_id: "TS",
1897
+
1898
+
1899
+
1900
+
633
1901
  account_id: "TS",
1902
+
1903
+
1904
+
1905
+
634
1906
  from: "TS",
1907
+
1908
+
1909
+
1910
+
635
1911
  to: "TS",
1912
+
1913
+
1914
+
1915
+
636
1916
  phone_number_id: "TS",
637
- call_status: "QUEUED",
1917
+
1918
+
1919
+
1920
+
1921
+ call_status: Freeclimb::CallStatus::QUEUED,
1922
+
1923
+
1924
+
1925
+
638
1926
  start_time: "TS",
1927
+
1928
+
1929
+
1930
+
639
1931
  connect_time: "TS",
1932
+
1933
+
1934
+
1935
+
640
1936
  end_time: "TS",
1937
+
1938
+
1939
+
641
1940
  duration: 1,
1941
+
1942
+
1943
+
642
1944
  connect_duration: 1,
643
- direction: "INBOUND",
644
- answered_by: "HUMAN",
1945
+
1946
+
1947
+
1948
+
1949
+ direction: Freeclimb::CallDirection::INBOUND,
1950
+
1951
+
1952
+
1953
+
1954
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
1955
+
1956
+
1957
+
1958
+
1959
+
1960
+
645
1961
  subresource_uris: obj,
1962
+
1963
+
1964
+ application_id: "TS",
1965
+
1966
+
1967
+
646
1968
  )
647
1969
  instance_2 = Freeclimb::CallResult.new(
1970
+
648
1971
  uri: "TS",
1972
+
1973
+
1974
+
1975
+
649
1976
  date_created: "TS",
1977
+
1978
+
1979
+
1980
+
650
1981
  date_updated: "TS",
1982
+
1983
+
1984
+
651
1985
  revision: 1,
1986
+
1987
+
1988
+
1989
+
652
1990
  call_id: "TS",
1991
+
1992
+
1993
+
1994
+
653
1995
  parent_call_id: "TS",
1996
+
1997
+
1998
+
1999
+
654
2000
  account_id: "TS",
2001
+
2002
+
2003
+
2004
+
655
2005
  from: "TS",
2006
+
2007
+
2008
+
2009
+
656
2010
  to: "TS",
2011
+
2012
+
2013
+
2014
+
657
2015
  phone_number_id: "TS",
658
- call_status: "QUEUED",
2016
+
2017
+
2018
+
2019
+
2020
+ call_status: Freeclimb::CallStatus::QUEUED,
2021
+
2022
+
2023
+
2024
+
659
2025
  start_time: "TS",
2026
+
2027
+
2028
+
2029
+
660
2030
  connect_time: "TS",
2031
+
2032
+
2033
+
2034
+
661
2035
  end_time: "TS",
2036
+
2037
+
2038
+
662
2039
  duration: 1,
2040
+
2041
+
2042
+
663
2043
  connect_duration: 1,
664
- direction: "INBOUND",
665
- answered_by: "HUMAN",
2044
+
2045
+
2046
+
2047
+
2048
+ direction: Freeclimb::CallDirection::INBOUND,
2049
+
2050
+
2051
+
2052
+
2053
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
2054
+
2055
+
2056
+
2057
+
2058
+
2059
+
666
2060
  subresource_uris: obj,
2061
+
2062
+
2063
+ application_id: "TS",
2064
+
2065
+
2066
+
667
2067
  )
668
2068
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
669
2069
  end
@@ -671,43 +2071,80 @@ describe Freeclimb::CallResult do
671
2071
 
672
2072
  describe 'test method "_to_hash"' do
673
2073
  instance = Freeclimb::CallResult.new(
2074
+
674
2075
  uri: "TS",
2076
+
675
2077
 
2078
+
676
2079
  date_created: "TS",
2080
+
677
2081
 
2082
+
678
2083
  date_updated: "TS",
2084
+
679
2085
 
680
2086
  revision: 1,
2087
+
681
2088
 
2089
+
682
2090
  call_id: "TS",
2091
+
683
2092
 
2093
+
684
2094
  parent_call_id: "TS",
2095
+
685
2096
 
2097
+
686
2098
  account_id: "TS",
2099
+
687
2100
 
2101
+
688
2102
  from: "TS",
2103
+
689
2104
 
2105
+
690
2106
  to: "TS",
2107
+
691
2108
 
2109
+
692
2110
  phone_number_id: "TS",
2111
+
693
2112
 
694
- call_status: "QUEUED",
2113
+
2114
+ call_status: Freeclimb::CallStatus::QUEUED,
2115
+
695
2116
 
2117
+
696
2118
  start_time: "TS",
2119
+
697
2120
 
2121
+
698
2122
  connect_time: "TS",
2123
+
699
2124
 
2125
+
700
2126
  end_time: "TS",
2127
+
701
2128
 
702
2129
  duration: 1,
2130
+
703
2131
 
704
2132
  connect_duration: 1,
2133
+
2134
+
2135
+
2136
+ direction: Freeclimb::CallDirection::INBOUND,
2137
+
705
2138
 
706
- direction: "INBOUND",
2139
+
2140
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
2141
+
707
2142
 
708
- answered_by: "HUMAN",
2143
+
709
2144
 
710
- subresource_uris: Object.new(),
2145
+
2146
+ application_id: "TS",
2147
+
711
2148
  )
712
2149
  it 'returns uri in the form of hash' do
713
2150
  expect(instance._to_hash(instance.uri)).to eq(instance.uri)
@@ -766,6 +2203,9 @@ describe Freeclimb::CallResult do
766
2203
  it 'returns subresource_uris in the form of hash' do
767
2204
  expect(instance._to_hash(instance.subresource_uris)).to eq(instance.subresource_uris)
768
2205
  end
2206
+ it 'returns application_id in the form of hash' do
2207
+ expect(instance._to_hash(instance.application_id)).to eq(instance.application_id)
2208
+ end
769
2209
  end
770
2210
 
771
2211
  end