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
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"
14
+ include Freeclimb
16
15
 
17
16
  # Unit tests for Freeclimb::IncomingNumberResult
18
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -20,841 +19,833 @@ require 'date'
20
19
  describe Freeclimb::IncomingNumberResult do
21
20
  let(:instance) { Freeclimb::IncomingNumberResult.new }
22
21
 
23
- describe 'test an instance of IncomingNumberResult' do
24
- 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
25
24
  expect(instance).to be_instance_of(Freeclimb::IncomingNumberResult)
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 "capabilities"' do
64
- it 'should work' do
65
-
66
- instance.capabilities = Freeclimb::Capabilities.new
67
- expect(instance.capabilities).to be_instance_of(Freeclimb::Capabilities)
57
+ it "should work" do
58
+ instance.capabilities = Capabilities.new
59
+ expect(instance.capabilities).to be_instance_of(Capabilities)
68
60
  end
69
61
  end
70
62
 
71
63
  describe 'test attribute "campaign_id"' do
72
- it 'should work' do
64
+ it "should work" do
73
65
  instance.campaign_id = "TEST_STRING"
74
- expect(instance.campaign_id).to eq("TEST_STRING")
75
-
66
+ expect(instance.campaign_id).to eq("TEST_STRING")
76
67
  end
77
68
  end
78
69
 
79
70
  describe 'test attribute "phone_number_id"' do
80
- it 'should work' do
71
+ it "should work" do
81
72
  instance.phone_number_id = "TEST_STRING"
82
- expect(instance.phone_number_id).to eq("TEST_STRING")
83
-
73
+ expect(instance.phone_number_id).to eq("TEST_STRING")
84
74
  end
85
75
  end
86
76
 
87
77
  describe 'test attribute "account_id"' do
88
- it 'should work' do
78
+ it "should work" do
89
79
  instance.account_id = "TEST_STRING"
90
- expect(instance.account_id).to eq("TEST_STRING")
91
-
80
+ expect(instance.account_id).to eq("TEST_STRING")
92
81
  end
93
82
  end
94
83
 
95
84
  describe 'test attribute "application_id"' do
96
- it 'should work' do
85
+ it "should work" do
97
86
  instance.application_id = "TEST_STRING"
98
- expect(instance.application_id).to eq("TEST_STRING")
99
-
87
+ expect(instance.application_id).to eq("TEST_STRING")
100
88
  end
101
89
  end
102
90
 
103
91
  describe 'test attribute "phone_number"' do
104
- it 'should work' do
92
+ it "should work" do
105
93
  instance.phone_number = "TEST_STRING"
106
- expect(instance.phone_number).to eq("TEST_STRING")
107
-
94
+ expect(instance.phone_number).to eq("TEST_STRING")
108
95
  end
109
96
  end
110
97
 
111
98
  describe 'test attribute "_alias"' do
112
- it 'should work' do
99
+ it "should work" do
113
100
  instance._alias = "TEST_STRING"
114
- expect(instance._alias).to eq("TEST_STRING")
115
-
101
+ expect(instance._alias).to eq("TEST_STRING")
116
102
  end
117
103
  end
118
104
 
119
105
  describe 'test attribute "region"' do
120
- it 'should work' do
106
+ it "should work" do
121
107
  instance.region = "TEST_STRING"
122
- expect(instance.region).to eq("TEST_STRING")
123
-
108
+ expect(instance.region).to eq("TEST_STRING")
124
109
  end
125
110
  end
126
111
 
127
112
  describe 'test attribute "country"' do
128
- it 'should work' do
113
+ it "should work" do
129
114
  instance.country = "TEST_STRING"
130
- expect(instance.country).to eq("TEST_STRING")
131
-
115
+ expect(instance.country).to eq("TEST_STRING")
132
116
  end
133
117
  end
134
118
 
135
119
  describe 'test attribute "voice_enabled"' do
136
- it 'should work' do
120
+ it "should work" do
137
121
  instance.voice_enabled = false
138
- expect(instance.voice_enabled).to eq(false)
139
-
122
+ expect(instance.voice_enabled).to eq(false)
140
123
  end
