hydrogen-integration-api 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (449) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +87 -0
  4. data/Rakefile +8 -0
  5. data/git_push.sh +55 -0
  6. data/integration_api.gemspec +46 -0
  7. data/lib/integration_api.rb +257 -0
  8. data/lib/integration_api/api/accounting_api.rb +870 -0
  9. data/lib/integration_api/api/ach_api.rb +1109 -0
  10. data/lib/integration_api/api/aggregation_api.rb +616 -0
  11. data/lib/integration_api/api/async_api.rb +263 -0
  12. data/lib/integration_api/api/baas_api.rb +518 -0
  13. data/lib/integration_api/api/brokerage_api.rb +1091 -0
  14. data/lib/integration_api/api/card_api.rb +1651 -0
  15. data/lib/integration_api/api/iav_api.rb +186 -0
  16. data/lib/integration_api/api/kms_api.rb +301 -0
  17. data/lib/integration_api/api/kyc_api.rb +138 -0
  18. data/lib/integration_api/api/market_data_api.rb +127 -0
  19. data/lib/integration_api/api/rtp_api.rb +479 -0
  20. data/lib/integration_api/api/sms_api.rb +129 -0
  21. data/lib/integration_api/api/smtp_api.rb +129 -0
  22. data/lib/integration_api/api/utils_api.rb +296 -0
  23. data/lib/integration_api/api/webhook_api.rb +301 -0
  24. data/lib/integration_api/api/wire_api.rb +479 -0
  25. data/lib/integration_api/api_client.rb +392 -0
  26. data/lib/integration_api/api_error.rb +38 -0
  27. data/lib/integration_api/auth_configuration.rb +181 -0
  28. data/lib/integration_api/configuration.rb +209 -0
  29. data/lib/integration_api/environment.rb +26 -0
  30. data/lib/integration_api/models/accounting_customer_response_vo.rb +200 -0
  31. data/lib/integration_api/models/accounting_customer_revenue_response_vo.rb +199 -0
  32. data/lib/integration_api/models/accounting_final_response_vo.rb +252 -0
  33. data/lib/integration_api/models/accounting_invoice_payment_response_vo.rb +199 -0
  34. data/lib/integration_api/models/accounting_invoice_response_vo.rb +199 -0
  35. data/lib/integration_api/models/accounting_stats_response_vo.rb +199 -0
  36. data/lib/integration_api/models/ach_balance_response_vo.rb +230 -0
  37. data/lib/integration_api/models/ach_bank_link_request_co.rb +199 -0
  38. data/lib/integration_api/models/ach_bank_link_response_vo.rb +235 -0
  39. data/lib/integration_api/models/ach_beneficial_owner_request_co.rb +190 -0
  40. data/lib/integration_api/models/ach_beneficial_owner_response_vo.rb +208 -0
  41. data/lib/integration_api/models/ach_business_balance_response_vo.rb +226 -0
  42. data/lib/integration_api/models/ach_business_request_co.rb +199 -0
  43. data/lib/integration_api/models/ach_business_response_vo.rb +217 -0
  44. data/lib/integration_api/models/ach_card_link_request_co.rb +190 -0
  45. data/lib/integration_api/models/ach_card_link_response_vo.rb +217 -0
  46. data/lib/integration_api/models/ach_card_load_response_vo.rb +190 -0
  47. data/lib/integration_api/models/ach_card_request_co.rb +182 -0
  48. data/lib/integration_api/models/ach_card_reserve_request_co.rb +181 -0
  49. data/lib/integration_api/models/ach_card_reserve_response_vo.rb +217 -0
  50. data/lib/integration_api/models/ach_card_response_vo.rb +218 -0
  51. data/lib/integration_api/models/ach_client_request_co.rb +199 -0
  52. data/lib/integration_api/models/ach_client_response_vo.rb +217 -0
  53. data/lib/integration_api/models/ach_reserve_link_request_co.rb +181 -0
  54. data/lib/integration_api/models/ach_reserve_link_response_vo.rb +219 -0
  55. data/lib/integration_api/models/ach_status_response_vo.rb +260 -0
  56. data/lib/integration_api/models/ach_transfer_request_co.rb +199 -0
  57. data/lib/integration_api/models/ach_transfer_response_vo.rb +244 -0
  58. data/lib/integration_api/models/acquiree.rb +199 -0
  59. data/lib/integration_api/models/acquirer.rb +199 -0
  60. data/lib/integration_api/models/address.rb +278 -0
  61. data/lib/integration_api/models/aggregation_account.rb +495 -0
  62. data/lib/integration_api/models/aggregation_account_balance.rb +292 -0
  63. data/lib/integration_api/models/aggregation_account_balance_response_vo.rb +208 -0
  64. data/lib/integration_api/models/aggregation_account_holding.rb +370 -0
  65. data/lib/integration_api/models/aggregation_account_holding_response_internal_object_vo.rb +199 -0
  66. data/lib/integration_api/models/aggregation_account_holding_response_vo.rb +210 -0
  67. data/lib/integration_api/models/aggregation_account_response_internal_object_vo.rb +199 -0
  68. data/lib/integration_api/models/aggregation_account_response_vo.rb +208 -0
  69. data/lib/integration_api/models/aggregation_account_transaction.rb +329 -0
  70. data/lib/integration_api/models/aggregation_account_transaction_response_internal_object_vo.rb +199 -0
  71. data/lib/integration_api/models/aggregation_account_transaction_response_vo.rb +221 -0
  72. data/lib/integration_api/models/aggregation_accounts_response_vo.rb +210 -0
  73. data/lib/integration_api/models/aggregation_request_object.rb +226 -0
  74. data/lib/integration_api/models/aggregation_vendor_request_co.rb +199 -0
  75. data/lib/integration_api/models/apple_payload.rb +199 -0
  76. data/lib/integration_api/models/async_transaction.rb +217 -0
  77. data/lib/integration_api/models/async_transaction_vo.rb +199 -0
  78. data/lib/integration_api/models/attachment_vo.rb +199 -0
  79. data/lib/integration_api/models/baas_account_co.rb +190 -0
  80. data/lib/integration_api/models/baas_account_vo.rb +253 -0
  81. data/lib/integration_api/models/baas_balance_vo.rb +221 -0
  82. data/lib/integration_api/models/baas_business_vo.rb +237 -0
  83. data/lib/integration_api/models/baas_client_vo.rb +237 -0
  84. data/lib/integration_api/models/baas_statement_vo.rb +226 -0
  85. data/lib/integration_api/models/baas_statements_vo.rb +201 -0
  86. data/lib/integration_api/models/baas_sub_account_co.rb +181 -0
  87. data/lib/integration_api/models/baas_sub_account_vo.rb +244 -0
  88. data/lib/integration_api/models/baas_transactions_vo.rb +221 -0
  89. data/lib/integration_api/models/balances.rb +223 -0
  90. data/lib/integration_api/models/bank_credit.rb +282 -0
  91. data/lib/integration_api/models/bank_link.rb +431 -0
  92. data/lib/integration_api/models/bank_link_response_internal_object_vo.rb +199 -0
  93. data/lib/integration_api/models/bank_link_vendor_data_vo.rb +190 -0
  94. data/lib/integration_api/models/base_response_vo.rb +199 -0
  95. data/lib/integration_api/models/brokerage_account_co.rb +192 -0
  96. data/lib/integration_api/models/brokerage_account_vo.rb +217 -0
  97. data/lib/integration_api/models/brokerage_balance_vo.rb +228 -0
  98. data/lib/integration_api/models/brokerage_bank_link_co.rb +181 -0
  99. data/lib/integration_api/models/brokerage_bank_link_vo.rb +226 -0
  100. data/lib/integration_api/models/brokerage_create_client_co.rb +192 -0
  101. data/lib/integration_api/models/brokerage_create_client_vo.rb +217 -0
  102. data/lib/integration_api/models/brokerage_deposit_co.rb +181 -0
  103. data/lib/integration_api/models/brokerage_deposit_vo.rb +217 -0
  104. data/lib/integration_api/models/brokerage_document_co.rb +190 -0
  105. data/lib/integration_api/models/brokerage_document_vo.rb +226 -0
  106. data/lib/integration_api/models/brokerage_holding_vo.rb +226 -0
  107. data/lib/integration_api/models/brokerage_order_co.rb +181 -0
  108. data/lib/integration_api/models/brokerage_order_vo.rb +226 -0
  109. data/lib/integration_api/models/brokerage_performance_vo.rb +226 -0
  110. data/lib/integration_api/models/brokerage_securities_vo.rb +217 -0
  111. data/lib/integration_api/models/brokerage_statement_vo.rb +199 -0
  112. data/lib/integration_api/models/brokerage_transaction_vo.rb +226 -0
  113. data/lib/integration_api/models/brokerage_update_client_co.rb +183 -0
  114. data/lib/integration_api/models/brokerage_update_client_vo.rb +237 -0
  115. data/lib/integration_api/models/brokerage_withdrawal_co.rb +181 -0
  116. data/lib/integration_api/models/brokerage_withdrawal_vo.rb +217 -0
  117. data/lib/integration_api/models/business_address.rb +253 -0
  118. data/lib/integration_api/models/business_status_response_vo.rb +217 -0
  119. data/lib/integration_api/models/business_vendor_request_data_vo.rb +313 -0
  120. data/lib/integration_api/models/card_auto_reload_request_co.rb +208 -0
  121. data/lib/integration_api/models/card_auto_reload_response_vo.rb +226 -0
  122. data/lib/integration_api/models/card_balance_response_vo.rb +230 -0
  123. data/lib/integration_api/models/card_base_request_co.rb +199 -0
  124. data/lib/integration_api/models/card_business_request_co.rb +181 -0
  125. data/lib/integration_api/models/card_client_request_co.rb +192 -0
  126. data/lib/integration_api/models/card_load_request_co.rb +190 -0
  127. data/lib/integration_api/models/card_load_unload_response_vo.rb +235 -0
  128. data/lib/integration_api/models/card_pin_request_co.rb +208 -0
  129. data/lib/integration_api/models/card_replace_response_vo.rb +235 -0
  130. data/lib/integration_api/models/card_reserve_account_response_vo.rb +235 -0
  131. data/lib/integration_api/models/card_reserve_transfer_request_co.rb +181 -0
  132. data/lib/integration_api/models/card_reserve_transfer_response_vo.rb +217 -0
  133. data/lib/integration_api/models/card_spending_control_request_co.rb +181 -0
  134. data/lib/integration_api/models/card_spending_control_response_vo.rb +217 -0
  135. data/lib/integration_api/models/card_token_request_co.rb +242 -0
  136. data/lib/integration_api/models/card_token_response_vo.rb +278 -0
  137. data/lib/integration_api/models/card_transaction_response_vo.rb +230 -0
  138. data/lib/integration_api/models/card_unload_request_co.rb +190 -0
  139. data/lib/integration_api/models/card_update_pin_request_co.rb +208 -0
  140. data/lib/integration_api/models/cash.rb +213 -0
  141. data/lib/integration_api/models/client_address.rb +283 -0
  142. data/lib/integration_api/models/client_vendor_request_data_vo.rb +340 -0
  143. data/lib/integration_api/models/contact.rb +356 -0
  144. data/lib/integration_api/models/contact_address.rb +268 -0
  145. data/lib/integration_api/models/create_baas_business_co.rb +192 -0
  146. data/lib/integration_api/models/create_baas_client_co.rb +192 -0
  147. data/lib/integration_api/models/create_business_response_vo.rb +217 -0
  148. data/lib/integration_api/models/create_card_client_response_vo.rb +217 -0
  149. data/lib/integration_api/models/create_user_request.rb +235 -0
  150. data/lib/integration_api/models/customer_revenue.rb +296 -0
  151. data/lib/integration_api/models/dividend.rb +199 -0
  152. data/lib/integration_api/models/dividend_tax.rb +190 -0
  153. data/lib/integration_api/models/email.rb +359 -0
  154. data/lib/integration_api/models/email_click.rb +220 -0
  155. data/lib/integration_api/models/email_open.rb +205 -0
  156. data/lib/integration_api/models/exchange_public_token_vo.rb +227 -0
  157. data/lib/integration_api/models/exchange_token_co.rb +235 -0
  158. data/lib/integration_api/models/financial_statement.rb +362 -0
  159. data/lib/integration_api/models/get_card_image_response_vo.rb +217 -0
  160. data/lib/integration_api/models/get_card_pci_details_response_vo.rb +235 -0
  161. data/lib/integration_api/models/get_card_statement_response_vo.rb +282 -0
  162. data/lib/integration_api/models/get_card_token_response_vo.rb +278 -0
  163. data/lib/integration_api/models/get_transactions_response.rb +183 -0
  164. data/lib/integration_api/models/google_payload.rb +181 -0
  165. data/lib/integration_api/models/iav_aggregation_response_vo.rb +190 -0
  166. data/lib/integration_api/models/iav_bank_link_response_vo.rb +192 -0
  167. data/lib/integration_api/models/iav_request_co.rb +244 -0
  168. data/lib/integration_api/models/iav_response_vo.rb +199 -0
  169. data/lib/integration_api/models/iav_token_exchange_vendor_response_vo.rb +172 -0
  170. data/lib/integration_api/models/iav_vendor_request_co.rb +199 -0
  171. data/lib/integration_api/models/identification.rb +235 -0
  172. data/lib/integration_api/models/instrument.rb +199 -0
  173. data/lib/integration_api/models/investment.rb +283 -0
  174. data/lib/integration_api/models/invoice.rb +472 -0
  175. data/lib/integration_api/models/invoice_payment.rb +269 -0
  176. data/lib/integration_api/models/json_node.rb +172 -0
  177. data/lib/integration_api/models/kms_config.rb +307 -0
  178. data/lib/integration_api/models/kyc_request_co.rb +255 -0
  179. data/lib/integration_api/models/kyc_response_vo.rb +271 -0
  180. data/lib/integration_api/models/kyc_vendor_request_data_vo.rb +385 -0
  181. data/lib/integration_api/models/line_items.rb +278 -0
  182. data/lib/integration_api/models/location.rb +253 -0
  183. data/lib/integration_api/models/mapstringobject.rb +172 -0
  184. data/lib/integration_api/models/md_history_item_vo.rb +235 -0
  185. data/lib/integration_api/models/md_history_request_co.rb +221 -0
  186. data/lib/integration_api/models/md_history_response_vo.rb +183 -0
  187. data/lib/integration_api/models/md_quote_item_vo.rb +352 -0
  188. data/lib/integration_api/models/md_quote_request_co.rb +246 -0
  189. data/lib/integration_api/models/md_quote_response_vo.rb +183 -0
  190. data/lib/integration_api/models/merger_acquisition.rb +199 -0
  191. data/lib/integration_api/models/nucleus_transfer_fields_co.rb +190 -0
  192. data/lib/integration_api/models/ownership.rb +190 -0
  193. data/lib/integration_api/models/page_ach_transfer_response_vo.rb +258 -0
  194. data/lib/integration_api/models/page_kms_config.rb +258 -0
  195. data/lib/integration_api/models/page_webhook.rb +258 -0
  196. data/lib/integration_api/models/pageobject.rb +258 -0
  197. data/lib/integration_api/models/politically_exposed_person_dto.rb +208 -0
  198. data/lib/integration_api/models/portfolio_asset_size_log.rb +329 -0
  199. data/lib/integration_api/models/property_value_response_vo.rb +226 -0
  200. data/lib/integration_api/models/response_entity.rb +233 -0
  201. data/lib/integration_api/models/rtp_bank_link_request_co.rb +190 -0
  202. data/lib/integration_api/models/rtp_bank_link_response_vo.rb +235 -0
  203. data/lib/integration_api/models/rtp_transfer_request_co.rb +190 -0
  204. data/lib/integration_api/models/rtp_transfer_response_vo.rb +226 -0
  205. data/lib/integration_api/models/samsung_payload.rb +181 -0
  206. data/lib/integration_api/models/sms.rb +335 -0
  207. data/lib/integration_api/models/sms_response_vo.rb +226 -0
  208. data/lib/integration_api/models/smsvo.rb +217 -0
  209. data/lib/integration_api/models/smtp_response_vo.rb +226 -0
  210. data/lib/integration_api/models/smtp_vo.rb +273 -0
  211. data/lib/integration_api/models/sort.rb +233 -0
  212. data/lib/integration_api/models/spending_control_vendor_request_data_vo.rb +255 -0
  213. data/lib/integration_api/models/stat.rb +203 -0
  214. data/lib/integration_api/models/transaction.rb +370 -0
  215. data/lib/integration_api/models/update_baas_business_co.rb +183 -0
  216. data/lib/integration_api/models/update_baas_client_co.rb +183 -0
  217. data/lib/integration_api/models/update_business_response_vo.rb +217 -0
  218. data/lib/integration_api/models/update_card_client_response_vo.rb +217 -0
  219. data/lib/integration_api/models/user_response_interface.rb +172 -0
  220. data/lib/integration_api/models/user_response_vo.rb +235 -0
  221. data/lib/integration_api/models/vendor_access_config_vo.rb +202 -0
  222. data/lib/integration_api/models/webhook.rb +277 -0
  223. data/lib/integration_api/models/widget_url_vo.rb +190 -0
  224. data/lib/integration_api/models/wire_bank_link_request_co.rb +190 -0
  225. data/lib/integration_api/models/wire_bank_link_response_vo.rb +235 -0
  226. data/lib/integration_api/models/wire_transfer_request_co.rb +190 -0
  227. data/lib/integration_api/models/wire_transfer_response_vo.rb +226 -0
  228. data/lib/integration_api/models/zillow_property_vendor_response_vo.rb +217 -0
  229. data/lib/integration_api/version.rb +15 -0
  230. data/spec/api/accounting_api_spec.rb +234 -0
  231. data/spec/api/ach_api_spec.rb +259 -0
  232. data/spec/api/aggregation_api_spec.rb +172 -0
  233. data/spec/api/async_api_spec.rb +88 -0
  234. data/spec/api/baas_api_spec.rb +143 -0
  235. data/spec/api/brokerage_api_spec.rb +264 -0
  236. data/spec/api/card_api_spec.rb +385 -0
  237. data/spec/api/iav_api_spec.rb +73 -0
  238. data/spec/api/kms_api_spec.rb +100 -0
  239. data/spec/api/kyc_api_spec.rb +63 -0
  240. data/spec/api/market_data_api_spec.rb +57 -0
  241. data/spec/api/rtp_api_spec.rb +134 -0
  242. data/spec/api/sms_api_spec.rb +59 -0
  243. data/spec/api/smtp_api_spec.rb +59 -0
  244. data/spec/api/utils_api_spec.rb +104 -0
  245. data/spec/api/webhook_api_spec.rb +100 -0
  246. data/spec/api/wire_api_spec.rb +134 -0
  247. data/spec/api_client_spec.rb +243 -0
  248. data/spec/configuration_spec.rb +42 -0
  249. data/spec/models/accounting_customer_response_vo_spec.rb +53 -0
  250. data/spec/models/accounting_customer_revenue_response_vo_spec.rb +53 -0
  251. data/spec/models/accounting_final_response_vo_spec.rb +83 -0
  252. data/spec/models/accounting_invoice_payment_response_vo_spec.rb +53 -0
  253. data/spec/models/accounting_invoice_response_vo_spec.rb +53 -0
  254. data/spec/models/accounting_stats_response_vo_spec.rb +53 -0
  255. data/spec/models/ach_balance_response_vo_spec.rb +71 -0
  256. data/spec/models/ach_bank_link_request_co_spec.rb +53 -0
  257. data/spec/models/ach_bank_link_response_vo_spec.rb +77 -0
  258. data/spec/models/ach_beneficial_owner_request_co_spec.rb +47 -0
  259. data/spec/models/ach_beneficial_owner_response_vo_spec.rb +59 -0
  260. data/spec/models/ach_business_balance_response_vo_spec.rb +71 -0
  261. data/spec/models/ach_business_request_co_spec.rb +53 -0
  262. data/spec/models/ach_business_response_vo_spec.rb +65 -0
  263. data/spec/models/ach_card_link_request_co_spec.rb +47 -0
  264. data/spec/models/ach_card_link_response_vo_spec.rb +65 -0
  265. data/spec/models/ach_card_load_response_vo_spec.rb +47 -0
  266. data/spec/models/ach_card_request_co_spec.rb +41 -0
  267. data/spec/models/ach_card_reserve_request_co_spec.rb +41 -0
  268. data/spec/models/ach_card_reserve_response_vo_spec.rb +65 -0
  269. data/spec/models/ach_card_response_vo_spec.rb +65 -0
  270. data/spec/models/ach_client_request_co_spec.rb +53 -0
  271. data/spec/models/ach_client_response_vo_spec.rb +65 -0
  272. data/spec/models/ach_reserve_link_request_co_spec.rb +41 -0
  273. data/spec/models/ach_reserve_link_response_vo_spec.rb +65 -0
  274. data/spec/models/ach_status_response_vo_spec.rb +75 -0
  275. data/spec/models/ach_transfer_request_co_spec.rb +53 -0
  276. data/spec/models/ach_transfer_response_vo_spec.rb +83 -0
  277. data/spec/models/acquiree_spec.rb +53 -0
  278. data/spec/models/acquirer_spec.rb +53 -0
  279. data/spec/models/address_spec.rb +87 -0
  280. data/spec/models/aggregation_account_balance_response_vo_spec.rb +59 -0
  281. data/spec/models/aggregation_account_balance_spec.rb +101 -0
  282. data/spec/models/aggregation_account_holding_response_internal_object_vo_spec.rb +53 -0
  283. data/spec/models/aggregation_account_holding_response_vo_spec.rb +59 -0
  284. data/spec/models/aggregation_account_holding_spec.rb +155 -0
  285. data/spec/models/aggregation_account_response_internal_object_vo_spec.rb +53 -0
  286. data/spec/models/aggregation_account_response_vo_spec.rb +59 -0
  287. data/spec/models/aggregation_account_spec.rb +221 -0
  288. data/spec/models/aggregation_account_transaction_response_internal_object_vo_spec.rb +53 -0
  289. data/spec/models/aggregation_account_transaction_response_vo_spec.rb +65 -0
  290. data/spec/models/aggregation_account_transaction_spec.rb +125 -0
  291. data/spec/models/aggregation_accounts_response_vo_spec.rb +59 -0
  292. data/spec/models/aggregation_request_object_spec.rb +71 -0
  293. data/spec/models/aggregation_vendor_request_co_spec.rb +53 -0
  294. data/spec/models/apple_payload_spec.rb +53 -0
  295. data/spec/models/async_transaction_spec.rb +65 -0
  296. data/spec/models/async_transaction_vo_spec.rb +53 -0
  297. data/spec/models/attachment_vo_spec.rb +53 -0
  298. data/spec/models/baas_account_co_spec.rb +47 -0
  299. data/spec/models/baas_account_vo_spec.rb +89 -0
  300. data/spec/models/baas_balance_vo_spec.rb +65 -0
  301. data/spec/models/baas_business_vo_spec.rb +77 -0
  302. data/spec/models/baas_client_vo_spec.rb +77 -0
  303. data/spec/models/baas_statement_vo_spec.rb +71 -0
  304. data/spec/models/baas_statements_vo_spec.rb +53 -0
  305. data/spec/models/baas_sub_account_co_spec.rb +41 -0
  306. data/spec/models/baas_sub_account_vo_spec.rb +83 -0
  307. data/spec/models/baas_transactions_vo_spec.rb +65 -0
  308. data/spec/models/balances_spec.rb +65 -0
  309. data/spec/models/bank_credit_spec.rb +95 -0
  310. data/spec/models/bank_link_response_internal_object_vo_spec.rb +53 -0
  311. data/spec/models/bank_link_spec.rb +179 -0
  312. data/spec/models/bank_link_vendor_data_vo_spec.rb +47 -0
  313. data/spec/models/base_response_vo_spec.rb +53 -0
  314. data/spec/models/brokerage_account_co_spec.rb +47 -0
  315. data/spec/models/brokerage_account_vo_spec.rb +65 -0
  316. data/spec/models/brokerage_balance_vo_spec.rb +71 -0
  317. data/spec/models/brokerage_bank_link_co_spec.rb +41 -0
  318. data/spec/models/brokerage_bank_link_vo_spec.rb +71 -0
  319. data/spec/models/brokerage_create_client_co_spec.rb +47 -0
  320. data/spec/models/brokerage_create_client_vo_spec.rb +65 -0
  321. data/spec/models/brokerage_deposit_co_spec.rb +41 -0
  322. data/spec/models/brokerage_deposit_vo_spec.rb +65 -0
  323. data/spec/models/brokerage_document_co_spec.rb +47 -0
  324. data/spec/models/brokerage_document_vo_spec.rb +71 -0
  325. data/spec/models/brokerage_holding_vo_spec.rb +71 -0
  326. data/spec/models/brokerage_order_co_spec.rb +41 -0
  327. data/spec/models/brokerage_order_vo_spec.rb +71 -0
  328. data/spec/models/brokerage_performance_vo_spec.rb +71 -0
  329. data/spec/models/brokerage_securities_vo_spec.rb +65 -0
  330. data/spec/models/brokerage_statement_vo_spec.rb +53 -0
  331. data/spec/models/brokerage_transaction_vo_spec.rb +71 -0
  332. data/spec/models/brokerage_update_client_co_spec.rb +41 -0
  333. data/spec/models/brokerage_update_client_vo_spec.rb +77 -0
  334. data/spec/models/brokerage_withdrawal_co_spec.rb +41 -0
  335. data/spec/models/brokerage_withdrawal_vo_spec.rb +65 -0
  336. data/spec/models/business_address_spec.rb +83 -0
  337. data/spec/models/business_status_response_vo_spec.rb +65 -0
  338. data/spec/models/business_vendor_request_data_vo_spec.rb +125 -0
  339. data/spec/models/card_auto_reload_request_co_spec.rb +59 -0
  340. data/spec/models/card_auto_reload_response_vo_spec.rb +71 -0
  341. data/spec/models/card_balance_response_vo_spec.rb +71 -0
  342. data/spec/models/card_base_request_co_spec.rb +53 -0
  343. data/spec/models/card_business_request_co_spec.rb +41 -0
  344. data/spec/models/card_client_request_co_spec.rb +47 -0
  345. data/spec/models/card_load_request_co_spec.rb +47 -0
  346. data/spec/models/card_load_unload_response_vo_spec.rb +77 -0
  347. data/spec/models/card_pin_request_co_spec.rb +59 -0
  348. data/spec/models/card_replace_response_vo_spec.rb +77 -0
  349. data/spec/models/card_reserve_account_response_vo_spec.rb +77 -0
  350. data/spec/models/card_reserve_transfer_request_co_spec.rb +41 -0
  351. data/spec/models/card_reserve_transfer_response_vo_spec.rb +65 -0
  352. data/spec/models/card_spending_control_request_co_spec.rb +41 -0
  353. data/spec/models/card_spending_control_response_vo_spec.rb +65 -0
  354. data/spec/models/card_token_request_co_spec.rb +63 -0
  355. data/spec/models/card_token_response_vo_spec.rb +87 -0
  356. data/spec/models/card_transaction_response_vo_spec.rb +71 -0
  357. data/spec/models/card_unload_request_co_spec.rb +47 -0
  358. data/spec/models/card_update_pin_request_co_spec.rb +59 -0
  359. data/spec/models/cash_spec.rb +53 -0
  360. data/spec/models/client_address_spec.rb +87 -0
  361. data/spec/models/client_vendor_request_data_vo_spec.rb +143 -0
  362. data/spec/models/contact_address_spec.rb +77 -0
  363. data/spec/models/contact_spec.rb +143 -0
  364. data/spec/models/create_baas_business_co_spec.rb +47 -0
  365. data/spec/models/create_baas_client_co_spec.rb +47 -0
  366. data/spec/models/create_business_response_vo_spec.rb +65 -0
  367. data/spec/models/create_card_client_response_vo_spec.rb +65 -0
  368. data/spec/models/create_user_request_spec.rb +77 -0
  369. data/spec/models/customer_revenue_spec.rb +95 -0
  370. data/spec/models/dividend_spec.rb +53 -0
  371. data/spec/models/dividend_tax_spec.rb +47 -0
  372. data/spec/models/email_click_spec.rb +59 -0
  373. data/spec/models/email_open_spec.rb +53 -0
  374. data/spec/models/email_spec.rb +149 -0
  375. data/spec/models/exchange_public_token_vo_spec.rb +71 -0
  376. data/spec/models/exchange_token_co_spec.rb +77 -0
  377. data/spec/models/financial_statement_spec.rb +137 -0
  378. data/spec/models/get_card_image_response_vo_spec.rb +65 -0
  379. data/spec/models/get_card_pci_details_response_vo_spec.rb +77 -0
  380. data/spec/models/get_card_statement_response_vo_spec.rb +107 -0
  381. data/spec/models/get_card_token_response_vo_spec.rb +87 -0
  382. data/spec/models/get_transactions_response_spec.rb +41 -0
  383. data/spec/models/google_payload_spec.rb +41 -0
  384. data/spec/models/iav_aggregation_response_vo_spec.rb +47 -0
  385. data/spec/models/iav_bank_link_response_vo_spec.rb +47 -0
  386. data/spec/models/iav_request_co_spec.rb +83 -0
  387. data/spec/models/iav_response_vo_spec.rb +53 -0
  388. data/spec/models/iav_token_exchange_vendor_response_vo_spec.rb +35 -0
  389. data/spec/models/iav_vendor_request_co_spec.rb +53 -0
  390. data/spec/models/identification_spec.rb +77 -0
  391. data/spec/models/instrument_spec.rb +53 -0
  392. data/spec/models/investment_spec.rb +89 -0
  393. data/spec/models/invoice_payment_spec.rb +83 -0
  394. data/spec/models/invoice_spec.rb +197 -0
  395. data/spec/models/json_node_spec.rb +35 -0
  396. data/spec/models/kms_config_spec.rb +107 -0
  397. data/spec/models/kyc_request_co_spec.rb +89 -0
  398. data/spec/models/kyc_response_vo_spec.rb +101 -0
  399. data/spec/models/kyc_vendor_request_data_vo_spec.rb +173 -0
  400. data/spec/models/line_items_spec.rb +83 -0
  401. data/spec/models/location_spec.rb +83 -0
  402. data/spec/models/mapstringobject_spec.rb +35 -0
  403. data/spec/models/md_history_item_vo_spec.rb +77 -0
  404. data/spec/models/md_history_request_co_spec.rb +65 -0
  405. data/spec/models/md_history_response_vo_spec.rb +41 -0
  406. data/spec/models/md_quote_item_vo_spec.rb +155 -0
  407. data/spec/models/md_quote_request_co_spec.rb +63 -0
  408. data/spec/models/md_quote_response_vo_spec.rb +41 -0
  409. data/spec/models/merger_acquisition_spec.rb +53 -0
  410. data/spec/models/nucleus_transfer_fields_co_spec.rb +47 -0
  411. data/spec/models/ownership_spec.rb +47 -0
  412. data/spec/models/page_ach_transfer_response_vo_spec.rb +89 -0
  413. data/spec/models/page_kms_config_spec.rb +89 -0
  414. data/spec/models/page_webhook_spec.rb +89 -0
  415. data/spec/models/pageobject_spec.rb +89 -0
  416. data/spec/models/politically_exposed_person_dto_spec.rb +59 -0
  417. data/spec/models/portfolio_asset_size_log_spec.rb +113 -0
  418. data/spec/models/property_value_response_vo_spec.rb +71 -0
  419. data/spec/models/response_entity_spec.rb +57 -0
  420. data/spec/models/rtp_bank_link_request_co_spec.rb +47 -0
  421. data/spec/models/rtp_bank_link_response_vo_spec.rb +77 -0
  422. data/spec/models/rtp_transfer_request_co_spec.rb +47 -0
  423. data/spec/models/rtp_transfer_response_vo_spec.rb +71 -0
  424. data/spec/models/samsung_payload_spec.rb +41 -0
  425. data/spec/models/sms_response_vo_spec.rb +71 -0
  426. data/spec/models/sms_spec.rb +137 -0
  427. data/spec/models/smsvo_spec.rb +65 -0
  428. data/spec/models/smtp_response_vo_spec.rb +71 -0
  429. data/spec/models/smtp_vo_spec.rb +101 -0
  430. data/spec/models/sort_spec.rb +71 -0
  431. data/spec/models/spending_control_vendor_request_data_vo_spec.rb +89 -0
  432. data/spec/models/stat_spec.rb +47 -0
  433. data/spec/models/transaction_spec.rb +167 -0
  434. data/spec/models/update_baas_business_co_spec.rb +41 -0
  435. data/spec/models/update_baas_client_co_spec.rb +41 -0
  436. data/spec/models/update_business_response_vo_spec.rb +65 -0
  437. data/spec/models/update_card_client_response_vo_spec.rb +65 -0
  438. data/spec/models/user_response_interface_spec.rb +35 -0
  439. data/spec/models/user_response_vo_spec.rb +77 -0
  440. data/spec/models/vendor_access_config_vo_spec.rb +53 -0
  441. data/spec/models/webhook_spec.rb +87 -0
  442. data/spec/models/widget_url_vo_spec.rb +47 -0
  443. data/spec/models/wire_bank_link_request_co_spec.rb +47 -0
  444. data/spec/models/wire_bank_link_response_vo_spec.rb +77 -0
  445. data/spec/models/wire_transfer_request_co_spec.rb +47 -0
  446. data/spec/models/wire_transfer_response_vo_spec.rb +71 -0
  447. data/spec/models/zillow_property_vendor_response_vo_spec.rb +65 -0
  448. data/spec/spec_helper.rb +111 -0
  449. metadata +909 -0
