hydrogen-nucleus-api 1.9.4 → 1.9.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (546) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/nucleus_api/api/account_api.rb +1 -1
  4. data/lib/nucleus_api/api/aggregation_account_api.rb +1 -1
  5. data/lib/nucleus_api/api/allocation_api.rb +1 -1
  6. data/lib/nucleus_api/api/benchmark_api.rb +1 -1
  7. data/lib/nucleus_api/api/budget_api.rb +1 -1
  8. data/lib/nucleus_api/api/bulk_api.rb +1 -1
  9. data/lib/nucleus_api/api/business_api.rb +1 -1
  10. data/lib/nucleus_api/api/card_api.rb +1 -1
  11. data/lib/nucleus_api/api/client_api.rb +1 -1
  12. data/lib/nucleus_api/api/decision_tree_api.rb +1 -1
  13. data/lib/nucleus_api/api/document_api.rb +1 -1
  14. data/lib/nucleus_api/api/funding_api.rb +1 -1
  15. data/lib/nucleus_api/api/goal_api.rb +1 -1
  16. data/lib/nucleus_api/api/household_api.rb +1 -1
  17. data/lib/nucleus_api/api/model_api.rb +1 -1
  18. data/lib/nucleus_api/api/order_api.rb +1 -1
  19. data/lib/nucleus_api/api/portfolio_api.rb +1 -1
  20. data/lib/nucleus_api/api/questionnaire_api.rb +1 -1
  21. data/lib/nucleus_api/api/resource_api.rb +1 -1
  22. data/lib/nucleus_api/api/risk_profile_api.rb +1 -1
  23. data/lib/nucleus_api/api/score_api.rb +1 -1
  24. data/lib/nucleus_api/api/securities_api.rb +1 -1
  25. data/lib/nucleus_api/api/spending_control_api.rb +1 -1
  26. data/lib/nucleus_api/api/utils_api.rb +1 -1
  27. data/lib/nucleus_api/api/webhook_api.rb +1 -1
  28. data/lib/nucleus_api/api_client.rb +1 -1
  29. data/lib/nucleus_api/api_error.rb +1 -1
  30. data/lib/nucleus_api/auth_configuration.rb +4 -4
  31. data/lib/nucleus_api/configuration.rb +1 -1
  32. data/lib/nucleus_api/environment.rb +10 -0
  33. data/lib/nucleus_api/models/account.rb +1 -1
  34. data/lib/nucleus_api/models/account_allocation_mapping.rb +1 -1
  35. data/lib/nucleus_api/models/account_permission_vo.rb +1 -1
  36. data/lib/nucleus_api/models/account_portfolio_rebalance_request.rb +1 -1
  37. data/lib/nucleus_api/models/account_status.rb +1 -1
  38. data/lib/nucleus_api/models/account_type.rb +1 -1
  39. data/lib/nucleus_api/models/acl_client_permission_vo.rb +1 -1
  40. data/lib/nucleus_api/models/aggregation_account.rb +1 -1
  41. data/lib/nucleus_api/models/aggregation_account_balance.rb +1 -1
  42. data/lib/nucleus_api/models/aggregation_account_holding.rb +1 -1
  43. data/lib/nucleus_api/models/aggregation_account_transaction.rb +1 -1
  44. data/lib/nucleus_api/models/allocation.rb +1 -1
  45. data/lib/nucleus_api/models/allocation_aggregated_vo.rb +1 -1
  46. data/lib/nucleus_api/models/allocation_composition.rb +1 -1
  47. data/lib/nucleus_api/models/allocation_composition_aggregated_vo.rb +1 -1
  48. data/lib/nucleus_api/models/allocation_composition_model_holdings_vo.rb +1 -1
  49. data/lib/nucleus_api/models/allocation_node_map.rb +1 -1
  50. data/lib/nucleus_api/models/answer.rb +1 -1
  51. data/lib/nucleus_api/models/answer_map.rb +1 -1
  52. data/lib/nucleus_api/models/application.rb +1 -1
  53. data/lib/nucleus_api/models/audit_log.rb +1 -1
  54. data/lib/nucleus_api/models/available_date_double_vo.rb +1 -1
  55. data/lib/nucleus_api/models/bank_credit.rb +1 -1
  56. data/lib/nucleus_api/models/bank_link.rb +1 -1
  57. data/lib/nucleus_api/models/benchmark.rb +1 -1
  58. data/lib/nucleus_api/models/benchmark_composition.rb +1 -1
  59. data/lib/nucleus_api/models/brokers.rb +1 -1
  60. data/lib/nucleus_api/models/budget.rb +1 -1
  61. data/lib/nucleus_api/models/budget_aggregation_account.rb +1 -1
  62. data/lib/nucleus_api/models/budget_object.rb +1 -1
  63. data/lib/nucleus_api/models/bulk_transaction.rb +1 -1
  64. data/lib/nucleus_api/models/bulk_transaction_vo.rb +1 -1
  65. data/lib/nucleus_api/models/business.rb +1 -1
  66. data/lib/nucleus_api/models/business_address.rb +1 -1
  67. data/lib/nucleus_api/models/business_details_vo.rb +1 -1
  68. data/lib/nucleus_api/models/card.rb +1 -1
  69. data/lib/nucleus_api/models/card_address.rb +1 -1
  70. data/lib/nucleus_api/models/card_balance_vo.rb +1 -1
  71. data/lib/nucleus_api/models/card_details_vo.rb +1 -1
  72. data/lib/nucleus_api/models/card_program.rb +1 -1
  73. data/lib/nucleus_api/models/cash.rb +1 -1
  74. data/lib/nucleus_api/models/check.rb +1 -1
  75. data/lib/nucleus_api/models/check_images.rb +1 -1
  76. data/lib/nucleus_api/models/client.rb +30 -6
  77. data/lib/nucleus_api/models/client_account_mapping.rb +1 -1
  78. data/lib/nucleus_api/models/client_address.rb +1 -1
  79. data/lib/nucleus_api/models/client_business_card_vo.rb +1 -1
  80. data/lib/nucleus_api/models/client_business_total_card_balance_vo.rb +1 -1
  81. data/lib/nucleus_api/models/client_card_vo.rb +1 -1
  82. data/lib/nucleus_api/models/client_relationship.rb +1 -1
  83. data/lib/nucleus_api/models/client_response.rb +1 -1
  84. data/lib/nucleus_api/models/client_status.rb +1 -1
  85. data/lib/nucleus_api/models/client_view_goal_data.rb +1 -1
  86. data/lib/nucleus_api/models/country.rb +1 -1
  87. data/lib/nucleus_api/models/currency.rb +1 -1
  88. data/lib/nucleus_api/models/date_double_vo.rb +1 -1
  89. data/lib/nucleus_api/models/decision_tree.rb +1 -1
  90. data/lib/nucleus_api/models/decision_tree_co.rb +1 -1
  91. data/lib/nucleus_api/models/decision_tree_result_vo.rb +1 -1
  92. data/lib/nucleus_api/models/document.rb +1 -1
  93. data/lib/nucleus_api/models/employment.rb +1 -1
  94. data/lib/nucleus_api/models/external_account_transfer.rb +1 -1
  95. data/lib/nucleus_api/models/feature.rb +1 -1
  96. data/lib/nucleus_api/models/feature_track.rb +1 -1
  97. data/lib/nucleus_api/models/funding.rb +1 -1
  98. data/lib/nucleus_api/models/funding_transaction.rb +1 -1
  99. data/lib/nucleus_api/models/fx_rate.rb +1 -1
  100. data/lib/nucleus_api/models/fx_rate_view.rb +1 -1
  101. data/lib/nucleus_api/models/goal.rb +1 -1
  102. data/lib/nucleus_api/models/goal_account_mapping.rb +1 -1
  103. data/lib/nucleus_api/models/goal_track.rb +1 -1
  104. data/lib/nucleus_api/models/goal_track_accounts.rb +1 -1
  105. data/lib/nucleus_api/models/household.rb +1 -1
  106. data/lib/nucleus_api/models/institution.rb +1 -1
  107. data/lib/nucleus_api/models/investment.rb +1 -1
  108. data/lib/nucleus_api/models/json_node.rb +1 -1
  109. data/lib/nucleus_api/models/line_items.rb +1 -1
  110. data/lib/nucleus_api/models/location.rb +1 -1
  111. data/lib/nucleus_api/models/member.rb +1 -1
  112. data/lib/nucleus_api/models/merchant_category_code.rb +1 -1
  113. data/lib/nucleus_api/models/model.rb +1 -1
  114. data/lib/nucleus_api/models/model_asset_size.rb +1 -1
  115. data/lib/nucleus_api/models/model_comment.rb +1 -1
  116. data/lib/nucleus_api/models/model_holding.rb +1 -1
  117. data/lib/nucleus_api/models/model_holding_vo.rb +1 -1
  118. data/lib/nucleus_api/models/model_transaction.rb +1 -1
  119. data/lib/nucleus_api/models/mx_merchant_res.rb +1 -1
  120. data/lib/nucleus_api/models/node.rb +1 -1
  121. data/lib/nucleus_api/models/node_relationship.rb +1 -1
  122. data/lib/nucleus_api/models/notification.rb +1 -1
  123. data/lib/nucleus_api/models/notification_client.rb +1 -1
  124. data/lib/nucleus_api/models/notification_setting.rb +1 -1
  125. data/lib/nucleus_api/models/order.rb +1 -1
  126. data/lib/nucleus_api/models/order_bulk.rb +1 -1
  127. data/lib/nucleus_api/models/order_reconcile_request.rb +1 -1
  128. data/lib/nucleus_api/models/order_reconcile_return_object.rb +1 -1
  129. data/lib/nucleus_api/models/order_status.rb +1 -1
  130. data/lib/nucleus_api/models/order_track.rb +1 -1
  131. data/lib/nucleus_api/models/order_vo_clone.rb +1 -1
  132. data/lib/nucleus_api/models/ownership.rb +1 -1
  133. data/lib/nucleus_api/models/page_account.rb +1 -1
  134. data/lib/nucleus_api/models/page_account_allocation_mapping.rb +1 -1
  135. data/lib/nucleus_api/models/page_account_permission_vo.rb +1 -1
  136. data/lib/nucleus_api/models/page_account_status.rb +1 -1
  137. data/lib/nucleus_api/models/page_account_type.rb +1 -1
  138. data/lib/nucleus_api/models/page_aggregation_account.rb +1 -1
  139. data/lib/nucleus_api/models/page_aggregation_account_balance.rb +1 -1
  140. data/lib/nucleus_api/models/page_aggregation_account_holding.rb +1 -1
  141. data/lib/nucleus_api/models/page_aggregation_account_transaction.rb +1 -1
  142. data/lib/nucleus_api/models/page_allocation.rb +1 -1
  143. data/lib/nucleus_api/models/page_allocation_composition.rb +1 -1
  144. data/lib/nucleus_api/models/page_answer.rb +1 -1
  145. data/lib/nucleus_api/models/page_application.rb +1 -1
  146. data/lib/nucleus_api/models/page_audit_log.rb +1 -1
  147. data/lib/nucleus_api/models/page_bank_link.rb +1 -1
  148. data/lib/nucleus_api/models/page_benchmark.rb +1 -1
  149. data/lib/nucleus_api/models/page_budget.rb +1 -1
  150. data/lib/nucleus_api/models/page_business.rb +1 -1
  151. data/lib/nucleus_api/models/page_card.rb +1 -1
  152. data/lib/nucleus_api/models/page_card_program.rb +1 -1
  153. data/lib/nucleus_api/models/page_client.rb +1 -1
  154. data/lib/nucleus_api/models/page_client_business_card_vo.rb +1 -1
  155. data/lib/nucleus_api/models/page_client_response.rb +1 -1
  156. data/lib/nucleus_api/models/page_client_status.rb +1 -1
  157. data/lib/nucleus_api/models/page_decision_tree.rb +1 -1
  158. data/lib/nucleus_api/models/page_document.rb +1 -1
  159. data/lib/nucleus_api/models/page_external_account_transfer.rb +1 -1
  160. data/lib/nucleus_api/models/page_feature.rb +1 -1
  161. data/lib/nucleus_api/models/page_feature_track.rb +1 -1
  162. data/lib/nucleus_api/models/page_funding.rb +1 -1
  163. data/lib/nucleus_api/models/page_funding_transaction.rb +1 -1
  164. data/lib/nucleus_api/models/page_goal.rb +1 -1
  165. data/lib/nucleus_api/models/page_goal_track.rb +1 -1
  166. data/lib/nucleus_api/models/page_household.rb +1 -1
  167. data/lib/nucleus_api/models/page_institution.rb +1 -1
  168. data/lib/nucleus_api/models/page_model.rb +1 -1
  169. data/lib/nucleus_api/models/page_model_asset_size.rb +1 -1
  170. data/lib/nucleus_api/models/page_model_comment.rb +1 -1
  171. data/lib/nucleus_api/models/page_model_holding.rb +1 -1
  172. data/lib/nucleus_api/models/page_model_transaction.rb +1 -1
  173. data/lib/nucleus_api/models/page_mx_merchant_res.rb +1 -1
  174. data/lib/nucleus_api/models/page_node.rb +1 -1
  175. data/lib/nucleus_api/models/page_node_relationship.rb +1 -1
  176. data/lib/nucleus_api/models/page_notification.rb +1 -1
  177. data/lib/nucleus_api/models/page_notification_client.rb +1 -1
  178. data/lib/nucleus_api/models/page_notification_setting.rb +1 -1
  179. data/lib/nucleus_api/models/page_order.rb +1 -1
  180. data/lib/nucleus_api/models/page_order_bulk.rb +1 -1
  181. data/lib/nucleus_api/models/page_order_status.rb +1 -1
  182. data/lib/nucleus_api/models/page_order_track.rb +1 -1
  183. data/lib/nucleus_api/models/page_portfolio.rb +1 -1
  184. data/lib/nucleus_api/models/page_portfolio_asset_size_log.rb +1 -1
  185. data/lib/nucleus_api/models/page_portfolio_comment.rb +1 -1
  186. data/lib/nucleus_api/models/page_portfolio_goal.rb +1 -1
  187. data/lib/nucleus_api/models/page_portfolio_holding_agg.rb +1 -1
  188. data/lib/nucleus_api/models/page_portfolio_holding_log.rb +1 -1
  189. data/lib/nucleus_api/models/page_portfolio_transaction.rb +1 -1
  190. data/lib/nucleus_api/models/page_question.rb +1 -1
  191. data/lib/nucleus_api/models/page_questionnaire.rb +1 -1
  192. data/lib/nucleus_api/models/page_reason_code.rb +1 -1
  193. data/lib/nucleus_api/models/page_risk_profile.rb +1 -1
  194. data/lib/nucleus_api/models/page_score.rb +1 -1
  195. data/lib/nucleus_api/models/page_security.rb +1 -1
  196. data/lib/nucleus_api/models/page_security_exclusion.rb +1 -1
  197. data/lib/nucleus_api/models/page_security_price.rb +1 -1
  198. data/lib/nucleus_api/models/page_spending_control.rb +1 -1
  199. data/lib/nucleus_api/models/page_stage.rb +1 -1
  200. data/lib/nucleus_api/models/page_transaction_code.rb +1 -1
  201. data/lib/nucleus_api/models/page_webhook.rb +1 -1
  202. data/lib/nucleus_api/models/pageable.rb +1 -1
  203. data/lib/nucleus_api/models/permission_vo.rb +1 -1
  204. data/lib/nucleus_api/models/portfolio.rb +1 -1
  205. data/lib/nucleus_api/models/portfolio_asset_size_log.rb +1 -1
  206. data/lib/nucleus_api/models/portfolio_comment.rb +1 -1
  207. data/lib/nucleus_api/models/portfolio_goal.rb +1 -1
  208. data/lib/nucleus_api/models/portfolio_goal_map.rb +1 -1
  209. data/lib/nucleus_api/models/portfolio_holding_agg.rb +1 -1
  210. data/lib/nucleus_api/models/portfolio_holding_log.rb +1 -1
  211. data/lib/nucleus_api/models/portfolio_transaction.rb +9 -7
  212. data/lib/nucleus_api/models/question.rb +1 -1
  213. data/lib/nucleus_api/models/questionnaire.rb +1 -1
  214. data/lib/nucleus_api/models/reason_code.rb +1 -1
  215. data/lib/nucleus_api/models/risk_profile.rb +1 -1
  216. data/lib/nucleus_api/models/score.rb +1 -1
  217. data/lib/nucleus_api/models/securities_composition.rb +1 -1
  218. data/lib/nucleus_api/models/securities_country.rb +1 -1
  219. data/lib/nucleus_api/models/security.rb +1 -1
  220. data/lib/nucleus_api/models/security_composition_vo.rb +1 -1
  221. data/lib/nucleus_api/models/security_country_vo.rb +1 -1
  222. data/lib/nucleus_api/models/security_exclusion.rb +1 -1
  223. data/lib/nucleus_api/models/security_price.rb +1 -1
  224. data/lib/nucleus_api/models/sort.rb +1 -1
  225. data/lib/nucleus_api/models/spending_control.rb +1 -1
  226. data/lib/nucleus_api/models/stage.rb +1 -1
  227. data/lib/nucleus_api/models/state.rb +1 -1
  228. data/lib/nucleus_api/models/statistic_resource_vo.rb +1 -1
  229. data/lib/nucleus_api/models/token_date_request.rb +1 -1
  230. data/lib/nucleus_api/models/transaction_code.rb +1 -1
  231. data/lib/nucleus_api/models/v_account_vo.rb +1 -1
  232. data/lib/nucleus_api/models/v_client_goal_view_data.rb +1 -1
  233. data/lib/nucleus_api/models/v_portfolio_vo.rb +1 -1
  234. data/lib/nucleus_api/models/webhook.rb +1 -1
  235. data/lib/nucleus_api/version.rb +2 -2
  236. data/lib/nucleus_api.rb +1 -41
  237. data/nucleus_api.gemspec +1 -1
  238. data/spec/api/account_api_spec.rb +1 -1
  239. data/spec/api/aggregation_account_api_spec.rb +1 -1
  240. data/spec/api/allocation_api_spec.rb +1 -1
  241. data/spec/api/benchmark_api_spec.rb +1 -1
  242. data/spec/api/budget_api_spec.rb +1 -1
  243. data/spec/api/bulk_api_spec.rb +1 -1
  244. data/spec/api/business_api_spec.rb +1 -1
  245. data/spec/api/card_api_spec.rb +1 -1
  246. data/spec/api/client_api_spec.rb +1 -1
  247. data/spec/api/decision_tree_api_spec.rb +1 -1
  248. data/spec/api/document_api_spec.rb +1 -1
  249. data/spec/api/funding_api_spec.rb +1 -1
  250. data/spec/api/goal_api_spec.rb +1 -1
  251. data/spec/api/household_api_spec.rb +1 -1
  252. data/spec/api/model_api_spec.rb +1 -1
  253. data/spec/api/order_api_spec.rb +1 -1
  254. data/spec/api/portfolio_api_spec.rb +1 -1
  255. data/spec/api/questionnaire_api_spec.rb +1 -1
  256. data/spec/api/resource_api_spec.rb +1 -1
  257. data/spec/api/risk_profile_api_spec.rb +1 -1
  258. data/spec/api/score_api_spec.rb +1 -1
  259. data/spec/api/securities_api_spec.rb +1 -1
  260. data/spec/api/spending_control_api_spec.rb +1 -1
  261. data/spec/api/utils_api_spec.rb +1 -1
  262. data/spec/api/webhook_api_spec.rb +1 -1
  263. data/spec/api_client_spec.rb +1 -1
  264. data/spec/configuration_spec.rb +1 -1
  265. data/spec/models/account_allocation_mapping_spec.rb +1 -1
  266. data/spec/models/account_permission_vo_spec.rb +1 -1
  267. data/spec/models/account_portfolio_rebalance_request_spec.rb +1 -1
  268. data/spec/models/account_spec.rb +1 -1
  269. data/spec/models/account_status_spec.rb +1 -1
  270. data/spec/models/account_type_spec.rb +1 -1
  271. data/spec/models/acl_client_permission_vo_spec.rb +1 -1
  272. data/spec/models/aggregation_account_balance_spec.rb +1 -1
  273. data/spec/models/aggregation_account_holding_spec.rb +1 -1
  274. data/spec/models/aggregation_account_spec.rb +1 -1
  275. data/spec/models/aggregation_account_transaction_spec.rb +1 -1
  276. data/spec/models/allocation_aggregated_vo_spec.rb +1 -1
  277. data/spec/models/allocation_composition_aggregated_vo_spec.rb +1 -1
  278. data/spec/models/allocation_composition_model_holdings_vo_spec.rb +1 -1
  279. data/spec/models/allocation_composition_spec.rb +1 -1
  280. data/spec/models/allocation_node_map_spec.rb +1 -1
  281. data/spec/models/allocation_spec.rb +1 -1
  282. data/spec/models/answer_map_spec.rb +1 -1
  283. data/spec/models/answer_spec.rb +1 -1
  284. data/spec/models/application_spec.rb +1 -1
  285. data/spec/models/audit_log_spec.rb +1 -1
  286. data/spec/models/available_date_double_vo_spec.rb +1 -1
  287. data/spec/models/bank_credit_spec.rb +1 -1
  288. data/spec/models/bank_link_spec.rb +1 -1
  289. data/spec/models/benchmark_composition_spec.rb +1 -1
  290. data/spec/models/benchmark_spec.rb +1 -1
  291. data/spec/models/brokers_spec.rb +1 -1
  292. data/spec/models/budget_aggregation_account_spec.rb +1 -1
  293. data/spec/models/budget_object_spec.rb +1 -1
  294. data/spec/models/budget_spec.rb +1 -1
  295. data/spec/models/bulk_transaction_spec.rb +1 -1
  296. data/spec/models/bulk_transaction_vo_spec.rb +1 -1
  297. data/spec/models/business_address_spec.rb +1 -1
  298. data/spec/models/business_details_vo_spec.rb +1 -1
  299. data/spec/models/business_spec.rb +1 -1
  300. data/spec/models/card_address_spec.rb +1 -1
  301. data/spec/models/card_balance_vo_spec.rb +1 -1
  302. data/spec/models/card_details_vo_spec.rb +1 -1
  303. data/spec/models/card_program_spec.rb +1 -1
  304. data/spec/models/card_spec.rb +1 -1
  305. data/spec/models/cash_spec.rb +1 -1
  306. data/spec/models/check_images_spec.rb +1 -1
  307. data/spec/models/check_spec.rb +1 -1
  308. data/spec/models/client_account_mapping_spec.rb +1 -1
  309. data/spec/models/client_address_spec.rb +1 -1
  310. data/spec/models/client_business_card_vo_spec.rb +1 -1
  311. data/spec/models/client_business_total_card_balance_vo_spec.rb +1 -1
  312. data/spec/models/client_card_vo_spec.rb +1 -1
  313. data/spec/models/client_relationship_spec.rb +1 -1
  314. data/spec/models/client_response_spec.rb +1 -1
  315. data/spec/models/client_spec.rb +13 -1
  316. data/spec/models/client_status_spec.rb +1 -1
  317. data/spec/models/client_view_goal_data_spec.rb +1 -1
  318. data/spec/models/country_spec.rb +1 -1
  319. data/spec/models/currency_spec.rb +1 -1
  320. data/spec/models/date_double_vo_spec.rb +1 -1
  321. data/spec/models/decision_tree_co_spec.rb +1 -1
  322. data/spec/models/decision_tree_result_vo_spec.rb +1 -1
  323. data/spec/models/decision_tree_spec.rb +1 -1
  324. data/spec/models/document_spec.rb +1 -1
  325. data/spec/models/employment_spec.rb +1 -1
  326. data/spec/models/external_account_transfer_spec.rb +1 -1
  327. data/spec/models/feature_spec.rb +1 -1
  328. data/spec/models/feature_track_spec.rb +1 -1
  329. data/spec/models/funding_spec.rb +1 -1
  330. data/spec/models/funding_transaction_spec.rb +1 -1
  331. data/spec/models/fx_rate_spec.rb +1 -1
  332. data/spec/models/fx_rate_view_spec.rb +1 -1
  333. data/spec/models/goal_account_mapping_spec.rb +1 -1
  334. data/spec/models/goal_spec.rb +1 -1
  335. data/spec/models/goal_track_accounts_spec.rb +1 -1
  336. data/spec/models/goal_track_spec.rb +1 -1
  337. data/spec/models/household_spec.rb +1 -1
  338. data/spec/models/institution_spec.rb +1 -1
  339. data/spec/models/investment_spec.rb +1 -1
  340. data/spec/models/json_node_spec.rb +1 -1
  341. data/spec/models/location_spec.rb +1 -1
  342. data/spec/models/member_spec.rb +1 -1
  343. data/spec/models/merchant_category_code_spec.rb +1 -1
  344. data/spec/models/model_asset_size_spec.rb +1 -1
  345. data/spec/models/model_comment_spec.rb +1 -1
  346. data/spec/models/model_holding_spec.rb +1 -1
  347. data/spec/models/model_holding_vo_spec.rb +1 -1
  348. data/spec/models/model_spec.rb +1 -1
  349. data/spec/models/model_transaction_spec.rb +1 -1
  350. data/spec/models/mx_merchant_res_spec.rb +1 -1
  351. data/spec/models/node_relationship_spec.rb +1 -1
  352. data/spec/models/node_spec.rb +1 -1
  353. data/spec/models/notification_client_spec.rb +1 -1
  354. data/spec/models/notification_setting_spec.rb +1 -1
  355. data/spec/models/notification_spec.rb +1 -1
  356. data/spec/models/order_bulk_spec.rb +1 -1
  357. data/spec/models/order_reconcile_request_spec.rb +1 -1
  358. data/spec/models/order_reconcile_return_object_spec.rb +1 -1
  359. data/spec/models/order_spec.rb +1 -1
  360. data/spec/models/order_status_spec.rb +1 -1
  361. data/spec/models/order_track_spec.rb +1 -1
  362. data/spec/models/order_vo_clone_spec.rb +1 -1
  363. data/spec/models/ownership_spec.rb +1 -1
  364. data/spec/models/page_account_allocation_mapping_spec.rb +1 -1
  365. data/spec/models/page_account_permission_vo_spec.rb +1 -1
  366. data/spec/models/page_account_spec.rb +1 -1
  367. data/spec/models/page_account_status_spec.rb +1 -1
  368. data/spec/models/page_account_type_spec.rb +1 -1
  369. data/spec/models/page_aggregation_account_balance_spec.rb +1 -1
  370. data/spec/models/page_aggregation_account_holding_spec.rb +1 -1
  371. data/spec/models/page_aggregation_account_spec.rb +1 -1
  372. data/spec/models/page_aggregation_account_transaction_spec.rb +1 -1
  373. data/spec/models/page_allocation_composition_spec.rb +1 -1
  374. data/spec/models/page_allocation_spec.rb +1 -1
  375. data/spec/models/page_answer_spec.rb +1 -1
  376. data/spec/models/page_application_spec.rb +1 -1
  377. data/spec/models/page_audit_log_spec.rb +1 -1
  378. data/spec/models/page_bank_link_spec.rb +1 -1
  379. data/spec/models/page_benchmark_spec.rb +1 -1
  380. data/spec/models/page_budget_spec.rb +1 -1
  381. data/spec/models/page_business_spec.rb +1 -1
  382. data/spec/models/page_card_program_spec.rb +1 -1
  383. data/spec/models/page_card_spec.rb +1 -1
  384. data/spec/models/page_client_business_card_vo_spec.rb +1 -1
  385. data/spec/models/page_client_response_spec.rb +1 -1
  386. data/spec/models/page_client_spec.rb +1 -1
  387. data/spec/models/page_client_status_spec.rb +1 -1
  388. data/spec/models/page_customer_revenue_spec.rb +1 -1
  389. data/spec/models/page_decision_tree_spec.rb +1 -1
  390. data/spec/models/page_document_spec.rb +1 -1
  391. data/spec/models/page_external_account_transfer_spec.rb +1 -1
  392. data/spec/models/page_feature_spec.rb +1 -1
  393. data/spec/models/page_feature_track_spec.rb +1 -1
  394. data/spec/models/page_funding_spec.rb +1 -1
  395. data/spec/models/page_funding_transaction_spec.rb +1 -1
  396. data/spec/models/page_goal_spec.rb +1 -1
  397. data/spec/models/page_goal_track_spec.rb +1 -1
  398. data/spec/models/page_household_spec.rb +1 -1
  399. data/spec/models/page_institution_spec.rb +1 -1
  400. data/spec/models/page_model_asset_size_spec.rb +1 -1
  401. data/spec/models/page_model_comment_spec.rb +1 -1
  402. data/spec/models/page_model_holding_spec.rb +1 -1
  403. data/spec/models/page_model_spec.rb +1 -1
  404. data/spec/models/page_model_transaction_spec.rb +1 -1
  405. data/spec/models/page_mx_merchant_res_spec.rb +1 -1
  406. data/spec/models/page_node_relationship_spec.rb +1 -1
  407. data/spec/models/page_node_spec.rb +1 -1
  408. data/spec/models/page_notification_client_spec.rb +1 -1
  409. data/spec/models/page_notification_setting_spec.rb +1 -1
  410. data/spec/models/page_notification_spec.rb +1 -1
  411. data/spec/models/page_order_bulk_spec.rb +1 -1
  412. data/spec/models/page_order_spec.rb +1 -1
  413. data/spec/models/page_order_status_spec.rb +1 -1
  414. data/spec/models/page_order_track_spec.rb +1 -1
  415. data/spec/models/page_portfolio_asset_size_log_spec.rb +1 -1
  416. data/spec/models/page_portfolio_comment_spec.rb +1 -1
  417. data/spec/models/page_portfolio_goal_spec.rb +1 -1
  418. data/spec/models/page_portfolio_holding_agg_spec.rb +1 -1
  419. data/spec/models/page_portfolio_holding_log_spec.rb +1 -1
  420. data/spec/models/page_portfolio_spec.rb +1 -1
  421. data/spec/models/page_portfolio_transaction_spec.rb +1 -1
  422. data/spec/models/page_question_spec.rb +1 -1
  423. data/spec/models/page_questionnaire_spec.rb +1 -1
  424. data/spec/models/page_reason_code_spec.rb +1 -1
  425. data/spec/models/page_risk_profile_spec.rb +1 -1
  426. data/spec/models/page_score_spec.rb +1 -1
  427. data/spec/models/page_security_exclusion_spec.rb +1 -1
  428. data/spec/models/page_security_price_spec.rb +1 -1
  429. data/spec/models/page_security_spec.rb +1 -1
  430. data/spec/models/page_spending_control_spec.rb +1 -1
  431. data/spec/models/page_stage_spec.rb +1 -1
  432. data/spec/models/page_transaction_code_spec.rb +1 -1
  433. data/spec/models/page_webhook_spec.rb +1 -1
  434. data/spec/models/pageable_spec.rb +1 -1
  435. data/spec/models/permission_vo_spec.rb +1 -1
  436. data/spec/models/portfolio_asset_size_log_spec.rb +1 -1
  437. data/spec/models/portfolio_comment_spec.rb +1 -1
  438. data/spec/models/portfolio_goal_map_spec.rb +1 -1
  439. data/spec/models/portfolio_goal_spec.rb +1 -1
  440. data/spec/models/portfolio_holding_agg_spec.rb +1 -1
  441. data/spec/models/portfolio_holding_log_spec.rb +1 -1
  442. data/spec/models/portfolio_spec.rb +1 -1
  443. data/spec/models/portfolio_transaction_spec.rb +2 -2
  444. data/spec/models/question_spec.rb +1 -1
  445. data/spec/models/questionnaire_spec.rb +1 -1
  446. data/spec/models/reason_code_spec.rb +1 -1
  447. data/spec/models/risk_profile_spec.rb +1 -1
  448. data/spec/models/score_spec.rb +1 -1
  449. data/spec/models/securities_composition_spec.rb +1 -1
  450. data/spec/models/securities_country_spec.rb +1 -1
  451. data/spec/models/security_composition_vo_spec.rb +1 -1
  452. data/spec/models/security_country_vo_spec.rb +1 -1
  453. data/spec/models/security_exclusion_spec.rb +1 -1
  454. data/spec/models/security_price_spec.rb +1 -1
  455. data/spec/models/security_spec.rb +1 -1
  456. data/spec/models/sort_spec.rb +1 -1
  457. data/spec/models/spending_control_spec.rb +1 -1
  458. data/spec/models/stage_spec.rb +1 -1
  459. data/spec/models/state_spec.rb +1 -1
  460. data/spec/models/statistic_resource_vo_spec.rb +1 -1
  461. data/spec/models/token_date_request_spec.rb +1 -1
  462. data/spec/models/transaction_code_spec.rb +1 -1
  463. data/spec/models/v_account_vo_spec.rb +1 -1
  464. data/spec/models/v_client_goal_view_data_spec.rb +1 -1
  465. data/spec/models/v_portfolio_vo_spec.rb +1 -1
  466. data/spec/models/webhook_spec.rb +1 -1
  467. data/spec/spec_helper.rb +1 -1
  468. metadata +2 -119
  469. data/lib/nucleus_api/api/admin_client_api.rb +0 -346
  470. data/lib/nucleus_api/api/contact_api.rb +0 -585
  471. data/lib/nucleus_api/api/financial_statement_api.rb +0 -307
  472. data/lib/nucleus_api/api/invoice_api.rb +0 -591
  473. data/lib/nucleus_api/api/overflow_api.rb +0 -468
  474. data/lib/nucleus_api/api/roundup_api.rb +0 -468
  475. data/lib/nucleus_api/models/account_map.rb +0 -203
  476. data/lib/nucleus_api/models/admin_client.rb +0 -290
  477. data/lib/nucleus_api/models/aggregation_accounts_map.rb +0 -203
  478. data/lib/nucleus_api/models/balances.rb +0 -224
  479. data/lib/nucleus_api/models/bank_link_map.rb +0 -203
  480. data/lib/nucleus_api/models/categories_map.rb +0 -203
  481. data/lib/nucleus_api/models/client_credentials.rb +0 -200
  482. data/lib/nucleus_api/models/contact.rb +0 -356
  483. data/lib/nucleus_api/models/contact_address.rb +0 -269
  484. data/lib/nucleus_api/models/customer_revenue.rb +0 -297
  485. data/lib/nucleus_api/models/financial_statement.rb +0 -363
  486. data/lib/nucleus_api/models/funding_request_map.rb +0 -188
  487. data/lib/nucleus_api/models/invoice.rb +0 -473
  488. data/lib/nucleus_api/models/invoice_payment.rb +0 -282
  489. data/lib/nucleus_api/models/merchants_map.rb +0 -203
  490. data/lib/nucleus_api/models/overflow.rb +0 -282
  491. data/lib/nucleus_api/models/overflow_bank_link_map.rb +0 -213
  492. data/lib/nucleus_api/models/overflow_settings.rb +0 -288
  493. data/lib/nucleus_api/models/overflow_vo.rb +0 -204
  494. data/lib/nucleus_api/models/page_admin_client.rb +0 -259
  495. data/lib/nucleus_api/models/page_contact.rb +0 -259
  496. data/lib/nucleus_api/models/page_customer_revenue.rb +0 -259
  497. data/lib/nucleus_api/models/page_financial_statement.rb +0 -259
  498. data/lib/nucleus_api/models/page_invoice.rb +0 -259
  499. data/lib/nucleus_api/models/page_invoice_payment.rb +0 -259
  500. data/lib/nucleus_api/models/page_overflow.rb +0 -259
  501. data/lib/nucleus_api/models/page_overflow_settings.rb +0 -259
  502. data/lib/nucleus_api/models/page_roundup.rb +0 -259
  503. data/lib/nucleus_api/models/page_roundup_settings.rb +0 -259
  504. data/lib/nucleus_api/models/roundup.rb +0 -267
  505. data/lib/nucleus_api/models/roundup_co.rb +0 -233
  506. data/lib/nucleus_api/models/roundup_settings.rb +0 -332
  507. data/lib/nucleus_api/models/stat.rb +0 -204
  508. data/spec/api/admin_client_api_spec.rb +0 -107
  509. data/spec/api/contact_api_spec.rb +0 -167
  510. data/spec/api/financial_statement_api_spec.rb +0 -102
  511. data/spec/api/invoice_api_spec.rb +0 -169
  512. data/spec/api/overflow_api_spec.rb +0 -140
  513. data/spec/api/roundup_api_spec.rb +0 -140
  514. data/spec/models/account_map_spec.rb +0 -47
  515. data/spec/models/admin_client_spec.rb +0 -113
  516. data/spec/models/aggregation_accounts_map_spec.rb +0 -47
  517. data/spec/models/balances_spec.rb +0 -65
  518. data/spec/models/bank_link_map_spec.rb +0 -47
  519. data/spec/models/categories_map_spec.rb +0 -47
  520. data/spec/models/client_credentials_spec.rb +0 -53
  521. data/spec/models/contact_address_spec.rb +0 -77
  522. data/spec/models/contact_spec.rb +0 -143
  523. data/spec/models/customer_revenue_spec.rb +0 -95
  524. data/spec/models/financial_statement_spec.rb +0 -137
  525. data/spec/models/funding_request_map_spec.rb +0 -41
  526. data/spec/models/invoice_payment_spec.rb +0 -89
  527. data/spec/models/invoice_spec.rb +0 -197
  528. data/spec/models/line_items_spec.rb +0 -83
  529. data/spec/models/merchants_map_spec.rb +0 -47
  530. data/spec/models/overflow_bank_link_map_spec.rb +0 -53
  531. data/spec/models/overflow_settings_spec.rb +0 -95
  532. data/spec/models/overflow_spec.rb +0 -89
  533. data/spec/models/overflow_vo_spec.rb +0 -53
  534. data/spec/models/page_admin_client_spec.rb +0 -89
  535. data/spec/models/page_contact_spec.rb +0 -89
  536. data/spec/models/page_financial_statement_spec.rb +0 -89
  537. data/spec/models/page_invoice_payment_spec.rb +0 -89
  538. data/spec/models/page_invoice_spec.rb +0 -89
  539. data/spec/models/page_overflow_settings_spec.rb +0 -89
  540. data/spec/models/page_overflow_spec.rb +0 -89
  541. data/spec/models/page_roundup_settings_spec.rb +0 -89
  542. data/spec/models/page_roundup_spec.rb +0 -89
  543. data/spec/models/roundup_co_spec.rb +0 -65
  544. data/spec/models/roundup_settings_spec.rb +0 -119
  545. data/spec/models/roundup_spec.rb +0 -83
  546. data/spec/models/stat_spec.rb +0 -47
