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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91a66b4e8ff0e1a024e8d5db8d2a77802b29bf9487a470fcdd2fb5dbe1010332
4
- data.tar.gz: c8b28e455bdfc96d02f7f56d8374d4c11c5710e09eedd82aca08a9c6b24edffb
3
+ metadata.gz: b2c9207b8ab31a2ee25afa15ef60282765b154bda1d9f066028fc16c0f55b371
4
+ data.tar.gz: 0e20c5e9848dc79bd9311cc26c5cc7e1155537d0784254452f374a0b4f582ae7
5
5
  SHA512:
6
- metadata.gz: be191bd09a5d0fd87c348b073c19bf4ab8f52d14b51c57be9a3b2e169df989ea658114999eacf071e3b8836282b586eeb86adb5958d35c47494621c36ad6eb78
7
- data.tar.gz: ce2f4abee919ae6a45fe25fc61f2e5e157e21bf688c22b4894d278ecc0f7afb3083cb755f3ad99101c5a08205baf3d0de3d210746fd156b2781342b00cd8b86c
6
+ metadata.gz: 7b83cd6d3f93021538a0d02e7b11561110a98c2248f8cd4dc63f9367e17a6cd52df956eede9c8d46d8d1bd560283dd7b390ffaf2fbe95720a9431a7e13c00eb5
7
+ data.tar.gz: 626ba9c000770719143d68258f42cfaf431f0471aa8ceb87a169f4a39c7029d83694176fdc0a35bd83223e98e2909af587c891167af1dafdcdad49a2be624f1e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fuse_client (1.0.6)
4
+ fuse_client (1.0.31)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -17,7 +17,7 @@ GEM
17
17
  jaro_winkler (1.5.4)
18
18
  method_source (1.0.0)
19
19
  parallel (1.22.1)
20
- parser (3.2.1.0)
20
+ parser (3.2.2.0)
21
21
  ast (~> 2.4.1)
22
22
  pry (0.14.2)
23
23
  coderay (~> 1.1)
@@ -38,7 +38,7 @@ GEM
38
38
  rspec-expectations (3.12.2)
39
39
  diff-lcs (>= 1.2.0, < 2.0)
40
40
  rspec-support (~> 3.12.0)
41
- rspec-mocks (3.12.3)
41
+ rspec-mocks (3.12.5)
42
42
  diff-lcs (>= 1.2.0, < 2.0)
43
43
  rspec-support (~> 3.12.0)
44
44
  rspec-support (3.12.0)
@@ -50,13 +50,14 @@ GEM
50
50
  rainbow (>= 2.2.2, < 4.0)
51
51
  ruby-progressbar (~> 1.7)
52
52
  unicode-display_width (>= 1.4.0, < 1.6)
53
- ruby-progressbar (1.11.0)
53
+ ruby-progressbar (1.13.0)
54
54
  stringio (3.0.5)
55
55
  typhoeus (1.4.0)
56
56
  ethon (>= 0.9.0)
57
57
  unicode-display_width (1.5.0)
58
58
 
59
59
  PLATFORMS
60
+ arm64-darwin-21
60
61
  x86_64-darwin-21
61
62
 
62
63
  DEPENDENCIES
@@ -67,4 +68,4 @@ DEPENDENCIES
67
68
  rubocop (~> 0.66.0)
68
69
 
69
70
  BUNDLED WITH
