fuse_client 1.0.6 → 1.0.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (285) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +6 -5
  3. data/README.md +82 -1
  4. data/docs/AccountSubType.md +15 -0
  5. data/docs/AccountType.md +15 -0
  6. data/docs/CountryCode.md +15 -0
  7. data/docs/CreateAssetReportResponse.md +3 -1
  8. data/docs/CreateEntityResponse.md +3 -1
  9. data/docs/CreateLinkTokenRequest.md +0 -2
  10. data/docs/CreateLinkTokenResponse.md +2 -2
  11. data/docs/CreateSessionRequest.md +9 -1
  12. data/docs/CreateSessionResponse.md +3 -3
  13. data/docs/Currency.md +20 -0
  14. data/docs/DeleteFinancialConnectionResponse.md +22 -0
  15. data/docs/ExchangeFinancialConnectionsPublicTokenResponse.md +3 -3
  16. data/docs/FinancialConnectionData.md +2 -2
  17. data/docs/FinancialConnectionDetails.md +32 -0
  18. data/docs/FinancialConnectionDetailsMx.md +20 -0
  19. data/docs/FinancialConnectionDetailsPlaid.md +20 -0
  20. data/docs/FinancialConnectionDetailsTeller.md +20 -0
  21. data/docs/FinancialConnectionsAccount.md +8 -8
  22. data/docs/FinancialConnectionsAccountBalance.md +5 -3
  23. data/docs/FinancialConnectionsAccountCachedBalance.md +24 -0
  24. data/docs/FinancialConnectionsAccountDetails.md +2 -2
  25. data/docs/FinancialConnectionsAccountLiability.md +8 -8
  26. data/docs/FinancialConnectionsHolding.md +8 -8
  27. data/docs/FinancialConnectionsInvestmentSecurity.md +17 -7
  28. data/docs/FinancialConnectionsInvestmentSecurityExchange.md +18 -0
  29. data/docs/FinancialConnectionsInvestmentTransaction.md +22 -2
  30. data/docs/FinancialConnectionsOwner.md +4 -4
  31. data/docs/FinancialConnectionsOwnerEmailsInner.md +1 -1
  32. data/docs/FinancialConnectionsOwnerNamesInner.md +1 -1
  33. data/docs/FinancialConnectionsOwnerPhoneNumbersInner.md +1 -1
  34. data/docs/FinancialInstitution.md +3 -1
  35. data/docs/FuseApi.md +189 -185
  36. data/docs/FuseApiErrorData.md +1 -1
  37. data/docs/FuseApiWarningData.md +1 -1
  38. data/docs/GetAssetReportResponse.md +3 -1
  39. data/docs/GetEntityResponse.md +6 -2
  40. data/docs/GetFinancialConnectionResponse.md +20 -0
  41. data/docs/GetFinancialConnectionsAccountDetailsResponse.md +5 -3
  42. data/docs/GetFinancialConnectionsAccountsResponse.md +5 -3
  43. data/docs/GetFinancialConnectionsBalanceRequest.md +3 -1
  44. data/docs/GetFinancialConnectionsBalanceRequestOptions.md +18 -0
  45. data/docs/GetFinancialConnectionsBalanceResponse.md +20 -0
  46. data/docs/GetFinancialConnectionsOwnersResponse.md +1 -1
  47. data/docs/GetFinancialConnectionsOwnersResponseAccountsInner.md +5 -3
  48. data/docs/GetFinancialConnectionsTransactionsRequest.md +26 -0
  49. data/docs/GetFinancialConnectionsTransactionsResponse.md +22 -0
  50. data/docs/GetFinancialInstitutionResponse.md +4 -2
  51. data/docs/GetInvestmentHoldingsRequest.md +3 -3
  52. data/docs/GetInvestmentHoldingsRequestOptions.md +18 -0
  53. data/docs/GetInvestmentHoldingsResponse.md +4 -4
  54. data/docs/GetInvestmentTransactionsRequest.md +11 -1
  55. data/docs/GetInvestmentTransactionsRequestOptions.md +18 -0
  56. data/docs/GetInvestmentTransactionsResponse.md +4 -4
  57. data/docs/GetLiabilitiesResponse.md +3 -1
  58. data/docs/MigrateFinancialConnectionsAggregatorConnectionData.md +20 -0
  59. data/docs/MigrateFinancialConnectionsAggregatorConnectionDataMx.md +20 -0
  60. data/docs/MigrateFinancialConnectionsAggregatorConnectionDataPlaid.md +18 -0
  61. data/docs/MigrateFinancialConnectionsTokenRequest.md +24 -0
  62. data/docs/MigrateFinancialConnectionsTokenRequestEntity.md +18 -0
  63. data/docs/MigrateFinancialConnectionsTokenResponse.md +24 -0
  64. data/docs/SyncFinancialConnectionsDataResponse.md +3 -1
  65. data/docs/SyncTransactionsResponse.md +5 -3
  66. data/docs/{GetTransactionsResponseDataInner.md → Transaction.md} +16 -14
  67. data/docs/{GetTransactionsResponseDataInnerMerchant.md → TransactionMerchant.md} +2 -2
  68. data/docs/UpdateEntityResponse.md +3 -1
  69. data/docs/WebhookEvent.md +28 -0
  70. data/docs/WebhookSource.md +15 -0
  71. data/docs/WebhookType.md +15 -0
  72. data/fuse_client.gemspec +1 -1
  73. data/lib/fuse_client/api/fuse_api.rb +181 -197
  74. data/lib/fuse_client/api_client.rb +1 -1
  75. data/lib/fuse_client/api_error.rb +1 -1
  76. data/lib/fuse_client/configuration.rb +39 -18
  77. data/lib/fuse_client/models/account_subtype.rb +178 -0
  78. data/lib/fuse_client/models/account_type.rb +45 -0
  79. data/lib/fuse_client/models/aggregator.rb +3 -3
  80. data/lib/fuse_client/models/country_code.rb +40 -0
  81. data/lib/fuse_client/models/create_asset_report_request.rb +1 -1
  82. data/lib/fuse_client/models/create_asset_report_response.rb +15 -5
  83. data/lib/fuse_client/models/create_entity_request.rb +1 -1
  84. data/lib/fuse_client/models/create_entity_response.rb +15 -5
  85. data/lib/fuse_client/models/create_link_token_request.rb +2 -12
  86. data/lib/fuse_client/models/create_link_token_request_mx.rb +1 -1
  87. data/lib/fuse_client/models/create_link_token_request_plaid.rb +1 -1
  88. data/lib/fuse_client/models/create_link_token_response.rb +12 -2
  89. data/lib/fuse_client/models/create_session_request.rb +46 -5
  90. data/lib/fuse_client/models/create_session_response.rb +17 -2
  91. data/lib/fuse_client/models/{get_transactions_response.rb → currency.rb} +24 -30
  92. data/lib/fuse_client/models/delete_financial_connection_response.rb +255 -0
  93. data/lib/fuse_client/models/entity.rb +1 -1
  94. data/lib/fuse_client/models/exchange_financial_connections_public_token_request.rb +1 -1
  95. data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +17 -2
  96. data/lib/fuse_client/models/financial_connection_data.rb +11 -1
  97. data/lib/fuse_client/models/financial_connection_details.rb +345 -0
  98. data/lib/fuse_client/models/financial_connection_details_mx.rb +241 -0
  99. data/lib/fuse_client/models/{get_transactions_request.rb → financial_connection_details_plaid.rb} +19 -23
  100. data/lib/fuse_client/models/financial_connection_details_teller.rb +241 -0
  101. data/lib/fuse_client/models/financial_connections_account.rb +59 -14
  102. data/lib/fuse_client/models/financial_connections_account_balance.rb +21 -6
  103. data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +250 -0
  104. data/lib/fuse_client/models/financial_connections_account_details.rb +11 -1
  105. data/lib/fuse_client/models/financial_connections_account_details_ach.rb +1 -1
  106. data/lib/fuse_client/models/financial_connections_account_institution.rb +1 -1
  107. data/lib/fuse_client/models/financial_connections_account_liability.rb +59 -14
  108. data/lib/fuse_client/models/financial_connections_account_liability_all_of.rb +1 -1
  109. data/lib/fuse_client/models/financial_connections_account_liability_all_of_aprs.rb +1 -1
  110. data/lib/fuse_client/models/financial_connections_holding.rb +52 -23
  111. data/lib/fuse_client/models/financial_connections_investment_security.rb +92 -24
  112. data/lib/fuse_client/models/{transaction_common_model.rb → financial_connections_investment_security_exchange.rb} +12 -13
  113. data/lib/fuse_client/models/financial_connections_investment_transaction.rb +158 -10
  114. data/lib/fuse_client/models/financial_connections_owner.rb +21 -1
  115. data/lib/fuse_client/models/financial_connections_owner_addresses_inner.rb +1 -1
  116. data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +1 -1
  117. data/lib/fuse_client/models/financial_connections_owner_emails_inner.rb +6 -1
  118. data/lib/fuse_client/models/financial_connections_owner_names_inner.rb +6 -1
  119. data/lib/fuse_client/models/financial_connections_owner_phone_numbers_inner.rb +6 -1
  120. data/lib/fuse_client/models/financial_institution.rb +22 -5
  121. data/lib/fuse_client/models/financial_institution_logo.rb +1 -1
  122. data/lib/fuse_client/models/fuse_api_error.rb +25 -1
  123. data/lib/fuse_client/models/fuse_api_error_data.rb +24 -2
  124. data/lib/fuse_client/models/fuse_api_warning.rb +1 -1
  125. data/lib/fuse_client/models/fuse_api_warning_data.rb +24 -2
  126. data/lib/fuse_client/models/fuse_api_warning_data_warnings_inner.rb +1 -1
  127. data/lib/fuse_client/models/get_asset_report_request.rb +1 -1
  128. data/lib/fuse_client/models/get_asset_report_response.rb +15 -5
  129. data/lib/fuse_client/models/get_asset_report_response_report.rb +1 -1
  130. data/lib/fuse_client/models/get_asset_report_response_report_accounts_inner.rb +1 -1
  131. data/lib/fuse_client/models/get_asset_report_response_report_accounts_inner_balances.rb +1 -1
  132. data/lib/fuse_client/models/get_asset_report_response_report_accounts_inner_historical_balances_inner.rb +1 -1
  133. data/lib/fuse_client/models/get_entity_response.rb +42 -5
  134. data/lib/fuse_client/models/get_financial_connection_response.rb +239 -0
  135. data/lib/fuse_client/models/get_financial_connections_account_details_request.rb +1 -1
  136. data/lib/fuse_client/models/get_financial_connections_account_details_response.rb +30 -5
  137. data/lib/fuse_client/models/get_financial_connections_accounts_request.rb +1 -1
  138. data/lib/fuse_client/models/get_financial_connections_accounts_response.rb +30 -5
  139. data/lib/fuse_client/models/get_financial_connections_balance_request.rb +14 -5
  140. data/lib/fuse_client/models/get_financial_connections_balance_request_options.rb +222 -0
  141. data/lib/fuse_client/models/get_financial_connections_balance_response.rb +241 -0
  142. data/lib/fuse_client/models/get_financial_connections_owners_request.rb +1 -1
  143. data/lib/fuse_client/models/get_financial_connections_owners_response.rb +6 -1
  144. data/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +30 -5
  145. data/lib/fuse_client/models/get_financial_connections_transactions_request.rb +334 -0
  146. data/lib/fuse_client/models/get_financial_connections_transactions_response.rb +256 -0
  147. data/lib/fuse_client/models/get_financial_institution_response.rb +25 -5
  148. data/lib/fuse_client/models/get_investment_holdings_request.rb +9 -10
  149. data/lib/fuse_client/models/get_investment_holdings_request_options.rb +222 -0
  150. data/lib/fuse_client/models/get_investment_holdings_response.rb +25 -11
  151. data/lib/fuse_client/models/get_investment_transactions_request.rb +95 -5
  152. data/lib/fuse_client/models/get_investment_transactions_request_options.rb +222 -0
  153. data/lib/fuse_client/models/get_investment_transactions_response.rb +25 -11
  154. data/lib/fuse_client/models/get_liabilities_request.rb +1 -1
  155. data/lib/fuse_client/models/get_liabilities_response.rb +15 -5
  156. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data.rb +229 -0
  157. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_mx.rb +236 -0
  158. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_plaid.rb +226 -0
  159. data/lib/fuse_client/models/{financial_connections_investment_account.rb → migrate_financial_connections_token_request.rb} +86 -70
  160. data/lib/fuse_client/models/{get_financial_connections_account_balance_response.rb → migrate_financial_connections_token_request_entity.rb} +12 -13
  161. data/lib/fuse_client/models/migrate_financial_connections_token_response.rb +264 -0
  162. data/lib/fuse_client/models/product.rb +3 -3
  163. data/lib/fuse_client/models/refresh_asset_report_request.rb +1 -1
  164. data/lib/fuse_client/models/sync_financial_connections_data_response.rb +15 -5
  165. data/lib/fuse_client/models/sync_transactions_request.rb +1 -1
  166. data/lib/fuse_client/models/sync_transactions_response.rb +17 -7
  167. data/lib/fuse_client/models/sync_transactions_response_removed_inner.rb +1 -1
  168. data/lib/fuse_client/models/{get_transactions_response_data_inner.rb → transaction.rb} +110 -21
  169. data/lib/fuse_client/models/{get_transactions_response_data_inner_merchant.rb → transaction_merchant.rb} +4 -4
  170. data/lib/fuse_client/models/update_entity_request.rb +1 -1
  171. data/lib/fuse_client/models/update_entity_response.rb +15 -5
  172. data/lib/fuse_client/models/{financial_connections_investment_transaction_data_inner.rb → webhook_event.rb} +94 -63
  173. data/lib/fuse_client/models/webhook_source.rb +43 -0
  174. data/lib/fuse_client/models/webhook_type.rb +42 -0
  175. data/lib/fuse_client/version.rb +2 -2
  176. data/lib/fuse_client.rb +30 -9
  177. data/spec/api/fuse_api_spec.rb +40 -39
  178. data/spec/api_client_spec.rb +3 -1
  179. data/spec/configuration_spec.rb +1 -1
  180. data/spec/models/account_subtype_spec.rb +28 -0
  181. data/spec/models/account_type_spec.rb +28 -0
  182. data/spec/models/aggregator_spec.rb +1 -1
  183. data/spec/models/country_code_spec.rb +28 -0
  184. data/spec/models/create_asset_report_request_spec.rb +1 -1
  185. data/spec/models/create_asset_report_response_spec.rb +7 -1
  186. data/spec/models/create_entity_request_spec.rb +1 -1
  187. data/spec/models/create_entity_response_spec.rb +7 -1
  188. data/spec/models/create_link_token_request_mx_spec.rb +1 -1
  189. data/spec/models/create_link_token_request_plaid_spec.rb +1 -1
  190. data/spec/models/create_link_token_request_spec.rb +1 -7
  191. data/spec/models/create_link_token_response_spec.rb +1 -1
  192. data/spec/models/create_session_request_spec.rb +25 -1
  193. data/spec/models/create_session_response_spec.rb +1 -1
  194. data/spec/models/{get_transactions_response_data_inner_merchant_spec.rb → currency_spec.rb} +13 -7
  195. data/spec/models/{get_transactions_request_spec.rb → delete_financial_connection_response_spec.rb} +10 -10
  196. data/spec/models/entity_spec.rb +1 -1
  197. data/spec/models/exchange_financial_connections_public_token_request_spec.rb +1 -1
  198. data/spec/models/exchange_financial_connections_public_token_response_spec.rb +1 -1
  199. data/spec/models/financial_connection_data_spec.rb +1 -1
  200. data/spec/models/financial_connection_details_mx_spec.rb +40 -0
  201. data/spec/models/financial_connection_details_plaid_spec.rb +40 -0
  202. data/spec/models/{financial_connections_investment_transaction_data_inner_spec.rb → financial_connection_details_spec.rb} +18 -14
  203. data/spec/models/financial_connection_details_teller_spec.rb +40 -0
  204. data/spec/models/financial_connections_account_balance_spec.rb +7 -1
  205. data/spec/models/financial_connections_account_cached_balance_spec.rb +52 -0
  206. data/spec/models/financial_connections_account_details_ach_spec.rb +1 -1
  207. data/spec/models/financial_connections_account_details_spec.rb +1 -1
  208. data/spec/models/financial_connections_account_institution_spec.rb +1 -1
  209. data/spec/models/financial_connections_account_liability_all_of_aprs_spec.rb +1 -1
  210. data/spec/models/financial_connections_account_liability_all_of_spec.rb +1 -1
  211. data/spec/models/financial_connections_account_liability_spec.rb +2 -2
  212. data/spec/models/financial_connections_account_spec.rb +2 -2
  213. data/spec/models/financial_connections_holding_spec.rb +4 -4
  214. data/spec/models/financial_connections_investment_security_exchange_spec.rb +34 -0
  215. data/spec/models/financial_connections_investment_security_spec.rb +34 -4
  216. data/spec/models/financial_connections_investment_transaction_spec.rb +62 -2
  217. data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +1 -1
  218. data/spec/models/financial_connections_owner_addresses_inner_spec.rb +1 -1
  219. data/spec/models/financial_connections_owner_emails_inner_spec.rb +1 -1
  220. data/spec/models/financial_connections_owner_names_inner_spec.rb +1 -1
  221. data/spec/models/financial_connections_owner_phone_numbers_inner_spec.rb +1 -1
  222. data/spec/models/financial_connections_owner_spec.rb +1 -1
  223. data/spec/models/financial_institution_logo_spec.rb +1 -1
  224. data/spec/models/financial_institution_spec.rb +7 -1
  225. data/spec/models/fuse_api_error_data_spec.rb +1 -1
  226. data/spec/models/fuse_api_error_spec.rb +9 -1
  227. data/spec/models/fuse_api_warning_data_spec.rb +1 -1
  228. data/spec/models/fuse_api_warning_data_warnings_inner_spec.rb +1 -1
  229. data/spec/models/fuse_api_warning_spec.rb +1 -1
  230. data/spec/models/get_asset_report_request_spec.rb +1 -1
  231. data/spec/models/get_asset_report_response_report_accounts_inner_balances_spec.rb +1 -1
  232. data/spec/models/get_asset_report_response_report_accounts_inner_historical_balances_inner_spec.rb +1 -1
  233. data/spec/models/get_asset_report_response_report_accounts_inner_spec.rb +1 -1
  234. data/spec/models/get_asset_report_response_report_spec.rb +1 -1
  235. data/spec/models/get_asset_report_response_spec.rb +7 -1
  236. data/spec/models/get_entity_response_spec.rb +13 -1
  237. data/spec/models/get_financial_connection_response_spec.rb +40 -0
  238. data/spec/models/get_financial_connections_account_details_request_spec.rb +1 -1
  239. data/spec/models/get_financial_connections_account_details_response_spec.rb +7 -1
  240. data/spec/models/get_financial_connections_accounts_request_spec.rb +1 -1
  241. data/spec/models/get_financial_connections_accounts_response_spec.rb +7 -1
  242. data/spec/models/{get_financial_connections_account_balance_response_spec.rb → get_financial_connections_balance_request_options_spec.rb} +8 -8
  243. data/spec/models/get_financial_connections_balance_request_spec.rb +7 -1
  244. data/spec/models/get_financial_connections_balance_response_spec.rb +40 -0
  245. data/spec/models/get_financial_connections_owners_request_spec.rb +1 -1
  246. data/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +7 -1
  247. data/spec/models/get_financial_connections_owners_response_spec.rb +1 -1
  248. data/spec/models/get_financial_connections_transactions_request_spec.rb +58 -0
  249. data/spec/models/{get_transactions_response_spec.rb → get_financial_connections_transactions_response_spec.rb} +10 -10
  250. data/spec/models/get_financial_institution_response_spec.rb +7 -1
  251. data/spec/models/get_investment_holdings_request_options_spec.rb +34 -0
  252. data/spec/models/get_investment_holdings_request_spec.rb +2 -2
  253. data/spec/models/get_investment_holdings_response_spec.rb +2 -2
  254. data/spec/models/get_investment_transactions_request_options_spec.rb +34 -0
  255. data/spec/models/get_investment_transactions_request_spec.rb +31 -1
  256. data/spec/models/get_investment_transactions_response_spec.rb +2 -2
  257. data/spec/models/get_liabilities_request_spec.rb +1 -1
  258. data/spec/models/get_liabilities_response_spec.rb +7 -1
  259. data/spec/models/migrate_financial_connections_aggregator_connection_data_mx_spec.rb +40 -0
  260. data/spec/models/migrate_financial_connections_aggregator_connection_data_plaid_spec.rb +34 -0
  261. data/spec/models/migrate_financial_connections_aggregator_connection_data_spec.rb +40 -0
  262. data/spec/models/migrate_financial_connections_token_request_entity_spec.rb +34 -0
  263. data/spec/models/migrate_financial_connections_token_request_spec.rb +56 -0
  264. data/spec/models/migrate_financial_connections_token_response_spec.rb +52 -0
  265. data/spec/models/product_spec.rb +1 -1
  266. data/spec/models/refresh_asset_report_request_spec.rb +1 -1
  267. data/spec/models/sync_financial_connections_data_response_spec.rb +7 -1
  268. data/spec/models/sync_transactions_request_spec.rb +1 -1
  269. data/spec/models/sync_transactions_response_removed_inner_spec.rb +1 -1
  270. data/spec/models/sync_transactions_response_spec.rb +7 -1
  271. data/spec/models/{transaction_common_model_spec.rb → transaction_merchant_spec.rb} +8 -8
  272. data/spec/models/{get_transactions_response_data_inner_spec.rb → transaction_spec.rb} +23 -13
  273. data/spec/models/update_entity_request_spec.rb +1 -1
  274. data/spec/models/update_entity_response_spec.rb +7 -1
  275. data/spec/models/{financial_connections_investment_account_spec.rb → webhook_event_spec.rb} +17 -25
  276. data/spec/models/webhook_source_spec.rb +28 -0
  277. data/spec/models/webhook_type_spec.rb +28 -0
  278. data/spec/spec_helper.rb +1 -1
  279. metadata +118 -34
  280. data/docs/FinancialConnectionsInvestmentAccount.md +0 -32
  281. data/docs/FinancialConnectionsInvestmentTransactionDataInner.md +0 -32
  282. data/docs/GetFinancialConnectionsAccountBalanceResponse.md +0 -18
  283. data/docs/GetTransactionsRequest.md +0 -22
  284. data/docs/GetTransactionsResponse.md +0 -22
  285. data/docs/TransactionCommonModel.md +0 -18
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.3.0
9
+ OpenAPI Generator version: 6.4.0
10
10
 
