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,356 +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.20
10
-
11
- =end
12
-
13
- require 'date'
14
-
15
- module NucleusApi
16
- # Contact Object
17
- class Contact
18
- attr_accessor :address
19
-
20
- attr_accessor :balances
21
-
22
- # businessId
23
- attr_accessor :business_id
24
-
25
- # clientId
26
- attr_accessor :client_id
27
-
28
- # companyName
29
- attr_accessor :company_name
30
-
31
- attr_accessor :create_date
32
-
33
- # description
34
- attr_accessor :description
35
-
36
- # firstName
37
- attr_accessor :first_name
38
-
39
- attr_accessor :id
40
-
41
- # identificationNumber
42
- attr_accessor :identification_number
43
-
44
- # isActive
45
- attr_accessor :is_active
46
-
47
- # isCustomer
48
- attr_accessor :is_customer
49
-
50
- # isSupplier
51
- attr_accessor :is_supplier
52
-
53
- # lastName
54
- attr_accessor :last_name
55
-
56
- # metadata
57
- attr_accessor :metadata
58
-
59
- attr_accessor :secondary_id
60
-
61
- # status
62
- attr_accessor :status
63
-
64
- attr_accessor :update_date
65
-
66
- # Attribute mapping from ruby-style variable name to JSON key.
67
- def self.attribute_map
68
- {
69
- :'address' => :'address',
70
- :'balances' => :'balances',
71
- :'business_id' => :'business_id',
72
- :'client_id' => :'client_id',
73
- :'company_name' => :'company_name',
74
- :'create_date' => :'create_date',
75
- :'description' => :'description',
76
- :'first_name' => :'first_name',
77
- :'id' => :'id',
78
- :'identification_number' => :'identification_number',
79
- :'is_active' => :'is_active',
80
- :'is_customer' => :'is_customer',
81
- :'is_supplier' => :'is_supplier',
82
- :'last_name' => :'last_name',
83
- :'metadata' => :'metadata',
84
- :'secondary_id' => :'secondary_id',
85
- :'status' => :'status',
86
- :'update_date' => :'update_date'
87
- }
88
- end
89
-
90
- # Attribute type mapping.
91
- def self.swagger_types
92
- {
93
- :'address' => :'Array<ContactAddress>',
94
- :'balances' => :'Balances',
95
- :'business_id' => :'String',
96
- :'client_id' => :'String',
97
- :'company_name' => :'String',
98
- :'create_date' => :'DateTime',
99
- :'description' => :'String',
100
- :'first_name' => :'String',
101
- :'id' => :'String',
102
- :'identification_number' => :'String',
103
- :'is_active' => :'BOOLEAN',
104
- :'is_customer' => :'BOOLEAN',
105
- :'is_supplier' => :'BOOLEAN',
106
- :'last_name' => :'String',
107
- :'metadata' => :'Hash<String, String>',
108
- :'secondary_id' => :'String',
109
- :'status' => :'String',
110
- :'update_date' => :'DateTime'
111
- }
112
- end
113
-
114
- # Initializes the object
115
- # @param [Hash] attributes Model attributes in the form of hash
116
- def initialize(attributes = {})
117
- return unless attributes.is_a?(Hash)
118
-
119
- # convert string to symbol for hash key
120
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
121
-
122
- if attributes.has_key?(:'address')
123
- if (value = attributes[:'address']).is_a?(Array)
124
- self.address = value
125
- end
126
- end
127
-
128
- if attributes.has_key?(:'balances')
129
- self.balances = attributes[:'balances']
130
- end
131
-
132
- if attributes.has_key?(:'business_id')
133
- self.business_id = attributes[:'business_id']
134
- end
135
-
136
- if attributes.has_key?(:'client_id')
137
- self.client_id = attributes[:'client_id']
138
- end
139
-
140
- if attributes.has_key?(:'company_name')
141
- self.company_name = attributes[:'company_name']
142
- end
143
-
144
- if attributes.has_key?(:'create_date')
145
- self.create_date = attributes[:'create_date']
146
- end
147
-
148
- if attributes.has_key?(:'description')
149
- self.description = attributes[:'description']
150
- end
151
-
152
- if attributes.has_key?(:'first_name')
153
- self.first_name = attributes[:'first_name']
154
- end
155
-
156
- if attributes.has_key?(:'id')
157
- self.id = attributes[:'id']
158
- end
159
-
160
- if attributes.has_key?(:'identification_number')
161
- self.identification_number = attributes[:'identification_number']
162
- end
163
-
164
- if attributes.has_key?(:'is_active')
165
- self.is_active = attributes[:'is_active']
166
- end
167
-
168
- if attributes.has_key?(:'is_customer')
169
- self.is_customer = attributes[:'is_customer']
170
- end
171
-
172
- if attributes.has_key?(:'is_supplier')
173
- self.is_supplier = attributes[:'is_supplier']
174
- end
175
-
176
- if attributes.has_key?(:'last_name')
177
- self.last_name = attributes[:'last_name']
178
- end
179
-
180
- if attributes.has_key?(:'metadata')
181
- if (value = attributes[:'metadata']).is_a?(Hash)
182
- self.metadata = value
183
- end
184
- end
185
-
186
- if attributes.has_key?(:'secondary_id')
187
- self.secondary_id = attributes[:'secondary_id']
188
- end
189
-
190
- if attributes.has_key?(:'status')
191
- self.status = attributes[:'status']
192
- end
193
-
194
- if attributes.has_key?(:'update_date')
195
- self.update_date = attributes[:'update_date']
196
- end
197
- end
198
-
199
- # Show invalid properties with the reasons. Usually used together with valid?
200
- # @return Array for valid properties with the reasons
201
- def list_invalid_properties
202
- invalid_properties = Array.new
203
- if @company_name.nil?
204
- invalid_properties.push('invalid value for "company_name", company_name cannot be nil.')
205
- end
206
-
207
- invalid_properties
208
- end
209
-
210
- # Check to see if the all the properties in the model are valid
211
- # @return true if the model is valid
212
- def valid?
213
- return false if @company_name.nil?
214
- true
215
- end
216
-
217
- # Checks equality by comparing each attribute.
218
- # @param [Object] Object to be compared
219
- def ==(o)
220
- return true if self.equal?(o)
221
- self.class == o.class &&
222
- address == o.address &&
223
- balances == o.balances &&
224
- business_id == o.business_id &&
225
- client_id == o.client_id &&
226
- company_name == o.company_name &&
227
- create_date == o.create_date &&
228
- description == o.description &&
229
- first_name == o.first_name &&
230
- id == o.id &&
231
- identification_number == o.identification_number &&
232
- is_active == o.is_active &&
233
- is_customer == o.is_customer &&
234
- is_supplier == o.is_supplier &&
235
- last_name == o.last_name &&
236
- metadata == o.metadata &&
237
- secondary_id == o.secondary_id &&
238
- status == o.status &&
239
- update_date == o.update_date
240
- end
241
-
242
- # @see the `==` method
243
- # @param [Object] Object to be compared
244
- def eql?(o)
245
- self == o
246
- end
247
-
248
- # Calculates hash code according to all attributes.
249
- # @return [Fixnum] Hash code
250
- def hash
251
- [address, balances, business_id, client_id, company_name, create_date, description, first_name, id, identification_number, is_active, is_customer, is_supplier, last_name, metadata, secondary_id, status, update_date].hash
252
- end
253
-
254
- # Builds the object from hash
255
- # @param [Hash] attributes Model attributes in the form of hash
256
- # @return [Object] Returns the model itself
257
- def build_from_hash(attributes)
258
- self.class.swagger_types.each_pair do |key, type|
259
- if type =~ /\AArray<(.*)>/i
260
- # check to ensure the input is an array given that the attribute
261
- # is documented as an array but the input is not
262
- if attributes[self.class.attribute_map[key]].is_a?(Array)
263
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
264
- end
265
- elsif !attributes[self.class.attribute_map[key]].nil?
266
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
267
- end # or else data not found in attributes(hash), not an issue as the data can be optional
268
- end
269
-
270
- self
271
- end
272
-
273
- # Deserializes the data based on type
274
- # @param string type Data type
275
- # @param string value Value to be deserialized
276
- # @return [Object] Deserialized data
277
- def _deserialize(type, value)
278
- case type.to_sym
279
- when :DateTime
280
- (value)
281
- when :Date
282
- (value)
283
- when :String
284
- value.to_s
285
- when :Integer
286
- value.to_i
287
- when :Float
288
- value.to_f
289
- when :BOOLEAN
290
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
291
- true
292
- else
293
- false
294
- end
295
- when :Object
296
- # generic object (usually a Hash), return directly
297
- value
298
- when /\AArray<(?<inner_type>.+)>\z/
299
- inner_type = Regexp.last_match[:inner_type]
300
- value.map { |v| _deserialize(inner_type, v) }
301
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
302
- k_type = Regexp.last_match[:k_type]
303
- v_type = Regexp.last_match[:v_type]
304
- {}.tap do |hash|
305
- value.each do |k, v|
306
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
307
- end
308
- end
309
- else # model
310
- temp_model = NucleusApi.const_get(type).new
311
- temp_model.build_from_hash(value)
312
- end
313
- end
314
- # Returns the string representation of the object
315
- # @return [String] String presentation of the object
316
- def to_s
317
- to_hash.to_s
318
- end
319
-
320
- # to_body is an alias to to_hash (backward compatibility)
321
- # @return [Hash] Returns the object in the form of hash
322
- def to_body
323
- to_hash
324
- end
325
-
326
- # Returns the object in the form of hash
327
- # @return [Hash] Returns the object in the form of hash
328
- def to_hash
329
- hash = {}
330
- self.class.attribute_map.each_pair do |attr, param|
331
- value = self.send(attr)
332
- hash[param] = _to_hash(value)
333
- end
334
- hash
335
- end
336
-
337
- # Outputs non-array value in the form of hash
338
- # For object, use to_hash. Otherwise, just return the value
339
- # @param [Object] value Any valid value
340
- # @return [Hash] Returns the value in the form of hash
341
- def _to_hash(value)
342
- if value.is_a?(Array)
343
- value.compact.map { |v| _to_hash(v) }
344
- elsif value.is_a?(Hash)
345
- {}.tap do |hash|
346
- value.each { |k, v| hash[k] = _to_hash(v) }
347
- end
348
- elsif value.respond_to? :to_hash
349
- value.to_hash
350
- else
351
- value
352
- end
353
- end
354
-
355
- end
356
- end
@@ -1,269 +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
- # ContactAddress Object
17
- class ContactAddress
18
- # addressLine1
19
- attr_accessor :address_line1
20
-
21
- # addressLine2
22
- attr_accessor :address_line2
23
-
24
- # city
25
- attr_accessor :city
26
-
27
- # country
28
- attr_accessor :country
29
-
30
- # postalcode
31
- attr_accessor :postalcode
32
-
33
- # state
34
- attr_accessor :state
35
-
36
- # type
37
- attr_accessor :type
38
-
39
- # Attribute mapping from ruby-style variable name to JSON key.
40
- def self.attribute_map
41
- {
42
- :'address_line1' => :'address_line1',
43
- :'address_line2' => :'address_line2',
44
- :'city' => :'city',
45
- :'country' => :'country',
46
- :'postalcode' => :'postalcode',
47
- :'state' => :'state',
48
- :'type' => :'type'
49
- }
50
- end
51
-
52
- # Attribute type mapping.
53
- def self.swagger_types
54
- {
55
- :'address_line1' => :'String',
56
- :'address_line2' => :'String',
57
- :'city' => :'String',
58
- :'country' => :'String',
59
- :'postalcode' => :'String',
60
- :'state' => :'String',
61
- :'type' => :'String'
62
- }
63
- end
64
-
65
- # Initializes the object
66
- # @param [Hash] attributes Model attributes in the form of hash
67
- def initialize(attributes = {})
68
- return unless attributes.is_a?(Hash)
69
-
70
- # convert string to symbol for hash key
71
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
72
-
73
- if attributes.has_key?(:'address_line1')
74
- self.address_line1 = attributes[:'address_line1']
75
- end
76
-
77
- if attributes.has_key?(:'address_line2')
78
- self.address_line2 = attributes[:'address_line2']
79
- end
80
-
81
- if attributes.has_key?(:'city')
82
- self.city = attributes[:'city']
83
- end
84
-
85
- if attributes.has_key?(:'country')
86
- self.country = attributes[:'country']
87
- end
88
-
89
- if attributes.has_key?(:'postalcode')
90
- self.postalcode = attributes[:'postalcode']
91
- end
92
-
93
- if attributes.has_key?(:'state')
94
- self.state = attributes[:'state']
95
- end
96
-
97
- if attributes.has_key?(:'type')
98
- self.type = attributes[:'type']
99
- end
100
- end
101
-
102
- # Show invalid properties with the reasons. Usually used together with valid?
103
- # @return Array for valid properties with the reasons
104
- def list_invalid_properties
105
- invalid_properties = Array.new
106
- if @address_line1.nil?
107
- invalid_properties.push('invalid value for "address_line1", address_line1 cannot be nil.')
108
- end
109
-
110
- if @city.nil?
111
- invalid_properties.push('invalid value for "city", city cannot be nil.')
112
- end
113
-
114
- if @country.nil?
115
- invalid_properties.push('invalid value for "country", country cannot be nil.')
116
- end
117
-
118
- if @state.nil?
119
- invalid_properties.push('invalid value for "state", state cannot be nil.')
120
- end
121
-
122
- if @type.nil?
123
- invalid_properties.push('invalid value for "type", type cannot be nil.')
124
- end
125
-
126
- invalid_properties
127
- end
128
-
129
- # Check to see if the all the properties in the model are valid
130
- # @return true if the model is valid
131
- def valid?
132
- return false if @address_line1.nil?
133
- return false if @city.nil?
134
- return false if @country.nil?
135
- return false if @state.nil?
136
- return false if @type.nil?
137
- true
138
- end
139
-
140
- # Checks equality by comparing each attribute.
141
- # @param [Object] Object to be compared
142
- def ==(o)
143
- return true if self.equal?(o)
144
- self.class == o.class &&
145
- address_line1 == o.address_line1 &&
146
- address_line2 == o.address_line2 &&
147
- city == o.city &&
148
- country == o.country &&
149
- postalcode == o.postalcode &&
150
- state == o.state &&
151
- type == o.type
152
- end
153
-
154
- # @see the `==` method
155
- # @param [Object] Object to be compared
156
- def eql?(o)
157
- self == o
158
- end
159
-
160
- # Calculates hash code according to all attributes.
161
- # @return [Fixnum] Hash code
162
- def hash
163
- [address_line1, address_line2, city, country, postalcode, state, type].hash
164
- end
165
-
166
- # Builds the object from hash
167
- # @param [Hash] attributes Model attributes in the form of hash
168
- # @return [Object] Returns the model itself
169
- def build_from_hash(attributes)
170
- self.class.swagger_types.each_pair do |key, type|
171
- if type =~ /\AArray<(.*)>/i
172
- # check to ensure the input is an array given that the attribute
173
- # is documented as an array but the input is not
174
- if attributes[self.class.attribute_map[key]].is_a?(Array)
175
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
176
- end
177
- elsif !attributes[self.class.attribute_map[key]].nil?
178
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
179
- end # or else data not found in attributes(hash), not an issue as the data can be optional
180
- end
181
-
182
- self
183
- end
184
- # Deserializes the data based on type
185
- # @param string type Data type
186
- # @param string value Value to be deserialized
187
- # @return [Object] Deserialized data
188
- def _deserialize(type, value)
189
- case type.to_sym
190
- when :DateTime
191
- (value)
192
- when :Date
193
- (value)
194
- when :String
195
- value.to_s
196
- when :Integer
197
- value.to_i
198
- when :Float
199
- value.to_f
200
- when :BOOLEAN
201
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
202
- true
203
- else
204
- false
205
- end
206
- when :Object
207
- # generic object (usually a Hash), return directly
208
- value
209
- when /\AArray<(?<inner_type>.+)>\z/
210
- inner_type = Regexp.last_match[:inner_type]
211
- value.map { |v| _deserialize(inner_type, v) }
212
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
213
- k_type = Regexp.last_match[:k_type]
214
- v_type = Regexp.last_match[:v_type]
215
- {}.tap do |hash|
216
- value.each do |k, v|
217
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
218
- end
219
- end
220
- else # model
221
- temp_model = NucleusApi.const_get(type).new
222
- temp_model.build_from_hash(value)
223
- end
224
- end
225
-
226
-
227
- # Returns the string representation of the object
228
- # @return [String] String presentation of the object
229
- def to_s
230
- to_hash.to_s
231
- end
232
-
233
- # to_body is an alias to to_hash (backward compatibility)
234
- # @return [Hash] Returns the object in the form of hash
235
- def to_body
236
- to_hash
237
- end
238
-
239
- # Returns the object in the form of hash
240
- # @return [Hash] Returns the object in the form of hash
241
- def to_hash
242
- hash = {}
243
- self.class.attribute_map.each_pair do |attr, param|
244
- value = self.send(attr)
245
- hash[param] = _to_hash(value)
246
- end
247
- hash
248
- end
249
-
250
- # Outputs non-array value in the form of hash
251
- # For object, use to_hash. Otherwise, just return the value
252
- # @param [Object] value Any valid value
253
- # @return [Hash] Returns the value in the form of hash
254
- def _to_hash(value)
255
- if value.is_a?(Array)
256
- value.compact.map { |v| _to_hash(v) }
257
- elsif value.is_a?(Hash)
258
- {}.tap do |hash|
259
- value.each { |k, v| hash[k] = _to_hash(v) }
260
- end
261
- elsif value.respond_to? :to_hash
262
- value.to_hash
263
- else
264
- value
265
- end
266
- end
267
-
268
- end
269
- end