freeclimb 5.0.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 (310) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -1
  3. data/Gemfile +4 -4
  4. data/Gemfile.lock +34 -15
  5. data/README.md +5 -4
  6. data/Rakefile +1 -1
  7. data/docs/CreateConferenceRequest.md +1 -1
  8. data/docs/DefaultApi.md +1 -1
  9. data/docs/MessageResult.md +7 -1
  10. data/docs/TFNCampaign.md +34 -0
  11. data/freeclimb.gemspec +21 -26
  12. data/lib/freeclimb/api/default_api.rb +878 -878
  13. data/lib/freeclimb/api_client.rb +78 -83
  14. data/lib/freeclimb/api_error.rb +17 -19
  15. data/lib/freeclimb/configuration.rb +28 -31
  16. data/lib/freeclimb/models/account_request.rb +36 -41
  17. data/lib/freeclimb/models/account_result.rb +88 -92
  18. data/lib/freeclimb/models/account_status.rb +12 -14
  19. data/lib/freeclimb/models/account_type.rb +12 -14
  20. data/lib/freeclimb/models/add_to_conference.rb +81 -85
  21. data/lib/freeclimb/models/add_to_conference_notification_webhook.rb +99 -103
  22. data/lib/freeclimb/models/add_to_queue_notification_webhook.rb +78 -82
  23. data/lib/freeclimb/models/answered_by.rb +12 -14
  24. data/lib/freeclimb/models/application_list.rb +74 -78
  25. data/lib/freeclimb/models/application_request.rb +66 -70
  26. data/lib/freeclimb/models/application_result.rb +100 -104
  27. data/lib/freeclimb/models/available_number.rb +66 -70
  28. data/lib/freeclimb/models/available_number_list.rb +74 -78
  29. data/lib/freeclimb/models/barge_in_reason.rb +12 -14
  30. data/lib/freeclimb/models/buy_incoming_number_request.rb +41 -45
  31. data/lib/freeclimb/models/call_control_webhook.rb +56 -61
  32. data/lib/freeclimb/models/call_direction.rb +12 -14
  33. data/lib/freeclimb/models/call_ended_reason.rb +12 -14
  34. data/lib/freeclimb/models/call_list.rb +74 -78
  35. data/lib/freeclimb/models/call_result.rb +142 -146
  36. data/lib/freeclimb/models/call_status.rb +12 -14
  37. data/lib/freeclimb/models/call_status_webhook.rb +84 -88
  38. data/lib/freeclimb/models/capabilities.rb +55 -59
  39. data/lib/freeclimb/models/completion_request.rb +32 -36
  40. data/lib/freeclimb/models/completion_result.rb +36 -40
  41. data/lib/freeclimb/models/completion_result_status.rb +12 -14
  42. data/lib/freeclimb/models/conference_list.rb +74 -78
  43. data/lib/freeclimb/models/conference_participant_list.rb +74 -78
  44. data/lib/freeclimb/models/conference_participant_result.rb +88 -92
  45. data/lib/freeclimb/models/conference_recording_status_webhook.rb +99 -103
  46. data/lib/freeclimb/models/conference_result.rb +106 -110
  47. data/lib/freeclimb/models/conference_status.rb +12 -14
  48. data/lib/freeclimb/models/conference_status_webhook.rb +102 -106
  49. data/lib/freeclimb/models/create_conference.rb +60 -63
  50. data/lib/freeclimb/models/create_conference_request.rb +55 -54
  51. data/lib/freeclimb/models/create_conference_webhook.rb +102 -106
  52. data/lib/freeclimb/models/create_web_rtc_token.rb +42 -46
  53. data/lib/freeclimb/models/dequeue.rb +30 -37
  54. data/lib/freeclimb/models/dequeue_webhook.rb +89 -93
  55. data/lib/freeclimb/models/enqueue.rb +48 -52
  56. data/lib/freeclimb/models/filter_logs_request.rb +31 -35
  57. data/lib/freeclimb/models/get_digits.rb +73 -77
  58. data/lib/freeclimb/models/get_digits_reason.rb +12 -14
  59. data/lib/freeclimb/models/get_digits_webhook.rb +93 -97
  60. data/lib/freeclimb/models/get_speech.rb +94 -97
  61. data/lib/freeclimb/models/get_speech_reason.rb +12 -14
  62. data/lib/freeclimb/models/get_speech_webhook.rb +118 -122
  63. data/lib/freeclimb/models/grammar_file_built_in.rb +12 -14
  64. data/lib/freeclimb/models/grammar_type.rb +12 -14
  65. data/lib/freeclimb/models/hangup.rb +34 -39
  66. data/lib/freeclimb/models/if_machine.rb +12 -14
  67. data/lib/freeclimb/models/inbound_call_webhook.rb +85 -89
  68. data/lib/freeclimb/models/incoming_number_list.rb +74 -78
  69. data/lib/freeclimb/models/incoming_number_request.rb +41 -45
  70. data/lib/freeclimb/models/incoming_number_result.rb +122 -126
  71. data/lib/freeclimb/models/language.rb +12 -14
  72. data/lib/freeclimb/models/leave_conference_webhook.rb +79 -83
  73. data/lib/freeclimb/models/log_level.rb +12 -14
  74. data/lib/freeclimb/models/log_list.rb +74 -78
  75. data/lib/freeclimb/models/log_result.rb +67 -71
  76. data/lib/freeclimb/models/machine_detected_webhook.rb +89 -93
  77. data/lib/freeclimb/models/machine_type.rb +12 -14
  78. data/lib/freeclimb/models/make_call_request.rb +77 -81
  79. data/lib/freeclimb/models/message_delivery_webhook.rb +81 -86
  80. data/lib/freeclimb/models/message_direction.rb +12 -14
  81. data/lib/freeclimb/models/message_request.rb +72 -75
  82. data/lib/freeclimb/models/message_result.rb +150 -123
  83. data/lib/freeclimb/models/message_status.rb +12 -14
  84. data/lib/freeclimb/models/message_status_webhook.rb +86 -90
  85. data/lib/freeclimb/models/messages_list.rb +74 -78
  86. data/lib/freeclimb/models/mutable_resource_model.rb +46 -51
  87. data/lib/freeclimb/models/out_dial.rb +80 -84
  88. data/lib/freeclimb/models/out_dial_api_connect_webhook.rb +84 -88
  89. data/lib/freeclimb/models/out_dial_connect_webhook.rb +84 -88
  90. data/lib/freeclimb/models/out_dial_start_webhook.rb +90 -94
  91. data/lib/freeclimb/models/pagination_model.rb +67 -71
  92. data/lib/freeclimb/models/park.rb +44 -48
  93. data/lib/freeclimb/models/pause.rb +33 -37
  94. data/lib/freeclimb/models/percl_command.rb +36 -40
  95. data/lib/freeclimb/models/percl_script.rb +32 -36
  96. data/lib/freeclimb/models/play.rb +44 -48
  97. data/lib/freeclimb/models/play_beep.rb +12 -14
  98. data/lib/freeclimb/models/play_early_media.rb +33 -37
  99. data/lib/freeclimb/models/queue_list.rb +74 -78
  100. data/lib/freeclimb/models/queue_member.rb +55 -59
  101. data/lib/freeclimb/models/queue_member_list.rb +74 -78
  102. data/lib/freeclimb/models/queue_request.rb +37 -42
  103. data/lib/freeclimb/models/queue_result.rb +88 -92
  104. data/lib/freeclimb/models/queue_result_status.rb +12 -14
  105. data/lib/freeclimb/models/queue_wait_webhook.rb +94 -98
  106. data/lib/freeclimb/models/record_utterance.rb +63 -67
  107. data/lib/freeclimb/models/record_utterance_term_reason.rb +12 -14
  108. data/lib/freeclimb/models/record_webhook.rb +119 -123
  109. data/lib/freeclimb/models/recording_list.rb +74 -78
  110. data/lib/freeclimb/models/recording_result.rb +76 -80
  111. data/lib/freeclimb/models/redirect.rb +33 -37
  112. data/lib/freeclimb/models/redirect_webhook.rb +84 -88
  113. data/lib/freeclimb/models/reject.rb +34 -39
  114. data/lib/freeclimb/models/remove_from_conference.rb +30 -37
  115. data/lib/freeclimb/models/remove_from_queue_notification_webhook.rb +89 -93
  116. data/lib/freeclimb/models/request_type.rb +12 -14
  117. data/lib/freeclimb/models/say.rb +49 -53
  118. data/lib/freeclimb/models/send_digits.rb +43 -47
  119. data/lib/freeclimb/models/set_dtmf_pass_through.rb +34 -39
  120. data/lib/freeclimb/models/set_listen.rb +34 -39
  121. data/lib/freeclimb/models/set_talk.rb +34 -39
  122. data/lib/freeclimb/models/sms.rb +48 -52
  123. data/lib/freeclimb/models/sms_ten_dlc_brand.rb +187 -190
  124. data/lib/freeclimb/models/sms_ten_dlc_brand_alt_business_id_type.rb +12 -14
  125. data/lib/freeclimb/models/sms_ten_dlc_brand_entity_type.rb +12 -14
  126. data/lib/freeclimb/models/sms_ten_dlc_brand_identity_status.rb +12 -14
  127. data/lib/freeclimb/models/sms_ten_dlc_brand_relationship.rb +12 -14
  128. data/lib/freeclimb/models/sms_ten_dlc_brand_stock_exchange.rb +12 -14
  129. data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +74 -78
  130. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +226 -229
  131. data/lib/freeclimb/models/sms_ten_dlc_campaign_status.rb +12 -14
  132. data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +74 -78
  133. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +186 -189
  134. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +84 -87
  135. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_status.rb +12 -14
  136. data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +74 -78
  137. data/lib/freeclimb/models/sms_toll_free_campaign.rb +61 -64
  138. data/lib/freeclimb/models/sms_toll_free_campaign_registration_status.rb +12 -14
  139. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +74 -78
  140. data/lib/freeclimb/models/start_record_call.rb +30 -37
  141. data/lib/freeclimb/models/terminate_conference.rb +30 -37
  142. data/lib/freeclimb/models/tfn.rb +31 -35
  143. data/lib/freeclimb/models/tfn_campaign.rb +367 -0
  144. data/lib/freeclimb/models/transcribe_reason.rb +12 -14
  145. data/lib/freeclimb/models/transcribe_term_reason.rb +12 -14
  146. data/lib/freeclimb/models/transcribe_utterance.rb +61 -65
  147. data/lib/freeclimb/models/transcribe_utterance_record.rb +43 -47
  148. data/lib/freeclimb/models/transcribe_webhook.rb +150 -154
  149. data/lib/freeclimb/models/unpark.rb +30 -37
  150. data/lib/freeclimb/models/update_call_request.rb +31 -35
  151. data/lib/freeclimb/models/update_call_request_status.rb +12 -14
  152. data/lib/freeclimb/models/update_conference_participant_request.rb +41 -46
  153. data/lib/freeclimb/models/update_conference_request.rb +41 -45
  154. data/lib/freeclimb/models/update_conference_request_status.rb +12 -14
  155. data/lib/freeclimb/models/webhook.rb +32 -37
  156. data/lib/freeclimb/utils/request_verifier.rb +14 -14
  157. data/lib/freeclimb/utils/signature_information.rb +8 -8
  158. data/lib/freeclimb/version.rb +10 -12
  159. data/lib/freeclimb.rb +156 -157
  160. data/openapi.json +96 -38
  161. data/package.json +1 -1
  162. data/spec/api/default_api_spec.rb +531 -793
  163. data/spec/api_client_spec.rb +100 -102
  164. data/spec/configuration_spec.rb +16 -18
  165. data/spec/models/account_request_spec.rb +106 -124
  166. data/spec/models/account_result_spec.rb +396 -453
  167. data/spec/models/account_status_spec.rb +28 -30
  168. data/spec/models/account_type_spec.rb +25 -27
  169. data/spec/models/add_to_conference_notification_webhook_spec.rb +465 -549
  170. data/spec/models/add_to_conference_spec.rb +355 -382
  171. data/spec/models/add_to_queue_notification_webhook_spec.rb +342 -402
  172. data/spec/models/answered_by_spec.rb +25 -27
  173. data/spec/models/application_list_spec.rb +290 -326
  174. data/spec/models/application_request_spec.rb +266 -289
  175. data/spec/models/application_result_spec.rb +445 -476
  176. data/spec/models/available_number_list_spec.rb +290 -326
  177. data/spec/models/available_number_spec.rb +279 -299
  178. data/spec/models/barge_in_reason_spec.rb +28 -30
  179. data/spec/models/buy_incoming_number_request_spec.rb +137 -156
  180. data/spec/models/call_control_webhook_spec.rb +204 -225
  181. data/spec/models/call_direction_spec.rb +28 -30
  182. data/spec/models/call_ended_reason_spec.rb +108 -110
  183. data/spec/models/call_list_spec.rb +290 -326
  184. data/spec/models/call_result_spec.rb +684 -772
  185. data/spec/models/call_status_spec.rb +48 -50
  186. data/spec/models/call_status_webhook_spec.rb +414 -492
  187. data/spec/models/capabilities_spec.rb +203 -223
  188. data/spec/models/completion_request_spec.rb +76 -92
  189. data/spec/models/completion_result_spec.rb +107 -143
  190. data/spec/models/completion_result_status_spec.rb +25 -27
  191. data/spec/models/conference_list_spec.rb +290 -326
  192. data/spec/models/conference_participant_list_spec.rb +290 -326
  193. data/spec/models/conference_participant_result_spec.rb +385 -414
  194. data/spec/models/conference_recording_status_webhook_spec.rb +465 -549
  195. data/spec/models/conference_result_spec.rb +492 -553
  196. data/spec/models/conference_status_spec.rb +32 -34
  197. data/spec/models/conference_status_webhook_spec.rb +465 -549
  198. data/spec/models/create_conference_request_spec.rb +205 -245
  199. data/spec/models/create_conference_spec.rb +237 -278
  200. data/spec/models/create_conference_webhook_spec.rb +465 -549
  201. data/spec/models/create_web_rtc_token_spec.rb +137 -159
  202. data/spec/models/dequeue_spec.rb +15 -17
  203. data/spec/models/dequeue_webhook_spec.rb +401 -465
  204. data/spec/models/enqueue_spec.rb +170 -190
  205. data/spec/models/filter_logs_request_spec.rb +74 -91
  206. data/spec/models/get_digits_reason_spec.rb +32 -34
  207. data/spec/models/get_digits_spec.rb +327 -361
  208. data/spec/models/get_digits_webhook_spec.rb +436 -517
  209. data/spec/models/get_speech_reason_spec.rb +40 -42
  210. data/spec/models/get_speech_spec.rb +400 -492
  211. data/spec/models/get_speech_webhook_spec.rb +608 -698
  212. data/spec/models/grammar_file_built_in_spec.rb +76 -78
  213. data/spec/models/grammar_type_spec.rb +25 -27
  214. data/spec/models/hangup_spec.rb +74 -91
  215. data/spec/models/if_machine_spec.rb +25 -27
  216. data/spec/models/inbound_call_webhook_spec.rb +372 -433
  217. data/spec/models/incoming_number_list_spec.rb +290 -326
  218. data/spec/models/incoming_number_request_spec.rb +137 -156
  219. data/spec/models/incoming_number_result_spec.rb +584 -613
  220. data/spec/models/language_spec.rb +121 -123
  221. data/spec/models/leave_conference_webhook_spec.rb +342 -402
  222. data/spec/models/log_level_spec.rb +28 -30
  223. data/spec/models/log_list_spec.rb +290 -326
  224. data/spec/models/log_result_spec.rb +275 -311
  225. data/spec/models/machine_detected_webhook_spec.rb +402 -482
  226. data/spec/models/machine_type_spec.rb +25 -27
  227. data/spec/models/make_call_request_spec.rb +354 -383
  228. data/spec/models/message_delivery_webhook_spec.rb +358 -384
  229. data/spec/models/message_direction_spec.rb +25 -27
  230. data/spec/models/message_request_spec.rb +325 -352
  231. data/spec/models/message_result_spec.rb +674 -598
  232. data/spec/models/message_status_spec.rb +61 -63
  233. data/spec/models/message_status_webhook_spec.rb +406 -451
  234. data/spec/models/messages_list_spec.rb +290 -326
  235. data/spec/models/mutable_resource_model_spec.rb +169 -191
  236. data/spec/models/out_dial_api_connect_webhook_spec.rb +372 -433
  237. data/spec/models/out_dial_connect_webhook_spec.rb +372 -433
  238. data/spec/models/out_dial_spec.rb +355 -401
  239. data/spec/models/out_dial_start_webhook_spec.rb +402 -464
  240. data/spec/models/pagination_model_spec.rb +260 -295
  241. data/spec/models/park_spec.rb +137 -156
  242. data/spec/models/pause_spec.rb +73 -92
  243. data/spec/models/percl_command_spec.rb +77 -94
  244. data/spec/models/percl_script_spec.rb +74 -91
  245. data/spec/models/play_beep_spec.rb +32 -34
  246. data/spec/models/play_early_media_spec.rb +74 -91
  247. data/spec/models/play_spec.rb +136 -157
  248. data/spec/models/queue_list_spec.rb +290 -326
  249. data/spec/models/queue_member_list_spec.rb +290 -326
  250. data/spec/models/queue_member_spec.rb +200 -225
  251. data/spec/models/queue_request_spec.rb +105 -125
  252. data/spec/models/queue_result_spec.rb +391 -419
  253. data/spec/models/queue_result_status_spec.rb +32 -34
  254. data/spec/models/queue_wait_webhook_spec.rb +430 -497
  255. data/spec/models/record_utterance_spec.rb +264 -291
  256. data/spec/models/record_utterance_term_reason_spec.rb +32 -34
  257. data/spec/models/record_webhook_spec.rb +605 -693
  258. data/spec/models/recording_list_spec.rb +290 -326
  259. data/spec/models/recording_result_spec.rb +324 -353
  260. data/spec/models/redirect_spec.rb +74 -91
  261. data/spec/models/redirect_webhook_spec.rb +372 -433
  262. data/spec/models/reject_spec.rb +74 -91
  263. data/spec/models/remove_from_conference_spec.rb +15 -17
  264. data/spec/models/remove_from_queue_notification_webhook_spec.rb +405 -487
  265. data/spec/models/request_type_spec.rb +108 -110
  266. data/spec/models/say_spec.rb +169 -191
  267. data/spec/models/send_digits_spec.rb +136 -157
  268. data/spec/models/set_dtmf_pass_through_spec.rb +75 -91
  269. data/spec/models/set_listen_spec.rb +75 -91
  270. data/spec/models/set_talk_spec.rb +75 -91
  271. data/spec/models/sms_spec.rb +170 -190
  272. data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +32 -34
  273. data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +36 -38
  274. data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +32 -34
  275. data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +36 -38
  276. data/spec/models/sms_ten_dlc_brand_spec.rb +1083 -1201
  277. data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +125 -127
  278. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +290 -326
  279. data/spec/models/sms_ten_dlc_campaign_spec.rb +1140 -1208
  280. data/spec/models/sms_ten_dlc_campaign_status_spec.rb +25 -27
  281. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +290 -326
  282. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +407 -425
  283. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +965 -1015
  284. data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +25 -27
  285. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +290 -326
  286. data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +36 -38
  287. data/spec/models/sms_toll_free_campaign_spec.rb +271 -314
  288. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +290 -326
  289. data/spec/models/start_record_call_spec.rb +15 -17
  290. data/spec/models/terminate_conference_spec.rb +15 -17
  291. data/spec/models/tfn_campaign_spec.rb +561 -0
  292. data/spec/models/tfn_spec.rb +74 -91
  293. data/spec/models/transcribe_reason_spec.rb +36 -38
  294. data/spec/models/transcribe_term_reason_spec.rb +25 -27
  295. data/spec/models/transcribe_utterance_record_spec.rb +135 -158
  296. data/spec/models/transcribe_utterance_spec.rb +245 -265
  297. data/spec/models/transcribe_webhook_spec.rb +750 -874
  298. data/spec/models/unpark_spec.rb +15 -17
  299. data/spec/models/update_call_request_spec.rb +75 -109
  300. data/spec/models/update_call_request_status_spec.rb +25 -27
  301. data/spec/models/update_conference_participant_request_spec.rb +138 -156
  302. data/spec/models/update_conference_request_spec.rb +141 -195
  303. data/spec/models/update_conference_request_status_spec.rb +25 -27
  304. data/spec/models/webhook_spec.rb +69 -86
  305. data/spec/quickstart_spec.rb +5 -5
  306. data/spec/spec_helper.rb +92 -100
  307. data/spec/utils/request_verifier_spec.rb +70 -71
  308. data/spec/utils/signature_information_spec.rb +23 -23
  309. data/yarn.lock +9 -0
  310. metadata +9 -153
