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.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -5
- data/docs/AccountSubType.md +15 -0
- data/docs/AccountType.md +15 -0
- data/docs/CountryCode.md +15 -0
- data/docs/CreateLinkTokenRequest.md +0 -2
- data/docs/CreateLinkTokenResponse.md +2 -2
- data/docs/CreateSessionRequest.md +9 -1
- data/docs/CreateSessionResponse.md +3 -3
- data/docs/Currency.md +20 -0
- data/docs/DeleteFinancialConnectionResponse.md +22 -0
- data/docs/ExchangeFinancialConnectionsPublicTokenResponse.md +3 -3
- data/docs/FinancialConnectionData.md +2 -2
- data/docs/FinancialConnectionDetails.md +32 -0
- data/docs/FinancialConnectionDetailsMx.md +20 -0
- data/docs/FinancialConnectionDetailsPlaid.md +20 -0
- data/docs/FinancialConnectionDetailsTeller.md +20 -0
- data/docs/FinancialConnectionsAccount.md +8 -8
- data/docs/FinancialConnectionsAccountBalance.md +5 -3
- data/docs/FinancialConnectionsAccountCachedBalance.md +24 -0
- data/docs/FinancialConnectionsAccountDetails.md +2 -2
- data/docs/FinancialConnectionsAccountLiability.md +8 -8
- data/docs/FinancialConnectionsHolding.md +8 -8
- data/docs/FinancialConnectionsInvestmentSecurity.md +17 -7
- data/docs/FinancialConnectionsInvestmentSecurityExchange.md +18 -0
- data/docs/FinancialConnectionsInvestmentTransaction.md +22 -2
- data/docs/FinancialConnectionsOwner.md +4 -4
- data/docs/FinancialConnectionsOwnerEmailsInner.md +1 -1
- data/docs/FinancialConnectionsOwnerNamesInner.md +1 -1
- data/docs/FinancialConnectionsOwnerPhoneNumbersInner.md +1 -1
- data/docs/FinancialInstitution.md +3 -1
- data/docs/FuseApi.md +189 -185
- data/docs/FuseApiErrorData.md +1 -1
- data/docs/FuseApiWarningData.md +1 -1
- data/docs/GetEntityResponse.md +4 -2
- data/docs/GetFinancialConnectionResponse.md +20 -0
- data/docs/GetFinancialConnectionsAccountDetailsResponse.md +3 -3
- data/docs/GetFinancialConnectionsAccountsResponse.md +3 -3
- data/docs/GetFinancialConnectionsBalanceRequest.md +3 -1
- data/docs/GetFinancialConnectionsBalanceRequestOptions.md +18 -0
- data/docs/{GetFinancialConnectionsAccountBalanceResponse.md → GetFinancialConnectionsBalanceResponse.md} +4 -4
- data/docs/GetFinancialConnectionsOwnersResponse.md +1 -1
- data/docs/GetFinancialConnectionsOwnersResponseAccountsInner.md +3 -3
- data/docs/GetFinancialConnectionsTransactionsRequest.md +26 -0
- data/docs/GetFinancialConnectionsTransactionsResponse.md +22 -0
- data/docs/GetFinancialInstitutionResponse.md +2 -2
- data/docs/GetInvestmentHoldingsRequest.md +3 -3
- data/docs/GetInvestmentHoldingsRequestOptions.md +18 -0
- data/docs/GetInvestmentHoldingsResponse.md +3 -5
- data/docs/GetInvestmentTransactionsRequest.md +11 -1
- data/docs/GetInvestmentTransactionsRequestOptions.md +18 -0
- data/docs/GetInvestmentTransactionsResponse.md +3 -5
- data/docs/MigrateFinancialConnectionsAggregatorConnectionData.md +20 -0
- data/docs/MigrateFinancialConnectionsAggregatorConnectionDataMx.md +20 -0
- data/docs/MigrateFinancialConnectionsAggregatorConnectionDataPlaid.md +18 -0
- data/docs/MigrateFinancialConnectionsTokenRequest.md +24 -0
- data/docs/MigrateFinancialConnectionsTokenRequestEntity.md +18 -0
- data/docs/MigrateFinancialConnectionsTokenResponse.md +24 -0
- data/docs/SyncTransactionsResponse.md +2 -2
- data/docs/{GetTransactionsResponseDataInner.md → Transaction.md} +16 -14
- data/docs/{GetTransactionsResponseDataInnerMerchant.md → TransactionMerchant.md} +2 -2
- data/docs/WebhookEvent.md +28 -0
- data/docs/WebhookSource.md +15 -0
- data/docs/WebhookType.md +15 -0
- data/fuse_client.gemspec +1 -1
- data/lib/fuse_client/api/fuse_api.rb +181 -197
- data/lib/fuse_client/api_client.rb +1 -1
- data/lib/fuse_client/api_error.rb +1 -1
- data/lib/fuse_client/configuration.rb +39 -18
- data/lib/fuse_client/models/account_subtype.rb +178 -0
- data/lib/fuse_client/models/account_type.rb +45 -0
- data/lib/fuse_client/models/aggregator.rb +3 -3
- data/lib/fuse_client/models/country_code.rb +40 -0
- data/lib/fuse_client/models/create_asset_report_request.rb +1 -1
- data/lib/fuse_client/models/create_asset_report_response.rb +1 -1
- data/lib/fuse_client/models/create_entity_request.rb +1 -1
- data/lib/fuse_client/models/create_entity_response.rb +1 -1
- data/lib/fuse_client/models/create_link_token_request.rb +2 -12
- data/lib/fuse_client/models/create_link_token_request_mx.rb +1 -1
- data/lib/fuse_client/models/create_link_token_request_plaid.rb +1 -1
- data/lib/fuse_client/models/create_link_token_response.rb +11 -1
- data/lib/fuse_client/models/create_session_request.rb +46 -5
- data/lib/fuse_client/models/create_session_response.rb +16 -1
- data/lib/fuse_client/models/currency.rb +235 -0
- data/lib/fuse_client/models/delete_financial_connection_response.rb +255 -0
- data/lib/fuse_client/models/entity.rb +1 -1
- data/lib/fuse_client/models/exchange_financial_connections_public_token_request.rb +1 -1
- data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +16 -1
- data/lib/fuse_client/models/financial_connection_data.rb +11 -1
- data/lib/fuse_client/models/financial_connection_details.rb +345 -0
- data/lib/fuse_client/models/financial_connection_details_mx.rb +241 -0
- data/lib/fuse_client/models/{get_transactions_request.rb → financial_connection_details_plaid.rb} +19 -23
- data/lib/fuse_client/models/financial_connection_details_teller.rb +241 -0
- data/lib/fuse_client/models/financial_connections_account.rb +59 -14
- data/lib/fuse_client/models/financial_connections_account_balance.rb +21 -6
- data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +250 -0
- data/lib/fuse_client/models/financial_connections_account_details.rb +11 -1
- data/lib/fuse_client/models/financial_connections_account_details_ach.rb +1 -1
- data/lib/fuse_client/models/financial_connections_account_institution.rb +1 -1
- data/lib/fuse_client/models/financial_connections_account_liability.rb +59 -14
- data/lib/fuse_client/models/financial_connections_account_liability_all_of.rb +1 -1
- data/lib/fuse_client/models/financial_connections_account_liability_all_of_aprs.rb +1 -1
- data/lib/fuse_client/models/financial_connections_holding.rb +52 -23
- data/lib/fuse_client/models/financial_connections_investment_security.rb +92 -24
- data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +220 -0
- data/lib/fuse_client/models/financial_connections_investment_transaction.rb +158 -10
- data/lib/fuse_client/models/financial_connections_owner.rb +21 -1
- data/lib/fuse_client/models/financial_connections_owner_addresses_inner.rb +1 -1
- data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +1 -1
- data/lib/fuse_client/models/financial_connections_owner_emails_inner.rb +6 -1
- data/lib/fuse_client/models/financial_connections_owner_names_inner.rb +6 -1
- data/lib/fuse_client/models/financial_connections_owner_phone_numbers_inner.rb +6 -1
- data/lib/fuse_client/models/financial_institution.rb +22 -5
- data/lib/fuse_client/models/financial_institution_logo.rb +1 -1
- data/lib/fuse_client/models/fuse_api_error.rb +25 -1
- data/lib/fuse_client/models/fuse_api_error_data.rb +24 -2
- data/lib/fuse_client/models/fuse_api_warning.rb +1 -1
- data/lib/fuse_client/models/fuse_api_warning_data.rb +24 -2
- data/lib/fuse_client/models/fuse_api_warning_data_warnings_inner.rb +1 -1
- data/lib/fuse_client/models/get_asset_report_request.rb +1 -1
- data/lib/fuse_client/models/get_asset_report_response.rb +1 -1
- data/lib/fuse_client/models/get_asset_report_response_report.rb +1 -1
- data/lib/fuse_client/models/get_asset_report_response_report_accounts_inner.rb +1 -1
- data/lib/fuse_client/models/get_asset_report_response_report_accounts_inner_balances.rb +1 -1
- data/lib/fuse_client/models/get_asset_report_response_report_accounts_inner_historical_balances_inner.rb +1 -1
- data/lib/fuse_client/models/get_entity_response.rb +29 -2
- data/lib/fuse_client/models/{get_transactions_response.rb → get_financial_connection_response.rb} +21 -33
- data/lib/fuse_client/models/get_financial_connections_account_details_request.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_account_details_response.rb +16 -1
- data/lib/fuse_client/models/get_financial_connections_accounts_request.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_accounts_response.rb +16 -1
- data/lib/fuse_client/models/get_financial_connections_balance_request.rb +14 -5
- data/lib/fuse_client/models/get_financial_connections_balance_request_options.rb +222 -0
- data/lib/fuse_client/models/{get_financial_connections_account_balance_response.rb → get_financial_connections_balance_response.rb} +14 -4
- data/lib/fuse_client/models/get_financial_connections_owners_request.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_owners_response.rb +6 -1
- data/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +16 -1
- data/lib/fuse_client/models/get_financial_connections_transactions_request.rb +334 -0
- data/lib/fuse_client/models/get_financial_connections_transactions_response.rb +256 -0
- data/lib/fuse_client/models/get_financial_institution_response.rb +11 -1
- data/lib/fuse_client/models/get_investment_holdings_request.rb +9 -10
- data/lib/fuse_client/models/get_investment_holdings_request_options.rb +222 -0
- data/lib/fuse_client/models/get_investment_holdings_response.rb +18 -14
- data/lib/fuse_client/models/get_investment_transactions_request.rb +95 -5
- data/lib/fuse_client/models/get_investment_transactions_request_options.rb +222 -0
- data/lib/fuse_client/models/get_investment_transactions_response.rb +18 -14
- data/lib/fuse_client/models/get_liabilities_request.rb +1 -1
- data/lib/fuse_client/models/get_liabilities_response.rb +1 -1
- data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data.rb +229 -0
- data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_mx.rb +236 -0
- data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_plaid.rb +226 -0
- data/lib/fuse_client/models/{financial_connections_investment_account.rb → migrate_financial_connections_token_request.rb} +86 -70
- data/lib/fuse_client/models/{transaction_common_model.rb → migrate_financial_connections_token_request_entity.rb} +12 -13
- data/lib/fuse_client/models/migrate_financial_connections_token_response.rb +264 -0
- data/lib/fuse_client/models/product.rb +3 -3
- data/lib/fuse_client/models/refresh_asset_report_request.rb +1 -1
- data/lib/fuse_client/models/sync_financial_connections_data_response.rb +1 -1
- data/lib/fuse_client/models/sync_transactions_request.rb +1 -1
- data/lib/fuse_client/models/sync_transactions_response.rb +3 -3
- data/lib/fuse_client/models/sync_transactions_response_removed_inner.rb +1 -1
- data/lib/fuse_client/models/{get_transactions_response_data_inner.rb → transaction.rb} +110 -21
- data/lib/fuse_client/models/{get_transactions_response_data_inner_merchant.rb → transaction_merchant.rb} +4 -4
- data/lib/fuse_client/models/update_entity_request.rb +1 -1
- data/lib/fuse_client/models/update_entity_response.rb +1 -1
- data/lib/fuse_client/models/{financial_connections_investment_transaction_data_inner.rb → webhook_event.rb} +94 -63
- data/lib/fuse_client/models/webhook_source.rb +43 -0
- data/lib/fuse_client/models/webhook_type.rb +42 -0
- data/lib/fuse_client/version.rb +2 -2
- data/lib/fuse_client.rb +30 -9
- data/spec/api/fuse_api_spec.rb +40 -39
- data/spec/api_client_spec.rb +3 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_subtype_spec.rb +28 -0
- data/spec/models/account_type_spec.rb +28 -0
- data/spec/models/aggregator_spec.rb +1 -1
- data/spec/models/country_code_spec.rb +28 -0
- data/spec/models/create_asset_report_request_spec.rb +1 -1
- data/spec/models/create_asset_report_response_spec.rb +1 -1
- data/spec/models/create_entity_request_spec.rb +1 -1
- data/spec/models/create_entity_response_spec.rb +1 -1
- data/spec/models/create_link_token_request_mx_spec.rb +1 -1
- data/spec/models/create_link_token_request_plaid_spec.rb +1 -1
- data/spec/models/create_link_token_request_spec.rb +1 -7
- data/spec/models/create_link_token_response_spec.rb +1 -1
- data/spec/models/create_session_request_spec.rb +25 -1
- data/spec/models/create_session_response_spec.rb +1 -1
- data/spec/models/{get_transactions_response_data_inner_merchant_spec.rb → currency_spec.rb} +13 -7
- data/spec/models/{get_transactions_request_spec.rb → delete_financial_connection_response_spec.rb} +10 -10
- data/spec/models/entity_spec.rb +1 -1
- data/spec/models/exchange_financial_connections_public_token_request_spec.rb +1 -1
- data/spec/models/exchange_financial_connections_public_token_response_spec.rb +1 -1
- data/spec/models/financial_connection_data_spec.rb +1 -1
- data/spec/models/financial_connection_details_mx_spec.rb +40 -0
- data/spec/models/financial_connection_details_plaid_spec.rb +40 -0
- data/spec/models/{financial_connections_investment_transaction_data_inner_spec.rb → financial_connection_details_spec.rb} +18 -14
- data/spec/models/financial_connection_details_teller_spec.rb +40 -0
- data/spec/models/financial_connections_account_balance_spec.rb +7 -1
- data/spec/models/financial_connections_account_cached_balance_spec.rb +52 -0
- data/spec/models/financial_connections_account_details_ach_spec.rb +1 -1
- data/spec/models/financial_connections_account_details_spec.rb +1 -1
- data/spec/models/financial_connections_account_institution_spec.rb +1 -1
- data/spec/models/financial_connections_account_liability_all_of_aprs_spec.rb +1 -1
- data/spec/models/financial_connections_account_liability_all_of_spec.rb +1 -1
- data/spec/models/financial_connections_account_liability_spec.rb +2 -2
- data/spec/models/financial_connections_account_spec.rb +2 -2
- data/spec/models/financial_connections_holding_spec.rb +4 -4
- data/spec/models/financial_connections_investment_security_exchange_spec.rb +34 -0
- data/spec/models/financial_connections_investment_security_spec.rb +34 -4
- data/spec/models/financial_connections_investment_transaction_spec.rb +62 -2
- data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +1 -1
- data/spec/models/financial_connections_owner_addresses_inner_spec.rb +1 -1
- data/spec/models/financial_connections_owner_emails_inner_spec.rb +1 -1
- data/spec/models/financial_connections_owner_names_inner_spec.rb +1 -1
- data/spec/models/financial_connections_owner_phone_numbers_inner_spec.rb +1 -1
- data/spec/models/financial_connections_owner_spec.rb +1 -1
- data/spec/models/financial_institution_logo_spec.rb +1 -1
- data/spec/models/financial_institution_spec.rb +7 -1
- data/spec/models/fuse_api_error_data_spec.rb +1 -1
- data/spec/models/fuse_api_error_spec.rb +9 -1
- data/spec/models/fuse_api_warning_data_spec.rb +1 -1
- data/spec/models/fuse_api_warning_data_warnings_inner_spec.rb +1 -1
- data/spec/models/fuse_api_warning_spec.rb +1 -1
- data/spec/models/get_asset_report_request_spec.rb +1 -1
- data/spec/models/get_asset_report_response_report_accounts_inner_balances_spec.rb +1 -1
- data/spec/models/get_asset_report_response_report_accounts_inner_historical_balances_inner_spec.rb +1 -1
- data/spec/models/get_asset_report_response_report_accounts_inner_spec.rb +1 -1
- data/spec/models/get_asset_report_response_report_spec.rb +1 -1
- data/spec/models/get_asset_report_response_spec.rb +1 -1
- data/spec/models/get_entity_response_spec.rb +7 -1
- data/spec/models/get_financial_connection_response_spec.rb +40 -0
- data/spec/models/get_financial_connections_account_details_request_spec.rb +1 -1
- data/spec/models/get_financial_connections_account_details_response_spec.rb +1 -1
- data/spec/models/get_financial_connections_accounts_request_spec.rb +1 -1
- data/spec/models/get_financial_connections_accounts_response_spec.rb +1 -1
- data/spec/models/get_financial_connections_balance_request_options_spec.rb +34 -0
- data/spec/models/get_financial_connections_balance_request_spec.rb +7 -1
- data/spec/models/{get_financial_connections_account_balance_response_spec.rb → get_financial_connections_balance_response_spec.rb} +7 -7
- data/spec/models/get_financial_connections_owners_request_spec.rb +1 -1
- data/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +1 -1
- data/spec/models/get_financial_connections_owners_response_spec.rb +1 -1
- data/spec/models/get_financial_connections_transactions_request_spec.rb +58 -0
- data/spec/models/get_financial_connections_transactions_response_spec.rb +46 -0
- data/spec/models/get_financial_institution_response_spec.rb +1 -1
- data/spec/models/get_investment_holdings_request_options_spec.rb +34 -0
- data/spec/models/get_investment_holdings_request_spec.rb +2 -2
- data/spec/models/get_investment_holdings_response_spec.rb +1 -7
- data/spec/models/get_investment_transactions_request_options_spec.rb +34 -0
- data/spec/models/get_investment_transactions_request_spec.rb +31 -1
- data/spec/models/get_investment_transactions_response_spec.rb +1 -7
- data/spec/models/get_liabilities_request_spec.rb +1 -1
- data/spec/models/get_liabilities_response_spec.rb +1 -1
- data/spec/models/migrate_financial_connections_aggregator_connection_data_mx_spec.rb +40 -0
- data/spec/models/migrate_financial_connections_aggregator_connection_data_plaid_spec.rb +34 -0
- data/spec/models/migrate_financial_connections_aggregator_connection_data_spec.rb +40 -0
- data/spec/models/migrate_financial_connections_token_request_entity_spec.rb +34 -0
- data/spec/models/migrate_financial_connections_token_request_spec.rb +56 -0
- data/spec/models/{get_transactions_response_spec.rb → migrate_financial_connections_token_response_spec.rb} +10 -10
- data/spec/models/product_spec.rb +1 -1
- data/spec/models/refresh_asset_report_request_spec.rb +1 -1
- data/spec/models/sync_financial_connections_data_response_spec.rb +1 -1
- data/spec/models/sync_transactions_request_spec.rb +1 -1
- data/spec/models/sync_transactions_response_removed_inner_spec.rb +1 -1
- data/spec/models/sync_transactions_response_spec.rb +1 -1
- data/spec/models/{transaction_common_model_spec.rb → transaction_merchant_spec.rb} +8 -8
- data/spec/models/{get_transactions_response_data_inner_spec.rb → transaction_spec.rb} +23 -13
- data/spec/models/update_entity_request_spec.rb +1 -1
- data/spec/models/update_entity_response_spec.rb +1 -1
- data/spec/models/{financial_connections_investment_account_spec.rb → webhook_event_spec.rb} +17 -25
- data/spec/models/webhook_source_spec.rb +28 -0
- data/spec/models/webhook_type_spec.rb +28 -0
- data/spec/spec_helper.rb +1 -1
- metadata +118 -34
- data/docs/FinancialConnectionsInvestmentAccount.md +0 -32
- data/docs/FinancialConnectionsInvestmentTransactionDataInner.md +0 -32
- data/docs/GetTransactionsRequest.md +0 -22
- data/docs/GetTransactionsResponse.md +0 -24
- 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.
|
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
|
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
|
-
# @
|
88
|
-
|
89
|
-
|
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
|
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
|
-
# @
|
97
|
-
|
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.
|
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/
|
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(
|
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] || '
|
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.
|
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#
|
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
|
-
#
|
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 [
|
153
|
-
# @return [
|
154
|
-
def
|
155
|
-
data, _status_code, _headers =
|
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
|
-
#
|
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 [
|
162
|
-
# @return [Array<(
|
163
|
-
def
|
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.
|
161
|
+
@api_client.config.logger.debug 'Calling API: FuseApi.create_session ...'
|
166
162
|
end
|
167
163
|
# resource path
|
168
|
-
local_var_path = '/v1/
|
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[:'
|
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] || '
|
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.
|
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#
|
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
|
-
#
|
208
|
+
# Delete a financial connection
|
209
|
+
# @param financial_connection_id_to_delete [String]
|
213
210
|
# @param [Hash] opts the optional parameters
|
214
|
-
# @
|
215
|
-
|
216
|
-
|
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
|
-
#
|
217
|
+
# Delete a financial connection
|
218
|
+
# @param financial_connection_id_to_delete [String]
|
222
219
|
# @param [Hash] opts the optional parameters
|
223
|
-
# @
|
224
|
-
|
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.
|
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/
|
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]
|
244
|
+
post_body = opts[:debug_body]
|
250
245
|
|
251
246
|
# return_type
|
252
|
-
return_type = opts[:debug_return_type] || '
|
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.
|
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(:
|
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#
|
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 'create session' 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 [
|
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<(
|
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] || '
|
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
|
782
|
+
# @param get_financial_connections_transactions_request [GetFinancialConnectionsTransactionsRequest]
|
725
783
|
# @param [Hash] opts the optional parameters
|
726
|
-
# @return [
|
727
|
-
def get_financial_connections_transactions(
|
728
|
-
data, _status_code, _headers = get_financial_connections_transactions_with_http_info(
|
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
|
791
|
+
# @param get_financial_connections_transactions_request [GetFinancialConnectionsTransactionsRequest]
|
734
792
|
# @param [Hash] opts the optional parameters
|
735
|
-
# @return [Array<(
|
736
|
-
def get_financial_connections_transactions_with_http_info(
|
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 '
|
741
|
-
if @api_client.config.client_side_validation &&
|
742
|
-
fail ArgumentError, "Missing the required parameter '
|
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(
|
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] || '
|
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
|
-
#
|
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 [
|
987
|
-
# @return [
|
988
|
-
def
|
989
|
-
data, _status_code, _headers =
|
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
|
-
#
|
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's data, access token, ID, and request ID.
|
994
1054
|
# @param [Hash] opts the optional parameters
|
995
|
-
# @option opts [
|
996
|
-
# @return [Array<(
|
997
|
-
def
|
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.
|
1059
|
+
@api_client.config.logger.debug 'Calling API: FuseApi.migrate_financial_connection ...'
|
1000
1060
|
end
|
1001
1061
|
# resource path
|
1002
|
-
local_var_path = '/v1/
|
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[:'
|
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] || '
|
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.
|
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#
|
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
|
-
#
|
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
|
-
# @
|
1051
|
-
|
1052
|
-
|
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
|
-
#
|
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
|
-
# @
|
1061
|
-
|
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.
|
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/
|
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(
|
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] || '
|
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.
|
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#
|
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
|
1115
|
-
#
|
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 [
|
1118
|
-
def
|
1119
|
-
data, _status_code, _headers =
|
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
|
1124
|
-
#
|
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<(
|
1127
|
-
def
|
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.
|
1185
|
+
@api_client.config.logger.debug 'Calling API: FuseApi.sync_financial_connections_data ...'
|
1130
1186
|
end
|
1131
|
-
# verify the required parameter '
|
1132
|
-
if @api_client.config.client_side_validation &&
|
1133
|
-
fail ArgumentError, "Missing the required parameter '
|
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/
|
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(
|
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] || '
|
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.
|
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#
|
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
|