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,259 +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
- # Page Object
17
- class PageRoundup
18
- attr_accessor :content
19
-
20
- attr_accessor :first
21
-
22
- attr_accessor :last
23
-
24
- attr_accessor :number
25
-
26
- attr_accessor :number_of_elements
27
-
28
- attr_accessor :size
29
-
30
- attr_accessor :sort
31
-
32
- attr_accessor :total_elements
33
-
34
- attr_accessor :total_pages
35
-
36
- # Attribute mapping from ruby-style variable name to JSON key.
37
- def self.attribute_map
38
- {
39
- :'content' => :'content',
40
- :'first' => :'first',
41
- :'last' => :'last',
42
- :'number' => :'number',
43
- :'number_of_elements' => :'number_of_elements',
44
- :'size' => :'size',
45
- :'sort' => :'sort',
46
- :'total_elements' => :'total_elements',
47
- :'total_pages' => :'total_pages'
48
- }
49
- end
50
-
51
- # Attribute type mapping.
52
- def self.swagger_types
53
- {
54
- :'content' => :'Array<Roundup>',
55
- :'first' => :'BOOLEAN',
56
- :'last' => :'BOOLEAN',
57
- :'number' => :'Integer',
58
- :'number_of_elements' => :'Integer',
59
- :'size' => :'Integer',
60
- :'sort' => :'Array<Sort>',
61
- :'total_elements' => :'Integer',
62
- :'total_pages' => :'Integer'
63
- }
64
- end
65
-
66
- # Initializes the object
67
- # @param [Hash] attributes Model attributes in the form of hash
68
- def initialize(attributes = {})
69
- return unless attributes.is_a?(Hash)
70
-
71
- # convert string to symbol for hash key
72
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
73
-
74
- if attributes.has_key?(:'content')
75
- if (value = attributes[:'content']).is_a?(Array)
76
- self.content = value
77
- end
78
- end
79
-
80
- if attributes.has_key?(:'first')
81
- self.first = attributes[:'first']
82
- end
83
-
84
- if attributes.has_key?(:'last')
85
- self.last = attributes[:'last']
86
- end
87
-
88
- if attributes.has_key?(:'number')
89
- self.number = attributes[:'number']
90
- end
91
-
92
- if attributes.has_key?(:'number_of_elements')
93
- self.number_of_elements = attributes[:'number_of_elements']
94
- end
95
-
96
- if attributes.has_key?(:'size')
97
- self.size = attributes[:'size']
98
- end
99
-
100
- if attributes.has_key?(:'sort')
101
- if (value = attributes[:'sort']).is_a?(Array)
102
- self.sort = value
103
- end
104
- end
105
-
106
- if attributes.has_key?(:'total_elements')
107
- self.total_elements = attributes[:'total_elements']
108
- end
109
-
110
- if attributes.has_key?(:'total_pages')
111
- self.total_pages = attributes[:'total_pages']
112
- end
113
- end
114
-
115
- # Show invalid properties with the reasons. Usually used together with valid?
116
- # @return Array for valid properties with the reasons
117
- def list_invalid_properties
118
- invalid_properties = Array.new
119
- invalid_properties
120
- end
121
-
122
- # Check to see if the all the properties in the model are valid
123
- # @return true if the model is valid
124
- def valid?
125
- true
126
- end
127
-
128
- # Checks equality by comparing each attribute.
129
- # @param [Object] Object to be compared
130
- def ==(o)
131
- return true if self.equal?(o)
132
- self.class == o.class &&
133
- content == o.content &&
134
- first == o.first &&
135
- last == o.last &&
136
- number == o.number &&
137
- number_of_elements == o.number_of_elements &&
138
- size == o.size &&
139
- sort == o.sort &&
140
- total_elements == o.total_elements &&
141
- total_pages == o.total_pages
142
- end
143
-
144
- # @see the `==` method
145
- # @param [Object] Object to be compared
146
- def eql?(o)
147
- self == o
148
- end
149
-
150
- # Calculates hash code according to all attributes.
151
- # @return [Fixnum] Hash code
152
- def hash
153
- [content, first, last, number, number_of_elements, size, sort, total_elements, total_pages].hash
154
- end
155
-
156
- # Builds the object from hash
157
- # @param [Hash] attributes Model attributes in the form of hash
158
- # @return [Object] Returns the model itself
159
- def build_from_hash(attributes)
160
- self.class.swagger_types.each_pair do |key, type|
161
- if type =~ /\AArray<(.*)>/i
162
- # check to ensure the input is an array given that the attribute
163
- # is documented as an array but the input is not
164
- if attributes[self.class.attribute_map[key]].is_a?(Array)
165
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
166
- end
167
- elsif !attributes[self.class.attribute_map[key]].nil?
168
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
169
- end # or else data not found in attributes(hash), not an issue as the data can be optional
170
- end
171
-
172
- self
173
- end
174
- # Deserializes the data based on type
175
- # @param string type Data type
176
- # @param string value Value to be deserialized
177
- # @return [Object] Deserialized data
178
- def _deserialize(type, value)
179
- case type.to_sym
180
- when :DateTime
181
- (value)
182
- when :Date
183
- (value)
184
- when :String
185
- value.to_s
186
- when :Integer
187
- value.to_i
188
- when :Float
189
- value.to_f
190
- when :BOOLEAN
191
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
192
- true
193
- else
194
- false
195
- end
196
- when :Object
197
- # generic object (usually a Hash), return directly
198
- value
199
- when /\AArray<(?<inner_type>.+)>\z/
200
- inner_type = Regexp.last_match[:inner_type]
201
- value.map { |v| _deserialize(inner_type, v) }
202
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
203
- k_type = Regexp.last_match[:k_type]
204
- v_type = Regexp.last_match[:v_type]
205
- {}.tap do |hash|
206
- value.each do |k, v|
207
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
208
- end
209
- end
210
- else # model
211
- temp_model = NucleusApi.const_get(type).new
212
- temp_model.build_from_hash(value)
213
- end
214
- end
215
-
216
-
217
- # Returns the string representation of the object
218
- # @return [String] String presentation of the object
219
- def to_s
220
- to_hash.to_s
221
- end
222
-
223
- # to_body is an alias to to_hash (backward compatibility)
224
- # @return [Hash] Returns the object in the form of hash
225
- def to_body
226
- to_hash
227
- end
228
-
229
- # Returns the object in the form of hash
230
- # @return [Hash] Returns the object in the form of hash
231
- def to_hash
232
- hash = {}
233
- self.class.attribute_map.each_pair do |attr, param|
234
- value = self.send(attr)
235
- hash[param] = _to_hash(value)
236
- end
237
- hash
238
- end
239
-
240
- # Outputs non-array value in the form of hash
241
- # For object, use to_hash. Otherwise, just return the value
242
- # @param [Object] value Any valid value
243
- # @return [Hash] Returns the value in the form of hash
244
- def _to_hash(value)
245
- if value.is_a?(Array)
246
- value.compact.map { |v| _to_hash(v) }
247
- elsif value.is_a?(Hash)
248
- {}.tap do |hash|
249
- value.each { |k, v| hash[k] = _to_hash(v) }
250
- end
251
- elsif value.respond_to? :to_hash
252
- value.to_hash
253
- else
254
- value
255
- end
256
- end
257
-
258
- end
259
- end
@@ -1,259 +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
- # Page Object
17
- class PageRoundupSettings
18
- attr_accessor :content
19
-
20
- attr_accessor :first
21
-
22
- attr_accessor :last
23
-
24
- attr_accessor :number
25
-
26
- attr_accessor :number_of_elements
27
-
28
- attr_accessor :size
29
-
30
- attr_accessor :sort
31
-
32
- attr_accessor :total_elements
33
-
34
- attr_accessor :total_pages
35
-
36
- # Attribute mapping from ruby-style variable name to JSON key.
37
- def self.attribute_map
38
- {
39
- :'content' => :'content',
40
- :'first' => :'first',
41
- :'last' => :'last',
42
- :'number' => :'number',
43
- :'number_of_elements' => :'number_of_elements',
44
- :'size' => :'size',
45
- :'sort' => :'sort',
46
- :'total_elements' => :'total_elements',
47
- :'total_pages' => :'total_pages'
48
- }
49
- end
50
-
51
- # Attribute type mapping.
52
- def self.swagger_types
53
- {
54
- :'content' => :'Array<RoundupSettings>',
55
- :'first' => :'BOOLEAN',
56
- :'last' => :'BOOLEAN',
57
- :'number' => :'Integer',
58
- :'number_of_elements' => :'Integer',
59
- :'size' => :'Integer',
60
- :'sort' => :'Array<Sort>',
61
- :'total_elements' => :'Integer',
62
- :'total_pages' => :'Integer'
63
- }
64
- end
65
-
66
- # Initializes the object
67
- # @param [Hash] attributes Model attributes in the form of hash
68
- def initialize(attributes = {})
69
- return unless attributes.is_a?(Hash)
70
-
71
- # convert string to symbol for hash key
72
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
73
-
74
- if attributes.has_key?(:'content')
75
- if (value = attributes[:'content']).is_a?(Array)
76
- self.content = value
77
- end
78
- end
79
-
80
- if attributes.has_key?(:'first')
81
- self.first = attributes[:'first']
82
- end
83
-
84
- if attributes.has_key?(:'last')
85
- self.last = attributes[:'last']
86
- end
87
-
88
- if attributes.has_key?(:'number')
89
- self.number = attributes[:'number']
90
- end
91
-
92
- if attributes.has_key?(:'number_of_elements')
93
- self.number_of_elements = attributes[:'number_of_elements']
94
- end
95
-
96
- if attributes.has_key?(:'size')
97
- self.size = attributes[:'size']
98
- end
99
-
100
- if attributes.has_key?(:'sort')
101
- if (value = attributes[:'sort']).is_a?(Array)
102
- self.sort = value
103
- end
104
- end
105
-
106
- if attributes.has_key?(:'total_elements')
107
- self.total_elements = attributes[:'total_elements']
108
- end
109
-
110
- if attributes.has_key?(:'total_pages')
111
- self.total_pages = attributes[:'total_pages']
112
- end
113
- end
114
-
115
- # Show invalid properties with the reasons. Usually used together with valid?
116
- # @return Array for valid properties with the reasons
117
- def list_invalid_properties
118
- invalid_properties = Array.new
119
- invalid_properties
120
- end
121
-
122
- # Check to see if the all the properties in the model are valid
123
- # @return true if the model is valid
124
- def valid?
125
- true
126
- end
127
-
128
- # Checks equality by comparing each attribute.
129
- # @param [Object] Object to be compared
130
- def ==(o)
131
- return true if self.equal?(o)
132
- self.class == o.class &&
133
- content == o.content &&
134
- first == o.first &&
135
- last == o.last &&
136
- number == o.number &&
137
- number_of_elements == o.number_of_elements &&
138
- size == o.size &&
139
- sort == o.sort &&
140
- total_elements == o.total_elements &&
141
- total_pages == o.total_pages
142
- end
143
-
144
- # @see the `==` method
145
- # @param [Object] Object to be compared
146
- def eql?(o)
147
- self == o
148
- end
149
-
150
- # Calculates hash code according to all attributes.
151
- # @return [Fixnum] Hash code
152
- def hash
153
- [content, first, last, number, number_of_elements, size, sort, total_elements, total_pages].hash
154
- end
155
-
156
- # Builds the object from hash
157
- # @param [Hash] attributes Model attributes in the form of hash
158
- # @return [Object] Returns the model itself
159
- def build_from_hash(attributes)
160
- self.class.swagger_types.each_pair do |key, type|
161
- if type =~ /\AArray<(.*)>/i
162
- # check to ensure the input is an array given that the attribute
163
- # is documented as an array but the input is not
164
- if attributes[self.class.attribute_map[key]].is_a?(Array)
165
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
166
- end
167
- elsif !attributes[self.class.attribute_map[key]].nil?
168
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
169
- end # or else data not found in attributes(hash), not an issue as the data can be optional
170
- end
171
-
172
- self
173
- end
174
- # Deserializes the data based on type
175
- # @param string type Data type
176
- # @param string value Value to be deserialized
177
- # @return [Object] Deserialized data
178
- def _deserialize(type, value)
179
- case type.to_sym
180
- when :DateTime
181
- (value)
182
- when :Date
183
- (value)
184
- when :String
185
- value.to_s
186
- when :Integer
187
- value.to_i
188
- when :Float
189
- value.to_f
190
- when :BOOLEAN
191
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
192
- true
193
- else
194
- false
195
- end
196
- when :Object
197
- # generic object (usually a Hash), return directly
198
- value
199
- when /\AArray<(?<inner_type>.+)>\z/
200
- inner_type = Regexp.last_match[:inner_type]
201
- value.map { |v| _deserialize(inner_type, v) }
202
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
203
- k_type = Regexp.last_match[:k_type]
204
- v_type = Regexp.last_match[:v_type]
205
- {}.tap do |hash|
206
- value.each do |k, v|
207
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
208
- end
209
- end
210
- else # model
211
- temp_model = NucleusApi.const_get(type).new
212
- temp_model.build_from_hash(value)
213
- end
214
- end
215
-
216
-
217
- # Returns the string representation of the object
218
- # @return [String] String presentation of the object
219
- def to_s
220
- to_hash.to_s
221
- end
222
-
223
- # to_body is an alias to to_hash (backward compatibility)
224
- # @return [Hash] Returns the object in the form of hash
225
- def to_body
226
- to_hash
227
- end
228
-
229
- # Returns the object in the form of hash
230
- # @return [Hash] Returns the object in the form of hash
231
- def to_hash
232
- hash = {}
233
- self.class.attribute_map.each_pair do |attr, param|
234
- value = self.send(attr)
235
- hash[param] = _to_hash(value)
236
- end
237
- hash
238
- end
239
-
240
- # Outputs non-array value in the form of hash
241
- # For object, use to_hash. Otherwise, just return the value
242
- # @param [Object] value Any valid value
243
- # @return [Hash] Returns the value in the form of hash
244
- def _to_hash(value)
245
- if value.is_a?(Array)
246
- value.compact.map { |v| _to_hash(v) }
247
- elsif value.is_a?(Hash)
248
- {}.tap do |hash|
249
- value.each { |k, v| hash[k] = _to_hash(v) }
250
- end
251
- elsif value.respond_to? :to_hash
252
- value.to_hash
253
- else
254
- value
255
- end
256
- end
257
-
258
- end
259
- end