@@ -0,0 +1,221 @@
1
+ =begin
2
+ #Hydrogen Integration API
3
+
4
+ #The Hydrogen Integration API
5
+
6
+ OpenAPI spec version: 1.3.1
7
+ Contact: info@hydrogenplatform.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.21
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module IntegrationApi
16
+ class MdHistoryRequestCO
17
+ attr_accessor :end_date
18
+
19
+ attr_accessor :nucleus_security_id
20
+
21
+ attr_accessor :product
22
+
23
+ attr_accessor :start_date
24
+
25
+ attr_accessor :ticker
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'end_date' => :'end_date',
31
+ :'nucleus_security_id' => :'nucleus_security_id',
32
+ :'product' => :'product',
33
+ :'start_date' => :'start_date',
34
+ :'ticker' => :'ticker'
35
+ }
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.swagger_types
40
+ {
41
+ :'end_date' => :'Date',
42
+ :'nucleus_security_id' => :'Array<String>',
43
+ :'product' => :'String',
44
+ :'start_date' => :'Date',
45
+ :'ticker' => :'Array<String>'
46
+ }
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ return unless attributes.is_a?(Hash)
53
+
54
+ # convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
56
+
57
+ if attributes.has_key?(:'end_date')
58
+ self.end_date = attributes[:'end_date']
59
+ end
60
+
61
+ if attributes.has_key?(:'nucleus_security_id')
62
+ if (value = attributes[:'nucleus_security_id']).is_a?(Array)
63
+ self.nucleus_security_id = value
64
+ end
65
+ end
66
+
67
+ if attributes.has_key?(:'product')
68
+ self.product = attributes[:'product']
69
+ end
70
+
71
+ if attributes.has_key?(:'start_date')
72
+ self.start_date = attributes[:'start_date']
73
+ end
74
+
75
+ if attributes.has_key?(:'ticker')
76
+ if (value = attributes[:'ticker']).is_a?(Array)
77
+ self.ticker = value
78
+ end
79
+ end
80
+ end
81
+
82
+ # Show invalid properties with the reasons. Usually used together with valid?
83
+ # @return Array for valid properties with the reasons
84
+ def list_invalid_properties
85
+ invalid_properties = Array.new
86
+ invalid_properties
87
+ end
88
+
89
+ # Check to see if the all the properties in the model are valid
90
+ # @return true if the model is valid
91
+ def valid?
92
+ true
93
+ end
94
+
95
+ # Checks equality by comparing each attribute.
96
+ # @param [Object] Object to be compared
97
+ def ==(o)
98
+ return true if self.equal?(o)
99
+ self.class == o.class &&
100
+ end_date == o.end_date &&
101
+ nucleus_security_id == o.nucleus_security_id &&
102
+ product == o.product &&
103
+ start_date == o.start_date &&
104
+ ticker == o.ticker
105
+ end
106
+
107
+ # @see the `==` method
108
+ # @param [Object] Object to be compared
109
+ def eql?(o)
110
+ self == o
111
+ end
112
+
113
+ # Calculates hash code according to all attributes.
114
+ # @return [Fixnum] Hash code
115
+ def hash
116
+ [end_date, nucleus_security_id, product, start_date, ticker].hash
117
+ end
118
+
119
+ # Builds the object from hash
120
+ # @param [Hash] attributes Model attributes in the form of hash
121
+ # @return [Object] Returns the model itself
122
+ def build_from_hash(attributes)
123
+ self.class.swagger_types.each_pair do |key, type|
124
+ if type =~ /\AArray<(.*)>/i
125
+ # check to ensure the input is an array given that the attribute
126
+ # is documented as an array but the input is not
127
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
128
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
129
+ end
130
+ elsif !attributes[self.class.attribute_map[key]].nil?
131
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
132
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
133
+ end
134
+
135
+ self
136
+ end
137
+
138
+ # Deserializes the data based on type
139
+ # @param string type Data type
140
+ # @param string value Value to be deserialized
141
+ # @return [Object] Deserialized data
142
+ def _deserialize(type, value)
143
+ case type.to_sym
144
+ when :DateTime
145
+ value
146
+ when :Date
147
+ value
148
+ when :String
149
+ value.to_s
150
+ when :Integer
151
+ value.to_i
152
+ when :Float
153
+ value.to_f
154
+ when :BOOLEAN
155
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
156
+ true
157
+ else
158
+ false
159
+ end
160
+ when :Object
161
+ # generic object (usually a Hash), return directly
162
+ value
163
+ when /\AArray<(?<inner_type>.+)>\z/
164
+ inner_type = Regexp.last_match[:inner_type]
165
+ value.map { |v| _deserialize(inner_type, v) }
166
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
167
+ k_type = Regexp.last_match[:k_type]
168
+ v_type = Regexp.last_match[:v_type]
169
+ {}.tap do |hash|
170
+ value.each do |k, v|
171
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
172
+ end
173
+ end
174
+ else # model
175
+ temp_model = IntegrationApi.const_get(type).new
176
+ temp_model.build_from_hash(value)
177
+ end
178
+ end
179
+ # Returns the string representation of the object
180
+ # @return [String] String presentation of the object
181
+ def to_s
182
+ to_hash.to_s
183
+ end
184
+
185
+ # to_body is an alias to to_hash (backward compatibility)
186
+ # @return [Hash] Returns the object in the form of hash
187
+ def to_body
188
+ to_hash
189
+ end
190
+
191
+ # Returns the object in the form of hash
192
+ # @return [Hash] Returns the object in the form of hash
193
+ def to_hash
194
+ hash = {}
195
+ self.class.attribute_map.each_pair do |attr, param|
196
+ value = self.send(attr)
197
+ hash[param] = _to_hash(value)
198
+ end
199
+ hash
200
+ end
201
+
202
+ # Outputs non-array value in the form of hash
203
+ # For object, use to_hash. Otherwise, just return the value
204
+ # @param [Object] value Any valid value
205
+ # @return [Hash] Returns the value in the form of hash
206
+ def _to_hash(value)
207
+ if value.is_a?(Array)
208
+ value.compact.map { |v| _to_hash(v) }
209
+ elsif value.is_a?(Hash)
210
+ {}.tap do |hash|
211
+ value.each { |k, v| hash[k] = _to_hash(v) }
212
+ end
213
+ elsif value.respond_to? :to_hash
214
+ value.to_hash
215
+ else
216
+ value
217
+ end
218
+ end
219
+
220
+ end
221
+ end
@@ -0,0 +1,183 @@
1
+ =begin
2
+ #Hydrogen Integration API
3
+
4
+ #The Hydrogen Integration API
5
+
6
+ OpenAPI spec version: 1.3.1
7
+ Contact: info@hydrogenplatform.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.21
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module IntegrationApi
16
+ class MdHistoryResponseVO
17
+ attr_accessor :content
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'content' => :'content'
23
+ }
24
+ end
25
+
26
+ # Attribute type mapping.
27
+ def self.swagger_types
28
+ {
29
+ :'content' => :'Array<MdHistoryItemVO>'
30
+ }
31
+ end
32
+
33
+ # Initializes the object
34
+ # @param [Hash] attributes Model attributes in the form of hash
35
+ def initialize(attributes = {})
36
+ return unless attributes.is_a?(Hash)
37
+
38
+ # convert string to symbol for hash key
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
+
41
+ if attributes.has_key?(:'content')
42
+ if (value = attributes[:'content']).is_a?(Array)
43
+ self.content = value
44
+ end
45
+ end
46
+ end
47
+
48
+ # Show invalid properties with the reasons. Usually used together with valid?
49
+ # @return Array for valid properties with the reasons
50
+ def list_invalid_properties
51
+ invalid_properties = Array.new
52
+ invalid_properties
53
+ end
54
+
55
+ # Check to see if the all the properties in the model are valid
56
+ # @return true if the model is valid
57
+ def valid?
58
+ true
59
+ end
60
+
61
+ # Checks equality by comparing each attribute.
62
+ # @param [Object] Object to be compared
63
+ def ==(o)
64
+ return true if self.equal?(o)
65
+ self.class == o.class &&
66
+ content == o.content
67
+ end
68
+
69
+ # @see the `==` method
70
+ # @param [Object] Object to be compared
71
+ def eql?(o)
72
+ self == o
73
+ end
74
+
75
+ # Calculates hash code according to all attributes.
76
+ # @return [Fixnum] Hash code
77
+ def hash
78
+ [content].hash
79
+ end
80
+
81
+ # Builds the object from hash
82
+ # @param [Hash] attributes Model attributes in the form of hash
83
+ # @return [Object] Returns the model itself
84
+ def build_from_hash(attributes)
85
+ self.class.swagger_types.each_pair do |key, type|
86
+ if type =~ /\AArray<(.*)>/i
87
+ # check to ensure the input is an array given that the attribute
88
+ # is documented as an array but the input is not
89
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
90
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
91
+ end
92
+ elsif !attributes[self.class.attribute_map[key]].nil?
93
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
94
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
95
+ end
96
+
97
+ self
98
+ end
99
+
100
+ # Deserializes the data based on type
101
+ # @param string type Data type
102
+ # @param string value Value to be deserialized
103
+ # @return [Object] Deserialized data
104
+ def _deserialize(type, value)
105
+ case type.to_sym
106
+ when :DateTime
107
+ value
108
+ when :Date
109
+ value
110
+ when :String
111
+ value.to_s
112
+ when :Integer
113
+ value.to_i
114
+ when :Float
115
+ value.to_f
116
+ when :BOOLEAN
117
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
118
+ true
119
+ else
120
+ false
121
+ end
122
+ when :Object
123
+ # generic object (usually a Hash), return directly
124
+ value
125
+ when /\AArray<(?<inner_type>.+)>\z/
126
+ inner_type = Regexp.last_match[:inner_type]
127
+ value.map { |v| _deserialize(inner_type, v) }
128
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
129
+ k_type = Regexp.last_match[:k_type]
130
+ v_type = Regexp.last_match[:v_type]
131
+ {}.tap do |hash|
132
+ value.each do |k, v|
133
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
134
+ end
135
+ end
136
+ else # model
137
+ temp_model = IntegrationApi.const_get(type).new
138
+ temp_model.build_from_hash(value)
139
+ end
140
+ end
141
+ # Returns the string representation of the object
142
+ # @return [String] String presentation of the object
143
+ def to_s
144
+ to_hash.to_s
145
+ end
146
+
147
+ # to_body is an alias to to_hash (backward compatibility)
148
+ # @return [Hash] Returns the object in the form of hash
149
+ def to_body
150
+ to_hash
151
+ end
152
+
153
+ # Returns the object in the form of hash
154
+ # @return [Hash] Returns the object in the form of hash
155
+ def to_hash
156
+ hash = {}
157
+ self.class.attribute_map.each_pair do |attr, param|
158
+ value = self.send(attr)
159
+ hash[param] = _to_hash(value)
160
+ end
161
+ hash
162
+ end
163
+
164
+ # Outputs non-array value in the form of hash
165
+ # For object, use to_hash. Otherwise, just return the value
166
+ # @param [Object] value Any valid value
167
+ # @return [Hash] Returns the value in the form of hash
168
+ def _to_hash(value)
169
+ if value.is_a?(Array)
170
+ value.compact.map { |v| _to_hash(v) }
171
+ elsif value.is_a?(Hash)
172
+ {}.tap do |hash|
173
+ value.each { |k, v| hash[k] = _to_hash(v) }
174
+ end
175
+ elsif value.respond_to? :to_hash
176
+ value.to_hash
177
+ else
178
+ value
179
+ end
180
+ end
181
+
182
+ end
183
+ end
@@ -0,0 +1,352 @@
1
+ =begin
2
+ #Hydrogen Integration API
3
+
4
+ #The Hydrogen Integration API
5
+
6
+ OpenAPI spec version: 1.3.1
7
+ Contact: info@hydrogenplatform.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.21
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module IntegrationApi
16
+ class MdQuoteItemVO
17
+ attr_accessor :ask
18
+
19
+ attr_accessor :ask_size
20
+
21
+ attr_accessor :bid
22
+
23
+ attr_accessor :bid_size
24
+
25
+ attr_accessor :change
26
+
27
+ attr_accessor :close
28
+
29
+ attr_accessor :currency_code
30
+
31
+ attr_accessor :day_range
32
+
33
+ attr_accessor :exchange
34
+
35
+ attr_accessor :high
36
+
37
+ attr_accessor :last_trade
38
+
39
+ attr_accessor :last_trade_time_stamp
40
+
41
+ attr_accessor :low
42
+
43
+ attr_accessor :market_cap
44
+
45
+ attr_accessor :nucleus_security_id
46
+
47
+ attr_accessor :open
48
+
49
+ attr_accessor :prev_close
50
+
51
+ attr_accessor :ticker
52
+
53
+ attr_accessor :volume
54
+
55
+ attr_accessor :year_range
56
+
57
+ # Attribute mapping from ruby-style variable name to JSON key.
58
+ def self.attribute_map
59
+ {
60
+ :'ask' => :'ask',
61
+ :'ask_size' => :'ask_size',
62
+ :'bid' => :'bid',
63
+ :'bid_size' => :'bid_size',
64
+ :'change' => :'change',
65
+ :'close' => :'close',
66
+ :'currency_code' => :'currency_code',
67
+ :'day_range' => :'day_range',
68
+ :'exchange' => :'exchange',
69
+ :'high' => :'high',
70
+ :'last_trade' => :'last_trade',
71
+ :'last_trade_time_stamp' => :'last_trade_time_stamp',
72
+ :'low' => :'low',
73
+ :'market_cap' => :'market_cap',
74
+ :'nucleus_security_id' => :'nucleus_security_id',
75
+ :'open' => :'open',
76
+ :'prev_close' => :'prev_close',
77
+ :'ticker' => :'ticker',
78
+ :'volume' => :'volume',
79
+ :'year_range' => :'year_range'
80
+ }
81
+ end
82
+
83
+ # Attribute type mapping.
84
+ def self.swagger_types
85
+ {
86
+ :'ask' => :'Float',
87
+ :'ask_size' => :'Integer',
88
+ :'bid' => :'Float',
89
+ :'bid_size' => :'Integer',
90
+ :'change' => :'Float',
91
+ :'close' => :'Float',
92
+ :'currency_code' => :'String',
93
+ :'day_range' => :'String',
94
+ :'exchange' => :'String',
95
+ :'high' => :'Float',
96
+ :'last_trade' => :'Float',
97
+ :'last_trade_time_stamp' => :'DateTime',
98
+ :'low' => :'Float',
99
+ :'market_cap' => :'String',
100
+ :'nucleus_security_id' => :'String',
101
+ :'open' => :'Float',
102
+ :'prev_close' => :'Float',
103
+ :'ticker' => :'String',
104
+ :'volume' => :'Integer',
105
+ :'year_range' => :'String'
106
+ }
107
+ end
108
+
109
+ # Initializes the object
110
+ # @param [Hash] attributes Model attributes in the form of hash
111
+ def initialize(attributes = {})
112
+ return unless attributes.is_a?(Hash)
113
+
114
+ # convert string to symbol for hash key
115
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
116
+
117
+ if attributes.has_key?(:'ask')
118
+ self.ask = attributes[:'ask']
119
+ end
120
+
121
+ if attributes.has_key?(:'ask_size')
122
+ self.ask_size = attributes[:'ask_size']
123
+ end
124
+
125
+ if attributes.has_key?(:'bid')
126
+ self.bid = attributes[:'bid']
127
+ end
128
+
129
+ if attributes.has_key?(:'bid_size')
130
+ self.bid_size = attributes[:'bid_size']
131
+ end
132
+
133
+ if attributes.has_key?(:'change')
134
+ self.change = attributes[:'change']
135
+ end
136
+
137
+ if attributes.has_key?(:'close')
138
+ self.close = attributes[:'close']
139
+ end
140
+
141
+ if attributes.has_key?(:'currency_code')
142
+ self.currency_code = attributes[:'currency_code']
143
+ end
144
+
145
+ if attributes.has_key?(:'day_range')
146
+ self.day_range = attributes[:'day_range']
147
+ end
148
+
149
+ if attributes.has_key?(:'exchange')
150
+ self.exchange = attributes[:'exchange']
151
+ end
152
+
153
+ if attributes.has_key?(:'high')
154
+ self.high = attributes[:'high']
155
+ end
156
+
157
+ if attributes.has_key?(:'last_trade')
158
+ self.last_trade = attributes[:'last_trade']
159
+ end
160
+
161
+ if attributes.has_key?(:'last_trade_time_stamp')
162
+ self.last_trade_time_stamp = attributes[:'last_trade_time_stamp']
163
+ end
164
+
165
+ if attributes.has_key?(:'low')
166
+ self.low = attributes[:'low']
167
+ end
168
+
169
+ if attributes.has_key?(:'market_cap')
170
+ self.market_cap = attributes[:'market_cap']
171
+ end
172
+
173
+ if attributes.has_key?(:'nucleus_security_id')
174
+ self.nucleus_security_id = attributes[:'nucleus_security_id']
175
+ end
176
+
177
+ if attributes.has_key?(:'open')
178
+ self.open = attributes[:'open']
179
+ end
180
+
181
+ if attributes.has_key?(:'prev_close')
182
+ self.prev_close = attributes[:'prev_close']
183
+ end
184
+
185
+ if attributes.has_key?(:'ticker')
186
+ self.ticker = attributes[:'ticker']
187
+ end
188
+
189
+ if attributes.has_key?(:'volume')
190
+ self.volume = attributes[:'volume']
191
+ end
192
+
193
+ if attributes.has_key?(:'year_range')
194
+ self.year_range = attributes[:'year_range']
195
+ end
196
+ end
197
+
198
+ # Show invalid properties with the reasons. Usually used together with valid?
199
+ # @return Array for valid properties with the reasons
200
+ def list_invalid_properties
201
+ invalid_properties = Array.new
202
+ invalid_properties
203
+ end
204
+
205
+ # Check to see if the all the properties in the model are valid
206
+ # @return true if the model is valid
207
+ def valid?
208
+ true
209
+ end
210
+
211
+ # Checks equality by comparing each attribute.
212
+ # @param [Object] Object to be compared
213
+ def ==(o)
214
+ return true if self.equal?(o)
215
+ self.class == o.class &&
216
+ ask == o.ask &&
217
+ ask_size == o.ask_size &&
218
+ bid == o.bid &&
219
+ bid_size == o.bid_size &&
220
+ change == o.change &&
221
+ close == o.close &&
222
+ currency_code == o.currency_code &&
223
+ day_range == o.day_range &&
224
+ exchange == o.exchange &&
225
+ high == o.high &&
226
+ last_trade == o.last_trade &&
227
+ last_trade_time_stamp == o.last_trade_time_stamp &&
228
+ low == o.low &&
229
+ market_cap == o.market_cap &&
230
+ nucleus_security_id == o.nucleus_security_id &&
231
+ open == o.open &&
232
+ prev_close == o.prev_close &&
233
+ ticker == o.ticker &&
234
+ volume == o.volume &&
235
+ year_range == o.year_range
236
+ end
237
+
238
+ # @see the `==` method
239
+ # @param [Object] Object to be compared
240
+ def eql?(o)
241
+ self == o
242
+ end
243
+
244
+ # Calculates hash code according to all attributes.
245
+ # @return [Fixnum] Hash code
246
+ def hash
247
+ [ask, ask_size, bid, bid_size, change, close, currency_code, day_range, exchange, high, last_trade, last_trade_time_stamp, low, market_cap, nucleus_security_id, open, prev_close, ticker, volume, year_range].hash
248
+ end
249
+
250
+ # Builds the object from hash
251
+ # @param [Hash] attributes Model attributes in the form of hash
252
+ # @return [Object] Returns the model itself
253
+ def build_from_hash(attributes)
254
+ self.class.swagger_types.each_pair do |key, type|
255
+ if type =~ /\AArray<(.*)>/i
256
+ # check to ensure the input is an array given that the attribute
257
+ # is documented as an array but the input is not
258
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
259
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
260
+ end
261
+ elsif !attributes[self.class.attribute_map[key]].nil?
262
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
263
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
264
+ end
265
+
266
+ self
267
+ end
268
+
269
+ # Deserializes the data based on type
270
+ # @param string type Data type
271
+ # @param string value Value to be deserialized
272
+ # @return [Object] Deserialized data
273
+ def _deserialize(type, value)
274
+ case type.to_sym
275
+ when :DateTime
276
+ value
277
+ when :Date
278
+ value
279
+ when :String
280
+ value.to_s
281
+ when :Integer
282
+ value.to_i
283
+ when :Float
284
+ value.to_f
285
+ when :BOOLEAN
286
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
287
+ true
288
+ else
289
+ false
290
+ end
291
+ when :Object
292
+ # generic object (usually a Hash), return directly
293
+ value
294
+ when /\AArray<(?<inner_type>.+)>\z/
295
+ inner_type = Regexp.last_match[:inner_type]
296
+ value.map { |v| _deserialize(inner_type, v) }
297
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
298
+ k_type = Regexp.last_match[:k_type]
299
+ v_type = Regexp.last_match[:v_type]
300
+ {}.tap do |hash|
301
+ value.each do |k, v|
302
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
303
+ end
304
+ end
305
+ else # model
306
+ temp_model = IntegrationApi.const_get(type).new
307
+ temp_model.build_from_hash(value)
308
+ end
309
+ end
310
+ # Returns the string representation of the object
311
+ # @return [String] String presentation of the object
312
+ def to_s
313
+ to_hash.to_s
314
+ end
315
+
316
+ # to_body is an alias to to_hash (backward compatibility)
317
+ # @return [Hash] Returns the object in the form of hash
318
+ def to_body
319
+ to_hash
320
+ end
321
+
322
+ # Returns the object in the form of hash
323
+ # @return [Hash] Returns the object in the form of hash
324
+ def to_hash
325
+ hash = {}
326
+ self.class.attribute_map.each_pair do |attr, param|
327
+ value = self.send(attr)
328
+ hash[param] = _to_hash(value)
329
+ end
330
+ hash
331
+ end
332
+
333
+ # Outputs non-array value in the form of hash
334
+ # For object, use to_hash. Otherwise, just return the value
335
+ # @param [Object] value Any valid value
336
+ # @return [Hash] Returns the value in the form of hash
337
+ def _to_hash(value)
338
+ if value.is_a?(Array)
339
+ value.compact.map { |v| _to_hash(v) }
340
+ elsif value.is_a?(Hash)
341
+ {}.tap do |hash|
342
+ value.each { |k, v| hash[k] = _to_hash(v) }
343
+ end
344
+ elsif value.respond_to? :to_hash
345
+ value.to_hash
346
+ else
347
+ value
348
+ end
349
+ end
350
+
351
+ end
352
+ end