11
11
  =end
12
12
 
@@ -15,29 +15,47 @@ require 'time'
15
15
 
16
16
  module FuseClient
17
17
  class FinancialConnectionsInvestmentSecurity
18
- # The security type of the holding.
19
- attr_accessor :type
18
+ # Remote Id of the security, ie Plaid or Snaptrade security id
19
+ attr_accessor :remote_id
20
+
21
+ # The trading symbol for publicly traded securities, or a short identifier if available.
22
+ attr_accessor :symbol
23
+
24
+ # The International Securities Identification Number (ISIN) uniquely identifies the security.
25
+ attr_accessor :isin
20
26
 
21
- # 9-character CUSIP, an identifier assigned to North American securities.
27
+ # The Stock Exchange Daily Official List (SEDOL) code uniquely identifies the security, primarily used in the United Kingdom and Ireland.
28
+ attr_accessor :sedol
29
+
30
+ # The Committee on Uniform Securities Identification Procedures (CUSIP) number uniquely identifies the security, primarily used in the United States and Canada.
22
31
  attr_accessor :cusip
23
32
 
33
+ # The closing price of the security at the end of the most recent trading day.
34
+ attr_accessor :close_price
35
+
36
+ attr_accessor :currency
37
+
24
38
  # A descriptive name for the security, suitable for display.
