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::MessageResult
18
19
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -28,25 +29,34 @@ describe Freeclimb::MessageResult 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,22 +67,30 @@ describe Freeclimb::MessageResult 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 "account_id"' do
64
76
  it 'should work' do
77
+
65
78
  instance.account_id = "TEST_STRING"
66
79
  expect(instance.account_id).to eq("TEST_STRING")
67
80
 
81
+
82
+
68
83
  end
69
84
  end
70
85
 
71
86
  describe 'test attribute "message_id"' do
72
87
  it 'should work' do
88
+
73
89
  instance.message_id = "TEST_STRING"
74
90
  expect(instance.message_id).to eq("TEST_STRING")
75
91
 
92
+
93
+
76
94
  end
77
95
  end
78
96
 
@@ -123,60 +141,80 @@ describe Freeclimb::MessageResult do
123
141
  expect(instance.status).to eq(Freeclimb::MessageStatus::UNKNOWN)
124
142
  end
125
143
  end
126
-
127
144
  describe 'test attribute "from"' do
128
145
  it 'should work' do
146
+
129
147
  instance.from = "TEST_STRING"
130
148
  expect(instance.from).to eq("TEST_STRING")
131
149
 
150
+
151
+
132
152
  end
133
153
  end
134
154
 
135
155
  describe 'test attribute "to"' do
136
156
  it 'should work' do
157
+
137
158
  instance.to = "TEST_STRING"
138
159
  expect(instance.to).to eq("TEST_STRING")
139
160
 
161
+
162
+
140
163
  end
141
164
  end
142
165
 
143
166
  describe 'test attribute "text"' do
144
167
  it 'should work' do
168
+
145
169
  instance.text = "TEST_STRING"
146
170
  expect(instance.text).to eq("TEST_STRING")
147
171
 
172
+
173
+
148
174
  end
149
175
  end
150
176
 
151
177
  describe 'test attribute "direction"' do
152
178
  it 'should work' do
179
+
153
180
  instance.direction = "TEST_STRING"
154
181
  expect(instance.direction).to eq("TEST_STRING")
155
182
 
183
+
184
+
156
185
  end
157
186
  end
158
187
 
159
188
  describe 'test attribute "notification_url"' do
160
189
  it 'should work' do
190
+
161
191
  instance.notification_url = "TEST_STRING"
162
192
  expect(instance.notification_url).to eq("TEST_STRING")
163
193
 
194
+
195
+
164
196
  end
165
197
  end
166
198
 
167
199
  describe 'test attribute "brand_id"' do
168
200
  it 'should work' do
201
+
169
202
  instance.brand_id = "TEST_STRING"
170
203
  expect(instance.brand_id).to eq("TEST_STRING")
171
204
 
205
+
206
+
172
207
  end
173
208
  end
174
209
 
175
210
  describe 'test attribute "campaign_id"' do
176
211
  it 'should work' do
212
+
177
213
  instance.campaign_id = "TEST_STRING"
178
214
  expect(instance.campaign_id).to eq("TEST_STRING")
179
215
 
216
+
217
+
180
218
  end
181
219
  end
182
220
 
@@ -187,6 +225,8 @@ describe Freeclimb::MessageResult do
187
225
  instance.segment_count = 1.0
188
226
  expect(instance.segment_count).to eq(1.0)
189
227
 
228
+
229
+
190
230
  end
191
231
  end
192
232
 
@@ -195,317 +235,1421 @@ describe Freeclimb::MessageResult do
195
235
 
196
236
  instance.media_urls = ["ELEMENT_1", "ELEMENT_2"]
197
237
  expect(instance.media_urls).to eq(["ELEMENT_1", "ELEMENT_2"])
238
+
239
+
198
240
  end
199
241
  end
200
242
 
201
- describe 'test method "initialize"' do
202
- it 'properly initializes with values' do
203
- expect{instance = Freeclimb::MessageResult.new(
204
- uri: "TS",
205
- date_created: "TS",
206
- date_updated: "TS",
207
- revision: 1,
208
- account_id: "TS",
209
- message_id: "TS",
210
- status: "NEW",
211
- from: "TS",
212
- to: "TS",
213
- text: "TS",
214
- direction: "TS",
215
- notification_url: "TS",
216
- brand_id: "TS",
217
- campaign_id: "TS",
218
- media_urls: Array.new(),
219
- )}.not_to raise_error()
220
- end
221
- it 'fails to initialize with input argument that is not a hash in Freeclimb::MessageResult' do
222
- expect{instance = Freeclimb::MessageResult.new(
223
- uri: "TS",
224
- date_created: "TS",
225
- date_updated: "TS",
226
- revision: 1,
227
- account_id: "TS",
228
- message_id: "TS",
229
- status: "NEW",
230
- from: "TS",
231
- to: "TS",
232
- text: "TS",
233
- direction: "TS",
234
- notification_url: "TS",
235
- brand_id: "TS",
236
- campaign_id: "TS",
237
- media_urls: Array.new(),
238
- invalid_attribute: true
239
- )}.to raise_error(ArgumentError)
240
- end
241
- it 'fails to initialize with invalid attribute' do
242
- expect{instance = Freeclimb::MessageResult.new(
243
- uri: "TS",
244
- date_created: "TS",
245
- date_updated: "TS",
246
- revision: 1,
247
- account_id: "TS",
248
- message_id: "TS",
249
- status: "NEW",
250
- from: "TS",
251
- to: "TS",
252
- text: "TS",
253
- direction: "TS",
254
- notification_url: "TS",
255
- brand_id: "TS",
256
- campaign_id: "TS",
257
- media_urls: Array.new(),
258
- invalid_attribute: true
259
- )}.to raise_error(ArgumentError)
243
+ describe 'test attribute "tfn"' do
244
+ it 'should work' do
245
+
246
+
247
+
248
+ instance.tfn = TFN.new
249
+ expect(instance.tfn).to be_instance_of(TFN)
250
+
260
251
  end