141
124
  end
142
125
 
143
126
  describe 'test attribute "sms_enabled"' do
144
- it 'should work' do
127
+ it "should work" do
145
128
  instance.sms_enabled = false
146
- expect(instance.sms_enabled).to eq(false)
147
-
129
+ expect(instance.sms_enabled).to eq(false)
148
130
  end
149
131
  end
150
132
 
151
133
  describe 'test attribute "offnet"' do
152
- it 'should work' do
134
+ it "should work" do
153
135
  instance.offnet = false
154
- expect(instance.offnet).to eq(false)
155
-
136
+ expect(instance.offnet).to eq(false)
156
137
  end
157
138
  end
158
139
 
159
140
  describe 'test attribute "tfn"' do
160
- it 'should work' do
161
-
162
- instance.tfn = Freeclimb::TFN.new
163
- expect(instance.tfn).to be_instance_of(Freeclimb::TFN)
141
+ it "should work" do
142
+ instance.tfn = TFN.new
143
+ expect(instance.tfn).to be_instance_of(TFN)
164
144
  end
165
145
  end
166
146
 
167
147
  describe 'test method "initialize"' do
168
- it 'properly initializes with values' do
169
- expect { instance = Freeclimb::IncomingNumberResult.new(
170
- uri: "TS",
171
-
172
- date_created: "TS",
173
-
174
- date_updated: "TS",
175
-
176
- revision: 1,
177
-
178
-
179
- capabilities: Freeclimb::Capabilities.new(),
180
- campaign_id: "TS",
181
-
182
- phone_number_id: "TS",
183
-
184
- account_id: "TS",
185
-
186
- application_id: "TS",
187
-
188
- phone_number: "TS",
189
-
190
- _alias: "TS",
191
-
192
- region: "TS",
193
-
194
- country: "TS",
195
-
196
- voice_enabled: true,
197
-
198
- sms_enabled: true,
199
-
200
- offnet: true,
201
-
202
-
203
- tfn: Freeclimb::TFN.new(),
204
- )}.not_to raise_error()
205
- end
206
- it 'fails to initialize with input argument that is not a hash in Freeclimb::IncomingNumberResult' do
207
- expect { instance = Freeclimb::IncomingNumberResult.new(
208
- uri: "TS",
209
-
210
- date_created: "TS",
211
-
212
- date_updated: "TS",
213
-
214
- revision: 1,
215
-
216
-
217
- capabilities: Freeclimb::Capabilities.new,
218
- campaign_id: "TS",
219
-
220
- phone_number_id: "TS",
221
-
222
- account_id: "TS",
223
-
224
- application_id: "TS",
225
-
226
- phone_number: "TS",
227
-
228
- _alias: "TS",
229
-
230
- region: "TS",
231
-
232
- country: "TS",
233
-
234
- voice_enabled: true,
235
-
236
- sms_enabled: true,
237
-
238
- offnet: true,
239
-
240
-
241
- tfn: Freeclimb::TFN.new,
242
- invalid_attribute: true
243
- )}.to raise_error(ArgumentError)
244
- end
245
- it 'fails to initialize with invalid attribute' do
246
- expect { instance = Freeclimb::IncomingNumberResult.new(
247
- uri: "TS",
248
-
249
- date_created: "TS",
250
-
251
- date_updated: "TS",
252
-
253
- revision: 1,
254
-
255
-
256
- capabilities: Freeclimb::Capabilities.new,
257
- campaign_id: "TS",
258
-
259
- phone_number_id: "TS",
260
-
261
- account_id: "TS",
262
-
263
- application_id: "TS",
264
-
265
- phone_number: "TS",
266
-
267
- _alias: "TS",
268
-
269
- region: "TS",
270
-
271
- country: "TS",
272
-
273
- voice_enabled: true,
274
-
275
- sms_enabled: true,
276
-
277
- offnet: true,
278
-
279
-
280
- tfn: Freeclimb::TFN.new,
281
- invalid_attribute: true
282
- )}.to raise_error(ArgumentError)
283
- end
284
- end
285
-
286
- describe 'test method "valid"' do
287
- it 'checks if properties are valid' do
288
- instance = Freeclimb::IncomingNumberResult.new(
148
+ it "properly initializes with values" do
149
+ expect {
150
+ Freeclimb::IncomingNumberResult.new(
289
151
  uri: "TS",
290
-
152
+
291
153
  date_created: "TS",
292
-
154
+
293
155
  date_updated: "TS",
294
-
156
+
295
157
  revision: 1,
296
-
297
-
298
- capabilities: Freeclimb::Capabilities.new(),
158
+
159
+ capabilities: Capabilities.new,
160
+
299
161
  campaign_id: "TS",
300
-
162
+
301
163
  phone_number_id: "TS",
302
-
164
+
303
165
  account_id: "TS",
304
-
166
+
305
167
  application_id: "TS",
306
-
168
+
307
169
  phone_number: "TS",
308
-
170
+
309
171
  _alias: "TS",
310
-
172
+
311
173
  region: "TS",
312
-
174
+
313
175
  country: "TS",
314
-
176
+
315
177
  voice_enabled: true,
316
-
178
+
317
179
  sms_enabled: true,
318
-
319
- offnet: true,
320
-
321
-
322
- tfn: Freeclimb::TFN.new(),
323
- )
324
- expect(instance.valid?).to eq(true)
325
- end
326
180
 
181
+ offnet: true,
327
182
 
328
- skip 'checks if properties are invalid' do
329
- instance = Freeclimb::IncomingNumberResult.new(
330
-
331
- )
332
- expect(instance.valid?).to eq(false)
183
+ tfn: TFN.new
184
+ )
185
+ }.not_to raise_error
333
186
  end
