freeclimb 5.1.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/Gemfile +4 -5
  4. data/Gemfile.lock +18 -5
  5. data/README.md +4 -4
  6. data/Rakefile +1 -1
  7. data/docs/CreateConferenceRequest.md +1 -1
  8. data/docs/DefaultApi.md +1 -1
  9. data/freeclimb.gemspec +21 -26
  10. data/lib/freeclimb/api/default_api.rb +878 -878
  11. data/lib/freeclimb/api_client.rb +78 -83
  12. data/lib/freeclimb/api_error.rb +17 -19
  13. data/lib/freeclimb/configuration.rb +27 -29
  14. data/lib/freeclimb/models/account_request.rb +36 -41
  15. data/lib/freeclimb/models/account_result.rb +88 -92
  16. data/lib/freeclimb/models/account_status.rb +12 -14
  17. data/lib/freeclimb/models/account_type.rb +12 -14
  18. data/lib/freeclimb/models/add_to_conference.rb +81 -85
  19. data/lib/freeclimb/models/add_to_conference_notification_webhook.rb +99 -103
  20. data/lib/freeclimb/models/add_to_queue_notification_webhook.rb +78 -82
  21. data/lib/freeclimb/models/answered_by.rb +12 -14
  22. data/lib/freeclimb/models/application_list.rb +74 -78
  23. data/lib/freeclimb/models/application_request.rb +66 -70
  24. data/lib/freeclimb/models/application_result.rb +100 -104
  25. data/lib/freeclimb/models/available_number.rb +66 -70
  26. data/lib/freeclimb/models/available_number_list.rb +74 -78
  27. data/lib/freeclimb/models/barge_in_reason.rb +12 -14
  28. data/lib/freeclimb/models/buy_incoming_number_request.rb +41 -45
  29. data/lib/freeclimb/models/call_control_webhook.rb +56 -61
  30. data/lib/freeclimb/models/call_direction.rb +12 -14
  31. data/lib/freeclimb/models/call_ended_reason.rb +12 -14
  32. data/lib/freeclimb/models/call_list.rb +74 -78
  33. data/lib/freeclimb/models/call_result.rb +142 -146
  34. data/lib/freeclimb/models/call_status.rb +12 -14
  35. data/lib/freeclimb/models/call_status_webhook.rb +84 -88
  36. data/lib/freeclimb/models/capabilities.rb +55 -59
  37. data/lib/freeclimb/models/completion_request.rb +32 -36
  38. data/lib/freeclimb/models/completion_result.rb +36 -40
  39. data/lib/freeclimb/models/completion_result_status.rb +12 -14
  40. data/lib/freeclimb/models/conference_list.rb +74 -78
  41. data/lib/freeclimb/models/conference_participant_list.rb +74 -78
  42. data/lib/freeclimb/models/conference_participant_result.rb +88 -92
  43. data/lib/freeclimb/models/conference_recording_status_webhook.rb +99 -103
  44. data/lib/freeclimb/models/conference_result.rb +106 -110
  45. data/lib/freeclimb/models/conference_status.rb +12 -14
  46. data/lib/freeclimb/models/conference_status_webhook.rb +102 -106
  47. data/lib/freeclimb/models/create_conference.rb +60 -63
  48. data/lib/freeclimb/models/create_conference_request.rb +55 -54
  49. data/lib/freeclimb/models/create_conference_webhook.rb +102 -106
  50. data/lib/freeclimb/models/create_web_rtc_token.rb +42 -46
  51. data/lib/freeclimb/models/dequeue.rb +28 -33
  52. data/lib/freeclimb/models/dequeue_webhook.rb +89 -93
  53. data/lib/freeclimb/models/enqueue.rb +48 -52
  54. data/lib/freeclimb/models/filter_logs_request.rb +31 -35
  55. data/lib/freeclimb/models/get_digits.rb +73 -77
  56. data/lib/freeclimb/models/get_digits_reason.rb +12 -14
  57. data/lib/freeclimb/models/get_digits_webhook.rb +93 -97
  58. data/lib/freeclimb/models/get_speech.rb +94 -97
  59. data/lib/freeclimb/models/get_speech_reason.rb +12 -14
  60. data/lib/freeclimb/models/get_speech_webhook.rb +118 -122
  61. data/lib/freeclimb/models/grammar_file_built_in.rb +12 -14
  62. data/lib/freeclimb/models/grammar_type.rb +12 -14
  63. data/lib/freeclimb/models/hangup.rb +34 -39
  64. data/lib/freeclimb/models/if_machine.rb +12 -14
  65. data/lib/freeclimb/models/inbound_call_webhook.rb +85 -89
  66. data/lib/freeclimb/models/incoming_number_list.rb +74 -78
  67. data/lib/freeclimb/models/incoming_number_request.rb +41 -45
  68. data/lib/freeclimb/models/incoming_number_result.rb +122 -126
  69. data/lib/freeclimb/models/language.rb +12 -14
  70. data/lib/freeclimb/models/leave_conference_webhook.rb +79 -83
  71. data/lib/freeclimb/models/log_level.rb +12 -14
  72. data/lib/freeclimb/models/log_list.rb +74 -78
  73. data/lib/freeclimb/models/log_result.rb +67 -71
  74. data/lib/freeclimb/models/machine_detected_webhook.rb +89 -93
  75. data/lib/freeclimb/models/machine_type.rb +12 -14
  76. data/lib/freeclimb/models/make_call_request.rb +77 -81
  77. data/lib/freeclimb/models/message_delivery_webhook.rb +81 -86
  78. data/lib/freeclimb/models/message_direction.rb +12 -14
  79. data/lib/freeclimb/models/message_request.rb +72 -75
  80. data/lib/freeclimb/models/message_result.rb +135 -139
  81. data/lib/freeclimb/models/message_status.rb +12 -14
  82. data/lib/freeclimb/models/message_status_webhook.rb +86 -90
  83. data/lib/freeclimb/models/messages_list.rb +74 -78
  84. data/lib/freeclimb/models/mutable_resource_model.rb +46 -51
  85. data/lib/freeclimb/models/out_dial.rb +80 -84
  86. data/lib/freeclimb/models/out_dial_api_connect_webhook.rb +84 -88
  87. data/lib/freeclimb/models/out_dial_connect_webhook.rb +84 -88
  88. data/lib/freeclimb/models/out_dial_start_webhook.rb +90 -94
  89. data/lib/freeclimb/models/pagination_model.rb +67 -71
  90. data/lib/freeclimb/models/park.rb +44 -48
  91. data/lib/freeclimb/models/pause.rb +33 -37
  92. data/lib/freeclimb/models/percl_command.rb +36 -40
  93. data/lib/freeclimb/models/percl_script.rb +32 -36
  94. data/lib/freeclimb/models/play.rb +44 -48
  95. data/lib/freeclimb/models/play_beep.rb +12 -14
  96. data/lib/freeclimb/models/play_early_media.rb +33 -37
  97. data/lib/freeclimb/models/queue_list.rb +74 -78
  98. data/lib/freeclimb/models/queue_member.rb +55 -59
  99. data/lib/freeclimb/models/queue_member_list.rb +74 -78
  100. data/lib/freeclimb/models/queue_request.rb +37 -42
  101. data/lib/freeclimb/models/queue_result.rb +88 -92
  102. data/lib/freeclimb/models/queue_result_status.rb +12 -14
  103. data/lib/freeclimb/models/queue_wait_webhook.rb +94 -98
  104. data/lib/freeclimb/models/record_utterance.rb +63 -67
  105. data/lib/freeclimb/models/record_utterance_term_reason.rb +12 -14
  106. data/lib/freeclimb/models/record_webhook.rb +119 -123
  107. data/lib/freeclimb/models/recording_list.rb +74 -78
  108. data/lib/freeclimb/models/recording_result.rb +76 -80
  109. data/lib/freeclimb/models/redirect.rb +33 -37
  110. data/lib/freeclimb/models/redirect_webhook.rb +84 -88
  111. data/lib/freeclimb/models/reject.rb +34 -39
  112. data/lib/freeclimb/models/remove_from_conference.rb +28 -33
  113. data/lib/freeclimb/models/remove_from_queue_notification_webhook.rb +89 -93
  114. data/lib/freeclimb/models/request_type.rb +12 -14
  115. data/lib/freeclimb/models/say.rb +49 -53
  116. data/lib/freeclimb/models/send_digits.rb +43 -47
  117. data/lib/freeclimb/models/set_dtmf_pass_through.rb +34 -39
  118. data/lib/freeclimb/models/set_listen.rb +34 -39
  119. data/lib/freeclimb/models/set_talk.rb +34 -39
  120. data/lib/freeclimb/models/sms.rb +48 -52
  121. data/lib/freeclimb/models/sms_ten_dlc_brand.rb +187 -190
  122. data/lib/freeclimb/models/sms_ten_dlc_brand_alt_business_id_type.rb +12 -14
  123. data/lib/freeclimb/models/sms_ten_dlc_brand_entity_type.rb +12 -14
  124. data/lib/freeclimb/models/sms_ten_dlc_brand_identity_status.rb +12 -14
  125. data/lib/freeclimb/models/sms_ten_dlc_brand_relationship.rb +12 -14
  126. data/lib/freeclimb/models/sms_ten_dlc_brand_stock_exchange.rb +12 -14
  127. data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +74 -78
  128. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +226 -229
  129. data/lib/freeclimb/models/sms_ten_dlc_campaign_status.rb +12 -14
  130. data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +74 -78
  131. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +186 -189
  132. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +84 -87
  133. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_status.rb +12 -14
  134. data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +74 -78
  135. data/lib/freeclimb/models/sms_toll_free_campaign.rb +61 -64
  136. data/lib/freeclimb/models/sms_toll_free_campaign_registration_status.rb +12 -14
  137. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +74 -78
  138. data/lib/freeclimb/models/start_record_call.rb +28 -33
  139. data/lib/freeclimb/models/terminate_conference.rb +28 -33
  140. data/lib/freeclimb/models/tfn.rb +31 -35
  141. data/lib/freeclimb/models/tfn_campaign.rb +76 -79
  142. data/lib/freeclimb/models/transcribe_reason.rb +12 -14
  143. data/lib/freeclimb/models/transcribe_term_reason.rb +12 -14
  144. data/lib/freeclimb/models/transcribe_utterance.rb +61 -65
  145. data/lib/freeclimb/models/transcribe_utterance_record.rb +43 -47
  146. data/lib/freeclimb/models/transcribe_webhook.rb +150 -154
  147. data/lib/freeclimb/models/unpark.rb +28 -33
  148. data/lib/freeclimb/models/update_call_request.rb +31 -35
  149. data/lib/freeclimb/models/update_call_request_status.rb +12 -14
  150. data/lib/freeclimb/models/update_conference_participant_request.rb +41 -46
  151. data/lib/freeclimb/models/update_conference_request.rb +41 -45
  152. data/lib/freeclimb/models/update_conference_request_status.rb +12 -14
  153. data/lib/freeclimb/models/webhook.rb +32 -37
  154. data/lib/freeclimb/utils/request_verifier.rb +14 -14
  155. data/lib/freeclimb/utils/signature_information.rb +8 -8
  156. data/lib/freeclimb/version.rb +10 -12
  157. data/lib/freeclimb.rb +156 -158
  158. data/openapi.json +3 -0
  159. data/package.json +1 -1
  160. data/spec/api/default_api_spec.rb +492 -676
  161. data/spec/api_client_spec.rb +100 -102
  162. data/spec/configuration_spec.rb +16 -18
  163. data/spec/models/account_request_spec.rb +104 -233
  164. data/spec/models/account_result_spec.rb +393 -1013
  165. data/spec/models/account_status_spec.rb +27 -30
  166. data/spec/models/account_type_spec.rb +24 -27
  167. data/spec/models/add_to_conference_notification_webhook_spec.rb +464 -1197
  168. data/spec/models/add_to_conference_spec.rb +354 -850
  169. data/spec/models/add_to_queue_notification_webhook_spec.rb +341 -864
  170. data/spec/models/answered_by_spec.rb +24 -27
  171. data/spec/models/application_list_spec.rb +289 -646
  172. data/spec/models/application_request_spec.rb +265 -679
  173. data/spec/models/application_result_spec.rb +444 -1184
  174. data/spec/models/available_number_list_spec.rb +289 -646
  175. data/spec/models/available_number_spec.rb +271 -650
  176. data/spec/models/barge_in_reason_spec.rb +27 -30
  177. data/spec/models/buy_incoming_number_request_spec.rb +136 -322
  178. data/spec/models/call_control_webhook_spec.rb +203 -503
  179. data/spec/models/call_direction_spec.rb +27 -30
  180. data/spec/models/call_ended_reason_spec.rb +107 -110
  181. data/spec/models/call_list_spec.rb +289 -646
  182. data/spec/models/call_result_spec.rb +679 -1778
  183. data/spec/models/call_status_spec.rb +47 -50
  184. data/spec/models/call_status_webhook_spec.rb +413 -990
  185. data/spec/models/capabilities_spec.rb +202 -411
  186. data/spec/models/completion_request_spec.rb +75 -143
  187. data/spec/models/completion_result_spec.rb +104 -231
  188. data/spec/models/completion_result_status_spec.rb +24 -27
  189. data/spec/models/conference_list_spec.rb +289 -646
  190. data/spec/models/conference_participant_list_spec.rb +289 -646
  191. data/spec/models/conference_participant_result_spec.rb +384 -938
  192. data/spec/models/conference_recording_status_webhook_spec.rb +464 -1197
  193. data/spec/models/conference_result_spec.rb +489 -1263
  194. data/spec/models/conference_status_spec.rb +31 -34
  195. data/spec/models/conference_status_webhook_spec.rb +464 -1197
  196. data/spec/models/create_conference_request_spec.rb +204 -485
  197. data/spec/models/create_conference_spec.rb +237 -557
  198. data/spec/models/create_conference_webhook_spec.rb +464 -1197
  199. data/spec/models/create_web_rtc_token_spec.rb +136 -307
  200. data/spec/models/dequeue_spec.rb +14 -17
  201. data/spec/models/dequeue_webhook_spec.rb +400 -1021
  202. data/spec/models/enqueue_spec.rb +169 -412
  203. data/spec/models/filter_logs_request_spec.rb +73 -145
  204. data/spec/models/get_digits_reason_spec.rb +31 -34
  205. data/spec/models/get_digits_spec.rb +326 -737
  206. data/spec/models/get_digits_webhook_spec.rb +435 -1127
  207. data/spec/models/get_speech_reason_spec.rb +39 -42
  208. data/spec/models/get_speech_spec.rb +399 -1036
  209. data/spec/models/get_speech_webhook_spec.rb +608 -1553
  210. data/spec/models/grammar_file_built_in_spec.rb +75 -78
  211. data/spec/models/grammar_type_spec.rb +24 -27
  212. data/spec/models/hangup_spec.rb +73 -145
  213. data/spec/models/if_machine_spec.rb +24 -27
  214. data/spec/models/inbound_call_webhook_spec.rb +371 -951
  215. data/spec/models/incoming_number_list_spec.rb +289 -646
  216. data/spec/models/incoming_number_request_spec.rb +136 -322
  217. data/spec/models/incoming_number_result_spec.rb +573 -1489
  218. data/spec/models/language_spec.rb +120 -123
  219. data/spec/models/leave_conference_webhook_spec.rb +341 -864
  220. data/spec/models/log_level_spec.rb +27 -30
  221. data/spec/models/log_list_spec.rb +289 -646
  222. data/spec/models/log_result_spec.rb +272 -667
  223. data/spec/models/machine_detected_webhook_spec.rb +401 -1036
  224. data/spec/models/machine_type_spec.rb +24 -27
  225. data/spec/models/make_call_request_spec.rb +353 -905
  226. data/spec/models/message_delivery_webhook_spec.rb +357 -942
  227. data/spec/models/message_direction_spec.rb +24 -27
  228. data/spec/models/message_request_spec.rb +324 -818
  229. data/spec/models/message_result_spec.rb +647 -1710
  230. data/spec/models/message_status_spec.rb +60 -63
  231. data/spec/models/message_status_webhook_spec.rb +405 -1045
  232. data/spec/models/messages_list_spec.rb +289 -646
  233. data/spec/models/mutable_resource_model_spec.rb +168 -395
  234. data/spec/models/out_dial_api_connect_webhook_spec.rb +371 -951
  235. data/spec/models/out_dial_connect_webhook_spec.rb +371 -951
  236. data/spec/models/out_dial_spec.rb +354 -903
  237. data/spec/models/out_dial_start_webhook_spec.rb +401 -1038
  238. data/spec/models/pagination_model_spec.rb +259 -577
  239. data/spec/models/park_spec.rb +136 -322
  240. data/spec/models/pause_spec.rb +72 -128
  241. data/spec/models/percl_command_spec.rb +76 -145
  242. data/spec/models/percl_script_spec.rb +73 -127
  243. data/spec/models/play_beep_spec.rb +31 -34
  244. data/spec/models/play_early_media_spec.rb +73 -145
  245. data/spec/models/play_spec.rb +135 -287
  246. data/spec/models/queue_list_spec.rb +289 -646
  247. data/spec/models/queue_member_list_spec.rb +289 -646
  248. data/spec/models/queue_member_spec.rb +199 -467
  249. data/spec/models/queue_request_spec.rb +103 -216
  250. data/spec/models/queue_result_spec.rb +388 -965
  251. data/spec/models/queue_result_status_spec.rb +31 -34
  252. data/spec/models/queue_wait_webhook_spec.rb +429 -1091
  253. data/spec/models/record_utterance_spec.rb +263 -591
  254. data/spec/models/record_utterance_term_reason_spec.rb +31 -34
  255. data/spec/models/record_webhook_spec.rb +605 -1548
  256. data/spec/models/recording_list_spec.rb +289 -646
  257. data/spec/models/recording_result_spec.rb +323 -819
  258. data/spec/models/redirect_spec.rb +73 -145
  259. data/spec/models/redirect_webhook_spec.rb +371 -951
  260. data/spec/models/reject_spec.rb +73 -145
  261. data/spec/models/remove_from_conference_spec.rb +14 -17
  262. data/spec/models/remove_from_queue_notification_webhook_spec.rb +404 -1023
  263. data/spec/models/request_type_spec.rb +107 -110
  264. data/spec/models/say_spec.rb +168 -377
  265. data/spec/models/send_digits_spec.rb +135 -287
  266. data/spec/models/set_dtmf_pass_through_spec.rb +74 -127
  267. data/spec/models/set_listen_spec.rb +74 -127
  268. data/spec/models/set_talk_spec.rb +74 -127
  269. data/spec/models/sms_spec.rb +169 -412
  270. data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +31 -34
  271. data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +35 -38
  272. data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +31 -34
  273. data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +35 -38
  274. data/spec/models/sms_ten_dlc_brand_spec.rb +1082 -2746
  275. data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +124 -127
  276. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +289 -646
  277. data/spec/models/sms_ten_dlc_campaign_spec.rb +1139 -2881
  278. data/spec/models/sms_ten_dlc_campaign_status_spec.rb +24 -27
  279. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +289 -646
  280. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +406 -1004
  281. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +961 -2393
  282. data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +24 -27
  283. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +289 -646
  284. data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +35 -38
  285. data/spec/models/sms_toll_free_campaign_spec.rb +270 -666
  286. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +289 -646
  287. data/spec/models/start_record_call_spec.rb +14 -17
  288. data/spec/models/terminate_conference_spec.rb +14 -17
  289. data/spec/models/tfn_campaign_spec.rb +330 -858
  290. data/spec/models/tfn_spec.rb +73 -145
  291. data/spec/models/transcribe_reason_spec.rb +35 -38
  292. data/spec/models/transcribe_term_reason_spec.rb +24 -27
  293. data/spec/models/transcribe_utterance_record_spec.rb +134 -270
  294. data/spec/models/transcribe_utterance_spec.rb +236 -523
  295. data/spec/models/transcribe_webhook_spec.rb +749 -1918
  296. data/spec/models/unpark_spec.rb +14 -17
  297. data/spec/models/update_call_request_spec.rb +74 -143
  298. data/spec/models/update_call_request_status_spec.rb +24 -27
  299. data/spec/models/update_conference_participant_request_spec.rb +137 -268
  300. data/spec/models/update_conference_request_spec.rb +140 -321
  301. data/spec/models/update_conference_request_status_spec.rb +24 -27
  302. data/spec/models/webhook_spec.rb +68 -137
  303. data/spec/quickstart_spec.rb +5 -5
  304. data/spec/spec_helper.rb +92 -100
  305. data/spec/utils/request_verifier_spec.rb +70 -71
  306. data/spec/utils/signature_information_spec.rb +23 -23
  307. data/yarn.lock +9 -0
  308. metadata +3 -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::MessageStatusWebhook