@@ -1,18 +1,17 @@
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"
14
+ include Freeclimb
16
15
 
17
16
  # Unit tests for Freeclimb::MessageResult
18
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -20,837 +19,920 @@ require 'date'
20
19
  describe Freeclimb::MessageResult do
21
20
  let(:instance) { Freeclimb::MessageResult.new }
22
21
 
23
- describe 'test an instance of MessageResult' do
24
- 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
25
24
  expect(instance).to be_instance_of(Freeclimb::MessageResult)
26
25
  end
27
26
  end
28
-
27
+
29
28
  describe 'test attribute "uri"' do
30
- it 'should work' do
29
+ it "should work" do
31
30
  instance.uri = "TEST_STRING"
32
- expect(instance.uri).to eq("TEST_STRING")
33
-
31
+ expect(instance.uri).to eq("TEST_STRING")
34
32
  end
35
33
  end
36
34
 
37
35
  describe 'test attribute "date_created"' do
38
- it 'should work' do
36
+ it "should work" do
39
37
  instance.date_created = "TEST_STRING"
40
- expect(instance.date_created).to eq("TEST_STRING")
41
-
38
+ expect(instance.date_created).to eq("TEST_STRING")
42
39
  end
43
40
  end
44
41
 
45
42
  describe 'test attribute "date_updated"' do