@@ -1,332 +0,0 @@
1
- =begin
2
- #Hydrogen Nucleus API
3
-
4
- #The Hydrogen Nucleus API
5
-
6
- OpenAPI spec version: 1.9.4
7
- Contact: info@hydrogenplatform.com
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.19
10
-
11
- =end
12
-
13
- require 'date'
14
-
15
- module NucleusApi
16
- # Roundup Settings Object
17
- class RoundupSettings
18
- # account_id
19
- attr_accessor :account_id
20
-
21
- attr_accessor :accounts
22
-
23
- attr_accessor :aggregation_accounts
24
-
25
- attr_accessor :bank_links
26
-
27
- attr_accessor :categories
28
-
29
- # client_id
30
- attr_accessor :client_id
31
-
32
- attr_accessor :create_date
33
-
34
- attr_accessor :id
35
-
36
- # is_active
37
- attr_accessor :is_active
38
-
39
- attr_accessor :merchants
40
-
41
- # metadata
42
- attr_accessor :metadata
43
-
44
- # portfolio_id
45
- attr_accessor :portfolio_id
46
-
47
- attr_accessor :secondary_id
48
-
49
- attr_accessor :update_date
50
-
51
- # Attribute mapping from ruby-style variable name to JSON key.
52
- def self.attribute_map
53
- {
54
- :'account_id' => :'account_id',
55
- :'accounts' => :'accounts',
56
- :'aggregation_accounts' => :'aggregation_accounts',
57
- :'bank_links' => :'bank_links',
58
- :'categories' => :'categories',
59
- :'client_id' => :'client_id',
60
- :'create_date' => :'create_date',
61
- :'id' => :'id',
62
- :'is_active' => :'is_active',
63
- :'merchants' => :'merchants',
64
- :'metadata' => :'metadata',
65
- :'portfolio_id' => :'portfolio_id',
66
- :'secondary_id' => :'secondary_id',
67
- :'update_date' => :'update_date'
68
- }
69
- end
70
-
71
- # Attribute type mapping.
72
- def self.swagger_types
73
- {
74
- :'account_id' => :'String',
75
- :'accounts' => :'Array<AccountMap>',
76
- :'aggregation_accounts' => :'Array<AggregationAccountsMap>',
77
- :'bank_links' => :'Array<BankLinkMap>',
78
- :'categories' => :'Array<CategoriesMap>',
79
- :'client_id' => :'String',
80
- :'create_date' => :'DateTime',
81
- :'id' => :'String',
82
- :'is_active' => :'BOOLEAN',
83
- :'merchants' => :'Array<MerchantsMap>',
84
- :'metadata' => :'Hash<String, String>',
85
- :'portfolio_id' => :'String',
86
- :'secondary_id' => :'String',
87
- :'update_date' => :'DateTime'
88
- }
89
- end
90
-
91
- # Initializes the object
92
- # @param [Hash] attributes Model attributes in the form of hash
93
- def initialize(attributes = {})
94
- return unless attributes.is_a?(Hash)
95
-
96
- # convert string to symbol for hash key
97
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
98
-
99
- if attributes.has_key?(:'account_id')
100
- self.account_id = attributes[:'account_id']
101
- end
102
-
103
- if attributes.has_key?(:'accounts')
104
- if (value = attributes[:'accounts']).is_a?(Array)
105
- self.accounts = value
106
- end
107
- end
108
-
109
- if attributes.has_key?(:'aggregation_accounts')
110
- if (value = attributes[:'aggregation_accounts']).is_a?(Array)
111
- self.aggregation_accounts = value
112
- end
113
- end
114
-
115
- if attributes.has_key?(:'bank_links')
116
- if (value = attributes[:'bank_links']).is_a?(Array)
117
- self.bank_links = value
118
- end
119
- end
120
-
121
- if attributes.has_key?(:'categories')
122
- if (value = attributes[:'categories']).is_a?(Array)
123
- self.categories = value
124
- end
125
- end
126
-
127
- if attributes.has_key?(:'client_id')
128
- self.client_id = attributes[:'client_id']
129
- end
130
-
131
- if attributes.has_key?(:'create_date')
132
- self.create_date = attributes[:'create_date']
133
- end
134
-
135
- if attributes.has_key?(:'id')
136
- self.id = attributes[:'id']
137
- end
138
-
139
- if attributes.has_key?(:'is_active')
140
- self.is_active = attributes[:'is_active']
141
- end
142
-
143
- if attributes.has_key?(:'merchants')
144
- if (value = attributes[:'merchants']).is_a?(Array)
145
- self.merchants = value
146
- end
147
- end
148
-
149
- if attributes.has_key?(:'metadata')
150
- if (value = attributes[:'metadata']).is_a?(Hash)
151
- self.metadata = value
152
- end
153
- end
154
-
155
- if attributes.has_key?(:'portfolio_id')
156
- self.portfolio_id = attributes[:'portfolio_id']
157
- end
158
-
159
- if attributes.has_key?(:'secondary_id')
160
- self.secondary_id = attributes[:'secondary_id']
161
- end
162
-
163
- if attributes.has_key?(:'update_date')
164
- self.update_date = attributes[:'update_date']
165
- end
166
- end
167
-
168
- # Show invalid properties with the reasons. Usually used together with valid?
169
- # @return Array for valid properties with the reasons
170
- def list_invalid_properties
171
- invalid_properties = Array.new
172
- if @account_id.nil?
173
- invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
174
- end
175
-
176
- if @bank_links.nil?
177
- invalid_properties.push('invalid value for "bank_links", bank_links cannot be nil.')
178
- end
179
-
180
- if @client_id.nil?
181
- invalid_properties.push('invalid value for "client_id", client_id cannot be nil.')
182
- end
183
-
184
- invalid_properties
185
- end
186
-
187
- # Check to see if the all the properties in the model are valid
188
- # @return true if the model is valid
189
- def valid?
190
- return false if @account_id.nil?
191
- return false if @bank_links.nil?
192
- return false if @client_id.nil?
193
- true
194
- end
195
-
196
- # Checks equality by comparing each attribute.
197
- # @param [Object] Object to be compared
198
- def ==(o)
199
- return true if self.equal?(o)
200
- self.class == o.class &&
201
- account_id == o.account_id &&
202
- accounts == o.accounts &&
203
- aggregation_accounts == o.aggregation_accounts &&
204
- bank_links == o.bank_links &&
205
- categories == o.categories &&
206
- client_id == o.client_id &&
207
- create_date == o.create_date &&
208
- id == o.id &&
209
- is_active == o.is_active &&
210
- merchants == o.merchants &&
211
- metadata == o.metadata &&
212
- portfolio_id == o.portfolio_id &&
213
- secondary_id == o.secondary_id &&
214
- update_date == o.update_date
215
- end
216
-
217
- # @see the `==` method
218
- # @param [Object] Object to be compared
219
- def eql?(o)
220
- self == o
221
- end
222
-
223
- # Calculates hash code according to all attributes.
224
- # @return [Fixnum] Hash code
225
- def hash
226
- [account_id, accounts, aggregation_accounts, bank_links, categories, client_id, create_date, id, is_active, merchants, metadata, portfolio_id, secondary_id, update_date].hash
227
- end
228
-
229
- # Builds the object from hash
230
- # @param [Hash] attributes Model attributes in the form of hash
231
- # @return [Object] Returns the model itself
232
- def build_from_hash(attributes)
233
- self.class.swagger_types.each_pair do |key, type|
234
- if type =~ /\AArray<(.*)>/i
235
- # check to ensure the input is an array given that the attribute
236
- # is documented as an array but the input is not
237
- if attributes[self.class.attribute_map[key]].is_a?(Array)
238
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
239
- end
240
- elsif !attributes[self.class.attribute_map[key]].nil?
241
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
242
- end # or else data not found in attributes(hash), not an issue as the data can be optional
243
- end
244
-
245
- self
246
- end
247
- # Deserializes the data based on type
248
- # @param string type Data type
249
- # @param string value Value to be deserialized
250
- # @return [Object] Deserialized data
251
- def _deserialize(type, value)
252
- case type.to_sym
253
- when :DateTime
254
- (value)
255
- when :Date
256
- (value)
257
- when :String
258
- value.to_s
259
- when :Integer
260
- value.to_i
261
- when :Float
262
- value.to_f
263
- when :BOOLEAN
264
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
265
- true
266
- else
267
- false
268
- end
269
- when :Object
270
- # generic object (usually a Hash), return directly
271
- value
272
- when /\AArray<(?<inner_type>.+)>\z/
273
- inner_type = Regexp.last_match[:inner_type]
274
- value.map { |v| _deserialize(inner_type, v) }
275
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
276
- k_type = Regexp.last_match[:k_type]
277
- v_type = Regexp.last_match[:v_type]
278
- {}.tap do |hash|
279
- value.each do |k, v|
280
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
281
- end
282
- end
283
- else # model
284
- temp_model = NucleusApi.const_get(type).new
285
- temp_model.build_from_hash(value)
286
- end
287
- end
288
-
289
-
290
- # Returns the string representation of the object
291
- # @return [String] String presentation of the object
292
- def to_s
293
- to_hash.to_s
294
- end
295
-
296
- # to_body is an alias to to_hash (backward compatibility)
297
- # @return [Hash] Returns the object in the form of hash
298
- def to_body
299
- to_hash
300
- end
301
-
302
- # Returns the object in the form of hash
303
- # @return [Hash] Returns the object in the form of hash
304
- def to_hash
305
- hash = {}
306
- self.class.attribute_map.each_pair do |attr, param|
307
- value = self.send(attr)
308
- hash[param] = _to_hash(value)
309
- end
310
- hash
311
- end
312
-
313
- # Outputs non-array value in the form of hash
314
- # For object, use to_hash. Otherwise, just return the value
315
- # @param [Object] value Any valid value
316
- # @return [Hash] Returns the value in the form of hash
317
- def _to_hash(value)
318
- if value.is_a?(Array)
319
- value.compact.map { |v| _to_hash(v) }
320
- elsif value.is_a?(Hash)
321
- {}.tap do |hash|
322
- value.each { |k, v| hash[k] = _to_hash(v) }
323
- end
324
- elsif value.respond_to? :to_hash
325
- value.to_hash
326
- else
327
- value
328
- end
329
- end
330
-
331
- end
332
- end
@@ -1,204 +0,0 @@
1
- =begin
2
- #Hydrogen Nucleus API
3
-
4
- #The Hydrogen Nucleus API
5
-
6
- OpenAPI spec version: 1.9.4
7
- Contact: info@hydrogenplatform.com
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.19
10
-
11
- =end
12
-
13
- require 'date'
14
-
15
- module NucleusApi
16
- # Stat Object
17
- class Stat
18
- # statName
19
- attr_accessor :stat_name
20
-
21
- # statValue
22
- attr_accessor :stat_value
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'stat_name' => :'stat_name',
28
- :'stat_value' => :'stat_value'
29
- }
30
- end
31
-
32
- # Attribute type mapping.
33
- def self.swagger_types
34
- {
35
- :'stat_name' => :'String',
36
- :'stat_value' => :'Float'
37
- }
38
- end
39
-
40
- # Initializes the object
41
- # @param [Hash] attributes Model attributes in the form of hash
42
- def initialize(attributes = {})
43
- return unless attributes.is_a?(Hash)
44
-
45
- # convert string to symbol for hash key
46
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
47
-
48
- if attributes.has_key?(:'stat_name')
49
- self.stat_name = attributes[:'stat_name']
50
- end
51
-
52
- if attributes.has_key?(:'stat_value')
53
- self.stat_value = attributes[:'stat_value']
54
- end
55
- end
56
-
57
- # Show invalid properties with the reasons. Usually used together with valid?
58
- # @return Array for valid properties with the reasons
59
- def list_invalid_properties
60
- invalid_properties = Array.new
61
- if @stat_name.nil?
62
- invalid_properties.push('invalid value for "stat_name", stat_name cannot be nil.')
63
- end
64
-
65
- if @stat_value.nil?
66
- invalid_properties.push('invalid value for "stat_value", stat_value cannot be nil.')
67
- end
68
-
69
- invalid_properties
70
- end
71
-
72
- # Check to see if the all the properties in the model are valid
73
- # @return true if the model is valid
74
- def valid?
75
- return false if @stat_name.nil?
76
- return false if @stat_value.nil?
77
- true
78
- end
79
-
80
- # Checks equality by comparing each attribute.
81
- # @param [Object] Object to be compared
82
- def ==(o)
83
- return true if self.equal?(o)
84
- self.class == o.class &&
85
- stat_name == o.stat_name &&
86
- stat_value == o.stat_value
87
- end
88
-
89
- # @see the `==` method
90
- # @param [Object] Object to be compared
91
- def eql?(o)
92
- self == o
93
- end
94
-
95
- # Calculates hash code according to all attributes.
96
- # @return [Fixnum] Hash code
97
- def hash
98
- [stat_name, stat_value].hash
99
- end
100
-
101
- # Builds the object from hash
102
- # @param [Hash] attributes Model attributes in the form of hash
103
- # @return [Object] Returns the model itself
104
- def build_from_hash(attributes)
105
- self.class.swagger_types.each_pair do |key, type|
106
- if type =~ /\AArray<(.*)>/i
107
- # check to ensure the input is an array given that the attribute
108
- # is documented as an array but the input is not
109
- if attributes[self.class.attribute_map[key]].is_a?(Array)
110
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
111
- end
112
- elsif !attributes[self.class.attribute_map[key]].nil?
113
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
114
- end # or else data not found in attributes(hash), not an issue as the data can be optional
115
- end
116
-
117
- self
118
- end
119
- # Deserializes the data based on type
120
- # @param string type Data type
121
- # @param string value Value to be deserialized
122
- # @return [Object] Deserialized data
123
- def _deserialize(type, value)
124
- case type.to_sym
125
- when :DateTime
126
- (value)
127
- when :Date
128
- (value)
129
- when :String
130
- value.to_s
131
- when :Integer
132
- value.to_i
133
- when :Float
134
- value.to_f
135
- when :BOOLEAN
136
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
137
- true
138
- else
139
- false
140
- end
141
- when :Object
142
- # generic object (usually a Hash), return directly
143
- value
144
- when /\AArray<(?<inner_type>.+)>\z/
145
- inner_type = Regexp.last_match[:inner_type]
146
- value.map { |v| _deserialize(inner_type, v) }
147
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
148
- k_type = Regexp.last_match[:k_type]
149
- v_type = Regexp.last_match[:v_type]
150
- {}.tap do |hash|
151
- value.each do |k, v|
152
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
153
- end
154
- end
155
- else # model
156
- temp_model = NucleusApi.const_get(type).new
157
- temp_model.build_from_hash(value)
158
- end
159
- end
160
-
161
-
162
- # Returns the string representation of the object
163
- # @return [String] String presentation of the object
164
- def to_s
165
- to_hash.to_s
166
- end
167
-
168
- # to_body is an alias to to_hash (backward compatibility)
169
- # @return [Hash] Returns the object in the form of hash
170
- def to_body
171
- to_hash
172
- end
173
-
174
- # Returns the object in the form of hash
175
- # @return [Hash] Returns the object in the form of hash
176
- def to_hash
177
- hash = {}
178
- self.class.attribute_map.each_pair do |attr, param|
179
- value = self.send(attr)
180
- hash[param] = _to_hash(value)
181
- end
182
- hash
183
- end
184
-
185
- # Outputs non-array value in the form of hash
186
- # For object, use to_hash. Otherwise, just return the value
187
- # @param [Object] value Any valid value
188
- # @return [Hash] Returns the value in the form of hash
189
- def _to_hash(value)
190
- if value.is_a?(Array)
191
- value.compact.map { |v| _to_hash(v) }
192
- elsif value.is_a?(Hash)
193
- {}.tap do |hash|
194
- value.each { |k, v| hash[k] = _to_hash(v) }
195
- end
196
- elsif value.respond_to? :to_hash
197
- value.to_hash
198
- else
199
- value
200
- end
201
- end
202
-
203
- end
204
- end
@@ -1,107 +0,0 @@
1
- =begin
2
- #Hydrogen Nucleus API
3
-
4
- #The Hydrogen Nucleus API
5
-
6
- OpenAPI spec version: 1.9.4
7
- Contact: info@hydrogenplatform.com
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.19
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
-
16
- # Unit tests for NucleusApi::AdminClientApi
17
- # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
- # Please update as you see appropriate
19
- describe 'AdminClientApi' do
20
- before do
21
- # run before each test
22
- @instance = NucleusApi::AdminClientApi.new
23
- end
24
-
25
- after do
26
- # run after each test
27
- end
28
-
29
- describe 'test an instance of AdminClientApi' do
30
- it 'should create an instance of AdminClientApi' do
31
- expect(@instance).to be_instance_of(NucleusApi::AdminClientApi)
32
- end
33
- end
34
-
35
- # unit tests for create_admin_client_using_post
36
- # create
37
- # @param client client
38
- # @param [Hash] opts the optional parameters
39
- # @return [AdminClient]
40
- describe 'create_admin_client_using_post test' do
41
- it 'should work' do
42
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
- end
44
- end
45
-
46
- # unit tests for delete_admin_client_using_delete
47
- # delete
48
- # @param client_id client_id
49
- # @param [Hash] opts the optional parameters
50
- # @return [nil]
51
- describe 'delete_admin_client_using_delete test' do
52
- it 'should work' do
53
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
- end
55
- end
56
-
57
- # unit tests for get_admin_client_using_get
58
- # get
59
- # @param client_id client_id
60
- # @param [Hash] opts the optional parameters
61
- # @return [AdminClient]
62
- describe 'get_admin_client_using_get test' do
63
- it 'should work' do
64
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
- end
66
- end
67
-
68
- # unit tests for get_all_admin_client_using_get
69
- # getAllAdminClient
70
- # @param [Hash] opts the optional parameters
71
- # @option opts [BOOLEAN] :ascending ascending
72
- # @option opts [String] :filter filter
73
- # @option opts [String] :order_by order_by
74
- # @option opts [Integer] :page page
75
- # @option opts [Integer] :size size
76
- # @return [PageAdminClient]
77
- describe 'get_all_admin_client_using_get test' do
78
- it 'should work' do
79
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
- end
81
- end
82
-
83
- # unit tests for update_admin_client_using_put
84
- # update
85
- # @param client client
86
- # @param client_id client_id
87
- # @param [Hash] opts the optional parameters
88
- # @return [AdminClient]
89
- describe 'update_admin_client_using_put test' do
90
- it 'should work' do
91
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
- end
93
- end
94
-
95
- # unit tests for update_client_credentials_using_post
96
- # updateClientCredentials
97
- # @param client_credentials clientCredentials
98
- # @param [Hash] opts the optional parameters
99
- # @option opts [String] :tenant_name tenant-name
100
- # @return [AdminClient]
101
- describe 'update_client_credentials_using_post test' do
102
- it 'should work' do
103
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
104
- end
105
- end
106
-
107
- end