fuse_client 1.0.7 → 1.0.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (277) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +6 -5
  3. data/docs/AccountSubType.md +15 -0
  4. data/docs/AccountType.md +15 -0
  5. data/docs/CountryCode.md +15 -0
  6. data/docs/CreateLinkTokenRequest.md +0 -2
  7. data/docs/CreateLinkTokenResponse.md +2 -2
  8. data/docs/CreateSessionRequest.md +9 -1
  9. data/docs/CreateSessionResponse.md +3 -3
  10. data/docs/Currency.md +20 -0
  11. data/docs/DeleteFinancialConnectionResponse.md +22 -0
  12. data/docs/ExchangeFinancialConnectionsPublicTokenResponse.md +3 -3
  13. data/docs/FinancialConnectionData.md +2 -2
  14. data/docs/FinancialConnectionDetails.md +32 -0
  15. data/docs/FinancialConnectionDetailsMx.md +20 -0
  16. data/docs/FinancialConnectionDetailsPlaid.md +20 -0
  17. data/docs/FinancialConnectionDetailsTeller.md +20 -0
  18. data/docs/FinancialConnectionsAccount.md +8 -8
  19. data/docs/FinancialConnectionsAccountBalance.md +5 -3
  20. data/docs/FinancialConnectionsAccountCachedBalance.md +24 -0
  21. data/docs/FinancialConnectionsAccountDetails.md +2 -2
  22. data/docs/FinancialConnectionsAccountLiability.md +8 -8
  23. data/docs/FinancialConnectionsHolding.md +8 -8
  24. data/docs/FinancialConnectionsInvestmentSecurity.md +17 -7
  25. data/docs/FinancialConnectionsInvestmentSecurityExchange.md +18 -0
  26. data/docs/FinancialConnectionsInvestmentTransaction.md +22 -2
  27. data/docs/FinancialConnectionsOwner.md +4 -4
  28. data/docs/FinancialConnectionsOwnerEmailsInner.md +1 -1
  29. data/docs/FinancialConnectionsOwnerNamesInner.md +1 -1
  30. data/docs/FinancialConnectionsOwnerPhoneNumbersInner.md +1 -1
  31. data/docs/FinancialInstitution.md +3 -1
  32. data/docs/FuseApi.md +189 -185
  33. data/docs/FuseApiErrorData.md +1 -1
  34. data/docs/FuseApiWarningData.md +1 -1
  35. data/docs/GetEntityResponse.md +4 -2
  36. data/docs/GetFinancialConnectionResponse.md +20 -0
  37. data/docs/GetFinancialConnectionsAccountDetailsResponse.md +3 -3
  38. data/docs/GetFinancialConnectionsAccountsResponse.md +3 -3
  39. data/docs/GetFinancialConnectionsBalanceRequest.md +3 -1
  40. data/docs/GetFinancialConnectionsBalanceRequestOptions.md +18 -0
  41. data/docs/{GetFinancialConnectionsAccountBalanceResponse.md → GetFinancialConnectionsBalanceResponse.md} +4 -4
  42. data/docs/GetFinancialConnectionsOwnersResponse.md +1 -1
  43. data/docs/GetFinancialConnectionsOwnersResponseAccountsInner.md +3 -3
  44. data/docs/GetFinancialConnectionsTransactionsRequest.md +26 -0
  45. data/docs/GetFinancialConnectionsTransactionsResponse.md +22 -0
  46. data/docs/GetFinancialInstitutionResponse.md +2 -2
  47. data/docs/GetInvestmentHoldingsRequest.md +3 -3
  48. data/docs/GetInvestmentHoldingsRequestOptions.md +18 -0
  49. data/docs/GetInvestmentHoldingsResponse.md +3 -5
  50. data/docs/GetInvestmentTransactionsRequest.md +11 -1
  51. data/docs/GetInvestmentTransactionsRequestOptions.md +18 -0
  52. data/docs/GetInvestmentTransactionsResponse.md +3 -5
  53. data/docs/MigrateFinancialConnectionsAggregatorConnectionData.md +20 -0
  54. data/docs/MigrateFinancialConnectionsAggregatorConnectionDataMx.md +20 -0
  55. data/docs/MigrateFinancialConnectionsAggregatorConnectionDataPlaid.md +18 -0
  56. data/docs/MigrateFinancialConnectionsTokenRequest.md +24 -0
  57. data/docs/MigrateFinancialConnectionsTokenRequestEntity.md +18 -0
  58. data/docs/MigrateFinancialConnectionsTokenResponse.md +24 -0
  59. data/docs/SyncTransactionsResponse.md +2 -2
  60. data/docs/{GetTransactionsResponseDataInner.md → Transaction.md} +16 -14
  61. data/docs/{GetTransactionsResponseDataInnerMerchant.md → TransactionMerchant.md} +2 -2
  62. data/docs/WebhookEvent.md +28 -0
  63. data/docs/WebhookSource.md +15 -0
  64. data/docs/WebhookType.md +15 -0
  65. data/fuse_client.gemspec +1 -1
  66. data/lib/fuse_client/api/fuse_api.rb +181 -197
  67. data/lib/fuse_client/api_client.rb +1 -1
  68. data/lib/fuse_client/api_error.rb +1 -1
  69. data/lib/fuse_client/configuration.rb +39 -18
  70. data/lib/fuse_client/models/account_subtype.rb +178 -0
  71. data/lib/fuse_client/models/account_type.rb +45 -0
  72. data/lib/fuse_client/models/aggregator.rb +3 -3
  73. data/lib/fuse_client/models/country_code.rb +40 -0
  74. data/lib/fuse_client/models/create_asset_report_request.rb +1 -1
  75. data/lib/fuse_client/models/create_asset_report_response.rb +1 -1
  76. data/lib/fuse_client/models/create_entity_request.rb +1 -1
  77. data/lib/fuse_client/models/create_entity_response.rb +1 -1
  78. data/lib/fuse_client/models/create_link_token_request.rb +2 -12
  79. data/lib/fuse_client/models/create_link_token_request_mx.rb +1 -1
  80. data/lib/fuse_client/models/create_link_token_request_plaid.rb +1 -1
  81. data/lib/fuse_client/models/create_link_token_response.rb +11 -1
  82. data/lib/fuse_client/models/create_session_request.rb +46 -5
  83. data/lib/fuse_client/models/create_session_response.rb +16 -1
  84. data/lib/fuse_client/models/currency.rb +235 -0
  85. data/lib/fuse_client/models/delete_financial_connection_response.rb +255 -0
  86. data/lib/fuse_client/models/entity.rb +1 -1
  87. data/lib/fuse_client/models/exchange_financial_connections_public_token_request.rb +1 -1
  88. data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +16 -1
  89. data/lib/fuse_client/models/financial_connection_data.rb +11 -1
  90. data/lib/fuse_client/models/financial_connection_details.rb +345 -0
  91. data/lib/fuse_client/models/financial_connection_details_mx.rb +241 -0
  92. data/lib/fuse_client/models/{get_transactions_request.rb → financial_connection_details_plaid.rb} +19 -23
  93. data/lib/fuse_client/models/financial_connection_details_teller.rb +241 -0
  94. data/lib/fuse_client/models/financial_connections_account.rb +59 -14
  95. data/lib/fuse_client/models/financial_connections_account_balance.rb +21 -6
  96. data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +250 -0
  97. data/lib/fuse_client/models/financial_connections_account_details.rb +11 -1
  98. data/lib/fuse_client/models/financial_connections_account_details_ach.rb +1 -1
  99. data/lib/fuse_client/models/financial_connections_account_institution.rb +1 -1
  100. data/lib/fuse_client/models/financial_connections_account_liability.rb +59 -14
  101. data/lib/fuse_client/models/financial_connections_account_liability_all_of.rb +1 -1
  102. data/lib/fuse_client/models/financial_connections_account_liability_all_of_aprs.rb +1 -1
  103. data/lib/fuse_client/models/financial_connections_holding.rb +52 -23
  104. data/lib/fuse_client/models/financial_connections_investment_security.rb +92 -24
  105. data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +220 -0
  106. data/lib/fuse_client/models/financial_connections_investment_transaction.rb +158 -10
  107. data/lib/fuse_client/models/financial_connections_owner.rb +21 -1
  108. data/lib/fuse_client/models/financial_connections_owner_addresses_inner.rb +1 -1
  109. data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +1 -1
  110. data/lib/fuse_client/models/financial_connections_owner_emails_inner.rb +6 -1
  111. data/lib/fuse_client/models/financial_connections_owner_names_inner.rb +6 -1
  112. data/lib/fuse_client/models/financial_connections_owner_phone_numbers_inner.rb +6 -1
  113. data/lib/fuse_client/models/financial_institution.rb +22 -5
  114. data/lib/fuse_client/models/financial_institution_logo.rb +1 -1
  115. data/lib/fuse_client/models/fuse_api_error.rb +25 -1
  116. data/lib/fuse_client/models/fuse_api_error_data.rb +24 -2
  117. data/lib/fuse_client/models/fuse_api_warning.rb +1 -1
  118. data/lib/fuse_client/models/fuse_api_warning_data.rb +24 -2
  119. data/lib/fuse_client/models/fuse_api_warning_data_warnings_inner.rb +1 -1
  120. data/lib/fuse_client/models/get_asset_report_request.rb +1 -1
  121. data/lib/fuse_client/models/get_asset_report_response.rb +1 -1
  122. data/lib/fuse_client/models/get_asset_report_response_report.rb +1 -1
  123. data/lib/fuse_client/models/get_asset_report_response_report_accounts_inner.rb +1 -1
  124. data/lib/fuse_client/models/get_asset_report_response_report_accounts_inner_balances.rb +1 -1
  125. data/lib/fuse_client/models/get_asset_report_response_report_accounts_inner_historical_balances_inner.rb +1 -1
  126. data/lib/fuse_client/models/get_entity_response.rb +29 -2
  127. data/lib/fuse_client/models/{get_transactions_response.rb → get_financial_connection_response.rb} +21 -33
  128. data/lib/fuse_client/models/get_financial_connections_account_details_request.rb +1 -1
  129. data/lib/fuse_client/models/get_financial_connections_account_details_response.rb +16 -1
  130. data/lib/fuse_client/models/get_financial_connections_accounts_request.rb +1 -1
  131. data/lib/fuse_client/models/get_financial_connections_accounts_response.rb +16 -1
  132. data/lib/fuse_client/models/get_financial_connections_balance_request.rb +14 -5
  133. data/lib/fuse_client/models/get_financial_connections_balance_request_options.rb +222 -0
  134. data/lib/fuse_client/models/{get_financial_connections_account_balance_response.rb → get_financial_connections_balance_response.rb} +14 -4
  135. data/lib/fuse_client/models/get_financial_connections_owners_request.rb +1 -1
  136. data/lib/fuse_client/models/get_financial_connections_owners_response.rb +6 -1
  137. data/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +16 -1
  138. data/lib/fuse_client/models/get_financial_connections_transactions_request.rb +334 -0
  139. data/lib/fuse_client/models/get_financial_connections_transactions_response.rb +256 -0
  140. data/lib/fuse_client/models/get_financial_institution_response.rb +11 -1
  141. data/lib/fuse_client/models/get_investment_holdings_request.rb +9 -10
  142. data/lib/fuse_client/models/get_investment_holdings_request_options.rb +222 -0
  143. data/lib/fuse_client/models/get_investment_holdings_response.rb +18 -14
  144. data/lib/fuse_client/models/get_investment_transactions_request.rb +95 -5
  145. data/lib/fuse_client/models/get_investment_transactions_request_options.rb +222 -0
  146. data/lib/fuse_client/models/get_investment_transactions_response.rb +18 -14
  147. data/lib/fuse_client/models/get_liabilities_request.rb +1 -1
  148. data/lib/fuse_client/models/get_liabilities_response.rb +1 -1
  149. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data.rb +229 -0
  150. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_mx.rb +236 -0
  151. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_plaid.rb +226 -0
  152. data/lib/fuse_client/models/{financial_connections_investment_account.rb → migrate_financial_connections_token_request.rb} +86 -70
  153. data/lib/fuse_client/models/{transaction_common_model.rb → migrate_financial_connections_token_request_entity.rb} +12 -13
  154. data/lib/fuse_client/models/migrate_financial_connections_token_response.rb +264 -0
  155. data/lib/fuse_client/models/product.rb +3 -3
  156. data/lib/fuse_client/models/refresh_asset_report_request.rb +1 -1
  157. data/lib/fuse_client/models/sync_financial_connections_data_response.rb +1 -1
  158. data/lib/fuse_client/models/sync_transactions_request.rb +1 -1
  159. data/lib/fuse_client/models/sync_transactions_response.rb +3 -3
  160. data/lib/fuse_client/models/sync_transactions_response_removed_inner.rb +1 -1
  161. data/lib/fuse_client/models/{get_transactions_response_data_inner.rb → transaction.rb} +110 -21
  162. data/lib/fuse_client/models/{get_transactions_response_data_inner_merchant.rb → transaction_merchant.rb} +4 -4
  163. data/lib/fuse_client/models/update_entity_request.rb +1 -1
  164. data/lib/fuse_client/models/update_entity_response.rb +1 -1
  165. data/lib/fuse_client/models/{financial_connections_investment_transaction_data_inner.rb → webhook_event.rb} +94 -63
  166. data/lib/fuse_client/models/webhook_source.rb +43 -0
  167. data/lib/fuse_client/models/webhook_type.rb +42 -0
  168. data/lib/fuse_client/version.rb +2 -2
  169. data/lib/fuse_client.rb +30 -9
  170. data/spec/api/fuse_api_spec.rb +40 -39
  171. data/spec/api_client_spec.rb +3 -1
  172. data/spec/configuration_spec.rb +1 -1
  173. data/spec/models/account_subtype_spec.rb +28 -0
  174. data/spec/models/account_type_spec.rb +28 -0
  175. data/spec/models/aggregator_spec.rb +1 -1
  176. data/spec/models/country_code_spec.rb +28 -0
  177. data/spec/models/create_asset_report_request_spec.rb +1 -1
  178. data/spec/models/create_asset_report_response_spec.rb +1 -1
  179. data/spec/models/create_entity_request_spec.rb +1 -1
  180. data/spec/models/create_entity_response_spec.rb +1 -1
  181. data/spec/models/create_link_token_request_mx_spec.rb +1 -1
  182. data/spec/models/create_link_token_request_plaid_spec.rb +1 -1
  183. data/spec/models/create_link_token_request_spec.rb +1 -7
  184. data/spec/models/create_link_token_response_spec.rb +1 -1
  185. data/spec/models/create_session_request_spec.rb +25 -1
  186. data/spec/models/create_session_response_spec.rb +1 -1
  187. data/spec/models/{get_transactions_response_data_inner_merchant_spec.rb → currency_spec.rb} +13 -7
  188. data/spec/models/{get_transactions_request_spec.rb → delete_financial_connection_response_spec.rb} +10 -10
  189. data/spec/models/entity_spec.rb +1 -1
  190. data/spec/models/exchange_financial_connections_public_token_request_spec.rb +1 -1
  191. data/spec/models/exchange_financial_connections_public_token_response_spec.rb +1 -1
  192. data/spec/models/financial_connection_data_spec.rb +1 -1
  193. data/spec/models/financial_connection_details_mx_spec.rb +40 -0
  194. data/spec/models/financial_connection_details_plaid_spec.rb +40 -0
  195. data/spec/models/{financial_connections_investment_transaction_data_inner_spec.rb → financial_connection_details_spec.rb} +18 -14
  196. data/spec/models/financial_connection_details_teller_spec.rb +40 -0
  197. data/spec/models/financial_connections_account_balance_spec.rb +7 -1
  198. data/spec/models/financial_connections_account_cached_balance_spec.rb +52 -0
  199. data/spec/models/financial_connections_account_details_ach_spec.rb +1 -1
  200. data/spec/models/financial_connections_account_details_spec.rb +1 -1
  201. data/spec/models/financial_connections_account_institution_spec.rb +1 -1
  202. data/spec/models/financial_connections_account_liability_all_of_aprs_spec.rb +1 -1
  203. data/spec/models/financial_connections_account_liability_all_of_spec.rb +1 -1
  204. data/spec/models/financial_connections_account_liability_spec.rb +2 -2
  205. data/spec/models/financial_connections_account_spec.rb +2 -2
  206. data/spec/models/financial_connections_holding_spec.rb +4 -4
  207. data/spec/models/financial_connections_investment_security_exchange_spec.rb +34 -0
  208. data/spec/models/financial_connections_investment_security_spec.rb +34 -4
  209. data/spec/models/financial_connections_investment_transaction_spec.rb +62 -2
  210. data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +1 -1
  211. data/spec/models/financial_connections_owner_addresses_inner_spec.rb +1 -1
  212. data/spec/models/financial_connections_owner_emails_inner_spec.rb +1 -1
  213. data/spec/models/financial_connections_owner_names_inner_spec.rb +1 -1
  214. data/spec/models/financial_connections_owner_phone_numbers_inner_spec.rb +1 -1
  215. data/spec/models/financial_connections_owner_spec.rb +1 -1
  216. data/spec/models/financial_institution_logo_spec.rb +1 -1
  217. data/spec/models/financial_institution_spec.rb +7 -1
  218. data/spec/models/fuse_api_error_data_spec.rb +1 -1
  219. data/spec/models/fuse_api_error_spec.rb +9 -1
  220. data/spec/models/fuse_api_warning_data_spec.rb +1 -1
  221. data/spec/models/fuse_api_warning_data_warnings_inner_spec.rb +1 -1
  222. data/spec/models/fuse_api_warning_spec.rb +1 -1
  223. data/spec/models/get_asset_report_request_spec.rb +1 -1
  224. data/spec/models/get_asset_report_response_report_accounts_inner_balances_spec.rb +1 -1
  225. data/spec/models/get_asset_report_response_report_accounts_inner_historical_balances_inner_spec.rb +1 -1
  226. data/spec/models/get_asset_report_response_report_accounts_inner_spec.rb +1 -1
  227. data/spec/models/get_asset_report_response_report_spec.rb +1 -1
  228. data/spec/models/get_asset_report_response_spec.rb +1 -1
  229. data/spec/models/get_entity_response_spec.rb +7 -1
  230. data/spec/models/get_financial_connection_response_spec.rb +40 -0
  231. data/spec/models/get_financial_connections_account_details_request_spec.rb +1 -1
  232. data/spec/models/get_financial_connections_account_details_response_spec.rb +1 -1
  233. data/spec/models/get_financial_connections_accounts_request_spec.rb +1 -1
  234. data/spec/models/get_financial_connections_accounts_response_spec.rb +1 -1
  235. data/spec/models/get_financial_connections_balance_request_options_spec.rb +34 -0
  236. data/spec/models/get_financial_connections_balance_request_spec.rb +7 -1
  237. data/spec/models/{get_financial_connections_account_balance_response_spec.rb → get_financial_connections_balance_response_spec.rb} +7 -7
  238. data/spec/models/get_financial_connections_owners_request_spec.rb +1 -1
  239. data/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +1 -1
  240. data/spec/models/get_financial_connections_owners_response_spec.rb +1 -1
  241. data/spec/models/get_financial_connections_transactions_request_spec.rb +58 -0
  242. data/spec/models/get_financial_connections_transactions_response_spec.rb +46 -0
  243. data/spec/models/get_financial_institution_response_spec.rb +1 -1
  244. data/spec/models/get_investment_holdings_request_options_spec.rb +34 -0
  245. data/spec/models/get_investment_holdings_request_spec.rb +2 -2
  246. data/spec/models/get_investment_holdings_response_spec.rb +1 -7
  247. data/spec/models/get_investment_transactions_request_options_spec.rb +34 -0
  248. data/spec/models/get_investment_transactions_request_spec.rb +31 -1
  249. data/spec/models/get_investment_transactions_response_spec.rb +1 -7
  250. data/spec/models/get_liabilities_request_spec.rb +1 -1
  251. data/spec/models/get_liabilities_response_spec.rb +1 -1
  252. data/spec/models/migrate_financial_connections_aggregator_connection_data_mx_spec.rb +40 -0
  253. data/spec/models/migrate_financial_connections_aggregator_connection_data_plaid_spec.rb +34 -0
  254. data/spec/models/migrate_financial_connections_aggregator_connection_data_spec.rb +40 -0
  255. data/spec/models/migrate_financial_connections_token_request_entity_spec.rb +34 -0
  256. data/spec/models/migrate_financial_connections_token_request_spec.rb +56 -0
  257. data/spec/models/{get_transactions_response_spec.rb → migrate_financial_connections_token_response_spec.rb} +10 -10
  258. data/spec/models/product_spec.rb +1 -1
  259. data/spec/models/refresh_asset_report_request_spec.rb +1 -1
  260. data/spec/models/sync_financial_connections_data_response_spec.rb +1 -1
  261. data/spec/models/sync_transactions_request_spec.rb +1 -1
  262. data/spec/models/sync_transactions_response_removed_inner_spec.rb +1 -1
  263. data/spec/models/sync_transactions_response_spec.rb +1 -1
  264. data/spec/models/{transaction_common_model_spec.rb → transaction_merchant_spec.rb} +8 -8
  265. data/spec/models/{get_transactions_response_data_inner_spec.rb → transaction_spec.rb} +23 -13
  266. data/spec/models/update_entity_request_spec.rb +1 -1
  267. data/spec/models/update_entity_response_spec.rb +1 -1
  268. data/spec/models/{financial_connections_investment_account_spec.rb → webhook_event_spec.rb} +17 -25
  269. data/spec/models/webhook_source_spec.rb +28 -0
  270. data/spec/models/webhook_type_spec.rb +28 -0
  271. data/spec/spec_helper.rb +1 -1
  272. metadata +118 -34
  273. data/docs/FinancialConnectionsInvestmentAccount.md +0 -32
  274. data/docs/FinancialConnectionsInvestmentTransactionDataInner.md +0 -32
  275. data/docs/GetTransactionsRequest.md +0 -22
  276. data/docs/GetTransactionsResponse.md +0 -24
  277. data/docs/TransactionCommonModel.md +0 -18
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.3.0
9
+ OpenAPI Generator version: 6.4.0
10
10
 
