fuse_client 1.0.7 → 1.0.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (277) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +6 -5
  3. data/docs/AccountSubType.md +15 -0
  4. data/docs/AccountType.md +15 -0
  5. data/docs/CountryCode.md +15 -0
  6. data/docs/CreateLinkTokenRequest.md +0 -2
  7. data/docs/CreateLinkTokenResponse.md +2 -2
  8. data/docs/CreateSessionRequest.md +9 -1
  9. data/docs/CreateSessionResponse.md +3 -3
  10. data/docs/Currency.md +20 -0
  11. data/docs/DeleteFinancialConnectionResponse.md +22 -0
  12. data/docs/ExchangeFinancialConnectionsPublicTokenResponse.md +3 -3
  13. data/docs/FinancialConnectionData.md +2 -2
  14. data/docs/FinancialConnectionDetails.md +32 -0
  15. data/docs/FinancialConnectionDetailsMx.md +20 -0
  16. data/docs/FinancialConnectionDetailsPlaid.md +20 -0
  17. data/docs/FinancialConnectionDetailsTeller.md +20 -0
  18. data/docs/FinancialConnectionsAccount.md +8 -8
  19. data/docs/FinancialConnectionsAccountBalance.md +5 -3
  20. data/docs/FinancialConnectionsAccountCachedBalance.md +24 -0
  21. data/docs/FinancialConnectionsAccountDetails.md +2 -2
  22. data/docs/FinancialConnectionsAccountLiability.md +8 -8
  23. data/docs/FinancialConnectionsHolding.md +8 -8
  24. data/docs/FinancialConnectionsInvestmentSecurity.md +17 -7
  25. data/docs/FinancialConnectionsInvestmentSecurityExchange.md +18 -0
  26. data/docs/FinancialConnectionsInvestmentTransaction.md +22 -2
  27. data/docs/FinancialConnectionsOwner.md +4 -4
  28. data/docs/FinancialConnectionsOwnerEmailsInner.md +1 -1
  29. data/docs/FinancialConnectionsOwnerNamesInner.md +1 -1
  30. data/docs/FinancialConnectionsOwnerPhoneNumbersInner.md +1 -1
  31. data/docs/FinancialInstitution.md +3 -1
  32. data/docs/FuseApi.md +189 -185
  33. data/docs/FuseApiErrorData.md +1 -1
  34. data/docs/FuseApiWarningData.md +1 -1
  35. data/docs/GetEntityResponse.md +4 -2
  36. data/docs/GetFinancialConnectionResponse.md +20 -0
  37. data/docs/GetFinancialConnectionsAccountDetailsResponse.md +3 -3
  38. data/docs/GetFinancialConnectionsAccountsResponse.md +3 -3
  39. data/docs/GetFinancialConnectionsBalanceRequest.md +3 -1
  40. data/docs/GetFinancialConnectionsBalanceRequestOptions.md +18 -0
  41. data/docs/{GetFinancialConnectionsAccountBalanceResponse.md → GetFinancialConnectionsBalanceResponse.md} +4 -4
  42. data/docs/GetFinancialConnectionsOwnersResponse.md +1 -1
  43. data/docs/GetFinancialConnectionsOwnersResponseAccountsInner.md +3 -3
  44. data/docs/GetFinancialConnectionsTransactionsRequest.md +26 -0
  45. data/docs/GetFinancialConnectionsTransactionsResponse.md +22 -0
  46. data/docs/GetFinancialInstitutionResponse.md +2 -2
  47. data/docs/GetInvestmentHoldingsRequest.md +3 -3
  48. data/docs/GetInvestmentHoldingsRequestOptions.md +18 -0
  49. data/docs/GetInvestmentHoldingsResponse.md +3 -5
  50. data/docs/GetInvestmentTransactionsRequest.md +11 -1
  51. data/docs/GetInvestmentTransactionsRequestOptions.md +18 -0
  52. data/docs/GetInvestmentTransactionsResponse.md +3 -5
  53. data/docs/MigrateFinancialConnectionsAggregatorConnectionData.md +20 -0
  54. data/docs/MigrateFinancialConnectionsAggregatorConnectionDataMx.md +20 -0
  55. data/docs/MigrateFinancialConnectionsAggregatorConnectionDataPlaid.md +18 -0
  56. data/docs/MigrateFinancialConnectionsTokenRequest.md +24 -0
  57. data/docs/MigrateFinancialConnectionsTokenRequestEntity.md +18 -0
  58. data/docs/MigrateFinancialConnectionsTokenResponse.md +24 -0
  59. data/docs/SyncTransactionsResponse.md +2 -2
  60. data/docs/{GetTransactionsResponseDataInner.md → Transaction.md} +16 -14
  61. data/docs/{GetTransactionsResponseDataInnerMerchant.md → TransactionMerchant.md} +2 -2
  62. data/docs/WebhookEvent.md +28 -0
  63. data/docs/WebhookSource.md +15 -0
  64. data/docs/WebhookType.md +15 -0
  65. data/fuse_client.gemspec +1 -1
  66. data/lib/fuse_client/api/fuse_api.rb +181 -197
  67. data/lib/fuse_client/api_client.rb +1 -1
  68. data/lib/fuse_client/api_error.rb +1 -1
  69. data/lib/fuse_client/configuration.rb +39 -18
  70. data/lib/fuse_client/models/account_subtype.rb +178 -0
  71. data/lib/fuse_client/models/account_type.rb +45 -0
  72. data/lib/fuse_client/models/aggregator.rb +3 -3
  73. data/lib/fuse_client/models/country_code.rb +40 -0
  74. data/lib/fuse_client/models/create_asset_report_request.rb +1 -1
  75. data/lib/fuse_client/models/create_asset_report_response.rb +1 -1
  76. data/lib/fuse_client/models/create_entity_request.rb +1 -1
  77. data/lib/fuse_client/models/create_entity_response.rb +1 -1
  78. data/lib/fuse_client/models/create_link_token_request.rb +2 -12
  79. data/lib/fuse_client/models/create_link_token_request_mx.rb +1 -1
  80. data/lib/fuse_client/models/create_link_token_request_plaid.rb +1 -1
  81. data/lib/fuse_client/models/create_link_token_response.rb +11 -1
  82. data/lib/fuse_client/models/create_session_request.rb +46 -5
  83. data/lib/fuse_client/models/create_session_response.rb +16 -1
  84. data/lib/fuse_client/models/currency.rb +235 -0
  85. data/lib/fuse_client/models/delete_financial_connection_response.rb +255 -0
  86. data/lib/fuse_client/models/entity.rb +1 -1
  87. data/lib/fuse_client/models/exchange_financial_connections_public_token_request.rb +1 -1
  88. data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +16 -1
  89. data/lib/fuse_client/models/financial_connection_data.rb +11 -1
  90. data/lib/fuse_client/models/financial_connection_details.rb +345 -0
  91. data/lib/fuse_client/models/financial_connection_details_mx.rb +241 -0
  92. data/lib/fuse_client/models/{get_transactions_request.rb → financial_connection_details_plaid.rb} +19 -23
  93. data/lib/fuse_client/models/financial_connection_details_teller.rb +241 -0
  94. data/lib/fuse_client/models/financial_connections_account.rb +59 -14
  95. data/lib/fuse_client/models/financial_connections_account_balance.rb +21 -6
  96. data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +250 -0
  97. data/lib/fuse_client/models/financial_connections_account_details.rb +11 -1
  98. data/lib/fuse_client/models/financial_connections_account_details_ach.rb +1 -1
  99. data/lib/fuse_client/models/financial_connections_account_institution.rb +1 -1
  100. data/lib/fuse_client/models/financial_connections_account_liability.rb +59 -14
  101. data/lib/fuse_client/models/financial_connections_account_liability_all_of.rb +1 -1
  102. data/lib/fuse_client/models/financial_connections_account_liability_all_of_aprs.rb +1 -1
  103. data/lib/fuse_client/models/financial_connections_holding.rb +52 -23
  104. data/lib/fuse_client/models/financial_connections_investment_security.rb +92 -24
  105. data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +220 -0
  106. data/lib/fuse_client/models/financial_connections_investment_transaction.rb +158 -10
  107. data/lib/fuse_client/models/financial_connections_owner.rb +21 -1
  108. data/lib/fuse_client/models/financial_connections_owner_addresses_inner.rb +1 -1
  109. data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +1 -1
  110. data/lib/fuse_client/models/financial_connections_owner_emails_inner.rb +6 -1
  111. data/lib/fuse_client/models/financial_connections_owner_names_inner.rb +6 -1
  112. data/lib/fuse_client/models/financial_connections_owner_phone_numbers_inner.rb +6 -1
  113. data/lib/fuse_client/models/financial_institution.rb +22 -5
  114. data/lib/fuse_client/models/financial_institution_logo.rb +1 -1
  115. data/lib/fuse_client/models/fuse_api_error.rb +25 -1
  116. data/lib/fuse_client/models/fuse_api_error_data.rb +24 -2
  117. data/lib/fuse_client/models/fuse_api_warning.rb +1 -1
  118. data/lib/fuse_client/models/fuse_api_warning_data.rb +24 -2
  119. data/lib/fuse_client/models/fuse_api_warning_data_warnings_inner.rb +1 -1
  120. data/lib/fuse_client/models/get_asset_report_request.rb +1 -1
  121. data/lib/fuse_client/models/get_asset_report_response.rb +1 -1
  122. data/lib/fuse_client/models/get_asset_report_response_report.rb +1 -1
  123. data/lib/fuse_client/models/get_asset_report_response_report_accounts_inner.rb +1 -1
  124. data/lib/fuse_client/models/get_asset_report_response_report_accounts_inner_balances.rb +1 -1
  125. data/lib/fuse_client/models/get_asset_report_response_report_accounts_inner_historical_balances_inner.rb +1 -1
  126. data/lib/fuse_client/models/get_entity_response.rb +29 -2
  127. data/lib/fuse_client/models/{get_transactions_response.rb → get_financial_connection_response.rb} +21 -33
  128. data/lib/fuse_client/models/get_financial_connections_account_details_request.rb +1 -1
  129. data/lib/fuse_client/models/get_financial_connections_account_details_response.rb +16 -1
  130. data/lib/fuse_client/models/get_financial_connections_accounts_request.rb +1 -1
  131. data/lib/fuse_client/models/get_financial_connections_accounts_response.rb +16 -1
  132. data/lib/fuse_client/models/get_financial_connections_balance_request.rb +14 -5
  133. data/lib/fuse_client/models/get_financial_connections_balance_request_options.rb +222 -0
  134. data/lib/fuse_client/models/{get_financial_connections_account_balance_response.rb → get_financial_connections_balance_response.rb} +14 -4
  135. data/lib/fuse_client/models/get_financial_connections_owners_request.rb +1 -1
  136. data/lib/fuse_client/models/get_financial_connections_owners_response.rb +6 -1
  137. data/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +16 -1
  138. data/lib/fuse_client/models/get_financial_connections_transactions_request.rb +334 -0
  139. data/lib/fuse_client/models/get_financial_connections_transactions_response.rb +256 -0
  140. data/lib/fuse_client/models/get_financial_institution_response.rb +11 -1
  141. data/lib/fuse_client/models/get_investment_holdings_request.rb +9 -10
  142. data/lib/fuse_client/models/get_investment_holdings_request_options.rb +222 -0
  143. data/lib/fuse_client/models/get_investment_holdings_response.rb +18 -14
  144. data/lib/fuse_client/models/get_investment_transactions_request.rb +95 -5
  145. data/lib/fuse_client/models/get_investment_transactions_request_options.rb +222 -0
  146. data/lib/fuse_client/models/get_investment_transactions_response.rb +18 -14
  147. data/lib/fuse_client/models/get_liabilities_request.rb +1 -1
  148. data/lib/fuse_client/models/get_liabilities_response.rb +1 -1
  149. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data.rb +229 -0
  150. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_mx.rb +236 -0
  151. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_plaid.rb +226 -0
  152. data/lib/fuse_client/models/{financial_connections_investment_account.rb → migrate_financial_connections_token_request.rb} +86 -70
  153. data/lib/fuse_client/models/{transaction_common_model.rb → migrate_financial_connections_token_request_entity.rb} +12 -13
  154. data/lib/fuse_client/models/migrate_financial_connections_token_response.rb +264 -0
  155. data/lib/fuse_client/models/product.rb +3 -3
  156. data/lib/fuse_client/models/refresh_asset_report_request.rb +1 -1
  157. data/lib/fuse_client/models/sync_financial_connections_data_response.rb +1 -1
  158. data/lib/fuse_client/models/sync_transactions_request.rb +1 -1
  159. data/lib/fuse_client/models/sync_transactions_response.rb +3 -3
  160. data/lib/fuse_client/models/sync_transactions_response_removed_inner.rb +1 -1
  161. data/lib/fuse_client/models/{get_transactions_response_data_inner.rb → transaction.rb} +110 -21
  162. data/lib/fuse_client/models/{get_transactions_response_data_inner_merchant.rb → transaction_merchant.rb} +4 -4
  163. data/lib/fuse_client/models/update_entity_request.rb +1 -1
  164. data/lib/fuse_client/models/update_entity_response.rb +1 -1
  165. data/lib/fuse_client/models/{financial_connections_investment_transaction_data_inner.rb → webhook_event.rb} +94 -63
  166. data/lib/fuse_client/models/webhook_source.rb +43 -0
  167. data/lib/fuse_client/models/webhook_type.rb +42 -0
  168. data/lib/fuse_client/version.rb +2 -2
  169. data/lib/fuse_client.rb +30 -9
  170. data/spec/api/fuse_api_spec.rb +40 -39
  171. data/spec/api_client_spec.rb +3 -1
  172. data/spec/configuration_spec.rb +1 -1
  173. data/spec/models/account_subtype_spec.rb +28 -0
  174. data/spec/models/account_type_spec.rb +28 -0
  175. data/spec/models/aggregator_spec.rb +1 -1
  176. data/spec/models/country_code_spec.rb +28 -0
  177. data/spec/models/create_asset_report_request_spec.rb +1 -1
  178. data/spec/models/create_asset_report_response_spec.rb +1 -1
  179. data/spec/models/create_entity_request_spec.rb +1 -1
  180. data/spec/models/create_entity_response_spec.rb +1 -1
  181. data/spec/models/create_link_token_request_mx_spec.rb +1 -1
  182. data/spec/models/create_link_token_request_plaid_spec.rb +1 -1
  183. data/spec/models/create_link_token_request_spec.rb +1 -7
  184. data/spec/models/create_link_token_response_spec.rb +1 -1
  185. data/spec/models/create_session_request_spec.rb +25 -1
  186. data/spec/models/create_session_response_spec.rb +1 -1
  187. data/spec/models/{get_transactions_response_data_inner_merchant_spec.rb → currency_spec.rb} +13 -7
  188. data/spec/models/{get_transactions_request_spec.rb → delete_financial_connection_response_spec.rb} +10 -10
  189. data/spec/models/entity_spec.rb +1 -1
  190. data/spec/models/exchange_financial_connections_public_token_request_spec.rb +1 -1
  191. data/spec/models/exchange_financial_connections_public_token_response_spec.rb +1 -1
  192. data/spec/models/financial_connection_data_spec.rb +1 -1
  193. data/spec/models/financial_connection_details_mx_spec.rb +40 -0
  194. data/spec/models/financial_connection_details_plaid_spec.rb +40 -0
  195. data/spec/models/{financial_connections_investment_transaction_data_inner_spec.rb → financial_connection_details_spec.rb} +18 -14
  196. data/spec/models/financial_connection_details_teller_spec.rb +40 -0
  197. data/spec/models/financial_connections_account_balance_spec.rb +7 -1
  198. data/spec/models/financial_connections_account_cached_balance_spec.rb +52 -0
  199. data/spec/models/financial_connections_account_details_ach_spec.rb +1 -1
  200. data/spec/models/financial_connections_account_details_spec.rb +1 -1
  201. data/spec/models/financial_connections_account_institution_spec.rb +1 -1
  202. data/spec/models/financial_connections_account_liability_all_of_aprs_spec.rb +1 -1
  203. data/spec/models/financial_connections_account_liability_all_of_spec.rb +1 -1
  204. data/spec/models/financial_connections_account_liability_spec.rb +2 -2
  205. data/spec/models/financial_connections_account_spec.rb +2 -2
  206. data/spec/models/financial_connections_holding_spec.rb +4 -4
  207. data/spec/models/financial_connections_investment_security_exchange_spec.rb +34 -0
  208. data/spec/models/financial_connections_investment_security_spec.rb +34 -4
  209. data/spec/models/financial_connections_investment_transaction_spec.rb +62 -2
  210. data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +1 -1
  211. data/spec/models/financial_connections_owner_addresses_inner_spec.rb +1 -1
  212. data/spec/models/financial_connections_owner_emails_inner_spec.rb +1 -1
  213. data/spec/models/financial_connections_owner_names_inner_spec.rb +1 -1
  214. data/spec/models/financial_connections_owner_phone_numbers_inner_spec.rb +1 -1
  215. data/spec/models/financial_connections_owner_spec.rb +1 -1
  216. data/spec/models/financial_institution_logo_spec.rb +1 -1
  217. data/spec/models/financial_institution_spec.rb +7 -1
  218. data/spec/models/fuse_api_error_data_spec.rb +1 -1
  219. data/spec/models/fuse_api_error_spec.rb +9 -1
  220. data/spec/models/fuse_api_warning_data_spec.rb +1 -1
  221. data/spec/models/fuse_api_warning_data_warnings_inner_spec.rb +1 -1
  222. data/spec/models/fuse_api_warning_spec.rb +1 -1
  223. data/spec/models/get_asset_report_request_spec.rb +1 -1
  224. data/spec/models/get_asset_report_response_report_accounts_inner_balances_spec.rb +1 -1
  225. data/spec/models/get_asset_report_response_report_accounts_inner_historical_balances_inner_spec.rb +1 -1
  226. data/spec/models/get_asset_report_response_report_accounts_inner_spec.rb +1 -1
  227. data/spec/models/get_asset_report_response_report_spec.rb +1 -1
  228. data/spec/models/get_asset_report_response_spec.rb +1 -1
  229. data/spec/models/get_entity_response_spec.rb +7 -1
  230. data/spec/models/get_financial_connection_response_spec.rb +40 -0
  231. data/spec/models/get_financial_connections_account_details_request_spec.rb +1 -1
  232. data/spec/models/get_financial_connections_account_details_response_spec.rb +1 -1
  233. data/spec/models/get_financial_connections_accounts_request_spec.rb +1 -1
  234. data/spec/models/get_financial_connections_accounts_response_spec.rb +1 -1
  235. data/spec/models/get_financial_connections_balance_request_options_spec.rb +34 -0
  236. data/spec/models/get_financial_connections_balance_request_spec.rb +7 -1
  237. data/spec/models/{get_financial_connections_account_balance_response_spec.rb → get_financial_connections_balance_response_spec.rb} +7 -7
  238. data/spec/models/get_financial_connections_owners_request_spec.rb +1 -1
  239. data/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +1 -1
  240. data/spec/models/get_financial_connections_owners_response_spec.rb +1 -1
  241. data/spec/models/get_financial_connections_transactions_request_spec.rb +58 -0
  242. data/spec/models/get_financial_connections_transactions_response_spec.rb +46 -0
  243. data/spec/models/get_financial_institution_response_spec.rb +1 -1
  244. data/spec/models/get_investment_holdings_request_options_spec.rb +34 -0
  245. data/spec/models/get_investment_holdings_request_spec.rb +2 -2
  246. data/spec/models/get_investment_holdings_response_spec.rb +1 -7
  247. data/spec/models/get_investment_transactions_request_options_spec.rb +34 -0
  248. data/spec/models/get_investment_transactions_request_spec.rb +31 -1
  249. data/spec/models/get_investment_transactions_response_spec.rb +1 -7
  250. data/spec/models/get_liabilities_request_spec.rb +1 -1
  251. data/spec/models/get_liabilities_response_spec.rb +1 -1
  252. data/spec/models/migrate_financial_connections_aggregator_connection_data_mx_spec.rb +40 -0
  253. data/spec/models/migrate_financial_connections_aggregator_connection_data_plaid_spec.rb +34 -0
  254. data/spec/models/migrate_financial_connections_aggregator_connection_data_spec.rb +40 -0
  255. data/spec/models/migrate_financial_connections_token_request_entity_spec.rb +34 -0
  256. data/spec/models/migrate_financial_connections_token_request_spec.rb +56 -0
  257. data/spec/models/{get_transactions_response_spec.rb → migrate_financial_connections_token_response_spec.rb} +10 -10
  258. data/spec/models/product_spec.rb +1 -1
  259. data/spec/models/refresh_asset_report_request_spec.rb +1 -1
  260. data/spec/models/sync_financial_connections_data_response_spec.rb +1 -1
  261. data/spec/models/sync_transactions_request_spec.rb +1 -1
  262. data/spec/models/sync_transactions_response_removed_inner_spec.rb +1 -1
  263. data/spec/models/sync_transactions_response_spec.rb +1 -1
  264. data/spec/models/{transaction_common_model_spec.rb → transaction_merchant_spec.rb} +8 -8
  265. data/spec/models/{get_transactions_response_data_inner_spec.rb → transaction_spec.rb} +23 -13
  266. data/spec/models/update_entity_request_spec.rb +1 -1
  267. data/spec/models/update_entity_response_spec.rb +1 -1
  268. data/spec/models/{financial_connections_investment_account_spec.rb → webhook_event_spec.rb} +17 -25
  269. data/spec/models/webhook_source_spec.rb +28 -0
  270. data/spec/models/webhook_type_spec.rb +28 -0
  271. data/spec/spec_helper.rb +1 -1
  272. metadata +118 -34
  273. data/docs/FinancialConnectionsInvestmentAccount.md +0 -32
  274. data/docs/FinancialConnectionsInvestmentTransactionDataInner.md +0 -32
  275. data/docs/GetTransactionsRequest.md +0 -22
  276. data/docs/GetTransactionsResponse.md +0 -24
  277. 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
