hydrogen-nucleus-api 1.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (549) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +80 -0
  4. data/Rakefile +8 -0
  5. data/git_push.sh +55 -0
  6. data/lib/nucleus_api.rb +306 -0
  7. data/lib/nucleus_api/api/account_api.rb +1755 -0
  8. data/lib/nucleus_api/api/admin_client_api.rb +346 -0
  9. data/lib/nucleus_api/api/aggregation_account_api.rb +1642 -0
  10. data/lib/nucleus_api/api/allocation_api.rb +824 -0
  11. data/lib/nucleus_api/api/benchmark_api.rb +362 -0
  12. data/lib/nucleus_api/api/budget_api.rb +307 -0
  13. data/lib/nucleus_api/api/bulk_api.rb +253 -0
  14. data/lib/nucleus_api/api/business_api.rb +526 -0
  15. data/lib/nucleus_api/api/card_api.rb +864 -0
  16. data/lib/nucleus_api/api/client_api.rb +1246 -0
  17. data/lib/nucleus_api/api/contact_api.rb +585 -0
  18. data/lib/nucleus_api/api/decision_tree_api.rb +911 -0
  19. data/lib/nucleus_api/api/document_api.rb +301 -0
  20. data/lib/nucleus_api/api/financial_statement_api.rb +307 -0
  21. data/lib/nucleus_api/api/funding_api.rb +1213 -0
  22. data/lib/nucleus_api/api/goal_api.rb +837 -0
  23. data/lib/nucleus_api/api/household_api.rb +526 -0
  24. data/lib/nucleus_api/api/invoice_api.rb +591 -0
  25. data/lib/nucleus_api/api/model_api.rb +1479 -0
  26. data/lib/nucleus_api/api/order_api.rb +1688 -0
  27. data/lib/nucleus_api/api/overflow_api.rb +468 -0
  28. data/lib/nucleus_api/api/portfolio_api.rb +1840 -0
  29. data/lib/nucleus_api/api/questionnaire_api.rb +857 -0
  30. data/lib/nucleus_api/api/resource_api.rb +823 -0
  31. data/lib/nucleus_api/api/risk_profile_api.rb +301 -0
  32. data/lib/nucleus_api/api/roundup_api.rb +468 -0
  33. data/lib/nucleus_api/api/score_api.rb +301 -0
  34. data/lib/nucleus_api/api/securities_api.rb +863 -0
  35. data/lib/nucleus_api/api/spending_control_api.rb +301 -0
  36. data/lib/nucleus_api/api/utils_api.rb +2692 -0
  37. data/lib/nucleus_api/api/webhook_api.rb +301 -0
  38. data/lib/nucleus_api/api_client.rb +391 -0
  39. data/lib/nucleus_api/api_error.rb +38 -0
  40. data/lib/nucleus_api/auth_configuration.rb +181 -0
  41. data/lib/nucleus_api/configuration.rb +209 -0
  42. data/lib/nucleus_api/environment.rb +26 -0
  43. data/lib/nucleus_api/models/account.rb +335 -0
  44. data/lib/nucleus_api/models/account_allocation_mapping.rb +295 -0
  45. data/lib/nucleus_api/models/account_map.rb +203 -0
  46. data/lib/nucleus_api/models/account_permission_vo.rb +196 -0
  47. data/lib/nucleus_api/models/account_portfolio_rebalance_request.rb +314 -0
  48. data/lib/nucleus_api/models/account_status.rb +271 -0
  49. data/lib/nucleus_api/models/account_type.rb +336 -0
  50. data/lib/nucleus_api/models/acl_client_permission_vo.rb +237 -0
  51. data/lib/nucleus_api/models/admin_client.rb +290 -0
  52. data/lib/nucleus_api/models/aggregation_account.rb +541 -0
  53. data/lib/nucleus_api/models/aggregation_account_balance.rb +285 -0
  54. data/lib/nucleus_api/models/aggregation_account_holding.rb +357 -0
  55. data/lib/nucleus_api/models/aggregation_account_transaction.rb +336 -0
  56. data/lib/nucleus_api/models/aggregation_accounts_map.rb +203 -0
  57. data/lib/nucleus_api/models/allocation.rb +326 -0
  58. data/lib/nucleus_api/models/allocation_aggregated_vo.rb +229 -0
  59. data/lib/nucleus_api/models/allocation_composition.rb +305 -0
  60. data/lib/nucleus_api/models/allocation_composition_aggregated_vo.rb +283 -0
  61. data/lib/nucleus_api/models/allocation_composition_model_holdings_vo.rb +312 -0
  62. data/lib/nucleus_api/models/allocation_node_map.rb +188 -0
  63. data/lib/nucleus_api/models/answer.rb +314 -0
  64. data/lib/nucleus_api/models/answer_map.rb +182 -0
  65. data/lib/nucleus_api/models/application.rb +257 -0
  66. data/lib/nucleus_api/models/audit_log.rb +358 -0
  67. data/lib/nucleus_api/models/available_date_double_vo.rb +244 -0
  68. data/lib/nucleus_api/models/balances.rb +224 -0
  69. data/lib/nucleus_api/models/bank_credit.rb +283 -0
  70. data/lib/nucleus_api/models/bank_link.rb +431 -0
  71. data/lib/nucleus_api/models/bank_link_map.rb +203 -0
  72. data/lib/nucleus_api/models/benchmark.rb +278 -0
  73. data/lib/nucleus_api/models/benchmark_composition.rb +203 -0
  74. data/lib/nucleus_api/models/brokers.rb +204 -0
  75. data/lib/nucleus_api/models/budget.rb +383 -0
  76. data/lib/nucleus_api/models/budget_aggregation_account.rb +188 -0
  77. data/lib/nucleus_api/models/budget_object.rb +214 -0
  78. data/lib/nucleus_api/models/bulk_transaction.rb +227 -0
  79. data/lib/nucleus_api/models/bulk_transaction_vo.rb +218 -0
  80. data/lib/nucleus_api/models/business.rb +430 -0
  81. data/lib/nucleus_api/models/business_address.rb +279 -0
  82. data/lib/nucleus_api/models/business_details_vo.rb +236 -0
  83. data/lib/nucleus_api/models/card.rb +497 -0
  84. data/lib/nucleus_api/models/card_address.rb +269 -0
  85. data/lib/nucleus_api/models/card_balance_vo.rb +214 -0
  86. data/lib/nucleus_api/models/card_details_vo.rb +284 -0
  87. data/lib/nucleus_api/models/card_program.rb +351 -0
  88. data/lib/nucleus_api/models/cash.rb +214 -0
  89. data/lib/nucleus_api/models/categories_map.rb +203 -0
  90. data/lib/nucleus_api/models/check.rb +211 -0
  91. data/lib/nucleus_api/models/check_images.rb +199 -0
  92. data/lib/nucleus_api/models/client.rb +524 -0
  93. data/lib/nucleus_api/models/client_account_mapping.rb +213 -0
  94. data/lib/nucleus_api/models/client_address.rb +279 -0
  95. data/lib/nucleus_api/models/client_business_card_vo.rb +218 -0
  96. data/lib/nucleus_api/models/client_business_total_card_balance_vo.rb +204 -0
  97. data/lib/nucleus_api/models/client_card_vo.rb +244 -0
  98. data/lib/nucleus_api/models/client_credentials.rb +200 -0
  99. data/lib/nucleus_api/models/client_relationship.rb +210 -0
  100. data/lib/nucleus_api/models/client_response.rb +281 -0
  101. data/lib/nucleus_api/models/client_status.rb +271 -0
  102. data/lib/nucleus_api/models/client_view_goal_data.rb +303 -0
  103. data/lib/nucleus_api/models/contact.rb +356 -0
  104. data/lib/nucleus_api/models/contact_address.rb +269 -0
  105. data/lib/nucleus_api/models/country.rb +251 -0
  106. data/lib/nucleus_api/models/currency.rb +213 -0
  107. data/lib/nucleus_api/models/customer_revenue.rb +297 -0
  108. data/lib/nucleus_api/models/date_double_vo.rb +204 -0
  109. data/lib/nucleus_api/models/decision_tree.rb +276 -0
  110. data/lib/nucleus_api/models/decision_tree_co.rb +203 -0
  111. data/lib/nucleus_api/models/decision_tree_result_vo.rb +193 -0
  112. data/lib/nucleus_api/models/document.rb +407 -0
  113. data/lib/nucleus_api/models/employment.rb +214 -0
  114. data/lib/nucleus_api/models/external_account_transfer.rb +413 -0
  115. data/lib/nucleus_api/models/feature.rb +287 -0
  116. data/lib/nucleus_api/models/feature_track.rb +252 -0
  117. data/lib/nucleus_api/models/financial_statement.rb +363 -0
  118. data/lib/nucleus_api/models/funding.rb +509 -0
  119. data/lib/nucleus_api/models/funding_request_map.rb +188 -0
  120. data/lib/nucleus_api/models/funding_transaction.rb +391 -0
  121. data/lib/nucleus_api/models/fx_rate.rb +234 -0
  122. data/lib/nucleus_api/models/fx_rate_view.rb +234 -0
  123. data/lib/nucleus_api/models/goal.rb +341 -0
  124. data/lib/nucleus_api/models/goal_account_mapping.rb +219 -0
  125. data/lib/nucleus_api/models/goal_track.rb +373 -0
  126. data/lib/nucleus_api/models/goal_track_accounts.rb +188 -0
  127. data/lib/nucleus_api/models/household.rb +286 -0
  128. data/lib/nucleus_api/models/institution.rb +256 -0
  129. data/lib/nucleus_api/models/investment.rb +279 -0
  130. data/lib/nucleus_api/models/invoice.rb +473 -0
  131. data/lib/nucleus_api/models/invoice_payment.rb +282 -0
  132. data/lib/nucleus_api/models/json_node.rb +173 -0
  133. data/lib/nucleus_api/models/line_items.rb +279 -0
  134. data/lib/nucleus_api/models/location.rb +254 -0
  135. data/lib/nucleus_api/models/member.rb +218 -0
  136. data/lib/nucleus_api/models/merchant_category_code.rb +229 -0
  137. data/lib/nucleus_api/models/merchants_map.rb +203 -0
  138. data/lib/nucleus_api/models/model.rb +397 -0
  139. data/lib/nucleus_api/models/model_asset_size.rb +275 -0
  140. data/lib/nucleus_api/models/model_comment.rb +265 -0
  141. data/lib/nucleus_api/models/model_holding.rb +371 -0
  142. data/lib/nucleus_api/models/model_holding_vo.rb +209 -0
  143. data/lib/nucleus_api/models/model_transaction.rb +299 -0
  144. data/lib/nucleus_api/models/mx_merchant_res.rb +236 -0
  145. data/lib/nucleus_api/models/node.rb +261 -0
  146. data/lib/nucleus_api/models/node_relationship.rb +301 -0
  147. data/lib/nucleus_api/models/notification.rb +314 -0
  148. data/lib/nucleus_api/models/notification_client.rb +310 -0
  149. data/lib/nucleus_api/models/notification_setting.rb +301 -0
  150. data/lib/nucleus_api/models/order.rb +391 -0
  151. data/lib/nucleus_api/models/order_bulk.rb +310 -0
  152. data/lib/nucleus_api/models/order_reconcile_request.rb +221 -0
  153. data/lib/nucleus_api/models/order_reconcile_return_object.rb +228 -0
  154. data/lib/nucleus_api/models/order_status.rb +251 -0
  155. data/lib/nucleus_api/models/order_track.rb +317 -0
  156. data/lib/nucleus_api/models/order_vo_clone.rb +305 -0
  157. data/lib/nucleus_api/models/overflow.rb +282 -0
  158. data/lib/nucleus_api/models/overflow_bank_link_map.rb +213 -0
  159. data/lib/nucleus_api/models/overflow_settings.rb +288 -0
  160. data/lib/nucleus_api/models/overflow_vo.rb +204 -0
  161. data/lib/nucleus_api/models/ownership.rb +234 -0
  162. data/lib/nucleus_api/models/page_account.rb +259 -0
  163. data/lib/nucleus_api/models/page_account_allocation_mapping.rb +259 -0
  164. data/lib/nucleus_api/models/page_account_permission_vo.rb +259 -0
  165. data/lib/nucleus_api/models/page_account_status.rb +259 -0
  166. data/lib/nucleus_api/models/page_account_type.rb +259 -0
  167. data/lib/nucleus_api/models/page_admin_client.rb +259 -0
  168. data/lib/nucleus_api/models/page_aggregation_account.rb +259 -0
  169. data/lib/nucleus_api/models/page_aggregation_account_balance.rb +259 -0
  170. data/lib/nucleus_api/models/page_aggregation_account_holding.rb +259 -0
  171. data/lib/nucleus_api/models/page_aggregation_account_transaction.rb +259 -0
  172. data/lib/nucleus_api/models/page_allocation.rb +259 -0
  173. data/lib/nucleus_api/models/page_allocation_composition.rb +259 -0
  174. data/lib/nucleus_api/models/page_answer.rb +259 -0
  175. data/lib/nucleus_api/models/page_application.rb +259 -0
  176. data/lib/nucleus_api/models/page_audit_log.rb +259 -0
  177. data/lib/nucleus_api/models/page_bank_link.rb +259 -0
  178. data/lib/nucleus_api/models/page_benchmark.rb +259 -0
  179. data/lib/nucleus_api/models/page_budget.rb +259 -0
  180. data/lib/nucleus_api/models/page_business.rb +259 -0
  181. data/lib/nucleus_api/models/page_card.rb +259 -0
  182. data/lib/nucleus_api/models/page_card_program.rb +259 -0
  183. data/lib/nucleus_api/models/page_client.rb +259 -0
  184. data/lib/nucleus_api/models/page_client_business_card_vo.rb +259 -0
  185. data/lib/nucleus_api/models/page_client_response.rb +259 -0
  186. data/lib/nucleus_api/models/page_client_status.rb +259 -0
  187. data/lib/nucleus_api/models/page_contact.rb +259 -0
  188. data/lib/nucleus_api/models/page_customer_revenue.rb +259 -0
  189. data/lib/nucleus_api/models/page_decision_tree.rb +259 -0
  190. data/lib/nucleus_api/models/page_document.rb +259 -0
  191. data/lib/nucleus_api/models/page_external_account_transfer.rb +259 -0
  192. data/lib/nucleus_api/models/page_feature.rb +259 -0
  193. data/lib/nucleus_api/models/page_feature_track.rb +259 -0
  194. data/lib/nucleus_api/models/page_financial_statement.rb +259 -0
  195. data/lib/nucleus_api/models/page_funding.rb +259 -0
  196. data/lib/nucleus_api/models/page_funding_transaction.rb +259 -0
  197. data/lib/nucleus_api/models/page_goal.rb +259 -0
  198. data/lib/nucleus_api/models/page_goal_track.rb +259 -0
  199. data/lib/nucleus_api/models/page_household.rb +259 -0
  200. data/lib/nucleus_api/models/page_institution.rb +259 -0
  201. data/lib/nucleus_api/models/page_invoice.rb +259 -0
  202. data/lib/nucleus_api/models/page_invoice_payment.rb +259 -0
  203. data/lib/nucleus_api/models/page_model.rb +259 -0
  204. data/lib/nucleus_api/models/page_model_asset_size.rb +259 -0
  205. data/lib/nucleus_api/models/page_model_comment.rb +259 -0
  206. data/lib/nucleus_api/models/page_model_holding.rb +259 -0
  207. data/lib/nucleus_api/models/page_model_transaction.rb +259 -0
  208. data/lib/nucleus_api/models/page_mx_merchant_res.rb +274 -0
  209. data/lib/nucleus_api/models/page_node.rb +259 -0
  210. data/lib/nucleus_api/models/page_node_relationship.rb +259 -0
  211. data/lib/nucleus_api/models/page_notification.rb +259 -0
  212. data/lib/nucleus_api/models/page_notification_client.rb +259 -0
  213. data/lib/nucleus_api/models/page_notification_setting.rb +259 -0
  214. data/lib/nucleus_api/models/page_order.rb +259 -0
  215. data/lib/nucleus_api/models/page_order_bulk.rb +259 -0
  216. data/lib/nucleus_api/models/page_order_status.rb +259 -0
  217. data/lib/nucleus_api/models/page_order_track.rb +259 -0
  218. data/lib/nucleus_api/models/page_overflow.rb +259 -0
  219. data/lib/nucleus_api/models/page_overflow_settings.rb +259 -0
  220. data/lib/nucleus_api/models/page_portfolio.rb +259 -0
  221. data/lib/nucleus_api/models/page_portfolio_asset_size_log.rb +259 -0
  222. data/lib/nucleus_api/models/page_portfolio_comment.rb +259 -0
  223. data/lib/nucleus_api/models/page_portfolio_goal.rb +259 -0
  224. data/lib/nucleus_api/models/page_portfolio_holding_agg.rb +259 -0
  225. data/lib/nucleus_api/models/page_portfolio_holding_log.rb +259 -0
  226. data/lib/nucleus_api/models/page_portfolio_transaction.rb +259 -0
  227. data/lib/nucleus_api/models/page_question.rb +259 -0
  228. data/lib/nucleus_api/models/page_questionnaire.rb +259 -0
  229. data/lib/nucleus_api/models/page_reason_code.rb +259 -0
  230. data/lib/nucleus_api/models/page_risk_profile.rb +259 -0
  231. data/lib/nucleus_api/models/page_roundup.rb +259 -0
  232. data/lib/nucleus_api/models/page_roundup_settings.rb +259 -0
  233. data/lib/nucleus_api/models/page_score.rb +259 -0
  234. data/lib/nucleus_api/models/page_security.rb +259 -0
  235. data/lib/nucleus_api/models/page_security_exclusion.rb +259 -0
  236. data/lib/nucleus_api/models/page_security_price.rb +259 -0
  237. data/lib/nucleus_api/models/page_spending_control.rb +259 -0
  238. data/lib/nucleus_api/models/page_stage.rb +259 -0
  239. data/lib/nucleus_api/models/page_transaction_code.rb +259 -0
  240. data/lib/nucleus_api/models/page_webhook.rb +259 -0
  241. data/lib/nucleus_api/models/pageable.rb +227 -0
  242. data/lib/nucleus_api/models/permission_vo.rb +227 -0
  243. data/lib/nucleus_api/models/portfolio.rb +337 -0
  244. data/lib/nucleus_api/models/portfolio_asset_size_log.rb +330 -0
  245. data/lib/nucleus_api/models/portfolio_comment.rb +280 -0
  246. data/lib/nucleus_api/models/portfolio_goal.rb +256 -0
  247. data/lib/nucleus_api/models/portfolio_goal_map.rb +203 -0
  248. data/lib/nucleus_api/models/portfolio_holding_agg.rb +244 -0
  249. data/lib/nucleus_api/models/portfolio_holding_log.rb +340 -0
  250. data/lib/nucleus_api/models/portfolio_transaction.rb +536 -0
  251. data/lib/nucleus_api/models/question.rb +362 -0
  252. data/lib/nucleus_api/models/questionnaire.rb +288 -0
  253. data/lib/nucleus_api/models/reason_code.rb +275 -0
  254. data/lib/nucleus_api/models/risk_profile.rb +287 -0
  255. data/lib/nucleus_api/models/roundup.rb +267 -0
  256. data/lib/nucleus_api/models/roundup_co.rb +233 -0
  257. data/lib/nucleus_api/models/roundup_settings.rb +332 -0
  258. data/lib/nucleus_api/models/score.rb +375 -0
  259. data/lib/nucleus_api/models/securities_composition.rb +233 -0
  260. data/lib/nucleus_api/models/securities_country.rb +203 -0
  261. data/lib/nucleus_api/models/security.rb +435 -0
  262. data/lib/nucleus_api/models/security_composition_vo.rb +301 -0
  263. data/lib/nucleus_api/models/security_country_vo.rb +191 -0
  264. data/lib/nucleus_api/models/security_exclusion.rb +301 -0
  265. data/lib/nucleus_api/models/security_price.rb +314 -0
  266. data/lib/nucleus_api/models/sort.rb +234 -0
  267. data/lib/nucleus_api/models/spending_control.rb +343 -0
  268. data/lib/nucleus_api/models/stage.rb +346 -0
  269. data/lib/nucleus_api/models/stat.rb +204 -0
  270. data/lib/nucleus_api/models/state.rb +203 -0
  271. data/lib/nucleus_api/models/statistic_resource_vo.rb +209 -0
  272. data/lib/nucleus_api/models/token_date_request.rb +234 -0
  273. data/lib/nucleus_api/models/transaction_code.rb +313 -0
  274. data/lib/nucleus_api/models/v_account_vo.rb +227 -0
  275. data/lib/nucleus_api/models/v_client_goal_view_data.rb +229 -0
  276. data/lib/nucleus_api/models/v_portfolio_vo.rb +209 -0
  277. data/lib/nucleus_api/models/webhook.rb +278 -0
  278. data/lib/nucleus_api/version.rb +15 -0
  279. data/nucleus_api.gemspec +46 -0
  280. data/spec/api/account_api_spec.rb +445 -0
  281. data/spec/api/admin_client_api_spec.rb +107 -0
  282. data/spec/api/aggregation_account_api_spec.rb +412 -0
  283. data/spec/api/allocation_api_spec.rb +225 -0
  284. data/spec/api/benchmark_api_spec.rb +115 -0
  285. data/spec/api/budget_api_spec.rb +102 -0
  286. data/spec/api/bulk_api_spec.rb +86 -0
  287. data/spec/api/business_api_spec.rb +159 -0
  288. data/spec/api/card_api_spec.rb +239 -0
  289. data/spec/api/client_api_spec.rb +327 -0
  290. data/spec/api/contact_api_spec.rb +167 -0
  291. data/spec/api/decision_tree_api_spec.rb +242 -0
  292. data/spec/api/document_api_spec.rb +100 -0
  293. data/spec/api/financial_statement_api_spec.rb +102 -0
  294. data/spec/api/funding_api_spec.rb +315 -0
  295. data/spec/api/goal_api_spec.rb +231 -0
  296. data/spec/api/household_api_spec.rb +159 -0
  297. data/spec/api/invoice_api_spec.rb +169 -0
  298. data/spec/api/model_api_spec.rb +375 -0
  299. data/spec/api/order_api_spec.rb +412 -0
  300. data/spec/api/overflow_api_spec.rb +140 -0
  301. data/spec/api/portfolio_api_spec.rb +464 -0
  302. data/spec/api/questionnaire_api_spec.rb +230 -0
  303. data/spec/api/resource_api_spec.rb +229 -0
  304. data/spec/api/risk_profile_api_spec.rb +100 -0
  305. data/spec/api/roundup_api_spec.rb +140 -0
  306. data/spec/api/score_api_spec.rb +100 -0
  307. data/spec/api/securities_api_spec.rb +232 -0
  308. data/spec/api/spending_control_api_spec.rb +100 -0
  309. data/spec/api/utils_api_spec.rb +660 -0
  310. data/spec/api/webhook_api_spec.rb +100 -0
  311. data/spec/api_client_spec.rb +243 -0
  312. data/spec/configuration_spec.rb +42 -0
  313. data/spec/models/account_allocation_mapping_spec.rb +95 -0
  314. data/spec/models/account_map_spec.rb +47 -0
  315. data/spec/models/account_permission_vo_spec.rb +47 -0
  316. data/spec/models/account_portfolio_rebalance_request_spec.rb +119 -0
  317. data/spec/models/account_spec.rb +125 -0
  318. data/spec/models/account_status_spec.rb +89 -0
  319. data/spec/models/account_type_spec.rb +131 -0
  320. data/spec/models/acl_client_permission_vo_spec.rb +57 -0
  321. data/spec/models/admin_client_spec.rb +113 -0
  322. data/spec/models/aggregation_account_balance_spec.rb +101 -0
  323. data/spec/models/aggregation_account_holding_spec.rb +149 -0
  324. data/spec/models/aggregation_account_spec.rb +251 -0
  325. data/spec/models/aggregation_account_transaction_spec.rb +131 -0
  326. data/spec/models/aggregation_accounts_map_spec.rb +47 -0
  327. data/spec/models/allocation_aggregated_vo_spec.rb +71 -0
  328. data/spec/models/allocation_composition_aggregated_vo_spec.rb +107 -0
  329. data/spec/models/allocation_composition_model_holdings_vo_spec.rb +125 -0
  330. data/spec/models/allocation_composition_spec.rb +101 -0
  331. data/spec/models/allocation_node_map_spec.rb +41 -0
  332. data/spec/models/allocation_spec.rb +125 -0
  333. data/spec/models/answer_map_spec.rb +41 -0
  334. data/spec/models/answer_spec.rb +119 -0
  335. data/spec/models/application_spec.rb +83 -0
  336. data/spec/models/audit_log_spec.rb +131 -0
  337. data/spec/models/available_date_double_vo_spec.rb +77 -0
  338. data/spec/models/balances_spec.rb +65 -0
  339. data/spec/models/bank_credit_spec.rb +95 -0
  340. data/spec/models/bank_link_map_spec.rb +47 -0
  341. data/spec/models/bank_link_spec.rb +179 -0
  342. data/spec/models/benchmark_composition_spec.rb +47 -0
  343. data/spec/models/benchmark_spec.rb +95 -0
  344. data/spec/models/brokers_spec.rb +47 -0
  345. data/spec/models/budget_aggregation_account_spec.rb +41 -0
  346. data/spec/models/budget_object_spec.rb +53 -0
  347. data/spec/models/budget_spec.rb +149 -0
  348. data/spec/models/bulk_transaction_spec.rb +71 -0
  349. data/spec/models/bulk_transaction_vo_spec.rb +65 -0
  350. data/spec/models/business_address_spec.rb +83 -0
  351. data/spec/models/business_details_vo_spec.rb +71 -0
  352. data/spec/models/business_spec.rb +185 -0
  353. data/spec/models/card_address_spec.rb +77 -0
  354. data/spec/models/card_balance_vo_spec.rb +59 -0
  355. data/spec/models/card_details_vo_spec.rb +101 -0
  356. data/spec/models/card_program_spec.rb +131 -0
  357. data/spec/models/card_spec.rb +215 -0
  358. data/spec/models/cash_spec.rb +53 -0
  359. data/spec/models/categories_map_spec.rb +47 -0
  360. data/spec/models/check_images_spec.rb +47 -0
  361. data/spec/models/check_spec.rb +53 -0
  362. data/spec/models/client_account_mapping_spec.rb +53 -0
  363. data/spec/models/client_address_spec.rb +83 -0
  364. data/spec/models/client_business_card_vo_spec.rb +59 -0
  365. data/spec/models/client_business_total_card_balance_vo_spec.rb +53 -0
  366. data/spec/models/client_card_vo_spec.rb +77 -0
  367. data/spec/models/client_credentials_spec.rb +53 -0
  368. data/spec/models/client_relationship_spec.rb +53 -0
  369. data/spec/models/client_response_spec.rb +95 -0
  370. data/spec/models/client_spec.rb +239 -0
  371. data/spec/models/client_status_spec.rb +89 -0
  372. data/spec/models/client_view_goal_data_spec.rb +119 -0
  373. data/spec/models/contact_address_spec.rb +77 -0
  374. data/spec/models/contact_spec.rb +143 -0
  375. data/spec/models/country_spec.rb +71 -0
  376. data/spec/models/currency_spec.rb +59 -0
  377. data/spec/models/customer_revenue_spec.rb +95 -0
  378. data/spec/models/date_double_vo_spec.rb +53 -0
  379. data/spec/models/decision_tree_co_spec.rb +47 -0
  380. data/spec/models/decision_tree_result_vo_spec.rb +47 -0
  381. data/spec/models/decision_tree_spec.rb +95 -0
  382. data/spec/models/document_spec.rb +173 -0
  383. data/spec/models/employment_spec.rb +59 -0
  384. data/spec/models/external_account_transfer_spec.rb +161 -0
  385. data/spec/models/feature_spec.rb +101 -0
  386. data/spec/models/feature_track_spec.rb +77 -0
  387. data/spec/models/financial_statement_spec.rb +137 -0
  388. data/spec/models/funding_request_map_spec.rb +41 -0
  389. data/spec/models/funding_spec.rb +221 -0
  390. data/spec/models/funding_transaction_spec.rb +155 -0
  391. data/spec/models/fx_rate_spec.rb +59 -0
  392. data/spec/models/fx_rate_view_spec.rb +59 -0
  393. data/spec/models/goal_account_mapping_spec.rb +59 -0
  394. data/spec/models/goal_spec.rb +137 -0
  395. data/spec/models/goal_track_accounts_spec.rb +41 -0
  396. data/spec/models/goal_track_spec.rb +149 -0
  397. data/spec/models/household_spec.rb +101 -0
  398. data/spec/models/institution_spec.rb +83 -0
  399. data/spec/models/investment_spec.rb +89 -0
  400. data/spec/models/invoice_payment_spec.rb +89 -0
  401. data/spec/models/invoice_spec.rb +197 -0
  402. data/spec/models/json_node_spec.rb +35 -0
  403. data/spec/models/line_items_spec.rb +83 -0
  404. data/spec/models/location_spec.rb +83 -0
  405. data/spec/models/member_spec.rb +59 -0
  406. data/spec/models/merchant_category_code_spec.rb +65 -0
  407. data/spec/models/merchants_map_spec.rb +47 -0
  408. data/spec/models/model_asset_size_spec.rb +89 -0
  409. data/spec/models/model_comment_spec.rb +83 -0
  410. data/spec/models/model_holding_spec.rb +143 -0
  411. data/spec/models/model_holding_vo_spec.rb +59 -0
  412. data/spec/models/model_spec.rb +167 -0
  413. data/spec/models/model_transaction_spec.rb +95 -0
  414. data/spec/models/mx_merchant_res_spec.rb +77 -0
  415. data/spec/models/node_relationship_spec.rb +101 -0
  416. data/spec/models/node_spec.rb +83 -0
  417. data/spec/models/notification_client_spec.rb +107 -0
  418. data/spec/models/notification_setting_spec.rb +107 -0
  419. data/spec/models/notification_spec.rb +113 -0
  420. data/spec/models/order_bulk_spec.rb +101 -0
  421. data/spec/models/order_reconcile_request_spec.rb +65 -0
  422. data/spec/models/order_reconcile_return_object_spec.rb +65 -0
  423. data/spec/models/order_spec.rb +155 -0
  424. data/spec/models/order_status_spec.rb +77 -0
  425. data/spec/models/order_track_spec.rb +113 -0
  426. data/spec/models/order_vo_clone_spec.rb +113 -0
  427. data/spec/models/overflow_bank_link_map_spec.rb +53 -0
  428. data/spec/models/overflow_settings_spec.rb +95 -0
  429. data/spec/models/overflow_spec.rb +89 -0
  430. data/spec/models/overflow_vo_spec.rb +53 -0
  431. data/spec/models/ownership_spec.rb +65 -0
  432. data/spec/models/page_account_allocation_mapping_spec.rb +89 -0
  433. data/spec/models/page_account_permission_vo_spec.rb +89 -0
  434. data/spec/models/page_account_spec.rb +89 -0
  435. data/spec/models/page_account_status_spec.rb +89 -0
  436. data/spec/models/page_account_type_spec.rb +89 -0
  437. data/spec/models/page_admin_client_spec.rb +89 -0
  438. data/spec/models/page_aggregation_account_balance_spec.rb +89 -0
  439. data/spec/models/page_aggregation_account_holding_spec.rb +89 -0
  440. data/spec/models/page_aggregation_account_spec.rb +89 -0
  441. data/spec/models/page_aggregation_account_transaction_spec.rb +89 -0
  442. data/spec/models/page_allocation_composition_spec.rb +89 -0
  443. data/spec/models/page_allocation_spec.rb +89 -0
  444. data/spec/models/page_answer_spec.rb +89 -0
  445. data/spec/models/page_application_spec.rb +89 -0
  446. data/spec/models/page_audit_log_spec.rb +89 -0
  447. data/spec/models/page_bank_link_spec.rb +89 -0
  448. data/spec/models/page_benchmark_spec.rb +89 -0
  449. data/spec/models/page_budget_spec.rb +89 -0
  450. data/spec/models/page_business_spec.rb +89 -0
  451. data/spec/models/page_card_program_spec.rb +89 -0
  452. data/spec/models/page_card_spec.rb +89 -0
  453. data/spec/models/page_client_business_card_vo_spec.rb +89 -0
  454. data/spec/models/page_client_response_spec.rb +89 -0
  455. data/spec/models/page_client_spec.rb +89 -0
  456. data/spec/models/page_client_status_spec.rb +89 -0
  457. data/spec/models/page_contact_spec.rb +89 -0
  458. data/spec/models/page_customer_revenue_spec.rb +89 -0
  459. data/spec/models/page_decision_tree_spec.rb +89 -0
  460. data/spec/models/page_document_spec.rb +89 -0
  461. data/spec/models/page_external_account_transfer_spec.rb +89 -0
  462. data/spec/models/page_feature_spec.rb +89 -0
  463. data/spec/models/page_feature_track_spec.rb +89 -0
  464. data/spec/models/page_financial_statement_spec.rb +89 -0
  465. data/spec/models/page_funding_spec.rb +89 -0
  466. data/spec/models/page_funding_transaction_spec.rb +89 -0
  467. data/spec/models/page_goal_spec.rb +89 -0
  468. data/spec/models/page_goal_track_spec.rb +89 -0
  469. data/spec/models/page_household_spec.rb +89 -0
  470. data/spec/models/page_institution_spec.rb +89 -0
  471. data/spec/models/page_invoice_payment_spec.rb +89 -0
  472. data/spec/models/page_invoice_spec.rb +89 -0
  473. data/spec/models/page_model_asset_size_spec.rb +89 -0
  474. data/spec/models/page_model_comment_spec.rb +89 -0
  475. data/spec/models/page_model_holding_spec.rb +89 -0
  476. data/spec/models/page_model_spec.rb +89 -0
  477. data/spec/models/page_model_transaction_spec.rb +89 -0
  478. data/spec/models/page_mx_merchant_res_spec.rb +101 -0
  479. data/spec/models/page_node_relationship_spec.rb +89 -0
  480. data/spec/models/page_node_spec.rb +89 -0
  481. data/spec/models/page_notification_client_spec.rb +89 -0
  482. data/spec/models/page_notification_setting_spec.rb +89 -0
  483. data/spec/models/page_notification_spec.rb +89 -0
  484. data/spec/models/page_order_bulk_spec.rb +89 -0
  485. data/spec/models/page_order_spec.rb +89 -0
  486. data/spec/models/page_order_status_spec.rb +89 -0
  487. data/spec/models/page_order_track_spec.rb +89 -0
  488. data/spec/models/page_overflow_settings_spec.rb +89 -0
  489. data/spec/models/page_overflow_spec.rb +89 -0
  490. data/spec/models/page_portfolio_asset_size_log_spec.rb +89 -0
  491. data/spec/models/page_portfolio_comment_spec.rb +89 -0
  492. data/spec/models/page_portfolio_goal_spec.rb +89 -0
  493. data/spec/models/page_portfolio_holding_agg_spec.rb +89 -0
  494. data/spec/models/page_portfolio_holding_log_spec.rb +89 -0
  495. data/spec/models/page_portfolio_spec.rb +89 -0
  496. data/spec/models/page_portfolio_transaction_spec.rb +89 -0
  497. data/spec/models/page_question_spec.rb +89 -0
  498. data/spec/models/page_questionnaire_spec.rb +89 -0
  499. data/spec/models/page_reason_code_spec.rb +89 -0
  500. data/spec/models/page_risk_profile_spec.rb +89 -0
  501. data/spec/models/page_roundup_settings_spec.rb +89 -0
  502. data/spec/models/page_roundup_spec.rb +89 -0
  503. data/spec/models/page_score_spec.rb +89 -0
  504. data/spec/models/page_security_exclusion_spec.rb +89 -0
  505. data/spec/models/page_security_price_spec.rb +89 -0
  506. data/spec/models/page_security_spec.rb +89 -0
  507. data/spec/models/page_spending_control_spec.rb +89 -0
  508. data/spec/models/page_stage_spec.rb +89 -0
  509. data/spec/models/page_transaction_code_spec.rb +89 -0
  510. data/spec/models/page_webhook_spec.rb +89 -0
  511. data/spec/models/pageable_spec.rb +71 -0
  512. data/spec/models/permission_vo_spec.rb +51 -0
  513. data/spec/models/portfolio_asset_size_log_spec.rb +113 -0
  514. data/spec/models/portfolio_comment_spec.rb +89 -0
  515. data/spec/models/portfolio_goal_map_spec.rb +47 -0
  516. data/spec/models/portfolio_goal_spec.rb +77 -0
  517. data/spec/models/portfolio_holding_agg_spec.rb +77 -0
  518. data/spec/models/portfolio_holding_log_spec.rb +119 -0
  519. data/spec/models/portfolio_spec.rb +125 -0
  520. data/spec/models/portfolio_transaction_spec.rb +239 -0
  521. data/spec/models/question_spec.rb +149 -0
  522. data/spec/models/questionnaire_spec.rb +101 -0
  523. data/spec/models/reason_code_spec.rb +95 -0
  524. data/spec/models/risk_profile_spec.rb +101 -0
  525. data/spec/models/roundup_co_spec.rb +65 -0
  526. data/spec/models/roundup_settings_spec.rb +119 -0
  527. data/spec/models/roundup_spec.rb +83 -0
  528. data/spec/models/score_spec.rb +135 -0
  529. data/spec/models/securities_composition_spec.rb +59 -0
  530. data/spec/models/securities_country_spec.rb +47 -0
  531. data/spec/models/security_composition_vo_spec.rb +119 -0
  532. data/spec/models/security_country_vo_spec.rb +47 -0
  533. data/spec/models/security_exclusion_spec.rb +101 -0
  534. data/spec/models/security_price_spec.rb +113 -0
  535. data/spec/models/security_spec.rb +185 -0
  536. data/spec/models/sort_spec.rb +71 -0
  537. data/spec/models/spending_control_spec.rb +125 -0
  538. data/spec/models/stage_spec.rb +137 -0
  539. data/spec/models/stat_spec.rb +47 -0
  540. data/spec/models/state_spec.rb +53 -0
  541. data/spec/models/statistic_resource_vo_spec.rb +59 -0
  542. data/spec/models/token_date_request_spec.rb +71 -0
  543. data/spec/models/transaction_code_spec.rb +119 -0
  544. data/spec/models/v_account_vo_spec.rb +71 -0
  545. data/spec/models/v_client_goal_view_data_spec.rb +71 -0
  546. data/spec/models/v_portfolio_vo_spec.rb +59 -0
  547. data/spec/models/webhook_spec.rb +87 -0
  548. data/spec/spec_helper.rb +111 -0
  549. metadata +1059 -0