261
252
  end
262
-
263
- describe 'test method "valid"' do
264
- it 'checks if properties are valid' do
265
- instance = Freeclimb::MessageResult.new(
266
- uri: "TS",
267
- date_created: "TS",
268
- date_updated: "TS",
269
- revision: 1,
270
- account_id: "TS",
271
- message_id: "TS",
272
- status: "NEW",
273
- from: "TS",
274
- to: "TS",
275
- text: "TS",
276
- direction: "TS",
277
- notification_url: "TS",
278
- brand_id: "TS",
279
- campaign_id: "TS",
280
- segment_count: 1,
281
- media_urls: Array.new(),
282
- )
283
- expect(instance.valid?).to eq(true)
284
- end
285
253
 
286
-
287
- skip 'checks if properties are invalid' do
288
- instance = Freeclimb::MessageResult.new(
254
+ describe 'test attribute "phone_number_id"' do
255
+ it 'should work' do
256
+
257
+ instance.phone_number_id = "TEST_STRING"
258
+ expect(instance.phone_number_id).to eq("TEST_STRING")
289
259
 
290
- )
291
- expect(instance.valid?).to eq(false)
292
- end
293
260
 
294
- end
295
-
296
- describe 'test method "eql?"' do
297
- it 'checks if objects are equal' do
298
- obj = Object.new()
299
- instance_1 = Freeclimb::MessageResult.new(
300
- uri: "TS",
301
- date_created: "TS",
302
- date_updated: "TS",
303
- revision: 1,
304
- account_id: "TS",
305
- message_id: "TS",
306
- status: Freeclimb::MessageStatus.new(),
307
- status: "NEW",
308
- from: "TS",
309
- to: "TS",
310
- text: "TS",
311
- direction: "TS",
312
- notification_url: "TS",
313
- brand_id: "TS",
314
- campaign_id: "TS",
315
- media_urls: [],
316
- )
317
- instance_2 = Freeclimb::MessageResult.new(
318
- uri: "TS",
319
- date_created: "TS",
320
- date_updated: "TS",
321
- revision: 1,
322
- account_id: "TS",
323
- message_id: "TS",
324
- status: Freeclimb::MessageStatus.new(),
325
- status: "NEW",
326
- from: "TS",
327
- to: "TS",
328
- text: "TS",
329
- direction: "TS",
330
- notification_url: "TS",
331
- brand_id: "TS",
332
- campaign_id: "TS",
333
- media_urls: [],
334
- )
335
- expect(instance_1.eql?(instance_2)).to eq(true)
336
- end
337
261
 
338
- it 'checks if objects are not equal' do
339
- instance_1 = Freeclimb::MessageResult.new(
340
- uri: "TS",
341
- date_created: "TS",
342
- date_updated: "TS",
343
- revision: 2,
344
- account_id: "TS",
345
- message_id: "TS",
346
- status: Freeclimb::MessageStatus.new(),
347
- status: "NEW",
348
- from: "TS",
349
- to: "TS",
350
- text: "TS",
351
- direction: "TS",
352
- notification_url: "TS",
353
- brand_id: "TS",
354
- campaign_id: "TS",
355
- media_urls: [],
356
- )
357
- instance_2 = Freeclimb::MessageResult.new(
358
- uri: "ST",
359
- date_created: "ST",
360
- date_updated: "ST",
361
- revision: 1,
362
- account_id: "ST",
363
- message_id: "ST",
364
- status: Freeclimb::MessageStatus.new(),
365
- status: "QUEUED",
366
- from: "ST",
367
- to: "ST",
368
- text: "ST",
369
- direction: "ST",
370
- notification_url: "ST",
371
- brand_id: "ST",
372
- campaign_id: "ST",
373
- media_urls: nil,
374
- )
375
- expect(instance_1.eql?(instance_2)).to eq(false)
376
262
  end
377
263
  end
378
-
379
- describe 'test method "hash"' do
380
- it 'calculates hash code' do
381
- instance = Freeclimb::MessageResult.new(
382
- uri: "TS",
383
- date_created: "TS",
384
- date_updated: "TS",
385
- revision: 1,
386
- account_id: "TS",
387
- message_id: "TS",
388
- status: "NEW",
389
- from: "TS",
390
- to: "TS",
391
- text: "TS",
392
- direction: "TS",
393
- notification_url: "TS",
394
- brand_id: "TS",
395
- campaign_id: "TS",
396
- media_urls: Array.new(),
397
- )
398
- expect(instance.hash).to be_a_kind_of(Integer)
264
+
265
+ describe 'test attribute "application_id"' do
266
+ it 'should work' do
267
+
268
+ instance.application_id = "TEST_STRING"
269
+ expect(instance.application_id).to eq("TEST_STRING")
270
+
271
+
272
+
399
273
  end
400
274
  end
401
275
 
