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