334
-
335
- end
336
-
337
- describe 'test method "eql?"' do
338
- it 'checks if objects are equal' do
339
- obj = Object.new()
340
- instance_1 = Freeclimb::IncomingNumberResult.new(
187
+ it "fails to initialize with input argument that is not a hash in Freeclimb::IncomingNumberResult" do
188
+ expect {
189
+ Freeclimb::IncomingNumberResult.new(
341
190
  uri: "TS",
342
-
191
+
343
192
  date_created: "TS",
344
-
193
+
345
194
  date_updated: "TS",
346
-
195
+
347
196
  revision: 1,
348
-
349
- capabilities: Freeclimb::Capabilities.new(),
350
-
197
+
198
+ capabilities: Capabilities.new,
199
+
351
200
  campaign_id: "TS",
352
-
201
+
353
202
  phone_number_id: "TS",
354
-
203
+
355
204
  account_id: "TS",
356
-
205
+
357
206
  application_id: "TS",
358
-
207
+
359
208
  phone_number: "TS",
360
-
209
+
361
210
  _alias: "TS",
362
-
211
+
363
212
  region: "TS",
364
-
213
+
365
214
  country: "TS",
366
-
215
+
367
216
  voice_enabled: true,
368
-
217
+
369
218
  sms_enabled: true,
370
-
219
+
371
220
  offnet: true,
372
-
373
- tfn: Freeclimb::TFN.new(),
374
-
375
- )
376
- instance_2 = Freeclimb::IncomingNumberResult.new(
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(
377
231
  uri: "TS",
378
-
232
+
379
233
  date_created: "TS",
380
-
234
+
381
235
  date_updated: "TS",
382
-
236
+
383
237
  revision: 1,
384
-
385
- capabilities: Freeclimb::Capabilities.new(),
386
-
238
+
239
+ capabilities: Capabilities.new,
240
+
387
241
  campaign_id: "TS",
388
-
242
+
389
243
  phone_number_id: "TS",
390
-
244
+
391
245
  account_id: "TS",
392
-
246
+
393
247
  application_id: "TS",
394
-
248
+
395
249
  phone_number: "TS",
396
-
250
+
397
251
  _alias: "TS",
398
-
252
+
399
253
  region: "TS",
400
-
254
+
401
255
  country: "TS",
402
-
256
+
403
257
  voice_enabled: true,
404
-
258
+
405
259
  sms_enabled: true,
406
-
260
+
407
261
  offnet: true,
408
-
409
- tfn: Freeclimb::TFN.new(),
410
-
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
411
393
  )
412
394
  expect(instance_1.eql?(instance_2)).to eq(true)
413
395
  end
414
-
415
- it 'checks if objects are not equal' do
396
+
397
+ it "checks if objects are not equal" do
416
398
  instance_1 = Freeclimb::IncomingNumberResult.new(
417
- uri: "TS",
418
-
419
- date_created: "TS",
420
-
421
- date_updated: "TS",
422
-
423
- revision: 2,
424
-
425
- capabilities: Freeclimb::Capabilities.new(),
426
-
427
- campaign_id: "TS",
428
-
429
- phone_number_id: "TS",
430
-
431
- account_id: "TS",
432
-
433
- application_id: "TS",
434
-
435
- phone_number: "TS",
436
-
437
- _alias: "TS",
438
-
439
- region: "TS",
440
-
441
- country: "TS",
442
-
443
- voice_enabled: true,
444
-
445
- sms_enabled: true,
446
-
447
- offnet: true,
448
-
449
- tfn: Freeclimb::TFN.new(),
450
-
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
451
432
  )
452
433
  instance_2 = Freeclimb::IncomingNumberResult.new(
453
- uri: "ST",
454
-
455
- date_created: "ST",
456
-
457
- date_updated: "ST",
458
-
459
- revision: 1,
460
-
461
- capabilities: Freeclimb::Capabilities.new(),
462
-
463
- campaign_id: "ST",
464
-
465
- phone_number_id: "ST",
466
-
467
- account_id: "ST",
468
-
469
- application_id: "ST",
470
-
471
- phone_number: "ST",
472
-
473
- _alias: "ST",
474
-
475
- region: "ST",
476
-
477
- country: "ST",
478
-
479
- voice_enabled: false,
480
-
481
- sms_enabled: false,
482
-
483
- offnet: false,
484
-
485
- tfn: Freeclimb::TFN.new(),
486
-
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
487
467
  )
488
468
  expect(instance_1.eql?(instance_2)).to eq(false)
489
469
  end
490
470
  end
491
-
471
+
492
472
  describe 'test method "hash"' do
493
- it 'calculates hash code' do
473
+ it "calculates hash code" do
494
474
  instance = Freeclimb::IncomingNumberResult.new(
495
- uri: "TS",
496
-
497
- date_created: "TS",
498
-
499
- date_updated: "TS",
500
-
501
- revision: 1,
502
-
503
-
504
- capabilities: Freeclimb::Capabilities.new(),
505
- campaign_id: "TS",
506
-
507
- phone_number_id: "TS",
508
-
509
- account_id: "TS",
510
-
511
- application_id: "TS",
512
-
513
- phone_number: "TS",
514
-
515
- _alias: "TS",
516
-
517
- region: "TS",
518
-
519
- country: "TS",
520
-
521
- voice_enabled: true,
522
-
523
- sms_enabled: true,
524
-
525
- offnet: true,
526
-
527
-
528
- tfn: Freeclimb::TFN.new(),
529
- )
530
- expect(instance.hash).to be_a_kind_of(Integer)
531
- end
532
- end
533
-
534
- describe 'test method "build_from_hash"' do
535
- it 'builds equivalent model from hash code' do
536
- instance_1 = Freeclimb::IncomingNumberResult.new(
537
475
  uri: "TS",
538
-
476
+
539
477
  date_created: "TS",
540
-
478
+
541
479
  date_updated: "TS",
542
-
480
+
543
481
  revision: 1,
544
-
545
-
546
- capabilities: Freeclimb::Capabilities.new(),
482
+
483
+ capabilities: Capabilities.new,
484
+
547
485
  campaign_id: "TS",
548
-
486
+
549
487
  phone_number_id: "TS",
550
-
488
+
551
489
  account_id: "TS",
552
-
490
+
553
491
  application_id: "TS",
554
-
492
+
555
493
  phone_number: "TS",
556
-
494
+
557
495
  _alias: "TS",
558
-
496
+
559
497
  region: "TS",
560
-
498
+
561
499
  country: "TS",
562
-
500
+
563
501
  voice_enabled: true,
564
-
502
+
565
503
  sms_enabled: true,
566
-
504
+
567
505
  offnet: true,
568
-
569
-
570
- tfn: Freeclimb::TFN.new(),
506
+
507
+ tfn: TFN.new
571
508
  )
572
- instance_2 = Freeclimb::IncomingNumberResult.new(
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(
573
516
  uri: "TS",
574
-
517
+
575
518
  date_created: "TS",
576
-
519
+
577
520
  date_updated: "TS",
578
-
521
+
579
522
  revision: 1,
580
-
581
-
582
- capabilities: Freeclimb::Capabilities.new(),
523
+
524
+ capabilities: Capabilities.new,
525
+
583
526
  campaign_id: "TS",
584
-
527
+
585
528
  phone_number_id: "TS",
586
-
529
+
587
530
  account_id: "TS",
588
-
531
+
589
532
  application_id: "TS",
590
-
533
+
591
534
  phone_number: "TS",
592
-
535
+
593
536
  _alias: "TS",
594
-
537
+
595
538
  region: "TS",
596
-
539
+
597
540
  country: "TS",
598
-
541
+
599
542
  voice_enabled: true,
600
-
543
+
601
544
  sms_enabled: true,
602
-
603
- offnet: true,
604
-
605
-
606
- tfn: Freeclimb::TFN.new(),
607
- )
608
545
 
609
- expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
610
- end
611
- end
546
+ offnet: true,
612
547
 
613
- describe 'test method "_deserialize"' do
614
- instance = Freeclimb::IncomingNumberResult.new(
548
+ tfn: TFN.new
549
+ )
550
+ instance_2 = Freeclimb::IncomingNumberResult.new(
615
551
  uri: "TS",
616
-
552
+
617
553
  date_created: "TS",
618
-
554
+
619
555
  date_updated: "TS",
620
-
556
+
621
557
  revision: 1,
622
-
623
-
624
- capabilities: Freeclimb::Capabilities.new,
558
+
559
+ capabilities: Capabilities.new,
560
+
625
561
  campaign_id: "TS",
626
-
562
+
627
563
  phone_number_id: "TS",
628
-
564
+
629
565
  account_id: "TS",
630
-
566
+
631
567
  application_id: "TS",
632
-
568
+
633
569
  phone_number: "TS",
634
-
570
+
635
571
  _alias: "TS",
636
-
572
+
637
573
  region: "TS",
638
-
574
+
639
575
  country: "TS",
640
-
576
+
641
577
  voice_enabled: true,
642
-
578
+
643
579
  sms_enabled: true,
644
-
580
+
645
581
  offnet: true,
646
-
647
-
648
- tfn: Freeclimb::TFN.new,
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
649
625
  )
650
- it 'deserializes the data of uri' do
626
+ it "deserializes the data of uri" do
651
627
  expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String)
652
628
  end
653
- it 'deserializes the data of date_created' do
629
+
630
+ it "deserializes the data of date_created" do
654
631
  expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String)
655
632
  end
656
- it 'deserializes the data of date_updated' do
633
+
634
+ it "deserializes the data of date_updated" do
657
635
  expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String)
658
636
  end
659
- it 'deserializes the data of revision' do
637
+
638
+ it "deserializes the data of revision" do
660
639
  expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer)