11
11
  =end
12
12
 
@@ -81,29 +81,25 @@ module FuseClient
81
81
  return data, status_code, headers
82
82
  end
83
83
 
84
- # Create entity
85
- # @param create_entity_request [CreateEntityRequest]
84
+ # Create a link token to start the process of a user connecting to a specific financial institution.
86
85
  # @param [Hash] opts the optional parameters
87
- # @return [CreateEntityResponse]
88
- def create_entity(create_entity_request, opts = {})
89
- data, _status_code, _headers = create_entity_with_http_info(create_entity_request, opts)
86
+ # @option opts [CreateLinkTokenRequest] :create_link_token_request
87
+ # @return [CreateLinkTokenResponse]
88
+ def create_link_token(opts = {})
89
+ data, _status_code, _headers = create_link_token_with_http_info(opts)
90
90
  data
91
91
  end
92
92
 
93
- # Create entity
94
- # @param create_entity_request [CreateEntityRequest]
93
+ # Create a link token to start the process of a user connecting to a specific financial institution.
95
94
  # @param [Hash] opts the optional parameters
96
- # @return [Array<(CreateEntityResponse, Integer, Hash)>] CreateEntityResponse data, response status code and response headers
97
- def create_entity_with_http_info(create_entity_request, opts = {})
95
+ # @option opts [CreateLinkTokenRequest] :create_link_token_request
96
+ # @return [Array<(CreateLinkTokenResponse, Integer, Hash)>] CreateLinkTokenResponse data, response status code and response headers
97
+ def create_link_token_with_http_info(opts = {})
98
98
  if @api_client.config.debugging
