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