freeclimb 5.0.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -1
  3. data/Gemfile +4 -4
  4. data/Gemfile.lock +34 -15
  5. data/README.md +5 -4
  6. data/Rakefile +1 -1
  7. data/docs/CreateConferenceRequest.md +1 -1
  8. data/docs/DefaultApi.md +1 -1
  9. data/docs/MessageResult.md +7 -1
  10. data/docs/TFNCampaign.md +34 -0
  11. data/freeclimb.gemspec +21 -26
  12. data/lib/freeclimb/api/default_api.rb +878 -878
  13. data/lib/freeclimb/api_client.rb +78 -83
  14. data/lib/freeclimb/api_error.rb +17 -19
  15. data/lib/freeclimb/configuration.rb +28 -31
  16. data/lib/freeclimb/models/account_request.rb +36 -41
  17. data/lib/freeclimb/models/account_result.rb +88 -92
  18. data/lib/freeclimb/models/account_status.rb +12 -14
  19. data/lib/freeclimb/models/account_type.rb +12 -14
  20. data/lib/freeclimb/models/add_to_conference.rb +81 -85
  21. data/lib/freeclimb/models/add_to_conference_notification_webhook.rb +99 -103
  22. data/lib/freeclimb/models/add_to_queue_notification_webhook.rb +78 -82
  23. data/lib/freeclimb/models/answered_by.rb +12 -14
  24. data/lib/freeclimb/models/application_list.rb +74 -78
  25. data/lib/freeclimb/models/application_request.rb +66 -70
  26. data/lib/freeclimb/models/application_result.rb +100 -104
  27. data/lib/freeclimb/models/available_number.rb +66 -70
  28. data/lib/freeclimb/models/available_number_list.rb +74 -78
  29. data/lib/freeclimb/models/barge_in_reason.rb +12 -14
  30. data/lib/freeclimb/models/buy_incoming_number_request.rb +41 -45
  31. data/lib/freeclimb/models/call_control_webhook.rb +56 -61
  32. data/lib/freeclimb/models/call_direction.rb +12 -14
  33. data/lib/freeclimb/models/call_ended_reason.rb +12 -14
  34. data/lib/freeclimb/models/call_list.rb +74 -78
  35. data/lib/freeclimb/models/call_result.rb +142 -146
  36. data/lib/freeclimb/models/call_status.rb +12 -14
  37. data/lib/freeclimb/models/call_status_webhook.rb +84 -88
  38. data/lib/freeclimb/models/capabilities.rb +55 -59
  39. data/lib/freeclimb/models/completion_request.rb +32 -36
  40. data/lib/freeclimb/models/completion_result.rb +36 -40
  41. data/lib/freeclimb/models/completion_result_status.rb +12 -14
  42. data/lib/freeclimb/models/conference_list.rb +74 -78
  43. data/lib/freeclimb/models/conference_participant_list.rb +74 -78
  44. data/lib/freeclimb/models/conference_participant_result.rb +88 -92
  45. data/lib/freeclimb/models/conference_recording_status_webhook.rb +99 -103
  46. data/lib/freeclimb/models/conference_result.rb +106 -110
  47. data/lib/freeclimb/models/conference_status.rb +12 -14
  48. data/lib/freeclimb/models/conference_status_webhook.rb +102 -106
  49. data/lib/freeclimb/models/create_conference.rb +60 -63
  50. data/lib/freeclimb/models/create_conference_request.rb +55 -54
  51. data/lib/freeclimb/models/create_conference_webhook.rb +102 -106
  52. data/lib/freeclimb/models/create_web_rtc_token.rb +42 -46
  53. data/lib/freeclimb/models/dequeue.rb +30 -37
  54. data/lib/freeclimb/models/dequeue_webhook.rb +89 -93
  55. data/lib/freeclimb/models/enqueue.rb +48 -52
  56. data/lib/freeclimb/models/filter_logs_request.rb +31 -35
  57. data/lib/freeclimb/models/get_digits.rb +73 -77
  58. data/lib/freeclimb/models/get_digits_reason.rb +12 -14
  59. data/lib/freeclimb/models/get_digits_webhook.rb +93 -97
  60. data/lib/freeclimb/models/get_speech.rb +94 -97
  61. data/lib/freeclimb/models/get_speech_reason.rb +12 -14
  62. data/lib/freeclimb/models/get_speech_webhook.rb +118 -122
  63. data/lib/freeclimb/models/grammar_file_built_in.rb +12 -14
  64. data/lib/freeclimb/models/grammar_type.rb +12 -14
  65. data/lib/freeclimb/models/hangup.rb +34 -39
  66. data/lib/freeclimb/models/if_machine.rb +12 -14
  67. data/lib/freeclimb/models/inbound_call_webhook.rb +85 -89
  68. data/lib/freeclimb/models/incoming_number_list.rb +74 -78
  69. data/lib/freeclimb/models/incoming_number_request.rb +41 -45
  70. data/lib/freeclimb/models/incoming_number_result.rb +122 -126
  71. data/lib/freeclimb/models/language.rb +12 -14
  72. data/lib/freeclimb/models/leave_conference_webhook.rb +79 -83
  73. data/lib/freeclimb/models/log_level.rb +12 -14
  74. data/lib/freeclimb/models/log_list.rb +74 -78
  75. data/lib/freeclimb/models/log_result.rb +67 -71
  76. data/lib/freeclimb/models/machine_detected_webhook.rb +89 -93
  77. data/lib/freeclimb/models/machine_type.rb +12 -14
  78. data/lib/freeclimb/models/make_call_request.rb +77 -81
  79. data/lib/freeclimb/models/message_delivery_webhook.rb +81 -86
  80. data/lib/freeclimb/models/message_direction.rb +12 -14
  81. data/lib/freeclimb/models/message_request.rb +72 -75
  82. data/lib/freeclimb/models/message_result.rb +150 -123
  83. data/lib/freeclimb/models/message_status.rb +12 -14
  84. data/lib/freeclimb/models/message_status_webhook.rb +86 -90
  85. data/lib/freeclimb/models/messages_list.rb +74 -78
  86. data/lib/freeclimb/models/mutable_resource_model.rb +46 -51
  87. data/lib/freeclimb/models/out_dial.rb +80 -84
  88. data/lib/freeclimb/models/out_dial_api_connect_webhook.rb +84 -88
  89. data/lib/freeclimb/models/out_dial_connect_webhook.rb +84 -88
  90. data/lib/freeclimb/models/out_dial_start_webhook.rb +90 -94
  91. data/lib/freeclimb/models/pagination_model.rb +67 -71
  92. data/lib/freeclimb/models/park.rb +44 -48
  93. data/lib/freeclimb/models/pause.rb +33 -37
  94. data/lib/freeclimb/models/percl_command.rb +36 -40
  95. data/lib/freeclimb/models/percl_script.rb +32 -36
  96. data/lib/freeclimb/models/play.rb +44 -48
  97. data/lib/freeclimb/models/play_beep.rb +12 -14
  98. data/lib/freeclimb/models/play_early_media.rb +33 -37
  99. data/lib/freeclimb/models/queue_list.rb +74 -78
  100. data/lib/freeclimb/models/queue_member.rb +55 -59
  101. data/lib/freeclimb/models/queue_member_list.rb +74 -78
  102. data/lib/freeclimb/models/queue_request.rb +37 -42
  103. data/lib/freeclimb/models/queue_result.rb +88 -92
  104. data/lib/freeclimb/models/queue_result_status.rb +12 -14
  105. data/lib/freeclimb/models/queue_wait_webhook.rb +94 -98
  106. data/lib/freeclimb/models/record_utterance.rb +63 -67
  107. data/lib/freeclimb/models/record_utterance_term_reason.rb +12 -14
  108. data/lib/freeclimb/models/record_webhook.rb +119 -123
  109. data/lib/freeclimb/models/recording_list.rb +74 -78
  110. data/lib/freeclimb/models/recording_result.rb +76 -80
  111. data/lib/freeclimb/models/redirect.rb +33 -37
  112. data/lib/freeclimb/models/redirect_webhook.rb +84 -88
  113. data/lib/freeclimb/models/reject.rb +34 -39
  114. data/lib/freeclimb/models/remove_from_conference.rb +30 -37
  115. data/lib/freeclimb/models/remove_from_queue_notification_webhook.rb +89 -93
  116. data/lib/freeclimb/models/request_type.rb +12 -14
  117. data/lib/freeclimb/models/say.rb +49 -53
  118. data/lib/freeclimb/models/send_digits.rb +43 -47
  119. data/lib/freeclimb/models/set_dtmf_pass_through.rb +34 -39
  120. data/lib/freeclimb/models/set_listen.rb +34 -39
  121. data/lib/freeclimb/models/set_talk.rb +34 -39
  122. data/lib/freeclimb/models/sms.rb +48 -52
  123. data/lib/freeclimb/models/sms_ten_dlc_brand.rb +187 -190
  124. data/lib/freeclimb/models/sms_ten_dlc_brand_alt_business_id_type.rb +12 -14
  125. data/lib/freeclimb/models/sms_ten_dlc_brand_entity_type.rb +12 -14
  126. data/lib/freeclimb/models/sms_ten_dlc_brand_identity_status.rb +12 -14
  127. data/lib/freeclimb/models/sms_ten_dlc_brand_relationship.rb +12 -14
  128. data/lib/freeclimb/models/sms_ten_dlc_brand_stock_exchange.rb +12 -14
  129. data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +74 -78
  130. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +226 -229
  131. data/lib/freeclimb/models/sms_ten_dlc_campaign_status.rb +12 -14
  132. data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +74 -78
  133. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +186 -189
  134. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +84 -87
  135. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_status.rb +12 -14
  136. data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +74 -78
  137. data/lib/freeclimb/models/sms_toll_free_campaign.rb +61 -64
  138. data/lib/freeclimb/models/sms_toll_free_campaign_registration_status.rb +12 -14
  139. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +74 -78
  140. data/lib/freeclimb/models/start_record_call.rb +30 -37
  141. data/lib/freeclimb/models/terminate_conference.rb +30 -37
  142. data/lib/freeclimb/models/tfn.rb +31 -35
  143. data/lib/freeclimb/models/tfn_campaign.rb +367 -0
  144. data/lib/freeclimb/models/transcribe_reason.rb +12 -14
  145. data/lib/freeclimb/models/transcribe_term_reason.rb +12 -14
  146. data/lib/freeclimb/models/transcribe_utterance.rb +61 -65
  147. data/lib/freeclimb/models/transcribe_utterance_record.rb +43 -47
  148. data/lib/freeclimb/models/transcribe_webhook.rb +150 -154
  149. data/lib/freeclimb/models/unpark.rb +30 -37
  150. data/lib/freeclimb/models/update_call_request.rb +31 -35
  151. data/lib/freeclimb/models/update_call_request_status.rb +12 -14
  152. data/lib/freeclimb/models/update_conference_participant_request.rb +41 -46
  153. data/lib/freeclimb/models/update_conference_request.rb +41 -45
  154. data/lib/freeclimb/models/update_conference_request_status.rb +12 -14
  155. data/lib/freeclimb/models/webhook.rb +32 -37
  156. data/lib/freeclimb/utils/request_verifier.rb +14 -14
  157. data/lib/freeclimb/utils/signature_information.rb +8 -8
  158. data/lib/freeclimb/version.rb +10 -12
  159. data/lib/freeclimb.rb +156 -157
  160. data/openapi.json +96 -38
  161. data/package.json +1 -1
  162. data/spec/api/default_api_spec.rb +531 -793
  163. data/spec/api_client_spec.rb +100 -102
  164. data/spec/configuration_spec.rb +16 -18
  165. data/spec/models/account_request_spec.rb +106 -124
  166. data/spec/models/account_result_spec.rb +396 -453
  167. data/spec/models/account_status_spec.rb +28 -30
  168. data/spec/models/account_type_spec.rb +25 -27
  169. data/spec/models/add_to_conference_notification_webhook_spec.rb +465 -549
  170. data/spec/models/add_to_conference_spec.rb +355 -382
  171. data/spec/models/add_to_queue_notification_webhook_spec.rb +342 -402
  172. data/spec/models/answered_by_spec.rb +25 -27
  173. data/spec/models/application_list_spec.rb +290 -326
  174. data/spec/models/application_request_spec.rb +266 -289
  175. data/spec/models/application_result_spec.rb +445 -476
  176. data/spec/models/available_number_list_spec.rb +290 -326
  177. data/spec/models/available_number_spec.rb +279 -299
  178. data/spec/models/barge_in_reason_spec.rb +28 -30
  179. data/spec/models/buy_incoming_number_request_spec.rb +137 -156
  180. data/spec/models/call_control_webhook_spec.rb +204 -225
  181. data/spec/models/call_direction_spec.rb +28 -30
  182. data/spec/models/call_ended_reason_spec.rb +108 -110
  183. data/spec/models/call_list_spec.rb +290 -326
  184. data/spec/models/call_result_spec.rb +684 -772
  185. data/spec/models/call_status_spec.rb +48 -50
  186. data/spec/models/call_status_webhook_spec.rb +414 -492
  187. data/spec/models/capabilities_spec.rb +203 -223
  188. data/spec/models/completion_request_spec.rb +76 -92
  189. data/spec/models/completion_result_spec.rb +107 -143
  190. data/spec/models/completion_result_status_spec.rb +25 -27
  191. data/spec/models/conference_list_spec.rb +290 -326
  192. data/spec/models/conference_participant_list_spec.rb +290 -326
  193. data/spec/models/conference_participant_result_spec.rb +385 -414
  194. data/spec/models/conference_recording_status_webhook_spec.rb +465 -549
  195. data/spec/models/conference_result_spec.rb +492 -553
  196. data/spec/models/conference_status_spec.rb +32 -34
  197. data/spec/models/conference_status_webhook_spec.rb +465 -549
  198. data/spec/models/create_conference_request_spec.rb +205 -245
  199. data/spec/models/create_conference_spec.rb +237 -278
  200. data/spec/models/create_conference_webhook_spec.rb +465 -549
  201. data/spec/models/create_web_rtc_token_spec.rb +137 -159
  202. data/spec/models/dequeue_spec.rb +15 -17
  203. data/spec/models/dequeue_webhook_spec.rb +401 -465
  204. data/spec/models/enqueue_spec.rb +170 -190
  205. data/spec/models/filter_logs_request_spec.rb +74 -91
  206. data/spec/models/get_digits_reason_spec.rb +32 -34
  207. data/spec/models/get_digits_spec.rb +327 -361
  208. data/spec/models/get_digits_webhook_spec.rb +436 -517
  209. data/spec/models/get_speech_reason_spec.rb +40 -42
  210. data/spec/models/get_speech_spec.rb +400 -492
  211. data/spec/models/get_speech_webhook_spec.rb +608 -698
  212. data/spec/models/grammar_file_built_in_spec.rb +76 -78
  213. data/spec/models/grammar_type_spec.rb +25 -27
  214. data/spec/models/hangup_spec.rb +74 -91
  215. data/spec/models/if_machine_spec.rb +25 -27
  216. data/spec/models/inbound_call_webhook_spec.rb +372 -433
  217. data/spec/models/incoming_number_list_spec.rb +290 -326
  218. data/spec/models/incoming_number_request_spec.rb +137 -156
  219. data/spec/models/incoming_number_result_spec.rb +584 -613
  220. data/spec/models/language_spec.rb +121 -123
  221. data/spec/models/leave_conference_webhook_spec.rb +342 -402
  222. data/spec/models/log_level_spec.rb +28 -30
  223. data/spec/models/log_list_spec.rb +290 -326
  224. data/spec/models/log_result_spec.rb +275 -311
  225. data/spec/models/machine_detected_webhook_spec.rb +402 -482
  226. data/spec/models/machine_type_spec.rb +25 -27
  227. data/spec/models/make_call_request_spec.rb +354 -383
  228. data/spec/models/message_delivery_webhook_spec.rb +358 -384
  229. data/spec/models/message_direction_spec.rb +25 -27
  230. data/spec/models/message_request_spec.rb +325 -352
  231. data/spec/models/message_result_spec.rb +674 -598
  232. data/spec/models/message_status_spec.rb +61 -63
  233. data/spec/models/message_status_webhook_spec.rb +406 -451
  234. data/spec/models/messages_list_spec.rb +290 -326
  235. data/spec/models/mutable_resource_model_spec.rb +169 -191
  236. data/spec/models/out_dial_api_connect_webhook_spec.rb +372 -433
  237. data/spec/models/out_dial_connect_webhook_spec.rb +372 -433
  238. data/spec/models/out_dial_spec.rb +355 -401
  239. data/spec/models/out_dial_start_webhook_spec.rb +402 -464
  240. data/spec/models/pagination_model_spec.rb +260 -295
  241. data/spec/models/park_spec.rb +137 -156
  242. data/spec/models/pause_spec.rb +73 -92
  243. data/spec/models/percl_command_spec.rb +77 -94
  244. data/spec/models/percl_script_spec.rb +74 -91
  245. data/spec/models/play_beep_spec.rb +32 -34
  246. data/spec/models/play_early_media_spec.rb +74 -91
  247. data/spec/models/play_spec.rb +136 -157
  248. data/spec/models/queue_list_spec.rb +290 -326
  249. data/spec/models/queue_member_list_spec.rb +290 -326
  250. data/spec/models/queue_member_spec.rb +200 -225
  251. data/spec/models/queue_request_spec.rb +105 -125
  252. data/spec/models/queue_result_spec.rb +391 -419
  253. data/spec/models/queue_result_status_spec.rb +32 -34
  254. data/spec/models/queue_wait_webhook_spec.rb +430 -497
  255. data/spec/models/record_utterance_spec.rb +264 -291
  256. data/spec/models/record_utterance_term_reason_spec.rb +32 -34
  257. data/spec/models/record_webhook_spec.rb +605 -693
  258. data/spec/models/recording_list_spec.rb +290 -326
  259. data/spec/models/recording_result_spec.rb +324 -353
  260. data/spec/models/redirect_spec.rb +74 -91
  261. data/spec/models/redirect_webhook_spec.rb +372 -433
  262. data/spec/models/reject_spec.rb +74 -91
  263. data/spec/models/remove_from_conference_spec.rb +15 -17
  264. data/spec/models/remove_from_queue_notification_webhook_spec.rb +405 -487
  265. data/spec/models/request_type_spec.rb +108 -110
  266. data/spec/models/say_spec.rb +169 -191
  267. data/spec/models/send_digits_spec.rb +136 -157
  268. data/spec/models/set_dtmf_pass_through_spec.rb +75 -91
  269. data/spec/models/set_listen_spec.rb +75 -91
  270. data/spec/models/set_talk_spec.rb +75 -91
  271. data/spec/models/sms_spec.rb +170 -190
  272. data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +32 -34
  273. data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +36 -38
  274. data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +32 -34
  275. data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +36 -38
  276. data/spec/models/sms_ten_dlc_brand_spec.rb +1083 -1201
  277. data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +125 -127
  278. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +290 -326
  279. data/spec/models/sms_ten_dlc_campaign_spec.rb +1140 -1208
  280. data/spec/models/sms_ten_dlc_campaign_status_spec.rb +25 -27
  281. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +290 -326
  282. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +407 -425
  283. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +965 -1015
  284. data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +25 -27
  285. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +290 -326
  286. data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +36 -38
  287. data/spec/models/sms_toll_free_campaign_spec.rb +271 -314
  288. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +290 -326
  289. data/spec/models/start_record_call_spec.rb +15 -17
  290. data/spec/models/terminate_conference_spec.rb +15 -17
  291. data/spec/models/tfn_campaign_spec.rb +561 -0
  292. data/spec/models/tfn_spec.rb +74 -91
  293. data/spec/models/transcribe_reason_spec.rb +36 -38
  294. data/spec/models/transcribe_term_reason_spec.rb +25 -27
  295. data/spec/models/transcribe_utterance_record_spec.rb +135 -158
  296. data/spec/models/transcribe_utterance_spec.rb +245 -265
  297. data/spec/models/transcribe_webhook_spec.rb +750 -874
  298. data/spec/models/unpark_spec.rb +15 -17
  299. data/spec/models/update_call_request_spec.rb +75 -109
  300. data/spec/models/update_call_request_status_spec.rb +25 -27
  301. data/spec/models/update_conference_participant_request_spec.rb +138 -156
  302. data/spec/models/update_conference_request_spec.rb +141 -195
  303. data/spec/models/update_conference_request_status_spec.rb +25 -27
  304. data/spec/models/webhook_spec.rb +69 -86
  305. data/spec/quickstart_spec.rb +5 -5
  306. data/spec/spec_helper.rb +92 -100
  307. data/spec/utils/request_verifier_spec.rb +70 -71
  308. data/spec/utils/signature_information_spec.rb +23 -23
  309. data/yarn.lock +9 -0
  310. metadata +9 -153