46
- it 'should work' do
43
+ it "should work" do
47
44
  instance.date_updated = "TEST_STRING"
48
- expect(instance.date_updated).to eq("TEST_STRING")
49
-
45
+ expect(instance.date_updated).to eq("TEST_STRING")
50
46
  end
51
47
  end
52
48
 
53
49
  describe 'test attribute "revision"' do
54
- it 'should work' do
55
-
56
-
50
+ it "should work" do
57
51
  instance.revision = 1
58
52
  expect(instance.revision).to eq(1)
59
-
60
53
  end
61
54
  end
62
55
 
63
56
  describe 'test attribute "account_id"' do
64
- it 'should work' do
57
+ it "should work" do
65
58
  instance.account_id = "TEST_STRING"
66
- expect(instance.account_id).to eq("TEST_STRING")
67
-
59
+ expect(instance.account_id).to eq("TEST_STRING")
68
60
  end
69
61
  end
70
62
 
71
63
  describe 'test attribute "message_id"' do
72
- it 'should work' do
64
+ it "should work" do
73
65
  instance.message_id = "TEST_STRING"
74
- expect(instance.message_id).to eq("TEST_STRING")
75
-
66
+ expect(instance.message_id).to eq("TEST_STRING")
76
67
  end
77
68
  end
78
69
 