@@ -21,856 +19,435 @@ include Freeclimb
21
19
  describe Freeclimb::MessageStatusWebhook do
22
20
  let(:instance) { Freeclimb::MessageStatusWebhook.new }
23
21
 
24
- describe 'test an instance of MessageStatusWebhook' do
25
- it 'should create an instance of MessageStatusWebhook' do
22
+ describe "test an instance of MessageStatusWebhook" do
23
+ it "should create an instance of MessageStatusWebhook" do
26
24
  expect(instance).to be_instance_of(Freeclimb::MessageStatusWebhook)
27
25
  end
28
26
  end
29
- describe '.deserialize' do
30
- it 'deserializes a json payload into instance of MessageStatusWebhook' do
27
+ describe ".deserialize" do
28
+ it "deserializes a json payload into instance of MessageStatusWebhook" do
31
29
  payload = '{ "requestType": "messageStatus" }'
32
30
  expect(Freeclimb::MessageStatusWebhook.deserialize(payload)).to be_instance_of(Freeclimb::MessageStatusWebhook)
33
31
  end
34
32
  end
35
-
33
+
36
34
  describe 'test attribute "request_type"' do
37
- it 'should work' do
38
-
35
+ it "should work" do
39
36
  instance.request_type = "TEST_STRING"
40
- expect(instance.request_type).to eq("TEST_STRING")
41
-
42
-
43
-
37
+ expect(instance.request_type).to eq("TEST_STRING")
44
38
  end