@@ -1,18 +1,17 @@
1
- =begin
2
- #FreeClimb API
1
+ # #FreeClimb API
2
+ #
3
+ # FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
4
+ #
5
+ # The version of the OpenAPI document: 1.0.0
6
+ # Contact: support@freeclimb.com
7
+ # Generated by: https://openapi-generator.tech
8
+ # OpenAPI Generator version: 7.9.0
9
+ #
3
10
 
4
- #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
-
6
- The version of the OpenAPI document: 1.0.0
7
- Contact: support@freeclimb.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.9.0
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
- require 'date'
11
+ require "spec_helper"
12
+ require "json"
13
+ require "date"
14
+ include Freeclimb
16
15
 
17
16
  # Unit tests for Freeclimb::AccountResult
18
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -20,443 +19,409 @@ require 'date'
20
19
  describe Freeclimb::AccountResult do
21
20
  let(:instance) { Freeclimb::AccountResult.new }
22
21
 
23
- describe 'test an instance of AccountResult' do
24
- it 'should create an instance of AccountResult' do
22
+ describe "test an instance of AccountResult" do
23
+ it "should create an instance of AccountResult" do
25
24
  expect(instance).to be_instance_of(Freeclimb::AccountResult)
26
25
  end
27
26
  end
28
-
27
+
29
28
  describe 'test attribute "uri"' do