661
640
  end
662
- it 'deserializes the data of capabilities' do
663
- expect(instance._deserialize("Object", instance.capabilities)).to be_a_kind_of(Freeclimb::Capabilities)
641
+
642
+ it "deserializes the data of capabilities" do
643
+ expect(instance._deserialize("Object", instance.capabilities)).to be_a_kind_of(Capabilities)
664
644
  end
665
- it 'deserializes the data of campaign_id' do
645
+
646
+ it "deserializes the data of campaign_id" do
666
647
  expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String)
667
648
  end
668
- it 'deserializes the data of phone_number_id' do
649
+
650
+ it "deserializes the data of phone_number_id" do
669
651
  expect(instance._deserialize("String", instance.phone_number_id)).to be_a_kind_of(String)
670
652
  end
671
- it 'deserializes the data of account_id' do
653
+
654
+ it "deserializes the data of account_id" do
672
655
  expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
673
656
  end
674
- it 'deserializes the data of application_id' do
657
+
658
+ it "deserializes the data of application_id" do
675
659
  expect(instance._deserialize("String", instance.application_id)).to be_a_kind_of(String)
676
660
  end
677
- it 'deserializes the data of phone_number' do
661
+
662
+ it "deserializes the data of phone_number" do
678
663
  expect(instance._deserialize("String", instance.phone_number)).to be_a_kind_of(String)