79
-
80
70
  describe 'test attribute "status"' do
81
- it 'assigns value NEW' do
71
+ it "assigns value NEW" do
82
72
  instance.status = Freeclimb::MessageStatus::NEW
83
- expect(instance.status).to eq(Freeclimb::MessageStatus::NEW)
73
+ expect(instance.status).to eq(Freeclimb::MessageStatus::NEW)
84
74
  end
85
- it 'assigns value QUEUED' do
75
+ it "assigns value QUEUED" do
86
76
  instance.status = Freeclimb::MessageStatus::QUEUED
87
- expect(instance.status).to eq(Freeclimb::MessageStatus::QUEUED)
77
+ expect(instance.status).to eq(Freeclimb::MessageStatus::QUEUED)
88
78
  end
89
- it 'assigns value REJECTED' do
79
+ it "assigns value REJECTED" do
90
80
  instance.status = Freeclimb::MessageStatus::REJECTED
91
- expect(instance.status).to eq(Freeclimb::MessageStatus::REJECTED)
81
+ expect(instance.status).to eq(Freeclimb::MessageStatus::REJECTED)
92
82
  end
93
- it 'assigns value SENDING' do
83
+ it "assigns value SENDING" do
94
84
  instance.status = Freeclimb::MessageStatus::SENDING
95
- expect(instance.status).to eq(Freeclimb::MessageStatus::SENDING)
85
+ expect(instance.status).to eq(Freeclimb::MessageStatus::SENDING)
96
86
  end
97
- it 'assigns value SENT' do
87
+ it "assigns value SENT" do
98
88
  instance.status = Freeclimb::MessageStatus::SENT
99
- expect(instance.status).to eq(Freeclimb::MessageStatus::SENT)
89
+ expect(instance.status).to eq(Freeclimb::MessageStatus::SENT)
100
90
  end
101
- it 'assigns value FAILED' do
91
+ it "assigns value FAILED" do
102
92
  instance.status = Freeclimb::MessageStatus::FAILED
103
- expect(instance.status).to eq(Freeclimb::MessageStatus::FAILED)
93
+ expect(instance.status).to eq(Freeclimb::MessageStatus::FAILED)
104
94
  end
105
- it 'assigns value RECEIVED' do
95
+ it "assigns value RECEIVED" do
106
96
  instance.status = Freeclimb::MessageStatus::RECEIVED
107
- expect(instance.status).to eq(Freeclimb::MessageStatus::RECEIVED)
97
+ expect(instance.status).to eq(Freeclimb::MessageStatus::RECEIVED)
108
98
  end
109
- it 'assigns value UNDELIVERED' do
99
+ it "assigns value UNDELIVERED" do
110
100
  instance.status = Freeclimb::MessageStatus::UNDELIVERED
111
- expect(instance.status).to eq(Freeclimb::MessageStatus::UNDELIVERED)
101
+ expect(instance.status).to eq(Freeclimb::MessageStatus::UNDELIVERED)
112
102
  end
113
- it 'assigns value EXPIRED' do
103
+ it "assigns value EXPIRED" do
114
104
  instance.status = Freeclimb::MessageStatus::EXPIRED
115
- expect(instance.status).to eq(Freeclimb::MessageStatus::EXPIRED)
105
+ expect(instance.status).to eq(Freeclimb::MessageStatus::EXPIRED)
116
106
  end
117
- it 'assigns value DELETED' do
107
+ it "assigns value DELETED" do
118
108
  instance.status = Freeclimb::MessageStatus::DELETED
119
- expect(instance.status).to eq(Freeclimb::MessageStatus::DELETED)
109
+ expect(instance.status).to eq(Freeclimb::MessageStatus::DELETED)
120
110
  end
121
- it 'assigns value UNKNOWN' do
111
+ it "assigns value UNKNOWN" do
122
112
  instance.status = Freeclimb::MessageStatus::UNKNOWN
123
- expect(instance.status).to eq(Freeclimb::MessageStatus::UNKNOWN)
113
+ expect(instance.status).to eq(Freeclimb::MessageStatus::UNKNOWN)
124
114
  end
125
115
  end
126
116
  describe 'test attribute "from"' do
127
- it 'should work' do
117
+ it "should work" do
128
118
  instance.from = "TEST_STRING"
129
- expect(instance.from).to eq("TEST_STRING")
130
-
119
+ expect(instance.from).to eq("TEST_STRING")
131
120
  end
132
121
  end
133
122
 
134
123
  describe 'test attribute "to"' do
135
- it 'should work' do
124
+ it "should work" do
136
125
  instance.to = "TEST_STRING"
137
- expect(instance.to).to eq("TEST_STRING")
138
-
126
+ expect(instance.to).to eq("TEST_STRING")
139
127
  end
140
128
  end
141
129
 
142
130
  describe 'test attribute "text"' do
143
- it 'should work' do
131
+ it "should work" do
144
132
  instance.text = "TEST_STRING"
145
- expect(instance.text).to eq("TEST_STRING")
146
-
133
+ expect(instance.text).to eq("TEST_STRING")
147
134
  end
148
135
  end
149
136
 
150
137
  describe 'test attribute "direction"' do
151
- it 'should work' do
138
+ it "should work" do
152
139
  instance.direction = "TEST_STRING"
153
- expect(instance.direction).to eq("TEST_STRING")
154
-
140
+ expect(instance.direction).to eq("TEST_STRING")
155
141
  end
156
142
  end
157
143
 
158
144
  describe 'test attribute "notification_url"' do
159
- it 'should work' do
145
+ it "should work" do
160
146
  instance.notification_url = "TEST_STRING"