402
- describe 'test method "build_from_hash"' do
403
- it 'builds equivalent model from hash code' do
404
- instance_1 = Freeclimb::MessageResult.new(
276
+ describe 'test method "initialize"' do
277
+ it 'properly initializes with values' do
278
+ expect { instance = Freeclimb::MessageResult.new(
279
+
405
280
  uri: "TS",
281
+
282
+
283
+
284
+
406
285
  date_created: "TS",
286
+
287
+
288
+
289
+
407
290
  date_updated: "TS",
291
+
292
+
293
+
408
294
  revision: 1,
295
+
296
+
297
+
298
+
409
299
  account_id: "TS",
300
+
301
+
302
+
303
+
410
304
  message_id: "TS",
411
- status: "NEW",
305
+
306
+
307
+
308
+
309
+ status: Freeclimb::MessageStatus::NEW,
310
+
311
+
312
+
313
+
412
314
  from: "TS",
315
+
316
+
317
+
318
+
319
+ to: "TS",
320
+
321
+
322
+
323
+
324
+ text: "TS",
325
+
326
+
327
+
328
+
329
+ direction: "TS",
330
+
331
+
332
+
333
+
334
+ notification_url: "TS",
335
+
336
+
337
+
338
+
339
+ brand_id: "TS",
340
+
341
+
342
+
343
+
344
+ campaign_id: "TS",
345
+
346
+
347
+
348
+
349
+
350
+
351
+ media_urls: Array.new(),
352
+
353
+
354
+
355
+
356
+
357
+
358
+ tfn: TFN.new(),
359
+
360
+
361
+ phone_number_id: "TS",
362
+
363
+
364
+
365
+
366
+ application_id: "TS",
367
+
368
+
369
+
370
+ )}.not_to raise_error()
371
+ end
372
+ it 'fails to initialize with input argument that is not a hash in Freeclimb::MessageResult' do
373
+ expect { instance = Freeclimb::MessageResult.new(
374
+
375
+ uri: "TS",
376
+
377
+
378
+
379
+
380
+ date_created: "TS",
381
+
382
+
383
+
384
+
385
+ date_updated: "TS",
386
+
387
+
388
+
389
+ revision: 1,
390
+
391
+
392
+
393
+
394
+ account_id: "TS",
395
+
396
+
397
+
398
+
399
+ message_id: "TS",
400
+
401
+
402
+
403
+
404
+ status: Freeclimb::MessageStatus::NEW,
405
+
406
+
407
+
408
+
409
+ from: "TS",
410
+
411
+
412
+
413
+
414
+ to: "TS",
415
+
416
+
417
+
418
+
419
+ text: "TS",
420
+
421
+
422
+
423
+
424
+ direction: "TS",
425
+
426
+
427
+
428
+
429
+ notification_url: "TS",
430
+
431
+
432
+
433
+
434
+ brand_id: "TS",
435
+
436
+
437
+
438
+
439
+ campaign_id: "TS",
440
+
441
+
442
+
443
+
444
+
445
+
446
+ media_urls: Array.new(),
447
+
448
+
449
+
450
+
451
+
452
+
453
+ tfn: TFN.new,
454
+
455
+
456
+ phone_number_id: "TS",
457
+
458
+
459
+
460
+
461
+ application_id: "TS",
462
+
463
+
464
+
465
+ invalid_attribute: true
466
+ )}.to raise_error(ArgumentError)
467
+ end
468
+ it 'fails to initialize with invalid attribute' do
469
+ expect { instance = Freeclimb::MessageResult.new(
470
+
471
+ uri: "TS",
472
+
473
+
474
+
475
+
476
+ date_created: "TS",
477
+
478
+
479
+
480
+
481
+ date_updated: "TS",
482
+
483
+
484
+
485
+ revision: 1,
486
+
487
+
488
+
489
+
490
+ account_id: "TS",
491
+
492
+
493
+
494
+
495
+ message_id: "TS",
496
+
497
+
498
+
499
+
500
+ status: Freeclimb::MessageStatus::NEW,
501
+
502
+
503
+
504
+
505
+ from: "TS",
506
+
507
+
508
+
509
+
510
+ to: "TS",
511
+
512
+
513
+
514
+
515
+ text: "TS",
516
+
517
+
518
+
519
+
520
+ direction: "TS",
521
+
522
+
523
+
524
+
525
+ notification_url: "TS",
526
+
527
+
528
+
529
+
530
+ brand_id: "TS",
531
+
532
+
533
+
534
+
535
+ campaign_id: "TS",
536
+
537
+
538
+
539
+
540
+
541
+
542
+ media_urls: Array.new(),
543
+
544
+
545
+
546
+
547
+
548
+
549
+ tfn: TFN.new,
550
+
551
+
552
+ phone_number_id: "TS",
553
+
554
+
555
+
556
+
557
+ application_id: "TS",
558
+
559
+
560
+
561
+ invalid_attribute: true
562
+ )}.to raise_error(ArgumentError)
563
+ end
564
+ end
565
+
566
+ describe 'test method "valid"' do
567
+ it 'checks if properties are valid' do
568
+ instance = Freeclimb::MessageResult.new(
569
+
570
+ uri: "TS",
571
+
572
+
573
+
574
+
575
+ date_created: "TS",
576
+
577
+
578
+
579
+
580
+ date_updated: "TS",
581
+
582
+
583
+
584
+ revision: 1,
585
+
586
+
587
+
588
+
589
+ account_id: "TS",
590
+
591
+
592
+
593
+
594
+ message_id: "TS",
595
+
596
+
597
+
598
+
599
+ status: Freeclimb::MessageStatus::NEW,
600
+
601
+
602
+
603
+
604
+ from: "TS",
605
+
606
+
607
+
608
+
609
+ to: "TS",
610
+
611
+
612
+
613
+
614
+ text: "TS",
615
+
616
+
617
+
618
+
619
+ direction: "TS",
620
+
621
+
622
+
623
+
624
+ notification_url: "TS",
625
+
626
+
627
+
628
+
629
+ brand_id: "TS",
630
+
631
+
632
+
633
+
634
+ campaign_id: "TS",
635
+
636
+
637
+
638
+ segment_count: 1,
639
+
640
+
641
+
642
+ media_urls: Array.new(),
643
+
644
+
645
+
646
+
647
+
648
+
649
+ tfn: TFN.new(),
650
+
651
+
652
+ phone_number_id: "TS",
653
+
654
+
655
+
656
+
657
+ application_id: "TS",
658
+
659
+
660
+
661
+ )
662
+ expect(instance.valid?).to eq(true)
663
+ end
664
+
665
+
666
+ skip 'checks if properties are invalid' do
667
+ instance = Freeclimb::MessageResult.new(
668
+
669
+ )
670
+ expect(instance.valid?).to eq(false)
671
+ end
672
+
673
+ end
674
+
675
+ describe 'test method "eql?"' do
676
+ it 'checks if objects are equal' do
677
+
678
+
679
+
680
+
681
+
682
+
683
+
684
+
685
+
686
+
687
+
688
+
689
+
690
+
691
+
692
+
693
+
694
+ obj_TFN = TFN.new()
695
+
696
+
697
+
698
+ instance_1 = Freeclimb::MessageResult.new(
699
+
700
+ uri: "TS",
701
+
702
+
703
+
704
+
705
+ date_created: "TS",
706
+
707
+
708
+
709
+
710
+ date_updated: "TS",
711
+
712
+
713
+
714
+ revision: 1,
715
+
716
+
717
+
718
+
719
+ account_id: "TS",
720
+
721
+
722
+
723
+
724
+ message_id: "TS",
725
+
726
+
727
+
728
+
729
+
730
+
731
+ status: Freeclimb::MessageStatus::NEW,
732
+
733
+
734
+ from: "TS",
735
+
736
+
737
+
738
+
739
+ to: "TS",
740
+
741
+
742
+
743
+
744
+ text: "TS",
745
+
746
+
747
+
748
+
749
+ direction: "TS",
750
+
751
+
752
+
753
+
754
+ notification_url: "TS",
755
+
756
+
757
+
758
+
759
+ brand_id: "TS",
760
+
761
+
762
+
763
+
764
+ campaign_id: "TS",
765
+
766
+
767
+
768
+
769
+
770
+
771
+
772
+
773
+ media_urls: [],
774
+
775
+
776
+
777
+ tfn: obj_TFN,
778
+
779
+
780
+
781
+ phone_number_id: "TS",
782
+
783
+
784
+
785
+
786
+ application_id: "TS",
787
+
788
+
789
+
790
+ )
791
+ instance_2 = Freeclimb::MessageResult.new(
792
+
793
+ uri: "TS",
794
+
795
+
796
+
797
+
798
+ date_created: "TS",
799
+
800
+
801
+
802
+
803
+ date_updated: "TS",
804
+
805
+
806
+
807
+
808
+
809
+ revision: 1,
810
+
811
+
812
+ account_id: "TS",
813
+
814
+
815
+
816
+
817
+ message_id: "TS",
818
+
819
+
820
+
821
+
822
+
823
+
824
+ status: Freeclimb::MessageStatus::NEW,
825
+
826
+
827
+ from: "TS",
828
+
829
+
830
+
831
+
832
+ to: "TS",
833
+
834
+
835
+
836
+
837
+ text: "TS",
838
+
839
+
840
+
841
+
842
+ direction: "TS",
843
+
844
+
845
+
846
+
847
+ notification_url: "TS",
848
+
849
+
850
+
851
+
852
+ brand_id: "TS",
853
+
854
+
855
+
856
+
857
+ campaign_id: "TS",
858
+
859
+
860
+
861
+
862
+
863
+
864
+
865
+
866
+ media_urls: [],
867
+
868
+
869
+
870
+ tfn: obj_TFN,
871
+
872
+
873
+
874
+ phone_number_id: "TS",
875
+
876
+
877
+
878
+
879
+ application_id: "TS",
880
+
881
+
882
+
883
+ )
884
+ expect(instance_1.eql?(instance_2)).to eq(true)
885
+ end
886
+
887
+ it 'checks if objects are not equal' do
888
+ instance_1 = Freeclimb::MessageResult.new(
889
+
890
+ uri: "TS",
891
+
892
+
893
+
894
+
895
+ date_created: "TS",
896
+
897
+
898
+
899
+
900
+ date_updated: "TS",
901
+
902
+
903
+
904
+ revision: 2,
905
+
906
+
907
+
908
+
909
+ account_id: "TS",
910
+
911
+
912
+
913
+
914
+ message_id: "TS",
915
+
916
+
917
+
918
+
919
+
920
+
921
+ status: Freeclimb::MessageStatus::NEW,
922
+
923
+
924
+ from: "TS",
925
+
926
+
927
+
928
+
929
+ to: "TS",
930
+
931
+
932
+
933
+
934
+ text: "TS",
935
+
936
+
937
+
938
+
939
+ direction: "TS",
940
+
941
+
942
+
943
+
944
+ notification_url: "TS",
945
+
946
+
947
+
948
+
949
+ brand_id: "TS",
950
+
951
+
952
+
953
+
954
+ campaign_id: "TS",
955
+
956
+
957
+
958
+
959
+
960
+
961
+
962
+
963
+ media_urls: [],
964
+
965
+
966
+
967
+ tfn: TFN.new(),
968
+
969
+
970
+
971
+ phone_number_id: "TS",
972
+
973
+
974
+
975
+
976
+ application_id: "TS",
977
+
978
+
979
+
980
+ )
981
+ instance_2 = Freeclimb::MessageResult.new(
982
+
983
+ uri: "ST",
984
+
985
+
986
+
987
+
988
+ date_created: "ST",
989
+
990
+
991
+
992
+
993
+ date_updated: "ST",
994
+
995
+
996
+
997
+ revision: 1,
998
+
999
+
1000
+
1001
+
1002
+ account_id: "ST",
1003
+
1004
+
1005
+
1006
+
1007
+ message_id: "ST",
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+
1014
+ status: nil,
1015
+
1016
+
1017
+ from: "ST",
1018
+
1019
+
1020
+
1021
+
1022
+ to: "ST",
1023
+
1024
+
1025
+
1026
+
1027
+ text: "ST",
1028
+
1029
+
1030
+
1031
+
1032
+ direction: "ST",
1033
+
1034
+
1035
+
1036
+
1037
+ notification_url: "ST",
1038
+
1039
+
1040
+
1041
+
1042
+ brand_id: "ST",
1043
+
1044
+
1045
+
1046
+
1047
+ campaign_id: "ST",
1048
+
1049
+
1050
+
1051
+
1052
+
1053
+
1054
+
1055
+
1056
+ media_urls: nil,
1057
+
1058
+
1059
+
1060
+ tfn: TFN.new(),
1061
+
1062
+
1063
+
1064
+ phone_number_id: "ST",
1065
+
1066
+
1067
+
1068
+
1069
+ application_id: "ST",
1070
+
1071
+
1072
+
1073
+ )
1074
+ expect(instance_1.eql?(instance_2)).to eq(false)
1075
+ end
1076
+ end
1077
+
1078
+ describe 'test method "hash"' do
1079
+ it 'calculates hash code' do
1080
+ instance = Freeclimb::MessageResult.new(
1081
+
1082
+ uri: "TS",
1083
+
1084
+
1085
+
1086
+
1087
+ date_created: "TS",
1088
+
1089
+
1090
+
1091
+
1092
+ date_updated: "TS",
1093
+
1094
+
1095
+
1096
+ revision: 1,
1097
+
1098
+
1099
+
1100
+
1101
+ account_id: "TS",
1102
+
1103
+
1104
+
1105
+
1106
+ message_id: "TS",
1107
+
1108
+
1109
+
1110
+
1111
+ status: Freeclimb::MessageStatus::NEW,
1112
+
1113
+
1114
+
1115
+
1116
+ from: "TS",
1117
+
1118
+
1119
+
1120
+
1121
+ to: "TS",
1122
+
1123
+
1124
+
1125
+
1126
+ text: "TS",
1127
+
1128
+
1129
+
1130
+
1131
+ direction: "TS",
1132
+
1133
+
1134
+
1135
+
1136
+ notification_url: "TS",
1137
+
1138
+
1139
+
1140
+
1141
+ brand_id: "TS",
1142
+
1143
+
1144
+
1145
+
1146
+ campaign_id: "TS",
1147
+
1148
+
1149
+
1150
+
1151
+
1152
+
1153
+ media_urls: Array.new(),
1154
+
1155
+
1156
+
1157
+
1158
+
1159
+
1160
+ tfn: TFN.new(),
1161
+
1162
+
1163
+ phone_number_id: "TS",
1164
+
1165
+
1166
+
1167
+
1168
+ application_id: "TS",
1169
+
1170
+
1171
+
1172
+ )
1173
+ expect(instance.hash).to be_a_kind_of(Integer)
1174
+ end
1175
+ end
1176
+
1177
+ describe 'test method "build_from_hash"' do
1178
+ it 'builds equivalent model from hash code' do
1179
+ instance_1 = Freeclimb::MessageResult.new(
1180
+
1181
+ uri: "TS",
1182
+
1183
+
1184
+
1185
+
1186
+ date_created: "TS",
1187
+
1188
+
1189
+
1190
+
1191
+ date_updated: "TS",
1192
+
1193
+
1194
+
1195
+ revision: 1,
1196
+
1197
+
1198
+
1199
+
1200
+ account_id: "TS",
1201
+
1202
+
1203
+
1204
+
1205
+ message_id: "TS",
1206
+
1207
+
1208
+
1209
+
1210
+ status: Freeclimb::MessageStatus::NEW,
1211
+
1212
+
1213
+
1214
+
1215
+ from: "TS",
1216
+
1217
+
1218
+
1219
+
1220
+ to: "TS",
1221
+
1222
+
1223
+
1224
+
1225
+ text: "TS",
1226
+
1227
+
1228
+
1229
+
1230
+ direction: "TS",
1231
+
1232
+
1233
+
1234
+
1235
+ notification_url: "TS",
1236
+
1237
+
1238
+
1239
+
1240
+ brand_id: "TS",
1241
+
1242
+
1243
+
1244
+
1245
+ campaign_id: "TS",
1246
+
1247
+
1248
+
1249
+
1250
+
1251
+
1252
+ media_urls: Array.new(),
1253
+
1254
+
1255
+
1256
+
1257
+
1258
+
1259
+ tfn: TFN.new(),
1260
+
1261
+
1262
+ phone_number_id: "TS",
1263
+
1264
+
1265
+
1266
+
1267
+ application_id: "TS",
1268
+
1269
+
1270
+
1271
+ )
1272
+ instance_2 = Freeclimb::MessageResult.new(
1273
+
1274
+ uri: "TS",
1275
+
1276
+
1277
+
1278
+
1279
+ date_created: "TS",
1280
+
1281
+
1282
+
1283
+
1284
+ date_updated: "TS",
1285
+
1286
+
1287
+
1288
+ revision: 1,
1289
+
1290
+
1291
+
1292
+
1293
+ account_id: "TS",
1294
+
1295
+
1296
+
1297
+
1298
+ message_id: "TS",
1299
+
1300
+
1301
+
1302
+
1303
+ status: Freeclimb::MessageStatus::NEW,
1304
+
1305
+
1306
+
1307
+
1308
+ from: "TS",
1309
+
1310
+
1311
+
1312
+
413
1313
  to: "TS",
1314
+
1315
+
1316
+
1317
+
414
1318
  text: "TS",
1319
+
1320
+
1321
+
1322
+
415
1323
  direction: "TS",
1324
+
1325
+
1326
+
1327
+
416
1328
  notification_url: "TS",
1329
+
1330
+
1331
+
1332
+
417
1333
  brand_id: "TS",
1334
+
1335
+
1336
+
1337
+
418
1338
  campaign_id: "TS",
1339
+
1340
+
1341
+
1342
+
1343
+
1344
+
419
1345
  media_urls: Array.new(),
1346
+
1347
+
1348
+
1349
+
1350
+
1351
+
1352
+ tfn: TFN.new(),
1353
+
1354
+
1355
+ phone_number_id: "TS",
1356
+
1357
+
1358
+
1359
+
1360
+ application_id: "TS",
1361
+
1362
+
1363
+
420
1364
  )
421
- instance_2 = Freeclimb::MessageResult.new
1365
+
422
1366
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
423
1367
  end
424
1368
  end
425
1369
 
426
1370
  describe 'test method "_deserialize"' do
427
1371
  instance = Freeclimb::MessageResult.new(
1372
+
428
1373
  uri: "TS",
1374
+
1375
+
1376
+
1377
+
429
1378
  date_created: "TS",
1379
+
1380
+
1381
+
1382
+
430
1383
  date_updated: "TS",
1384
+
1385
+
1386
+
431
1387
  revision: 1,
1388
+
1389
+
1390
+
1391
+
432
1392
  account_id: "TS",
1393
+
1394
+
1395
+
1396
+
433
1397
  message_id: "TS",
434
- status: "NEW",
1398
+
1399
+
1400
+
1401
+
1402
+ status: Freeclimb::MessageStatus::NEW,
1403
+
1404
+
1405
+
1406
+
435
1407
  from: "TS",
1408
+
1409
+
1410
+
1411
+
436
1412
  to: "TS",
1413
+
1414
+
1415
+
1416
+
437
1417
  text: "TS",
1418
+
1419
+
1420
+
1421
+
438
1422
  direction: "TS",
1423
+
1424
+
1425
+
1426
+
439
1427
  notification_url: "TS",
1428
+
1429
+
1430
+
1431
+
440
1432
  brand_id: "TS",
1433
+
1434
+
1435
+
1436
+
441
1437
  campaign_id: "TS",
1438
+
1439
+
1440
+
1441
+
1442
+
1443
+
442
1444
  media_urls: Array.new(),
1445
+
1446
+
1447
+
1448
+
1449
+
1450
+
1451
+ tfn: TFN.new(),
1452
+
1453
+
1454
+ phone_number_id: "TS",
1455
+
1456
+
1457
+
1458
+
1459
+ application_id: "TS",
1460
+
1461
+
1462
+
443
1463
  )
444
1464
  it 'deserializes the data of uri' do
445
1465
  expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String)