679
664
  end
680
- it 'deserializes the data of _alias' do
665
+
666
+ it "deserializes the data of _alias" do
681
667
  expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String)
682
668
  end
683
- it 'deserializes the data of region' do
669
+
670
+ it "deserializes the data of region" do
684
671
  expect(instance._deserialize("String", instance.region)).to be_a_kind_of(String)
685
672
  end
686
- it 'deserializes the data of country' do
673
+
674
+ it "deserializes the data of country" do
687
675
  expect(instance._deserialize("String", instance.country)).to be_a_kind_of(String)
688
676
  end
689
- it 'deserializes the data of voice_enabled' do
677
+
678
+ it "deserializes the data of voice_enabled" do
690
679
  expect(instance._deserialize("Boolean", instance.voice_enabled)).to be_a_kind_of(TrueClass)
691
680
  end
692
- it 'deserializes the data of sms_enabled' do
681
+
682
+ it "deserializes the data of sms_enabled" do
693
683
  expect(instance._deserialize("Boolean", instance.sms_enabled)).to be_a_kind_of(TrueClass)
694
684
  end
695
- it 'deserializes the data of offnet' do
685
+
686
+ it "deserializes the data of offnet" do
696
687
  expect(instance._deserialize("Boolean", instance.offnet)).to be_a_kind_of(TrueClass)