25
39
  attr_accessor :name
26
40
 
27
- # The security’s trading symbol for publicly traded securities, and otherwise a short identifier if available.
28
- attr_accessor :ticker_symbol
41
+ # The type of security (e.g., equity, mutual fund)
42
+ attr_accessor :type
29
43
 
30
- # A unique identity for the security
31
- attr_accessor :id
44
+ attr_accessor :exchange
32
45
 
33
46
  # Attribute mapping from ruby-style variable name to JSON key.
34
47
  def self.attribute_map
35
48
  {
36
- :'type' => :'type',
49
+ :'remote_id' => :'remote_id',
50
+ :'symbol' => :'symbol',
51
+ :'isin' => :'isin',
52
+ :'sedol' => :'sedol',
37
53
  :'cusip' => :'cusip',
54
+ :'close_price' => :'close_price',
55
+ :'currency' => :'currency',
38
56
  :'name' => :'name',
39
- :'ticker_symbol' => :'ticker_symbol',
40
- :'id' => :'id'
57
+ :'type' => :'type',
58
+ :'exchange' => :'exchange'
41
59
  }
42
60
  end
43
61
 
@@ -49,11 +67,16 @@ module FuseClient
49
67
  # Attribute type mapping.
50
68
  def self.openapi_types
51
69
  {
52
- :'type' => :'String',
70
+ :'remote_id' => :'String',
71
+ :'symbol' => :'String',
72
+ :'isin' => :'String',
73
+ :'sedol' => :'String',
53
74
  :'cusip' => :'String',
75
+ :'close_price' => :'Float',
76
+ :'currency' => :'Currency',
54
77
  :'name' => :'String',
55
- :'ticker_symbol' => :'String',
56
- :'id' => :'String'
78
+ :'type' => :'String',
79
+ :'exchange' => :'FinancialConnectionsInvestmentSecurityExchange'
57
80
  }