161
- expect(instance.notification_url).to eq("TEST_STRING")
162
-
147
+ expect(instance.notification_url).to eq("TEST_STRING")
163
148
  end
164
149
  end
165
150
 
166
151
  describe 'test attribute "brand_id"' do
167
- it 'should work' do
152
+ it "should work" do
168
153
  instance.brand_id = "TEST_STRING"
169
- expect(instance.brand_id).to eq("TEST_STRING")
170
-
154
+ expect(instance.brand_id).to eq("TEST_STRING")
171
155
  end
172
156
  end
173
157
 
174
158
  describe 'test attribute "campaign_id"' do
175
- it 'should work' do
159
+ it "should work" do
176
160
  instance.campaign_id = "TEST_STRING"
177
- expect(instance.campaign_id).to eq("TEST_STRING")
178
-
161
+ expect(instance.campaign_id).to eq("TEST_STRING")
179
162
  end
180
163
  end
181
164
 
182
165
  describe 'test attribute "segment_count"' do
183
- it 'should work' do
184
-
185
-
166
+ it "should work" do
186
167
  instance.segment_count = 1.0
187
168
  expect(instance.segment_count).to eq(1.0)
188
-
189
169
  end
190
170
  end
191
171
 
192
172
  describe 'test attribute "media_urls"' do
193
- it 'should work' do
194
-
173
+ it "should work" do
195
174
  instance.media_urls = ["ELEMENT_1", "ELEMENT_2"]
196
- expect(instance.media_urls).to eq(["ELEMENT_1", "ELEMENT_2"])
175
+ expect(instance.media_urls).to eq(["ELEMENT_1", "ELEMENT_2"])
197
176
  end
198
177
  end
199
178
 
200
- describe 'test method "initialize"' do
201
- it 'properly initializes with values' do
202
- expect { instance = Freeclimb::MessageResult.new(
203
- uri: "TS",
204
-
205
- date_created: "TS",
206
-
207
- date_updated: "TS",
208
-
209
- revision: 1,
210
-
211
- account_id: "TS",
212
-
213
- message_id: "TS",
214
-
215
-
216
- status: Freeclimb::MessageStatus::NEW,
217
-
218
- from: "TS",
219
-
220
- to: "TS",
221
-
222
- text: "TS",
223
-
224
- direction: "TS",
225
-
226
- notification_url: "TS",
227
-
228
- brand_id: "TS",
229
-
230
- campaign_id: "TS",
231
-
232
-
233
- media_urls: Array.new(),
234
-
235
- )}.not_to raise_error()
236
- end
237
- it 'fails to initialize with input argument that is not a hash in Freeclimb::MessageResult' do
238
- expect { instance = Freeclimb::MessageResult.new(
239
- uri: "TS",
240
-
241
- date_created: "TS",
242
-
243
- date_updated: "TS",
244
-
245
- revision: 1,
246
-
247
- account_id: "TS",
248
-
249
- message_id: "TS",
250
-
251
-
252
- status: Freeclimb::MessageStatus::NEW,
253
-
254
- from: "TS",
255
-
256
- to: "TS",
257
-
258
- text: "TS",
259
-
260
- direction: "TS",
261
-
262
- notification_url: "TS",
263
-
264
- brand_id: "TS",
265
-
266
- campaign_id: "TS",
267
-
268
-
269
- media_urls: Array.new(),
270
-
271
- invalid_attribute: true
272
- )}.to raise_error(ArgumentError)
273
- end
274
- it 'fails to initialize with invalid attribute' do
275
- expect { instance = Freeclimb::MessageResult.new(
276
- uri: "TS",
277
-
278
- date_created: "TS",
279
-
280
- date_updated: "TS",
281
-
282
- revision: 1,
283
-
284
- account_id: "TS",
285
-
286
- message_id: "TS",
287
-
288
-
289
- status: Freeclimb::MessageStatus::NEW,
290
-
291
- from: "TS",
292
-
293
- to: "TS",
294
-
295
- text: "TS",
296
-
297
- direction: "TS",
298
-
299
- notification_url: "TS",
300
-
301
- brand_id: "TS",
302
-
303
- campaign_id: "TS",
304
-
305
-
306
- media_urls: Array.new(),
307
-
308
- invalid_attribute: true
309
- )}.to raise_error(ArgumentError)
179
+ describe 'test attribute "tfn"' do
180
+ it "should work" do
181
+ instance.tfn = TFN.new
182
+ expect(instance.tfn).to be_instance_of(TFN)
310
183
  end
311
184
  end
312
-
313
- describe 'test method "valid"' do
314
- it 'checks if properties are valid' do
315
- instance = Freeclimb::MessageResult.new(
316
- uri: "TS",
317
-
318
- date_created: "TS",
319
-
320
- date_updated: "TS",
321
-
322
- revision: 1,
323
-
324
- account_id: "TS",
325
-
326
- message_id: "TS",
327
-
328
-
329
- status: Freeclimb::MessageStatus::NEW,
330
-
331
- from: "TS",
332
-
333
- to: "TS",
334
-
335
- text: "TS",
336
-
337
- direction: "TS",
338
-
339
- notification_url: "TS",
340
-
341
- brand_id: "TS",
342
-
343
- campaign_id: "TS",
344
-
345
- segment_count: 1,
346
-
347
- media_urls: Array.new(),
348
-
349
- )
350
- expect(instance.valid?).to eq(true)
351
- end
352
185
 
186
+ describe 'test attribute "phone_number_id"' do
187
+ it "should work" do
188
+ instance.phone_number_id = "TEST_STRING"
189
+ expect(instance.phone_number_id).to eq("TEST_STRING")
190
+ end
191
+ end
353
192
 
354
- skip 'checks if properties are invalid' do
355
- instance = Freeclimb::MessageResult.new(
356
-
357
- )
358
- expect(instance.valid?).to eq(false)
193
+ describe 'test attribute "application_id"' do
194
+ it "should work" do
195
+ instance.application_id = "TEST_STRING"
196
+ expect(instance.application_id).to eq("TEST_STRING")
359
197
  end
360
-
361
198
  end
362
199
 