70
- 2.4.6
71
+ 2.4.10
data/README.md CHANGED
@@ -1 +1,82 @@
1
- # fuse-ruby
1
+ # fuse-ruby
2
+
3
+ ### Add to gem file
4
+
5
+ ```ruby
6
+ gem 'fuse_client', "~> 1.0.6"
7
+ ```
8
+
9
+ ### Setup fuse client
10
+
11
+ ```ruby
12
+ require 'fuse_client'
13
+
14
+ class FuseService
15
+ attr_reader :client, :auth_names
16
+
17
+ def initialize()
18
+ # Setup authorization
19
+ FuseClient.configure do |config|
20
+ config.host = ENV['FUSE_BASE_PATH']
21
+ config.server_index = nil
22
+ config.api_key['fuseApiKey'] = ENV['FUSE_API_KEY']
23
+ config.api_key['fuseClientId'] = ENV['FUSE_CLIENT_ID']
24
+ config.api_key['plaidClientId'] = ENV['PLAID_CLIENT_ID']
25
+ config.api_key['plaidSecret'] = ENV['PLAID_SECRET']
26
+ config.api_key['mxClientId'] = ENV['MX_CLIENT_ID']
27
+ config.api_key['mxApiKey'] = ENV['MX_API_KEY']
28
+ config.api_key['tellerApplicationId'] = ENV['TELLER_APPLICATION_ID']
29
+ config.api_key['tellerCertificate'] = ENV['TELLER_CERTIFICATE']
30
+ config.api_key['tellerPrivateKey'] = ENV['TELLER_PRIVATE_KEY']
31
+ end
32
+
33
+ @client = FuseClient::FuseApi.new
34
+
35
+ @auth_names = %w[fuseApiKey fuseClientId plaidClientId plaidSecret mxClientId mxApiKey tellerApplicationId tellerCertificate tellerPrivateKey]
36
+ end
37
+
38
+ def create_session
39
+ opts = {
40
+ create_session_request: FuseClient::CreateSessionRequest.new(
41
+ supported_financial_institution_aggregators: %w[plaid teller mx],
42
+ products: ['account_details']
43
+ )
44
+ }
45
+ client.create_session(populate_opts(opts))
46
+ end
47
+
48
+ def create_link_token(session_client_secret, institution_id)
49
+ opts = {
50
+ create_link_token_request: FuseClient::CreateLinkTokenRequest.new(
51
+ entity: {
52
+ id: 'my entity id'
53
+ },
54
+ session_client_secret: session_client_secret,
55
+ client_name: 'My client name',
56
+ institution_id: institution_id
57
+ )
58
+ }
59
+
60
+ client.create_link_token(populate_opts(opts))
61
+ end
62
+
63
+ def exchange_public_token(public_token)
64
+ opts = {
65
+ exchange_financial_connections_public_token_request: FuseClient::ExchangeFinancialConnectionsPublicTokenRequest.new(
66
+ public_token:
67
+ public_token
68
+ )
69
+ }
70
+ client.exchange_financial_connections_public_token(populate_opts(opts))
71
+ end
72
+
73
+ private
74
+
75
+ def populate_opts(opts = {})
76
+ opts.merge(
77
+ debug_auth_names: auth_names
78
+ )
79
+ end
80
+
81
+ end
82
+ ```
@@ -0,0 +1,15 @@
1
+ # FuseClient::AccountSubtype
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'fuse_client'
12
+
13
+ instance = FuseClient::AccountSubtype.new()
14
+ ```
15
+
@@ -0,0 +1,15 @@
1
+ # FuseClient::AccountType
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'fuse_client'
12
+
13
+ instance = FuseClient::AccountType.new()
14
+ ```
15
+
@@ -0,0 +1,15 @@
1
+ # FuseClient::CountryCode
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'fuse_client'
12
+
13
+ instance = FuseClient::CountryCode.new()
14
+ ```
15
+
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **asset_report_token** | **String** | A token that can be provided to endpoints such as /asset_report or /asset_report/pdf to fetch an Asset Report. | [optional] |
8
8
  | **asset_report_id** | **String** | A unique ID identifying an Asset Report. | [optional] |
9
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
9
10
 
10
11
  ## Example
11
12
 
@@ -14,7 +15,8 @@ require 'fuse_client'
14
15
 
15
16
  instance = FuseClient::CreateAssetReportResponse.new(
16
17
  asset_report_token: null,
17
- asset_report_id: null
18
+ asset_report_id: null,
19
+ request_id: null
18
20
  )
19
21
  ```
20
22
 
@@ -8,6 +8,7 @@
8
8
  | **email** | **String** | Email of the entity | [optional] |
9
9
  | **aggregators** | [**Array&lt;Aggregator&gt;**](Aggregator.md) | These will force the user to connect through all of these aggregators | [optional] |
10
10
  | **institution_ids** | **Array&lt;String&gt;** | | [optional] |
11
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
11
12
 
12
13
  ## Example
13
14
 