99
- @api_client.config.logger.debug 'Calling API: FuseApi.create_entity ...'
100
- end
101
- # verify the required parameter 'create_entity_request' is set
102
- if @api_client.config.client_side_validation && create_entity_request.nil?
103
- fail ArgumentError, "Missing the required parameter 'create_entity_request' when calling FuseApi.create_entity"
99
+ @api_client.config.logger.debug 'Calling API: FuseApi.create_link_token ...'
104
100
  end
105
101
  # resource path
106
- local_var_path = '/v1/entities'
102
+ local_var_path = '/v1/link/token'
107
103
 
108
104
  # query parameters
109
105
  query_params = opts[:query_params] || {}
@@ -122,16 +118,16 @@ module FuseClient
122
118
  form_params = opts[:form_params] || {}
123
119
 
124
120
  # http body (model)
125
- post_body = opts[:debug_body] || @api_client.object_to_http_body(create_entity_request)
121
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_link_token_request'])
126
122
 
127
123
  # return_type
128
- return_type = opts[:debug_return_type] || 'CreateEntityResponse'
124
+ return_type = opts[:debug_return_type] || 'CreateLinkTokenResponse'
129
125
 
130
126
  # auth_names
131
127
  auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
132
128
 
133
129
  new_options = opts.merge(
134
- :operation => :"FuseApi.create_entity",
130
+ :operation => :"FuseApi.create_link_token",
135
131
  :header_params => header_params,
136
132
  :query_params => query_params,
137
133
  :form_params => form_params,
@@ -142,30 +138,30 @@ module FuseClient
142
138
 
143
139
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
144
140
  if @api_client.config.debugging
145
- @api_client.config.logger.debug "API called: FuseApi#create_entity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
141
+ @api_client.config.logger.debug "API called: FuseApi#create_link_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
146
142
  end
147
143
  return data, status_code, headers
148
144
  end
149
145
 
150
- # Create a link token to start the process of a user connecting to a specific financial institution.
146
+ # Creates a session that returns a client_secret which is required as a parameter when initializing the Fuse SDK.
151
147
  # @param [Hash] opts the optional parameters
152
- # @option opts [CreateLinkTokenRequest] :create_link_token_request
153
- # @return [CreateLinkTokenResponse]
154
- def create_link_token(opts = {})
155
- data, _status_code, _headers = create_link_token_with_http_info(opts)
148
+ # @option opts [CreateSessionRequest] :create_session_request
149
+ # @return [CreateSessionResponse]
150
+ def create_session(opts = {})
151
+ data, _status_code, _headers = create_session_with_http_info(opts)
156
152
  data
157
153
  end
158
154
 
159
- # Create a link token to start the process of a user connecting to a specific financial institution.
155
+ # Creates a session that returns a client_secret which is required as a parameter when initializing the Fuse SDK.
160
156
  # @param [Hash] opts the optional parameters
161
- # @option opts [CreateLinkTokenRequest] :create_link_token_request
162
- # @return [Array<(CreateLinkTokenResponse, Integer, Hash)>] CreateLinkTokenResponse data, response status code and response headers
163
- def create_link_token_with_http_info(opts = {})
157
+ # @option opts [CreateSessionRequest] :create_session_request
158
+ # @return [Array<(CreateSessionResponse, Integer, Hash)>] CreateSessionResponse data, response status code and response headers
159
+ def create_session_with_http_info(opts = {})
164
160
  if @api_client.config.debugging
165
- @api_client.config.logger.debug 'Calling API: FuseApi.create_link_token ...'
161
+ @api_client.config.logger.debug 'Calling API: FuseApi.create_session ...'
166
162
  end
167
163
  # resource path
168
- local_var_path = '/v1/link/token'
164
+ local_var_path = '/v1/session'
169
165
 
170
166
  # query parameters
171
167
  query_params = opts[:query_params] || {}
@@ -184,16 +180,16 @@ module FuseClient
184
180
  form_params = opts[:form_params] || {}
185
181
 
186
182
  # http body (model)
187
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_link_token_request'])
183
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_session_request'])
188
184
 
189
185
  # return_type
190
- return_type = opts[:debug_return_type] || 'CreateLinkTokenResponse'
186
+ return_type = opts[:debug_return_type] || 'CreateSessionResponse'
191
187
 
192
188
  # auth_names
193
189
  auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
194
190
 
195
191
  new_options = opts.merge(
196
- :operation => :"FuseApi.create_link_token",
192
+ :operation => :"FuseApi.create_session",
197
193
  :header_params => header_params,
198
194
  :query_params => query_params,
199
195
  :form_params => form_params,
@@ -204,30 +200,34 @@ module FuseClient
204
200
 
205
201
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
206
202
  if @api_client.config.debugging
207
- @api_client.config.logger.debug "API called: FuseApi#create_link_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
203
+ @api_client.config.logger.debug "API called: FuseApi#create_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
208
204
  end
209
205
  return data, status_code, headers
210
206
  end
211
207
 
212
- # Creates a session that returns a client_secret which is required as a parameter when initializing the Fuse SDK.
208
+ # Delete a financial connection
209
+ # @param financial_connection_id_to_delete [String]
213
210
  # @param [Hash] opts the optional parameters
214
- # @option opts [CreateSessionRequest] :create_session_request
215
- # @return [CreateSessionResponse]
216
- def create_session(opts = {})
217
- data, _status_code, _headers = create_session_with_http_info(opts)
211
+ # @return [DeleteFinancialConnectionResponse]
212
+ def delete_financial_connection(financial_connection_id_to_delete, opts = {})
213
+ data, _status_code, _headers = delete_financial_connection_with_http_info(financial_connection_id_to_delete, opts)
218
214
  data
219
215
  end
220
216
 
221
- # Creates a session that returns a client_secret which is required as a parameter when initializing the Fuse SDK.
217
+ # Delete a financial connection
218
+ # @param financial_connection_id_to_delete [String]
222
219
  # @param [Hash] opts the optional parameters
223
- # @option opts [CreateSessionRequest] :create_session_request
224
- # @return [Array<(CreateSessionResponse, Integer, Hash)>] CreateSessionResponse data, response status code and response headers
225
- def create_session_with_http_info(opts = {})
220
+ # @return [Array<(DeleteFinancialConnectionResponse, Integer, Hash)>] DeleteFinancialConnectionResponse data, response status code and response headers
221
+ def delete_financial_connection_with_http_info(financial_connection_id_to_delete, opts = {})
226
222
  if @api_client.config.debugging
227
- @api_client.config.logger.debug 'Calling API: FuseApi.create_session ...'
223
+ @api_client.config.logger.debug 'Calling API: FuseApi.delete_financial_connection ...'
224
+ end
225
+ # verify the required parameter 'financial_connection_id_to_delete' is set
226
+ if @api_client.config.client_side_validation && financial_connection_id_to_delete.nil?
227
+ fail ArgumentError, "Missing the required parameter 'financial_connection_id_to_delete' when calling FuseApi.delete_financial_connection"
228
228
  end
229
229
  # resource path
230
- local_var_path = '/v1/session'
230
+ local_var_path = '/v1/financial_connections/{financial_connection_id_to_delete}'.sub('{' + 'financial_connection_id_to_delete' + '}', CGI.escape(financial_connection_id_to_delete.to_s))
231
231
 
232
232
  # query parameters
233
233
  query_params = opts[:query_params] || {}
@@ -236,26 +236,21 @@ module FuseClient
236
236
  header_params = opts[:header_params] || {}
237
237
  # HTTP header 'Accept' (if needed)
238
238
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
239
- # HTTP header 'Content-Type'
240
- content_type = @api_client.select_header_content_type(['application/json'])
241
- if !content_type.nil?
242
- header_params['Content-Type'] = content_type
243
- end
244
239
 
245
240
  # form parameters
246
241
  form_params = opts[:form_params] || {}
247
242
 
248
243
  # http body (model)
249
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_session_request'])
244
+ post_body = opts[:debug_body]
250
245
 
251
246
  # return_type
252
- return_type = opts[:debug_return_type] || 'CreateSessionResponse'
247
+ return_type = opts[:debug_return_type] || 'DeleteFinancialConnectionResponse'
253
248
 
254
249
  # auth_names
255
250
  auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
256
251
 
257
252
  new_options = opts.merge(
258
- :operation => :"FuseApi.create_session",
253
+ :operation => :"FuseApi.delete_financial_connection",
259
254
  :header_params => header_params,
260
255
  :query_params => query_params,
261
256
  :form_params => form_params,
@@ -264,9 +259,9 @@ module FuseClient
264
259
  :return_type => return_type
265
260
  )
266
261
 
267
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
262
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
268
263
  if @api_client.config.debugging
269
- @api_client.config.logger.debug "API called: FuseApi#create_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
264
+ @api_client.config.logger.debug "API called: FuseApi#delete_financial_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
270
265
  end
271
266
  return data, status_code, headers
272
267
  end
@@ -396,6 +391,7 @@ module FuseClient
396
391
  end
397
392
 
398
393
  # Get entity
394
+ # An entity is automatically created after a successful connection. The id of the entity is what is set when calling the 'create session' endpoint
399
395
  # @param entity_id [String]
400
396
  # @param [Hash] opts the optional parameters
401
397
  # @return [GetEntityResponse]
@@ -405,6 +401,7 @@ module FuseClient
405
401
  end
406
402
 
407
403
  # Get entity
404
+ # An entity is automatically created after a successful connection. The id of the entity is what is set when calling the &#39;create session&#39; endpoint
408
405
  # @param entity_id [String]
409
406
  # @param [Hash] opts the optional parameters
410
407
  # @return [Array<(GetEntityResponse, Integer, Hash)>] GetEntityResponse data, response status code and response headers
@@ -456,6 +453,67 @@ module FuseClient
456
453
  return data, status_code, headers
457
454
  end
458
455
 
456
+ # Get financial connection details
457
+ # @param financial_connection_id [String]
458
+ # @param [Hash] opts the optional parameters
459
+ # @return [GetFinancialConnectionResponse]
460
+ def get_financial_connection(financial_connection_id, opts = {})
461
+ data, _status_code, _headers = get_financial_connection_with_http_info(financial_connection_id, opts)
462
+ data
463
+ end
464
+
465
+ # Get financial connection details
466
+ # @param financial_connection_id [String]
467
+ # @param [Hash] opts the optional parameters
468
+ # @return [Array<(GetFinancialConnectionResponse, Integer, Hash)>] GetFinancialConnectionResponse data, response status code and response headers
469
+ def get_financial_connection_with_http_info(financial_connection_id, opts = {})
470
+ if @api_client.config.debugging
471
+ @api_client.config.logger.debug 'Calling API: FuseApi.get_financial_connection ...'
472
+ end
473
+ # verify the required parameter 'financial_connection_id' is set
474
+ if @api_client.config.client_side_validation && financial_connection_id.nil?
475
+ fail ArgumentError, "Missing the required parameter 'financial_connection_id' when calling FuseApi.get_financial_connection"
476
+ end
477
+ # resource path
478
+ local_var_path = '/v1/financial_connections/{financial_connection_id}'.sub('{' + 'financial_connection_id' + '}', CGI.escape(financial_connection_id.to_s))
479
+
480
+ # query parameters
481
+ query_params = opts[:query_params] || {}
482
+
483
+ # header parameters
484
+ header_params = opts[:header_params] || {}
485
+ # HTTP header 'Accept' (if needed)
486
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
487
+
488
+ # form parameters
489
+ form_params = opts[:form_params] || {}
490
+
491
+ # http body (model)
492
+ post_body = opts[:debug_body]
493
+
494
+ # return_type
495
+ return_type = opts[:debug_return_type] || 'GetFinancialConnectionResponse'
496
+
497
+ # auth_names
498
+ auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
499
+
500
+ new_options = opts.merge(
501
+ :operation => :"FuseApi.get_financial_connection",
502
+ :header_params => header_params,
503
+ :query_params => query_params,
504
+ :form_params => form_params,
505
+ :body => post_body,
506
+ :auth_names => auth_names,
507
+ :return_type => return_type
508
+ )
509
+
510
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
511
+ if @api_client.config.debugging
512
+ @api_client.config.logger.debug "API called: FuseApi#get_financial_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
513
+ end
514
+ return data, status_code, headers
515
+ end
516
+
459
517
  # Get account details
460
518
  # @param get_financial_connections_account_details_request [GetFinancialConnectionsAccountDetailsRequest]
461
519
  # @param [Hash] opts the optional parameters
@@ -591,7 +649,7 @@ module FuseClient
591
649
  # Get balances
592
650
  # @param get_financial_connections_balance_request [GetFinancialConnectionsBalanceRequest]
593
651
  # @param [Hash] opts the optional parameters
594
- # @return [GetFinancialConnectionsAccountBalanceResponse]
652
+ # @return [GetFinancialConnectionsBalanceResponse]
595
653
  def get_financial_connections_balances(get_financial_connections_balance_request, opts = {})
596
654
  data, _status_code, _headers = get_financial_connections_balances_with_http_info(get_financial_connections_balance_request, opts)
597
655
  data
@@ -600,7 +658,7 @@ module FuseClient
600
658
  # Get balances
601
659
  # @param get_financial_connections_balance_request [GetFinancialConnectionsBalanceRequest]
602
660
  # @param [Hash] opts the optional parameters
603
- # @return [Array<(GetFinancialConnectionsAccountBalanceResponse, Integer, Hash)>] GetFinancialConnectionsAccountBalanceResponse data, response status code and response headers
661
+ # @return [Array<(GetFinancialConnectionsBalanceResponse, Integer, Hash)>] GetFinancialConnectionsBalanceResponse data, response status code and response headers
604
662
  def get_financial_connections_balances_with_http_info(get_financial_connections_balance_request, opts = {})
605
663
  if @api_client.config.debugging
606
664
  @api_client.config.logger.debug 'Calling API: FuseApi.get_financial_connections_balances ...'
@@ -632,7 +690,7 @@ module FuseClient
632
690
  post_body = opts[:debug_body] || @api_client.object_to_http_body(get_financial_connections_balance_request)
633
691
 
634
692
  # return_type
635
- return_type = opts[:debug_return_type] || 'GetFinancialConnectionsAccountBalanceResponse'
693
+ return_type = opts[:debug_return_type] || 'GetFinancialConnectionsBalanceResponse'
636
694
 
637
695
  # auth_names
638
696
  auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
@@ -721,25 +779,25 @@ module FuseClient
721
779
  end
722
780
 
723
781
  # Get transactions
724
- # @param get_transactions_request [GetTransactionsRequest]
782
+ # @param get_financial_connections_transactions_request [GetFinancialConnectionsTransactionsRequest]
725
783
  # @param [Hash] opts the optional parameters
726
- # @return [GetTransactionsResponse]
727
- def get_financial_connections_transactions(get_transactions_request, opts = {})
728
- data, _status_code, _headers = get_financial_connections_transactions_with_http_info(get_transactions_request, opts)
784
+ # @return [GetFinancialConnectionsTransactionsResponse]
785
+ def get_financial_connections_transactions(get_financial_connections_transactions_request, opts = {})
786
+ data, _status_code, _headers = get_financial_connections_transactions_with_http_info(get_financial_connections_transactions_request, opts)
729
787
  data
730
788
  end
731
789
 
732
790
  # Get transactions
733
- # @param get_transactions_request [GetTransactionsRequest]
791
+ # @param get_financial_connections_transactions_request [GetFinancialConnectionsTransactionsRequest]
734
792
  # @param [Hash] opts the optional parameters
735
- # @return [Array<(GetTransactionsResponse, Integer, Hash)>] GetTransactionsResponse data, response status code and response headers
736
- def get_financial_connections_transactions_with_http_info(get_transactions_request, opts = {})
793
+ # @return [Array<(GetFinancialConnectionsTransactionsResponse, Integer, Hash)>] GetFinancialConnectionsTransactionsResponse data, response status code and response headers
794
+ def get_financial_connections_transactions_with_http_info(get_financial_connections_transactions_request, opts = {})
737
795
  if @api_client.config.debugging
738
796
  @api_client.config.logger.debug 'Calling API: FuseApi.get_financial_connections_transactions ...'
739
797
  end
740
- # verify the required parameter 'get_transactions_request' is set
741
- if @api_client.config.client_side_validation && get_transactions_request.nil?
742
- fail ArgumentError, "Missing the required parameter 'get_transactions_request' when calling FuseApi.get_financial_connections_transactions"
798
+ # verify the required parameter 'get_financial_connections_transactions_request' is set
799
+ if @api_client.config.client_side_validation && get_financial_connections_transactions_request.nil?
800
+ fail ArgumentError, "Missing the required parameter 'get_financial_connections_transactions_request' when calling FuseApi.get_financial_connections_transactions"
743
801
  end
744
802
  # resource path
745
803
  local_var_path = '/v1/financial_connections/transactions'
@@ -761,10 +819,10 @@ module FuseClient
761
819
  form_params = opts[:form_params] || {}
762
820
 
763
821
  # http body (model)
764
- post_body = opts[:debug_body] || @api_client.object_to_http_body(get_transactions_request)
822
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(get_financial_connections_transactions_request)
765
823
 
766
824
  # return_type
767
- return_type = opts[:debug_return_type] || 'GetTransactionsResponse'
825
+ return_type = opts[:debug_return_type] || 'GetFinancialConnectionsTransactionsResponse'
768
826
 
769
827
  # auth_names
770
828
  auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
@@ -981,25 +1039,27 @@ module FuseClient
981
1039
  return data, status_code, headers
982
1040
  end
983
1041
 
984
- # Refreshes the Asset Report in JSON format.
1042
+ # Migrate financial connection
1043
+ # This endpoint migrates financial connections from Plaid or MX into the unified Fuse API. It accepts a POST request with connection data, aggregator, entity, and Fuse products, and responds with a JSON payload containing the migrated connection's data, access token, ID, and request ID.
985
1044
  # @param [Hash] opts the optional parameters
986
- # @option opts [RefreshAssetReportRequest] :refresh_asset_report_request
987
- # @return [CreateAssetReportResponse]
988
- def refresh_asset_report(opts = {})
989
- data, _status_code, _headers = refresh_asset_report_with_http_info(opts)
1045
+ # @option opts [MigrateFinancialConnectionsTokenRequest] :migrate_financial_connections_token_request
1046
+ # @return [MigrateFinancialConnectionsTokenResponse]
1047
+ def migrate_financial_connection(opts = {})
1048
+ data, _status_code, _headers = migrate_financial_connection_with_http_info(opts)
990
1049
  data
991
1050
  end
992
1051
 
993
- # Refreshes the Asset Report in JSON format.
1052
+ # Migrate financial connection
1053
+ # This endpoint migrates financial connections from Plaid or MX into the unified Fuse API. It accepts a POST request with connection data, aggregator, entity, and Fuse products, and responds with a JSON payload containing the migrated connection&#39;s data, access token, ID, and request ID.
994
1054
  # @param [Hash] opts the optional parameters
995
- # @option opts [RefreshAssetReportRequest] :refresh_asset_report_request
996
- # @return [Array<(CreateAssetReportResponse, Integer, Hash)>] CreateAssetReportResponse data, response status code and response headers
997
- def refresh_asset_report_with_http_info(opts = {})
1055
+ # @option opts [MigrateFinancialConnectionsTokenRequest] :migrate_financial_connections_token_request
1056
+ # @return [Array<(MigrateFinancialConnectionsTokenResponse, Integer, Hash)>] MigrateFinancialConnectionsTokenResponse data, response status code and response headers
1057
+ def migrate_financial_connection_with_http_info(opts = {})
998
1058
  if @api_client.config.debugging
999
- @api_client.config.logger.debug 'Calling API: FuseApi.refresh_asset_report ...'
1059
+ @api_client.config.logger.debug 'Calling API: FuseApi.migrate_financial_connection ...'
1000
1060
  end
1001
1061
  # resource path
1002
- local_var_path = '/v1/asset_report/refresh'
1062
+ local_var_path = '/v1/financial_connections/migrate'
1003
1063
 
1004
1064
  # query parameters
1005
1065
  query_params = opts[:query_params] || {}
@@ -1018,16 +1078,16 @@ module FuseClient
1018
1078
  form_params = opts[:form_params] || {}
1019
1079
 
1020
1080
  # http body (model)
1021
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'refresh_asset_report_request'])
1081
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'migrate_financial_connections_token_request'])
1022
1082
 