58
81
  end
59
82
 
@@ -78,24 +101,44 @@ module FuseClient
78
101
  h[k.to_sym] = v
79
102
  }
80
103
 
81
- if attributes.key?(:'type')
82
- self.type = attributes[:'type']
104
+ if attributes.key?(:'remote_id')
105
+ self.remote_id = attributes[:'remote_id']
106
+ end
107
+
108
+ if attributes.key?(:'symbol')
109
+ self.symbol = attributes[:'symbol']
110
+ end
111
+
112
+ if attributes.key?(:'isin')
113
+ self.isin = attributes[:'isin']
114
+ end
115
+
116
+ if attributes.key?(:'sedol')
117
+ self.sedol = attributes[:'sedol']
83
118
  end
84
119
 
85
120
  if attributes.key?(:'cusip')
86
121
  self.cusip = attributes[:'cusip']
87
122
  end
88
123
 
124
+ if attributes.key?(:'close_price')
125
+ self.close_price = attributes[:'close_price']
126
+ end
127
+
128
+ if attributes.key?(:'currency')
129
+ self.currency = attributes[:'currency']
130
+ end
131
+
89
132
  if attributes.key?(:'name')
90
133
  self.name = attributes[:'name']
91
134
  end
92
135
 
93
- if attributes.key?(:'ticker_symbol')
94
- self.ticker_symbol = attributes[:'ticker_symbol']
136
+ if attributes.key?(:'type')
137
+ self.type = attributes[:'type']
95
138
  end