@@ -18,7 +19,8 @@ instance = FuseClient::CreateEntityResponse.new(
18
19
  id: null,
19
20
  email: null,
20
21
  aggregators: null,
21
- institution_ids: null
22
+ institution_ids: null,
23
+ request_id: null
22
24
  )
23
25
  ```
24
26
 
@@ -6,7 +6,6 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **institution_id** | **String** | An id that is unique for an institution. | |
8
8
  | **entity** | [**Entity**](Entity.md) | | |
9
- | **reconnection_url** | **String** | This field is used to provide the user with a link to reconnect their financial account. It may be included in an automated email sent by Fuse to the entity&#39;s registered email address. It&#39;s important to note that the reconnection_url should be a valid URL and can only be used once to reconnect the disconnected account. | [optional] |
10
9
  | **client_name** | **String** | The name of your application. | |
11
10
  | **session_client_secret** | **String** | The session client secret created from the &#39;Create session client secret&#39; endpoint | |
12
11
  | **mx** | [**CreateLinkTokenRequestMx**](CreateLinkTokenRequestMx.md) | | [optional] |
@@ -20,7 +19,6 @@ require 'fuse_client'
20
19
  instance = FuseClient::CreateLinkTokenRequest.new(
21
20
  institution_id: null,
22
21
  entity: null,
23
- reconnection_url: null,
24
22
  client_name: null,
25
23
  session_client_secret: null,
26
24
  mx: null,
@@ -4,8 +4,8 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **link_token** | **String** | Token needed by the frontend sdk to initiate the connection | [optional] |
8
- | **request_id** | **String** | Used for debugging purposes | [optional] |
7
+ | **link_token** | **String** | Token needed by the frontend sdk to initiate the connection | |
8
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | |
9
9
 
10
10
  ## Example
11
11
 
@@ -6,6 +6,10 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **supported_financial_institution_aggregators** | [**Array&lt;Aggregator&gt;**](Aggregator.md) | | [optional] |
8
8
  | **products** | [**Array&lt;Product&gt;**](Product.md) | List of products that you would like the institutions to support | [optional] |
9
+ | **country_codes** | [**Array&lt;CountryCode&gt;**](CountryCode.md) | List of country codes that you would like the institutions to support | [optional] |
10
+ | **entity** | [**Entity**](Entity.md) | | [optional] |
11
+ | **access_token** | **String** | The fuse access token for an existing account integration. This will perform the process to reconnect an existing disconnected account. | [optional] |
12
+ | **is_web_view** | **Boolean** | True if the fuse sdk is using a web view. Defaults to true. | [optional] |
9
13
 
10
14
  ## Example
11
15
 
@@ -14,7 +18,11 @@ require 'fuse_client'
14
18
 
15
19
  instance = FuseClient::CreateSessionRequest.new(
16
20
  supported_financial_institution_aggregators: null,
17
- products: null
21
+ products: null,
22
+ country_codes: null,
23
+ entity: null,
24
+ access_token: null,
25
+ is_web_view: null
18
26
  )
19
27
  ```
20
28
 
@@ -4,9 +4,9 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **expiration** | **String** | 4 hours from the point of creation | [optional] |
8
- | **client_secret** | **String** | Token needed by the frontend sdk to start the process | [optional] |
9
- | **request_id** | **String** | Used for debugging purposes | [optional] |
7
+ | **expiration** | **String** | 4 hours from the point of creation | |
8
+ | **client_secret** | **String** | Token needed by the frontend sdk to start the process | |
9
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | |
10
10
 
11
11
  ## Example
12
12
 