1023
1083
  # return_type
1024
- return_type = opts[:debug_return_type] || 'CreateAssetReportResponse'
1084
+ return_type = opts[:debug_return_type] || 'MigrateFinancialConnectionsTokenResponse'
1025
1085
 
1026
1086
  # auth_names
1027
1087
  auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
1028
1088
 
1029
1089
  new_options = opts.merge(
1030
- :operation => :"FuseApi.refresh_asset_report",
1090
+ :operation => :"FuseApi.migrate_financial_connection",
1031
1091
  :header_params => header_params,
1032
1092
  :query_params => query_params,
1033
1093
  :form_params => form_params,
@@ -1038,36 +1098,30 @@ module FuseClient
1038
1098
 
1039
1099
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1040
1100
  if @api_client.config.debugging
1041
- @api_client.config.logger.debug "API called: FuseApi#refresh_asset_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1101
+ @api_client.config.logger.debug "API called: FuseApi#migrate_financial_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1042
1102
  end
1043
1103
  return data, status_code, headers
1044
1104
  end
1045
1105
 
1046
- # Sync financial connections data
1047
- # Call this endpoint upon receiving a SYNC_REQUIRED webhook. This will keep the financial connections data up to date.
1048
- # @param body [Object]
1106
+ # Refreshes the Asset Report in JSON format.
1049
1107
  # @param [Hash] opts the optional parameters
1050
- # @return [SyncFinancialConnectionsDataResponse]
1051
- def sync_financial_connections_data(body, opts = {})
1052
- data, _status_code, _headers = sync_financial_connections_data_with_http_info(body, opts)
1108
+ # @option opts [RefreshAssetReportRequest] :refresh_asset_report_request
1109
+ # @return [CreateAssetReportResponse]
1110
+ def refresh_asset_report(opts = {})
1111
+ data, _status_code, _headers = refresh_asset_report_with_http_info(opts)
1053
1112
  data
1054
1113
  end
1055
1114
 
1056
- # Sync financial connections data
1057
- # Call this endpoint upon receiving a SYNC_REQUIRED webhook. This will keep the financial connections data up to date.
1058
- # @param body [Object]
1115
+ # Refreshes the Asset Report in JSON format.
1059
1116
  # @param [Hash] opts the optional parameters
1060
- # @return [Array<(SyncFinancialConnectionsDataResponse, Integer, Hash)>] SyncFinancialConnectionsDataResponse data, response status code and response headers
1061
- def sync_financial_connections_data_with_http_info(body, opts = {})
1117
+ # @option opts [RefreshAssetReportRequest] :refresh_asset_report_request
1118
+ # @return [Array<(CreateAssetReportResponse, Integer, Hash)>] CreateAssetReportResponse data, response status code and response headers
1119
+ def refresh_asset_report_with_http_info(opts = {})
1062
1120
  if @api_client.config.debugging
1063
- @api_client.config.logger.debug 'Calling API: FuseApi.sync_financial_connections_data ...'
1064
- end
1065
- # verify the required parameter 'body' is set
1066
- if @api_client.config.client_side_validation && body.nil?
1067
- fail ArgumentError, "Missing the required parameter 'body' when calling FuseApi.sync_financial_connections_data"
1121
+ @api_client.config.logger.debug 'Calling API: FuseApi.refresh_asset_report ...'
1068
1122
  end
1069
1123
  # resource path
1070
- local_var_path = '/v1/financial_connections/sync'
1124
+ local_var_path = '/v1/asset_report/refresh'
1071
1125
 
1072
1126
  # query parameters
1073
1127
  query_params = opts[:query_params] || {}
@@ -1086,16 +1140,16 @@ module FuseClient
1086
1140
  form_params = opts[:form_params] || {}
1087
1141
 
1088
1142
  # http body (model)
1089
- post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1143
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'refresh_asset_report_request'])
1090
1144
 