45
39
  end
46
40
 
47
41
  describe 'test attribute "account_id"' do
48
- it 'should work' do
49
-
42
+ it "should work" do
50
43
  instance.account_id = "TEST_STRING"
51
- expect(instance.account_id).to eq("TEST_STRING")
52
-
53
-
54
-
44
+ expect(instance.account_id).to eq("TEST_STRING")
55
45
  end
56
46
  end
57
47
 
58
48
  describe 'test attribute "message_id"' do
59
- it 'should work' do
60
-
49
+ it "should work" do
61
50
  instance.message_id = "TEST_STRING"
62
- expect(instance.message_id).to eq("TEST_STRING")
63
-
64
-
65
-
51
+ expect(instance.message_id).to eq("TEST_STRING")
66
52
  end
67
53
  end
68
54
 
69
55
  describe 'test attribute "call_id"' do
70
- it 'should work' do
71
-
56
+ it "should work" do
72
57
  instance.call_id = "TEST_STRING"
73
- expect(instance.call_id).to eq("TEST_STRING")
74
-
75
-
76
-
58
+ expect(instance.call_id).to eq("TEST_STRING")
77
59
  end
78
60
  end
79
61
 
80
62
  describe 'test attribute "from"' do
81
- it 'should work' do
82
-
63
+ it "should work" do
83
64
  instance.from = "TEST_STRING"
