fuse_client 1.0.31 → 1.0.34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (381) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +8 -9
  3. data/README.md +10 -2
  4. data/docs/AddAccountEventsRequest.md +18 -0
  5. data/docs/AddAccountEventsRequestEventsInner.md +51 -0
  6. data/docs/AddAccountEventsResponse.md +20 -0
  7. data/docs/AssetReport.md +26 -0
  8. data/docs/AssetReportAccountsInner.md +24 -0
  9. data/docs/{GetAssetReportResponseReportAccountsInnerBalances.md → AssetReportAccountsInnerBalance.md} +2 -2
  10. data/docs/{GetAssetReportResponseReportAccountsInnerHistoricalBalancesInner.md → AssetReportAccountsInnerHistoricalBalancesInner.md} +2 -2
  11. data/docs/{GetAssetReportResponse.md → AssetReportResponse.md} +3 -3
  12. data/docs/AssetReportTransaction.md +36 -0
  13. data/docs/CreateAssetReportRequest.md +2 -4
  14. data/docs/CreateAssetReportResponse.md +2 -2
  15. data/docs/CreateLinkTokenRequest.md +6 -2
  16. data/docs/CreateLinkTokenRequestPlaid.md +1 -1
  17. data/docs/CreateLinkTokenRequestTeller.md +18 -0
  18. data/docs/CreateLinkTokenRequestTellerConfig.md +18 -0
  19. data/docs/CreateSessionRequest.md +5 -5
  20. data/docs/CreateSpendPowerCustomizationRequest.md +22 -0
  21. data/docs/CreateSpendPowerCustomizationResponse.md +20 -0
  22. data/docs/CreateSpendPowerRequest.md +22 -0
  23. data/docs/CreateSpendPowerResponse.md +20 -0
  24. data/docs/DeleteSpendPowerResponse.md +20 -0
  25. data/docs/EnrichTransactionsRequest.md +18 -0
  26. data/docs/EnrichTransactionsResponse.md +18 -0
  27. data/docs/EnrichedTransaction.md +46 -0
  28. data/docs/EnrichedTransactionLogo.md +18 -0
  29. data/docs/Entity.md +1 -1
  30. data/docs/EvalSpendPowerRequest.md +22 -0
  31. data/docs/EvalSpendPowerRequestEventsInner.md +20 -0
  32. data/docs/EvalSpendPowerResponse.md +20 -0
  33. data/docs/ExchangeFinancialConnectionsPublicTokenRequest.md +1 -1
  34. data/docs/ExchangeFinancialConnectionsPublicTokenResponse.md +2 -2
  35. data/docs/ExternalTransactionEvent.md +36 -0
  36. data/docs/ExternalTransactionEventStatus.md +15 -0
  37. data/docs/FinancialConnectionsAccountBalance.md +2 -2
  38. data/docs/FinancialConnectionsAccountCachedBalance.md +2 -2
  39. data/docs/FinancialConnectionsHolding.md +3 -3
  40. data/docs/FinancialConnectionsInvestmentSecurity.md +2 -2
  41. data/docs/FinancialConnectionsInvestmentSecurityType.md +15 -0
  42. data/docs/FinancialConnectionsInvestmentTransaction.md +7 -3
  43. data/docs/FinancialConnectionsInvestmentTransactionSubtype.md +15 -0
  44. data/docs/FuseApi.md +643 -19
  45. data/docs/FuseApiAggregatorError.md +28 -0
  46. data/docs/FuseApiError.md +7 -5
  47. data/docs/FuseApiErrorCode.md +15 -0
  48. data/docs/FuseApiErrorData.md +1 -1
  49. data/docs/FuseApiErrorType.md +15 -0
  50. data/docs/GetAssetReportRequest.md +2 -0
  51. data/docs/GetFinanceScoreResponse.md +20 -0
  52. data/docs/GetFinancialConnectionsAccountStatementRequest.md +22 -0
  53. data/docs/GetFinancialConnectionsAccountStatementResponse.md +20 -0
  54. data/docs/GetInvestmentTransactionsRequest.md +4 -4
  55. data/docs/GetInvestmentTransactionsResponse.md +2 -0
  56. data/docs/GetSpendPowerCustomizationResponse.md +20 -0
  57. data/docs/GetSpendPowerResponse.md +20 -0
  58. data/docs/InAppTransactionEvent.md +34 -0
  59. data/docs/InAppTransactionEventStatus.md +15 -0
  60. data/docs/MigrateFinancialConnectionsAggregatorConnectionData.md +3 -1
  61. data/docs/MigrateFinancialConnectionsAggregatorConnectionDataPlaid.md +3 -1
  62. data/docs/MigrateFinancialConnectionsAggregatorConnectionDataTeller.md +18 -0
  63. data/docs/MigrateFinancialConnectionsTokenRequest.md +1 -1
  64. data/docs/RefreshAssetReportRequest.md +5 -5
  65. data/docs/RefreshAssetReportResponse.md +22 -0
  66. data/docs/SpendPower.md +30 -0
  67. data/docs/SpendPowerApi.md +165 -0
  68. data/docs/SpendPowerCustomization.md +24 -0
  69. data/docs/SpendPowerTimeFrame.md +15 -0
  70. data/docs/Transaction.md +2 -2
  71. data/docs/TransactionCategory.md +20 -0
  72. data/docs/TransactionCategoryDetailed.md +15 -0
  73. data/docs/TransactionCategoryPrimary.md +15 -0
  74. data/docs/TransactionEventType.md +15 -0
  75. data/docs/TransactionToEnrich.md +26 -0
  76. data/docs/UpdateSpendPowerCustomizationRequest.md +22 -0
  77. data/docs/UpdateSpendPowerCustomizationResponse.md +20 -0
  78. data/docs/UpdatedBalanceEvent.md +26 -0
  79. data/docs/WebhookEvent.md +6 -0
  80. data/fuse_client.gemspec +1 -1
  81. data/lib/fuse_client/api/fuse_api.rb +530 -16
  82. data/lib/fuse_client/api/spend_power_api.rb +172 -0
  83. data/lib/fuse_client/api_client.rb +1 -1
  84. data/lib/fuse_client/api_error.rb +1 -1
  85. data/lib/fuse_client/configuration.rb +51 -4
  86. data/lib/fuse_client/models/account_subtype.rb +1 -1
  87. data/lib/fuse_client/models/account_type.rb +3 -2
  88. data/lib/fuse_client/models/add_account_events_request.rb +254 -0
  89. data/lib/fuse_client/models/add_account_events_request_events_inner.rb +106 -0
  90. data/lib/fuse_client/models/add_account_events_response.rb +240 -0
  91. data/lib/fuse_client/models/aggregator.rb +4 -2
  92. data/lib/fuse_client/models/{get_asset_report_response_report.rb → asset_report.rb} +15 -27
  93. data/lib/fuse_client/models/{get_asset_report_response_report_accounts_inner.rb → asset_report_accounts_inner.rb} +27 -26
  94. data/lib/fuse_client/models/{get_asset_report_response_report_accounts_inner_balances.rb → asset_report_accounts_inner_balance.rb} +4 -4
  95. data/lib/fuse_client/models/{get_asset_report_response_report_accounts_inner_historical_balances_inner.rb → asset_report_accounts_inner_historical_balances_inner.rb} +4 -4
  96. data/lib/fuse_client/models/{get_asset_report_response.rb → asset_report_response.rb} +5 -5
  97. data/lib/fuse_client/models/asset_report_transaction.rb +385 -0
  98. data/lib/fuse_client/models/country_code.rb +3 -2
  99. data/lib/fuse_client/models/create_asset_report_request.rb +11 -23
  100. data/lib/fuse_client/models/create_asset_report_response.rb +3 -3
  101. data/lib/fuse_client/models/create_entity_request.rb +1 -1
  102. data/lib/fuse_client/models/create_entity_response.rb +1 -1
  103. data/lib/fuse_client/models/create_link_token_request.rb +25 -6
  104. data/lib/fuse_client/models/create_link_token_request_mx.rb +1 -1
  105. data/lib/fuse_client/models/create_link_token_request_plaid.rb +2 -2
  106. data/lib/fuse_client/models/create_link_token_request_teller.rb +220 -0
  107. data/lib/fuse_client/models/create_link_token_request_teller_config.rb +254 -0
  108. data/lib/fuse_client/models/create_link_token_response.rb +1 -1
  109. data/lib/fuse_client/models/create_session_request.rb +32 -9
  110. data/lib/fuse_client/models/create_session_response.rb +1 -1
  111. data/lib/fuse_client/models/create_spend_power_customization_request.rb +314 -0
  112. data/lib/fuse_client/models/create_spend_power_customization_response.rb +240 -0
  113. data/lib/fuse_client/models/create_spend_power_request.rb +255 -0
  114. data/lib/fuse_client/models/create_spend_power_response.rb +240 -0
  115. data/lib/fuse_client/models/currency.rb +1 -1
  116. data/lib/fuse_client/models/delete_financial_connection_response.rb +1 -1
  117. data/lib/fuse_client/models/delete_spend_power_response.rb +240 -0
  118. data/lib/fuse_client/models/enrich_transactions_request.rb +226 -0
  119. data/lib/fuse_client/models/enrich_transactions_response.rb +222 -0
  120. data/lib/fuse_client/models/enriched_transaction.rb +397 -0
  121. data/lib/fuse_client/models/enriched_transaction_logo.rb +220 -0
  122. data/lib/fuse_client/models/entity.rb +2 -2
  123. data/lib/fuse_client/models/eval_spend_power_request.rb +296 -0
  124. data/lib/fuse_client/models/eval_spend_power_request_events_inner.rb +239 -0
  125. data/lib/fuse_client/models/eval_spend_power_response.rb +230 -0
  126. data/lib/fuse_client/models/exchange_financial_connections_public_token_request.rb +6 -1
  127. data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +3 -3
  128. data/lib/fuse_client/models/external_transaction_event.rb +384 -0
  129. data/lib/fuse_client/models/external_transaction_event_status.rb +40 -0
  130. data/lib/fuse_client/models/financial_connection_data.rb +1 -1
  131. data/lib/fuse_client/models/financial_connection_details.rb +1 -1
  132. data/lib/fuse_client/models/financial_connection_details_mx.rb +1 -1
  133. data/lib/fuse_client/models/financial_connection_details_plaid.rb +1 -1
  134. data/lib/fuse_client/models/financial_connection_details_teller.rb +1 -1
  135. data/lib/fuse_client/models/financial_connections_account.rb +1 -1
  136. data/lib/fuse_client/models/financial_connections_account_balance.rb +3 -3
  137. data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +3 -3
  138. data/lib/fuse_client/models/financial_connections_account_details.rb +1 -1
  139. data/lib/fuse_client/models/financial_connections_account_details_ach.rb +1 -1
  140. data/lib/fuse_client/models/financial_connections_account_institution.rb +1 -1
  141. data/lib/fuse_client/models/financial_connections_account_liability.rb +1 -1
  142. data/lib/fuse_client/models/financial_connections_account_liability_all_of.rb +1 -1
  143. data/lib/fuse_client/models/financial_connections_account_liability_all_of_aprs.rb +1 -1
  144. data/lib/fuse_client/models/financial_connections_holding.rb +4 -4
  145. data/lib/fuse_client/models/financial_connections_investment_security.rb +25 -9
  146. data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +1 -1
  147. data/lib/fuse_client/models/financial_connections_investment_security_type.rb +64 -0
  148. data/lib/fuse_client/models/financial_connections_investment_transaction.rb +62 -5
  149. data/lib/fuse_client/models/financial_connections_investment_transaction_subtype.rb +87 -0
  150. data/lib/fuse_client/models/financial_connections_owner.rb +1 -1
  151. data/lib/fuse_client/models/financial_connections_owner_addresses_inner.rb +1 -1
  152. data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +1 -1
  153. data/lib/fuse_client/models/financial_connections_owner_emails_inner.rb +1 -1
  154. data/lib/fuse_client/models/financial_connections_owner_names_inner.rb +1 -1
  155. data/lib/fuse_client/models/financial_connections_owner_phone_numbers_inner.rb +1 -1
  156. data/lib/fuse_client/models/financial_institution.rb +1 -1
  157. data/lib/fuse_client/models/financial_institution_logo.rb +1 -1
  158. data/lib/fuse_client/models/fuse_api_aggregator_error.rb +264 -0
  159. data/lib/fuse_client/models/fuse_api_error.rb +43 -28
  160. data/lib/fuse_client/models/fuse_api_error_code.rb +78 -0
  161. data/lib/fuse_client/models/fuse_api_error_data.rb +2 -2
  162. data/lib/fuse_client/models/fuse_api_error_type.rb +42 -0
  163. data/lib/fuse_client/models/fuse_api_warning.rb +1 -1
  164. data/lib/fuse_client/models/fuse_api_warning_data.rb +1 -1
  165. data/lib/fuse_client/models/fuse_api_warning_data_warnings_inner.rb +1 -1
  166. data/lib/fuse_client/models/get_asset_report_request.rb +17 -2
  167. data/lib/fuse_client/models/get_entity_response.rb +1 -1
  168. data/lib/fuse_client/models/get_finance_score_response.rb +240 -0
  169. data/lib/fuse_client/models/get_financial_connection_response.rb +1 -1
  170. data/lib/fuse_client/models/get_financial_connections_account_details_request.rb +1 -1
  171. data/lib/fuse_client/models/get_financial_connections_account_details_response.rb +1 -1
  172. data/lib/fuse_client/models/get_financial_connections_account_statement_request.rb +250 -0
  173. data/lib/fuse_client/models/get_financial_connections_account_statement_response.rb +240 -0
  174. data/lib/fuse_client/models/get_financial_connections_accounts_request.rb +1 -1
  175. data/lib/fuse_client/models/get_financial_connections_accounts_response.rb +1 -1
  176. data/lib/fuse_client/models/get_financial_connections_balance_request.rb +1 -1
  177. data/lib/fuse_client/models/get_financial_connections_balance_request_options.rb +1 -1
  178. data/lib/fuse_client/models/get_financial_connections_balance_response.rb +1 -1
  179. data/lib/fuse_client/models/get_financial_connections_owners_request.rb +1 -1
  180. data/lib/fuse_client/models/get_financial_connections_owners_response.rb +1 -1
  181. data/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +1 -1
  182. data/lib/fuse_client/models/get_financial_connections_transactions_request.rb +1 -1
  183. data/lib/fuse_client/models/get_financial_connections_transactions_response.rb +1 -1
  184. data/lib/fuse_client/models/get_financial_institution_response.rb +1 -1
  185. data/lib/fuse_client/models/get_investment_holdings_request.rb +1 -1
  186. data/lib/fuse_client/models/get_investment_holdings_request_options.rb +1 -1
  187. data/lib/fuse_client/models/get_investment_holdings_response.rb +1 -1
  188. data/lib/fuse_client/models/get_investment_transactions_request.rb +38 -10
  189. data/lib/fuse_client/models/get_investment_transactions_request_options.rb +1 -1
  190. data/lib/fuse_client/models/get_investment_transactions_response.rb +12 -2
  191. data/lib/fuse_client/models/get_liabilities_request.rb +1 -1
  192. data/lib/fuse_client/models/get_liabilities_response.rb +1 -1
  193. data/lib/fuse_client/models/get_spend_power_customization_response.rb +239 -0
  194. data/lib/fuse_client/models/get_spend_power_response.rb +239 -0
  195. data/lib/fuse_client/models/in_app_transaction_event.rb +364 -0
  196. data/lib/fuse_client/models/in_app_transaction_event_status.rb +41 -0
  197. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data.rb +14 -5
  198. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_mx.rb +1 -1
  199. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_plaid.rb +15 -5
  200. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_teller.rb +226 -0
  201. data/lib/fuse_client/models/migrate_financial_connections_token_request.rb +23 -4
  202. data/lib/fuse_client/models/migrate_financial_connections_token_request_entity.rb +1 -1
  203. data/lib/fuse_client/models/migrate_financial_connections_token_response.rb +1 -1
  204. data/lib/fuse_client/models/product.rb +3 -3
  205. data/lib/fuse_client/models/refresh_asset_report_request.rb +32 -33
  206. data/lib/fuse_client/models/refresh_asset_report_response.rb +240 -0
  207. data/lib/fuse_client/models/spend_power.rb +315 -0
  208. data/lib/fuse_client/models/spend_power_customization.rb +329 -0
  209. data/lib/fuse_client/models/spend_power_time_frame.rb +41 -0
  210. data/lib/fuse_client/models/sync_financial_connections_data_response.rb +1 -1
  211. data/lib/fuse_client/models/sync_transactions_request.rb +1 -1
  212. data/lib/fuse_client/models/sync_transactions_response.rb +1 -1
  213. data/lib/fuse_client/models/sync_transactions_response_removed_inner.rb +1 -1
  214. data/lib/fuse_client/models/transaction.rb +15 -3
  215. data/lib/fuse_client/models/transaction_category.rb +260 -0
  216. data/lib/fuse_client/models/transaction_category_detailed.rb +135 -0
  217. data/lib/fuse_client/models/transaction_category_primary.rb +59 -0
  218. data/lib/fuse_client/models/transaction_event_type.rb +65 -0
  219. data/lib/fuse_client/models/transaction_merchant.rb +1 -1
  220. data/lib/fuse_client/models/transaction_to_enrich.rb +304 -0
  221. data/lib/fuse_client/models/update_entity_request.rb +1 -1
  222. data/lib/fuse_client/models/update_entity_response.rb +1 -1
  223. data/lib/fuse_client/models/update_spend_power_customization_request.rb +291 -0
  224. data/lib/fuse_client/models/update_spend_power_customization_response.rb +240 -0
  225. data/lib/fuse_client/models/updated_balance_event.rb +308 -0
  226. data/lib/fuse_client/models/webhook_event.rb +34 -2
  227. data/lib/fuse_client/models/webhook_source.rb +1 -1
  228. data/lib/fuse_client/models/webhook_type.rb +4 -3
  229. data/lib/fuse_client/version.rb +2 -2
  230. data/lib/fuse_client.rb +52 -6
  231. data/spec/api/fuse_api_spec.rb +95 -6
  232. data/spec/api/spend_power_api_spec.rb +61 -0
  233. data/spec/api_client_spec.rb +1 -1
  234. data/spec/configuration_spec.rb +1 -1
  235. data/spec/models/account_subtype_spec.rb +1 -1
  236. data/spec/models/account_type_spec.rb +1 -1
  237. data/spec/models/add_account_events_request_events_inner_spec.rb +31 -0
  238. data/spec/models/add_account_events_request_spec.rb +34 -0
  239. data/spec/models/add_account_events_response_spec.rb +40 -0
  240. data/spec/models/aggregator_spec.rb +1 -1
  241. data/spec/models/{get_asset_report_response_report_accounts_inner_balances_spec.rb → asset_report_accounts_inner_balance_spec.rb} +7 -7
  242. data/spec/models/{get_asset_report_response_report_accounts_inner_historical_balances_inner_spec.rb → asset_report_accounts_inner_historical_balances_inner_spec.rb} +7 -7
  243. data/spec/models/{get_asset_report_response_report_accounts_inner_spec.rb → asset_report_accounts_inner_spec.rb} +10 -10
  244. data/spec/models/{get_asset_report_response_spec.rb → asset_report_response_spec.rb} +7 -7
  245. data/spec/models/{get_asset_report_response_report_spec.rb → asset_report_spec.rb} +8 -14
  246. data/spec/models/asset_report_transaction_spec.rb +96 -0
  247. data/spec/models/country_code_spec.rb +1 -1
  248. data/spec/models/create_asset_report_request_spec.rb +1 -7
  249. data/spec/models/create_asset_report_response_spec.rb +1 -1
  250. data/spec/models/create_entity_request_spec.rb +1 -1
  251. data/spec/models/create_entity_response_spec.rb +1 -1
  252. data/spec/models/create_link_token_request_mx_spec.rb +1 -1
  253. data/spec/models/create_link_token_request_plaid_spec.rb +1 -1
  254. data/spec/models/create_link_token_request_spec.rb +13 -1
  255. data/spec/models/create_link_token_request_teller_config_spec.rb +38 -0
  256. data/spec/models/create_link_token_request_teller_spec.rb +34 -0
  257. data/spec/models/create_link_token_response_spec.rb +1 -1
  258. data/spec/models/create_session_request_spec.rb +1 -1
  259. data/spec/models/create_session_response_spec.rb +1 -1
  260. data/spec/models/create_spend_power_customization_request_spec.rb +46 -0
  261. data/spec/models/create_spend_power_customization_response_spec.rb +40 -0
  262. data/spec/models/create_spend_power_request_spec.rb +46 -0
  263. data/spec/models/create_spend_power_response_spec.rb +40 -0
  264. data/spec/models/currency_spec.rb +1 -1
  265. data/spec/models/delete_financial_connection_response_spec.rb +1 -1
  266. data/spec/models/delete_spend_power_response_spec.rb +40 -0
  267. data/spec/models/enrich_transactions_request_spec.rb +34 -0
  268. data/spec/models/enrich_transactions_response_spec.rb +34 -0
  269. data/spec/models/enriched_transaction_logo_spec.rb +34 -0
  270. data/spec/models/enriched_transaction_spec.rb +122 -0
  271. data/spec/models/entity_spec.rb +1 -1
  272. data/spec/models/eval_spend_power_request_events_inner_spec.rb +40 -0
  273. data/spec/models/eval_spend_power_request_spec.rb +46 -0
  274. data/spec/models/eval_spend_power_response_spec.rb +40 -0
  275. data/spec/models/exchange_financial_connections_public_token_request_spec.rb +1 -1
  276. data/spec/models/exchange_financial_connections_public_token_response_spec.rb +1 -1
  277. data/spec/models/external_transaction_event_spec.rb +92 -0
  278. data/spec/models/external_transaction_event_status_spec.rb +28 -0
  279. data/spec/models/financial_connection_data_spec.rb +1 -1
  280. data/spec/models/financial_connection_details_mx_spec.rb +1 -1
  281. data/spec/models/financial_connection_details_plaid_spec.rb +1 -1
  282. data/spec/models/financial_connection_details_spec.rb +1 -1
  283. data/spec/models/financial_connection_details_teller_spec.rb +1 -1
  284. data/spec/models/financial_connections_account_balance_spec.rb +1 -1
  285. data/spec/models/financial_connections_account_cached_balance_spec.rb +1 -1
  286. data/spec/models/financial_connections_account_details_ach_spec.rb +1 -1
  287. data/spec/models/financial_connections_account_details_spec.rb +1 -1
  288. data/spec/models/financial_connections_account_institution_spec.rb +1 -1
  289. data/spec/models/financial_connections_account_liability_all_of_aprs_spec.rb +1 -1
  290. data/spec/models/financial_connections_account_liability_all_of_spec.rb +1 -1
  291. data/spec/models/financial_connections_account_liability_spec.rb +1 -1
  292. data/spec/models/financial_connections_account_spec.rb +1 -1
  293. data/spec/models/financial_connections_holding_spec.rb +1 -1
  294. data/spec/models/financial_connections_investment_security_exchange_spec.rb +1 -1
  295. data/spec/models/financial_connections_investment_security_spec.rb +1 -1
  296. data/spec/models/financial_connections_investment_security_type_spec.rb +28 -0
  297. data/spec/models/financial_connections_investment_transaction_spec.rb +17 -1
  298. data/spec/models/financial_connections_investment_transaction_subtype_spec.rb +28 -0
  299. data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +1 -1
  300. data/spec/models/financial_connections_owner_addresses_inner_spec.rb +1 -1
  301. data/spec/models/financial_connections_owner_emails_inner_spec.rb +1 -1
  302. data/spec/models/financial_connections_owner_names_inner_spec.rb +1 -1
  303. data/spec/models/financial_connections_owner_phone_numbers_inner_spec.rb +1 -1
  304. data/spec/models/financial_connections_owner_spec.rb +1 -1
  305. data/spec/models/financial_institution_logo_spec.rb +1 -1
  306. data/spec/models/financial_institution_spec.rb +1 -1
  307. data/spec/models/fuse_api_aggregator_error_spec.rb +64 -0
  308. data/spec/models/fuse_api_error_code_spec.rb +28 -0
  309. data/spec/models/fuse_api_error_data_spec.rb +1 -1
  310. data/spec/models/fuse_api_error_spec.rb +7 -9
  311. data/spec/models/fuse_api_error_type_spec.rb +28 -0
  312. data/spec/models/fuse_api_warning_data_spec.rb +1 -1
  313. data/spec/models/fuse_api_warning_data_warnings_inner_spec.rb +1 -1
  314. data/spec/models/fuse_api_warning_spec.rb +1 -1
  315. data/spec/models/get_asset_report_request_spec.rb +7 -1
  316. data/spec/models/get_entity_response_spec.rb +1 -1
  317. data/spec/models/get_finance_score_response_spec.rb +40 -0
  318. data/spec/models/get_financial_connection_response_spec.rb +1 -1
  319. data/spec/models/get_financial_connections_account_details_request_spec.rb +1 -1
  320. data/spec/models/get_financial_connections_account_details_response_spec.rb +1 -1
  321. data/spec/models/get_financial_connections_account_statement_request_spec.rb +46 -0
  322. data/spec/models/get_financial_connections_account_statement_response_spec.rb +40 -0
  323. data/spec/models/get_financial_connections_accounts_request_spec.rb +1 -1
  324. data/spec/models/get_financial_connections_accounts_response_spec.rb +1 -1
  325. data/spec/models/get_financial_connections_balance_request_options_spec.rb +1 -1
  326. data/spec/models/get_financial_connections_balance_request_spec.rb +1 -1
  327. data/spec/models/get_financial_connections_balance_response_spec.rb +1 -1
  328. data/spec/models/get_financial_connections_owners_request_spec.rb +1 -1
  329. data/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +1 -1
  330. data/spec/models/get_financial_connections_owners_response_spec.rb +1 -1
  331. data/spec/models/get_financial_connections_transactions_request_spec.rb +1 -1
  332. data/spec/models/get_financial_connections_transactions_response_spec.rb +1 -1
  333. data/spec/models/get_financial_institution_response_spec.rb +1 -1
  334. data/spec/models/get_investment_holdings_request_options_spec.rb +1 -1
  335. data/spec/models/get_investment_holdings_request_spec.rb +1 -1
  336. data/spec/models/get_investment_holdings_response_spec.rb +1 -1
  337. data/spec/models/get_investment_transactions_request_options_spec.rb +1 -1
  338. data/spec/models/get_investment_transactions_request_spec.rb +1 -1
  339. data/spec/models/get_investment_transactions_response_spec.rb +7 -1
  340. data/spec/models/get_liabilities_request_spec.rb +1 -1
  341. data/spec/models/get_liabilities_response_spec.rb +1 -1
  342. data/spec/models/get_spend_power_customization_response_spec.rb +40 -0
  343. data/spec/models/get_spend_power_response_spec.rb +40 -0
  344. data/spec/models/in_app_transaction_event_spec.rb +86 -0
  345. data/spec/models/in_app_transaction_event_status_spec.rb +28 -0
  346. data/spec/models/migrate_financial_connections_aggregator_connection_data_mx_spec.rb +1 -1
  347. data/spec/models/migrate_financial_connections_aggregator_connection_data_plaid_spec.rb +7 -1
  348. data/spec/models/migrate_financial_connections_aggregator_connection_data_spec.rb +7 -1
  349. data/spec/models/migrate_financial_connections_aggregator_connection_data_teller_spec.rb +34 -0
  350. data/spec/models/migrate_financial_connections_token_request_entity_spec.rb +1 -1
  351. data/spec/models/migrate_financial_connections_token_request_spec.rb +2 -2
  352. data/spec/models/migrate_financial_connections_token_response_spec.rb +1 -1
  353. data/spec/models/product_spec.rb +1 -1
  354. data/spec/models/refresh_asset_report_request_spec.rb +3 -3
  355. data/spec/models/refresh_asset_report_response_spec.rb +46 -0
  356. data/spec/models/spend_power_customization_spec.rb +52 -0
  357. data/spec/models/spend_power_spec.rb +70 -0
  358. data/spec/models/spend_power_time_frame_spec.rb +28 -0
  359. data/spec/models/sync_financial_connections_data_response_spec.rb +1 -1
  360. data/spec/models/sync_transactions_request_spec.rb +1 -1
  361. data/spec/models/sync_transactions_response_removed_inner_spec.rb +1 -1
  362. data/spec/models/sync_transactions_response_spec.rb +1 -1
  363. data/spec/models/transaction_category_detailed_spec.rb +28 -0
  364. data/spec/models/transaction_category_primary_spec.rb +28 -0
  365. data/spec/models/transaction_category_spec.rb +40 -0
  366. data/spec/models/transaction_event_type_spec.rb +28 -0
  367. data/spec/models/transaction_merchant_spec.rb +1 -1
  368. data/spec/models/transaction_spec.rb +9 -1
  369. data/spec/models/transaction_to_enrich_spec.rb +62 -0
  370. data/spec/models/update_entity_request_spec.rb +1 -1
  371. data/spec/models/update_entity_response_spec.rb +1 -1
  372. data/spec/models/update_spend_power_customization_request_spec.rb +46 -0
  373. data/spec/models/update_spend_power_customization_response_spec.rb +40 -0
  374. data/spec/models/updated_balance_event_spec.rb +62 -0
  375. data/spec/models/webhook_event_spec.rb +19 -1
  376. data/spec/models/webhook_source_spec.rb +1 -1
  377. data/spec/models/webhook_type_spec.rb +1 -1
  378. data/spec/spec_helper.rb +1 -1
  379. metadata +206 -22
  380. data/docs/GetAssetReportResponseReport.md +0 -28
  381. data/docs/GetAssetReportResponseReportAccountsInner.md +0 -24