697
688
  end
698
- it 'deserializes the data of tfn' do
699
- expect(instance._deserialize("Object", instance.tfn)).to be_a_kind_of(Freeclimb::TFN)
689
+
690
+ it "deserializes the data of tfn" do
691
+ expect(instance._deserialize("Object", instance.tfn)).to be_a_kind_of(TFN)
700
692
  end
701
693
  end
702
694
 
703
695
  describe 'test method "to_s"' do
704
- it 'returns the string representation of the object' do
696
+ it "returns the string representation of the object" do
705
697
  instance = Freeclimb::IncomingNumberResult.new(
706
698
  uri: "TS",
707
-
699
+
708
700
  date_created: "TS",
709
-
701
+
710
702
  date_updated: "TS",
711
-
703
+
712
704
  revision: 1,
713
-
714
-
715
- capabilities: Freeclimb::Capabilities.new,
705
+
706
+ capabilities: Capabilities.new,
707
+
716
708
  campaign_id: "TS",
717
-
709
+
718
710
  phone_number_id: "TS",
719
-
711
+
720
712
  account_id: "TS",
721
-
713
+
722
714
  application_id: "TS",
723
-
715
+
724
716
  phone_number: "TS",
725
-
717
+
726
718
  _alias: "TS",
727
-
719
+
728
720
  region: "TS",
729
-
721
+
730
722
  country: "TS",
731
-
723
+
732
724
  voice_enabled: true,
733
-
725
+
734
726
  sms_enabled: true,
735
-
727
+
736
728
  offnet: true,
737
-
738
-
739
- tfn: Freeclimb::TFN.new,
729
+
730
+ tfn: TFN.new
740
731
  )
741
732
  expect(instance.to_s).to eq(instance.to_hash.to_s)
742
733
  end
743
734
  end
744
735
 
745
736
  describe 'test method "to_hash"' do