446
1466
  end
1467
+
1468
+
447
1469
  it 'deserializes the data of date_created' do
448
1470
  expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String)
449
1471
  end
1472
+
1473
+
450
1474
  it 'deserializes the data of date_updated' do
451
1475
  expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String)
452
1476
  end
1477
+
1478
+
453
1479
  it 'deserializes the data of revision' do
454
1480
  expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer)
455
1481
  end
1482
+
1483
+
456
1484
  it 'deserializes the data of account_id' do
457
1485
  expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
458
1486
  end
1487
+
1488
+
459
1489
  it 'deserializes the data of message_id' do
460
1490
  expect(instance._deserialize("String", instance.message_id)).to be_a_kind_of(String)
461
1491
  end
1492
+
1493
+
1494
+
1495
+
462
1496
  it 'deserializes the data of from' do
463
1497
  expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String)
464
1498
  end
1499
+
1500
+
465
1501
  it 'deserializes the data of to' do
466
1502
  expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String)
467
1503
  end
1504
+
1505
+
468
1506
  it 'deserializes the data of text' do
469
1507
  expect(instance._deserialize("String", instance.text)).to be_a_kind_of(String)
470
1508
  end
1509
+
1510
+
471
1511
  it 'deserializes the data of direction' do
472
1512
  expect(instance._deserialize("String", instance.direction)).to be_a_kind_of(String)