96
139
 
97
- if attributes.key?(:'id')
98
- self.id = attributes[:'id']
140
+ if attributes.key?(:'exchange')
141
+ self.exchange = attributes[:'exchange']
99
142
  end
100
143
  end
101
144
 
@@ -103,12 +146,32 @@ module FuseClient
103
146
  # @return Array for valid properties with the reasons
104
147
  def list_invalid_properties
105
148
  invalid_properties = Array.new
149
+ if @remote_id.nil?
150
+ invalid_properties.push('invalid value for "remote_id", remote_id cannot be nil.')
151
+ end
152
+
153
+ if @symbol.nil?
154
+ invalid_properties.push('invalid value for "symbol", symbol cannot be nil.')
155
+ end
156
+
157
+ if @close_price.nil?
158
+ invalid_properties.push('invalid value for "close_price", close_price cannot be nil.')
159
+ end
160
+
161
+ if @currency.nil?
162
+ invalid_properties.push('invalid value for "currency", currency cannot be nil.')
163
+ end
164
+
106
165
  invalid_properties
107
166
  end
108
167
 
109
168
  # Check to see if the all the properties in the model are valid
110
169
  # @return true if the model is valid
111
170
  def valid?
171
+ return false if @remote_id.nil?
172
+ return false if @symbol.nil?
173
+ return false if @close_price.nil?
174
+ return false if @currency.nil?
112
175
  true