746
- it 'returns the object in the form of hash' do
737
+ it "returns the object in the form of hash" do
747
738
  instance = Freeclimb::IncomingNumberResult.new(
748
739
  uri: "TS",
749
-
740
+
750
741
  date_created: "TS",
751
-
742
+
752
743
  date_updated: "TS",
753
-
744
+
754
745
  revision: 1,
755
-
756
-
757
- capabilities: Freeclimb::Capabilities.new,
746
+
747
+ capabilities: Capabilities.new,
748
+
758
749
  campaign_id: "TS",
759
-
750
+
760
751
  phone_number_id: "TS",
761
-
752
+
762
753
  account_id: "TS",
763
-
754
+
764
755
  application_id: "TS",
765
-
756
+
766
757
  phone_number: "TS",
767
-
758
+
768
759
  _alias: "TS",
769
-
760
+
770
761
  region: "TS",
771
-
762
+
772
763
  country: "TS",
773
-
764
+
774
765
  voice_enabled: true,
775
-
766
+
776
767
  sms_enabled: true,
777
-
768
+
778
769
  offnet: true,
779
-
780
-
781
- tfn: Freeclimb::TFN.new,
770
+
771
+ tfn: TFN.new
782
772
  )
783
773
  expect(instance.to_hash).to be_a_kind_of(Hash)
784
774
  end
785
- it 'creates equal hash for two equal objects' do
786
- obj = Object.new()
775
+ it "creates equal hash for two equal objects" do
776
+ Capabilities.new
777
+
778
+ obj = TFN.new
779
+
787
780
  instance_1 = Freeclimb::IncomingNumberResult.new(
788
781
  uri: "TS",
789
-
782
+
790
783
  date_created: "TS",
791
-
784
+
792
785
  date_updated: "TS",
793
-
786
+
794
787
  revision: 1,
795
-
796
-
797
- capabilities: Freeclimb::Capabilities.new,
788
+
789
+ capabilities: obj,
790
+
798
791
  campaign_id: "TS",
799
-
792
+
800
793
  phone_number_id: "TS",
801
-
794
+
802
795
  account_id: "TS",
803
-
796
+
804
797
  application_id: "TS",
805
-
798
+
806
799
  phone_number: "TS",
807
-
800
+
808
801
  _alias: "TS",
809
-
802
+
810
803
  region: "TS",
811
-
804
+
812
805
  country: "TS",
813
-
806
+
814
807
  voice_enabled: true,
815
-
808
+
816
809
  sms_enabled: true,
817
-
810
+
818
811
  offnet: true,
819
-
820
-
821
- tfn: Freeclimb::TFN.new,
812
+
813
+ tfn: obj
822
814
  )
823
815
  instance_2 = Freeclimb::IncomingNumberResult.new(
824
816
  uri: "TS",
825
-
817
+
826
818
  date_created: "TS",
827
-
819
+
828
820
  date_updated: "TS",
829
-
821
+
830
822
  revision: 1,
831
-
832
-
833
- capabilities: Freeclimb::Capabilities.new,
823
+
824
+ capabilities: obj,
825
+
834
826
  campaign_id: "TS",
835
-
827
+
836
828
  phone_number_id: "TS",
837
-
829
+
838
830
  account_id: "TS",
839
-
831
+
840
832
  application_id: "TS",
841
-
833
+
842
834
  phone_number: "TS",
843
-
835
+
844
836
  _alias: "TS",
845
-
837
+
846
838
  region: "TS",
847
-
839
+
848
840
  country: "TS",
849
-
841
+
850
842
  voice_enabled: true,
851
-
843
+
852
844
  sms_enabled: true,
853
-
845
+
854
846
  offnet: true,
855
-
856
-
857
- tfn: Freeclimb::TFN.new,
847
+
848
+ tfn: obj
858
849
  )
859
850
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
860
851
  end
@@ -862,106 +853,86 @@ describe Freeclimb::IncomingNumberResult do
862
853
 
863
854
  describe 'test method "_to_hash"' do