473
1513
  end
1514
+
1515
+
474
1516
  it 'deserializes the data of notification_url' do
475
1517
  expect(instance._deserialize("String", instance.notification_url)).to be_a_kind_of(String)
476
1518
  end
1519
+
1520
+
477
1521
  it 'deserializes the data of brand_id' do
478
1522
  expect(instance._deserialize("String", instance.brand_id)).to be_a_kind_of(String)
479
1523
  end
1524
+
1525
+
480
1526
  it 'deserializes the data of campaign_id' do
481
1527
  expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String)
482
1528
  end
1529
+
1530
+
483
1531
  it 'deserializes the data of segment_count' do
484
1532
  expect(instance._deserialize("Float", instance.segment_count)).to be_a_kind_of(Float)
485
1533
  end
1534
+
1535
+
486
1536
  it 'deserializes the data of media_urls' do
487
1537
  expect(instance._deserialize("Array<String>", instance.media_urls)).to be_a_kind_of(Array)
488
1538
  end
1539
+
1540
+
1541
+
1542
+
1543
+ it 'deserializes the data of tfn' do
1544
+ expect(instance._deserialize("Object", instance.tfn)).to be_a_kind_of(TFN)
1545
+ end
1546
+
1547
+ it 'deserializes the data of phone_number_id' do
1548
+ expect(instance._deserialize("String", instance.phone_number_id)).to be_a_kind_of(String)
1549
+ end
1550
+
1551
+
1552
+ it 'deserializes the data of application_id' do
1553
+ expect(instance._deserialize("String", instance.application_id)).to be_a_kind_of(String)
1554
+ end
1555
+
1556
+
489
1557
  end
