fuse_client 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. checksums.yaml +7 -0
  2. data/2023-01-25.json +1736 -0
  3. data/fuse-ruby-openapi/.gitignore +39 -0
  4. data/fuse-ruby-openapi/.gitlab-ci.yml +26 -0
  5. data/fuse-ruby-openapi/.openapi-generator/FILES +220 -0
  6. data/fuse-ruby-openapi/.openapi-generator/VERSION +1 -0
  7. data/fuse-ruby-openapi/.openapi-generator-ignore +23 -0
  8. data/fuse-ruby-openapi/.rspec +2 -0
  9. data/fuse-ruby-openapi/.rubocop.yml +148 -0
  10. data/fuse-ruby-openapi/.travis.yml +14 -0
  11. data/fuse-ruby-openapi/Gemfile +9 -0
  12. data/fuse-ruby-openapi/README.md +258 -0
  13. data/fuse-ruby-openapi/Rakefile +10 -0
  14. data/fuse-ruby-openapi/docs/CreateAssetReportRequest.md +20 -0
  15. data/fuse-ruby-openapi/docs/CreateAssetReportResponse.md +20 -0
  16. data/fuse-ruby-openapi/docs/CreateLinkTokenRequest.md +28 -0
  17. data/fuse-ruby-openapi/docs/CreateLinkTokenRequestMx.md +18 -0
  18. data/fuse-ruby-openapi/docs/CreateLinkTokenRequestPlaid.md +18 -0
  19. data/fuse-ruby-openapi/docs/CreateLinkTokenRequestPlaidConfig.md +18 -0
  20. data/fuse-ruby-openapi/docs/CreateLinkTokenResponse.md +20 -0
  21. data/fuse-ruby-openapi/docs/CreateSessionRequest.md +22 -0
  22. data/fuse-ruby-openapi/docs/CreateSessionRequestMx.md +24 -0
  23. data/fuse-ruby-openapi/docs/CreateSessionRequestPlaid.md +18 -0
  24. data/fuse-ruby-openapi/docs/CreateSessionResponse.md +22 -0
  25. data/fuse-ruby-openapi/docs/ExchangeFinancialConnectionsPublicTokenRequest.md +18 -0
  26. data/fuse-ruby-openapi/docs/ExchangeFinancialConnectionsPublicTokenResponse.md +22 -0
  27. data/fuse-ruby-openapi/docs/FinancialConnectionsAccount.md +32 -0
  28. data/fuse-ruby-openapi/docs/FinancialConnectionsAccountBalance.md +24 -0
  29. data/fuse-ruby-openapi/docs/FinancialConnectionsAccountDetails.md +22 -0
  30. data/fuse-ruby-openapi/docs/FinancialConnectionsAccountDetailsAch.md +24 -0
  31. data/fuse-ruby-openapi/docs/FinancialConnectionsAccountInstitution.md +18 -0
  32. data/fuse-ruby-openapi/docs/FinancialConnectionsAccountLiability.md +46 -0
  33. data/fuse-ruby-openapi/docs/FinancialConnectionsAccountLiabilityAllOf.md +30 -0
  34. data/fuse-ruby-openapi/docs/FinancialConnectionsAccountLiabilityAllOfAprs.md +20 -0
  35. data/fuse-ruby-openapi/docs/FinancialConnectionsHolding.md +26 -0
  36. data/fuse-ruby-openapi/docs/FinancialConnectionsInvestmentAccount.md +32 -0
  37. data/fuse-ruby-openapi/docs/FinancialConnectionsInvestmentSecurity.md +26 -0
  38. data/fuse-ruby-openapi/docs/FinancialConnectionsInvestmentTransaction.md +18 -0
  39. data/fuse-ruby-openapi/docs/FinancialConnectionsInvestmentTransactionDataInner.md +32 -0
  40. data/fuse-ruby-openapi/docs/FinancialConnectionsOwner.md +24 -0
  41. data/fuse-ruby-openapi/docs/FinancialConnectionsOwnerAddressesInner.md +20 -0
  42. data/fuse-ruby-openapi/docs/FinancialConnectionsOwnerAddressesInnerData.md +26 -0
  43. data/fuse-ruby-openapi/docs/FinancialConnectionsOwnerEmailsInner.md +22 -0
  44. data/fuse-ruby-openapi/docs/FinancialConnectionsOwnerNamesInner.md +20 -0
  45. data/fuse-ruby-openapi/docs/FinancialConnectionsOwnerPhoneNumbersInner.md +22 -0
  46. data/fuse-ruby-openapi/docs/FuseApi.md +1154 -0
  47. data/fuse-ruby-openapi/docs/FuseApiError.md +28 -0
  48. data/fuse-ruby-openapi/docs/FuseApiErrorData.md +20 -0
  49. data/fuse-ruby-openapi/docs/FuseApiWarning.md +28 -0
  50. data/fuse-ruby-openapi/docs/FuseApiWarningData.md +20 -0
  51. data/fuse-ruby-openapi/docs/GetAssetReportRequest.md +18 -0
  52. data/fuse-ruby-openapi/docs/GetAssetReportResponse.md +18 -0
  53. data/fuse-ruby-openapi/docs/GetAssetReportResponseReport.md +28 -0
  54. data/fuse-ruby-openapi/docs/GetAssetReportResponseReportAccountsInner.md +24 -0
  55. data/fuse-ruby-openapi/docs/GetAssetReportResponseReportAccountsInnerBalances.md +22 -0
  56. data/fuse-ruby-openapi/docs/GetAssetReportResponseReportAccountsInnerHistoricalBalancesInner.md +22 -0
  57. data/fuse-ruby-openapi/docs/GetFinancialConnectionsAccountBalanceResponse.md +18 -0
  58. data/fuse-ruby-openapi/docs/GetFinancialConnectionsAccountDetailsRequest.md +18 -0
  59. data/fuse-ruby-openapi/docs/GetFinancialConnectionsAccountDetailsResponse.md +18 -0
  60. data/fuse-ruby-openapi/docs/GetFinancialConnectionsAccountsRequest.md +18 -0
  61. data/fuse-ruby-openapi/docs/GetFinancialConnectionsAccountsResponse.md +18 -0
  62. data/fuse-ruby-openapi/docs/GetFinancialConnectionsBalanceRequest.md +18 -0
  63. data/fuse-ruby-openapi/docs/GetFinancialConnectionsOwnersRequest.md +18 -0
  64. data/fuse-ruby-openapi/docs/GetFinancialConnectionsOwnersResponse.md +18 -0
  65. data/fuse-ruby-openapi/docs/GetFinancialConnectionsOwnersResponseAccountsInner.md +20 -0
  66. data/fuse-ruby-openapi/docs/GetInvestmentHoldingsRequest.md +18 -0
  67. data/fuse-ruby-openapi/docs/GetInvestmentHoldingsResponse.md +24 -0
  68. data/fuse-ruby-openapi/docs/GetInvestmentTransactionsRequest.md +18 -0
  69. data/fuse-ruby-openapi/docs/GetInvestmentTransactionsResponse.md +24 -0
  70. data/fuse-ruby-openapi/docs/GetLiabilitiesRequest.md +18 -0
  71. data/fuse-ruby-openapi/docs/GetLiabilitiesResponse.md +20 -0
  72. data/fuse-ruby-openapi/docs/GetTransactionsRequest.md +22 -0
  73. data/fuse-ruby-openapi/docs/GetTransactionsResponse.md +22 -0
  74. data/fuse-ruby-openapi/docs/GetTransactionsResponseDataInner.md +38 -0
  75. data/fuse-ruby-openapi/docs/GetTransactionsResponseDataInnerMerchant.md +18 -0
  76. data/fuse-ruby-openapi/docs/SyncFinancialConnectionsDataResponse.md +18 -0
  77. data/fuse-ruby-openapi/docs/SyncTransactionsRequest.md +22 -0
  78. data/fuse-ruby-openapi/docs/SyncTransactionsResponse.md +26 -0
  79. data/fuse-ruby-openapi/docs/SyncTransactionsResponseRemovedInner.md +18 -0
  80. data/fuse-ruby-openapi/docs/TransactionCommonModel.md +18 -0
  81. data/fuse-ruby-openapi/fuse_client.gemspec +38 -0
  82. data/fuse-ruby-openapi/git_push.sh +57 -0
  83. data/fuse-ruby-openapi/lib/fuse_client/api/fuse_api.rb +994 -0
  84. data/fuse-ruby-openapi/lib/fuse_client/api_client.rb +392 -0
  85. data/fuse-ruby-openapi/lib/fuse_client/api_error.rb +57 -0
  86. data/fuse-ruby-openapi/lib/fuse_client/configuration.rb +349 -0
  87. data/fuse-ruby-openapi/lib/fuse_client/models/create_asset_report_request.rb +268 -0
  88. data/fuse-ruby-openapi/lib/fuse_client/models/create_asset_report_response.rb +230 -0
  89. data/fuse-ruby-openapi/lib/fuse_client/models/create_link_token_request.rb +277 -0
  90. data/fuse-ruby-openapi/lib/fuse_client/models/create_link_token_request_mx.rb +221 -0
  91. data/fuse-ruby-openapi/lib/fuse_client/models/create_link_token_request_plaid.rb +220 -0
  92. data/fuse-ruby-openapi/lib/fuse_client/models/create_link_token_request_plaid_config.rb +225 -0
  93. data/fuse-ruby-openapi/lib/fuse_client/models/create_link_token_response.rb +230 -0
  94. data/fuse-ruby-openapi/lib/fuse_client/models/create_session_request.rb +266 -0
  95. data/fuse-ruby-openapi/lib/fuse_client/models/create_session_request_mx.rb +247 -0
  96. data/fuse-ruby-openapi/lib/fuse_client/models/create_session_request_plaid.rb +238 -0
  97. data/fuse-ruby-openapi/lib/fuse_client/models/create_session_response.rb +240 -0
  98. data/fuse-ruby-openapi/lib/fuse_client/models/exchange_financial_connections_public_token_request.rb +220 -0
  99. data/fuse-ruby-openapi/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +240 -0
  100. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account.rb +288 -0
  101. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account_balance.rb +250 -0
  102. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account_details.rb +239 -0
  103. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account_details_ach.rb +250 -0
  104. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account_institution.rb +219 -0
  105. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account_liability.rb +368 -0
  106. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account_liability_all_of.rb +282 -0
  107. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account_liability_all_of_aprs.rb +230 -0
  108. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_holding.rb +260 -0
  109. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_investment_account.rb +288 -0
  110. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_investment_security.rb +260 -0
  111. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_investment_transaction.rb +221 -0
  112. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_investment_transaction_data_inner.rb +290 -0
  113. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_owner.rb +255 -0
  114. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_owner_addresses_inner.rb +229 -0
  115. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +260 -0
  116. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_owner_emails_inner.rb +274 -0
  117. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_owner_names_inner.rb +230 -0
  118. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_owner_phone_numbers_inner.rb +274 -0
  119. data/fuse-ruby-openapi/lib/fuse_client/models/fuse_api_error.rb +298 -0
  120. data/fuse-ruby-openapi/lib/fuse_client/models/fuse_api_error_data.rb +230 -0
  121. data/fuse-ruby-openapi/lib/fuse_client/models/fuse_api_warning.rb +298 -0
  122. data/fuse-ruby-openapi/lib/fuse_client/models/fuse_api_warning_data.rb +230 -0
  123. data/fuse-ruby-openapi/lib/fuse_client/models/get_asset_report_request.rb +225 -0
  124. data/fuse-ruby-openapi/lib/fuse_client/models/get_asset_report_response.rb +219 -0
  125. data/fuse-ruby-openapi/lib/fuse_client/models/get_asset_report_response_report.rb +275 -0
  126. data/fuse-ruby-openapi/lib/fuse_client/models/get_asset_report_response_report_accounts_inner.rb +252 -0
  127. data/fuse-ruby-openapi/lib/fuse_client/models/get_asset_report_response_report_accounts_inner_balances.rb +240 -0
  128. data/fuse-ruby-openapi/lib/fuse_client/models/get_asset_report_response_report_accounts_inner_historical_balances_inner.rb +240 -0
  129. data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_account_balance_response.rb +221 -0
  130. data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_account_details_request.rb +225 -0
  131. data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_account_details_response.rb +221 -0
  132. data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_accounts_request.rb +225 -0
  133. data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_accounts_response.rb +221 -0
  134. data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_balance_request.rb +225 -0
  135. data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_owners_request.rb +225 -0
  136. data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_owners_response.rb +221 -0
  137. data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +231 -0
  138. data/fuse-ruby-openapi/lib/fuse_client/models/get_investment_holdings_request.rb +225 -0
  139. data/fuse-ruby-openapi/lib/fuse_client/models/get_investment_holdings_response.rb +253 -0
  140. data/fuse-ruby-openapi/lib/fuse_client/models/get_investment_transactions_request.rb +225 -0
  141. data/fuse-ruby-openapi/lib/fuse_client/models/get_investment_transactions_response.rb +253 -0
  142. data/fuse-ruby-openapi/lib/fuse_client/models/get_liabilities_request.rb +225 -0
  143. data/fuse-ruby-openapi/lib/fuse_client/models/get_liabilities_response.rb +231 -0
  144. data/fuse-ruby-openapi/lib/fuse_client/models/get_transactions_request.rb +245 -0
  145. data/fuse-ruby-openapi/lib/fuse_client/models/get_transactions_response.rb +241 -0
  146. data/fuse-ruby-openapi/lib/fuse_client/models/get_transactions_response_data_inner.rb +321 -0
  147. data/fuse-ruby-openapi/lib/fuse_client/models/get_transactions_response_data_inner_merchant.rb +220 -0
  148. data/fuse-ruby-openapi/lib/fuse_client/models/sync_financial_connections_data_response.rb +220 -0
  149. data/fuse-ruby-openapi/lib/fuse_client/models/sync_transactions_request.rb +245 -0
  150. data/fuse-ruby-openapi/lib/fuse_client/models/sync_transactions_response.rb +266 -0
  151. data/fuse-ruby-openapi/lib/fuse_client/models/sync_transactions_response_removed_inner.rb +219 -0
  152. data/fuse-ruby-openapi/lib/fuse_client/models/transaction_common_model.rb +221 -0
  153. data/fuse-ruby-openapi/lib/fuse_client/version.rb +15 -0
  154. data/fuse-ruby-openapi/lib/fuse_client.rb +106 -0
  155. data/fuse-ruby-openapi/spec/api/fuse_api_spec.rb +201 -0
  156. data/fuse-ruby-openapi/spec/api_client_spec.rb +226 -0
  157. data/fuse-ruby-openapi/spec/configuration_spec.rb +42 -0
  158. data/fuse-ruby-openapi/spec/models/create_asset_report_request_spec.rb +40 -0
  159. data/fuse-ruby-openapi/spec/models/create_asset_report_response_spec.rb +40 -0
  160. data/fuse-ruby-openapi/spec/models/create_link_token_request_mx_spec.rb +34 -0
  161. data/fuse-ruby-openapi/spec/models/create_link_token_request_plaid_config_spec.rb +34 -0
  162. data/fuse-ruby-openapi/spec/models/create_link_token_request_plaid_spec.rb +34 -0
  163. data/fuse-ruby-openapi/spec/models/create_link_token_request_spec.rb +64 -0
  164. data/fuse-ruby-openapi/spec/models/create_link_token_response_spec.rb +40 -0
  165. data/fuse-ruby-openapi/spec/models/create_session_request_mx_spec.rb +52 -0
  166. data/fuse-ruby-openapi/spec/models/create_session_request_plaid_spec.rb +34 -0
  167. data/fuse-ruby-openapi/spec/models/create_session_request_spec.rb +50 -0
  168. data/fuse-ruby-openapi/spec/models/create_session_response_spec.rb +46 -0
  169. data/fuse-ruby-openapi/spec/models/exchange_financial_connections_public_token_request_spec.rb +34 -0
  170. data/fuse-ruby-openapi/spec/models/exchange_financial_connections_public_token_response_spec.rb +46 -0
  171. data/fuse-ruby-openapi/spec/models/financial_connections_account_balance_spec.rb +52 -0
  172. data/fuse-ruby-openapi/spec/models/financial_connections_account_details_ach_spec.rb +52 -0
  173. data/fuse-ruby-openapi/spec/models/financial_connections_account_details_spec.rb +46 -0
  174. data/fuse-ruby-openapi/spec/models/financial_connections_account_institution_spec.rb +34 -0
  175. data/fuse-ruby-openapi/spec/models/financial_connections_account_liability_all_of_aprs_spec.rb +40 -0
  176. data/fuse-ruby-openapi/spec/models/financial_connections_account_liability_all_of_spec.rb +70 -0
  177. data/fuse-ruby-openapi/spec/models/financial_connections_account_liability_spec.rb +118 -0
  178. data/fuse-ruby-openapi/spec/models/financial_connections_account_spec.rb +76 -0
  179. data/fuse-ruby-openapi/spec/models/financial_connections_holding_spec.rb +58 -0
  180. data/fuse-ruby-openapi/spec/models/financial_connections_investment_account_spec.rb +76 -0
  181. data/fuse-ruby-openapi/spec/models/financial_connections_investment_security_spec.rb +58 -0
  182. data/fuse-ruby-openapi/spec/models/financial_connections_investment_transaction_data_inner_spec.rb +76 -0
  183. data/fuse-ruby-openapi/spec/models/financial_connections_investment_transaction_spec.rb +34 -0
  184. data/fuse-ruby-openapi/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +58 -0
  185. data/fuse-ruby-openapi/spec/models/financial_connections_owner_addresses_inner_spec.rb +40 -0
  186. data/fuse-ruby-openapi/spec/models/financial_connections_owner_emails_inner_spec.rb +50 -0
  187. data/fuse-ruby-openapi/spec/models/financial_connections_owner_names_inner_spec.rb +40 -0
  188. data/fuse-ruby-openapi/spec/models/financial_connections_owner_phone_numbers_inner_spec.rb +50 -0
  189. data/fuse-ruby-openapi/spec/models/financial_connections_owner_spec.rb +52 -0
  190. data/fuse-ruby-openapi/spec/models/fuse_api_error_data_spec.rb +40 -0
  191. data/fuse-ruby-openapi/spec/models/fuse_api_error_spec.rb +68 -0
  192. data/fuse-ruby-openapi/spec/models/fuse_api_warning_data_spec.rb +40 -0
  193. data/fuse-ruby-openapi/spec/models/fuse_api_warning_spec.rb +68 -0
  194. data/fuse-ruby-openapi/spec/models/get_asset_report_request_spec.rb +34 -0
  195. data/fuse-ruby-openapi/spec/models/get_asset_report_response_report_accounts_inner_balances_spec.rb +46 -0
  196. data/fuse-ruby-openapi/spec/models/get_asset_report_response_report_accounts_inner_historical_balances_inner_spec.rb +46 -0
  197. data/fuse-ruby-openapi/spec/models/get_asset_report_response_report_accounts_inner_spec.rb +52 -0
  198. data/fuse-ruby-openapi/spec/models/get_asset_report_response_report_spec.rb +64 -0
  199. data/fuse-ruby-openapi/spec/models/get_asset_report_response_spec.rb +34 -0
  200. data/fuse-ruby-openapi/spec/models/get_financial_connections_account_balance_response_spec.rb +34 -0
  201. data/fuse-ruby-openapi/spec/models/get_financial_connections_account_details_request_spec.rb +34 -0
  202. data/fuse-ruby-openapi/spec/models/get_financial_connections_account_details_response_spec.rb +34 -0
  203. data/fuse-ruby-openapi/spec/models/get_financial_connections_accounts_request_spec.rb +34 -0
  204. data/fuse-ruby-openapi/spec/models/get_financial_connections_accounts_response_spec.rb +34 -0
  205. data/fuse-ruby-openapi/spec/models/get_financial_connections_balance_request_spec.rb +34 -0
  206. data/fuse-ruby-openapi/spec/models/get_financial_connections_owners_request_spec.rb +34 -0
  207. data/fuse-ruby-openapi/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +40 -0
  208. data/fuse-ruby-openapi/spec/models/get_financial_connections_owners_response_spec.rb +34 -0
  209. data/fuse-ruby-openapi/spec/models/get_investment_holdings_request_spec.rb +34 -0
  210. data/fuse-ruby-openapi/spec/models/get_investment_holdings_response_spec.rb +52 -0
  211. data/fuse-ruby-openapi/spec/models/get_investment_transactions_request_spec.rb +34 -0
  212. data/fuse-ruby-openapi/spec/models/get_investment_transactions_response_spec.rb +52 -0
  213. data/fuse-ruby-openapi/spec/models/get_liabilities_request_spec.rb +34 -0
  214. data/fuse-ruby-openapi/spec/models/get_liabilities_response_spec.rb +40 -0
  215. data/fuse-ruby-openapi/spec/models/get_transactions_request_spec.rb +46 -0
  216. data/fuse-ruby-openapi/spec/models/get_transactions_response_data_inner_merchant_spec.rb +34 -0
  217. data/fuse-ruby-openapi/spec/models/get_transactions_response_data_inner_spec.rb +94 -0
  218. data/fuse-ruby-openapi/spec/models/get_transactions_response_spec.rb +46 -0
  219. data/fuse-ruby-openapi/spec/models/sync_financial_connections_data_response_spec.rb +34 -0
  220. data/fuse-ruby-openapi/spec/models/sync_transactions_request_spec.rb +46 -0
  221. data/fuse-ruby-openapi/spec/models/sync_transactions_response_removed_inner_spec.rb +34 -0
  222. data/fuse-ruby-openapi/spec/models/sync_transactions_response_spec.rb +58 -0
  223. data/fuse-ruby-openapi/spec/models/transaction_common_model_spec.rb +34 -0
  224. data/fuse-ruby-openapi/spec/spec_helper.rb +111 -0
  225. data/generate-fuse-openapi-spec.js +136 -0
  226. metadata +307 -0