113
176
  end
114
177
 
@@ -117,11 +180,16 @@ module FuseClient
117
180
  def ==(o)
118
181
  return true if self.equal?(o)
119
182
  self.class == o.class &&
120
- type == o.type &&
183
+ remote_id == o.remote_id &&
184
+ symbol == o.symbol &&
185
+ isin == o.isin &&
186
+ sedol == o.sedol &&
121
187
  cusip == o.cusip &&
188
+ close_price == o.close_price &&
189
+ currency == o.currency &&
122
190
  name == o.name &&
123
- ticker_symbol == o.ticker_symbol &&
124
- id == o.id
191
+ type == o.type &&
192
+ exchange == o.exchange
125
193
  end
126
194
 
127
195
  # @see the `==` method
@@ -133,7 +201,7 @@ module FuseClient
133
201
  # Calculates hash code according to all attributes.
134
202
  # @return [Integer] Hash code
135
203
  def hash
136
- [type, cusip, name, ticker_symbol, id].hash
204
+ [remote_id, symbol, isin, sedol, cusip, close_price, currency, name, type, exchange].hash
137
205
  end
138
206
 
139
207
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.3.0
9
+ OpenAPI Generator version: 6.4.0
10
10
 
11
11
  =end
12
12
 
@@ -14,13 +14,14 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FuseClient
17
- class TransactionCommonModel
18
- attr_accessor :data
17
+ class FinancialConnectionsInvestmentSecurityExchange
18
+ # The Market Identifier Code (MIC) associated with the specific financial market or exchange where the security is traded.
19
+ attr_accessor :mic_code
19
20
 
20
21
  # Attribute mapping from ruby-style variable name to JSON key.
21
22
  def self.attribute_map
22
23
  {
23
- :'data' => :'data'
24
+ :'mic_code' => :'mic_code'
24
25
  }
25
26
  end
26
27
 
@@ -32,7 +33,7 @@ module FuseClient
32
33
  # Attribute type mapping.
33
34
  def self.openapi_types
34
35
  {
35
- :'data' => :'Array<GetTransactionsResponseDataInner>'
36
+ :'mic_code' => :'String'
36
37
  }
37
38
  end
38
39
 
@@ -46,21 +47,19 @@ module FuseClient
46
47
  # @param [Hash] attributes Model attributes in the form of hash
47
48
  def initialize(attributes = {})
48
49
  if (!attributes.is_a?(Hash))
49
- fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::TransactionCommonModel` initialize method"
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::FinancialConnectionsInvestmentSecurityExchange` initialize method"
50
51
  end
51
52
 
52
53
  # check to see if the attribute exists and convert string to symbol for hash key
53
54
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
55
  if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::TransactionCommonModel`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::FinancialConnectionsInvestmentSecurityExchange`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
57
  end
57
58
  h[k.to_sym] = v
58
59
  }
59
60
 
60
- if attributes.key?(:'data')
61
- if (value = attributes[:'data']).is_a?(Array)
62
- self.data = value
63
- end
61
+ if attributes.key?(:'mic_code')
62
+ self.mic_code = attributes[:'mic_code']
64
63
  end
65
64
  end
66
65
 
@@ -82,7 +81,7 @@ module FuseClient
82
81
  def ==(o)
83
82
  return true if self.equal?(o)
84
83
  self.class == o.class &&
85
- data == o.data
84
+ mic_code == o.mic_code
86
85
  end
87
86
 
88
87
  # @see the `==` method
@@ -94,7 +93,7 @@ module FuseClient
94
93
  # Calculates hash code according to all attributes.
95
94
  # @return [Integer] Hash code
96
95
  def hash
97
- [data].hash
96
+ [mic_code].hash
98
97
  end
99
98
 
100
99
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.3.0
9
+ OpenAPI Generator version: 6.4.0
10
10
 
11
11
  =end
12
12
 
@@ -15,12 +15,52 @@ require 'time'
15
15
 
16
16
  module FuseClient