490
1558
 
491
1559
  describe 'test method "to_s"' do
492
1560
  it 'returns the string representation of the object' do
493
1561
  instance = Freeclimb::MessageResult.new(
1562
+
494
1563
  uri: "TS",
1564
+
1565
+
1566
+
1567
+
495
1568
  date_created: "TS",
1569
+
1570
+
1571
+
1572
+
496
1573
  date_updated: "TS",
1574
+
1575
+
1576
+
497
1577
  revision: 1,
1578
+
1579
+
1580
+
1581
+
498
1582
  account_id: "TS",
1583
+
1584
+
1585
+
1586
+
499
1587
  message_id: "TS",
500
- status: "NEW",
1588
+
1589
+
1590
+
1591
+
1592
+ status: Freeclimb::MessageStatus::NEW,
1593
+
1594
+
1595
+
1596
+
501
1597
  from: "TS",
1598
+
1599
+
1600
+
1601
+
502
1602
  to: "TS",
1603
+
1604
+
1605
+
1606
+
503
1607
  text: "TS",
1608
+
1609
+
1610
+
1611
+
504
1612
  direction: "TS",
1613
+
1614
+
1615
+
1616
+
505
1617
  notification_url: "TS",
1618
+
1619
+
1620
+
1621
+
506
1622
  brand_id: "TS",
1623
+
1624
+
1625
+
1626
+
507
1627
  campaign_id: "TS",
1628
+
1629
+
1630
+
1631
+
1632
+
1633
+
508
1634
  media_urls: Array.new(),
1635
+
1636
+
1637
+
1638
+
1639
+
1640
+
1641
+ tfn: TFN.new,
1642
+
1643
+
1644
+ phone_number_id: "TS",
1645
+
1646
+
1647
+
1648
+
1649
+ application_id: "TS",
1650
+
1651
+
1652
+
509
1653
  )