363
- describe 'test method "eql?"' do
364
- it 'checks if objects are equal' do
365
- obj = Object.new()
366
- instance_1 = Freeclimb::MessageResult.new(
200
+ describe 'test method "initialize"' do
201
+ it "properly initializes with values" do
202
+ expect {
203
+ Freeclimb::MessageResult.new(
367
204
  uri: "TS",
368
-
205
+
369
206
  date_created: "TS",
370
-
207
+
371
208
  date_updated: "TS",
372
-
209
+
373
210
  revision: 1,
374
-
211
+
375
212
  account_id: "TS",
376
-
213
+
377
214
  message_id: "TS",
378
-
379
-
215
+
380
216
  status: Freeclimb::MessageStatus::NEW,
381
-
217
+
382
218
  from: "TS",
383
-
219
+
384
220
  to: "TS",
385
-
221
+
386
222
  text: "TS",
387
-
223
+
388
224
  direction: "TS",
389
-
225
+
390
226
  notification_url: "TS",
391
-
227
+
392
228
  brand_id: "TS",
393
-
229
+
394
230
  campaign_id: "TS",
395
-
396
-
231
+
397
232
  media_urls: [],
398
-
399
- )
400
- instance_2 = Freeclimb::MessageResult.new(
233
+
234
+ tfn: TFN.new,
235
+
236
+ phone_number_id: "TS",
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(
401
245
  uri: "TS",
402
-
246
+
403
247
  date_created: "TS",
404
-
248
+
405
249
  date_updated: "TS",
406
-
250
+
407
251
  revision: 1,
408
-
252
+
409
253
  account_id: "TS",
410
-
254
+
411
255
  message_id: "TS",
412
-
413
-
256
+
414
257
  status: Freeclimb::MessageStatus::NEW,
415
-
258
+
416
259
  from: "TS",
417
-
260
+
418
261
  to: "TS",
419
-
262
+
420
263
  text: "TS",
421
-
264
+
422
265
  direction: "TS",
423
-
266
+
424
267
  notification_url: "TS",
425
-
268
+
426
269
  brand_id: "TS",
427
-
270
+
428
271
  campaign_id: "TS",
429
-
430
-
272
+
431
273
  media_urls: [],
432
-
433
- )
434
- expect(instance_1.eql?(instance_2)).to eq(true)
274
+
275
+ tfn: TFN.new,
276
+
277
+ phone_number_id: "TS",
278
+
279
+ application_id: "TS",
280
+
281
+ invalid_attribute: true
282
+ )
283
+ }.to raise_error(ArgumentError)
435
284
  end
436
-
437
- it 'checks if objects are not equal' do
438
- instance_1 = Freeclimb::MessageResult.new(
285
+ it "fails to initialize with invalid attribute" do
286
+ expect {
287
+ Freeclimb::MessageResult.new(
439
288
  uri: "TS",
440
-
289
+
441
290
  date_created: "TS",
442
-
291
+
443
292
  date_updated: "TS",
444
-
445
- revision: 2,
446
-
293
+
294
+ revision: 1,
295
+
447
296
  account_id: "TS",
448
-
297
+
449
298
  message_id: "TS",
450
-
451
-
299
+
452
300
  status: Freeclimb::MessageStatus::NEW,
453
-
301
+
454
302
  from: "TS",
455
-
303
+
456
304
  to: "TS",
457
-
305
+
458
306
  text: "TS",
459
-
307
+
460
308
  direction: "TS",
461
-
309
+
462
310
  notification_url: "TS",
463
-
311
+
464
312
  brand_id: "TS",
465
-
313
+
466
314
  campaign_id: "TS",
467
-
468
-
315
+
469
316
  media_urls: [],
470
-
471
- )
472
- instance_2 = Freeclimb::MessageResult.new(
473
- uri: "ST",
474
-
475
- date_created: "ST",
476
-
477
- date_updated: "ST",
478
-
479
- revision: 1,
480
-
481
- account_id: "ST",
482
-
483
- message_id: "ST",
484
-
485
-
486
- status: nil,
487
-
488
- from: "ST",
489
-
490
- to: "ST",
491
-
492
- text: "ST",
493
-
494
- direction: "ST",
495
-
496
- notification_url: "ST",
497
-
498
- brand_id: "ST",
499
-
500
- campaign_id: "ST",
501
-
502
-
503
- media_urls: nil,
504
-
505
- )
506
- expect(instance_1.eql?(instance_2)).to eq(false)
317
+
318
+ tfn: TFN.new,
319
+
320
+ phone_number_id: "TS",
321
+
322
+ application_id: "TS",
323
+
324
+ invalid_attribute: true
325
+ )
326
+ }.to raise_error(ArgumentError)
507
327
  end
508
328
  end
509
-
510
- describe 'test method "hash"' do
511
- it 'calculates hash code' do
329
+
330
+ describe 'test method "valid"' do
331
+ it "checks if properties are valid" do
512
332
  instance = Freeclimb::MessageResult.new(
513
- uri: "TS",
514
-
515
- date_created: "TS",
516
-
517
- date_updated: "TS",
518
-
519
- revision: 1,
520
-
521
- account_id: "TS",
522
-
523
- message_id: "TS",
524
-
525
-
526
- status: Freeclimb::MessageStatus::NEW,
527
-
528
- from: "TS",
529
-
530
- to: "TS",
531
-
532
- text: "TS",
533
-
534
- direction: "TS",
535
-
536
- notification_url: "TS",
537
-
538
- brand_id: "TS",
539
-
540
- campaign_id: "TS",
541
-
542
-
543
- media_urls: Array.new(),
544
-
545
- )
546
- expect(instance.hash).to be_a_kind_of(Integer)
333
+ uri: "TS",
334
+
335
+ date_created: "TS",
336
+
337
+ date_updated: "TS",
338
+
339
+ revision: 1,
340
+
341
+ account_id: "TS",
342
+
343
+ message_id: "TS",
344
+
345
+ status: Freeclimb::MessageStatus::NEW,
346
+
347
+ from: "TS",
348
+
349
+ to: "TS",
350
+
351
+ text: "TS",
352
+
353
+ direction: "TS",
354
+
355
+ notification_url: "TS",
356
+
357
+ brand_id: "TS",
358
+
359
+ campaign_id: "TS",
360
+
361
+ segment_count: 1,
362
+
363
+ media_urls: [],
364
+
365
+ tfn: TFN.new,
366
+
367
+ phone_number_id: "TS",
368
+
369
+ application_id: "TS"
370
+ )
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)
547
378
  end
548
379
  end
549
380
 
550
- describe 'test method "build_from_hash"' do
551
- it 'builds equivalent model from hash code' do
381
+ describe 'test method "eql?"' do
382
+ it "checks if objects are equal" do
383
+ obj_TFN = TFN.new
384
+
552
385
  instance_1 = Freeclimb::MessageResult.new(
553
386
  uri: "TS",
554
-
387
+
555
388
  date_created: "TS",
556
-
389
+
557
390
  date_updated: "TS",
558
-
391
+
559
392
  revision: 1,
560
-
393
+
561
394
  account_id: "TS",
562
-
395
+
563
396
  message_id: "TS",
564
-
565
-
397
+
566
398
  status: Freeclimb::MessageStatus::NEW,
567
-
399
+
568
400
  from: "TS",
569
-
401
+
570
402
  to: "TS",
571
-
403
+
572
404
  text: "TS",
573
-
405
+
574
406
  direction: "TS",
575
-
407
+
576
408
  notification_url: "TS",
577
-
409
+
578
410
  brand_id: "TS",
579
-
411
+
580
412
  campaign_id: "TS",
581
-
582
-
583
- media_urls: Array.new(),
584
-
413
+
414
+ media_urls: [],
415
+
416
+ tfn: obj_TFN,
417
+
418
+ phone_number_id: "TS",
419
+
420
+ application_id: "TS"
585
421
  )
586
422
  instance_2 = Freeclimb::MessageResult.new(
587
423
  uri: "TS",
588
-
424
+
589
425
  date_created: "TS",
590
-
426
+
591
427
  date_updated: "TS",
592
-
428
+
593
429
  revision: 1,
594
-
430
+
595
431
  account_id: "TS",
596
-
432
+
597
433
  message_id: "TS",
598
-
599
-
434
+
600
435
  status: Freeclimb::MessageStatus::NEW,
601
-
436
+
602
437
  from: "TS",
603
-
438
+
604
439
  to: "TS",
605
-
440
+
606
441
  text: "TS",
607
-
442
+
608
443
  direction: "TS",
609
-
444
+
610
445
  notification_url: "TS",
611
-
446
+
612
447
  brand_id: "TS",
613
-
448
+
614
449
  campaign_id: "TS",
615
-
616
-
617
- media_urls: Array.new(),
618
-
619
- )
620
450
 