data/docs/Currency.md ADDED
@@ -0,0 +1,20 @@
1
+ # FuseClient::Currency
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **code** | **String** | The ISO-4217 currency code | |
8
+ | **name** | **String** | The name of the currency | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'fuse_client'
14
+
15
+ instance = FuseClient::Currency.new(
16
+ code: null,
17
+ name: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,22 @@
1
+ # FuseClient::DeleteFinancialConnectionResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **financial_connection_id** | **String** | Id of the deleted financial connection | |
8
+ | **access_token** | **String** | Access token of the deleted financial connection | |
9
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'fuse_client'
15
+
16
+ instance = FuseClient::DeleteFinancialConnectionResponse.new(
17
+ financial_connection_id: null,
18
+ access_token: null,
19
+ request_id: null
20
+ )
21
+ ```
22
+
@@ -4,9 +4,9 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **access_token** | **String** | Token used for querying data on the user | [optional] |
8
- | **financial_connection_id** | **String** | The id of the new financial connection. Every webhook will be sent with this id. | [optional] |
9
- | **request_id** | **String** | Used for debugging purposes | [optional] |
7
+ | **access_token** | **String** | Token used for querying data on the user | |
8
+ | **financial_connection_id** | **String** | The id of the new financial connection. Every webhook will be sent with this id. | |
9
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | |
10
10
 
11
11
  ## Example
12
12
 
@@ -4,8 +4,8 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | The financial connection id. | [optional] |
8
- | **institution_id** | **String** | The Fuse Institution ID associated with the financial connection | [optional] |
7
+ | **id** | **String** | The financial connection id. | |
8
+ | **institution_id** | **String** | The Fuse Institution ID associated with the financial connection | |
9
9
 
10
10
  ## Example
11
11
 
@@ -0,0 +1,32 @@
1
+ # FuseClient::FinancialConnectionDetails
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | The fuse financial connection id. | |
8
+ | **connection_status** | **String** | Connection status of the current financial connection | |
9
+ | **connection_status_updated_at** | **String** | Last time the connection status was updated in ISO-8601 format. | |
10
+ | **is_oauth** | **Boolean** | Whether this is an oauth connection | |
11
+ | **aggregator** | [**Aggregator**](Aggregator.md) | | |
12
+ | **plaid** | [**FinancialConnectionDetailsPlaid**](FinancialConnectionDetailsPlaid.md) | | [optional] |
13
+ | **teller** | [**FinancialConnectionDetailsTeller**](FinancialConnectionDetailsTeller.md) | | [optional] |
14
+ | **mx** | [**FinancialConnectionDetailsMx**](FinancialConnectionDetailsMx.md) | | [optional] |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'fuse_client'
20
+
21
+ instance = FuseClient::FinancialConnectionDetails.new(
22
+ id: null,
23
+ connection_status: null,
24
+ connection_status_updated_at: null,
25
+ is_oauth: null,
26
+ aggregator: null,
27
+ plaid: null,
28
+ teller: null,
29
+ mx: null
30
+ )
31
+ ```
32
+
@@ -0,0 +1,20 @@
1
+ # FuseClient::FinancialConnectionDetailsMx
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **user_guid** | **String** | User GUID for MX | |
8
+ | **member_guid** | **String** | Member GUID for MX | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'fuse_client'
14
+
15
+ instance = FuseClient::FinancialConnectionDetailsMx.new(
16
+ user_guid: null,
17
+ member_guid: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # FuseClient::FinancialConnectionDetailsPlaid
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **access_token** | **String** | Access token for Plaid | |
8
+ | **item_id** | **String** | ID of the item associated with the access token in Plaid | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'fuse_client'
14
+
15
+ instance = FuseClient::FinancialConnectionDetailsPlaid.new(
16
+ access_token: null,
17
+ item_id: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # FuseClient::FinancialConnectionDetailsTeller
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **access_token** | **String** | Access token for Teller | |
8
+ | **enrollment_id** | **String** | Enrollment ID associated with the access token in Teller | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'fuse_client'
14
+
15
+ instance = FuseClient::FinancialConnectionDetailsTeller.new(
16
+ access_token: null,
17
+ enrollment_id: null
18
+ )
19
+ ```
20
+
@@ -4,14 +4,14 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **remote_id** | **String** | Remote Id of the account, ie Plaid or Teller account id | [optional] |
8
- | **fingerprint** | **String** | Uniquely identifies this account across all accounts associated with your organization. See more information here: https://letsfuse.readme.io/docs/duplicate-accounts | [optional] |
7
+ | **remote_id** | **String** | Remote Id of the account, ie Plaid or Teller account id | |
8
+ | **fingerprint** | **String** | Uniquely identifies this account across all accounts associated with your organization. See more information here: https://letsfuse.readme.io/docs/duplicate-accounts | |
9
9
  | **institution** | [**FinancialConnectionsAccountInstitution**](FinancialConnectionsAccountInstitution.md) | | [optional] |
10
- | **last_four** | **String** | The last four digits of the account number. | [optional] |
11
- | **name** | **String** | The account&#39;s name, ie &#39;My Checking&#39; | [optional] |
12
- | **type** | **String** | The account&#39;s type e.g depository. | [optional] |
13
- | **subtype** | **String** | The account&#39;s subtype | [optional] |
14
- | **balance** | [**FinancialConnectionsAccountBalance**](FinancialConnectionsAccountBalance.md) | | [optional] |
10
+ | **mask** | **String** | The partial account number. | [optional] |
11
+ | **name** | **String** | The account&#39;s name, ie &#39;My Checking&#39; | |
12
+ | **type** | [**AccountType**](AccountType.md) | | |
13
+ | **subtype** | [**AccountSubtype**](AccountSubtype.md) | | [optional] |
14
+ | **balance** | [**FinancialConnectionsAccountCachedBalance**](FinancialConnectionsAccountCachedBalance.md) | | |
15
15
 
16
16
  ## Example
17
17
 
@@ -22,7 +22,7 @@ instance = FuseClient::FinancialConnectionsAccount.new(
22
22
  remote_id: null,
23
23
  fingerprint: null,
24
24
  institution: null,
25
- last_four: null,
25
+ mask: null,
26
26
  name: null,
27
27
  type: null,
28
28
  subtype: null,
@@ -4,10 +4,11 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **available** | **String** | The amount of funds available to be withdrawn from the account, as determined by the financial institution Available balance may be cached and is not guaranteed to be up-to-date in realtime unless the value was returned by /financial_connections/balances. | [optional] |
8
- | **current** | **Float** | Amount without factoring in pending balances | [optional] |
7
+ | **remote_account_id** | **String** | Remote Account Id of the transaction, ie Plaid Account Id | |
8
+ | **available** | **Float** | Amount in cents after factoring in pending balances | [optional] |
9
+ | **current** | **Float** | Amount in cents without factoring in pending balances | [optional] |
9
10
  | **iso_currency_code** | **String** | The ISO-4217 currency code of the balance. | [optional] |
10
- | **last_updated_date** | **String** | The date of the last update to the balance. | [optional] |
11
+ | **last_updated_date** | **String** | The last time the account balance was updated, represented as an ISO 8601 timestamp (YYYY-MM-DDTHH:mm:ssZ). This value may not be available for some accounts. | [optional] |
11
12
 
12
13
  ## Example
13
14
 
@@ -15,6 +16,7 @@
15
16
  require 'fuse_client'
16
17
 
17
18
  instance = FuseClient::FinancialConnectionsAccountBalance.new(
19
+ remote_account_id: null,
18
20
  available: null,
19
21
  current: null,
20
22
  iso_currency_code: null,
@@ -0,0 +1,24 @@
1
+ # FuseClient::FinancialConnectionsAccountCachedBalance
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **available** | **Float** | The amount of funds available to be withdrawn from the account, as determined by the financial institution Available balance may be cached and is not guaranteed to be up-to-date in realtime unless the value was returned by /financial_connections/balances. | [optional] |
8
+ | **current** | **Float** | Amount without factoring in pending balances | [optional] |
9
+ | **iso_currency_code** | **String** | The ISO-4217 currency code of the balance. | [optional] |
10
+ | **last_updated_date** | **String** | The date of the last update to the balance. | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'fuse_client'
16
+
17
+ instance = FuseClient::FinancialConnectionsAccountCachedBalance.new(
18
+ available: null,
19
+ current: null,
20
+ iso_currency_code: null,
21
+ last_updated_date: null
22
+ )
23
+ ```
24
+
@@ -4,8 +4,8 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **remote_id** | **String** | Remote Id of the account, ie Plaid or Teller account id | [optional] |
8
- | **ach** | [**FinancialConnectionsAccountDetailsAch**](FinancialConnectionsAccountDetailsAch.md) | | [optional] |
7
+ | **remote_id** | **String** | Remote Id of the account, ie Plaid or Teller account id | |
8
+ | **ach** | [**FinancialConnectionsAccountDetailsAch**](FinancialConnectionsAccountDetailsAch.md) | | |
9
9
 
10
10
  ## Example
11
11
 
@@ -4,14 +4,14 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **remote_id** | **String** | Remote Id of the account, ie Plaid or Teller account id | [optional] |
8
- | **fingerprint** | **String** | Uniquely identifies this account across all accounts associated with your organization. See more information here: https://letsfuse.readme.io/docs/duplicate-accounts | [optional] |
7
+ | **remote_id** | **String** | Remote Id of the account, ie Plaid or Teller account id | |
8
+ | **fingerprint** | **String** | Uniquely identifies this account across all accounts associated with your organization. See more information here: https://letsfuse.readme.io/docs/duplicate-accounts | |
9
9
  | **institution** | [**FinancialConnectionsAccountInstitution**](FinancialConnectionsAccountInstitution.md) | | [optional] |
10
- | **last_four** | **String** | The last four digits of the account number. | [optional] |
11
- | **name** | **String** | The account&#39;s name, ie &#39;My Checking&#39; | [optional] |
12
- | **type** | **String** | The account&#39;s type e.g depository. | [optional] |
13
- | **subtype** | **String** | The account&#39;s subtype | [optional] |
14
- | **balance** | [**FinancialConnectionsAccountBalance**](FinancialConnectionsAccountBalance.md) | | [optional] |
10
+ | **mask** | **String** | The partial account number. | [optional] |
11
+ | **name** | **String** | The account&#39;s name, ie &#39;My Checking&#39; | |
12
+ | **type** | [**AccountType**](AccountType.md) | | |
13
+ | **subtype** | [**AccountSubtype**](AccountSubtype.md) | | [optional] |
14
+ | **balance** | [**FinancialConnectionsAccountCachedBalance**](FinancialConnectionsAccountCachedBalance.md) | | |
15
15
  | **aprs** | [**Array&lt;FinancialConnectionsAccountLiabilityAllOfAprs&gt;**](FinancialConnectionsAccountLiabilityAllOfAprs.md) | The various interest rates that apply to the account. If APR data is not available, this array will be empty. | [optional] |
16
16
  | **interest_rate_percentage** | **Float** | The interest rate on the loan as a percentage. | [optional] |
17
17
  | **origination_principal_amount** | **Float** | The original principal balance of the loan. | [optional] |
@@ -29,7 +29,7 @@ instance = FuseClient::FinancialConnectionsAccountLiability.new(
29
29
  remote_id: null,
30
30
  fingerprint: null,
31
31
  institution: null,
32
- last_four: null,
32
+ mask: null,
33
33
  name: null,
34
34
  type: null,
35
35
  subtype: null,
@@ -4,12 +4,12 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **remote_account_id** | **String** | Remote account id associated with this holding | [optional] |
8
- | **cost_basis** | **Float** | The original total value of the holding. | [optional] |
9
- | **value** | **Float** | The value of the holding | [optional] |
10
- | **iso_currency_code** | **String** | The ISO-4217 currency code of the holding. | [optional] |
11
- | **quantity** | **Float** | The number of units of the security involved in this transaction. | [optional] |
12
- | **security_id** | **String** | The security_id associated with the holding. | [optional] |
7
+ | **remote_account_id** | **String** | The remote account ID associated with this holding. | |
8
+ | **cost_basis** | **Float** | The original total value of the holding when it was purchased. | |
9
+ | **value** | **Float** | The current market value of the holding. | |
10
+ | **quantity** | **Float** | The number of units of the security held in this holding. | |
11
+ | **institution_price** | **Float** | The price of the security as provided by the financial institution managing the holding. | |
12
+ | **security** | [**FinancialConnectionsInvestmentSecurity**](FinancialConnectionsInvestmentSecurity.md) | | |
13
13
 
14
14
  ## Example
15
15
 
@@ -20,9 +20,9 @@ instance = FuseClient::FinancialConnectionsHolding.new(
20
20
  remote_account_id: null,
21
21
  cost_basis: null,
22
22
  value: null,
23
- iso_currency_code: null,
24
23
  quantity: null,
25
- security_id: null
24
+ institution_price: null,
25
+ security: null
26
26
  )
27
27
  ```
28
28