510
1654
  expect(instance.to_s).to eq(instance.to_hash.to_s)
511
1655
  end
@@ -514,59 +1658,307 @@ describe Freeclimb::MessageResult do
514
1658
  describe 'test method "to_hash"' do
515
1659
  it 'returns the object in the form of hash' do
516
1660
  instance = Freeclimb::MessageResult.new(
1661
+
517
1662
  uri: "TS",
1663
+
1664
+
1665
+
1666
+
518
1667
  date_created: "TS",
1668
+
1669
+
1670
+
1671
+
519
1672
  date_updated: "TS",
1673
+
1674
+
1675
+
520
1676
  revision: 1,
1677
+
1678
+
1679
+
1680
+
521
1681
  account_id: "TS",
1682
+
1683
+
1684
+
1685
+
522
1686
  message_id: "TS",
523
- status: "NEW",
1687
+
1688
+
1689
+
1690
+
1691
+ status: Freeclimb::MessageStatus::NEW,
1692
+
1693
+
1694
+
1695
+
524
1696
  from: "TS",
1697
+
1698
+
1699
+
1700
+
525
1701
  to: "TS",
1702
+
1703
+
1704
+
1705
+
526
1706
  text: "TS",
1707
+
1708
+
1709
+
1710
+
527
1711
  direction: "TS",
1712
+
1713
+
1714
+
1715
+
528
1716
  notification_url: "TS",
1717
+
1718
+
1719
+
1720
+
529
1721
  brand_id: "TS",
1722
+
1723
+
1724
+
1725
+
530
1726
  campaign_id: "TS",
1727
+
1728
+
1729
+
1730
+
1731
+
1732
+
531
1733
  media_urls: Array.new(),
1734
+
1735
+
1736
+
1737
+
1738
+
1739
+
1740
+ tfn: TFN.new,
1741
+
1742
+
1743
+ phone_number_id: "TS",
1744
+
1745
+
1746
+
1747
+
1748
+ application_id: "TS",
1749
+
1750
+
1751
+
532
1752
  )
533
1753
  expect(instance.to_hash).to be_a_kind_of(Hash)
534
1754
  end
535
1755
  it 'creates equal hash for two equal objects' do