84
- expect(instance.from).to eq("TEST_STRING")
85
-
86
-
87
-
65
+ expect(instance.from).to eq("TEST_STRING")
88
66
  end
89
67
  end
90
68
 
91
69
  describe 'test attribute "to"' do
92
- it 'should work' do
93
-
70
+ it "should work" do
94
71
  instance.to = "TEST_STRING"
95
- expect(instance.to).to eq("TEST_STRING")
96
-
97
-
98
-
72
+ expect(instance.to).to eq("TEST_STRING")
99
73
  end
100
74
  end
101
75
 
102
76
  describe 'test attribute "text"' do
103
- it 'should work' do
104
-
77
+ it "should work" do
105
78
  instance.text = "TEST_STRING"
106
- expect(instance.text).to eq("TEST_STRING")
107
-
108
-
109
-
79
+ expect(instance.text).to eq("TEST_STRING")
110
80
  end
111
81
  end
112
82
 
113
83
  describe 'test attribute "direction"' do
114
- it 'should work' do
115
-
84
+ it "should work" do
116
85
  instance.direction = "TEST_STRING"
117
- expect(instance.direction).to eq("TEST_STRING")
118
-
119
-
120
-
86
+ expect(instance.direction).to eq("TEST_STRING")
121
87
  end
122
88
  end
123
89
 
124
90
  describe 'test attribute "application_id"' do
125
- it 'should work' do
126
-
91
+ it "should work" do
127
92
  instance.application_id = "TEST_STRING"
128
- expect(instance.application_id).to eq("TEST_STRING")
129
-
130
-
131
-
93
+ expect(instance.application_id).to eq("TEST_STRING")
132
94
  end
133
95
  end
134
96
 
135
-
136
97
  describe 'test attribute "status"' do
137
- it 'assigns value NEW' do
98
+ it "assigns value NEW" do
138
99
  instance.status = Freeclimb::MessageStatus::NEW
139
- expect(instance.status).to eq(Freeclimb::MessageStatus::NEW)
100
+ expect(instance.status).to eq(Freeclimb::MessageStatus::NEW)
140
101
  end
141
- it 'assigns value QUEUED' do
102
+ it "assigns value QUEUED" do
142
103
  instance.status = Freeclimb::MessageStatus::QUEUED
143
- expect(instance.status).to eq(Freeclimb::MessageStatus::QUEUED)
104
+ expect(instance.status).to eq(Freeclimb::MessageStatus::QUEUED)
144
105
  end
145
- it 'assigns value REJECTED' do
106
+ it "assigns value REJECTED" do
146
107
  instance.status = Freeclimb::MessageStatus::REJECTED
147
- expect(instance.status).to eq(Freeclimb::MessageStatus::REJECTED)
108
+ expect(instance.status).to eq(Freeclimb::MessageStatus::REJECTED)
148
109
  end
149
- it 'assigns value SENDING' do
110
+ it "assigns value SENDING" do
150
111
  instance.status = Freeclimb::MessageStatus::SENDING
151
- expect(instance.status).to eq(Freeclimb::MessageStatus::SENDING)
112
+ expect(instance.status).to eq(Freeclimb::MessageStatus::SENDING)
152
113
  end
153
- it 'assigns value SENT' do
114
+ it "assigns value SENT" do
154
115
  instance.status = Freeclimb::MessageStatus::SENT
155
- expect(instance.status).to eq(Freeclimb::MessageStatus::SENT)
116
+ expect(instance.status).to eq(Freeclimb::MessageStatus::SENT)
156
117
  end
157
- it 'assigns value FAILED' do
118
+ it "assigns value FAILED" do
158
119
  instance.status = Freeclimb::MessageStatus::FAILED
159
- expect(instance.status).to eq(Freeclimb::MessageStatus::FAILED)
120
+ expect(instance.status).to eq(Freeclimb::MessageStatus::FAILED)
160
121
  end
161
- it 'assigns value RECEIVED' do
122
+ it "assigns value RECEIVED" do
162
123
  instance.status = Freeclimb::MessageStatus::RECEIVED
163
- expect(instance.status).to eq(Freeclimb::MessageStatus::RECEIVED)
124
+ expect(instance.status).to eq(Freeclimb::MessageStatus::RECEIVED)
164
125
  end
165
- it 'assigns value UNDELIVERED' do
126
+ it "assigns value UNDELIVERED" do
166
127
  instance.status = Freeclimb::MessageStatus::UNDELIVERED
167
- expect(instance.status).to eq(Freeclimb::MessageStatus::UNDELIVERED)
128
+ expect(instance.status).to eq(Freeclimb::MessageStatus::UNDELIVERED)
168
129
  end
169
- it 'assigns value EXPIRED' do
130
+ it "assigns value EXPIRED" do
170
131
  instance.status = Freeclimb::MessageStatus::EXPIRED
171
- expect(instance.status).to eq(Freeclimb::MessageStatus::EXPIRED)
132
+ expect(instance.status).to eq(Freeclimb::MessageStatus::EXPIRED)
172
133
  end
173
- it 'assigns value DELETED' do
134
+ it "assigns value DELETED" do
174
135
  instance.status = Freeclimb::MessageStatus::DELETED
175
- expect(instance.status).to eq(Freeclimb::MessageStatus::DELETED)
136
+ expect(instance.status).to eq(Freeclimb::MessageStatus::DELETED)
176
137
  end
177
- it 'assigns value UNKNOWN' do
138
+ it "assigns value UNKNOWN" do
178
139
  instance.status = Freeclimb::MessageStatus::UNKNOWN
179
- expect(instance.status).to eq(Freeclimb::MessageStatus::UNKNOWN)
140
+ expect(instance.status).to eq(Freeclimb::MessageStatus::UNKNOWN)
180
141
  end
181
142
  end
182
143
  describe 'test attribute "phone_number_id"' do
183
- it 'should work' do
184
-
144
+ it "should work" do
185
145
  instance.phone_number_id = "TEST_STRING"