30
- it 'should work' do
29
+ it "should work" do
31
30
  instance.uri = "TEST_STRING"
32
- expect(instance.uri).to eq("TEST_STRING")
33
-
31
+ expect(instance.uri).to eq("TEST_STRING")
34
32
  end
35
33
  end
36
34
 
37
35
  describe 'test attribute "date_created"' do
38
- it 'should work' do
36
+ it "should work" do
39
37
  instance.date_created = "TEST_STRING"
40
- expect(instance.date_created).to eq("TEST_STRING")
41
-
38
+ expect(instance.date_created).to eq("TEST_STRING")
42
39
  end
43
40
  end
44
41
 
45
42
  describe 'test attribute "date_updated"' do
46
- it 'should work' do
43
+ it "should work" do
47
44
  instance.date_updated = "TEST_STRING"
48
- expect(instance.date_updated).to eq("TEST_STRING")
49
-
45
+ expect(instance.date_updated).to eq("TEST_STRING")
50
46
  end
51
47
  end
52
48
 
53
49
  describe 'test attribute "revision"' do
54
- it 'should work' do
55
-
56
-
50
+ it "should work" do
57
51
  instance.revision = 1
58
52
  expect(instance.revision).to eq(1)
59
-
60
53
  end
61
54
  end
62
55
 