536
- obj = Object.new()
1756
+
1757
+
1758
+
1759
+
1760
+
1761
+
1762
+
1763
+
1764
+
1765
+
1766
+
1767
+
1768
+
1769
+
1770
+
1771
+
1772
+
1773
+ obj = TFN.new()
1774
+
1775
+
1776
+
537
1777
  instance_1 = Freeclimb::MessageResult.new(
1778
+
538
1779
  uri: "TS",
1780
+
1781
+
1782
+
1783
+
539
1784
  date_created: "TS",
1785
+
1786
+
1787
+
1788
+
540
1789
  date_updated: "TS",
1790
+
1791
+
1792
+
541
1793
  revision: 1,
1794
+
1795
+
1796
+
1797
+
542
1798
  account_id: "TS",
1799
+
1800
+
1801
+
1802
+
543
1803
  message_id: "TS",
544
- status: "NEW",
1804
+
1805
+
1806
+
1807
+
1808
+ status: Freeclimb::MessageStatus::NEW,
1809
+
1810
+
1811
+
1812
+
545
1813
  from: "TS",
1814
+
1815
+
1816
+
1817
+
546
1818
  to: "TS",
1819
+
1820
+
1821
+
1822
+
547
1823
  text: "TS",
1824
+
1825
+
1826
+
1827
+
548
1828
  direction: "TS",
1829
+
1830
+
1831
+
1832
+
549
1833
  notification_url: "TS",
1834
+
1835
+
1836
+
1837
+
550
1838
  brand_id: "TS",
1839
+
1840
+
1841
+
1842
+
551
1843
  campaign_id: "TS",
1844
+
1845
+
1846
+
1847
+
1848
+
1849
+
552
1850
  media_urls: Array.new(),
1851
+
1852
+
1853
+
1854
+
1855
+
1856
+
1857
+ tfn: obj,
1858
+
1859
+
1860
+ phone_number_id: "TS",
1861
+
1862
+
1863
+
1864
+
1865
+ application_id: "TS",
1866
+
1867
+
1868
+
553
1869
  )
554
1870
  instance_2 = Freeclimb::MessageResult.new(
1871
+
555
1872
  uri: "TS",
1873
+
1874
+
1875
+
1876
+
556
1877
  date_created: "TS",
1878
+
1879
+
1880
+
1881
+
557
1882
  date_updated: "TS",
1883
+
1884
+
1885
+
558
1886
  revision: 1,
1887
+
1888
+
1889
+
1890
+
559
1891
  account_id: "TS",
1892
+
1893
+
1894
+
1895
+
560
1896
  message_id: "TS",
561
- status: "NEW",
1897
+
1898
+
1899
+
1900
+
1901
+ status: Freeclimb::MessageStatus::NEW,
1902
+
1903
+
1904
+
1905
+
562
1906
  from: "TS",
1907
+
1908
+
1909
+
1910
+
563
1911
  to: "TS",
1912
+
1913
+
1914
+
1915
+
564
1916
  text: "TS",
1917
+
1918
+
1919
+
1920
+
565
1921
  direction: "TS",
1922
+
1923
+
1924
+
1925
+
566
1926
  notification_url: "TS",
1927
+
1928
+
1929
+
1930
+
567
1931
  brand_id: "TS",
1932
+
1933
+
1934
+
1935
+
568
1936
  campaign_id: "TS",
1937
+
1938
+
1939
+
1940
+
1941
+
1942
+
569
1943
  media_urls: Array.new(),
1944
+
1945
+
1946
+
1947
+
1948
+
1949
+
1950
+ tfn: obj,
1951
+
1952
+
1953
+ phone_number_id: "TS",
1954
+
1955
+
1956
+
1957
+
1958
+ application_id: "TS",
1959
+
1960
+
1961
+
570
1962
  )
571
1963
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
572
1964
  end
@@ -574,36 +1966,75 @@ describe Freeclimb::MessageResult do
574
1966
 
575
1967
  describe 'test method "_to_hash"' do
576
1968
  instance = Freeclimb::MessageResult.new(
1969
+
577
1970
  uri: "TS",
1971
+
578
1972
 
1973
+
579
1974
  date_created: "TS",
1975
+
580
1976
 
1977
+
581
1978
  date_updated: "TS",
1979
+
582
1980
 
583
1981
  revision: 1,
1982
+
584
1983
 
1984
+
585
1985
  account_id: "TS",
1986
+
586
1987
 
1988
+
587
1989
  message_id: "TS",
1990
+
588
1991
 
589
- status: "NEW",
1992
+
1993
+ status: Freeclimb::MessageStatus::NEW,
1994
+
590
1995
 
1996
+
591
1997
  from: "TS",
1998
+
592
1999
 
2000
+
593
2001
  to: "TS",
2002
+
594
2003
 
2004
+
595
2005
  text: "TS",
2006
+
596
2007
 
2008
+
597
2009
  direction: "TS",
2010
+
598
2011
 
2012
+
599
2013
  notification_url: "TS",
2014
+
600
2015
 
2016
+
601
2017
  brand_id: "TS",
2018
+
602
2019
 
2020
+
603
2021
  campaign_id: "TS",
2022
+
604
2023
 
2024
+
605
2025
 
606
2026
  media_urls: Array.new(),
2027
+
2028
+
2029
+
2030
+
2031
+
2032
+ phone_number_id: "TS",
2033
+
2034
+
2035
+
2036
+ application_id: "TS",
2037
+
607
2038
  )
608
2039
  it 'returns uri in the form of hash' do
609
2040
  expect(instance._to_hash(instance.uri)).to eq(instance.uri)
@@ -653,6 +2084,15 @@ describe Freeclimb::MessageResult do
653
2084
  it 'returns media_urls in the form of hash' do
654
2085
  expect(instance._to_hash(instance.media_urls)).to eq(instance.media_urls)
655
2086
  end
2087
+ it 'returns tfn in the form of hash' do
2088
+ expect(instance._to_hash(instance.tfn)).to eq(instance.tfn)
2089
+ end
2090
+ it 'returns phone_number_id in the form of hash' do
2091
+ expect(instance._to_hash(instance.phone_number_id)).to eq(instance.phone_number_id)
2092
+ end
2093
+ it 'returns application_id in the form of hash' do
2094
+ expect(instance._to_hash(instance.application_id)).to eq(instance.application_id)
2095
+ end
656
2096
  end
657
2097
 
658
2098
  end