186
- expect(instance.phone_number_id).to eq("TEST_STRING")
187
-
188
-
189
-
146
+ expect(instance.phone_number_id).to eq("TEST_STRING")
190
147
  end
191
148
  end
192
149
 
193
150
  describe 'test method "initialize"' do
194
- it 'properly initializes with values' do
195
- expect { instance = Freeclimb::MessageStatusWebhook.new(
196
-
197
- request_type: "TS",
198
-
199
-
200
-
201
-
202
- account_id: "TS",
203
-
204
-
205
-
206
-
207
- message_id: "TS",
208
-
209
-
210
-
211
-
212
- call_id: "TS",
213
-
214
-
215
-
216
-
217
- from: "TS",
218
-
219
-
220
-
221
-
222
- to: "TS",
223
-
224
-
225
-
226
-
227
- text: "TS",
228
-
229
-
230
-
231
-
232
- direction: "TS",
233
-
234
-
235
-
236
-
237
- application_id: "TS",
238
-
239
-
240
-
241
-
242
- status: Freeclimb::MessageStatus::NEW,
243
-
244
-
245
-
246
-
247
- phone_number_id: "TS",
248
-
249
-
250
-
251
- )}.not_to raise_error()
252
- end
253
- it 'fails to initialize with input argument that is not a hash in Freeclimb::MessageStatusWebhook' do
254
- expect { instance = Freeclimb::MessageStatusWebhook.new(
255
-
256
- request_type: "TS",
257
-
258
-
259
-
260
-
261
- account_id: "TS",
262
-
263
-
264
-
265
-
266
- message_id: "TS",
267
-
268
-
269
-
270
-
271
- call_id: "TS",
272
-
273
-
274
-
275
-
276
- from: "TS",
277
-
278
-
279
-
280
-
281
- to: "TS",
282
-
283
-
284
-
285
-
286
- text: "TS",
287
-
288
-
289
-
290
-
291
- direction: "TS",
292
-
293
-
294
-
295
-
296
- application_id: "TS",
297
-
298
-
299
-
300
-
301
- status: Freeclimb::MessageStatus::NEW,
302
-
303
-
304
-
305
-
306
- phone_number_id: "TS",
307
-
308
-
309
-
310
- invalid_attribute: true
311
- )}.to raise_error(ArgumentError)
312
- end
313
- it 'fails to initialize with invalid attribute' do
314
- expect { instance = Freeclimb::MessageStatusWebhook.new(
315
-
316
- request_type: "TS",
317
-
318
-
319
-
320
-
321
- account_id: "TS",
322
-
323
-
324
-
325
-
326
- message_id: "TS",
327
-
328
-
329
-
330
-
331
- call_id: "TS",
332
-
333
-
334
-
335
-
336
- from: "TS",
337
-
338
-
339
-
340
-
341
- to: "TS",
342
-
343
-
344
-
345
-
346
- text: "TS",
347
-
348
-
349
-
350
-
351
- direction: "TS",
352
-
353
-
354
-
355
-
356
- application_id: "TS",
357
-
358
-
359
-
360
-
361
- status: Freeclimb::MessageStatus::NEW,
362
-
363
-
364
-
365
-
366
- phone_number_id: "TS",
367
-
368
-
369
-
370
- invalid_attribute: true
371
- )}.to raise_error(ArgumentError)
372
- end
373
- end
374
-
375
- describe 'test method "valid"' do
376
- it 'checks if properties are valid' do
377
- instance = Freeclimb::MessageStatusWebhook.new(
378
-
151
+ it "properly initializes with values" do
152
+ expect {
153
+ Freeclimb::MessageStatusWebhook.new(
379
154
  request_type: "TS",
380
-
381
-
382
-
383
-
155
+
384
156
  account_id: "TS",
385
-
386
-
387
-
388
-
157
+
389
158
  message_id: "TS",
390
-
391
-
392
-
393
-
159
+
394
160
  call_id: "TS",
395
-
396
-
397
-
398
-
161
+
399
162
  from: "TS",
400
-
401
-
402
-
403
-
163
+
404
164
  to: "TS",
405
-
406
-
407
-
408
-
165
+
409
166
  text: "TS",
410
-
411
-
412
-
413
-
167
+
414
168
  direction: "TS",
415
-
416
-
417
-
418
-
169
+
419
170
  application_id: "TS",
420
-
421
-
422
-
423
-
424
- status: Freeclimb::MessageStatus::NEW,
425
-
426
-
427
-
428
-
429
- phone_number_id: "TS",
430
-
431
-
432
-
433
- )
434
- expect(instance.valid?).to eq(true)
435
- end
436
171
 
172
+ status: Freeclimb::MessageStatus::NEW,
437
173
 
438
- skip 'checks if properties are invalid' do
439
- instance = Freeclimb::MessageStatusWebhook.new(
440
-
441
- )
442
- expect(instance.valid?).to eq(false)
174
+ phone_number_id: "TS"
175
+ )
176
+ }.not_to raise_error
443
177
  end
