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