63
56
  describe 'test attribute "account_id"' do
64
- it 'should work' do
57
+ it "should work" do
65
58
  instance.account_id = "TEST_STRING"
66
- expect(instance.account_id).to eq("TEST_STRING")
67
-
59
+ expect(instance.account_id).to eq("TEST_STRING")
68
60
  end
69
61
  end
70
62
 
71
63
  describe 'test attribute "api_key"' do
72
- it 'should work' do
64
+ it "should work" do
73
65
  instance.api_key = "TEST_STRING"
74
- expect(instance.api_key).to eq("TEST_STRING")
75
-
66
+ expect(instance.api_key).to eq("TEST_STRING")
76
67
  end
77
68
  end
78
69
 
79
70
  describe 'test attribute "_alias"' do
80
- it 'should work' do
71
+ it "should work" do
81
72
  instance._alias = "TEST_STRING"
82
- expect(instance._alias).to eq("TEST_STRING")
83
-
73
+ expect(instance._alias).to eq("TEST_STRING")
84
74
  end
85
75
  end
86
76
 
87
77
  describe 'test attribute "label"' do
88
- it 'should work' do
78
+ it "should work" do
89
79
  instance.label = "TEST_STRING"
90
- expect(instance.label).to eq("TEST_STRING")
91
-
80
+ expect(instance.label).to eq("TEST_STRING")
92
81
  end
93
82
  end
94
83
 
95
-
96
84
  describe 'test attribute "type"' do
97
- it 'assigns value TRIAL' do
85
+ it "assigns value TRIAL" do
98
86
  instance.type = Freeclimb::AccountType::TRIAL
99
- expect(instance.type).to eq(Freeclimb::AccountType::TRIAL)
87
+ expect(instance.type).to eq(Freeclimb::AccountType::TRIAL)
100
88
  end
101
- it 'assigns value FULL' do
89
+ it "assigns value FULL" do
102
90
  instance.type = Freeclimb::AccountType::FULL