444
-
445
- end
446
-
447
- describe 'test method "eql?"' do
448
- it 'checks if objects are equal' do
449
-
450
-
451
-
452
-
453
-
454
-
455
-
456
-
457
-
458
-
459
-
460
- instance_1 = Freeclimb::MessageStatusWebhook.new(
461
-
178
+ it "fails to initialize with input argument that is not a hash in Freeclimb::MessageStatusWebhook" do
179
+ expect {
180
+ Freeclimb::MessageStatusWebhook.new(
462
181
  request_type: "TS",
463
-
464
-
465
-
466
-
182
+
467
183
  account_id: "TS",
468
-
469
-
470
-
471
-
184
+
472
185
  message_id: "TS",
473
-
474
-
475
-
476
-
186
+
477
187
  call_id: "TS",
478
-
479
-
480
-
481
-
188
+
482
189
  from: "TS",
483
-
484
-
485
-
486
-
190
+
487
191
  to: "TS",
488
-
489
-
490
-
491
-
192
+
492
193
  text: "TS",
493
-
494
-
495
-
496
-
194
+
497
195
  direction: "TS",
498
-
499
-
500
-
501
-
196
+
502
197
  application_id: "TS",
503
-
504
-
505
-
506
-
507
-
508
-
198
+
509
199
  status: Freeclimb::MessageStatus::NEW,
510
-
511
-
200
+
512
201
  phone_number_id: "TS",
513
-
514
-
515
-
516
- )
517
- instance_2 = Freeclimb::MessageStatusWebhook.new(
518
-
202
+
203
+ invalid_attribute: true
204
+ )
205
+ }.to raise_error(ArgumentError)
206
+ end
207
+ it "fails to initialize with invalid attribute" do
208
+ expect {
209
+ Freeclimb::MessageStatusWebhook.new(
519
210
  request_type: "TS",
520
-
521
-
522
-
523
-
211
+
524
212
  account_id: "TS",
525
-
526
-
527
-
528
-
213
+
529
214
  message_id: "TS",
530
-
531
-
532
-
533
-
215
+
534
216
  call_id: "TS",
535
-
536
-
537
-
538
-
217
+
539
218
  from: "TS",
540
-
541
-
542
-
543
-
219
+
544
220
  to: "TS",
545
-
546
-
547
-
548
-
221
+
549
222
  text: "TS",
550
-
551
-
552
-
553
-
223
+
554
224
  direction: "TS",
555
-
556
-
557
-
558
-
225
+
559
226
  application_id: "TS",
560
-
561
-
562
-
563
-
564
-
565
-
227
+
566
228
  status: Freeclimb::MessageStatus::NEW,
567
-
568
-
229
+
569
230
  phone_number_id: "TS",
570
-
571
-
572
-
231
+
232
+ invalid_attribute: true
233
+ )
234
+ }.to raise_error(ArgumentError)
235
+ end
236
+ end
237
+
238
+ describe 'test method "valid"' do
239
+ it "checks if properties are valid" do
240
+ instance = Freeclimb::MessageStatusWebhook.new(
241
+ request_type: "TS",
242
+
243
+ account_id: "TS",
244
+
245
+ message_id: "TS",
246
+
247
+ call_id: "TS",
248
+
249
+ from: "TS",
250
+
251
+ to: "TS",
252
+
253
+ text: "TS",
254
+
255
+ direction: "TS",
256
+
257
+ application_id: "TS",
258
+
259
+ status: Freeclimb::MessageStatus::NEW,
260
+
261
+ phone_number_id: "TS"
262
+ )
263
+ expect(instance.valid?).to eq(true)
264
+ end
265
+
266
+ skip "checks if properties are invalid" do
267
+ instance = Freeclimb::MessageStatusWebhook.new
268
+
269
+ expect(instance.valid?).to eq(false)
270
+ end
271
+ end
272
+
273
+ describe 'test method "eql?"' do
274
+ it "checks if objects are equal" do
275
+ instance_1 = Freeclimb::MessageStatusWebhook.new(
276
+ request_type: "TS",
277
+
278
+ account_id: "TS",
279
+
280
+ message_id: "TS",
281
+
282
+ call_id: "TS",
283
+
284
+ from: "TS",
285
+
286
+ to: "TS",
287
+
288
+ text: "TS",
289
+
290
+ direction: "TS",
291
+
292
+ application_id: "TS",
293
+
294
+ status: Freeclimb::MessageStatus::NEW,
295
+
296
+ phone_number_id: "TS"
297
+ )
298
+ instance_2 = Freeclimb::MessageStatusWebhook.new(
299
+ request_type: "TS",
300
+
301
+ account_id: "TS",
302
+
303
+ message_id: "TS",
304
+
305
+ call_id: "TS",
306
+
307
+ from: "TS",
308
+
309
+ to: "TS",
310
+
311
+ text: "TS",
312
+
313
+ direction: "TS",
314
+
315
+ application_id: "TS",
316
+
317
+ status: Freeclimb::MessageStatus::NEW,
318
+
319
+ phone_number_id: "TS"
573
320
  )
574
321
  expect(instance_1.eql?(instance_2)).to eq(true)
575
322
  end
576
-
577
- it 'checks if objects are not equal' do
323
+
324
+ it "checks if objects are not equal" do
578
325
  instance_1 = Freeclimb::MessageStatusWebhook.new(
579
-
580
- request_type: "TS",
581
-
582
-
583
-
584
-
585
- account_id: "TS",
586
-
587
-
588
-
589
-
590
- message_id: "TS",
591
-
592
-
593
-
594
-
595
- call_id: "TS",
596
-
597
-
598
-
599
-
600
- from: "TS",
601
-
602
-
603
-
604
-
605
- to: "TS",
606
-
607
-
608
-
609
-
610
- text: "TS",
611
-
612
-
613
-
614
-
615
- direction: "TS",
616
-
617
-
618
-
619
-
620
- application_id: "TS",
621
-
622
-
623
-
624
-
625
-
626
-
627
- status: Freeclimb::MessageStatus::NEW,
628
-
629
-
630
- phone_number_id: "TS",
631
-
632
-
633
-
326
+ request_type: "TS",
327
+
328
+ account_id: "TS",
329
+
330
+ message_id: "TS",
331
+
332
+ call_id: "TS",
333
+
334
+ from: "TS",
335
+
336
+ to: "TS",
337
+
338
+ text: "TS",
339
+
340
+ direction: "TS",
341
+
342
+ application_id: "TS",
343
+
344
+ status: Freeclimb::MessageStatus::NEW,
345
+
346
+ phone_number_id: "TS"
634
347
  )
635
348
  instance_2 = Freeclimb::MessageStatusWebhook.new(
636
-
637
- request_type: "ST",
638
-
639
-
640
-
641
-
642
- account_id: "ST",
643
-
644
-
645
-
646
-
647
- message_id: "ST",
648
-
649
-
650
-
651
-
652
- call_id: "ST",
653
-
654
-
655
-
656
-
657
- from: "ST",
658
-
659
-
660
-
661
-
662
- to: "ST",
663
-
664
-
665
-
666
-
667
- text: "ST",
668
-
669
-
670
-
671
-
672
- direction: "ST",
673
-
674
-
675
-
676
-
677
- application_id: "ST",
678
-
679
-
680
-
681
-
682
-
683
-
684
- status: nil,
685
-
686
-
687
- phone_number_id: "ST",
688
-
689
-
690
-
349
+ request_type: "ST",
350
+
351
+ account_id: "ST",
352
+
353
+ message_id: "ST",
354
+
355
+ call_id: "ST",
356
+
357
+ from: "ST",
358
+
359
+ to: "ST",
360
+
361
+ text: "ST",
362
+
363
+ direction: "ST",
364
+
365
+ application_id: "ST",
366
+
367
+ status: nil,
368
+
369
+ phone_number_id: "ST"
691
370
  )
692
371
  expect(instance_1.eql?(instance_2)).to eq(false)
693
372
  end
694
373
  end
695
-
374
+
696
375
  describe 'test method "hash"' do
697
- it 'calculates hash code' do
376
+ it "calculates hash code" do
698
377
  instance = Freeclimb::MessageStatusWebhook.new(
699
-
700
- request_type: "TS",
701
-
702
-
703
-
704
-
705
- account_id: "TS",
706
-
707
-
708
-
709
-
710
- message_id: "TS",
711
-
712
-
713
-
714
-
715
- call_id: "TS",
716
-
717
-
718
-
719
-
720
- from: "TS",
721
-
722
-
723
-
724
-
725
- to: "TS",
726
-
727
-
728
-
729
-
730
- text: "TS",
731
-
732
-
733
-
734
-
735
- direction: "TS",
736
-
737
-
738
-
739
-
740
- application_id: "TS",
741
-
742
-
743
-
744
-
745
- status: Freeclimb::MessageStatus::NEW,
746
-
747
-
748
-
749
-
750
- phone_number_id: "TS",
751
-
752
-
753
-
754
- )
378
+ request_type: "TS",
379
+
380
+ account_id: "TS",
381
+
382
+ message_id: "TS",
383
+
384
+ call_id: "TS",
385
+
386
+ from: "TS",
387
+
388
+ to: "TS",
389
+
390
+ text: "TS",
391
+
392
+ direction: "TS",
393
+
394
+ application_id: "TS",
395
+
396
+ status: Freeclimb::MessageStatus::NEW,
397
+
398
+ phone_number_id: "TS"
399
+ )
755
400
  expect(instance.hash).to be_a_kind_of(Integer)
756
401
  end
757
402
  end
758
403
 
759
404
  describe 'test method "build_from_hash"' do