621
- expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
451
+ media_urls: [],
452
+
453
+ tfn: obj_TFN,
454
+
455
+ phone_number_id: "TS",
456
+
457
+ application_id: "TS"
458
+ )
459
+ expect(instance_1.eql?(instance_2)).to eq(true)
622
460
  end
623
- end
624
461
 
625
- describe 'test method "_deserialize"' do
626
- instance = Freeclimb::MessageResult.new(
462
+ it "checks if objects are not equal" do
463
+ instance_1 = Freeclimb::MessageResult.new(
627
464
  uri: "TS",
628
-
465
+
629
466
  date_created: "TS",
630
-
467
+
631
468
  date_updated: "TS",
632
-
633
- revision: 1,
634
-
469
+
470
+ revision: 2,
471
+
635
472
  account_id: "TS",
636
-
473
+
637
474
  message_id: "TS",
638
-
639
-
475
+
640
476
  status: Freeclimb::MessageStatus::NEW,
641
-
477
+
642
478
  from: "TS",
643
-
479
+
644
480
  to: "TS",
645
-
481
+
646
482
  text: "TS",
647
-
483
+
648
484
  direction: "TS",
649
-
485
+
650
486
  notification_url: "TS",
651
-
487
+
652
488
  brand_id: "TS",
653
-
489
+
654
490
  campaign_id: "TS",
655
-
656
-
657
- media_urls: Array.new(),
658
-
659
- )
660
- it 'deserializes the data of uri' do
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)
581
+ end
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
661
704
  expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String)
662
705
  end
663
- it 'deserializes the data of date_created' do
706
+
707
+ it "deserializes the data of date_created" do
664
708
  expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String)
665
709
  end
666
- it 'deserializes the data of date_updated' do
710
+
711
+ it "deserializes the data of date_updated" do
667
712
  expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String)
668
713
  end
669
- it 'deserializes the data of revision' do
714
+
715
+ it "deserializes the data of revision" do
670
716
  expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer)
671
717
  end
672
- it 'deserializes the data of account_id' do
718
+
719
+ it "deserializes the data of account_id" do
673
720
  expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
674
721
  end
675
- it 'deserializes the data of message_id' do
722
+
723
+ it "deserializes the data of message_id" do
676
724
  expect(instance._deserialize("String", instance.message_id)).to be_a_kind_of(String)
677
725
  end
678
- it 'deserializes the data of from' do
726
+
727
+ it "deserializes the data of from" do
679
728
  expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String)
680
729
  end
681
- it 'deserializes the data of to' do
730
+
731
+ it "deserializes the data of to" do
682
732
  expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String)
683
733
  end
684
- it 'deserializes the data of text' do
734
+
735
+ it "deserializes the data of text" do
685
736
  expect(instance._deserialize("String", instance.text)).to be_a_kind_of(String)
686
737
  end
687
- it 'deserializes the data of direction' do
738
+
739
+ it "deserializes the data of direction" do
688
740
  expect(instance._deserialize("String", instance.direction)).to be_a_kind_of(String)
689
741
  end
690
- it 'deserializes the data of notification_url' do
742
+
743
+ it "deserializes the data of notification_url" do
691
744
  expect(instance._deserialize("String", instance.notification_url)).to be_a_kind_of(String)
692
745
  end
693
- it 'deserializes the data of brand_id' do
746
+
747
+ it "deserializes the data of brand_id" do
694
748
  expect(instance._deserialize("String", instance.brand_id)).to be_a_kind_of(String)
695
749
  end
696
- it 'deserializes the data of campaign_id' do
750
+
751
+ it "deserializes the data of campaign_id" do
697
752
  expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String)
698
753
  end
699
- it 'deserializes the data of segment_count' do
754
+
755
+ it "deserializes the data of segment_count" do
700
756
  expect(instance._deserialize("Float", instance.segment_count)).to be_a_kind_of(Float)
701
757
  end
702
- it 'deserializes the data of media_urls' do
758
+
759
+ it "deserializes the data of media_urls" do
703
760
  expect(instance._deserialize("Array<String>", instance.media_urls)).to be_a_kind_of(Array)
704
761
  end
762
+
763
+ it "deserializes the data of tfn" do
764
+ expect(instance._deserialize("Object", instance.tfn)).to be_a_kind_of(TFN)
765
+ end
766
+
767
+ it "deserializes the data of phone_number_id" do
768
+ expect(instance._deserialize("String", instance.phone_number_id)).to be_a_kind_of(String)
769
+ end
770
+
771
+ it "deserializes the data of application_id" do
772
+ expect(instance._deserialize("String", instance.application_id)).to be_a_kind_of(String)
773
+ end
705
774
  end
706
775
 
707
776
  describe 'test method "to_s"' do
708
- it 'returns the string representation of the object' do
777
+ it "returns the string representation of the object" do
709
778
  instance = Freeclimb::MessageResult.new(
710
779
  uri: "TS",
711
-
780
+
712
781
  date_created: "TS",
713
-
782
+
714
783
  date_updated: "TS",
715
-
784
+
716
785
  revision: 1,
717
-
786
+
718
787
  account_id: "TS",
719
-
788
+
720
789
  message_id: "TS",
721
-
722
-
790
+
723
791
  status: Freeclimb::MessageStatus::NEW,
724
-
792
+
725
793
  from: "TS",
726
-
794
+
727
795
  to: "TS",
728
-
796
+
729
797
  text: "TS",
730
-
798
+
731
799
  direction: "TS",
732
-
800
+
733
801
  notification_url: "TS",
734
-
802
+
735
803
  brand_id: "TS",
736
-
804
+
737
805
  campaign_id: "TS",
738
-
739
-
740
- media_urls: Array.new(),
741
-
806
+
807
+ media_urls: [],
808
+
809
+ tfn: TFN.new,
810
+
811
+ phone_number_id: "TS",
812
+
813
+ application_id: "TS"
742
814
  )
743
815
  expect(instance.to_s).to eq(instance.to_hash.to_s)
744
816
  end
745
817
  end
746
818
 
747
819
  describe 'test method "to_hash"' do
748
- it 'returns the object in the form of hash' do
820
+ it "returns the object in the form of hash" do
749
821
  instance = Freeclimb::MessageResult.new(
750
822
  uri: "TS",
751
-
823
+
752
824
  date_created: "TS",
753
-
825
+
754
826
  date_updated: "TS",
755
-
827
+
756
828
  revision: 1,
757
-
829
+
758
830
  account_id: "TS",
759
-
831
+
760
832
  message_id: "TS",
761
-
762
-
833
+
763
834
  status: Freeclimb::MessageStatus::NEW,
764
-
835
+
765
836
  from: "TS",
766
-
837
+
767
838
  to: "TS",
768
-
839
+
769
840
  text: "TS",
770
-
841
+
771
842
  direction: "TS",
772
-
843
+
773
844
  notification_url: "TS",
774
-
845
+
775
846
  brand_id: "TS",
776
-
847
+
777
848
  campaign_id: "TS",
778
-
779
-
780
- media_urls: Array.new(),
781
-
849
+
850
+ media_urls: [],
851
+
852
+ tfn: TFN.new,
853
+
854
+ phone_number_id: "TS",
855
+
856
+ application_id: "TS"
782
857
  )