103
- expect(instance.type).to eq(Freeclimb::AccountType::FULL)
91
+ expect(instance.type).to eq(Freeclimb::AccountType::FULL)
104
92
  end
105
93
  end
106
94
 
107
95
  describe 'test attribute "status"' do
108
- it 'assigns value CLOSED' do
96
+ it "assigns value CLOSED" do
109
97
  instance.status = Freeclimb::AccountStatus::CLOSED
110
- expect(instance.status).to eq(Freeclimb::AccountStatus::CLOSED)
98
+ expect(instance.status).to eq(Freeclimb::AccountStatus::CLOSED)
111
99
  end
112
- it 'assigns value SUSPENDED' do
100
+ it "assigns value SUSPENDED" do
113
101
  instance.status = Freeclimb::AccountStatus::SUSPENDED
114
- expect(instance.status).to eq(Freeclimb::AccountStatus::SUSPENDED)
102
+ expect(instance.status).to eq(Freeclimb::AccountStatus::SUSPENDED)
115
103
  end
116
- it 'assigns value ACTIVE' do
104
+ it "assigns value ACTIVE" do
117
105
  instance.status = Freeclimb::AccountStatus::ACTIVE
118
- expect(instance.status).to eq(Freeclimb::AccountStatus::ACTIVE)
106
+ expect(instance.status).to eq(Freeclimb::AccountStatus::ACTIVE)
119
107
  end
120
108
  end
121
109
  describe 'test attribute "subresource_uris"' do
122
- it 'should work' do
123
-
124
- testObject = Object.new()
110
+ it "should work" do
111
+ testObject = Object.new
125
112
  instance.subresource_uris = testObject
126
113
  expect(instance.subresource_uris).to eq(testObject)
114
+
115
+ instance.subresource_uris = Object.new
116
+ expect(instance.subresource_uris).to be_instance_of(Object)
127
117
  end
128
118
  end
129
119
 
130
120
  describe 'test method "initialize"' do
131
- it 'properly initializes with values' do
132
- expect { instance = Freeclimb::AccountResult.new(
133
- uri: "TS",
134
-
135
- date_created: "TS",
136
-
137
- date_updated: "TS",
138
-
139
- revision: 1,
140
-
141
- account_id: "TS",
142
-
143
- api_key: "TS",
144
-
145
- _alias: "TS",
146
-
147
- label: "TS",
148
-
149
-
150
- type: Freeclimb::AccountType::TRIAL,
151
-
152
-
153
- status: Freeclimb::AccountStatus::CLOSED,
154
-
155
- subresource_uris: Object.new(),
156
-
157
- )}.not_to raise_error()
158
- end
159
- it 'fails to initialize with input argument that is not a hash in Freeclimb::AccountResult' do
160
- expect { instance = Freeclimb::AccountResult.new(
161
- uri: "TS",
162
-
163
- date_created: "TS",
164
-
165
- date_updated: "TS",
166
-
167
- revision: 1,
168
-
169
- account_id: "TS",
170
-
171
- api_key: "TS",
172
-
173
- _alias: "TS",
174
-
175
- label: "TS",
176
-
177
-
178
- type: Freeclimb::AccountType::TRIAL,
179
-
180
-
181
- status: Freeclimb::AccountStatus::CLOSED,
182
-
183
- subresource_uris: Object.new(),
184
-
185
- invalid_attribute: true
186
- )}.to raise_error(ArgumentError)
187
- end
188
- it 'fails to initialize with invalid attribute' do
189
- expect { instance = Freeclimb::AccountResult.new(
190
- uri: "TS",
191
-
192
- date_created: "TS",
193
-
194
- date_updated: "TS",
195
-
196
- revision: 1,
197
-
198
- account_id: "TS",
199
-
200
- api_key: "TS",
201
-
202
- _alias: "TS",
203
-
204
- label: "TS",
205
-
206
-
207
- type: Freeclimb::AccountType::TRIAL,
208
-
209
-
210
- status: Freeclimb::AccountStatus::CLOSED,
211
-
212
- subresource_uris: Object.new(),
213
-
214
- invalid_attribute: true
215
- )}.to raise_error(ArgumentError)
216
- end
217
- end
218
-
219
- describe 'test method "valid"' do
220
- it 'checks if properties are valid' do
221
- instance = Freeclimb::AccountResult.new(
121
+ it "properly initializes with values" do
122
+ expect {
123
+ Freeclimb::AccountResult.new(
222
124
  uri: "TS",
223
-
125
+
224
126
  date_created: "TS",
225
-
127
+
226
128
  date_updated: "TS",
227
-
129
+
228
130
  revision: 1,
229
-
131
+
230
132
  account_id: "TS",
231
-
133
+
232
134
  api_key: "TS",
233
-
135
+
234
136
  _alias: "TS",
235
-
137
+
236
138
  label: "TS",
237
-
238
-
139
+
239
140
  type: Freeclimb::AccountType::TRIAL,
240
-
241
-
242
- status: Freeclimb::AccountStatus::CLOSED,
243
-
244
- subresource_uris: Object.new(),
245
-
246
- )
247
- expect(instance.valid?).to eq(true)
248
- end
249
141
 
142
+ status: Freeclimb::AccountStatus::CLOSED,
250
143
 
251
- skip 'checks if properties are invalid' do
252
- instance = Freeclimb::AccountResult.new(
253
-
254
- )
255
- expect(instance.valid?).to eq(false)
144
+ subresource_uris: Object.new
145
+ )
146
+ }.not_to raise_error
256
147
  end