760
- it 'builds equivalent model from hash code' do
405
+ it "builds equivalent model from hash code" do
761
406
  instance_1 = Freeclimb::MessageStatusWebhook.new(
762
-
763
407
  request_type: "TS",
764
-
765
-
766
-
767
-
408
+
768
409
  account_id: "TS",
769
-
770
-
771
-
772
-
410
+
773
411
  message_id: "TS",
774
-
775
-
776
-
777
-
412
+
778
413
  call_id: "TS",
779
-
780
-
781
-
782
-
414
+
783
415
  from: "TS",
784
-
785
-
786
-
787
-
416
+
788
417
  to: "TS",
789
-
790
-
791
-
792
-
418
+
793
419
  text: "TS",
794
-
795
-
796
-
797
-
420
+
798
421
  direction: "TS",
799
-
800
-
801
-
802
-
422
+
803
423
  application_id: "TS",
804
-
805
-
806
-
807
-
424
+
808
425
  status: Freeclimb::MessageStatus::NEW,
809
-
810
-
811
-
812
-
813
- phone_number_id: "TS",
814
-
815
-
816
-
426
+
427
+ phone_number_id: "TS"
817
428
  )
818
429
  instance_2 = Freeclimb::MessageStatusWebhook.new(
819
-
820
430
  request_type: "TS",
821
-
822
-
823
-
824
-
431
+
825
432
  account_id: "TS",
826
-
827
-
828
-
829
-
433
+
830
434
  message_id: "TS",
831
-
832
-
833
-
834
-
435
+
835
436
  call_id: "TS",
836
-
837
-
838
-
839
-
437
+
840
438
  from: "TS",
841
-
842
-
843
-
844
-
439
+
845
440
  to: "TS",
846
-
847
-
848
-
849
-
441
+
850
442
  text: "TS",
851
-
852
-
853
-
854
-
443
+
855
444
  direction: "TS",
856
-
857
-
858
-
859
-
445
+
860
446
  application_id: "TS",
861
-
862
-
863
-
864
-
447
+
865
448
  status: Freeclimb::MessageStatus::NEW,
866
-
867
-
868
-
869
-
870
- phone_number_id: "TS",
871
-
872
-
873
-
449
+
450
+ phone_number_id: "TS"
874
451
  )
875
452
 
876
453
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
@@ -879,365 +456,171 @@ describe Freeclimb::MessageStatusWebhook do
879
456
 
880
457
  describe 'test method "_deserialize"' do
881
458
  instance = Freeclimb::MessageStatusWebhook.new(
882
-
883
- request_type: "TS",
884
-
885
-
886
-
887
-
888
- account_id: "TS",
889
-
890
-
891
-
892
-
893
- message_id: "TS",
894
-
895
-
896
-
897
-
898
- call_id: "TS",
899
-
900
-
901
-
902
-
903
- from: "TS",
904
-
905
-
906
-
907
-
908
- to: "TS",
909
-
910
-
911
-
912
-
913
- text: "TS",
914
-
915
-
916
-
917
-
918
- direction: "TS",
919
-
920
-
921
-
922
-
923
- application_id: "TS",
924
-
925
-
926
-
927
-
928
- status: Freeclimb::MessageStatus::NEW,
929
-
930
-
931
-
932
-
933
- phone_number_id: "TS",
934
-
935
-
936
-
459
+ request_type: "TS",
460
+
461
+ account_id: "TS",
462
+
463
+ message_id: "TS",
464
+
465
+ call_id: "TS",
466
+
467
+ from: "TS",
468
+
469
+ to: "TS",
470
+
471
+ text: "TS",
472
+
473
+ direction: "TS",
474
+
475
+ application_id: "TS",
476
+
477
+ status: Freeclimb::MessageStatus::NEW,
478
+
479
+ phone_number_id: "TS"
937
480
  )
938
- it 'deserializes the data of request_type' do
481
+ it "deserializes the data of request_type" do
939
482
  expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String)
940
483
  end
941
-
942
-
943
- it 'deserializes the data of account_id' do
484
+
485
+ it "deserializes the data of account_id" do
944
486
  expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
945
487
  end
946
-
947
-
948
- it 'deserializes the data of message_id' do
488
+
489
+ it "deserializes the data of message_id" do
949
490
  expect(instance._deserialize("String", instance.message_id)).to be_a_kind_of(String)
950
491
  end
951
-
952
-
953
- it 'deserializes the data of call_id' do
492
+
493
+ it "deserializes the data of call_id" do
954
494
  expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String)
955
495
  end
956
-
957
-
958
- it 'deserializes the data of from' do
496
+
497
+ it "deserializes the data of from" do
959
498
  expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String)
960
499
  end
961
-
962
-
963
- it 'deserializes the data of to' do
500
+
501
+ it "deserializes the data of to" do
964
502
  expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String)
965
503
  end
966
-
967
-
968
- it 'deserializes the data of text' do
504
+
505
+ it "deserializes the data of text" do
969
506
  expect(instance._deserialize("String", instance.text)).to be_a_kind_of(String)
970
507
  end
971
-
972
-
973
- it 'deserializes the data of direction' do
508
+
509
+ it "deserializes the data of direction" do
974
510
  expect(instance._deserialize("String", instance.direction)).to be_a_kind_of(String)
975
511
  end
976
-
977
-
978
- it 'deserializes the data of application_id' do
512
+
513
+ it "deserializes the data of application_id" do
979
514
  expect(instance._deserialize("String", instance.application_id)).to be_a_kind_of(String)
980
515
  end
981
-
982
-
983
-
984
-
985
- it 'deserializes the data of phone_number_id' do
516
+
517
+ it "deserializes the data of phone_number_id" do
986
518
  expect(instance._deserialize("String", instance.phone_number_id)).to be_a_kind_of(String)
987
519
  end
988
-
989
-
990
520
  end
991
521
 
992
522
  describe 'test method "to_s"' do
993
- it 'returns the string representation of the object' do
523
+ it "returns the string representation of the object" do
994
524
  instance = Freeclimb::MessageStatusWebhook.new(
995
-
996
525
  request_type: "TS",
997
-
998
-
999
-
1000
-
526
+
1001
527
  account_id: "TS",
1002
-
1003
-
1004
-
1005
-
528
+
1006
529
  message_id: "TS",
1007
-
1008
-
1009
-
1010
-
530
+
1011
531
  call_id: "TS",
1012
-
1013
-
1014
-
1015
-
532
+
1016
533
  from: "TS",
1017
-
1018
-
1019
-
1020
-
534
+
1021
535
  to: "TS",
1022
-
1023
-
1024
-
1025
-
536
+
1026
537
  text: "TS",
1027
-
1028
-
1029
-
1030
-
538
+
1031
539
  direction: "TS",
1032
-
1033
-
1034
-
1035
-
540
+
1036
541
  application_id: "TS",
1037
-
1038
-
1039
-
1040
-
542
+
1041
543
  status: Freeclimb::MessageStatus::NEW,
1042
-
1043
-
1044
-
1045
-
1046
- phone_number_id: "TS",
1047
-
1048
-
1049
-
544
+
545
+ phone_number_id: "TS"
1050
546
  )
1051
547
  expect(instance.to_s).to eq(instance.to_hash.to_s)
1052
548
  end
1053
549
  end
1054
550
 
1055
551
  describe 'test method "to_hash"' do