@@ -0,0 +1,220 @@
1
+ =begin
2
+ #Fuse
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.4.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FuseClient
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
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'mic_code' => :'mic_code'
25
+ }
26
+ end
27
+
28
+ # Returns all the JSON keys this model knows about
29
+ def self.acceptable_attributes
30
+ attribute_map.values
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.openapi_types
35
+ {
36
+ :'mic_code' => :'String'
37
+ }
38
+ end
39
+
40
+ # List of attributes with nullable: true
41
+ def self.openapi_nullable
42
+ Set.new([
43
+ ])
44
+ end
45
+
46
+ # Initializes the object
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ def initialize(attributes = {})
49
+ if (!attributes.is_a?(Hash))
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::FinancialConnectionsInvestmentSecurityExchange` initialize method"
51
+ end
52
+
53
+ # check to see if the attribute exists and convert string to symbol for hash key
54
+ attributes = attributes.each_with_object({}) { |(k, v), h|
55
+ if (!self.class.attribute_map.key?(k.to_sym))
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
57
+ end
58
+ h[k.to_sym] = v
59
+ }
60
+
61
+ if attributes.key?(:'mic_code')
62
+ self.mic_code = attributes[:'mic_code']
63
+ end
64
+ end
65
+
66
+ # Show invalid properties with the reasons. Usually used together with valid?
67
+ # @return Array for valid properties with the reasons
68
+ def list_invalid_properties
69
+ invalid_properties = Array.new
70
+ invalid_properties
71
+ end
72
+
73
+ # Check to see if the all the properties in the model are valid
74
+ # @return true if the model is valid
75
+ def valid?
76
+ true
77
+ end
78
+
79
+ # Checks equality by comparing each attribute.
80
+ # @param [Object] Object to be compared
81
+ def ==(o)
82
+ return true if self.equal?(o)
83
+ self.class == o.class &&
84
+ mic_code == o.mic_code
85
+ end
86
+
87
+ # @see the `==` method
88
+ # @param [Object] Object to be compared
89
+ def eql?(o)
90
+ self == o
91
+ end
92
+
93
+ # Calculates hash code according to all attributes.
94
+ # @return [Integer] Hash code
95
+ def hash
96
+ [mic_code].hash
97
+ end
98
+
99
+ # Builds the object from hash
100
+ # @param [Hash] attributes Model attributes in the form of hash
101
+ # @return [Object] Returns the model itself
102
+ def self.build_from_hash(attributes)
103
+ new.build_from_hash(attributes)
104
+ end
105
+
106
+ # Builds the object from hash
107
+ # @param [Hash] attributes Model attributes in the form of hash
108
+ # @return [Object] Returns the model itself
109
+ def build_from_hash(attributes)
110
+ return nil unless attributes.is_a?(Hash)
111
+ attributes = attributes.transform_keys(&:to_sym)
112
+ self.class.openapi_types.each_pair do |key, type|
113
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
114
+ self.send("#{key}=", nil)
115
+ elsif type =~ /\AArray<(.*)>/i
116
+ # check to ensure the input is an array given that the attribute
117
+ # is documented as an array but the input is not
118
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
119
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
120
+ end
121
+ elsif !attributes[self.class.attribute_map[key]].nil?
122
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
123
+ end
124
+ end
125
+
126
+ self
127
+ end
128
+
129
+ # Deserializes the data based on type
130
+ # @param string type Data type
131
+ # @param string value Value to be deserialized
132
+ # @return [Object] Deserialized data
133
+ def _deserialize(type, value)
134
+ case type.to_sym
135
+ when :Time
136
+ Time.parse(value)
137
+ when :Date
138
+ Date.parse(value)
139
+ when :String
140
+ value.to_s
141
+ when :Integer
142
+ value.to_i
143
+ when :Float
144
+ value.to_f
145
+ when :Boolean
146
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
147
+ true
148
+ else
149
+ false
150
+ end
151
+ when :Object
152
+ # generic object (usually a Hash), return directly
153
+ value
154
+ when /\AArray<(?<inner_type>.+)>\z/
155
+ inner_type = Regexp.last_match[:inner_type]
156
+ value.map { |v| _deserialize(inner_type, v) }
157
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
158
+ k_type = Regexp.last_match[:k_type]
159
+ v_type = Regexp.last_match[:v_type]
160
+ {}.tap do |hash|
161
+ value.each do |k, v|
162
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
163
+ end
164
+ end
165
+ else # model
166
+ # models (e.g. Pet) or oneOf
167
+ klass = FuseClient.const_get(type)
168
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
169
+ end
170
+ end
171
+
172
+ # Returns the string representation of the object
173
+ # @return [String] String presentation of the object
174
+ def to_s
175
+ to_hash.to_s
176
+ end
177
+
178
+ # to_body is an alias to to_hash (backward compatibility)
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_body
181
+ to_hash
182
+ end
183
+
184
+ # Returns the object in the form of hash
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_hash
187
+ hash = {}
188
+ self.class.attribute_map.each_pair do |attr, param|
189
+ value = self.send(attr)
190
+ if value.nil?
191
+ is_nullable = self.class.openapi_nullable.include?(attr)
192
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
193
+ end
194
+
195
+ hash[param] = _to_hash(value)
196
+ end
197
+ hash
198
+ end
199
+
200
+ # Outputs non-array value in the form of hash
201
+ # For object, use to_hash. Otherwise, just return the value
202
+ # @param [Object] value Any valid value
203
+ # @return [Hash] Returns the value in the form of hash
204
+ def _to_hash(value)
205
+ if value.is_a?(Array)
206
+ value.compact.map { |v| _to_hash(v) }
207
+ elsif value.is_a?(Hash)
208
+ {}.tap do |hash|
209
+ value.each { |k, v| hash[k] = _to_hash(v) }
210
+ end
211
+ elsif value.respond_to? :to_hash
212
+ value.to_hash
213
+ else
214
+ value
215
+ end
216
+ end
217
+
218
+ end
219
+
220
+ end
@@ -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