257
-
258
- end
259
-
260
- describe 'test method "eql?"' do
261
- it 'checks if objects are equal' do
262
- obj = Object.new()
263
- instance_1 = Freeclimb::AccountResult.new(
148
+ it "fails to initialize with input argument that is not a hash in Freeclimb::AccountResult" do
149
+ expect {
150
+ Freeclimb::AccountResult.new(
264
151
  uri: "TS",
265
-
152
+
266
153
  date_created: "TS",
267
-
154
+
268
155
  date_updated: "TS",
269
-
156
+
270
157
  revision: 1,
271
-
158
+
272
159
  account_id: "TS",
273
-
160
+
274
161
  api_key: "TS",
275
-
162
+
276
163
  _alias: "TS",
277
-
164
+
278
165
  label: "TS",
279
-
280
-
166
+
281
167
  type: Freeclimb::AccountType::TRIAL,
282
-
283
-
168
+
284
169
  status: Freeclimb::AccountStatus::CLOSED,
285
-
286
- subresource_uris: obj,
287
-
288
- )
289
- instance_2 = Freeclimb::AccountResult.new(
170
+
171
+ subresource_uris: Object.new,
172
+
173
+ invalid_attribute: true
174
+ )
175
+ }.to raise_error(ArgumentError)
176
+ end
177
+ it "fails to initialize with invalid attribute" do
178
+ expect {
179
+ Freeclimb::AccountResult.new(
290
180
  uri: "TS",
291
-
181
+
292
182
  date_created: "TS",
293
-
183
+
294
184
  date_updated: "TS",
295
-
185
+
296
186
  revision: 1,
297
-
187
+
298
188
  account_id: "TS",
299
-
189
+
300
190
  api_key: "TS",
301
-
191
+
302
192
  _alias: "TS",
303
-
193
+
304
194
  label: "TS",
305
-
306
-
195
+
307
196
  type: Freeclimb::AccountType::TRIAL,
308
-
309
-
197
+
310
198
  status: Freeclimb::AccountStatus::CLOSED,
311
-
312
- subresource_uris: obj,
313
-
199
+
200
+ subresource_uris: Object.new,
201
+
202
+ invalid_attribute: true
203
+ )
204
+ }.to raise_error(ArgumentError)
205
+ end
206
+ end
207
+
208
+ describe 'test method "valid"' do
209
+ it "checks if properties are valid" do
210
+ instance = Freeclimb::AccountResult.new(
211
+ uri: "TS",
212
+
213
+ date_created: "TS",
214
+
215
+ date_updated: "TS",
216
+
217
+ revision: 1,
218
+
219
+ account_id: "TS",
220
+
221
+ api_key: "TS",
222
+
223
+ _alias: "TS",
224
+
225
+ label: "TS",
226
+
227
+ type: Freeclimb::AccountType::TRIAL,
228
+
229
+ status: Freeclimb::AccountStatus::CLOSED,
230
+
231
+ subresource_uris: Object.new
232
+ )
233
+ expect(instance.valid?).to eq(true)
234
+ end
235
+
236
+ skip "checks if properties are invalid" do
237
+ instance = Freeclimb::AccountResult.new
238
+
239
+ expect(instance.valid?).to eq(false)
240
+ end
241
+ end
242
+
243
+ describe 'test method "eql?"' do
244
+ it "checks if objects are equal" do
245
+ obj_Object = Object.new
246
+
247
+ instance_1 = Freeclimb::AccountResult.new(
248
+ uri: "TS",
249
+
250
+ date_created: "TS",
251
+
252
+ date_updated: "TS",
253
+
254
+ revision: 1,
255
+
256
+ account_id: "TS",
257
+
258
+ api_key: "TS",
259
+
260
+ _alias: "TS",
261
+
262
+ label: "TS",
263
+
264
+ type: Freeclimb::AccountType::TRIAL,
265
+
266
+ status: Freeclimb::AccountStatus::CLOSED,
267
+
268
+ subresource_uris: obj_Object
269
+ )
270
+ instance_2 = Freeclimb::AccountResult.new(
271
+ uri: "TS",
272
+
273
+ date_created: "TS",
274
+
275
+ date_updated: "TS",
276
+
277
+ revision: 1,
278
+
279
+ account_id: "TS",
280
+
281
+ api_key: "TS",
282
+
283
+ _alias: "TS",
284
+
285
+ label: "TS",
286
+
287
+ type: Freeclimb::AccountType::TRIAL,
288
+
289
+ status: Freeclimb::AccountStatus::CLOSED,
290
+
291
+ subresource_uris: obj_Object
314
292
  )
315
293
  expect(instance_1.eql?(instance_2)).to eq(true)
316
294
  end
317
-
318
- it 'checks if objects are not equal' do
295
+
296
+ it "checks if objects are not equal" do
319
297
  instance_1 = Freeclimb::AccountResult.new(
320
- uri: "TS",
321
-
322
- date_created: "TS",
323
-
324
- date_updated: "TS",
325
-
326
- revision: 2,
327
-
328
- account_id: "TS",
329
-
330
- api_key: "TS",
331
-
332
- _alias: "TS",
333
-
334
- label: "TS",
335
-
336
-
337
- type: Freeclimb::AccountType::TRIAL,
338
-
339
-
340
- status: Freeclimb::AccountStatus::CLOSED,
341
-
342
- subresource_uris: Object.new(),
343
-
298
+ uri: "TS",
299
+
300
+ date_created: "TS",
301
+
302
+ date_updated: "TS",
303
+
304
+ revision: 2,
305
+
306
+ account_id: "TS",
307
+
308
+ api_key: "TS",
309
+
310
+ _alias: "TS",
311
+
312
+ label: "TS",
313
+
314
+ type: Freeclimb::AccountType::TRIAL,
315
+
316
+ status: Freeclimb::AccountStatus::CLOSED,
317
+
318
+ subresource_uris: Object.new,
319
+
320
+ subresource_uris: Object.new
344
321
  )
345
322
  instance_2 = Freeclimb::AccountResult.new(
346
- uri: "ST",
347
-
348
- date_created: "ST",
349
-
350
- date_updated: "ST",
351
-
352
- revision: 1,
353
-
354
- account_id: "ST",
355
-
356
- api_key: "ST",
357
-
358
- _alias: "ST",
359
-
360
- label: "ST",
361
-
362
-
363
- type: nil,
364
-
365
-
366
- status: nil,
367
-
368
- subresource_uris: nil,
369
-
323
+ uri: "ST",
324
+
325
+ date_created: "ST",
326
+
327
+ date_updated: "ST",
328
+
329
+ revision: 1,
330
+
331
+ account_id: "ST",
332
+
333
+ api_key: "ST",
334
+
335
+ _alias: "ST",
336
+
337
+ label: "ST",
338
+
339
+ type: nil,
340
+
341
+ status: nil,
342
+
343
+ subresource_uris: Object.new
370
344
  )
371
345
  expect(instance_1.eql?(instance_2)).to eq(false)
372
346
  end
373
347
  end
374
-
348
+
375
349
  describe 'test method "hash"' do
376
- it 'calculates hash code' do
350
+ it "calculates hash code" do
377
351
  instance = Freeclimb::AccountResult.new(
378
- uri: "TS",
379
-
380
- date_created: "TS",
381
-
382
- date_updated: "TS",
383
-
384
- revision: 1,
385
-
386
- account_id: "TS",
387
-
388
- api_key: "TS",
389
-
390
- _alias: "TS",
391
-
392
- label: "TS",
393
-
394
-
395
- type: Freeclimb::AccountType::TRIAL,
396
-
397
-
398
- status: Freeclimb::AccountStatus::CLOSED,
399
-
400
- subresource_uris: Object.new(),
401
-
402
- )
352
+ uri: "TS",
353
+
354
+ date_created: "TS",
355
+
356
+ date_updated: "TS",
357
+
358
+ revision: 1,
359
+
360
+ account_id: "TS",
361
+
362
+ api_key: "TS",
363
+
364
+ _alias: "TS",
365
+
366
+ label: "TS",
367
+
368
+ type: Freeclimb::AccountType::TRIAL,
369
+
370
+ status: Freeclimb::AccountStatus::CLOSED,
371
+
372
+ subresource_uris: Object.new
373
+ )
403
374
  expect(instance.hash).to be_a_kind_of(Integer)