783
858
  expect(instance.to_hash).to be_a_kind_of(Hash)
784
859
  end
785
- it 'creates equal hash for two equal objects' do
786
- obj = Object.new()
860
+ it "creates equal hash for two equal objects" do
861
+ obj = TFN.new
862
+
787
863
  instance_1 = Freeclimb::MessageResult.new(
788
864
  uri: "TS",
789
-
865
+
790
866
  date_created: "TS",
791
-
867
+
792
868
  date_updated: "TS",
793
-
869
+
794
870
  revision: 1,
795
-
871
+
796
872
  account_id: "TS",
797
-
873
+
798
874
  message_id: "TS",
799
-
800
-
875
+
801
876
  status: Freeclimb::MessageStatus::NEW,
802
-
877
+
803
878
  from: "TS",
804
-
879
+
805
880
  to: "TS",
806
-
881
+
807
882
  text: "TS",
808
-
883
+
809
884
  direction: "TS",
810
-
885
+
811
886
  notification_url: "TS",
812
-
887
+
813
888
  brand_id: "TS",
814
-
889
+
815
890
  campaign_id: "TS",
816
-
817
-
818
- media_urls: Array.new(),
819
-
891
+
892
+ media_urls: [],
893
+
894
+ tfn: obj,
895
+
896
+ phone_number_id: "TS",
897
+
898
+ application_id: "TS"
820
899
  )
821
900
  instance_2 = Freeclimb::MessageResult.new(
822
901
  uri: "TS",
823
-
902
+
824
903
  date_created: "TS",
825
-
904
+
826
905
  date_updated: "TS",
827
-
906
+
828
907
  revision: 1,
829
-
908
+
830
909
  account_id: "TS",
831
-
910
+
832
911
  message_id: "TS",
833
-
834
-
912
+
835
913
  status: Freeclimb::MessageStatus::NEW,
836
-
914
+
837
915
  from: "TS",
838
-
916
+
839
917
  to: "TS",
840
-
918
+
841
919
  text: "TS",
842
-
920
+
843
921
  direction: "TS",
844
-
922
+
845
923
  notification_url: "TS",
846
-
924
+
847
925
  brand_id: "TS",
848
-
926
+
849
927
  campaign_id: "TS",
850
-
851
-
852
- media_urls: Array.new(),
853
-
928
+
929
+ media_urls: [],
930
+
931
+ tfn: obj,
932
+
933
+ phone_number_id: "TS",
934
+
935
+ application_id: "TS"
854
936
  )
855
937
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
856
938
  end
@@ -858,102 +940,96 @@ describe Freeclimb::MessageResult do
858
940
 
859
941
  describe 'test method "_to_hash"' do
860
942
  instance = Freeclimb::MessageResult.new(
861
- uri: "TS",
862
-
863
-
864
- date_created: "TS",
865
-
866
-
867
- date_updated: "TS",
868
-
869
-
870
- revision: 1,
871
-
872
-
873
- account_id: "TS",
874
-
875
-
876
- message_id: "TS",
877
-
878
-
879
-
880
- status: Freeclimb::MessageStatus::NEW,
881
-
882
-
883
- from: "TS",
884
-
885
-
886
- to: "TS",
887
-
888
-
889
- text: "TS",
890
-
891
-
892
- direction: "TS",
893
-
894
-
895
- notification_url: "TS",
896
-
897
-
898
- brand_id: "TS",
899
-
900
-
901
- campaign_id: "TS",
902
-
903
-
904
-
905
-
906
- media_urls: Array.new(),
907
-
908
- )
909
- 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
910
978
  expect(instance._to_hash(instance.uri)).to eq(instance.uri)
911
979
  end
912
- it 'returns date_created in the form of hash' do
980
+ it "returns date_created in the form of hash" do
913
981
  expect(instance._to_hash(instance.date_created)).to eq(instance.date_created)
914
982
  end
915
- it 'returns date_updated in the form of hash' do
983
+ it "returns date_updated in the form of hash" do
916
984
  expect(instance._to_hash(instance.date_updated)).to eq(instance.date_updated)
917
985
  end
918
- it 'returns revision in the form of hash' do
986
+ it "returns revision in the form of hash" do
919
987
  expect(instance._to_hash(instance.revision)).to eq(instance.revision)
920
988
  end
921
- it 'returns account_id in the form of hash' do
989
+ it "returns account_id in the form of hash" do
922
990
  expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)
923
991
  end
924
- it 'returns message_id in the form of hash' do
992
+ it "returns message_id in the form of hash" do
925
993
  expect(instance._to_hash(instance.message_id)).to eq(instance.message_id)
926
994
  end
927
- it 'returns status in the form of hash' do
995
+ it "returns status in the form of hash" do
928
996
  expect(instance._to_hash(instance.status)).to eq(instance.status)
929
997
  end
930
- it 'returns from in the form of hash' do
998
+ it "returns from in the form of hash" do
931
999
  expect(instance._to_hash(instance.from)).to eq(instance.from)
932
1000
  end
933
- it 'returns to in the form of hash' do
1001
+ it "returns to in the form of hash" do
934
1002
  expect(instance._to_hash(instance.to)).to eq(instance.to)
935
1003
  end
936
- it 'returns text in the form of hash' do
1004
+ it "returns text in the form of hash" do
937
1005
  expect(instance._to_hash(instance.text)).to eq(instance.text)
938
1006
  end
939
- it 'returns direction in the form of hash' do
1007
+ it "returns direction in the form of hash" do
940
1008
  expect(instance._to_hash(instance.direction)).to eq(instance.direction)
941
1009
  end
942
- it 'returns notification_url in the form of hash' do
1010
+ it "returns notification_url in the form of hash" do
943
1011
  expect(instance._to_hash(instance.notification_url)).to eq(instance.notification_url)
944
1012
  end
945
- it 'returns brand_id in the form of hash' do
1013
+ it "returns brand_id in the form of hash" do
946
1014
  expect(instance._to_hash(instance.brand_id)).to eq(instance.brand_id)
947
1015
  end
948
- it 'returns campaign_id in the form of hash' do
1016
+ it "returns campaign_id in the form of hash" do
949
1017
  expect(instance._to_hash(instance.campaign_id)).to eq(instance.campaign_id)
950
1018
  end
951
- it 'returns segment_count in the form of hash' do
1019
+ it "returns segment_count in the form of hash" do
952
1020
  expect(instance._to_hash(instance.segment_count)).to eq(instance.segment_count)
953
1021
  end
954
- it 'returns media_urls in the form of hash' do
1022
+ it "returns media_urls in the form of hash" do
955
1023
  expect(instance._to_hash(instance.media_urls)).to eq(instance.media_urls)
956
1024
  end
1025
+ it "returns tfn in the form of hash" do
1026
+ expect(instance._to_hash(instance.tfn)).to eq(instance.tfn)
1027
+ end
1028
+ it "returns phone_number_id in the form of hash" do
1029
+ expect(instance._to_hash(instance.phone_number_id)).to eq(instance.phone_number_id)
1030
+ end
1031
+ it "returns application_id in the form of hash" do
1032
+ expect(instance._to_hash(instance.application_id)).to eq(instance.application_id)
1033
+ end
957
1034
  end
958
-
959
1035
  end