1091
1145
  # return_type
1092
- return_type = opts[:debug_return_type] || 'SyncFinancialConnectionsDataResponse'
1146
+ return_type = opts[:debug_return_type] || 'CreateAssetReportResponse'
1093
1147
 
1094
1148
  # auth_names
1095
1149
  auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
1096
1150
 
1097
1151
  new_options = opts.merge(
1098
- :operation => :"FuseApi.sync_financial_connections_data",
1152
+ :operation => :"FuseApi.refresh_asset_report",
1099
1153
  :header_params => header_params,
1100
1154
  :query_params => query_params,
1101
1155
  :form_params => form_params,
@@ -1106,34 +1160,36 @@ module FuseClient
1106
1160
 
1107
1161
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1108
1162
  if @api_client.config.debugging
1109
- @api_client.config.logger.debug "API called: FuseApi#sync_financial_connections_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1163
+ @api_client.config.logger.debug "API called: FuseApi#refresh_asset_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1110
1164
  end
1111
1165
  return data, status_code, headers
1112
1166
  end
1113
1167
 
1114
- # Sync transactions
1115
- # @param sync_transactions_request [SyncTransactionsRequest]
1168
+ # Sync financial connections data
1169
+ # Call this endpoint upon receiving a financial_connection.sync_data webhook. This will keep the financial connections data up to date.
1170
+ # @param body [Object]
1116
1171
  # @param [Hash] opts the optional parameters
1117
- # @return [SyncTransactionsResponse]
1118
- def sync_financial_connections_transactions(sync_transactions_request, opts = {})
1119
- data, _status_code, _headers = sync_financial_connections_transactions_with_http_info(sync_transactions_request, opts)
1172
+ # @return [SyncFinancialConnectionsDataResponse]
1173
+ def sync_financial_connections_data(body, opts = {})
1174
+ data, _status_code, _headers = sync_financial_connections_data_with_http_info(body, opts)
1120
1175
  data
1121
1176
  end
1122
1177
 
1123
- # Sync transactions
1124
- # @param sync_transactions_request [SyncTransactionsRequest]
1178
+ # Sync financial connections data
1179
+ # Call this endpoint upon receiving a financial_connection.sync_data webhook. This will keep the financial connections data up to date.
1180
+ # @param body [Object]
1125
1181
  # @param [Hash] opts the optional parameters
1126
- # @return [Array<(SyncTransactionsResponse, Integer, Hash)>] SyncTransactionsResponse data, response status code and response headers
1127
- def sync_financial_connections_transactions_with_http_info(sync_transactions_request, opts = {})
1182
+ # @return [Array<(SyncFinancialConnectionsDataResponse, Integer, Hash)>] SyncFinancialConnectionsDataResponse data, response status code and response headers
1183
+ def sync_financial_connections_data_with_http_info(body, opts = {})
1128
1184
  if @api_client.config.debugging
1129
- @api_client.config.logger.debug 'Calling API: FuseApi.sync_financial_connections_transactions ...'
1185
+ @api_client.config.logger.debug 'Calling API: FuseApi.sync_financial_connections_data ...'
1130
1186
  end
1131
- # verify the required parameter 'sync_transactions_request' is set
1132
- if @api_client.config.client_side_validation && sync_transactions_request.nil?
1133
- fail ArgumentError, "Missing the required parameter 'sync_transactions_request' when calling FuseApi.sync_financial_connections_transactions"
1187
+ # verify the required parameter 'body' is set
1188
+ if @api_client.config.client_side_validation && body.nil?
1189
+ fail ArgumentError, "Missing the required parameter 'body' when calling FuseApi.sync_financial_connections_data"
1134
1190
  end
1135
1191
  # resource path
1136
- local_var_path = '/v1/financial_connections/transactions/sync'
1192
+ local_var_path = '/v1/financial_connections/sync'
1137
1193
 
1138
1194
  # query parameters
1139
1195
  query_params = opts[:query_params] || {}
@@ -1152,16 +1208,16 @@ module FuseClient
1152
1208
  form_params = opts[:form_params] || {}
1153
1209
 
1154
1210
  # http body (model)
1155
- post_body = opts[:debug_body] || @api_client.object_to_http_body(sync_transactions_request)
1211
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1156
1212
 
1157
1213
  # return_type
1158
- return_type = opts[:debug_return_type] || 'SyncTransactionsResponse'
1214
+ return_type = opts[:debug_return_type] || 'SyncFinancialConnectionsDataResponse'
1159
1215
 
1160
1216
  # auth_names
1161
1217
  auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
1162
1218
 
1163
1219
  new_options = opts.merge(
1164
- :operation => :"FuseApi.sync_financial_connections_transactions",
1220
+ :operation => :"FuseApi.sync_financial_connections_data",
1165
1221
  :header_params => header_params,
1166
1222
  :query_params => query_params,
1167
1223
  :form_params => form_params,
@@ -1172,79 +1228,7 @@ module FuseClient
1172
1228
 
1173
1229
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1174
1230
  if @api_client.config.debugging
1175
- @api_client.config.logger.debug "API called: FuseApi#sync_financial_connections_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1176
- end
1177
- return data, status_code, headers
1178
- end
1179
-
1180
- # Update entity
1181
- # @param entity_id_to_update [String]
1182
- # @param update_entity_request [UpdateEntityRequest]
1183
- # @param [Hash] opts the optional parameters
1184
- # @return [UpdateEntityResponse]
1185
- def update_entity(entity_id_to_update, update_entity_request, opts = {})
1186
- data, _status_code, _headers = update_entity_with_http_info(entity_id_to_update, update_entity_request, opts)
1187
- data
1188
- end
1189
-
1190
- # Update entity
1191
- # @param entity_id_to_update [String]
1192
- # @param update_entity_request [UpdateEntityRequest]
1193
- # @param [Hash] opts the optional parameters
1194
- # @return [Array<(UpdateEntityResponse, Integer, Hash)>] UpdateEntityResponse data, response status code and response headers
1195
- def update_entity_with_http_info(entity_id_to_update, update_entity_request, opts = {})
1196
- if @api_client.config.debugging
1197
- @api_client.config.logger.debug 'Calling API: FuseApi.update_entity ...'
1198
- end
1199
- # verify the required parameter 'entity_id_to_update' is set
1200
- if @api_client.config.client_side_validation && entity_id_to_update.nil?
1201
- fail ArgumentError, "Missing the required parameter 'entity_id_to_update' when calling FuseApi.update_entity"
1202
- end
1203
- # verify the required parameter 'update_entity_request' is set
1204
- if @api_client.config.client_side_validation && update_entity_request.nil?
1205
- fail ArgumentError, "Missing the required parameter 'update_entity_request' when calling FuseApi.update_entity"
1206
- end
1207
- # resource path
1208
- local_var_path = '/v1/entities/{entity_id_to_update}'.sub('{' + 'entity_id_to_update' + '}', CGI.escape(entity_id_to_update.to_s))
1209
-
1210
- # query parameters
1211
- query_params = opts[:query_params] || {}
1212
-
1213
- # header parameters
1214
- header_params = opts[:header_params] || {}
1215
- # HTTP header 'Accept' (if needed)
1216
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1217
- # HTTP header 'Content-Type'
1218
- content_type = @api_client.select_header_content_type(['application/json'])
1219
- if !content_type.nil?
1220
- header_params['Content-Type'] = content_type
1221
- end
1222
-
1223
- # form parameters
1224
- form_params = opts[:form_params] || {}
1225
-
1226
- # http body (model)
1227
- post_body = opts[:debug_body] || @api_client.object_to_http_body(update_entity_request)
1228
-
1229
- # return_type
1230
- return_type = opts[:debug_return_type] || 'UpdateEntityResponse'
1231
-
1232
- # auth_names
1233
- auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
1234
-
1235
- new_options = opts.merge(
1236
- :operation => :"FuseApi.update_entity",
1237
- :header_params => header_params,
1238
- :query_params => query_params,
1239
- :form_params => form_params,
1240
- :body => post_body,
1241
- :auth_names => auth_names,
1242
- :return_type => return_type
1243
- )
1244
-
1245
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1246
- if @api_client.config.debugging
1247
- @api_client.config.logger.debug "API called: FuseApi#update_entity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1231
+ @api_client.config.logger.debug "API called: FuseApi#sync_financial_connections_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1248
1232
  end
1249
1233
  return data, status_code, headers
1250
1234
  end