17
17
  class FinancialConnectionsInvestmentTransaction
18
- attr_accessor :data
18
+ # The remote ID of the Investment transaction
19
+ attr_accessor :remote_id
20
+
21
+ # Remote Account Id of the transaction, ie Plaid Account Id
22
+ attr_accessor :remote_account_id
23
+
24
+ # The name of the account associated with the investment transaction
25
+ attr_accessor :account_name
26
+
27
+ # The amount of the investment transaction
28
+ attr_accessor :amount
29
+
30
+ # A description of the investment transaction
31
+ attr_accessor :description
32
+
33
+ # The fees associated with the investment transaction
34
+ attr_accessor :fees
35
+
36
+ # The date and time of the investment transaction
37
+ attr_accessor :date
38
+
39
+ # The type of the investment transaction (e.g., 'buy', 'sell', 'dividend')
40
+ attr_accessor :type
41
+
42
+ # The number of units of the security involved in this transaction
43
+ attr_accessor :quantity
44
+
45
+ # The price of the security involved in this transaction
46
+ attr_accessor :price
47
+
48
+ attr_accessor :security
19
49
 
20
50
  # Attribute mapping from ruby-style variable name to JSON key.
21
51
  def self.attribute_map
22
52
  {
23
- :'data' => :'data'
53
+ :'remote_id' => :'remote_id',
54
+ :'remote_account_id' => :'remote_account_id',
55
+ :'account_name' => :'account_name',
56
+ :'amount' => :'amount',
57
+ :'description' => :'description',
58
+ :'fees' => :'fees',
59
+ :'date' => :'date',
60
+ :'type' => :'type',
61
+ :'quantity' => :'quantity',
62
+ :'price' => :'price',
63
+ :'security' => :'security'
24
64
  }
25
65
  end
26
66
 
@@ -32,7 +72,17 @@ module FuseClient
32
72
  # Attribute type mapping.
33
73
  def self.openapi_types
34
74
  {
35
- :'data' => :'Array<FinancialConnectionsInvestmentTransactionDataInner>'
75
+ :'remote_id' => :'String',
76
+ :'remote_account_id' => :'String',
77
+ :'account_name' => :'String',
78
+ :'amount' => :'Float',
79
+ :'description' => :'String',
80
+ :'fees' => :'Float',
81
+ :'date' => :'Time',
82
+ :'type' => :'String',
83
+ :'quantity' => :'Float',
84
+ :'price' => :'Float',
85
+ :'security' => :'FinancialConnectionsInvestmentSecurity'
36
86
  }
37
87
  end
38
88
 
@@ -57,10 +107,48 @@ module FuseClient
57
107
  h[k.to_sym] = v
58
108
  }
59
109
 
60
- if attributes.key?(:'data')
61
- if (value = attributes[:'data']).is_a?(Array)
62
- self.data = value
63
- end
110
+ if attributes.key?(:'remote_id')
111
+ self.remote_id = attributes[:'remote_id']
112
+ end
113
+
114
+ if attributes.key?(:'remote_account_id')
115
+ self.remote_account_id = attributes[:'remote_account_id']
116
+ end
117
+
118
+ if attributes.key?(:'account_name')
119
+ self.account_name = attributes[:'account_name']
120
+ end
121
+
122
+ if attributes.key?(:'amount')
123
+ self.amount = attributes[:'amount']
124
+ end
125
+
126
+ if attributes.key?(:'description')
127
+ self.description = attributes[:'description']
128
+ end
129
+
130
+ if attributes.key?(:'fees')
131
+ self.fees = attributes[:'fees']
132
+ end
133
+
134
+ if attributes.key?(:'date')
135
+ self.date = attributes[:'date']
136
+ end
137
+
138
+ if attributes.key?(:'type')
139
+ self.type = attributes[:'type']
140
+ end
141
+
142
+ if attributes.key?(:'quantity')
143
+ self.quantity = attributes[:'quantity']
144
+ end
145
+
146
+ if attributes.key?(:'price')
147
+ self.price = attributes[:'price']
148
+ end
149
+
150
+ if attributes.key?(:'security')
151
+ self.security = attributes[:'security']
64
152
  end
65
153
  end
66
154
 
@@ -68,12 +156,62 @@ module FuseClient
68
156
  # @return Array for valid properties with the reasons
69
157
  def list_invalid_properties
70
158
  invalid_properties = Array.new
159
+ if @remote_id.nil?
160
+ invalid_properties.push('invalid value for "remote_id", remote_id cannot be nil.')
161
+ end
162
+
163
+ if @remote_account_id.nil?
164
+ invalid_properties.push('invalid value for "remote_account_id", remote_account_id cannot be nil.')
165
+ end
166
+
167
+ if @amount.nil?
168
+ invalid_properties.push('invalid value for "amount", amount cannot be nil.')
169
+ end
170
+
171
+ if @description.nil?
172
+ invalid_properties.push('invalid value for "description", description cannot be nil.')
173
+ end
174
+
175
+ if @fees.nil?
176
+ invalid_properties.push('invalid value for "fees", fees cannot be nil.')
177
+ end
178
+
179
+ if @date.nil?
180
+ invalid_properties.push('invalid value for "date", date cannot be nil.')
181
+ end
182
+
183
+ if @type.nil?
184
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
185
+ end
186
+
187
+ if @quantity.nil?
188
+ invalid_properties.push('invalid value for "quantity", quantity cannot be nil.')
189
+ end
190
+
191
+ if @price.nil?
192
+ invalid_properties.push('invalid value for "price", price cannot be nil.')
193
+ end
194
+
195
+ if @security.nil?
196
+ invalid_properties.push('invalid value for "security", security cannot be nil.')
197
+ end
198
+
71
199
  invalid_properties