@@ -0,0 +1,1688 @@
1
+ =begin
2
+ #Hydrogen Nucleus API
3
+
4
+ #The Hydrogen Nucleus API
5
+
6
+ OpenAPI spec version: 1.9.2
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 'uri'
14
+
15
+ module NucleusApi
16
+ class OrderApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Bulk orders for an account
23
+ # Aggregates all orders on a given date for an account.
24
+ # @param account_id account_id
25
+ # @param req req
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [Array<Order>]
28
+ def create_account_order_bulk_using_post(account_id, req, opts = {})
29
+ data, _status_code, _headers = create_account_order_bulk_using_post_with_http_info(account_id, req, opts)
30
+ data
31
+ end
32
+
33
+ # Bulk orders for an account
34
+ # Aggregates all orders on a given date for an account.
35
+ # @param account_id account_id
36
+ # @param req req
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(Array<Order>, Fixnum, Hash)>] Array<Order> data, response status code and response headers
39
+ def create_account_order_bulk_using_post_with_http_info(account_id, req, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: OrderApi.create_account_order_bulk_using_post ...'
42
+ end
43
+ # verify the required parameter 'account_id' is set
44
+ if @api_client.config.client_side_validation && account_id.nil?
45
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling OrderApi.create_account_order_bulk_using_post"
46
+ end
47
+ # verify the required parameter 'req' is set
48
+ if @api_client.config.client_side_validation && req.nil?
49
+ fail ArgumentError, "Missing the required parameter 'req' when calling OrderApi.create_account_order_bulk_using_post"
50
+ end
51
+ # resource path
52
+ local_var_path = '/nucleus/v1/account/{account_id}/order_bulk'.sub('{' + 'account_id' + '}', account_id.to_s)
53
+
54
+ # query parameters
55
+ query_params = {}
56
+
57
+ # header parameters
58
+ header_params = {}
59
+ # HTTP header 'Accept' (if needed)
60
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
61
+ # HTTP header 'Content-Type'
62
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
63
+
64
+ # form parameters
65
+ form_params = {}
66
+
67
+ # http body (model)
68
+ post_body = @api_client.object_to_http_body(req)
69
+ auth_names = ['oauth2']
70
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => 'Array<Order>')
77
+ if @api_client.config.debugging
78
+ @api_client.config.logger.debug "API called: OrderApi#create_account_order_bulk_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
+ end
80
+ return data, status_code, headers
81
+ end
82
+ # Create buy-only account rebalance orders
83
+ # Create order records necessary to rebalance an account and all its portfolios according to the allocation(s) to which the account subscribes and models to which the portfolios subscribe.
84
+ # @param account_id account_id
85
+ # @param req req
86
+ # @param [Hash] opts the optional parameters
87
+ # @return [Array<OrderVoClone>]
88
+ def create_account_order_buy_only_using_post(account_id, req, opts = {})
89
+ data, _status_code, _headers = create_account_order_buy_only_using_post_with_http_info(account_id, req, opts)
90
+ data
91
+ end
92
+
93
+ # Create buy-only account rebalance orders
94
+ # Create order records necessary to rebalance an account and all its portfolios according to the allocation(s) to which the account subscribes and models to which the portfolios subscribe.
95
+ # @param account_id account_id
96
+ # @param req req
97
+ # @param [Hash] opts the optional parameters
98
+ # @return [Array<(Array<OrderVoClone>, Fixnum, Hash)>] Array<OrderVoClone> data, response status code and response headers
99
+ def create_account_order_buy_only_using_post_with_http_info(account_id, req, opts = {})
100
+ if @api_client.config.debugging
101
+ @api_client.config.logger.debug 'Calling API: OrderApi.create_account_order_buy_only_using_post ...'
102
+ end
103
+ # verify the required parameter 'account_id' is set
104
+ if @api_client.config.client_side_validation && account_id.nil?
105
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling OrderApi.create_account_order_buy_only_using_post"
106
+ end
107
+ # verify the required parameter 'req' is set
108
+ if @api_client.config.client_side_validation && req.nil?
109
+ fail ArgumentError, "Missing the required parameter 'req' when calling OrderApi.create_account_order_buy_only_using_post"
110
+ end
111
+ # resource path
112
+ local_var_path = '/nucleus/v1/account/{account_id}/order_buy_only'.sub('{' + 'account_id' + '}', account_id.to_s)
113
+
114
+ # query parameters
115
+ query_params = {}
116
+
117
+ # header parameters
118
+ header_params = {}
119
+ # HTTP header 'Accept' (if needed)
120
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
121
+ # HTTP header 'Content-Type'
122
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
123
+
124
+ # form parameters
125
+ form_params = {}
126
+
127
+ # http body (model)
128
+ post_body = @api_client.object_to_http_body(req)
129
+ auth_names = ['oauth2']
130
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
131
+ :header_params => header_params,
132
+ :query_params => query_params,
133
+ :form_params => form_params,
134
+ :body => post_body,
135
+ :auth_names => auth_names,
136
+ :return_type => 'Array<OrderVoClone>')
137
+ if @api_client.config.debugging
138
+ @api_client.config.logger.debug "API called: OrderApi#create_account_order_buy_only_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
139
+ end
140
+ return data, status_code, headers
141
+ end
142
+ # Create account rebalance orders
143
+ # Create order records necessary to rebalance an account and all its portfolios according to the allocation(s) to which the account subscribes and models to which the portfolios subscribe.
144
+ # @param account_id account_id
145
+ # @param req req
146
+ # @param [Hash] opts the optional parameters
147
+ # @return [Array<OrderVoClone>]
148
+ def create_account_order_rebalance_using_post(account_id, req, opts = {})
149
+ data, _status_code, _headers = create_account_order_rebalance_using_post_with_http_info(account_id, req, opts)
150
+ data
151
+ end
152
+
153
+ # Create account rebalance orders
154
+ # Create order records necessary to rebalance an account and all its portfolios according to the allocation(s) to which the account subscribes and models to which the portfolios subscribe.
155
+ # @param account_id account_id
156
+ # @param req req
157
+ # @param [Hash] opts the optional parameters
158
+ # @return [Array<(Array<OrderVoClone>, Fixnum, Hash)>] Array<OrderVoClone> data, response status code and response headers
159
+ def create_account_order_rebalance_using_post_with_http_info(account_id, req, opts = {})
160
+ if @api_client.config.debugging
161
+ @api_client.config.logger.debug 'Calling API: OrderApi.create_account_order_rebalance_using_post ...'
162
+ end
163
+ # verify the required parameter 'account_id' is set
164
+ if @api_client.config.client_side_validation && account_id.nil?
165
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling OrderApi.create_account_order_rebalance_using_post"
166
+ end
167
+ # verify the required parameter 'req' is set
168
+ if @api_client.config.client_side_validation && req.nil?
169
+ fail ArgumentError, "Missing the required parameter 'req' when calling OrderApi.create_account_order_rebalance_using_post"
170
+ end
171
+ # resource path
172
+ local_var_path = '/nucleus/v1/account/{account_id}/order_rebalance'.sub('{' + 'account_id' + '}', account_id.to_s)
173
+
174
+ # query parameters
175
+ query_params = {}
176
+
177
+ # header parameters
178
+ header_params = {}
179
+ # HTTP header 'Accept' (if needed)
180
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
181
+ # HTTP header 'Content-Type'
182
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
183
+
184
+ # form parameters
185
+ form_params = {}
186
+
187
+ # http body (model)
188
+ post_body = @api_client.object_to_http_body(req)
189
+ auth_names = ['oauth2']
190
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
191
+ :header_params => header_params,
192
+ :query_params => query_params,
193
+ :form_params => form_params,
194
+ :body => post_body,
195
+ :auth_names => auth_names,
196
+ :return_type => 'Array<OrderVoClone>')
197
+ if @api_client.config.debugging
198
+ @api_client.config.logger.debug "API called: OrderApi#create_account_order_rebalance_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
199
+ end
200
+ return data, status_code, headers
201
+ end
202
+ # Create account reconciliation order
203
+ # @param account_id account_id
204
+ # @param req req
205
+ # @param [Hash] opts the optional parameters
206
+ # @return [OrderReconcileReturnObject]
207
+ def create_account_order_reconciliation(account_id, req, opts = {})
208
+ data, _status_code, _headers = create_account_order_reconciliation_with_http_info(account_id, req, opts)
209
+ data
210
+ end
211
+
212
+ # Create account reconciliation order
213
+ # @param account_id account_id
214
+ # @param req req
215
+ # @param [Hash] opts the optional parameters
216
+ # @return [Array<(OrderReconcileReturnObject, Fixnum, Hash)>] OrderReconcileReturnObject data, response status code and response headers
217
+ def create_account_order_reconciliation_with_http_info(account_id, req, opts = {})
218
+ if @api_client.config.debugging
219
+ @api_client.config.logger.debug 'Calling API: OrderApi.create_account_order_reconciliation ...'
220
+ end
221
+ # verify the required parameter 'account_id' is set
222
+ if @api_client.config.client_side_validation && account_id.nil?
223
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling OrderApi.create_account_order_reconciliation"
224
+ end
225
+ # verify the required parameter 'req' is set
226
+ if @api_client.config.client_side_validation && req.nil?
227
+ fail ArgumentError, "Missing the required parameter 'req' when calling OrderApi.create_account_order_reconciliation"
228
+ end
229
+ # resource path
230
+ local_var_path = '/nucleus/v1/account/{account_id}/order_reconciliation'.sub('{' + 'account_id' + '}', account_id.to_s)
231
+
232
+ # query parameters
233
+ query_params = {}
234
+
235
+ # header parameters
236
+ header_params = {}
237
+ # HTTP header 'Accept' (if needed)
238
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
239
+ # HTTP header 'Content-Type'
240
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
241
+
242
+ # form parameters
243
+ form_params = {}
244
+
245
+ # http body (model)
246
+ post_body = @api_client.object_to_http_body(req)
247
+ auth_names = ['oauth2']
248
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
249
+ :header_params => header_params,
250
+ :query_params => query_params,
251
+ :form_params => form_params,
252
+ :body => post_body,
253
+ :auth_names => auth_names,
254
+ :return_type => 'OrderReconcileReturnObject')
255
+ if @api_client.config.debugging
256
+ @api_client.config.logger.debug "API called: OrderApi#create_account_order_reconciliation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
257
+ end
258
+ return data, status_code, headers
259
+ end
260
+ # Sell all account order
261
+ # Create order records necessary to entirely sell all the holdings within an account.
262
+ # @param account_id account_id
263
+ # @param req req
264
+ # @param [Hash] opts the optional parameters
265
+ # @return [Array<OrderVoClone>]
266
+ def create_account_order_sell_all_using_post(account_id, req, opts = {})
267
+ data, _status_code, _headers = create_account_order_sell_all_using_post_with_http_info(account_id, req, opts)
268
+ data
269
+ end
270
+
271
+ # Sell all account order
272
+ # Create order records necessary to entirely sell all the holdings within an account.
273
+ # @param account_id account_id
274
+ # @param req req
275
+ # @param [Hash] opts the optional parameters
276
+ # @return [Array<(Array<OrderVoClone>, Fixnum, Hash)>] Array<OrderVoClone> data, response status code and response headers
277
+ def create_account_order_sell_all_using_post_with_http_info(account_id, req, opts = {})
278
+ if @api_client.config.debugging
279
+ @api_client.config.logger.debug 'Calling API: OrderApi.create_account_order_sell_all_using_post ...'
280
+ end
281
+ # verify the required parameter 'account_id' is set
282
+ if @api_client.config.client_side_validation && account_id.nil?
283
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling OrderApi.create_account_order_sell_all_using_post"
284
+ end
285
+ # verify the required parameter 'req' is set
286
+ if @api_client.config.client_side_validation && req.nil?
287
+ fail ArgumentError, "Missing the required parameter 'req' when calling OrderApi.create_account_order_sell_all_using_post"
288
+ end
289
+ # resource path
290
+ local_var_path = '/nucleus/v1/account/{account_id}/order_sell_all'.sub('{' + 'account_id' + '}', account_id.to_s)
291
+
292
+ # query parameters
293
+ query_params = {}
294
+
295
+ # header parameters
296
+ header_params = {}
297
+ # HTTP header 'Accept' (if needed)
298
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
299
+ # HTTP header 'Content-Type'
300
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
301
+
302
+ # form parameters
303
+ form_params = {}
304
+
305
+ # http body (model)
306
+ post_body = @api_client.object_to_http_body(req)
307
+ auth_names = ['oauth2']
308
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
309
+ :header_params => header_params,
310
+ :query_params => query_params,
311
+ :form_params => form_params,
312
+ :body => post_body,
313
+ :auth_names => auth_names,
314
+ :return_type => 'Array<OrderVoClone>')
315
+ if @api_client.config.debugging
316
+ @api_client.config.logger.debug "API called: OrderApi#create_account_order_sell_all_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
317
+ end
318
+ return data, status_code, headers
319
+ end
320
+ # Create sell-only account rebalance orders
321
+ # Create order records necessary to rebalance an account and all its portfolios according to the allocation(s) to which the account subscribes and models to which the portfolios subscribe.
322
+ # @param account_id account_id
323
+ # @param req req
324
+ # @param [Hash] opts the optional parameters
325
+ # @return [Array<OrderVoClone>]
326
+ def create_account_order_sell_only_using_post(account_id, req, opts = {})
327
+ data, _status_code, _headers = create_account_order_sell_only_using_post_with_http_info(account_id, req, opts)
328
+ data
329
+ end
330
+
331
+ # Create sell-only account rebalance orders
332
+ # Create order records necessary to rebalance an account and all its portfolios according to the allocation(s) to which the account subscribes and models to which the portfolios subscribe.
333
+ # @param account_id account_id
334
+ # @param req req
335
+ # @param [Hash] opts the optional parameters
336
+ # @return [Array<(Array<OrderVoClone>, Fixnum, Hash)>] Array<OrderVoClone> data, response status code and response headers
337
+ def create_account_order_sell_only_using_post_with_http_info(account_id, req, opts = {})
338
+ if @api_client.config.debugging
339
+ @api_client.config.logger.debug 'Calling API: OrderApi.create_account_order_sell_only_using_post ...'
340
+ end
341
+ # verify the required parameter 'account_id' is set
342
+ if @api_client.config.client_side_validation && account_id.nil?
343
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling OrderApi.create_account_order_sell_only_using_post"
344
+ end
345
+ # verify the required parameter 'req' is set
346
+ if @api_client.config.client_side_validation && req.nil?
347
+ fail ArgumentError, "Missing the required parameter 'req' when calling OrderApi.create_account_order_sell_only_using_post"
348
+ end
349
+ # resource path
350
+ local_var_path = '/nucleus/v1/account/{account_id}/order_sell_only'.sub('{' + 'account_id' + '}', account_id.to_s)
351
+
352
+ # query parameters
353
+ query_params = {}
354
+
355
+ # header parameters
356
+ header_params = {}
357
+ # HTTP header 'Accept' (if needed)
358
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
359
+ # HTTP header 'Content-Type'
360
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
361
+
362
+ # form parameters
363
+ form_params = {}
364
+
365
+ # http body (model)
366
+ post_body = @api_client.object_to_http_body(req)
367
+ auth_names = ['oauth2']
368
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
369
+ :header_params => header_params,
370
+ :query_params => query_params,
371
+ :form_params => form_params,
372
+ :body => post_body,
373
+ :auth_names => auth_names,
374
+ :return_type => 'Array<OrderVoClone>')
375
+ if @api_client.config.debugging
376
+ @api_client.config.logger.debug "API called: OrderApi#create_account_order_sell_only_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
377
+ end
378
+ return data, status_code, headers
379
+ end
380
+ # Bulk orders for a client
381
+ # Aggregates all orders on a given date for a client
382
+ # @param client_id client_id
383
+ # @param req req
384
+ # @param [Hash] opts the optional parameters
385
+ # @return [Array<Order>]
386
+ def create_client_order_bulk_using_post(client_id, req, opts = {})
387
+ data, _status_code, _headers = create_client_order_bulk_using_post_with_http_info(client_id, req, opts)
388
+ data
389
+ end
390
+
391
+ # Bulk orders for a client
392
+ # Aggregates all orders on a given date for a client
393
+ # @param client_id client_id
394
+ # @param req req
395
+ # @param [Hash] opts the optional parameters
396
+ # @return [Array<(Array<Order>, Fixnum, Hash)>] Array<Order> data, response status code and response headers
397
+ def create_client_order_bulk_using_post_with_http_info(client_id, req, opts = {})
398
+ if @api_client.config.debugging
399
+ @api_client.config.logger.debug 'Calling API: OrderApi.create_client_order_bulk_using_post ...'
400
+ end
401
+ # verify the required parameter 'client_id' is set
402
+ if @api_client.config.client_side_validation && client_id.nil?
403
+ fail ArgumentError, "Missing the required parameter 'client_id' when calling OrderApi.create_client_order_bulk_using_post"
404
+ end
405
+ # verify the required parameter 'req' is set
406
+ if @api_client.config.client_side_validation && req.nil?
407
+ fail ArgumentError, "Missing the required parameter 'req' when calling OrderApi.create_client_order_bulk_using_post"
408
+ end
409
+ # resource path
410
+ local_var_path = '/nucleus/v1/client/{client_id}/order_bulk'.sub('{' + 'client_id' + '}', client_id.to_s)
411
+
412
+ # query parameters
413
+ query_params = {}
414
+
415
+ # header parameters
416
+ header_params = {}
417
+ # HTTP header 'Accept' (if needed)
418
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
419
+ # HTTP header 'Content-Type'
420
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
421
+
422
+ # form parameters
423
+ form_params = {}
424
+
425
+ # http body (model)
426
+ post_body = @api_client.object_to_http_body(req)
427
+ auth_names = ['oauth2']
428
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
429
+ :header_params => header_params,
430
+ :query_params => query_params,
431
+ :form_params => form_params,
432
+ :body => post_body,
433
+ :auth_names => auth_names,
434
+ :return_type => 'Array<Order>')
435
+ if @api_client.config.debugging
436
+ @api_client.config.logger.debug "API called: OrderApi#create_client_order_bulk_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
437
+ end
438
+ return data, status_code, headers
439
+ end
440
+ # Bulk orders for your firm
441
+ # Aggregates all orders on a given date for your firm.
442
+ # @param req req
443
+ # @param [Hash] opts the optional parameters
444
+ # @return [Array<Order>]
445
+ def create_order_bulk_using_post(req, opts = {})
446
+ data, _status_code, _headers = create_order_bulk_using_post_with_http_info(req, opts)
447
+ data
448
+ end
449
+
450
+ # Bulk orders for your firm
451
+ # Aggregates all orders on a given date for your firm.
452
+ # @param req req
453
+ # @param [Hash] opts the optional parameters
454
+ # @return [Array<(Array<Order>, Fixnum, Hash)>] Array<Order> data, response status code and response headers
455
+ def create_order_bulk_using_post_with_http_info(req, opts = {})
456
+ if @api_client.config.debugging
457
+ @api_client.config.logger.debug 'Calling API: OrderApi.create_order_bulk_using_post ...'
458
+ end
459
+ # verify the required parameter 'req' is set
460
+ if @api_client.config.client_side_validation && req.nil?
461
+ fail ArgumentError, "Missing the required parameter 'req' when calling OrderApi.create_order_bulk_using_post"
462
+ end
463
+ # resource path
464
+ local_var_path = '/nucleus/v1/order_bulk'
465
+
466
+ # query parameters
467
+ query_params = {}
468
+
469
+ # header parameters
470
+ header_params = {}
471
+ # HTTP header 'Accept' (if needed)
472
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
473
+ # HTTP header 'Content-Type'
474
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
475
+
476
+ # form parameters
477
+ form_params = {}
478
+
479
+ # http body (model)
480
+ post_body = @api_client.object_to_http_body(req)
481
+ auth_names = ['oauth2']
482
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
483
+ :header_params => header_params,
484
+ :query_params => query_params,
485
+ :form_params => form_params,
486
+ :body => post_body,
487
+ :auth_names => auth_names,
488
+ :return_type => 'Array<Order>')
489
+ if @api_client.config.debugging
490
+ @api_client.config.logger.debug "API called: OrderApi#create_order_bulk_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
491
+ end
492
+ return data, status_code, headers
493
+ end
494
+ # Create an order status
495
+ # Create an order status for your firm.
496
+ # @param order_status_request orderStatusRequest
497
+ # @param [Hash] opts the optional parameters
498
+ # @return [OrderStatus]
499
+ def create_order_status_using_post(order_status_request, opts = {})
500
+ data, _status_code, _headers = create_order_status_using_post_with_http_info(order_status_request, opts)
501
+ data
502
+ end
503
+
504
+ # Create an order status
505
+ # Create an order status for your firm.
506
+ # @param order_status_request orderStatusRequest
507
+ # @param [Hash] opts the optional parameters
508
+ # @return [Array<(OrderStatus, Fixnum, Hash)>] OrderStatus data, response status code and response headers
509
+ def create_order_status_using_post_with_http_info(order_status_request, opts = {})
510
+ if @api_client.config.debugging
511
+ @api_client.config.logger.debug 'Calling API: OrderApi.create_order_status_using_post ...'
512
+ end
513
+ # verify the required parameter 'order_status_request' is set
514
+ if @api_client.config.client_side_validation && order_status_request.nil?
515
+ fail ArgumentError, "Missing the required parameter 'order_status_request' when calling OrderApi.create_order_status_using_post"
516
+ end
517
+ # resource path
518
+ local_var_path = '/nucleus/v1/order_status'
519
+
520
+ # query parameters
521
+ query_params = {}
522
+
523
+ # header parameters
524
+ header_params = {}
525
+ # HTTP header 'Accept' (if needed)
526
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
527
+ # HTTP header 'Content-Type'
528
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
529
+
530
+ # form parameters
531
+ form_params = {}
532
+
533
+ # http body (model)
534
+ post_body = @api_client.object_to_http_body(order_status_request)
535
+ auth_names = ['oauth2']
536
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
537
+ :header_params => header_params,
538
+ :query_params => query_params,
539
+ :form_params => form_params,
540
+ :body => post_body,
541
+ :auth_names => auth_names,
542
+ :return_type => 'OrderStatus')
543
+ if @api_client.config.debugging
544
+ @api_client.config.logger.debug "API called: OrderApi#create_order_status_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
545
+ end
546
+ return data, status_code, headers
547
+ end
548
+ # Create an order tracking record
549
+ # Create a new order tracking record for an order.
550
+ # @param order_track_request orderTrackRequest
551
+ # @param [Hash] opts the optional parameters
552
+ # @return [OrderTrack]
553
+ def create_order_track_using_post(order_track_request, opts = {})
554
+ data, _status_code, _headers = create_order_track_using_post_with_http_info(order_track_request, opts)
555
+ data
556
+ end
557
+
558
+ # Create an order tracking record
559
+ # Create a new order tracking record for an order.
560
+ # @param order_track_request orderTrackRequest
561
+ # @param [Hash] opts the optional parameters
562
+ # @return [Array<(OrderTrack, Fixnum, Hash)>] OrderTrack data, response status code and response headers
563
+ def create_order_track_using_post_with_http_info(order_track_request, opts = {})
564
+ if @api_client.config.debugging
565
+ @api_client.config.logger.debug 'Calling API: OrderApi.create_order_track_using_post ...'
566
+ end
567
+ # verify the required parameter 'order_track_request' is set
568
+ if @api_client.config.client_side_validation && order_track_request.nil?
569
+ fail ArgumentError, "Missing the required parameter 'order_track_request' when calling OrderApi.create_order_track_using_post"
570
+ end
571
+ # resource path
572
+ local_var_path = '/nucleus/v1/order_track'
573
+
574
+ # query parameters
575
+ query_params = {}
576
+
577
+ # header parameters
578
+ header_params = {}
579
+ # HTTP header 'Accept' (if needed)
580
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
581
+ # HTTP header 'Content-Type'
582
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
583
+
584
+ # form parameters
585
+ form_params = {}
586
+
587
+ # http body (model)
588
+ post_body = @api_client.object_to_http_body(order_track_request)
589
+ auth_names = ['oauth2']
590
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
591
+ :header_params => header_params,
592
+ :query_params => query_params,
593
+ :form_params => form_params,
594
+ :body => post_body,
595
+ :auth_names => auth_names,
596
+ :return_type => 'OrderTrack')
597
+ if @api_client.config.debugging
598
+ @api_client.config.logger.debug "API called: OrderApi#create_order_track_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
599
+ end
600
+ return data, status_code, headers
601
+ end
602
+ # Create an order record
603
+ # Create an order record defined for your firm.
604
+ # @param order_info_request orderInfoRequest
605
+ # @param [Hash] opts the optional parameters
606
+ # @return [Order]
607
+ def create_order_using_post(order_info_request, opts = {})
608
+ data, _status_code, _headers = create_order_using_post_with_http_info(order_info_request, opts)
609
+ data
610
+ end
611
+
612
+ # Create an order record
613
+ # Create an order record defined for your firm.
614
+ # @param order_info_request orderInfoRequest
615
+ # @param [Hash] opts the optional parameters
616
+ # @return [Array<(Order, Fixnum, Hash)>] Order data, response status code and response headers
617
+ def create_order_using_post_with_http_info(order_info_request, opts = {})
618
+ if @api_client.config.debugging
619
+ @api_client.config.logger.debug 'Calling API: OrderApi.create_order_using_post ...'
620
+ end
621
+ # verify the required parameter 'order_info_request' is set
622
+ if @api_client.config.client_side_validation && order_info_request.nil?
623
+ fail ArgumentError, "Missing the required parameter 'order_info_request' when calling OrderApi.create_order_using_post"
624
+ end
625
+ # resource path
626
+ local_var_path = '/nucleus/v1/order'
627
+
628
+ # query parameters
629
+ query_params = {}
630
+
631
+ # header parameters
632
+ header_params = {}
633
+ # HTTP header 'Accept' (if needed)
634
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
635
+ # HTTP header 'Content-Type'
636
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
637
+
638
+ # form parameters
639
+ form_params = {}
640
+
641
+ # http body (model)
642
+ post_body = @api_client.object_to_http_body(order_info_request)
643
+ auth_names = ['oauth2']
644
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
645
+ :header_params => header_params,
646
+ :query_params => query_params,
647
+ :form_params => form_params,
648
+ :body => post_body,
649
+ :auth_names => auth_names,
650
+ :return_type => 'Order')
651
+ if @api_client.config.debugging
652
+ @api_client.config.logger.debug "API called: OrderApi#create_order_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
653
+ end
654
+ return data, status_code, headers
655
+ end
656
+ # Create buy-only portfolio rebalance orders
657
+ # Create order records necessary to rebalance a portfolio to the model to which it subscribes. However, these will only be buy transactions, and no securities will be sold.
658
+ # @param portfolio_id portfolio_id
659
+ # @param req req
660
+ # @param [Hash] opts the optional parameters
661
+ # @return [Array<OrderVoClone>]
662
+ def create_portfolio_order_buy_only_using_post(portfolio_id, req, opts = {})
663
+ data, _status_code, _headers = create_portfolio_order_buy_only_using_post_with_http_info(portfolio_id, req, opts)
664
+ data
665
+ end
666
+
667
+ # Create buy-only portfolio rebalance orders
668
+ # Create order records necessary to rebalance a portfolio to the model to which it subscribes. However, these will only be buy transactions, and no securities will be sold.
669
+ # @param portfolio_id portfolio_id
670
+ # @param req req
671
+ # @param [Hash] opts the optional parameters
672
+ # @return [Array<(Array<OrderVoClone>, Fixnum, Hash)>] Array<OrderVoClone> data, response status code and response headers
673
+ def create_portfolio_order_buy_only_using_post_with_http_info(portfolio_id, req, opts = {})
674
+ if @api_client.config.debugging
675
+ @api_client.config.logger.debug 'Calling API: OrderApi.create_portfolio_order_buy_only_using_post ...'
676
+ end
677
+ # verify the required parameter 'portfolio_id' is set
678
+ if @api_client.config.client_side_validation && portfolio_id.nil?
679
+ fail ArgumentError, "Missing the required parameter 'portfolio_id' when calling OrderApi.create_portfolio_order_buy_only_using_post"
680
+ end
681
+ # verify the required parameter 'req' is set
682
+ if @api_client.config.client_side_validation && req.nil?
683
+ fail ArgumentError, "Missing the required parameter 'req' when calling OrderApi.create_portfolio_order_buy_only_using_post"
684
+ end
685
+ # resource path
686
+ local_var_path = '/nucleus/v1/portfolio/{portfolio_id}/order_buy_only'.sub('{' + 'portfolio_id' + '}', portfolio_id.to_s)
687
+
688
+ # query parameters
689
+ query_params = {}
690
+
691
+ # header parameters
692
+ header_params = {}
693
+ # HTTP header 'Accept' (if needed)
694
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
695
+ # HTTP header 'Content-Type'
696
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
697
+
698
+ # form parameters
699
+ form_params = {}
700
+
701
+ # http body (model)
702
+ post_body = @api_client.object_to_http_body(req)
703
+ auth_names = ['oauth2']
704
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
705
+ :header_params => header_params,
706
+ :query_params => query_params,
707
+ :form_params => form_params,
708
+ :body => post_body,
709
+ :auth_names => auth_names,
710
+ :return_type => 'Array<OrderVoClone>')
711
+ if @api_client.config.debugging
712
+ @api_client.config.logger.debug "API called: OrderApi#create_portfolio_order_buy_only_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
713
+ end
714
+ return data, status_code, headers
715
+ end
716
+ # Create portfolio rebalance orders
717
+ # Create order records necessary to rebalance a portfolio to the model to which it subscribes.
718
+ # @param portfolio_id portfolio_id
719
+ # @param req req
720
+ # @param [Hash] opts the optional parameters
721
+ # @return [Array<OrderVoClone>]
722
+ def create_portfolio_order_rebalance_using_post(portfolio_id, req, opts = {})
723
+ data, _status_code, _headers = create_portfolio_order_rebalance_using_post_with_http_info(portfolio_id, req, opts)
724
+ data
725
+ end
726
+
727
+ # Create portfolio rebalance orders
728
+ # Create order records necessary to rebalance a portfolio to the model to which it subscribes.
729
+ # @param portfolio_id portfolio_id
730
+ # @param req req
731
+ # @param [Hash] opts the optional parameters
732
+ # @return [Array<(Array<OrderVoClone>, Fixnum, Hash)>] Array<OrderVoClone> data, response status code and response headers
733
+ def create_portfolio_order_rebalance_using_post_with_http_info(portfolio_id, req, opts = {})
734
+ if @api_client.config.debugging
735
+ @api_client.config.logger.debug 'Calling API: OrderApi.create_portfolio_order_rebalance_using_post ...'
736
+ end
737
+ # verify the required parameter 'portfolio_id' is set
738
+ if @api_client.config.client_side_validation && portfolio_id.nil?
739
+ fail ArgumentError, "Missing the required parameter 'portfolio_id' when calling OrderApi.create_portfolio_order_rebalance_using_post"
740
+ end
741
+ # verify the required parameter 'req' is set
742
+ if @api_client.config.client_side_validation && req.nil?
743
+ fail ArgumentError, "Missing the required parameter 'req' when calling OrderApi.create_portfolio_order_rebalance_using_post"
744
+ end
745
+ # resource path
746
+ local_var_path = '/nucleus/v1/portfolio/{portfolio_id}/order_rebalance'.sub('{' + 'portfolio_id' + '}', portfolio_id.to_s)
747
+
748
+ # query parameters
749
+ query_params = {}
750
+
751
+ # header parameters
752
+ header_params = {}
753
+ # HTTP header 'Accept' (if needed)
754
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
755
+ # HTTP header 'Content-Type'
756
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
757
+
758
+ # form parameters
759
+ form_params = {}
760
+
761
+ # http body (model)
762
+ post_body = @api_client.object_to_http_body(req)
763
+ auth_names = ['oauth2']
764
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
765
+ :header_params => header_params,
766
+ :query_params => query_params,
767
+ :form_params => form_params,
768
+ :body => post_body,
769
+ :auth_names => auth_names,
770
+ :return_type => 'Array<OrderVoClone>')
771
+ if @api_client.config.debugging
772
+ @api_client.config.logger.debug "API called: OrderApi#create_portfolio_order_rebalance_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
773
+ end
774
+ return data, status_code, headers
775
+ end
776
+ # Create portfolio reconciliation order
777
+ # @param portfolio_id portfolio_id
778
+ # @param req req
779
+ # @param [Hash] opts the optional parameters
780
+ # @return [OrderReconcileReturnObject]
781
+ def create_portfolio_order_reconciliation(portfolio_id, req, opts = {})
782
+ data, _status_code, _headers = create_portfolio_order_reconciliation_with_http_info(portfolio_id, req, opts)
783
+ data
784
+ end
785
+
786
+ # Create portfolio reconciliation order
787
+ # @param portfolio_id portfolio_id
788
+ # @param req req
789
+ # @param [Hash] opts the optional parameters
790
+ # @return [Array<(OrderReconcileReturnObject, Fixnum, Hash)>] OrderReconcileReturnObject data, response status code and response headers
791
+ def create_portfolio_order_reconciliation_with_http_info(portfolio_id, req, opts = {})
792
+ if @api_client.config.debugging
793
+ @api_client.config.logger.debug 'Calling API: OrderApi.create_portfolio_order_reconciliation ...'
794
+ end
795
+ # verify the required parameter 'portfolio_id' is set
796
+ if @api_client.config.client_side_validation && portfolio_id.nil?
797
+ fail ArgumentError, "Missing the required parameter 'portfolio_id' when calling OrderApi.create_portfolio_order_reconciliation"
798
+ end
799
+ # verify the required parameter 'req' is set
800
+ if @api_client.config.client_side_validation && req.nil?
801
+ fail ArgumentError, "Missing the required parameter 'req' when calling OrderApi.create_portfolio_order_reconciliation"
802
+ end
803
+ # resource path
804
+ local_var_path = '/nucleus/v1/portfolio/{portfolio_id}/order_reconciliation'.sub('{' + 'portfolio_id' + '}', portfolio_id.to_s)
805
+
806
+ # query parameters
807
+ query_params = {}
808
+
809
+ # header parameters
810
+ header_params = {}
811
+ # HTTP header 'Accept' (if needed)
812
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
813
+ # HTTP header 'Content-Type'
814
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
815
+
816
+ # form parameters
817
+ form_params = {}
818
+
819
+ # http body (model)
820
+ post_body = @api_client.object_to_http_body(req)
821
+ auth_names = ['oauth2']
822
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
823
+ :header_params => header_params,
824
+ :query_params => query_params,
825
+ :form_params => form_params,
826
+ :body => post_body,
827
+ :auth_names => auth_names,
828
+ :return_type => 'OrderReconcileReturnObject')
829
+ if @api_client.config.debugging
830
+ @api_client.config.logger.debug "API called: OrderApi#create_portfolio_order_reconciliation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
831
+ end
832
+ return data, status_code, headers
833
+ end
834
+ # Sell all portfolio order
835
+ # Create order records necessary to entirely sell all the holdings within a portfolio.
836
+ # @param portfolio_id portfolio_id
837
+ # @param req req
838
+ # @param [Hash] opts the optional parameters
839
+ # @return [Array<OrderVoClone>]
840
+ def create_portfolio_order_sell_all_using_post(portfolio_id, req, opts = {})
841
+ data, _status_code, _headers = create_portfolio_order_sell_all_using_post_with_http_info(portfolio_id, req, opts)
842
+ data
843
+ end
844
+
845
+ # Sell all portfolio order
846
+ # Create order records necessary to entirely sell all the holdings within a portfolio.
847
+ # @param portfolio_id portfolio_id
848
+ # @param req req
849
+ # @param [Hash] opts the optional parameters
850
+ # @return [Array<(Array<OrderVoClone>, Fixnum, Hash)>] Array<OrderVoClone> data, response status code and response headers
851
+ def create_portfolio_order_sell_all_using_post_with_http_info(portfolio_id, req, opts = {})
852
+ if @api_client.config.debugging
853
+ @api_client.config.logger.debug 'Calling API: OrderApi.create_portfolio_order_sell_all_using_post ...'
854
+ end
855
+ # verify the required parameter 'portfolio_id' is set
856
+ if @api_client.config.client_side_validation && portfolio_id.nil?
857
+ fail ArgumentError, "Missing the required parameter 'portfolio_id' when calling OrderApi.create_portfolio_order_sell_all_using_post"
858
+ end
859
+ # verify the required parameter 'req' is set
860
+ if @api_client.config.client_side_validation && req.nil?
861
+ fail ArgumentError, "Missing the required parameter 'req' when calling OrderApi.create_portfolio_order_sell_all_using_post"
862
+ end
863
+ # resource path
864
+ local_var_path = '/nucleus/v1/portfolio/{portfolio_id}/order_sell_all'.sub('{' + 'portfolio_id' + '}', portfolio_id.to_s)
865
+
866
+ # query parameters
867
+ query_params = {}
868
+
869
+ # header parameters
870
+ header_params = {}
871
+ # HTTP header 'Accept' (if needed)
872
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
873
+ # HTTP header 'Content-Type'
874
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
875
+
876
+ # form parameters
877
+ form_params = {}
878
+
879
+ # http body (model)
880
+ post_body = @api_client.object_to_http_body(req)
881
+ auth_names = ['oauth2']
882
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
883
+ :header_params => header_params,
884
+ :query_params => query_params,
885
+ :form_params => form_params,
886
+ :body => post_body,
887
+ :auth_names => auth_names,
888
+ :return_type => 'Array<OrderVoClone>')
889
+ if @api_client.config.debugging
890
+ @api_client.config.logger.debug "API called: OrderApi#create_portfolio_order_sell_all_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
891
+ end
892
+ return data, status_code, headers
893
+ end
894
+ # Create sell-only portfolio rebalance orders
895
+ # Create order records necessary to rebalance a portfolio to the model to which it subscribes.
896
+ # @param portfolio_id portfolio_id
897
+ # @param req req
898
+ # @param [Hash] opts the optional parameters
899
+ # @return [Array<OrderVoClone>]
900
+ def create_portfolio_order_sell_only_using_post(portfolio_id, req, opts = {})
901
+ data, _status_code, _headers = create_portfolio_order_sell_only_using_post_with_http_info(portfolio_id, req, opts)
902
+ data
903
+ end
904
+
905
+ # Create sell-only portfolio rebalance orders
906
+ # Create order records necessary to rebalance a portfolio to the model to which it subscribes.
907
+ # @param portfolio_id portfolio_id
908
+ # @param req req
909
+ # @param [Hash] opts the optional parameters
910
+ # @return [Array<(Array<OrderVoClone>, Fixnum, Hash)>] Array<OrderVoClone> data, response status code and response headers
911
+ def create_portfolio_order_sell_only_using_post_with_http_info(portfolio_id, req, opts = {})
912
+ if @api_client.config.debugging
913
+ @api_client.config.logger.debug 'Calling API: OrderApi.create_portfolio_order_sell_only_using_post ...'
914
+ end
915
+ # verify the required parameter 'portfolio_id' is set
916
+ if @api_client.config.client_side_validation && portfolio_id.nil?
917
+ fail ArgumentError, "Missing the required parameter 'portfolio_id' when calling OrderApi.create_portfolio_order_sell_only_using_post"
918
+ end
919
+ # verify the required parameter 'req' is set
920
+ if @api_client.config.client_side_validation && req.nil?
921
+ fail ArgumentError, "Missing the required parameter 'req' when calling OrderApi.create_portfolio_order_sell_only_using_post"
922
+ end
923
+ # resource path
924
+ local_var_path = '/nucleus/v1/portfolio/{portfolio_id}/order_sell_only'.sub('{' + 'portfolio_id' + '}', portfolio_id.to_s)
925
+
926
+ # query parameters
927
+ query_params = {}
928
+
929
+ # header parameters
930
+ header_params = {}
931
+ # HTTP header 'Accept' (if needed)
932
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
933
+ # HTTP header 'Content-Type'
934
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
935
+
936
+ # form parameters
937
+ form_params = {}
938
+
939
+ # http body (model)
940
+ post_body = @api_client.object_to_http_body(req)
941
+ auth_names = ['oauth2']
942
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
943
+ :header_params => header_params,
944
+ :query_params => query_params,
945
+ :form_params => form_params,
946
+ :body => post_body,
947
+ :auth_names => auth_names,
948
+ :return_type => 'Array<OrderVoClone>')
949
+ if @api_client.config.debugging
950
+ @api_client.config.logger.debug "API called: OrderApi#create_portfolio_order_sell_only_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
951
+ end
952
+ return data, status_code, headers
953
+ end
954
+ # Delete an order status
955
+ # Permanently delete an order status defined for your firm.
956
+ # @param order_status_id UUID order_status_id
957
+ # @param [Hash] opts the optional parameters
958
+ # @return [nil]
959
+ def delete_order_status_using_delete(order_status_id, opts = {})
960
+ delete_order_status_using_delete_with_http_info(order_status_id, opts)
961
+ nil
962
+ end
963
+
964
+ # Delete an order status
965
+ # Permanently delete an order status defined for your firm.
966
+ # @param order_status_id UUID order_status_id
967
+ # @param [Hash] opts the optional parameters
968
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
969
+ def delete_order_status_using_delete_with_http_info(order_status_id, opts = {})
970
+ if @api_client.config.debugging
971
+ @api_client.config.logger.debug 'Calling API: OrderApi.delete_order_status_using_delete ...'
972
+ end
973
+ # verify the required parameter 'order_status_id' is set
974
+ if @api_client.config.client_side_validation && order_status_id.nil?
975
+ fail ArgumentError, "Missing the required parameter 'order_status_id' when calling OrderApi.delete_order_status_using_delete"
976
+ end
977
+ # resource path
978
+ local_var_path = '/nucleus/v1/order_status/{order_status_id}'.sub('{' + 'order_status_id' + '}', order_status_id.to_s)
979
+
980
+ # query parameters
981
+ query_params = {}
982
+
983
+ # header parameters
984
+ header_params = {}
985
+ # HTTP header 'Accept' (if needed)
986
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
987
+
988
+ # form parameters
989
+ form_params = {}
990
+
991
+ # http body (model)
992
+ post_body = nil
993
+ auth_names = ['oauth2']
994
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
995
+ :header_params => header_params,
996
+ :query_params => query_params,
997
+ :form_params => form_params,
998
+ :body => post_body,
999
+ :auth_names => auth_names)
1000
+ if @api_client.config.debugging
1001
+ @api_client.config.logger.debug "API called: OrderApi#delete_order_status_using_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1002
+ end
1003
+ return data, status_code, headers
1004
+ end
1005
+ # Delete an order tracking record
1006
+ # Permanently delete an order tracking record for an order.
1007
+ # @param order_track_id UUID order_track_id
1008
+ # @param [Hash] opts the optional parameters
1009
+ # @return [nil]
1010
+ def delete_order_track_using_delete(order_track_id, opts = {})
1011
+ delete_order_track_using_delete_with_http_info(order_track_id, opts)
1012
+ nil
1013
+ end
1014
+
1015
+ # Delete an order tracking record
1016
+ # Permanently delete an order tracking record for an order.
1017
+ # @param order_track_id UUID order_track_id
1018
+ # @param [Hash] opts the optional parameters
1019
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1020
+ def delete_order_track_using_delete_with_http_info(order_track_id, opts = {})
1021
+ if @api_client.config.debugging
1022
+ @api_client.config.logger.debug 'Calling API: OrderApi.delete_order_track_using_delete ...'
1023
+ end
1024
+ # verify the required parameter 'order_track_id' is set
1025
+ if @api_client.config.client_side_validation && order_track_id.nil?
1026
+ fail ArgumentError, "Missing the required parameter 'order_track_id' when calling OrderApi.delete_order_track_using_delete"
1027
+ end
1028
+ # resource path
1029
+ local_var_path = '/nucleus/v1/order_track/{order_track_id}'.sub('{' + 'order_track_id' + '}', order_track_id.to_s)
1030
+
1031
+ # query parameters
1032
+ query_params = {}
1033
+
1034
+ # header parameters
1035
+ header_params = {}
1036
+ # HTTP header 'Accept' (if needed)
1037
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1038
+
1039
+ # form parameters
1040
+ form_params = {}
1041
+
1042
+ # http body (model)
1043
+ post_body = nil
1044
+ auth_names = ['oauth2']
1045
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1046
+ :header_params => header_params,
1047
+ :query_params => query_params,
1048
+ :form_params => form_params,
1049
+ :body => post_body,
1050
+ :auth_names => auth_names)
1051
+ if @api_client.config.debugging
1052
+ @api_client.config.logger.debug "API called: OrderApi#delete_order_track_using_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1053
+ end
1054
+ return data, status_code, headers
1055
+ end
1056
+ # Delete an order record
1057
+ # Permanently delete an order record.
1058
+ # @param order_id UUID order_id
1059
+ # @param [Hash] opts the optional parameters
1060
+ # @return [nil]
1061
+ def delete_order_using_delete(order_id, opts = {})
1062
+ delete_order_using_delete_with_http_info(order_id, opts)
1063
+ nil
1064
+ end
1065
+
1066
+ # Delete an order record
1067
+ # Permanently delete an order record.
1068
+ # @param order_id UUID order_id
1069
+ # @param [Hash] opts the optional parameters
1070
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1071
+ def delete_order_using_delete_with_http_info(order_id, opts = {})
1072
+ if @api_client.config.debugging
1073
+ @api_client.config.logger.debug 'Calling API: OrderApi.delete_order_using_delete ...'
1074
+ end
1075
+ # verify the required parameter 'order_id' is set
1076
+ if @api_client.config.client_side_validation && order_id.nil?
1077
+ fail ArgumentError, "Missing the required parameter 'order_id' when calling OrderApi.delete_order_using_delete"
1078
+ end
1079
+ # resource path
1080
+ local_var_path = '/nucleus/v1/order/{order_id}'.sub('{' + 'order_id' + '}', order_id.to_s)
1081
+
1082
+ # query parameters
1083
+ query_params = {}
1084
+
1085
+ # header parameters
1086
+ header_params = {}
1087
+ # HTTP header 'Accept' (if needed)
1088
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1089
+
1090
+ # form parameters
1091
+ form_params = {}
1092
+
1093
+ # http body (model)
1094
+ post_body = nil
1095
+ auth_names = ['oauth2']
1096
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1097
+ :header_params => header_params,
1098
+ :query_params => query_params,
1099
+ :form_params => form_params,
1100
+ :body => post_body,
1101
+ :auth_names => auth_names)
1102
+ if @api_client.config.debugging
1103
+ @api_client.config.logger.debug "API called: OrderApi#delete_order_using_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1104
+ end
1105
+ return data, status_code, headers
1106
+ end
1107
+ # List all order records
1108
+ # Get the information for all order records defined for your firm.
1109
+ # @param [Hash] opts the optional parameters
1110
+ # @option opts [BOOLEAN] :ascending ascending (default to false)
1111
+ # @option opts [String] :filter filter
1112
+ # @option opts [String] :order_by order_by (default to update_date)
1113
+ # @option opts [Integer] :page page (default to 0)
1114
+ # @option opts [Integer] :size size (default to 25)
1115
+ # @return [PageOrder]
1116
+ def get_order_all_using_get(opts = {})
1117
+ data, _status_code, _headers = get_order_all_using_get_with_http_info(opts)
1118
+ data
1119
+ end
1120
+
1121
+ # List all order records
1122
+ # Get the information for all order records defined for your firm.
1123
+ # @param [Hash] opts the optional parameters
1124
+ # @option opts [BOOLEAN] :ascending ascending
1125
+ # @option opts [String] :filter filter
1126
+ # @option opts [String] :order_by order_by
1127
+ # @option opts [Integer] :page page
1128
+ # @option opts [Integer] :size size
1129
+ # @return [Array<(PageOrder, Fixnum, Hash)>] PageOrder data, response status code and response headers
1130
+ def get_order_all_using_get_with_http_info(opts = {})
1131
+ if @api_client.config.debugging
1132
+ @api_client.config.logger.debug 'Calling API: OrderApi.get_order_all_using_get ...'
1133
+ end
1134
+ # resource path
1135
+ local_var_path = '/nucleus/v1/order'
1136
+
1137
+ # query parameters
1138
+ query_params = {}
1139
+ query_params[:'ascending'] = opts[:'ascending'] if !opts[:'ascending'].nil?
1140
+ query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
1141
+ query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
1142
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1143
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
1144
+
1145
+ # header parameters
1146
+ header_params = {}
1147
+ # HTTP header 'Accept' (if needed)
1148
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1149
+
1150
+ # form parameters
1151
+ form_params = {}
1152
+
1153
+ # http body (model)
1154
+ post_body = nil
1155
+ auth_names = ['oauth2']
1156
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1157
+ :header_params => header_params,
1158
+ :query_params => query_params,
1159
+ :form_params => form_params,
1160
+ :body => post_body,
1161
+ :auth_names => auth_names,
1162
+ :return_type => 'PageOrder')
1163
+ if @api_client.config.debugging
1164
+ @api_client.config.logger.debug "API called: OrderApi#get_order_all_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1165
+ end
1166
+ return data, status_code, headers
1167
+ end
1168
+ # List all bulk orders
1169
+ # Get the information for all bulk order records.
1170
+ # @param [Hash] opts the optional parameters
1171
+ # @option opts [BOOLEAN] :ascending ascending (default to true)
1172
+ # @option opts [String] :filter filter
1173
+ # @option opts [String] :order_by order_by (default to order_bulk_id)
1174
+ # @option opts [Integer] :page page (default to 0)
1175
+ # @option opts [Integer] :size size (default to 25)
1176
+ # @return [PageOrderBulk]
1177
+ def get_order_bulk_all_using_get(opts = {})
1178
+ data, _status_code, _headers = get_order_bulk_all_using_get_with_http_info(opts)
1179
+ data
1180
+ end
1181
+
1182
+ # List all bulk orders
1183
+ # Get the information for all bulk order records.
1184
+ # @param [Hash] opts the optional parameters
1185
+ # @option opts [BOOLEAN] :ascending ascending
1186
+ # @option opts [String] :filter filter
1187
+ # @option opts [String] :order_by order_by
1188
+ # @option opts [Integer] :page page
1189
+ # @option opts [Integer] :size size
1190
+ # @return [Array<(PageOrderBulk, Fixnum, Hash)>] PageOrderBulk data, response status code and response headers
1191
+ def get_order_bulk_all_using_get_with_http_info(opts = {})
1192
+ if @api_client.config.debugging
1193
+ @api_client.config.logger.debug 'Calling API: OrderApi.get_order_bulk_all_using_get ...'
1194
+ end
1195
+ # resource path
1196
+ local_var_path = '/nucleus/v1/order_bulk'
1197
+
1198
+ # query parameters
1199
+ query_params = {}
1200
+ query_params[:'ascending'] = opts[:'ascending'] if !opts[:'ascending'].nil?
1201
+ query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
1202
+ query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
1203
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1204
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
1205
+
1206
+ # header parameters
1207
+ header_params = {}
1208
+ # HTTP header 'Accept' (if needed)
1209
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1210
+
1211
+ # form parameters
1212
+ form_params = {}
1213
+
1214
+ # http body (model)
1215
+ post_body = nil
1216
+ auth_names = ['oauth2']
1217
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1218
+ :header_params => header_params,
1219
+ :query_params => query_params,
1220
+ :form_params => form_params,
1221
+ :body => post_body,
1222
+ :auth_names => auth_names,
1223
+ :return_type => 'PageOrderBulk')
1224
+ if @api_client.config.debugging
1225
+ @api_client.config.logger.debug "API called: OrderApi#get_order_bulk_all_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1226
+ end
1227
+ return data, status_code, headers
1228
+ end
1229
+ # List all order statuses
1230
+ # Get the information for all order statuses defined for your firm.
1231
+ # @param [Hash] opts the optional parameters
1232
+ # @option opts [BOOLEAN] :ascending ascending (default to false)
1233
+ # @option opts [String] :filter filter
1234
+ # @option opts [String] :order_by order_by (default to update_date)
1235
+ # @option opts [Integer] :page page (default to 0)
1236
+ # @option opts [Integer] :size size (default to 25)
1237
+ # @return [PageOrderStatus]
1238
+ def get_order_status_all_using_get(opts = {})
1239
+ data, _status_code, _headers = get_order_status_all_using_get_with_http_info(opts)
1240
+ data
1241
+ end
1242
+
1243
+ # List all order statuses
1244
+ # Get the information for all order statuses defined for your firm.
1245
+ # @param [Hash] opts the optional parameters
1246
+ # @option opts [BOOLEAN] :ascending ascending
1247
+ # @option opts [String] :filter filter
1248
+ # @option opts [String] :order_by order_by
1249
+ # @option opts [Integer] :page page
1250
+ # @option opts [Integer] :size size
1251
+ # @return [Array<(PageOrderStatus, Fixnum, Hash)>] PageOrderStatus data, response status code and response headers
1252
+ def get_order_status_all_using_get_with_http_info(opts = {})
1253
+ if @api_client.config.debugging
1254
+ @api_client.config.logger.debug 'Calling API: OrderApi.get_order_status_all_using_get ...'
1255
+ end
1256
+ # resource path
1257
+ local_var_path = '/nucleus/v1/order_status'
1258
+
1259
+ # query parameters
1260
+ query_params = {}
1261
+ query_params[:'ascending'] = opts[:'ascending'] if !opts[:'ascending'].nil?
1262
+ query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
1263
+ query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
1264
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1265
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
1266
+
1267
+ # header parameters
1268
+ header_params = {}
1269
+ # HTTP header 'Accept' (if needed)
1270
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1271
+
1272
+ # form parameters
1273
+ form_params = {}
1274
+
1275
+ # http body (model)
1276
+ post_body = nil
1277
+ auth_names = ['oauth2']
1278
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1279
+ :header_params => header_params,
1280
+ :query_params => query_params,
1281
+ :form_params => form_params,
1282
+ :body => post_body,
1283
+ :auth_names => auth_names,
1284
+ :return_type => 'PageOrderStatus')
1285
+ if @api_client.config.debugging
1286
+ @api_client.config.logger.debug "API called: OrderApi#get_order_status_all_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1287
+ end
1288
+ return data, status_code, headers
1289
+ end
1290
+ # Retrieve an order status
1291
+ # Retrieve the information for an order status defined for your firm.
1292
+ # @param order_status_id UUID order_status_id
1293
+ # @param [Hash] opts the optional parameters
1294
+ # @return [OrderStatus]
1295
+ def get_order_status_using_get(order_status_id, opts = {})
1296
+ data, _status_code, _headers = get_order_status_using_get_with_http_info(order_status_id, opts)
1297
+ data
1298
+ end
1299
+
1300
+ # Retrieve an order status
1301
+ # Retrieve the information for an order status defined for your firm.
1302
+ # @param order_status_id UUID order_status_id
1303
+ # @param [Hash] opts the optional parameters
1304
+ # @return [Array<(OrderStatus, Fixnum, Hash)>] OrderStatus data, response status code and response headers
1305
+ def get_order_status_using_get_with_http_info(order_status_id, opts = {})
1306
+ if @api_client.config.debugging
1307
+ @api_client.config.logger.debug 'Calling API: OrderApi.get_order_status_using_get ...'
1308
+ end
1309
+ # verify the required parameter 'order_status_id' is set
1310
+ if @api_client.config.client_side_validation && order_status_id.nil?
1311
+ fail ArgumentError, "Missing the required parameter 'order_status_id' when calling OrderApi.get_order_status_using_get"
1312
+ end
1313
+ # resource path
1314
+ local_var_path = '/nucleus/v1/order_status/{order_status_id}'.sub('{' + 'order_status_id' + '}', order_status_id.to_s)
1315
+
1316
+ # query parameters
1317
+ query_params = {}
1318
+
1319
+ # header parameters
1320
+ header_params = {}
1321
+ # HTTP header 'Accept' (if needed)
1322
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1323
+
1324
+ # form parameters
1325
+ form_params = {}
1326
+
1327
+ # http body (model)
1328
+ post_body = nil
1329
+ auth_names = ['oauth2']
1330
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1331
+ :header_params => header_params,
1332
+ :query_params => query_params,
1333
+ :form_params => form_params,
1334
+ :body => post_body,
1335
+ :auth_names => auth_names,
1336
+ :return_type => 'OrderStatus')
1337
+ if @api_client.config.debugging
1338
+ @api_client.config.logger.debug "API called: OrderApi#get_order_status_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1339
+ end
1340
+ return data, status_code, headers
1341
+ end
1342
+ # List all order tracking records
1343
+ # Get the information for all order tracking record for all order records.
1344
+ # @param [Hash] opts the optional parameters
1345
+ # @option opts [BOOLEAN] :ascending ascending (default to false)
1346
+ # @option opts [String] :filter filter
1347
+ # @option opts [String] :order_by order_by (default to update_date)
1348
+ # @option opts [Integer] :page page (default to 0)
1349
+ # @option opts [Integer] :size size (default to 25)
1350
+ # @return [PageOrderTrack]
1351
+ def get_order_track_all_using_get(opts = {})
1352
+ data, _status_code, _headers = get_order_track_all_using_get_with_http_info(opts)
1353
+ data
1354
+ end
1355
+
1356
+ # List all order tracking records
1357
+ # Get the information for all order tracking record for all order records.
1358
+ # @param [Hash] opts the optional parameters
1359
+ # @option opts [BOOLEAN] :ascending ascending
1360
+ # @option opts [String] :filter filter
1361
+ # @option opts [String] :order_by order_by
1362
+ # @option opts [Integer] :page page
1363
+ # @option opts [Integer] :size size
1364
+ # @return [Array<(PageOrderTrack, Fixnum, Hash)>] PageOrderTrack data, response status code and response headers
1365
+ def get_order_track_all_using_get_with_http_info(opts = {})
1366
+ if @api_client.config.debugging
1367
+ @api_client.config.logger.debug 'Calling API: OrderApi.get_order_track_all_using_get ...'
1368
+ end
1369
+ # resource path
1370
+ local_var_path = '/nucleus/v1/order_track'
1371
+
1372
+ # query parameters
1373
+ query_params = {}
1374
+ query_params[:'ascending'] = opts[:'ascending'] if !opts[:'ascending'].nil?
1375
+ query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
1376
+ query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
1377
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1378
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
1379
+
1380
+ # header parameters
1381
+ header_params = {}
1382
+ # HTTP header 'Accept' (if needed)
1383
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1384
+
1385
+ # form parameters
1386
+ form_params = {}
1387
+
1388
+ # http body (model)
1389
+ post_body = nil
1390
+ auth_names = ['oauth2']
1391
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1392
+ :header_params => header_params,
1393
+ :query_params => query_params,
1394
+ :form_params => form_params,
1395
+ :body => post_body,
1396
+ :auth_names => auth_names,
1397
+ :return_type => 'PageOrderTrack')
1398
+ if @api_client.config.debugging
1399
+ @api_client.config.logger.debug "API called: OrderApi#get_order_track_all_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1400
+ end
1401
+ return data, status_code, headers
1402
+ end
1403
+ # Retrieve an order tracking record
1404
+ # Retrieve the information for an order tracking record for an order.
1405
+ # @param order_track_id UUID order_track_id
1406
+ # @param [Hash] opts the optional parameters
1407
+ # @return [OrderTrack]
1408
+ def get_order_track_using_get(order_track_id, opts = {})
1409
+ data, _status_code, _headers = get_order_track_using_get_with_http_info(order_track_id, opts)
1410
+ data
1411
+ end
1412
+
1413
+ # Retrieve an order tracking record
1414
+ # Retrieve the information for an order tracking record for an order.
1415
+ # @param order_track_id UUID order_track_id
1416
+ # @param [Hash] opts the optional parameters
1417
+ # @return [Array<(OrderTrack, Fixnum, Hash)>] OrderTrack data, response status code and response headers
1418
+ def get_order_track_using_get_with_http_info(order_track_id, opts = {})
1419
+ if @api_client.config.debugging
1420
+ @api_client.config.logger.debug 'Calling API: OrderApi.get_order_track_using_get ...'
1421
+ end
1422
+ # verify the required parameter 'order_track_id' is set
1423
+ if @api_client.config.client_side_validation && order_track_id.nil?
1424
+ fail ArgumentError, "Missing the required parameter 'order_track_id' when calling OrderApi.get_order_track_using_get"
1425
+ end
1426
+ # resource path
1427
+ local_var_path = '/nucleus/v1/order_track/{order_track_id}'.sub('{' + 'order_track_id' + '}', order_track_id.to_s)
1428
+
1429
+ # query parameters
1430
+ query_params = {}
1431
+
1432
+ # header parameters
1433
+ header_params = {}
1434
+ # HTTP header 'Accept' (if needed)
1435
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1436
+
1437
+ # form parameters
1438
+ form_params = {}
1439
+
1440
+ # http body (model)
1441
+ post_body = nil
1442
+ auth_names = ['oauth2']
1443
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1444
+ :header_params => header_params,
1445
+ :query_params => query_params,
1446
+ :form_params => form_params,
1447
+ :body => post_body,
1448
+ :auth_names => auth_names,
1449
+ :return_type => 'OrderTrack')
1450
+ if @api_client.config.debugging
1451
+ @api_client.config.logger.debug "API called: OrderApi#get_order_track_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1452
+ end
1453
+ return data, status_code, headers
1454
+ end
1455
+ # Retrieve an order record
1456
+ # Retrieve the information for an order record.
1457
+ # @param order_id UUID order_id
1458
+ # @param [Hash] opts the optional parameters
1459
+ # @return [Order]
1460
+ def get_order_using_get(order_id, opts = {})
1461
+ data, _status_code, _headers = get_order_using_get_with_http_info(order_id, opts)
1462
+ data
1463
+ end
1464
+
1465
+ # Retrieve an order record
1466
+ # Retrieve the information for an order record.
1467
+ # @param order_id UUID order_id
1468
+ # @param [Hash] opts the optional parameters
1469
+ # @return [Array<(Order, Fixnum, Hash)>] Order data, response status code and response headers
1470
+ def get_order_using_get_with_http_info(order_id, opts = {})
1471
+ if @api_client.config.debugging
1472
+ @api_client.config.logger.debug 'Calling API: OrderApi.get_order_using_get ...'
1473
+ end
1474
+ # verify the required parameter 'order_id' is set
1475
+ if @api_client.config.client_side_validation && order_id.nil?
1476
+ fail ArgumentError, "Missing the required parameter 'order_id' when calling OrderApi.get_order_using_get"
1477
+ end
1478
+ # resource path
1479
+ local_var_path = '/nucleus/v1/order/{order_id}'.sub('{' + 'order_id' + '}', order_id.to_s)
1480
+
1481
+ # query parameters
1482
+ query_params = {}
1483
+
1484
+ # header parameters
1485
+ header_params = {}
1486
+ # HTTP header 'Accept' (if needed)
1487
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1488
+
1489
+ # form parameters
1490
+ form_params = {}
1491
+
1492
+ # http body (model)
1493
+ post_body = nil
1494
+ auth_names = ['oauth2']
1495
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1496
+ :header_params => header_params,
1497
+ :query_params => query_params,
1498
+ :form_params => form_params,
1499
+ :body => post_body,
1500
+ :auth_names => auth_names,
1501
+ :return_type => 'Order')
1502
+ if @api_client.config.debugging
1503
+ @api_client.config.logger.debug "API called: OrderApi#get_order_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1504
+ end
1505
+ return data, status_code, headers
1506
+ end
1507
+ # Update an order status
1508
+ # Update the information for an order status defined for your firm.
1509
+ # @param order_status order_status
1510
+ # @param order_status_id UUID order_status_id
1511
+ # @param [Hash] opts the optional parameters
1512
+ # @return [OrderStatus]
1513
+ def update_order_status_using_put(order_status, order_status_id, opts = {})
1514
+ data, _status_code, _headers = update_order_status_using_put_with_http_info(order_status, order_status_id, opts)
1515
+ data
1516
+ end
1517
+
1518
+ # Update an order status
1519
+ # Update the information for an order status defined for your firm.
1520
+ # @param order_status order_status
1521
+ # @param order_status_id UUID order_status_id
1522
+ # @param [Hash] opts the optional parameters
1523
+ # @return [Array<(OrderStatus, Fixnum, Hash)>] OrderStatus data, response status code and response headers
1524
+ def update_order_status_using_put_with_http_info(order_status, order_status_id, opts = {})
1525
+ if @api_client.config.debugging
1526
+ @api_client.config.logger.debug 'Calling API: OrderApi.update_order_status_using_put ...'
1527
+ end
1528
+ # verify the required parameter 'order_status' is set
1529
+ if @api_client.config.client_side_validation && order_status.nil?
1530
+ fail ArgumentError, "Missing the required parameter 'order_status' when calling OrderApi.update_order_status_using_put"
1531
+ end
1532
+ # verify the required parameter 'order_status_id' is set
1533
+ if @api_client.config.client_side_validation && order_status_id.nil?
1534
+ fail ArgumentError, "Missing the required parameter 'order_status_id' when calling OrderApi.update_order_status_using_put"
1535
+ end
1536
+ # resource path
1537
+ local_var_path = '/nucleus/v1/order_status/{order_status_id}'.sub('{' + 'order_status_id' + '}', order_status_id.to_s)
1538
+
1539
+ # query parameters
1540
+ query_params = {}
1541
+
1542
+ # header parameters
1543
+ header_params = {}
1544
+ # HTTP header 'Accept' (if needed)
1545
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1546
+ # HTTP header 'Content-Type'
1547
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1548
+
1549
+ # form parameters
1550
+ form_params = {}
1551
+
1552
+ # http body (model)
1553
+ post_body = @api_client.object_to_http_body(order_status)
1554
+ auth_names = ['oauth2']
1555
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1556
+ :header_params => header_params,
1557
+ :query_params => query_params,
1558
+ :form_params => form_params,
1559
+ :body => post_body,
1560
+ :auth_names => auth_names,
1561
+ :return_type => 'OrderStatus')
1562
+ if @api_client.config.debugging
1563
+ @api_client.config.logger.debug "API called: OrderApi#update_order_status_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1564
+ end
1565
+ return data, status_code, headers
1566
+ end
1567
+ # Update an order tracking record
1568
+ # Update the information for an order tracking record for an order.
1569
+ # @param order_track order_track
1570
+ # @param order_track_id UUID order_track_id
1571
+ # @param [Hash] opts the optional parameters
1572
+ # @return [OrderTrack]
1573
+ def update_order_track_using_put(order_track, order_track_id, opts = {})
1574
+ data, _status_code, _headers = update_order_track_using_put_with_http_info(order_track, order_track_id, opts)
1575
+ data
1576
+ end
1577
+
1578
+ # Update an order tracking record
1579
+ # Update the information for an order tracking record for an order.
1580
+ # @param order_track order_track
1581
+ # @param order_track_id UUID order_track_id
1582
+ # @param [Hash] opts the optional parameters
1583
+ # @return [Array<(OrderTrack, Fixnum, Hash)>] OrderTrack data, response status code and response headers
1584
+ def update_order_track_using_put_with_http_info(order_track, order_track_id, opts = {})
1585
+ if @api_client.config.debugging
1586
+ @api_client.config.logger.debug 'Calling API: OrderApi.update_order_track_using_put ...'
1587
+ end
1588
+ # verify the required parameter 'order_track' is set
1589
+ if @api_client.config.client_side_validation && order_track.nil?
1590
+ fail ArgumentError, "Missing the required parameter 'order_track' when calling OrderApi.update_order_track_using_put"
1591
+ end
1592
+ # verify the required parameter 'order_track_id' is set
1593
+ if @api_client.config.client_side_validation && order_track_id.nil?
1594
+ fail ArgumentError, "Missing the required parameter 'order_track_id' when calling OrderApi.update_order_track_using_put"
1595
+ end
1596
+ # resource path
1597
+ local_var_path = '/nucleus/v1/order_track/{order_track_id}'.sub('{' + 'order_track_id' + '}', order_track_id.to_s)
1598
+
1599
+ # query parameters
1600
+ query_params = {}
1601
+
1602
+ # header parameters
1603
+ header_params = {}
1604
+ # HTTP header 'Accept' (if needed)
1605
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1606
+ # HTTP header 'Content-Type'
1607
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1608
+
1609
+ # form parameters
1610
+ form_params = {}
1611
+
1612
+ # http body (model)
1613
+ post_body = @api_client.object_to_http_body(order_track)
1614
+ auth_names = ['oauth2']
1615
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1616
+ :header_params => header_params,
1617
+ :query_params => query_params,
1618
+ :form_params => form_params,
1619
+ :body => post_body,
1620
+ :auth_names => auth_names,
1621
+ :return_type => 'OrderTrack')
1622
+ if @api_client.config.debugging
1623
+ @api_client.config.logger.debug "API called: OrderApi#update_order_track_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1624
+ end
1625
+ return data, status_code, headers
1626
+ end
1627
+ # Update an order record
1628
+ # Update the information for an order record.
1629
+ # @param order order
1630
+ # @param order_id UUID order_id
1631
+ # @param [Hash] opts the optional parameters
1632
+ # @return [Order]
1633
+ def update_order_using_put(order, order_id, opts = {})
1634
+ data, _status_code, _headers = update_order_using_put_with_http_info(order, order_id, opts)
1635
+ data
1636
+ end
1637
+
1638
+ # Update an order record
1639
+ # Update the information for an order record.
1640
+ # @param order order
1641
+ # @param order_id UUID order_id
1642
+ # @param [Hash] opts the optional parameters
1643
+ # @return [Array<(Order, Fixnum, Hash)>] Order data, response status code and response headers
1644
+ def update_order_using_put_with_http_info(order, order_id, opts = {})
1645
+ if @api_client.config.debugging
1646
+ @api_client.config.logger.debug 'Calling API: OrderApi.update_order_using_put ...'
1647
+ end
1648
+ # verify the required parameter 'order' is set
1649
+ if @api_client.config.client_side_validation && order.nil?
1650
+ fail ArgumentError, "Missing the required parameter 'order' when calling OrderApi.update_order_using_put"
1651
+ end
1652
+ # verify the required parameter 'order_id' is set
1653
+ if @api_client.config.client_side_validation && order_id.nil?
1654
+ fail ArgumentError, "Missing the required parameter 'order_id' when calling OrderApi.update_order_using_put"
1655
+ end
1656
+ # resource path
1657
+ local_var_path = '/nucleus/v1/order/{order_id}'.sub('{' + 'order_id' + '}', order_id.to_s)
1658
+
1659
+ # query parameters
1660
+ query_params = {}
1661
+
1662
+ # header parameters
1663
+ header_params = {}
1664
+ # HTTP header 'Accept' (if needed)
1665
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1666
+ # HTTP header 'Content-Type'
1667
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1668
+
1669
+ # form parameters
1670
+ form_params = {}
1671
+
1672
+ # http body (model)
1673
+ post_body = @api_client.object_to_http_body(order)
1674
+ auth_names = ['oauth2']
1675
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1676
+ :header_params => header_params,
1677
+ :query_params => query_params,
1678
+ :form_params => form_params,
1679
+ :body => post_body,
1680
+ :auth_names => auth_names,
1681
+ :return_type => 'Order')
1682
+ if @api_client.config.debugging
1683
+ @api_client.config.logger.debug "API called: OrderApi#update_order_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1684
+ end
1685
+ return data, status_code, headers
1686
+ end
1687
+ end
1688
+ end