404
375
  end
405
376
  end
406
377
 
407
378
  describe 'test method "build_from_hash"' do
408
- it 'builds equivalent model from hash code' do
379
+ it "builds equivalent model from hash code" do
409
380
  instance_1 = Freeclimb::AccountResult.new(
410
381
  uri: "TS",
411
-
382
+
412
383
  date_created: "TS",
413
-
384
+
414
385
  date_updated: "TS",
415
-
386
+
416
387
  revision: 1,
417
-
388
+
418
389
  account_id: "TS",
419
-
390
+
420
391
  api_key: "TS",
421
-
392
+
422
393
  _alias: "TS",
423
-
394
+
424
395
  label: "TS",
425
-
426
-
396
+
427
397
  type: Freeclimb::AccountType::TRIAL,
428
-
429
-
398
+
430
399
  status: Freeclimb::AccountStatus::CLOSED,
431
-
432
- subresource_uris: Object.new(),
433
-
400
+
401
+ subresource_uris: Object.new
434
402
  )
435
403
  instance_2 = Freeclimb::AccountResult.new(
436
404
  uri: "TS",
437
-
405
+
438
406
  date_created: "TS",
439
-
407
+
440
408
  date_updated: "TS",
441
-
409
+
442
410
  revision: 1,
443
-
411
+
444
412
  account_id: "TS",
445
-
413
+
446
414
  api_key: "TS",
447
-
415
+
448
416
  _alias: "TS",
449
-
417
+
450
418
  label: "TS",
451
-
452
-
419
+
453
420
  type: Freeclimb::AccountType::TRIAL,
454
-
455
-
421
+
456
422
  status: Freeclimb::AccountStatus::CLOSED,
457
-
458
- subresource_uris: Object.new(),
459
-
423
+
424
+ subresource_uris: Object.new
460
425
  )
461
426
 
462
427
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
@@ -465,175 +430,169 @@ describe Freeclimb::AccountResult do
465
430
 
466
431
  describe 'test method "_deserialize"' do
467
432
  instance = Freeclimb::AccountResult.new(
468
- uri: "TS",
469
-
470
- date_created: "TS",
471
-
472
- date_updated: "TS",
473
-
474
- revision: 1,
475
-
476
- account_id: "TS",
477
-
478
- api_key: "TS",
479
-
480
- _alias: "TS",
481
-
482
- label: "TS",
483
-
484
-
485
- type: Freeclimb::AccountType::TRIAL,
486
-
487
-
488
- status: Freeclimb::AccountStatus::CLOSED,
489
-
490
- subresource_uris: Object.new(),
491
-
433
+ uri: "TS",
434
+
435
+ date_created: "TS",
436
+
437
+ date_updated: "TS",
438
+
439
+ revision: 1,
440
+
441
+ account_id: "TS",
442
+
443
+ api_key: "TS",
444
+
445
+ _alias: "TS",
446
+
447
+ label: "TS",
448
+
449
+ type: Freeclimb::AccountType::TRIAL,
450
+
451
+ status: Freeclimb::AccountStatus::CLOSED,
452
+
453
+ subresource_uris: Object.new
492
454
  )
493
- it 'deserializes the data of uri' do
455
+ it "deserializes the data of uri" do
494
456
  expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String)
495
457
  end
496
- it 'deserializes the data of date_created' do
458
+
459
+ it "deserializes the data of date_created" do
497
460
  expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String)
498
461
  end
499
- it 'deserializes the data of date_updated' do
462
+
463
+ it "deserializes the data of date_updated" do
500
464
  expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String)
501
465
  end
502
- it 'deserializes the data of revision' do
466
+
467
+ it "deserializes the data of revision" do
503
468
  expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer)
504
469
  end
505
- it 'deserializes the data of account_id' do
470
+
471
+ it "deserializes the data of account_id" do
506
472
  expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
507
473
  end
508
- it 'deserializes the data of api_key' do
474
+
475
+ it "deserializes the data of api_key" do
509
476
  expect(instance._deserialize("String", instance.api_key)).to be_a_kind_of(String)
510
477
  end
511
- it 'deserializes the data of _alias' do
478
+
479
+ it "deserializes the data of _alias" do
512
480
  expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String)
513
481
  end
514
- it 'deserializes the data of label' do
482
+
483
+ it "deserializes the data of label" do
515
484
  expect(instance._deserialize("String", instance.label)).to be_a_kind_of(String)
516
485
  end
517
- it 'deserializes the data of subresource_uris' do
486
+
487
+ it "deserializes the data of subresource_uris" do
518
488
  expect(instance._deserialize("Object", instance.subresource_uris)).to be_a_kind_of(Object)
519
489
  end
520
490
  end
521
491
 
522
492
  describe 'test method "to_s"' do
523
- it 'returns the string representation of the object' do
493
+ it "returns the string representation of the object" do
524
494
  instance = Freeclimb::AccountResult.new(
525
495
  uri: "TS",
526
-
496
+
527
497
  date_created: "TS",
528
-
498
+
529
499
  date_updated: "TS",
530
-
500
+
531
501
  revision: 1,
532
-
502
+
533
503
  account_id: "TS",
534
-
504
+
535
505
  api_key: "TS",
536
-
506
+
537
507
  _alias: "TS",
538
-
508
+
539
509
  label: "TS",
540
-
541
-
510
+
542
511
  type: Freeclimb::AccountType::TRIAL,
543
-
544
-
512
+
545
513
  status: Freeclimb::AccountStatus::CLOSED,
546
-
547
- subresource_uris: Object.new(),
548
-
514
+
515
+ subresource_uris: Object.new
549
516
  )