864
855
  instance = Freeclimb::IncomingNumberResult.new(
865
- uri: "TS",
866
-
867
-
868
- date_created: "TS",
869
-
870
-
871
- date_updated: "TS",
872
-
873
-
874
- revision: 1,
875
-
876
-
877
-
878
-
879
- campaign_id: "TS",
880
-
881
-
882
- phone_number_id: "TS",
883
-
884
-
885
- account_id: "TS",
886
-
887
-
888
- application_id: "TS",
889
-
890
-
891
- phone_number: "TS",
892
-
893
-
894
- _alias: "TS",
895
-
896
-
897
- region: "TS",
898
-
899
-
900
- country: "TS",
901
-
902
-
903
- voice_enabled: true,
904
-
905
-
906
- sms_enabled: true,
907
-
908
-
909
- offnet: true,
910
-
911
-
912
-
913
- )
914
- 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
915
887
  expect(instance._to_hash(instance.uri)).to eq(instance.uri)
916
888
  end
917
- it 'returns date_created in the form of hash' do
889
+ it "returns date_created in the form of hash" do
918
890
  expect(instance._to_hash(instance.date_created)).to eq(instance.date_created)
919
891
  end
920
- it 'returns date_updated in the form of hash' do
892
+ it "returns date_updated in the form of hash" do
921
893
  expect(instance._to_hash(instance.date_updated)).to eq(instance.date_updated)
922
894
  end
923
- it 'returns revision in the form of hash' do
895
+ it "returns revision in the form of hash" do
924
896
  expect(instance._to_hash(instance.revision)).to eq(instance.revision)
925
897
  end
926
- it 'returns capabilities in the form of hash' do
898
+ it "returns capabilities in the form of hash" do
927
899
  expect(instance._to_hash(instance.capabilities)).to eq(instance.capabilities)
928
900
  end
929
- it 'returns campaign_id in the form of hash' do
901
+ it "returns campaign_id in the form of hash" do
930
902
  expect(instance._to_hash(instance.campaign_id)).to eq(instance.campaign_id)
931
903
  end
932
- it 'returns phone_number_id in the form of hash' do
904
+ it "returns phone_number_id in the form of hash" do
933
905
  expect(instance._to_hash(instance.phone_number_id)).to eq(instance.phone_number_id)
934
906
  end
935
- it 'returns account_id in the form of hash' do
907
+ it "returns account_id in the form of hash" do
936
908
  expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)
937
909
  end
938
- it 'returns application_id in the form of hash' do
910
+ it "returns application_id in the form of hash" do
939
911
  expect(instance._to_hash(instance.application_id)).to eq(instance.application_id)
940
912
  end
941
- it 'returns phone_number in the form of hash' do
913
+ it "returns phone_number in the form of hash" do
942
914
  expect(instance._to_hash(instance.phone_number)).to eq(instance.phone_number)
943
915
  end
944
- it 'returns _alias in the form of hash' do
916
+ it "returns _alias in the form of hash" do
945
917
  expect(instance._to_hash(instance._alias)).to eq(instance._alias)
946
918
  end
947
- it 'returns region in the form of hash' do
919
+ it "returns region in the form of hash" do
948
920
  expect(instance._to_hash(instance.region)).to eq(instance.region)
949
921
  end
950
- it 'returns country in the form of hash' do
922
+ it "returns country in the form of hash" do
951
923
  expect(instance._to_hash(instance.country)).to eq(instance.country)
952
924
  end
953
- it 'returns voice_enabled in the form of hash' do
925
+ it "returns voice_enabled in the form of hash" do
954
926
  expect(instance._to_hash(instance.voice_enabled)).to eq(instance.voice_enabled)
955
927
  end
956
- it 'returns sms_enabled in the form of hash' do
928
+ it "returns sms_enabled in the form of hash" do
957
929
  expect(instance._to_hash(instance.sms_enabled)).to eq(instance.sms_enabled)
958
930
  end
959
- it 'returns offnet in the form of hash' do
931
+ it "returns offnet in the form of hash" do
960
932
  expect(instance._to_hash(instance.offnet)).to eq(instance.offnet)
961
933
  end
962
- it 'returns tfn in the form of hash' do
934
+ it "returns tfn in the form of hash" do
963
935
  expect(instance._to_hash(instance.tfn)).to eq(instance.tfn)
964
936
  end
965
937
  end
966
-
967
938
  end