data/docs/FuseApi.md CHANGED
@@ -4,15 +4,21 @@ All URIs are relative to *https://sandbox-api.letsfuse.com*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
- | [**create_asset_report**](FuseApi.md#create_asset_report) | **POST** /v1/asset_report/create | |
7
+ | [**add_account_events**](FuseApi.md#add_account_events) | **POST** /v1/accounts/{account_id}/events | |
8
+ | [**create_asset_report**](FuseApi.md#create_asset_report) | **POST** /v1/financial_connections/asset_report/create | |
8
9
  | [**create_link_token**](FuseApi.md#create_link_token) | **POST** /v1/link/token | |
9
10
  | [**create_session**](FuseApi.md#create_session) | **POST** /v1/session | |
11
+ | [**create_spend_power**](FuseApi.md#create_spend_power) | **POST** /v1/spend_power | |
12
+ | [**create_spend_power_customization**](FuseApi.md#create_spend_power_customization) | **POST** /v1/spend_power/customization | |
10
13
  | [**delete_financial_connection**](FuseApi.md#delete_financial_connection) | **DELETE** /v1/financial_connections/{financial_connection_id_to_delete} | Delete a financial connection |
14
+ | [**enrich_transactions**](FuseApi.md#enrich_transactions) | **POST** /v1/transactions/enrich | |
11
15
  | [**exchange_financial_connections_public_token**](FuseApi.md#exchange_financial_connections_public_token) | **POST** /v1/financial_connections/public_token/exchange | |
12
- | [**get_asset_report**](FuseApi.md#get_asset_report) | **POST** /v1/asset_report | |
16
+ | [**get_asset_report**](FuseApi.md#get_asset_report) | **POST** /v1/financial_connections/asset_report | |
13
17
  | [**get_entity**](FuseApi.md#get_entity) | **GET** /v1/entities/{entity_id} | Get entity |
18
+ | [**get_finance_score**](FuseApi.md#get_finance_score) | **GET** /v1/accounts/{account_id}/finance_score | Get finance score |
14
19
  | [**get_financial_connection**](FuseApi.md#get_financial_connection) | **GET** /v1/financial_connections/{financial_connection_id} | Get financial connection details |
15
20
  | [**get_financial_connections_account_details**](FuseApi.md#get_financial_connections_account_details) | **POST** /v1/financial_connections/accounts/details | Get account details |
21
+ | [**get_financial_connections_account_statement**](FuseApi.md#get_financial_connections_account_statement) | **POST** /v1/financial_connections/accounts/statement | |
16
22
  | [**get_financial_connections_accounts**](FuseApi.md#get_financial_connections_accounts) | **POST** /v1/financial_connections/accounts | Get accounts |
17
23
  | [**get_financial_connections_balances**](FuseApi.md#get_financial_connections_balances) | **POST** /v1/financial_connections/balances | Get balances |
18
24
  | [**get_financial_connections_owners**](FuseApi.md#get_financial_connections_owners) | **POST** /v1/financial_connections/owners | Get account owners |
@@ -20,19 +26,99 @@ All URIs are relative to *https://sandbox-api.letsfuse.com*
20
26
  | [**get_financial_institution**](FuseApi.md#get_financial_institution) | **GET** /v1/financial_connections/institutions/{institution_id} | Get a financial institution |
21
27
  | [**get_investment_holdings**](FuseApi.md#get_investment_holdings) | **POST** /v1/financial_connections/investments/holdings | Get investment holdings |
22
28
  | [**get_investment_transactions**](FuseApi.md#get_investment_transactions) | **POST** /v1/financial_connections/investments/transactions | Get investment transactions |
29
+ | [**get_spend_power**](FuseApi.md#get_spend_power) | **GET** /v1/spend_power/{spend_power_id} | Get spend power |
23
30
  | [**migrate_financial_connection**](FuseApi.md#migrate_financial_connection) | **POST** /v1/financial_connections/migrate | Migrate financial connection |
24
- | [**refresh_asset_report**](FuseApi.md#refresh_asset_report) | **POST** /v1/asset_report/refresh | |
31
+ | [**refresh_asset_report**](FuseApi.md#refresh_asset_report) | **POST** /v1/financial_connections/asset_report/refresh | |
25
32
  | [**sync_financial_connections_data**](FuseApi.md#sync_financial_connections_data) | **POST** /v1/financial_connections/sync | Sync financial connections data |
33
+ | [**update_spend_power_customization**](FuseApi.md#update_spend_power_customization) | **POST** /v1/spend_power/customization/{spend_power_customization_id} | Update spend power customization |
26
34
  | [**v1_financial_connections_liabilities_post**](FuseApi.md#v1_financial_connections_liabilities_post) | **POST** /v1/financial_connections/liabilities | Get liabilities |
27
35
 
28
36
 
37
+ ## add_account_events
38
+
39
+ > <AddAccountEventsResponse> add_account_events(account_id, opts)
40
+
41
+
42
+
43
+ ### Examples
44
+
45
+ ```ruby
46
+ require 'time'
47
+ require 'fuse_client'
48
+ # setup authorization
49
+ FuseClient.configure do |config|
50
+ # Configure API key authorization: fuseApiKey
51
+ config.api_key['fuseApiKey'] = 'YOUR API KEY'
52
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
53
+ # config.api_key_prefix['fuseApiKey'] = 'Bearer'
54
+
55
+ # Configure API key authorization: fuseClientId
56
+ config.api_key['fuseClientId'] = 'YOUR API KEY'
57
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
58
+ # config.api_key_prefix['fuseClientId'] = 'Bearer'
59
+ end
60
+
61
+ api_instance = FuseClient::FuseApi.new
62
+ account_id = 'account_id_example' # String |
63
+ opts = {
64
+ add_account_events_request: FuseClient::AddAccountEventsRequest.new({events: [FuseClient::ExternalTransactionEvent.new({id: 'id_example', event_type: 'external_transaction', status: FuseClient::ExternalTransactionEventStatus::PENDING, amount: 3.56, merchant_name: 'merchant_name_example', transaction_type: FuseClient::TransactionEventType::ACH, category: FuseClient::TransactionCategory.new({primary: FuseClient::TransactionCategoryPrimary::AUTO_AND_TRANSPORT, detailed: FuseClient::TransactionCategoryDetailed::AUTO_INSURANCE}), iso_currency_code: 'iso_currency_code_example', timestamp: 'timestamp_example'})]}) # AddAccountEventsRequest |
65
+ }
66
+
67
+ begin
68
+
69
+ result = api_instance.add_account_events(account_id, opts)
70
+ p result
71
+ rescue FuseClient::ApiError => e
72
+ puts "Error when calling FuseApi->add_account_events: #{e}"
73
+ end
74
+ ```
75
+
76
+ #### Using the add_account_events_with_http_info variant
77
+
78
+ This returns an Array which contains the response data, status code and headers.
79
+
80
+ > <Array(<AddAccountEventsResponse>, Integer, Hash)> add_account_events_with_http_info(account_id, opts)
81
+
82
+ ```ruby
83
+ begin
84
+
85
+ data, status_code, headers = api_instance.add_account_events_with_http_info(account_id, opts)
86
+ p status_code # => 2xx
87
+ p headers # => { ... }
88
+ p data # => <AddAccountEventsResponse>
89
+ rescue FuseClient::ApiError => e
90
+ puts "Error when calling FuseApi->add_account_events_with_http_info: #{e}"
91
+ end
92
+ ```
93
+
94
+ ### Parameters
95
+
96
+ | Name | Type | Description | Notes |
97
+ | ---- | ---- | ----------- | ----- |
98
+ | **account_id** | **String** | | |
99
+ | **add_account_events_request** | [**AddAccountEventsRequest**](AddAccountEventsRequest.md) | | [optional] |
100
+
101
+ ### Return type
102
+
103
+ [**AddAccountEventsResponse**](AddAccountEventsResponse.md)
104
+
105
+ ### Authorization
106
+
107
+ [fuseApiKey](../README.md#fuseApiKey), [fuseClientId](../README.md#fuseClientId)
108
+
109
+ ### HTTP request headers
110
+
111
+ - **Content-Type**: application/json
112
+ - **Accept**: application/json
113
+
114
+
29
115
  ## create_asset_report
30
116
 
31
117
  > <CreateAssetReportResponse> create_asset_report(opts)
32
118
 
33
119
 
34
120
 
35
- Use this endpoint to generate an Asset Report for a user.
121
+ Use this endpoint to generate an Asset Report for a user. For Plaid, you will need to have the assets product enabled on your plaid account.
36
122
 
37
123
  ### Examples
38
124
 
@@ -210,7 +296,7 @@ end
210
296
 
211
297
  api_instance = FuseClient::FuseApi.new
212
298
  opts = {
213
- create_session_request: FuseClient::CreateSessionRequest.new # CreateSessionRequest |
299
+ create_session_request: FuseClient::CreateSessionRequest.new({supported_financial_institution_aggregators: [FuseClient::Aggregator::PLAID], products: [FuseClient::Product::ACCOUNT_DETAILS], entity: FuseClient::Entity.new({id: 'id_example'})}) # CreateSessionRequest |
214
300
  }
215
301
 
216
302
  begin
@@ -260,6 +346,160 @@ end
260
346
  - **Accept**: application/json
261
347
 
262
348
 
349
+ ## create_spend_power
350
+
351
+ > <CreateSpendPowerResponse> create_spend_power(opts)
352
+
353
+
354
+
355
+ Starts the background process that will determine the spend power depending on the customization passed in.
356
+
357
+ ### Examples
358
+
359
+ ```ruby
360
+ require 'time'
361
+ require 'fuse_client'
362
+ # setup authorization
363
+ FuseClient.configure do |config|
364
+ # Configure API key authorization: fuseApiKey
365
+ config.api_key['fuseApiKey'] = 'YOUR API KEY'
366
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
367
+ # config.api_key_prefix['fuseApiKey'] = 'Bearer'
368
+
369
+ # Configure API key authorization: fuseClientId
370
+ config.api_key['fuseClientId'] = 'YOUR API KEY'
371
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
372
+ # config.api_key_prefix['fuseClientId'] = 'Bearer'
373
+ end
374
+
375
+ api_instance = FuseClient::FuseApi.new
376
+ opts = {
377
+ create_spend_power_request: FuseClient::CreateSpendPowerRequest.new({account_id: 'account_id_example', iso_currency_code: 'iso_currency_code_example', customization_id: 'customization_id_example'}) # CreateSpendPowerRequest |
378
+ }
379
+
380
+ begin
381
+
382
+ result = api_instance.create_spend_power(opts)
383
+ p result
384
+ rescue FuseClient::ApiError => e
385
+ puts "Error when calling FuseApi->create_spend_power: #{e}"
386
+ end
387
+ ```
388
+
389
+ #### Using the create_spend_power_with_http_info variant
390
+
391
+ This returns an Array which contains the response data, status code and headers.
392
+
393
+ > <Array(<CreateSpendPowerResponse>, Integer, Hash)> create_spend_power_with_http_info(opts)
394
+
395
+ ```ruby
396
+ begin
397
+
398
+ data, status_code, headers = api_instance.create_spend_power_with_http_info(opts)
399
+ p status_code # => 2xx
400
+ p headers # => { ... }
401
+ p data # => <CreateSpendPowerResponse>
402
+ rescue FuseClient::ApiError => e
403
+ puts "Error when calling FuseApi->create_spend_power_with_http_info: #{e}"
404
+ end
405
+ ```
406
+
407
+ ### Parameters
408
+
409
+ | Name | Type | Description | Notes |
410
+ | ---- | ---- | ----------- | ----- |
411
+ | **create_spend_power_request** | [**CreateSpendPowerRequest**](CreateSpendPowerRequest.md) | | [optional] |
412
+
413
+ ### Return type
414
+
415
+ [**CreateSpendPowerResponse**](CreateSpendPowerResponse.md)
416
+
417
+ ### Authorization
418
+
419
+ [fuseApiKey](../README.md#fuseApiKey), [fuseClientId](../README.md#fuseClientId)
420
+
421
+ ### HTTP request headers
422
+
423
+ - **Content-Type**: application/json
424
+ - **Accept**: application/json
425
+
426
+
427
+ ## create_spend_power_customization
428
+
429
+ > <CreateSpendPowerCustomizationResponse> create_spend_power_customization(opts)
430
+
431
+
432
+
433
+ ### Examples
434
+
435
+ ```ruby
436
+ require 'time'
437
+ require 'fuse_client'
438
+ # setup authorization
439
+ FuseClient.configure do |config|
440
+ # Configure API key authorization: fuseApiKey
441
+ config.api_key['fuseApiKey'] = 'YOUR API KEY'
442
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
443
+ # config.api_key_prefix['fuseApiKey'] = 'Bearer'
444
+
445
+ # Configure API key authorization: fuseClientId
446
+ config.api_key['fuseClientId'] = 'YOUR API KEY'
447
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
448
+ # config.api_key_prefix['fuseClientId'] = 'Bearer'
449
+ end
450
+
451
+ api_instance = FuseClient::FuseApi.new
452
+ opts = {
453
+ create_spend_power_customization_request: FuseClient::CreateSpendPowerCustomizationRequest.new({timeframe: FuseClient::SpendPowerTimeFrame::DAILY, min_limit: 3.56, max_limit: 3.56}) # CreateSpendPowerCustomizationRequest |
454
+ }
455
+
456
+ begin
457
+
458
+ result = api_instance.create_spend_power_customization(opts)
459
+ p result
460
+ rescue FuseClient::ApiError => e
461
+ puts "Error when calling FuseApi->create_spend_power_customization: #{e}"
462
+ end
463
+ ```
464
+
465
+ #### Using the create_spend_power_customization_with_http_info variant
466
+
467
+ This returns an Array which contains the response data, status code and headers.
468
+
469
+ > <Array(<CreateSpendPowerCustomizationResponse>, Integer, Hash)> create_spend_power_customization_with_http_info(opts)
470
+
471
+ ```ruby
472
+ begin
473
+
474
+ data, status_code, headers = api_instance.create_spend_power_customization_with_http_info(opts)
475
+ p status_code # => 2xx
476
+ p headers # => { ... }
477
+ p data # => <CreateSpendPowerCustomizationResponse>
478
+ rescue FuseClient::ApiError => e
479
+ puts "Error when calling FuseApi->create_spend_power_customization_with_http_info: #{e}"
480
+ end
481
+ ```
482
+
483
+ ### Parameters
484
+
485
+ | Name | Type | Description | Notes |
486
+ | ---- | ---- | ----------- | ----- |
487
+ | **create_spend_power_customization_request** | [**CreateSpendPowerCustomizationRequest**](CreateSpendPowerCustomizationRequest.md) | | [optional] |
488
+
489
+ ### Return type
490
+
491
+ [**CreateSpendPowerCustomizationResponse**](CreateSpendPowerCustomizationResponse.md)
492
+
493
+ ### Authorization
494
+
495
+ [fuseApiKey](../README.md#fuseApiKey), [fuseClientId](../README.md#fuseClientId)
496
+
497
+ ### HTTP request headers
498
+
499
+ - **Content-Type**: application/json
500
+ - **Accept**: application/json
501
+
502
+
263
503
  ## delete_financial_connection
264
504
 
265
505
  > <DeleteFinancialConnectionResponse> delete_financial_connection(financial_connection_id_to_delete)
@@ -334,6 +574,86 @@ end
334
574
  - **Accept**: application/json
335
575
 
336
576
 
577
+ ## enrich_transactions
578
+
579
+ > <EnrichTransactionsResponse> enrich_transactions(fuse_client_id, fuse_api_key, opts)
580
+
581
+
582
+
583
+ ### Examples
584
+
585
+ ```ruby
586
+ require 'time'
587
+ require 'fuse_client'
588
+ # setup authorization
589
+ FuseClient.configure do |config|
590
+ # Configure API key authorization: fuseApiKey
591
+ config.api_key['fuseApiKey'] = 'YOUR API KEY'
592
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
593
+ # config.api_key_prefix['fuseApiKey'] = 'Bearer'
594
+
595
+ # Configure API key authorization: fuseClientId
596
+ config.api_key['fuseClientId'] = 'YOUR API KEY'
597
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
598
+ # config.api_key_prefix['fuseClientId'] = 'Bearer'
599
+ end
600
+
601
+ api_instance = FuseClient::FuseApi.new
602
+ fuse_client_id = 'fuse_client_id_example' # String |
603
+ fuse_api_key = 'fuse_api_key_example' # String |
604
+ opts = {
605
+ enrich_transactions_request: FuseClient::EnrichTransactionsRequest.new({transactions: [FuseClient::TransactionToEnrich.new({id: 'id_example', merchant_name: 'merchant_name_example'})]}) # EnrichTransactionsRequest |
606
+ }
607
+
608
+ begin
609
+
610
+ result = api_instance.enrich_transactions(fuse_client_id, fuse_api_key, opts)
611
+ p result
612
+ rescue FuseClient::ApiError => e
613
+ puts "Error when calling FuseApi->enrich_transactions: #{e}"
614
+ end
615
+ ```
616
+
617
+ #### Using the enrich_transactions_with_http_info variant
618
+
619
+ This returns an Array which contains the response data, status code and headers.
620
+
621
+ > <Array(<EnrichTransactionsResponse>, Integer, Hash)> enrich_transactions_with_http_info(fuse_client_id, fuse_api_key, opts)
622
+
623
+ ```ruby
624
+ begin
625
+
626
+ data, status_code, headers = api_instance.enrich_transactions_with_http_info(fuse_client_id, fuse_api_key, opts)
627
+ p status_code # => 2xx
628
+ p headers # => { ... }
629
+ p data # => <EnrichTransactionsResponse>
630
+ rescue FuseClient::ApiError => e
631
+ puts "Error when calling FuseApi->enrich_transactions_with_http_info: #{e}"
632
+ end
633
+ ```
634
+
635
+ ### Parameters
636
+
637
+ | Name | Type | Description | Notes |
638
+ | ---- | ---- | ----------- | ----- |
639
+ | **fuse_client_id** | **String** | | |
640
+ | **fuse_api_key** | **String** | | |
641
+ | **enrich_transactions_request** | [**EnrichTransactionsRequest**](EnrichTransactionsRequest.md) | | [optional] |
642
+
643
+ ### Return type
644
+
645
+ [**EnrichTransactionsResponse**](EnrichTransactionsResponse.md)
646
+
647
+ ### Authorization
648
+
649
+ [fuseApiKey](../README.md#fuseApiKey), [fuseClientId](../README.md#fuseClientId)
650
+
651
+ ### HTTP request headers
652
+
653
+ - **Content-Type**: application/json
654
+ - **Accept**: application/json
655
+
656
+
337
657
  ## exchange_financial_connections_public_token
338
658
 
339
659
  > <ExchangeFinancialConnectionsPublicTokenResponse> exchange_financial_connections_public_token(opts)
@@ -362,7 +682,7 @@ end
362
682
 
363
683
  api_instance = FuseClient::FuseApi.new
364
684
  opts = {
365
- exchange_financial_connections_public_token_request: FuseClient::ExchangeFinancialConnectionsPublicTokenRequest.new # ExchangeFinancialConnectionsPublicTokenRequest |
685
+ exchange_financial_connections_public_token_request: FuseClient::ExchangeFinancialConnectionsPublicTokenRequest.new({public_token: 'public_token_example'}) # ExchangeFinancialConnectionsPublicTokenRequest |
366
686
  }
367
687
 
368
688
  begin
@@ -414,11 +734,11 @@ end
414
734
 
415
735
  ## get_asset_report
416
736
 
417
- > <GetAssetReportResponse> get_asset_report(opts)
737
+ > <RefreshAssetReportResponse> get_asset_report(opts)
418
738
 
419
739
 
420
740
 
421
- Retrieves the Asset Report in JSON format.
741
+ Retrieves the Asset Report in JSON format. For Plaid, you will need to have the assets product enabled on your plaid account.
422
742
 
423
743
  ### Examples
424
744
 
@@ -440,7 +760,7 @@ end
440
760
 
441
761
  api_instance = FuseClient::FuseApi.new
442
762
  opts = {
443
- get_asset_report_request: FuseClient::GetAssetReportRequest.new({asset_report_token: 'asset_report_token_example'}) # GetAssetReportRequest |
763
+ get_asset_report_request: FuseClient::GetAssetReportRequest.new({access_token: 'access_token_example', asset_report_token: 'asset_report_token_example'}) # GetAssetReportRequest |
444
764
  }
445
765
 
446
766
  begin
@@ -456,7 +776,7 @@ end
456
776
 
457
777
  This returns an Array which contains the response data, status code and headers.
458
778
 
459
- > <Array(<GetAssetReportResponse>, Integer, Hash)> get_asset_report_with_http_info(opts)
779
+ > <Array(<RefreshAssetReportResponse>, Integer, Hash)> get_asset_report_with_http_info(opts)
460
780
 
461
781
  ```ruby
462
782
  begin
@@ -464,7 +784,7 @@ begin
464
784
  data, status_code, headers = api_instance.get_asset_report_with_http_info(opts)
465
785
  p status_code # => 2xx
466
786
  p headers # => { ... }
467
- p data # => <GetAssetReportResponse>
787
+ p data # => <RefreshAssetReportResponse>
468
788
  rescue FuseClient::ApiError => e
469
789
  puts "Error when calling FuseApi->get_asset_report_with_http_info: #{e}"
470
790
  end
@@ -478,7 +798,7 @@ end
478
798
 
479
799
  ### Return type
480
800
 
481
- [**GetAssetReportResponse**](GetAssetReportResponse.md)
801
+ [**RefreshAssetReportResponse**](RefreshAssetReportResponse.md)
482
802
 
483
803
  ### Authorization
484
804
 
@@ -566,6 +886,80 @@ end
566
886
  - **Accept**: application/json
567
887
 
568
888
 
889
+ ## get_finance_score
890
+
891
+ > <GetFinanceScoreResponse> get_finance_score(account_id)
892
+
893
+ Get finance score
894
+
895
+ ### Examples
896
+
897
+ ```ruby
898
+ require 'time'
899
+ require 'fuse_client'
900
+ # setup authorization
901
+ FuseClient.configure do |config|
902
+ # Configure API key authorization: fuseApiKey
903
+ config.api_key['fuseApiKey'] = 'YOUR API KEY'
904
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
905
+ # config.api_key_prefix['fuseApiKey'] = 'Bearer'
906
+
907
+ # Configure API key authorization: fuseClientId
908
+ config.api_key['fuseClientId'] = 'YOUR API KEY'
909
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
910
+ # config.api_key_prefix['fuseClientId'] = 'Bearer'
911
+ end
912
+
913
+ api_instance = FuseClient::FuseApi.new
914
+ account_id = 'account_id_example' # String |
915
+
916
+ begin
917
+ # Get finance score
918
+ result = api_instance.get_finance_score(account_id)
919
+ p result
920
+ rescue FuseClient::ApiError => e
921
+ puts "Error when calling FuseApi->get_finance_score: #{e}"
922
+ end
923
+ ```
924
+
925
+ #### Using the get_finance_score_with_http_info variant
926
+
927
+ This returns an Array which contains the response data, status code and headers.
928
+
929
+ > <Array(<GetFinanceScoreResponse>, Integer, Hash)> get_finance_score_with_http_info(account_id)
930
+
931
+ ```ruby
932
+ begin
933
+ # Get finance score
934
+ data, status_code, headers = api_instance.get_finance_score_with_http_info(account_id)
935
+ p status_code # => 2xx
936
+ p headers # => { ... }
937
+ p data # => <GetFinanceScoreResponse>
938
+ rescue FuseClient::ApiError => e
939
+ puts "Error when calling FuseApi->get_finance_score_with_http_info: #{e}"
940
+ end
941
+ ```
942
+
943
+ ### Parameters
944
+
945
+ | Name | Type | Description | Notes |
946
+ | ---- | ---- | ----------- | ----- |
947
+ | **account_id** | **String** | | |
948
+
949
+ ### Return type
950
+
951
+ [**GetFinanceScoreResponse**](GetFinanceScoreResponse.md)
952
+
953
+ ### Authorization
954
+
955
+ [fuseApiKey](../README.md#fuseApiKey), [fuseClientId](../README.md#fuseClientId)
956
+
957
+ ### HTTP request headers
958
+
959
+ - **Content-Type**: Not defined
960
+ - **Accept**: application/json
961
+
962
+
569
963
  ## get_financial_connection
570
964
 
571
965
  > <GetFinancialConnectionResponse> get_financial_connection(financial_connection_id)
@@ -714,6 +1108,84 @@ end
714
1108
  - **Accept**: application/json
715
1109
 
716
1110
 
1111
+ ## get_financial_connections_account_statement
1112
+
1113
+ > <GetFinancialConnectionsAccountStatementResponse> get_financial_connections_account_statement(opts)
1114
+
1115
+
1116
+
1117
+ Retrieves an account statement for the given financial connection, account and date. This endpoint may time out so we recommend using a retry mechanism with exponential backoff.
1118
+
1119
+ ### Examples
1120
+
1121
+ ```ruby
1122
+ require 'time'
1123
+ require 'fuse_client'
1124
+ # setup authorization
1125
+ FuseClient.configure do |config|
1126
+ # Configure API key authorization: fuseApiKey
1127
+ config.api_key['fuseApiKey'] = 'YOUR API KEY'
1128
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1129
+ # config.api_key_prefix['fuseApiKey'] = 'Bearer'
1130
+
1131
+ # Configure API key authorization: fuseClientId
1132
+ config.api_key['fuseClientId'] = 'YOUR API KEY'
1133
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1134
+ # config.api_key_prefix['fuseClientId'] = 'Bearer'
1135
+ end
1136
+
1137
+ api_instance = FuseClient::FuseApi.new
1138
+ opts = {
1139
+ get_financial_connections_account_statement_request: FuseClient::GetFinancialConnectionsAccountStatementRequest.new({access_token: 'access_token_example', remote_account_id: 'remote_account_id_example'}) # GetFinancialConnectionsAccountStatementRequest |
1140
+ }
1141
+
1142
+ begin
1143
+
1144
+ result = api_instance.get_financial_connections_account_statement(opts)
1145
+ p result
1146
+ rescue FuseClient::ApiError => e
1147
+ puts "Error when calling FuseApi->get_financial_connections_account_statement: #{e}"
1148
+ end
1149
+ ```
1150
+
1151
+ #### Using the get_financial_connections_account_statement_with_http_info variant
1152
+
1153
+ This returns an Array which contains the response data, status code and headers.
1154
+
1155
+ > <Array(<GetFinancialConnectionsAccountStatementResponse>, Integer, Hash)> get_financial_connections_account_statement_with_http_info(opts)
1156
+
1157
+ ```ruby
1158
+ begin
1159
+
1160
+ data, status_code, headers = api_instance.get_financial_connections_account_statement_with_http_info(opts)
1161
+ p status_code # => 2xx
1162
+ p headers # => { ... }
1163
+ p data # => <GetFinancialConnectionsAccountStatementResponse>
1164
+ rescue FuseClient::ApiError => e
1165
+ puts "Error when calling FuseApi->get_financial_connections_account_statement_with_http_info: #{e}"
1166
+ end
1167
+ ```
1168
+
1169
+ ### Parameters
1170
+
1171
+ | Name | Type | Description | Notes |
1172
+ | ---- | ---- | ----------- | ----- |
1173
+ | **get_financial_connections_account_statement_request** | [**GetFinancialConnectionsAccountStatementRequest**](GetFinancialConnectionsAccountStatementRequest.md) | | [optional] |
1174
+
1175
+ ### Return type
1176
+
1177
+ [**GetFinancialConnectionsAccountStatementResponse**](GetFinancialConnectionsAccountStatementResponse.md)
1178
+
1179
+ ### Authorization
1180
+
1181
+ [fuseApiKey](../README.md#fuseApiKey), [fuseClientId](../README.md#fuseClientId)
1182
+
1183
+ ### HTTP request headers
1184
+
1185
+ - **Content-Type**: application/json
1186
+ - **Accept**: application/json
1187
+
1188
+
717
1189
  ## get_financial_connections_accounts
718
1190
 
719
1191
  > <GetFinancialConnectionsAccountsResponse> get_financial_connections_accounts(get_financial_connections_accounts_request)
@@ -1185,7 +1657,7 @@ FuseClient.configure do |config|
1185
1657
  end
1186
1658
 
1187
1659
  api_instance = FuseClient::FuseApi.new
1188
- get_investment_transactions_request = FuseClient::GetInvestmentTransactionsRequest.new({access_token: 'access_token_example'}) # GetInvestmentTransactionsRequest |
1660
+ get_investment_transactions_request = FuseClient::GetInvestmentTransactionsRequest.new({access_token: 'access_token_example', start_date: 'start_date_example', end_date: 'end_date_example', page: 37, records_per_page: 37}) # GetInvestmentTransactionsRequest |
1189
1661
 
1190
1662
  begin
1191
1663
  # Get investment transactions
@@ -1234,6 +1706,80 @@ end
1234
1706
  - **Accept**: application/json
1235
1707
 
1236
1708
 
1709
+ ## get_spend_power
1710
+
1711
+ > <GetSpendPowerResponse> get_spend_power(spend_power_id)
1712
+
1713
+ Get spend power
1714
+
1715
+ ### Examples
1716
+
1717
+ ```ruby
1718
+ require 'time'
1719
+ require 'fuse_client'
1720
+ # setup authorization
1721
+ FuseClient.configure do |config|
1722
+ # Configure API key authorization: fuseApiKey
1723
+ config.api_key['fuseApiKey'] = 'YOUR API KEY'
1724
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1725
+ # config.api_key_prefix['fuseApiKey'] = 'Bearer'
1726
+
1727
+ # Configure API key authorization: fuseClientId
1728
+ config.api_key['fuseClientId'] = 'YOUR API KEY'
1729
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1730
+ # config.api_key_prefix['fuseClientId'] = 'Bearer'
1731
+ end
1732
+
1733
+ api_instance = FuseClient::FuseApi.new
1734
+ spend_power_id = 'spend_power_id_example' # String |
1735
+
1736
+ begin
1737
+ # Get spend power
1738
+ result = api_instance.get_spend_power(spend_power_id)
1739
+ p result
1740
+ rescue FuseClient::ApiError => e
1741
+ puts "Error when calling FuseApi->get_spend_power: #{e}"
1742
+ end
1743
+ ```
1744
+
1745
+ #### Using the get_spend_power_with_http_info variant
1746
+
1747
+ This returns an Array which contains the response data, status code and headers.
1748
+
1749
+ > <Array(<GetSpendPowerResponse>, Integer, Hash)> get_spend_power_with_http_info(spend_power_id)
1750
+
1751
+ ```ruby
1752
+ begin
1753
+ # Get spend power
1754
+ data, status_code, headers = api_instance.get_spend_power_with_http_info(spend_power_id)
1755
+ p status_code # => 2xx
1756
+ p headers # => { ... }
1757
+ p data # => <GetSpendPowerResponse>
1758
+ rescue FuseClient::ApiError => e
1759
+ puts "Error when calling FuseApi->get_spend_power_with_http_info: #{e}"
1760
+ end
1761
+ ```
1762
+
1763
+ ### Parameters
1764
+
1765
+ | Name | Type | Description | Notes |
1766
+ | ---- | ---- | ----------- | ----- |
1767
+ | **spend_power_id** | **String** | | |
1768
+
1769
+ ### Return type
1770
+
1771
+ [**GetSpendPowerResponse**](GetSpendPowerResponse.md)
1772
+
1773
+ ### Authorization
1774
+
1775
+ [fuseApiKey](../README.md#fuseApiKey), [fuseClientId](../README.md#fuseClientId)
1776
+
1777
+ ### HTTP request headers
1778
+
1779
+ - **Content-Type**: Not defined
1780
+ - **Accept**: application/json
1781
+
1782
+
1237
1783
  ## migrate_financial_connection
1238
1784
 
1239
1785
  > <MigrateFinancialConnectionsTokenResponse> migrate_financial_connection(opts)
@@ -1314,11 +1860,11 @@ end
1314
1860
 
1315
1861
  ## refresh_asset_report
1316
1862
 
1317
- > <CreateAssetReportResponse> refresh_asset_report(opts)
1863
+ > <AssetReportResponse> refresh_asset_report(opts)
1318
1864
 
1319
1865
 
1320
1866
 
1321
- Refreshes the Asset Report in JSON format.
1867
+ Refreshes the Asset Report in JSON format. For Plaid, you will need to have the assets product enabled on your plaid account.
1322
1868
 
1323
1869
  ### Examples
1324
1870
 
@@ -1340,7 +1886,7 @@ end
1340
1886
 
1341
1887
  api_instance = FuseClient::FuseApi.new
1342
1888
  opts = {
1343
- refresh_asset_report_request: FuseClient::RefreshAssetReportRequest.new({days_requested: 3.56}) # RefreshAssetReportRequest |
1889
+ refresh_asset_report_request: FuseClient::RefreshAssetReportRequest.new({access_token: 'access_token_example', asset_report_token: 'asset_report_token_example'}) # RefreshAssetReportRequest |
1344
1890
  }
1345
1891
 
1346
1892
  begin
@@ -1356,7 +1902,7 @@ end
1356
1902
 
1357
1903
  This returns an Array which contains the response data, status code and headers.
1358
1904
 
1359
- > <Array(<CreateAssetReportResponse>, Integer, Hash)> refresh_asset_report_with_http_info(opts)
1905
+ > <Array(<AssetReportResponse>, Integer, Hash)> refresh_asset_report_with_http_info(opts)
1360
1906
 
1361
1907
  ```ruby
1362
1908
  begin
@@ -1364,7 +1910,7 @@ begin
1364
1910
  data, status_code, headers = api_instance.refresh_asset_report_with_http_info(opts)
1365
1911
  p status_code # => 2xx
1366
1912
  p headers # => { ... }
1367
- p data # => <CreateAssetReportResponse>
1913
+ p data # => <AssetReportResponse>
1368
1914
  rescue FuseClient::ApiError => e
1369
1915
  puts "Error when calling FuseApi->refresh_asset_report_with_http_info: #{e}"
1370
1916
  end
@@ -1378,7 +1924,7 @@ end
1378
1924
 
1379
1925
  ### Return type
1380
1926
 
1381
- [**CreateAssetReportResponse**](CreateAssetReportResponse.md)
1927
+ [**AssetReportResponse**](AssetReportResponse.md)
1382
1928
 
1383
1929
  ### Authorization
1384
1930
 
@@ -1466,6 +2012,84 @@ end
1466
2012
  - **Accept**: application/json
1467
2013
 
1468
2014
 
2015
+ ## update_spend_power_customization
2016
+
2017
+ > <UpdateSpendPowerCustomizationResponse> update_spend_power_customization(spend_power_customization_id, opts)
2018
+
2019
+ Update spend power customization
2020
+
2021
+ ### Examples
2022
+
2023
+ ```ruby
2024
+ require 'time'
2025
+ require 'fuse_client'
2026
+ # setup authorization
2027
+ FuseClient.configure do |config|
2028
+ # Configure API key authorization: fuseApiKey
2029
+ config.api_key['fuseApiKey'] = 'YOUR API KEY'
2030
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2031
+ # config.api_key_prefix['fuseApiKey'] = 'Bearer'
2032
+
2033
+ # Configure API key authorization: fuseClientId
2034
+ config.api_key['fuseClientId'] = 'YOUR API KEY'
2035
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2036
+ # config.api_key_prefix['fuseClientId'] = 'Bearer'
2037
+ end
2038
+
2039
+ api_instance = FuseClient::FuseApi.new
2040
+ spend_power_customization_id = 'spend_power_customization_id_example' # String |
2041
+ opts = {
2042
+ update_spend_power_customization_request: FuseClient::UpdateSpendPowerCustomizationRequest.new # UpdateSpendPowerCustomizationRequest |
2043
+ }
2044
+
2045
+ begin
2046
+ # Update spend power customization
2047
+ result = api_instance.update_spend_power_customization(spend_power_customization_id, opts)
2048
+ p result
2049
+ rescue FuseClient::ApiError => e
2050
+ puts "Error when calling FuseApi->update_spend_power_customization: #{e}"
2051
+ end
2052
+ ```
2053
+
2054
+ #### Using the update_spend_power_customization_with_http_info variant
2055
+
2056
+ This returns an Array which contains the response data, status code and headers.
2057
+
2058
+ > <Array(<UpdateSpendPowerCustomizationResponse>, Integer, Hash)> update_spend_power_customization_with_http_info(spend_power_customization_id, opts)
2059
+
2060
+ ```ruby
2061
+ begin
2062
+ # Update spend power customization
2063
+ data, status_code, headers = api_instance.update_spend_power_customization_with_http_info(spend_power_customization_id, opts)
2064
+ p status_code # => 2xx
2065
+ p headers # => { ... }
2066
+ p data # => <UpdateSpendPowerCustomizationResponse>
2067
+ rescue FuseClient::ApiError => e
2068
+ puts "Error when calling FuseApi->update_spend_power_customization_with_http_info: #{e}"
2069
+ end
2070
+ ```
2071
+
2072
+ ### Parameters
2073
+
2074
+ | Name | Type | Description | Notes |
2075
+ | ---- | ---- | ----------- | ----- |
2076
+ | **spend_power_customization_id** | **String** | | |
2077
+ | **update_spend_power_customization_request** | [**UpdateSpendPowerCustomizationRequest**](UpdateSpendPowerCustomizationRequest.md) | | [optional] |
2078
+
2079
+ ### Return type
2080
+
2081
+ [**UpdateSpendPowerCustomizationResponse**](UpdateSpendPowerCustomizationResponse.md)
2082
+
2083
+ ### Authorization
2084
+
2085
+ [fuseApiKey](../README.md#fuseApiKey), [fuseClientId](../README.md#fuseClientId)
2086
+
2087
+ ### HTTP request headers
2088
+
2089
+ - **Content-Type**: application/json
2090
+ - **Accept**: application/json
2091
+
2092
+
1469
2093
  ## v1_financial_connections_liabilities_post
1470
2094
 
1471
2095
  > <GetLiabilitiesResponse> v1_financial_connections_liabilities_post(get_liabilities_request)