550
517
  expect(instance.to_s).to eq(instance.to_hash.to_s)
551
518
  end
552
519
  end
553
520
 
554
521
  describe 'test method "to_hash"' do
555
- it 'returns the object in the form of hash' do
522
+ it "returns the object in the form of hash" do
556
523
  instance = Freeclimb::AccountResult.new(
557
524
  uri: "TS",
558
-
525
+
559
526
  date_created: "TS",
560
-
527
+
561
528
  date_updated: "TS",
562
-
529
+
563
530
  revision: 1,
564
-
531
+
565
532
  account_id: "TS",
566
-
533
+
567
534
  api_key: "TS",
568
-
535
+
569
536
  _alias: "TS",
570
-
537
+
571
538
  label: "TS",
572
-
573
-
539
+
574
540
  type: Freeclimb::AccountType::TRIAL,
575
-
576
-
541
+
577
542
  status: Freeclimb::AccountStatus::CLOSED,
578
-
579
- subresource_uris: Object.new(),
580
-
543
+
544
+ subresource_uris: Object.new
581
545
  )
582
546
  expect(instance.to_hash).to be_a_kind_of(Hash)
583
547
  end
584
- it 'creates equal hash for two equal objects' do
585
- obj = Object.new()
548
+ it "creates equal hash for two equal objects" do
549
+ obj = Object.new
550
+
586
551
  instance_1 = Freeclimb::AccountResult.new(
587
552
  uri: "TS",
588
-
553
+
589
554
  date_created: "TS",
590
-
555
+
591
556
  date_updated: "TS",
592
-
557
+
593
558
  revision: 1,
594
-
559
+
595
560
  account_id: "TS",
596
-
561
+
597
562
  api_key: "TS",
598
-
563
+
599
564
  _alias: "TS",
600
-
565
+
601
566
  label: "TS",
602
-
603
-
567
+
604
568
  type: Freeclimb::AccountType::TRIAL,
605
-
606
-
569
+
607
570
  status: Freeclimb::AccountStatus::CLOSED,
608
-
609
- subresource_uris: obj,
610
-
571
+
572
+ subresource_uris: obj
611
573
  )
612
574
  instance_2 = Freeclimb::AccountResult.new(
613
575
  uri: "TS",
614
-
576
+
615
577
  date_created: "TS",
616
-
578
+
617
579
  date_updated: "TS",
618
-
580
+
619
581
  revision: 1,
620
-
582
+
621
583
  account_id: "TS",
622
-
584
+
623
585
  api_key: "TS",
624
-
586
+
625
587
  _alias: "TS",
626
-
588
+
627
589
  label: "TS",
628
-
629
-
590
+
630
591
  type: Freeclimb::AccountType::TRIAL,
631
-
632
-
592
+
633
593
  status: Freeclimb::AccountStatus::CLOSED,
634
-
635
- subresource_uris: obj,
636
-
594
+
595
+ subresource_uris: obj
637
596
  )
638
597
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
639
598
  end
@@ -641,74 +600,58 @@ describe Freeclimb::AccountResult do
641
600
 
642
601
  describe 'test method "_to_hash"' do
643
602
  instance = Freeclimb::AccountResult.new(
644
- uri: "TS",
645
-
646
-
647
- date_created: "TS",
648
-
649
-
650
- date_updated: "TS",
651
-
652
-
653
- revision: 1,
654
-
655
-
656
- account_id: "TS",
657
-
658
-
659
- api_key: "TS",
660
-
661
-
662
- _alias: "TS",
663
-
664
-
665
- label: "TS",
666
-
667
-
668
-
669
- type: Freeclimb::AccountType::TRIAL,
670
-
671
-
672
-
673
- status: Freeclimb::AccountStatus::CLOSED,
674
-
675
-
676
- subresource_uris: Object.new(),
677
-
678
- )
679
- it 'returns uri in the form of hash' do
603
+ uri: "TS",
604
+
605
+ date_created: "TS",
606
+
607
+ date_updated: "TS",
608
+
609
+ revision: 1,
610
+
611
+ account_id: "TS",
612
+
613
+ api_key: "TS",
614
+
615
+ _alias: "TS",
616
+
617
+ label: "TS",
618
+
619
+ type: Freeclimb::AccountType::TRIAL,
620
+
621
+ status: Freeclimb::AccountStatus::CLOSED
622
+ )
623
+ it "returns uri in the form of hash" do
680
624
  expect(instance._to_hash(instance.uri)).to eq(instance.uri)
681
625
  end
682
- it 'returns date_created in the form of hash' do
626
+ it "returns date_created in the form of hash" do
683
627
  expect(instance._to_hash(instance.date_created)).to eq(instance.date_created)
684
628
  end
685
- it 'returns date_updated in the form of hash' do
629
+ it "returns date_updated in the form of hash" do
686
630
  expect(instance._to_hash(instance.date_updated)).to eq(instance.date_updated)
687
631
  end
688
- it 'returns revision in the form of hash' do
632
+ it "returns revision in the form of hash" do
689
633
  expect(instance._to_hash(instance.revision)).to eq(instance.revision)
690
634
  end
691
- it 'returns account_id in the form of hash' do
635
+ it "returns account_id in the form of hash" do
692
636
  expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)
693
637
  end
694
- it 'returns api_key in the form of hash' do
638
+ it "returns api_key in the form of hash" do
695
639
  expect(instance._to_hash(instance.api_key)).to eq(instance.api_key)
696
640
  end
697
- it 'returns _alias in the form of hash' do
641
+ it "returns _alias in the form of hash" do
698
642
  expect(instance._to_hash(instance._alias)).to eq(instance._alias)
699
643
  end
700
- it 'returns label in the form of hash' do
644
+ it "returns label in the form of hash" do
701
645
  expect(instance._to_hash(instance.label)).to eq(instance.label)
702
646
  end
703
- it 'returns type in the form of hash' do
647
+ it "returns type in the form of hash" do
704
648
  expect(instance._to_hash(instance.type)).to eq(instance.type)
705
649
  end
706
- it 'returns status in the form of hash' do
650
+ it "returns status in the form of hash" do
707
651
  expect(instance._to_hash(instance.status)).to eq(instance.status)
708
652
  end
709
- it 'returns subresource_uris in the form of hash' do
653
+ it "returns subresource_uris in the form of hash" do
710
654
  expect(instance._to_hash(instance.subresource_uris)).to eq(instance.subresource_uris)
711
655
  end
712
656
  end
713
-
714
657
  end