72
200
  end
73
201
 
74
202
  # Check to see if the all the properties in the model are valid
75
203
  # @return true if the model is valid
76
204
  def valid?
205
+ return false if @remote_id.nil?
206
+ return false if @remote_account_id.nil?
207
+ return false if @amount.nil?
208
+ return false if @description.nil?
209
+ return false if @fees.nil?
210
+ return false if @date.nil?
211
+ return false if @type.nil?
212
+ return false if @quantity.nil?
213
+ return false if @price.nil?
214
+ return false if @security.nil?
77
215
  true
78
216
  end
79
217
 
@@ -82,7 +220,17 @@ module FuseClient
82
220
  def ==(o)
83
221
  return true if self.equal?(o)
84
222
  self.class == o.class &&
85
- data == o.data
223
+ remote_id == o.remote_id &&
224
+ remote_account_id == o.remote_account_id &&
225
+ account_name == o.account_name &&
226
+ amount == o.amount &&
227
+ description == o.description &&
228
+ fees == o.fees &&
229
+ date == o.date &&
230
+ type == o.type &&
231
+ quantity == o.quantity &&
232
+ price == o.price &&
233
+ security == o.security
86
234
  end
87
235
 
88
236
  # @see the `==` method
@@ -94,7 +242,7 @@ module FuseClient
94
242
  # Calculates hash code according to all attributes.
95
243
  # @return [Integer] Hash code
96
244
  def hash
97
- [data].hash
245
+ [remote_id, remote_account_id, account_name, amount, description, fees, date, type, quantity, price, security].hash
98
246
  end
99
247
 
100
248
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.3.0
9
+ OpenAPI Generator version: 6.4.0
10
10
 
11
11
  =end
12
12
 
@@ -99,12 +99,32 @@ module FuseClient
99
99
  # @return Array for valid properties with the reasons
100
100
  def list_invalid_properties
101
101
  invalid_properties = Array.new
102
+ if @addresses.nil?
103
+ invalid_properties.push('invalid value for "addresses", addresses cannot be nil.')
104
+ end
105
+
106
+ if @emails.nil?
107
+ invalid_properties.push('invalid value for "emails", emails cannot be nil.')
108
+ end
109
+
110
+ if @names.nil?
111
+ invalid_properties.push('invalid value for "names", names cannot be nil.')
112
+ end
113
+
114
+ if @phone_numbers.nil?
115
+ invalid_properties.push('invalid value for "phone_numbers", phone_numbers cannot be nil.')
116
+ end
117
+
102
118
  invalid_properties
103
119
  end
104
120
 
105
121
  # Check to see if the all the properties in the model are valid
106
122
  # @return true if the model is valid
107
123
  def valid?
124
+ return false if @addresses.nil?
125
+ return false if @emails.nil?
126
+ return false if @names.nil?
127
+ return false if @phone_numbers.nil?
108
128
  true
109
129
  end
110
130
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.3.0
9
+ OpenAPI Generator version: 6.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.3.0
9
+ OpenAPI Generator version: 6.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.3.0
9
+ OpenAPI Generator version: 6.4.0
10
10
 
11
11
  =end
12
12
 
@@ -107,12 +107,17 @@ module FuseClient
107
107
  # @return Array for valid properties with the reasons
108
108
  def list_invalid_properties
109
109
  invalid_properties = Array.new
110
+ if @data.nil?
111
+ invalid_properties.push('invalid value for "data", data cannot be nil.')
112
+ end
113
+
110
114
  invalid_properties
111
115
  end
112
116
 
113
117
  # Check to see if the all the properties in the model are valid
114
118
  # @return true if the model is valid
115
119
  def valid?
120
+ return false if @data.nil?
116
121
  type_validator = EnumAttributeValidator.new('String', ["primary", "secondary", "other"])
117
122
  return false unless type_validator.valid?(@type)
118
123
  true
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.3.0
9
+ OpenAPI Generator version: 6.4.0
10
10
 
11
11
  =end
12
12
 
@@ -76,12 +76,17 @@ module FuseClient
76
76
  # @return Array for valid properties with the reasons
77
77
  def list_invalid_properties
78
78
  invalid_properties = Array.new
79
+ if @data.nil?
80
+ invalid_properties.push('invalid value for "data", data cannot be nil.')
81
+ end
82
+
79
83
  invalid_properties
80
84
  end
81
85
 
82
86
  # Check to see if the all the properties in the model are valid
83
87
  # @return true if the model is valid
84
88
  def valid?
89
+ return false if @data.nil?
85
90
  true
86
91
  end
87
92
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.3.0
9
+ OpenAPI Generator version: 6.4.0
10
10
 
11
11
  =end
12
12
 
@@ -107,12 +107,17 @@ module FuseClient
107
107
  # @return Array for valid properties with the reasons
108
108
  def list_invalid_properties
109
109
  invalid_properties = Array.new
110
+ if @data.nil?
111
+ invalid_properties.push('invalid value for "data", data cannot be nil.')
112
+ end
113
+
110
114
  invalid_properties
111
115
  end
112
116
 
113
117
  # Check to see if the all the properties in the model are valid
114
118
  # @return true if the model is valid
115
119
  def valid?
120
+ return false if @data.nil?
116
121
  type_validator = EnumAttributeValidator.new('String', ["home", "work", "mobile"])
117
122
  return false unless type_validator.valid?(@type)
118
123
  true