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