@@ -0,0 +1,994 @@
1
+ =begin
2
+ #Fuse
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.2.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module FuseClient
16
+ class FuseApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Use this endpoint to generate an Asset Report for a user.
23
+ # @param [Hash] opts the optional parameters
24
+ # @option opts [CreateAssetReportRequest] :create_asset_report_request
25
+ # @return [CreateAssetReportResponse]
26
+ def create_asset_report(opts = {})
27
+ data, _status_code, _headers = create_asset_report_with_http_info(opts)
28
+ data
29
+ end
30
+
31
+ # Use this endpoint to generate an Asset Report for a user.
32
+ # @param [Hash] opts the optional parameters
33
+ # @option opts [CreateAssetReportRequest] :create_asset_report_request
34
+ # @return [Array<(CreateAssetReportResponse, Integer, Hash)>] CreateAssetReportResponse data, response status code and response headers
35
+ def create_asset_report_with_http_info(opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: FuseApi.create_asset_report ...'
38
+ end
39
+ # resource path
40
+ local_var_path = '/v1/asset_report/create'
41
+
42
+ # query parameters
43
+ query_params = opts[:query_params] || {}
44
+
45
+ # header parameters
46
+ header_params = opts[:header_params] || {}
47
+ # HTTP header 'Accept' (if needed)
48
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
49
+ # HTTP header 'Content-Type'
50
+ content_type = @api_client.select_header_content_type(['application/json'])
51
+ if !content_type.nil?
52
+ header_params['Content-Type'] = content_type
53
+ end
54
+
55
+ # form parameters
56
+ form_params = opts[:form_params] || {}
57
+
58
+ # http body (model)
59
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_asset_report_request'])
60
+
61
+ # return_type
62
+ return_type = opts[:debug_return_type] || 'CreateAssetReportResponse'
63
+
64
+ # auth_names
65
+ auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
66
+
67
+ new_options = opts.merge(
68
+ :operation => :"FuseApi.create_asset_report",
69
+ :header_params => header_params,
70
+ :query_params => query_params,
71
+ :form_params => form_params,
72
+ :body => post_body,
73
+ :auth_names => auth_names,
74
+ :return_type => return_type
75
+ )
76
+
77
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
78
+ if @api_client.config.debugging
79
+ @api_client.config.logger.debug "API called: FuseApi#create_asset_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ end
81
+ return data, status_code, headers
82
+ end
83
+
84
+ # Create a link token to start the process of a user connecting to a specific financial institution.
85
+ # @param [Hash] opts the optional parameters
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
+ data
91
+ end
92
+
93
+ # Create a link token to start the process of a user connecting to a specific financial institution.
94
+ # @param [Hash] opts the optional parameters
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
+ if @api_client.config.debugging
99
+ @api_client.config.logger.debug 'Calling API: FuseApi.create_link_token ...'
100
+ end
101
+ # resource path
102
+ local_var_path = '/v1/link/token'
103
+
104
+ # query parameters
105
+ query_params = opts[:query_params] || {}
106
+
107
+ # header parameters
108
+ header_params = opts[:header_params] || {}
109
+ # HTTP header 'Accept' (if needed)
110
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
111
+ # HTTP header 'Content-Type'
112
+ content_type = @api_client.select_header_content_type(['application/json'])
113
+ if !content_type.nil?
114
+ header_params['Content-Type'] = content_type
115
+ end
116
+
117
+ # form parameters
118
+ form_params = opts[:form_params] || {}
119
+
120
+ # http body (model)
121
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_link_token_request'])
122
+
123
+ # return_type
124
+ return_type = opts[:debug_return_type] || 'CreateLinkTokenResponse'
125
+
126
+ # auth_names
127
+ auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
128
+
129
+ new_options = opts.merge(
130
+ :operation => :"FuseApi.create_link_token",
131
+ :header_params => header_params,
132
+ :query_params => query_params,
133
+ :form_params => form_params,
134
+ :body => post_body,
135
+ :auth_names => auth_names,
136
+ :return_type => return_type
137
+ )
138
+
139
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
140
+ if @api_client.config.debugging
141
+ @api_client.config.logger.debug "API called: FuseApi#create_link_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
142
+ end
143
+ return data, status_code, headers
144
+ end
145
+
146
+ # Creates a session that returns a client_secret which is required as a parameter when initializing the Fuse SDK.
147
+ # @param [Hash] opts the optional parameters
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)
152
+ data
153
+ end
154
+
155
+ # Creates a session that returns a client_secret which is required as a parameter when initializing the Fuse SDK.
156
+ # @param [Hash] opts the optional parameters
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 = {})
160
+ if @api_client.config.debugging
161
+ @api_client.config.logger.debug 'Calling API: FuseApi.create_session ...'
162
+ end
163
+ # resource path
164
+ local_var_path = '/v1/session'
165
+
166
+ # query parameters
167
+ query_params = opts[:query_params] || {}
168
+
169
+ # header parameters
170
+ header_params = opts[:header_params] || {}
171
+ # HTTP header 'Accept' (if needed)
172
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
173
+ # HTTP header 'Content-Type'
174
+ content_type = @api_client.select_header_content_type(['application/json'])
175
+ if !content_type.nil?
176
+ header_params['Content-Type'] = content_type
177
+ end
178
+
179
+ # form parameters
180
+ form_params = opts[:form_params] || {}
181
+
182
+ # http body (model)
183
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_session_request'])
184
+
185
+ # return_type
186
+ return_type = opts[:debug_return_type] || 'CreateSessionResponse'
187
+
188
+ # auth_names
189
+ auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
190
+
191
+ new_options = opts.merge(
192
+ :operation => :"FuseApi.create_session",
193
+ :header_params => header_params,
194
+ :query_params => query_params,
195
+ :form_params => form_params,
196
+ :body => post_body,
197
+ :auth_names => auth_names,
198
+ :return_type => return_type
199
+ )
200
+
201
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
202
+ if @api_client.config.debugging
203
+ @api_client.config.logger.debug "API called: FuseApi#create_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
204
+ end
205
+ return data, status_code, headers
206
+ end
207
+
208
+ # API to exchange a public token for an access token and financial connection id
209
+ # @param [Hash] opts the optional parameters
210
+ # @option opts [ExchangeFinancialConnectionsPublicTokenRequest] :exchange_financial_connections_public_token_request
211
+ # @return [ExchangeFinancialConnectionsPublicTokenResponse]
212
+ def exchange_public_token(opts = {})
213
+ data, _status_code, _headers = exchange_public_token_with_http_info(opts)
214
+ data
215
+ end
216
+
217
+ # API to exchange a public token for an access token and financial connection id
218
+ # @param [Hash] opts the optional parameters
219
+ # @option opts [ExchangeFinancialConnectionsPublicTokenRequest] :exchange_financial_connections_public_token_request
220
+ # @return [Array<(ExchangeFinancialConnectionsPublicTokenResponse, Integer, Hash)>] ExchangeFinancialConnectionsPublicTokenResponse data, response status code and response headers
221
+ def exchange_public_token_with_http_info(opts = {})
222
+ if @api_client.config.debugging
223
+ @api_client.config.logger.debug 'Calling API: FuseApi.exchange_public_token ...'
224
+ end
225
+ # resource path
226
+ local_var_path = '/v1/financial_connections/public_token/exchange'
227
+
228
+ # query parameters
229
+ query_params = opts[:query_params] || {}
230
+
231
+ # header parameters
232
+ header_params = opts[:header_params] || {}
233
+ # HTTP header 'Accept' (if needed)
234
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
235
+ # HTTP header 'Content-Type'
236
+ content_type = @api_client.select_header_content_type(['application/json'])
237
+ if !content_type.nil?
238
+ header_params['Content-Type'] = content_type
239
+ end
240
+
241
+ # form parameters
242
+ form_params = opts[:form_params] || {}
243
+
244
+ # http body (model)
245
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'exchange_financial_connections_public_token_request'])
246
+
247
+ # return_type
248
+ return_type = opts[:debug_return_type] || 'ExchangeFinancialConnectionsPublicTokenResponse'
249
+
250
+ # auth_names
251
+ auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
252
+
253
+ new_options = opts.merge(
254
+ :operation => :"FuseApi.exchange_public_token",
255
+ :header_params => header_params,
256
+ :query_params => query_params,
257
+ :form_params => form_params,
258
+ :body => post_body,
259
+ :auth_names => auth_names,
260
+ :return_type => return_type
261
+ )
262
+
263
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
264
+ if @api_client.config.debugging
265
+ @api_client.config.logger.debug "API called: FuseApi#exchange_public_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
266
+ end
267
+ return data, status_code, headers
268
+ end
269
+
270
+ # Retrieves the Asset Report in JSON format.
271
+ # @param [Hash] opts the optional parameters
272
+ # @option opts [GetAssetReportRequest] :get_asset_report_request
273
+ # @return [GetAssetReportResponse]
274
+ def get_asset_report(opts = {})
275
+ data, _status_code, _headers = get_asset_report_with_http_info(opts)
276
+ data
277
+ end
278
+
279
+ # Retrieves the Asset Report in JSON format.
280
+ # @param [Hash] opts the optional parameters
281
+ # @option opts [GetAssetReportRequest] :get_asset_report_request
282
+ # @return [Array<(GetAssetReportResponse, Integer, Hash)>] GetAssetReportResponse data, response status code and response headers
283
+ def get_asset_report_with_http_info(opts = {})
284
+ if @api_client.config.debugging
285
+ @api_client.config.logger.debug 'Calling API: FuseApi.get_asset_report ...'
286
+ end
287
+ # resource path
288
+ local_var_path = '/v1/asset_report'
289
+
290
+ # query parameters
291
+ query_params = opts[:query_params] || {}
292
+
293
+ # header parameters
294
+ header_params = opts[:header_params] || {}
295
+ # HTTP header 'Accept' (if needed)
296
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
297
+ # HTTP header 'Content-Type'
298
+ content_type = @api_client.select_header_content_type(['application/json'])
299
+ if !content_type.nil?
300
+ header_params['Content-Type'] = content_type
301
+ end
302
+
303
+ # form parameters
304
+ form_params = opts[:form_params] || {}
305
+
306
+ # http body (model)
307
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'get_asset_report_request'])
308
+
309
+ # return_type
310
+ return_type = opts[:debug_return_type] || 'GetAssetReportResponse'
311
+
312
+ # auth_names
313
+ auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
314
+
315
+ new_options = opts.merge(
316
+ :operation => :"FuseApi.get_asset_report",
317
+ :header_params => header_params,
318
+ :query_params => query_params,
319
+ :form_params => form_params,
320
+ :body => post_body,
321
+ :auth_names => auth_names,
322
+ :return_type => return_type
323
+ )
324
+
325
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
326
+ if @api_client.config.debugging
327
+ @api_client.config.logger.debug "API called: FuseApi#get_asset_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
328
+ end
329
+ return data, status_code, headers
330
+ end
331
+
332
+ # Get account details
333
+ # @param get_financial_connections_account_details_request [GetFinancialConnectionsAccountDetailsRequest]
334
+ # @param [Hash] opts the optional parameters
335
+ # @return [GetFinancialConnectionsAccountDetailsResponse]
336
+ def get_financial_connections_account_details(get_financial_connections_account_details_request, opts = {})
337
+ data, _status_code, _headers = get_financial_connections_account_details_with_http_info(get_financial_connections_account_details_request, opts)
338
+ data
339
+ end
340
+
341
+ # Get account details
342
+ # @param get_financial_connections_account_details_request [GetFinancialConnectionsAccountDetailsRequest]
343
+ # @param [Hash] opts the optional parameters
344
+ # @return [Array<(GetFinancialConnectionsAccountDetailsResponse, Integer, Hash)>] GetFinancialConnectionsAccountDetailsResponse data, response status code and response headers
345
+ def get_financial_connections_account_details_with_http_info(get_financial_connections_account_details_request, opts = {})
346
+ if @api_client.config.debugging
347
+ @api_client.config.logger.debug 'Calling API: FuseApi.get_financial_connections_account_details ...'
348
+ end
349
+ # verify the required parameter 'get_financial_connections_account_details_request' is set
350
+ if @api_client.config.client_side_validation && get_financial_connections_account_details_request.nil?
351
+ fail ArgumentError, "Missing the required parameter 'get_financial_connections_account_details_request' when calling FuseApi.get_financial_connections_account_details"
352
+ end
353
+ # resource path
354
+ local_var_path = '/v1/financial_connections/accounts/details'
355
+
356
+ # query parameters
357
+ query_params = opts[:query_params] || {}
358
+
359
+ # header parameters
360
+ header_params = opts[:header_params] || {}
361
+ # HTTP header 'Accept' (if needed)
362
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
363
+ # HTTP header 'Content-Type'
364
+ content_type = @api_client.select_header_content_type(['application/json'])
365
+ if !content_type.nil?
366
+ header_params['Content-Type'] = content_type
367
+ end
368
+
369
+ # form parameters
370
+ form_params = opts[:form_params] || {}
371
+
372
+ # http body (model)
373
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(get_financial_connections_account_details_request)
374
+
375
+ # return_type
376
+ return_type = opts[:debug_return_type] || 'GetFinancialConnectionsAccountDetailsResponse'
377
+
378
+ # auth_names
379
+ auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
380
+
381
+ new_options = opts.merge(
382
+ :operation => :"FuseApi.get_financial_connections_account_details",
383
+ :header_params => header_params,
384
+ :query_params => query_params,
385
+ :form_params => form_params,
386
+ :body => post_body,
387
+ :auth_names => auth_names,
388
+ :return_type => return_type
389
+ )
390
+
391
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
392
+ if @api_client.config.debugging
393
+ @api_client.config.logger.debug "API called: FuseApi#get_financial_connections_account_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
394
+ end
395
+ return data, status_code, headers
396
+ end
397
+
398
+ # Get accounts
399
+ # @param get_financial_connections_accounts_request [GetFinancialConnectionsAccountsRequest]
400
+ # @param [Hash] opts the optional parameters
401
+ # @return [GetFinancialConnectionsAccountsResponse]
402
+ def get_financial_connections_accounts(get_financial_connections_accounts_request, opts = {})
403
+ data, _status_code, _headers = get_financial_connections_accounts_with_http_info(get_financial_connections_accounts_request, opts)
404
+ data
405
+ end
406
+
407
+ # Get accounts
408
+ # @param get_financial_connections_accounts_request [GetFinancialConnectionsAccountsRequest]
409
+ # @param [Hash] opts the optional parameters
410
+ # @return [Array<(GetFinancialConnectionsAccountsResponse, Integer, Hash)>] GetFinancialConnectionsAccountsResponse data, response status code and response headers
411
+ def get_financial_connections_accounts_with_http_info(get_financial_connections_accounts_request, opts = {})
412
+ if @api_client.config.debugging
413
+ @api_client.config.logger.debug 'Calling API: FuseApi.get_financial_connections_accounts ...'
414
+ end
415
+ # verify the required parameter 'get_financial_connections_accounts_request' is set
416
+ if @api_client.config.client_side_validation && get_financial_connections_accounts_request.nil?
417
+ fail ArgumentError, "Missing the required parameter 'get_financial_connections_accounts_request' when calling FuseApi.get_financial_connections_accounts"
418
+ end
419
+ # resource path
420
+ local_var_path = '/v1/financial_connections/accounts'
421
+
422
+ # query parameters
423
+ query_params = opts[:query_params] || {}
424
+
425
+ # header parameters
426
+ header_params = opts[:header_params] || {}
427
+ # HTTP header 'Accept' (if needed)
428
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
429
+ # HTTP header 'Content-Type'
430
+ content_type = @api_client.select_header_content_type(['application/json'])
431
+ if !content_type.nil?
432
+ header_params['Content-Type'] = content_type
433
+ end
434
+
435
+ # form parameters
436
+ form_params = opts[:form_params] || {}
437
+
438
+ # http body (model)
439
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(get_financial_connections_accounts_request)
440
+
441
+ # return_type
442
+ return_type = opts[:debug_return_type] || 'GetFinancialConnectionsAccountsResponse'
443
+
444
+ # auth_names
445
+ auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
446
+
447
+ new_options = opts.merge(
448
+ :operation => :"FuseApi.get_financial_connections_accounts",
449
+ :header_params => header_params,
450
+ :query_params => query_params,
451
+ :form_params => form_params,
452
+ :body => post_body,
453
+ :auth_names => auth_names,
454
+ :return_type => return_type
455
+ )
456
+
457
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
458
+ if @api_client.config.debugging
459
+ @api_client.config.logger.debug "API called: FuseApi#get_financial_connections_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
460
+ end
461
+ return data, status_code, headers
462
+ end
463
+
464
+ # Get balances
465
+ # @param get_financial_connections_balance_request [GetFinancialConnectionsBalanceRequest]
466
+ # @param [Hash] opts the optional parameters
467
+ # @return [GetFinancialConnectionsAccountBalanceResponse]
468
+ def get_financial_connections_balances(get_financial_connections_balance_request, opts = {})
469
+ data, _status_code, _headers = get_financial_connections_balances_with_http_info(get_financial_connections_balance_request, opts)
470
+ data
471
+ end
472
+
473
+ # Get balances
474
+ # @param get_financial_connections_balance_request [GetFinancialConnectionsBalanceRequest]
475
+ # @param [Hash] opts the optional parameters
476
+ # @return [Array<(GetFinancialConnectionsAccountBalanceResponse, Integer, Hash)>] GetFinancialConnectionsAccountBalanceResponse data, response status code and response headers
477
+ def get_financial_connections_balances_with_http_info(get_financial_connections_balance_request, opts = {})
478
+ if @api_client.config.debugging
479
+ @api_client.config.logger.debug 'Calling API: FuseApi.get_financial_connections_balances ...'
480
+ end
481
+ # verify the required parameter 'get_financial_connections_balance_request' is set
482
+ if @api_client.config.client_side_validation && get_financial_connections_balance_request.nil?
483
+ fail ArgumentError, "Missing the required parameter 'get_financial_connections_balance_request' when calling FuseApi.get_financial_connections_balances"
484
+ end
485
+ # resource path
486
+ local_var_path = '/v1/financial_connections/balances'
487
+
488
+ # query parameters
489
+ query_params = opts[:query_params] || {}
490
+
491
+ # header parameters
492
+ header_params = opts[:header_params] || {}
493
+ # HTTP header 'Accept' (if needed)
494
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
495
+ # HTTP header 'Content-Type'
496
+ content_type = @api_client.select_header_content_type(['application/json'])
497
+ if !content_type.nil?
498
+ header_params['Content-Type'] = content_type
499
+ end
500
+
501
+ # form parameters
502
+ form_params = opts[:form_params] || {}
503
+
504
+ # http body (model)
505
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(get_financial_connections_balance_request)
506
+
507
+ # return_type
508
+ return_type = opts[:debug_return_type] || 'GetFinancialConnectionsAccountBalanceResponse'
509
+
510
+ # auth_names
511
+ auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
512
+
513
+ new_options = opts.merge(
514
+ :operation => :"FuseApi.get_financial_connections_balances",
515
+ :header_params => header_params,
516
+ :query_params => query_params,
517
+ :form_params => form_params,
518
+ :body => post_body,
519
+ :auth_names => auth_names,
520
+ :return_type => return_type
521
+ )
522
+
523
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
524
+ if @api_client.config.debugging
525
+ @api_client.config.logger.debug "API called: FuseApi#get_financial_connections_balances\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
526
+ end
527
+ return data, status_code, headers
528
+ end
529
+
530
+ # Get account owners
531
+ # @param get_financial_connections_owners_request [GetFinancialConnectionsOwnersRequest]
532
+ # @param [Hash] opts the optional parameters
533
+ # @return [GetFinancialConnectionsOwnersResponse]
534
+ def get_financial_connections_owners(get_financial_connections_owners_request, opts = {})
535
+ data, _status_code, _headers = get_financial_connections_owners_with_http_info(get_financial_connections_owners_request, opts)
536
+ data
537
+ end
538
+
539
+ # Get account owners
540
+ # @param get_financial_connections_owners_request [GetFinancialConnectionsOwnersRequest]
541
+ # @param [Hash] opts the optional parameters
542
+ # @return [Array<(GetFinancialConnectionsOwnersResponse, Integer, Hash)>] GetFinancialConnectionsOwnersResponse data, response status code and response headers
543
+ def get_financial_connections_owners_with_http_info(get_financial_connections_owners_request, opts = {})
544
+ if @api_client.config.debugging
545
+ @api_client.config.logger.debug 'Calling API: FuseApi.get_financial_connections_owners ...'
546
+ end
547
+ # verify the required parameter 'get_financial_connections_owners_request' is set
548
+ if @api_client.config.client_side_validation && get_financial_connections_owners_request.nil?
549
+ fail ArgumentError, "Missing the required parameter 'get_financial_connections_owners_request' when calling FuseApi.get_financial_connections_owners"
550
+ end
551
+ # resource path
552
+ local_var_path = '/v1/financial_connections/owners'
553
+
554
+ # query parameters
555
+ query_params = opts[:query_params] || {}
556
+
557
+ # header parameters
558
+ header_params = opts[:header_params] || {}
559
+ # HTTP header 'Accept' (if needed)
560
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
561
+ # HTTP header 'Content-Type'
562
+ content_type = @api_client.select_header_content_type(['application/json'])
563
+ if !content_type.nil?
564
+ header_params['Content-Type'] = content_type
565
+ end
566
+
567
+ # form parameters
568
+ form_params = opts[:form_params] || {}
569
+
570
+ # http body (model)
571
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(get_financial_connections_owners_request)
572
+
573
+ # return_type
574
+ return_type = opts[:debug_return_type] || 'GetFinancialConnectionsOwnersResponse'
575
+
576
+ # auth_names
577
+ auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
578
+
579
+ new_options = opts.merge(
580
+ :operation => :"FuseApi.get_financial_connections_owners",
581
+ :header_params => header_params,
582
+ :query_params => query_params,
583
+ :form_params => form_params,
584
+ :body => post_body,
585
+ :auth_names => auth_names,
586
+ :return_type => return_type
587
+ )
588
+
589
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
590
+ if @api_client.config.debugging
591
+ @api_client.config.logger.debug "API called: FuseApi#get_financial_connections_owners\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
592
+ end
593
+ return data, status_code, headers
594
+ end
595
+
596
+ # Get transactions
597
+ # @param get_transactions_request [GetTransactionsRequest]
598
+ # @param [Hash] opts the optional parameters
599
+ # @return [GetTransactionsResponse]
600
+ def get_financial_connections_transactions(get_transactions_request, opts = {})
601
+ data, _status_code, _headers = get_financial_connections_transactions_with_http_info(get_transactions_request, opts)
602
+ data
603
+ end
604
+
605
+ # Get transactions
606
+ # @param get_transactions_request [GetTransactionsRequest]
607
+ # @param [Hash] opts the optional parameters
608
+ # @return [Array<(GetTransactionsResponse, Integer, Hash)>] GetTransactionsResponse data, response status code and response headers
609
+ def get_financial_connections_transactions_with_http_info(get_transactions_request, opts = {})
610
+ if @api_client.config.debugging
611
+ @api_client.config.logger.debug 'Calling API: FuseApi.get_financial_connections_transactions ...'
612
+ end
613
+ # verify the required parameter 'get_transactions_request' is set
614
+ if @api_client.config.client_side_validation && get_transactions_request.nil?
615
+ fail ArgumentError, "Missing the required parameter 'get_transactions_request' when calling FuseApi.get_financial_connections_transactions"
616
+ end
617
+ # resource path
618
+ local_var_path = '/v1/financial_connections/transactions'
619
+
620
+ # query parameters
621
+ query_params = opts[:query_params] || {}
622
+
623
+ # header parameters
624
+ header_params = opts[:header_params] || {}
625
+ # HTTP header 'Accept' (if needed)
626
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
627
+ # HTTP header 'Content-Type'
628
+ content_type = @api_client.select_header_content_type(['application/json'])
629
+ if !content_type.nil?
630
+ header_params['Content-Type'] = content_type
631
+ end
632
+
633
+ # form parameters
634
+ form_params = opts[:form_params] || {}
635
+
636
+ # http body (model)
637
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(get_transactions_request)
638
+
639
+ # return_type
640
+ return_type = opts[:debug_return_type] || 'GetTransactionsResponse'
641
+
642
+ # auth_names
643
+ auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
644
+
645
+ new_options = opts.merge(
646
+ :operation => :"FuseApi.get_financial_connections_transactions",
647
+ :header_params => header_params,
648
+ :query_params => query_params,
649
+ :form_params => form_params,
650
+ :body => post_body,
651
+ :auth_names => auth_names,
652
+ :return_type => return_type
653
+ )
654
+
655
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
656
+ if @api_client.config.debugging
657
+ @api_client.config.logger.debug "API called: FuseApi#get_financial_connections_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
658
+ end
659
+ return data, status_code, headers
660
+ end
661
+
662
+ # Get investment holdings
663
+ # @param get_investment_holdings_request [GetInvestmentHoldingsRequest]
664
+ # @param [Hash] opts the optional parameters
665
+ # @return [GetInvestmentHoldingsResponse]
666
+ def get_investment_holdings(get_investment_holdings_request, opts = {})
667
+ data, _status_code, _headers = get_investment_holdings_with_http_info(get_investment_holdings_request, opts)
668
+ data
669
+ end
670
+
671
+ # Get investment holdings
672
+ # @param get_investment_holdings_request [GetInvestmentHoldingsRequest]
673
+ # @param [Hash] opts the optional parameters
674
+ # @return [Array<(GetInvestmentHoldingsResponse, Integer, Hash)>] GetInvestmentHoldingsResponse data, response status code and response headers
675
+ def get_investment_holdings_with_http_info(get_investment_holdings_request, opts = {})
676
+ if @api_client.config.debugging
677
+ @api_client.config.logger.debug 'Calling API: FuseApi.get_investment_holdings ...'
678
+ end
679
+ # verify the required parameter 'get_investment_holdings_request' is set
680
+ if @api_client.config.client_side_validation && get_investment_holdings_request.nil?
681
+ fail ArgumentError, "Missing the required parameter 'get_investment_holdings_request' when calling FuseApi.get_investment_holdings"
682
+ end
683
+ # resource path
684
+ local_var_path = '/v1/financial_connections/investments/holdings'
685
+
686
+ # query parameters
687
+ query_params = opts[:query_params] || {}
688
+
689
+ # header parameters
690
+ header_params = opts[:header_params] || {}
691
+ # HTTP header 'Accept' (if needed)
692
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
693
+ # HTTP header 'Content-Type'
694
+ content_type = @api_client.select_header_content_type(['application/json'])
695
+ if !content_type.nil?
696
+ header_params['Content-Type'] = content_type
697
+ end
698
+
699
+ # form parameters
700
+ form_params = opts[:form_params] || {}
701
+
702
+ # http body (model)
703
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(get_investment_holdings_request)
704
+
705
+ # return_type
706
+ return_type = opts[:debug_return_type] || 'GetInvestmentHoldingsResponse'
707
+
708
+ # auth_names
709
+ auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
710
+
711
+ new_options = opts.merge(
712
+ :operation => :"FuseApi.get_investment_holdings",
713
+ :header_params => header_params,
714
+ :query_params => query_params,
715
+ :form_params => form_params,
716
+ :body => post_body,
717
+ :auth_names => auth_names,
718
+ :return_type => return_type
719
+ )
720
+
721
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
722
+ if @api_client.config.debugging
723
+ @api_client.config.logger.debug "API called: FuseApi#get_investment_holdings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
724
+ end
725
+ return data, status_code, headers
726
+ end
727
+
728
+ # Get investment holdings
729
+ # @param get_investment_transactions_request [GetInvestmentTransactionsRequest]
730
+ # @param [Hash] opts the optional parameters
731
+ # @return [GetInvestmentTransactionsResponse]
732
+ def get_investment_transactions(get_investment_transactions_request, opts = {})
733
+ data, _status_code, _headers = get_investment_transactions_with_http_info(get_investment_transactions_request, opts)
734
+ data
735
+ end
736
+
737
+ # Get investment holdings
738
+ # @param get_investment_transactions_request [GetInvestmentTransactionsRequest]
739
+ # @param [Hash] opts the optional parameters
740
+ # @return [Array<(GetInvestmentTransactionsResponse, Integer, Hash)>] GetInvestmentTransactionsResponse data, response status code and response headers
741
+ def get_investment_transactions_with_http_info(get_investment_transactions_request, opts = {})
742
+ if @api_client.config.debugging
743
+ @api_client.config.logger.debug 'Calling API: FuseApi.get_investment_transactions ...'
744
+ end
745
+ # verify the required parameter 'get_investment_transactions_request' is set
746
+ if @api_client.config.client_side_validation && get_investment_transactions_request.nil?
747
+ fail ArgumentError, "Missing the required parameter 'get_investment_transactions_request' when calling FuseApi.get_investment_transactions"
748
+ end
749
+ # resource path
750
+ local_var_path = '/v1/financial_connections/investments/transactions'
751
+
752
+ # query parameters
753
+ query_params = opts[:query_params] || {}
754
+
755
+ # header parameters
756
+ header_params = opts[:header_params] || {}
757
+ # HTTP header 'Accept' (if needed)
758
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
759
+ # HTTP header 'Content-Type'
760
+ content_type = @api_client.select_header_content_type(['application/json'])
761
+ if !content_type.nil?
762
+ header_params['Content-Type'] = content_type
763
+ end
764
+
765
+ # form parameters
766
+ form_params = opts[:form_params] || {}
767
+
768
+ # http body (model)
769
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(get_investment_transactions_request)
770
+
771
+ # return_type
772
+ return_type = opts[:debug_return_type] || 'GetInvestmentTransactionsResponse'
773
+
774
+ # auth_names
775
+ auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
776
+
777
+ new_options = opts.merge(
778
+ :operation => :"FuseApi.get_investment_transactions",
779
+ :header_params => header_params,
780
+ :query_params => query_params,
781
+ :form_params => form_params,
782
+ :body => post_body,
783
+ :auth_names => auth_names,
784
+ :return_type => return_type
785
+ )
786
+
787
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
788
+ if @api_client.config.debugging
789
+ @api_client.config.logger.debug "API called: FuseApi#get_investment_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
790
+ end
791
+ return data, status_code, headers
792
+ end
793
+
794
+ # Sync financial connections data
795
+ # Call this endpoint upon receiving a SYNC_REQUIRED webhook. This will keep the financial connections data up to date.
796
+ # @param body [Object]
797
+ # @param [Hash] opts the optional parameters
798
+ # @return [SyncFinancialConnectionsDataResponse]
799
+ def sync_financial_connections_data(body, opts = {})
800
+ data, _status_code, _headers = sync_financial_connections_data_with_http_info(body, opts)
801
+ data
802
+ end
803
+
804
+ # Sync financial connections data
805
+ # Call this endpoint upon receiving a SYNC_REQUIRED webhook. This will keep the financial connections data up to date.
806
+ # @param body [Object]
807
+ # @param [Hash] opts the optional parameters
808
+ # @return [Array<(SyncFinancialConnectionsDataResponse, Integer, Hash)>] SyncFinancialConnectionsDataResponse data, response status code and response headers
809
+ def sync_financial_connections_data_with_http_info(body, opts = {})
810
+ if @api_client.config.debugging
811
+ @api_client.config.logger.debug 'Calling API: FuseApi.sync_financial_connections_data ...'
812
+ end
813
+ # verify the required parameter 'body' is set
814
+ if @api_client.config.client_side_validation && body.nil?
815
+ fail ArgumentError, "Missing the required parameter 'body' when calling FuseApi.sync_financial_connections_data"
816
+ end
817
+ # resource path
818
+ local_var_path = '/v1/financial_connections/sync'
819
+
820
+ # query parameters
821
+ query_params = opts[:query_params] || {}
822
+
823
+ # header parameters
824
+ header_params = opts[:header_params] || {}
825
+ # HTTP header 'Accept' (if needed)
826
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
827
+ # HTTP header 'Content-Type'
828
+ content_type = @api_client.select_header_content_type(['application/json'])
829
+ if !content_type.nil?
830
+ header_params['Content-Type'] = content_type
831
+ end
832
+
833
+ # form parameters
834
+ form_params = opts[:form_params] || {}
835
+
836
+ # http body (model)
837
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
838
+
839
+ # return_type
840
+ return_type = opts[:debug_return_type] || 'SyncFinancialConnectionsDataResponse'
841
+
842
+ # auth_names
843
+ auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
844
+
845
+ new_options = opts.merge(
846
+ :operation => :"FuseApi.sync_financial_connections_data",
847
+ :header_params => header_params,
848
+ :query_params => query_params,
849
+ :form_params => form_params,
850
+ :body => post_body,
851
+ :auth_names => auth_names,
852
+ :return_type => return_type
853
+ )
854
+
855
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
856
+ if @api_client.config.debugging
857
+ @api_client.config.logger.debug "API called: FuseApi#sync_financial_connections_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
858
+ end
859
+ return data, status_code, headers
860
+ end
861
+
862
+ # Sync transactions
863
+ # @param sync_transactions_request [SyncTransactionsRequest]
864
+ # @param [Hash] opts the optional parameters
865
+ # @return [SyncTransactionsResponse]
866
+ def sync_financial_connections_transactions(sync_transactions_request, opts = {})
867
+ data, _status_code, _headers = sync_financial_connections_transactions_with_http_info(sync_transactions_request, opts)
868
+ data
869
+ end
870
+
871
+ # Sync transactions
872
+ # @param sync_transactions_request [SyncTransactionsRequest]
873
+ # @param [Hash] opts the optional parameters
874
+ # @return [Array<(SyncTransactionsResponse, Integer, Hash)>] SyncTransactionsResponse data, response status code and response headers
875
+ def sync_financial_connections_transactions_with_http_info(sync_transactions_request, opts = {})
876
+ if @api_client.config.debugging
877
+ @api_client.config.logger.debug 'Calling API: FuseApi.sync_financial_connections_transactions ...'
878
+ end
879
+ # verify the required parameter 'sync_transactions_request' is set
880
+ if @api_client.config.client_side_validation && sync_transactions_request.nil?
881
+ fail ArgumentError, "Missing the required parameter 'sync_transactions_request' when calling FuseApi.sync_financial_connections_transactions"
882
+ end
883
+ # resource path
884
+ local_var_path = '/v1/financial_connections/transactions/sync'
885
+
886
+ # query parameters
887
+ query_params = opts[:query_params] || {}
888
+
889
+ # header parameters
890
+ header_params = opts[:header_params] || {}
891
+ # HTTP header 'Accept' (if needed)
892
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
893
+ # HTTP header 'Content-Type'
894
+ content_type = @api_client.select_header_content_type(['application/json'])
895
+ if !content_type.nil?
896
+ header_params['Content-Type'] = content_type
897
+ end
898
+
899
+ # form parameters
900
+ form_params = opts[:form_params] || {}
901
+
902
+ # http body (model)
903
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(sync_transactions_request)
904
+
905
+ # return_type
906
+ return_type = opts[:debug_return_type] || 'SyncTransactionsResponse'
907
+
908
+ # auth_names
909
+ auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
910
+
911
+ new_options = opts.merge(
912
+ :operation => :"FuseApi.sync_financial_connections_transactions",
913
+ :header_params => header_params,
914
+ :query_params => query_params,
915
+ :form_params => form_params,
916
+ :body => post_body,
917
+ :auth_names => auth_names,
918
+ :return_type => return_type
919
+ )
920
+
921
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
922
+ if @api_client.config.debugging
923
+ @api_client.config.logger.debug "API called: FuseApi#sync_financial_connections_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
924
+ end
925
+ return data, status_code, headers
926
+ end
927
+
928
+ # Get liabilities
929
+ # @param get_liabilities_request [GetLiabilitiesRequest]
930
+ # @param [Hash] opts the optional parameters
931
+ # @return [GetLiabilitiesResponse]
932
+ def v1_financial_connections_liabilities_post(get_liabilities_request, opts = {})
933
+ data, _status_code, _headers = v1_financial_connections_liabilities_post_with_http_info(get_liabilities_request, opts)
934
+ data
935
+ end
936
+
937
+ # Get liabilities
938
+ # @param get_liabilities_request [GetLiabilitiesRequest]
939
+ # @param [Hash] opts the optional parameters
940
+ # @return [Array<(GetLiabilitiesResponse, Integer, Hash)>] GetLiabilitiesResponse data, response status code and response headers
941
+ def v1_financial_connections_liabilities_post_with_http_info(get_liabilities_request, opts = {})
942
+ if @api_client.config.debugging
943
+ @api_client.config.logger.debug 'Calling API: FuseApi.v1_financial_connections_liabilities_post ...'
944
+ end
945
+ # verify the required parameter 'get_liabilities_request' is set
946
+ if @api_client.config.client_side_validation && get_liabilities_request.nil?
947
+ fail ArgumentError, "Missing the required parameter 'get_liabilities_request' when calling FuseApi.v1_financial_connections_liabilities_post"
948
+ end
949
+ # resource path
950
+ local_var_path = '/v1/financial_connections/liabilities'
951
+
952
+ # query parameters
953
+ query_params = opts[:query_params] || {}
954
+
955
+ # header parameters
956
+ header_params = opts[:header_params] || {}
957
+ # HTTP header 'Accept' (if needed)
958
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
959
+ # HTTP header 'Content-Type'
960
+ content_type = @api_client.select_header_content_type(['application/json'])
961
+ if !content_type.nil?
962
+ header_params['Content-Type'] = content_type
963
+ end
964
+
965
+ # form parameters
966
+ form_params = opts[:form_params] || {}
967
+
968
+ # http body (model)
969
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(get_liabilities_request)
970
+
971
+ # return_type
972
+ return_type = opts[:debug_return_type] || 'GetLiabilitiesResponse'
973
+
974
+ # auth_names
975
+ auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
976
+
977
+ new_options = opts.merge(
978
+ :operation => :"FuseApi.v1_financial_connections_liabilities_post",
979
+ :header_params => header_params,
980
+ :query_params => query_params,
981
+ :form_params => form_params,
982
+ :body => post_body,
983
+ :auth_names => auth_names,
984
+ :return_type => return_type
985
+ )
986
+
987
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
988
+ if @api_client.config.debugging
989
+ @api_client.config.logger.debug "API called: FuseApi#v1_financial_connections_liabilities_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
990
+ end
991
+ return data, status_code, headers
992
+ end
993
+ end
994
+ end