1056
- it 'returns the object in the form of hash' do
552
+ it "returns the object in the form of hash" do
1057
553
  instance = Freeclimb::MessageStatusWebhook.new(
1058
-
1059
554
  request_type: "TS",
1060
-
1061
-
1062
-
1063
-
555
+
1064
556
  account_id: "TS",
1065
-
1066
-
1067
-
1068
-
557
+
1069
558
  message_id: "TS",
1070
-
1071
-
1072
-
1073
-
559
+
1074
560
  call_id: "TS",
1075
-
1076
-
1077
-
1078
-
561
+
1079
562
  from: "TS",
1080
-
1081
-
1082
-
1083
-
563
+
1084
564
  to: "TS",
1085
-
1086
-
1087
-
1088
-
565
+
1089
566
  text: "TS",
1090
-
1091
-
1092
-
1093
-
567
+
1094
568
  direction: "TS",
1095
-
1096
-
1097
-
1098
-
569
+
1099
570
  application_id: "TS",
1100
-
1101
-
1102
-
1103
-
571
+
1104
572
  status: Freeclimb::MessageStatus::NEW,
1105
-
1106
-
1107
-
1108
-
1109
- phone_number_id: "TS",
1110
-
1111
-
1112
-
573
+
574
+ phone_number_id: "TS"
1113
575
  )
1114
576
  expect(instance.to_hash).to be_a_kind_of(Hash)
1115
577
  end
1116
- it 'creates equal hash for two equal objects' do
1117
-
1118
-
1119
-
1120
-
1121
-
1122
-
1123
-
1124
-
1125
-
1126
-
1127
-
578
+ it "creates equal hash for two equal objects" do
1128
579
  instance_1 = Freeclimb::MessageStatusWebhook.new(
1129
-
1130
580
  request_type: "TS",
1131
-
1132
-
1133
-
1134
-
581
+
1135
582
  account_id: "TS",
1136
-
1137
-
1138
-
1139
-
583
+
1140
584
  message_id: "TS",
1141
-
1142
-
1143
-
1144
-
585
+
1145
586
  call_id: "TS",
1146
-
1147
-
1148
-
1149
-
587
+
1150
588
  from: "TS",
1151
-
1152
-
1153
-
1154
-
589
+
1155
590
  to: "TS",
1156
-
1157
-
1158
-
1159
-
591
+
1160
592
  text: "TS",
1161
-
1162
-
1163
-
1164
-
593
+
1165
594
  direction: "TS",
1166
-
1167
-
1168
-
1169
-
595
+
1170
596
  application_id: "TS",
1171
-
1172
-
1173
-
1174
-
597
+
1175
598
  status: Freeclimb::MessageStatus::NEW,
1176
-
1177
-
1178
-
1179
-
1180
- phone_number_id: "TS",
1181
-
1182
-
1183
-
599
+
600
+ phone_number_id: "TS"
1184
601
  )
1185
602
  instance_2 = Freeclimb::MessageStatusWebhook.new(
1186
-
1187
603
  request_type: "TS",
1188
-
1189
-
1190
-
1191
-
604
+
1192
605
  account_id: "TS",
1193
-
1194
-
1195
-
1196
-
606
+
1197
607
  message_id: "TS",
1198
-
1199
-
1200
-
1201
-
608
+
1202
609
  call_id: "TS",
1203
-
1204
-
1205
-
1206
-
610
+
1207
611
  from: "TS",
1208
-
1209
-
1210
-
1211
-
612
+
1212
613
  to: "TS",
1213
-
1214
-
1215
-
1216
-
614
+
1217
615
  text: "TS",
1218
-
1219
-
1220
-
1221
-
616
+
1222
617
  direction: "TS",
1223
-
1224
-
1225
-
1226
-
618
+
1227
619
  application_id: "TS",
1228
-
1229
-
1230
-
1231
-
620
+
1232
621
  status: Freeclimb::MessageStatus::NEW,
1233
-
1234
-
1235
-
1236
-
1237
- phone_number_id: "TS",
1238
-
1239
-
1240
-
622
+
623
+ phone_number_id: "TS"
1241
624
  )
1242
625
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
1243
626
  end
@@ -1245,83 +628,60 @@ describe Freeclimb::MessageStatusWebhook do
1245
628
 
1246
629
  describe 'test method "_to_hash"' do
1247
630
  instance = Freeclimb::MessageStatusWebhook.new(
1248
-
1249
- request_type: "TS",
1250
-
1251
-
1252
-
1253
- account_id: "TS",
1254
-
1255
-
1256
-
1257
- message_id: "TS",
1258
-
1259
-
1260
-
1261
- call_id: "TS",
1262
-
1263
-
1264
-
1265
- from: "TS",
1266
-
1267
-
1268
-
1269
- to: "TS",
1270
-
1271
-
1272
-
1273
- text: "TS",
1274
-
1275
-
1276
-
1277
- direction: "TS",
1278
-
1279
-
1280
-
1281
- application_id: "TS",
1282
-
1283
-
1284
-
1285
- status: Freeclimb::MessageStatus::NEW,
1286
-
1287
-
1288
-
1289
- phone_number_id: "TS",
1290
-
1291
- )
1292
- it 'returns request_type in the form of hash' do
631
+ request_type: "TS",
632
+
633
+ account_id: "TS",
634
+
635
+ message_id: "TS",
636
+
637
+ call_id: "TS",
638
+
639
+ from: "TS",
640
+
641
+ to: "TS",
642
+
643
+ text: "TS",
644
+
645
+ direction: "TS",
646
+
647
+ application_id: "TS",
648
+
649
+ status: Freeclimb::MessageStatus::NEW,
650
+
651
+ phone_number_id: "TS"
652
+ )
653
+ it "returns request_type in the form of hash" do
1293
654
  expect(instance._to_hash(instance.request_type)).to eq(instance.request_type)
1294
655
  end
1295
- it 'returns account_id in the form of hash' do
656
+ it "returns account_id in the form of hash" do
1296
657
  expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)
1297
658
  end
1298
- it 'returns message_id in the form of hash' do
659
+ it "returns message_id in the form of hash" do
1299
660
  expect(instance._to_hash(instance.message_id)).to eq(instance.message_id)
1300
661
  end
1301
- it 'returns call_id in the form of hash' do
662
+ it "returns call_id in the form of hash" do
1302
663
  expect(instance._to_hash(instance.call_id)).to eq(instance.call_id)
1303
664
  end
1304
- it 'returns from in the form of hash' do
665
+ it "returns from in the form of hash" do
1305
666
  expect(instance._to_hash(instance.from)).to eq(instance.from)
1306
667
  end
1307
- it 'returns to in the form of hash' do
668
+ it "returns to in the form of hash" do
1308
669
  expect(instance._to_hash(instance.to)).to eq(instance.to)
1309
670
  end
1310
- it 'returns text in the form of hash' do
671
+ it "returns text in the form of hash" do
1311
672
  expect(instance._to_hash(instance.text)).to eq(instance.text)
1312
673
  end
1313
- it 'returns direction in the form of hash' do
674
+ it "returns direction in the form of hash" do
1314
675
  expect(instance._to_hash(instance.direction)).to eq(instance.direction)
1315
676
  end
1316
- it 'returns application_id in the form of hash' do
677
+ it "returns application_id in the form of hash" do
1317
678
  expect(instance._to_hash(instance.application_id)).to eq(instance.application_id)
1318
679
  end
1319
- it 'returns status in the form of hash' do
680
+ it "returns status in the form of hash" do
1320
681
  expect(instance._to_hash(instance.status)).to eq(instance.status)
1321
682
  end
1322
- it 'returns phone_number_id in the form of hash' do
683
+ it "returns phone_number_id in the form of hash" do
1323
684
  expect(instance._to_hash(instance.phone_number_id)).to eq(instance.phone_number_id)
1324
685
  end
1325
686
  end
1326
-
1327
687
  end