fuse_client 1.0.7 → 1.0.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -9
- data/README.md +4 -1
- data/docs/AccountSubType.md +15 -0
- data/docs/AccountType.md +15 -0
- data/docs/AddSpendPowerTransactionRequest.md +22 -0
- data/docs/AddSpendPowerTransactionResponse.md +20 -0
- data/docs/AssetReport.md +26 -0
- data/docs/AssetReportAccountsInner.md +24 -0
- data/docs/{GetAssetReportResponseReportAccountsInnerBalances.md → AssetReportAccountsInnerBalance.md} +2 -2
- data/docs/{GetAssetReportResponseReportAccountsInnerHistoricalBalancesInner.md → AssetReportAccountsInnerHistoricalBalancesInner.md} +2 -2
- data/docs/{GetAssetReportResponse.md → AssetReportResponse.md} +3 -3
- data/docs/AssetReportTransaction.md +36 -0
- data/docs/CountryCode.md +15 -0
- data/docs/CreateAssetReportRequest.md +2 -4
- data/docs/CreateAssetReportResponse.md +2 -2
- data/docs/CreateLinkTokenRequest.md +6 -4
- data/docs/CreateLinkTokenRequestPlaid.md +1 -1
- data/docs/CreateLinkTokenRequestTeller.md +18 -0
- data/docs/CreateLinkTokenRequestTellerConfig.md +18 -0
- data/docs/CreateLinkTokenResponse.md +2 -2
- data/docs/CreateSessionRequest.md +11 -3
- data/docs/CreateSessionResponse.md +3 -3
- data/docs/CreateSpendPowerCustomizationResponse.md +20 -0
- data/docs/CreateSpendPowerRequest.md +22 -0
- data/docs/CreateSpendPowerResponse.md +20 -0
- data/docs/Currency.md +20 -0
- data/docs/DeleteFinancialConnectionResponse.md +22 -0
- data/docs/DeleteSpendPowerResponse.md +20 -0
- data/docs/Entity.md +1 -1
- data/docs/ExchangeFinancialConnectionsPublicTokenRequest.md +1 -1
- 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/FinancialConnectionsInvestmentSecurityType.md +15 -0
- data/docs/FinancialConnectionsInvestmentTransaction.md +24 -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 +588 -118
- data/docs/FuseApiAggregatorError.md +28 -0
- data/docs/FuseApiError.md +7 -5
- data/docs/FuseApiErrorCode.md +15 -0
- data/docs/FuseApiErrorData.md +2 -2
- data/docs/FuseApiErrorType.md +15 -0
- data/docs/FuseApiWarningData.md +1 -1
- data/docs/GetAssetReportRequest.md +2 -0
- data/docs/GetEntityResponse.md +4 -2
- data/docs/GetFinancialConnectionResponse.md +20 -0
- data/docs/GetFinancialConnectionsAccountDetailsResponse.md +3 -3
- data/docs/GetFinancialConnectionsAccountStatementRequest.md +22 -0
- data/docs/GetFinancialConnectionsAccountStatementResponse.md +20 -0
- 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 +5 -5
- data/docs/GetSpendPowerResponse.md +20 -0
- data/docs/MigrateFinancialConnectionsAggregatorConnectionData.md +22 -0
- data/docs/MigrateFinancialConnectionsAggregatorConnectionDataMx.md +20 -0
- data/docs/MigrateFinancialConnectionsAggregatorConnectionDataPlaid.md +20 -0
- data/docs/MigrateFinancialConnectionsAggregatorConnectionDataTeller.md +18 -0
- data/docs/MigrateFinancialConnectionsTokenRequest.md +24 -0
- data/docs/MigrateFinancialConnectionsTokenRequestEntity.md +18 -0
- data/docs/MigrateFinancialConnectionsTokenResponse.md +24 -0
- data/docs/RefreshAssetReportRequest.md +5 -5
- data/docs/RefreshAssetReportResponse.md +22 -0
- data/docs/SpendPower.md +30 -0
- data/docs/SpendPowerApi.md +122 -0
- data/docs/SpendPowerCustomization.md +22 -0
- data/docs/SyncTransactionsResponse.md +2 -2
- data/docs/Transaction.md +38 -0
- data/docs/{GetTransactionsResponseDataInnerMerchant.md → TransactionMerchant.md} +2 -2
- data/docs/UpdateSpendPowerCustomizationResponse.md +20 -0
- data/docs/WebhookEvent.md +34 -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 +489 -136
- data/lib/fuse_client/api/spend_power_api.rb +146 -0
- data/lib/fuse_client/api_client.rb +1 -1
- data/lib/fuse_client/api_error.rb +1 -1
- data/lib/fuse_client/configuration.rb +86 -18
- data/lib/fuse_client/models/account_subtype.rb +178 -0
- data/lib/fuse_client/models/account_type.rb +46 -0
- data/lib/fuse_client/models/{get_transactions_response_data_inner.rb → add_spend_power_transaction_request.rb} +56 -83
- data/lib/fuse_client/models/{get_transactions_response.rb → add_spend_power_transaction_response.rb} +22 -33
- data/lib/fuse_client/models/aggregator.rb +4 -2
- data/lib/fuse_client/models/{get_asset_report_response_report.rb → asset_report.rb} +15 -27
- data/lib/fuse_client/models/{get_asset_report_response_report_accounts_inner.rb → asset_report_accounts_inner.rb} +27 -26
- data/lib/fuse_client/models/{get_asset_report_response_report_accounts_inner_balances.rb → asset_report_accounts_inner_balance.rb} +4 -4
- data/lib/fuse_client/models/{get_asset_report_response_report_accounts_inner_historical_balances_inner.rb → asset_report_accounts_inner_historical_balances_inner.rb} +4 -4
- data/lib/fuse_client/models/{get_asset_report_response.rb → asset_report_response.rb} +5 -5
- data/lib/fuse_client/models/asset_report_transaction.rb +385 -0
- data/lib/fuse_client/models/country_code.rb +40 -0
- data/lib/fuse_client/models/create_asset_report_request.rb +11 -23
- data/lib/fuse_client/models/create_asset_report_response.rb +3 -3
- 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 +25 -16
- data/lib/fuse_client/models/create_link_token_request_mx.rb +1 -1
- data/lib/fuse_client/models/create_link_token_request_plaid.rb +2 -2
- data/lib/fuse_client/models/create_link_token_request_teller.rb +220 -0
- data/lib/fuse_client/models/create_link_token_request_teller_config.rb +254 -0
- data/lib/fuse_client/models/create_link_token_response.rb +11 -1
- data/lib/fuse_client/models/create_session_request.rb +75 -11
- data/lib/fuse_client/models/create_session_response.rb +16 -1
- data/lib/fuse_client/models/create_spend_power_customization_response.rb +240 -0
- data/lib/fuse_client/models/create_spend_power_request.rb +255 -0
- data/lib/fuse_client/models/create_spend_power_response.rb +240 -0
- 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/delete_spend_power_response.rb +239 -0
- data/lib/fuse_client/models/entity.rb +2 -2
- data/lib/fuse_client/models/exchange_financial_connections_public_token_request.rb +6 -1
- data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +18 -3
- 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 +108 -24
- data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +220 -0
- data/lib/fuse_client/models/financial_connections_investment_security_type.rb +64 -0
- data/lib/fuse_client/models/financial_connections_investment_transaction.rb +206 -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_aggregator_error.rb +264 -0
- data/lib/fuse_client/models/fuse_api_error.rb +43 -4
- data/lib/fuse_client/models/fuse_api_error_code.rb +76 -0
- data/lib/fuse_client/models/fuse_api_error_data.rb +25 -3
- data/lib/fuse_client/models/fuse_api_error_type.rb +42 -0
- 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 +17 -2
- data/lib/fuse_client/models/get_entity_response.rb +29 -2
- data/lib/fuse_client/models/get_financial_connection_response.rb +239 -0
- 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_account_statement_request.rb +250 -0
- data/lib/fuse_client/models/get_financial_connections_account_statement_response.rb +240 -0
- 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 +25 -11
- 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/get_spend_power_response.rb +239 -0
- data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data.rb +238 -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 +236 -0
- data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_teller.rb +226 -0
- data/lib/fuse_client/models/migrate_financial_connections_token_request.rb +323 -0
- 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 +32 -33
- data/lib/fuse_client/models/refresh_asset_report_response.rb +240 -0
- data/lib/fuse_client/models/{financial_connections_investment_transaction_data_inner.rb → spend_power.rb} +83 -58
- data/lib/fuse_client/models/{financial_connections_investment_account.rb → spend_power_customization.rb} +75 -74
- 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/transaction.rb +412 -0
- 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/update_spend_power_customization_response.rb +240 -0
- data/lib/fuse_client/models/webhook_event.rb +353 -0
- data/lib/fuse_client/models/webhook_source.rb +43 -0
- data/lib/fuse_client/models/webhook_type.rb +43 -0
- data/lib/fuse_client/version.rb +2 -2
- data/lib/fuse_client.rb +57 -14
- data/spec/api/fuse_api_spec.rb +100 -36
- data/spec/api/spend_power_api_spec.rb +64 -0
- 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/add_spend_power_transaction_request_spec.rb +50 -0
- data/spec/models/add_spend_power_transaction_response_spec.rb +40 -0
- data/spec/models/aggregator_spec.rb +1 -1
- data/spec/models/{get_asset_report_response_report_accounts_inner_balances_spec.rb → asset_report_accounts_inner_balance_spec.rb} +7 -7
- data/spec/models/{get_asset_report_response_report_accounts_inner_historical_balances_inner_spec.rb → asset_report_accounts_inner_historical_balances_inner_spec.rb} +7 -7
- data/spec/models/{get_transactions_response_spec.rb → asset_report_accounts_inner_spec.rb} +11 -11
- data/spec/models/{get_asset_report_response_spec.rb → asset_report_response_spec.rb} +7 -7
- data/spec/models/{get_asset_report_response_report_spec.rb → asset_report_spec.rb} +8 -14
- data/spec/models/asset_report_transaction_spec.rb +96 -0
- data/spec/models/country_code_spec.rb +28 -0
- data/spec/models/create_asset_report_request_spec.rb +1 -7
- 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 +10 -4
- data/spec/models/create_link_token_request_teller_config_spec.rb +38 -0
- data/spec/models/create_link_token_request_teller_spec.rb +34 -0
- 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/create_spend_power_customization_response_spec.rb +40 -0
- data/spec/models/{get_transactions_request_spec.rb → create_spend_power_request_spec.rb} +9 -9
- data/spec/models/create_spend_power_response_spec.rb +40 -0
- data/spec/models/{get_transactions_response_data_inner_merchant_spec.rb → currency_spec.rb} +13 -7
- data/spec/models/delete_financial_connection_response_spec.rb +46 -0
- data/spec/models/delete_spend_power_response_spec.rb +40 -0
- 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/{get_asset_report_response_report_accounts_inner_spec.rb → financial_connections_account_cached_balance_spec.rb} +11 -11
- 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_security_type_spec.rb +28 -0
- data/spec/models/financial_connections_investment_transaction_spec.rb +72 -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_aggregator_error_spec.rb +64 -0
- data/spec/models/fuse_api_error_code_spec.rb +28 -0
- data/spec/models/fuse_api_error_data_spec.rb +1 -1
- data/spec/models/fuse_api_error_spec.rb +7 -1
- data/spec/models/fuse_api_error_type_spec.rb +28 -0
- 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 +7 -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_account_statement_request_spec.rb +46 -0
- data/spec/models/{get_financial_connections_account_balance_response_spec.rb → get_financial_connections_account_statement_response_spec.rb} +8 -8
- 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_balance_response_spec.rb +40 -0
- 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 +2 -2
- data/spec/models/get_liabilities_request_spec.rb +1 -1
- data/spec/models/get_liabilities_response_spec.rb +1 -1
- data/spec/models/get_spend_power_response_spec.rb +40 -0
- 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 +40 -0
- data/spec/models/migrate_financial_connections_aggregator_connection_data_spec.rb +46 -0
- data/spec/models/migrate_financial_connections_aggregator_connection_data_teller_spec.rb +34 -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/migrate_financial_connections_token_response_spec.rb +52 -0
- data/spec/models/product_spec.rb +1 -1
- data/spec/models/refresh_asset_report_request_spec.rb +3 -3
- data/spec/models/refresh_asset_report_response_spec.rb +46 -0
- data/spec/models/spend_power_customization_spec.rb +50 -0
- data/spec/models/{financial_connections_investment_account_spec.rb → spend_power_spec.rb} +14 -20
- 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/transaction_spec.rb +106 -0
- data/spec/models/update_entity_request_spec.rb +1 -1
- data/spec/models/update_entity_response_spec.rb +1 -1
- data/spec/models/update_spend_power_customization_response_spec.rb +40 -0
- data/spec/models/{get_transactions_response_data_inner_spec.rb → webhook_event_spec.rb} +20 -22
- 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 +226 -54
- data/docs/FinancialConnectionsInvestmentAccount.md +0 -32
- data/docs/FinancialConnectionsInvestmentTransactionDataInner.md +0 -32
- data/docs/GetAssetReportResponseReport.md +0 -28
- data/docs/GetAssetReportResponseReportAccountsInner.md +0 -24
- data/docs/GetTransactionsRequest.md +0 -22
- data/docs/GetTransactionsResponse.md +0 -24
- data/docs/GetTransactionsResponseDataInner.md +0 -36
- 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.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,25 +19,29 @@ module FuseClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
#
|
22
|
+
# @param spend_power_id [String]
|
23
23
|
# @param [Hash] opts the optional parameters
|
24
|
-
# @option opts [
|
25
|
-
# @return [
|
26
|
-
def
|
27
|
-
data, _status_code, _headers =
|
24
|
+
# @option opts [AddSpendPowerTransactionRequest] :add_spend_power_transaction_request
|
25
|
+
# @return [AddSpendPowerTransactionResponse]
|
26
|
+
def add_spend_power_transaction(spend_power_id, opts = {})
|
27
|
+
data, _status_code, _headers = add_spend_power_transaction_with_http_info(spend_power_id, opts)
|
28
28
|
data
|
29
29
|
end
|
30
30
|
|
31
|
-
#
|
31
|
+
# @param spend_power_id [String]
|
32
32
|
# @param [Hash] opts the optional parameters
|
33
|
-
# @option opts [
|
34
|
-
# @return [Array<(
|
35
|
-
def
|
33
|
+
# @option opts [AddSpendPowerTransactionRequest] :add_spend_power_transaction_request
|
34
|
+
# @return [Array<(AddSpendPowerTransactionResponse, Integer, Hash)>] AddSpendPowerTransactionResponse data, response status code and response headers
|
35
|
+
def add_spend_power_transaction_with_http_info(spend_power_id, opts = {})
|
36
36
|
if @api_client.config.debugging
|
37
|
-
@api_client.config.logger.debug 'Calling API: FuseApi.
|
37
|
+
@api_client.config.logger.debug 'Calling API: FuseApi.add_spend_power_transaction ...'
|
38
|
+
end
|
39
|
+
# verify the required parameter 'spend_power_id' is set
|
40
|
+
if @api_client.config.client_side_validation && spend_power_id.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'spend_power_id' when calling FuseApi.add_spend_power_transaction"
|
38
42
|
end
|
39
43
|
# resource path
|
40
|
-
local_var_path = '/v1/
|
44
|
+
local_var_path = '/v1/financial_connections/spend-power/{spend_power_id}/transaction'.sub('{' + 'spend_power_id' + '}', CGI.escape(spend_power_id.to_s))
|
41
45
|
|
42
46
|
# query parameters
|
43
47
|
query_params = opts[:query_params] || {}
|
@@ -56,16 +60,16 @@ module FuseClient
|
|
56
60
|
form_params = opts[:form_params] || {}
|
57
61
|
|
58
62
|
# http body (model)
|
59
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'
|
63
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'add_spend_power_transaction_request'])
|
60
64
|
|
61
65
|
# return_type
|
62
|
-
return_type = opts[:debug_return_type] || '
|
66
|
+
return_type = opts[:debug_return_type] || 'AddSpendPowerTransactionResponse'
|
63
67
|
|
64
68
|
# auth_names
|
65
69
|
auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
|
66
70
|
|
67
71
|
new_options = opts.merge(
|
68
|
-
:operation => :"FuseApi.
|
72
|
+
:operation => :"FuseApi.add_spend_power_transaction",
|
69
73
|
:header_params => header_params,
|
70
74
|
:query_params => query_params,
|
71
75
|
:form_params => form_params,
|
@@ -76,34 +80,30 @@ module FuseClient
|
|
76
80
|
|
77
81
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
78
82
|
if @api_client.config.debugging
|
79
|
-
@api_client.config.logger.debug "API called: FuseApi#
|
83
|
+
@api_client.config.logger.debug "API called: FuseApi#add_spend_power_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
80
84
|
end
|
81
85
|
return data, status_code, headers
|
82
86
|
end
|
83
87
|
|
84
|
-
#
|
85
|
-
# @param create_entity_request [CreateEntityRequest]
|
88
|
+
# Use this endpoint to generate an Asset Report for a user. For Plaid, you will need to have the assets product enabled on your plaid account.
|
86
89
|
# @param [Hash] opts the optional parameters
|
87
|
-
# @
|
88
|
-
|
89
|
-
|
90
|
+
# @option opts [CreateAssetReportRequest] :create_asset_report_request
|
91
|
+
# @return [CreateAssetReportResponse]
|
92
|
+
def create_asset_report(opts = {})
|
93
|
+
data, _status_code, _headers = create_asset_report_with_http_info(opts)
|
90
94
|
data
|
91
95
|
end
|
92
96
|
|
93
|
-
#
|
94
|
-
# @param create_entity_request [CreateEntityRequest]
|
97
|
+
# Use this endpoint to generate an Asset Report for a user. For Plaid, you will need to have the assets product enabled on your plaid account.
|
95
98
|
# @param [Hash] opts the optional parameters
|
96
|
-
# @
|
97
|
-
|
99
|
+
# @option opts [CreateAssetReportRequest] :create_asset_report_request
|
100
|
+
# @return [Array<(CreateAssetReportResponse, Integer, Hash)>] CreateAssetReportResponse data, response status code and response headers
|
101
|
+
def create_asset_report_with_http_info(opts = {})
|
98
102
|
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"
|
103
|
+
@api_client.config.logger.debug 'Calling API: FuseApi.create_asset_report ...'
|
104
104
|
end
|
105
105
|
# resource path
|
106
|
-
local_var_path = '/v1/
|
106
|
+
local_var_path = '/v1/financial_connections/asset_report/create'
|
107
107
|
|
108
108
|
# query parameters
|
109
109
|
query_params = opts[:query_params] || {}
|
@@ -122,16 +122,16 @@ module FuseClient
|
|
122
122
|
form_params = opts[:form_params] || {}
|
123
123
|
|
124
124
|
# http body (model)
|
125
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
125
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_asset_report_request'])
|
126
126
|
|
127
127
|
# return_type
|
128
|
-
return_type = opts[:debug_return_type] || '
|
128
|
+
return_type = opts[:debug_return_type] || 'CreateAssetReportResponse'
|
129
129
|
|
130
130
|
# auth_names
|
131
131
|
auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
|
132
132
|
|
133
133
|
new_options = opts.merge(
|
134
|
-
:operation => :"FuseApi.
|
134
|
+
:operation => :"FuseApi.create_asset_report",
|
135
135
|
:header_params => header_params,
|
136
136
|
:query_params => query_params,
|
137
137
|
:form_params => form_params,
|
@@ -142,7 +142,7 @@ module FuseClient
|
|
142
142
|
|
143
143
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
144
144
|
if @api_client.config.debugging
|
145
|
-
@api_client.config.logger.debug "API called: FuseApi#
|
145
|
+
@api_client.config.logger.debug "API called: FuseApi#create_asset_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
146
146
|
end
|
147
147
|
return data, status_code, headers
|
148
148
|
end
|
@@ -271,6 +271,189 @@ module FuseClient
|
|
271
271
|
return data, status_code, headers
|
272
272
|
end
|
273
273
|
|
274
|
+
# Starts the background process that will determine the spend power depending on the customization passed in.
|
275
|
+
# @param [Hash] opts the optional parameters
|
276
|
+
# @option opts [CreateSpendPowerRequest] :create_spend_power_request
|
277
|
+
# @return [CreateSpendPowerResponse]
|
278
|
+
def create_spend_power(opts = {})
|
279
|
+
data, _status_code, _headers = create_spend_power_with_http_info(opts)
|
280
|
+
data
|
281
|
+
end
|
282
|
+
|
283
|
+
# Starts the background process that will determine the spend power depending on the customization passed in.
|
284
|
+
# @param [Hash] opts the optional parameters
|
285
|
+
# @option opts [CreateSpendPowerRequest] :create_spend_power_request
|
286
|
+
# @return [Array<(CreateSpendPowerResponse, Integer, Hash)>] CreateSpendPowerResponse data, response status code and response headers
|
287
|
+
def create_spend_power_with_http_info(opts = {})
|
288
|
+
if @api_client.config.debugging
|
289
|
+
@api_client.config.logger.debug 'Calling API: FuseApi.create_spend_power ...'
|
290
|
+
end
|
291
|
+
# resource path
|
292
|
+
local_var_path = '/v1/financial_connections/spend-power'
|
293
|
+
|
294
|
+
# query parameters
|
295
|
+
query_params = opts[:query_params] || {}
|
296
|
+
|
297
|
+
# header parameters
|
298
|
+
header_params = opts[:header_params] || {}
|
299
|
+
# HTTP header 'Accept' (if needed)
|
300
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
301
|
+
# HTTP header 'Content-Type'
|
302
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
303
|
+
if !content_type.nil?
|
304
|
+
header_params['Content-Type'] = content_type
|
305
|
+
end
|
306
|
+
|
307
|
+
# form parameters
|
308
|
+
form_params = opts[:form_params] || {}
|
309
|
+
|
310
|
+
# http body (model)
|
311
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_spend_power_request'])
|
312
|
+
|
313
|
+
# return_type
|
314
|
+
return_type = opts[:debug_return_type] || 'CreateSpendPowerResponse'
|
315
|
+
|
316
|
+
# auth_names
|
317
|
+
auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
|
318
|
+
|
319
|
+
new_options = opts.merge(
|
320
|
+
:operation => :"FuseApi.create_spend_power",
|
321
|
+
:header_params => header_params,
|
322
|
+
:query_params => query_params,
|
323
|
+
:form_params => form_params,
|
324
|
+
:body => post_body,
|
325
|
+
:auth_names => auth_names,
|
326
|
+
:return_type => return_type
|
327
|
+
)
|
328
|
+
|
329
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
330
|
+
if @api_client.config.debugging
|
331
|
+
@api_client.config.logger.debug "API called: FuseApi#create_spend_power\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
332
|
+
end
|
333
|
+
return data, status_code, headers
|
334
|
+
end
|
335
|
+
|
336
|
+
# @param [Hash] opts the optional parameters
|
337
|
+
# @option opts [SpendPowerCustomization] :body
|
338
|
+
# @return [CreateSpendPowerCustomizationResponse]
|
339
|
+
def create_spend_power_customization(opts = {})
|
340
|
+
data, _status_code, _headers = create_spend_power_customization_with_http_info(opts)
|
341
|
+
data
|
342
|
+
end
|
343
|
+
|
344
|
+
# @param [Hash] opts the optional parameters
|
345
|
+
# @option opts [SpendPowerCustomization] :body
|
346
|
+
# @return [Array<(CreateSpendPowerCustomizationResponse, Integer, Hash)>] CreateSpendPowerCustomizationResponse data, response status code and response headers
|
347
|
+
def create_spend_power_customization_with_http_info(opts = {})
|
348
|
+
if @api_client.config.debugging
|
349
|
+
@api_client.config.logger.debug 'Calling API: FuseApi.create_spend_power_customization ...'
|
350
|
+
end
|
351
|
+
# resource path
|
352
|
+
local_var_path = '/v1/financial_connections/spend-power/customization'
|
353
|
+
|
354
|
+
# query parameters
|
355
|
+
query_params = opts[:query_params] || {}
|
356
|
+
|
357
|
+
# header parameters
|
358
|
+
header_params = opts[:header_params] || {}
|
359
|
+
# HTTP header 'Accept' (if needed)
|
360
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
361
|
+
# HTTP header 'Content-Type'
|
362
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
363
|
+
if !content_type.nil?
|
364
|
+
header_params['Content-Type'] = content_type
|
365
|
+
end
|
366
|
+
|
367
|
+
# form parameters
|
368
|
+
form_params = opts[:form_params] || {}
|
369
|
+
|
370
|
+
# http body (model)
|
371
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
|
372
|
+
|
373
|
+
# return_type
|
374
|
+
return_type = opts[:debug_return_type] || 'CreateSpendPowerCustomizationResponse'
|
375
|
+
|
376
|
+
# auth_names
|
377
|
+
auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
|
378
|
+
|
379
|
+
new_options = opts.merge(
|
380
|
+
:operation => :"FuseApi.create_spend_power_customization",
|
381
|
+
:header_params => header_params,
|
382
|
+
:query_params => query_params,
|
383
|
+
:form_params => form_params,
|
384
|
+
:body => post_body,
|
385
|
+
:auth_names => auth_names,
|
386
|
+
:return_type => return_type
|
387
|
+
)
|
388
|
+
|
389
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
390
|
+
if @api_client.config.debugging
|
391
|
+
@api_client.config.logger.debug "API called: FuseApi#create_spend_power_customization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
392
|
+
end
|
393
|
+
return data, status_code, headers
|
394
|
+
end
|
395
|
+
|
396
|
+
# Delete a financial connection
|
397
|
+
# @param financial_connection_id_to_delete [String]
|
398
|
+
# @param [Hash] opts the optional parameters
|
399
|
+
# @return [DeleteFinancialConnectionResponse]
|
400
|
+
def delete_financial_connection(financial_connection_id_to_delete, opts = {})
|
401
|
+
data, _status_code, _headers = delete_financial_connection_with_http_info(financial_connection_id_to_delete, opts)
|
402
|
+
data
|
403
|
+
end
|
404
|
+
|
405
|
+
# Delete a financial connection
|
406
|
+
# @param financial_connection_id_to_delete [String]
|
407
|
+
# @param [Hash] opts the optional parameters
|
408
|
+
# @return [Array<(DeleteFinancialConnectionResponse, Integer, Hash)>] DeleteFinancialConnectionResponse data, response status code and response headers
|
409
|
+
def delete_financial_connection_with_http_info(financial_connection_id_to_delete, opts = {})
|
410
|
+
if @api_client.config.debugging
|
411
|
+
@api_client.config.logger.debug 'Calling API: FuseApi.delete_financial_connection ...'
|
412
|
+
end
|
413
|
+
# verify the required parameter 'financial_connection_id_to_delete' is set
|
414
|
+
if @api_client.config.client_side_validation && financial_connection_id_to_delete.nil?
|
415
|
+
fail ArgumentError, "Missing the required parameter 'financial_connection_id_to_delete' when calling FuseApi.delete_financial_connection"
|
416
|
+
end
|
417
|
+
# resource path
|
418
|
+
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))
|
419
|
+
|
420
|
+
# query parameters
|
421
|
+
query_params = opts[:query_params] || {}
|
422
|
+
|
423
|
+
# header parameters
|
424
|
+
header_params = opts[:header_params] || {}
|
425
|
+
# HTTP header 'Accept' (if needed)
|
426
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
427
|
+
|
428
|
+
# form parameters
|
429
|
+
form_params = opts[:form_params] || {}
|
430
|
+
|
431
|
+
# http body (model)
|
432
|
+
post_body = opts[:debug_body]
|
433
|
+
|
434
|
+
# return_type
|
435
|
+
return_type = opts[:debug_return_type] || 'DeleteFinancialConnectionResponse'
|
436
|
+
|
437
|
+
# auth_names
|
438
|
+
auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
|
439
|
+
|
440
|
+
new_options = opts.merge(
|
441
|
+
:operation => :"FuseApi.delete_financial_connection",
|
442
|
+
:header_params => header_params,
|
443
|
+
:query_params => query_params,
|
444
|
+
:form_params => form_params,
|
445
|
+
:body => post_body,
|
446
|
+
:auth_names => auth_names,
|
447
|
+
:return_type => return_type
|
448
|
+
)
|
449
|
+
|
450
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
451
|
+
if @api_client.config.debugging
|
452
|
+
@api_client.config.logger.debug "API called: FuseApi#delete_financial_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
453
|
+
end
|
454
|
+
return data, status_code, headers
|
455
|
+
end
|
456
|
+
|
274
457
|
# API to exchange a public token for an access token and financial connection id
|
275
458
|
# @param [Hash] opts the optional parameters
|
276
459
|
# @option opts [ExchangeFinancialConnectionsPublicTokenRequest] :exchange_financial_connections_public_token_request
|
@@ -333,25 +516,25 @@ module FuseClient
|
|
333
516
|
return data, status_code, headers
|
334
517
|
end
|
335
518
|
|
336
|
-
# Retrieves the Asset Report in JSON format.
|
519
|
+
# Retrieves the Asset Report in JSON format. For Plaid, you will need to have the assets product enabled on your plaid account.
|
337
520
|
# @param [Hash] opts the optional parameters
|
338
521
|
# @option opts [GetAssetReportRequest] :get_asset_report_request
|
339
|
-
# @return [
|
522
|
+
# @return [RefreshAssetReportResponse]
|
340
523
|
def get_asset_report(opts = {})
|
341
524
|
data, _status_code, _headers = get_asset_report_with_http_info(opts)
|
342
525
|
data
|
343
526
|
end
|
344
527
|
|
345
|
-
# Retrieves the Asset Report in JSON format.
|
528
|
+
# Retrieves the Asset Report in JSON format. For Plaid, you will need to have the assets product enabled on your plaid account.
|
346
529
|
# @param [Hash] opts the optional parameters
|
347
530
|
# @option opts [GetAssetReportRequest] :get_asset_report_request
|
348
|
-
# @return [Array<(
|
531
|
+
# @return [Array<(RefreshAssetReportResponse, Integer, Hash)>] RefreshAssetReportResponse data, response status code and response headers
|
349
532
|
def get_asset_report_with_http_info(opts = {})
|
350
533
|
if @api_client.config.debugging
|
351
534
|
@api_client.config.logger.debug 'Calling API: FuseApi.get_asset_report ...'
|
352
535
|
end
|
353
536
|
# resource path
|
354
|
-
local_var_path = '/v1/asset_report'
|
537
|
+
local_var_path = '/v1/financial_connections/asset_report'
|
355
538
|
|
356
539
|
# query parameters
|
357
540
|
query_params = opts[:query_params] || {}
|
@@ -373,7 +556,7 @@ module FuseClient
|
|
373
556
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'get_asset_report_request'])
|
374
557
|
|
375
558
|
# return_type
|
376
|
-
return_type = opts[:debug_return_type] || '
|
559
|
+
return_type = opts[:debug_return_type] || 'RefreshAssetReportResponse'
|
377
560
|
|
378
561
|
# auth_names
|
379
562
|
auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
|
@@ -396,6 +579,7 @@ module FuseClient
|
|
396
579
|
end
|
397
580
|
|
398
581
|
# Get entity
|
582
|
+
# 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
583
|
# @param entity_id [String]
|
400
584
|
# @param [Hash] opts the optional parameters
|
401
585
|
# @return [GetEntityResponse]
|
@@ -405,6 +589,7 @@ module FuseClient
|
|
405
589
|
end
|
406
590
|
|
407
591
|
# Get entity
|
592
|
+
# 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
593
|
# @param entity_id [String]
|
409
594
|
# @param [Hash] opts the optional parameters
|
410
595
|
# @return [Array<(GetEntityResponse, Integer, Hash)>] GetEntityResponse data, response status code and response headers
|
@@ -456,6 +641,67 @@ module FuseClient
|
|
456
641
|
return data, status_code, headers
|
457
642
|
end
|
458
643
|
|
644
|
+
# Get financial connection details
|
645
|
+
# @param financial_connection_id [String]
|
646
|
+
# @param [Hash] opts the optional parameters
|
647
|
+
# @return [GetFinancialConnectionResponse]
|
648
|
+
def get_financial_connection(financial_connection_id, opts = {})
|
649
|
+
data, _status_code, _headers = get_financial_connection_with_http_info(financial_connection_id, opts)
|
650
|
+
data
|
651
|
+
end
|
652
|
+
|
653
|
+
# Get financial connection details
|
654
|
+
# @param financial_connection_id [String]
|
655
|
+
# @param [Hash] opts the optional parameters
|
656
|
+
# @return [Array<(GetFinancialConnectionResponse, Integer, Hash)>] GetFinancialConnectionResponse data, response status code and response headers
|
657
|
+
def get_financial_connection_with_http_info(financial_connection_id, opts = {})
|
658
|
+
if @api_client.config.debugging
|
659
|
+
@api_client.config.logger.debug 'Calling API: FuseApi.get_financial_connection ...'
|
660
|
+
end
|
661
|
+
# verify the required parameter 'financial_connection_id' is set
|
662
|
+
if @api_client.config.client_side_validation && financial_connection_id.nil?
|
663
|
+
fail ArgumentError, "Missing the required parameter 'financial_connection_id' when calling FuseApi.get_financial_connection"
|
664
|
+
end
|
665
|
+
# resource path
|
666
|
+
local_var_path = '/v1/financial_connections/{financial_connection_id}'.sub('{' + 'financial_connection_id' + '}', CGI.escape(financial_connection_id.to_s))
|
667
|
+
|
668
|
+
# query parameters
|
669
|
+
query_params = opts[:query_params] || {}
|
670
|
+
|
671
|
+
# header parameters
|
672
|
+
header_params = opts[:header_params] || {}
|
673
|
+
# HTTP header 'Accept' (if needed)
|
674
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
675
|
+
|
676
|
+
# form parameters
|
677
|
+
form_params = opts[:form_params] || {}
|
678
|
+
|
679
|
+
# http body (model)
|
680
|
+
post_body = opts[:debug_body]
|
681
|
+
|
682
|
+
# return_type
|
683
|
+
return_type = opts[:debug_return_type] || 'GetFinancialConnectionResponse'
|
684
|
+
|
685
|
+
# auth_names
|
686
|
+
auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
|
687
|
+
|
688
|
+
new_options = opts.merge(
|
689
|
+
:operation => :"FuseApi.get_financial_connection",
|
690
|
+
:header_params => header_params,
|
691
|
+
:query_params => query_params,
|
692
|
+
:form_params => form_params,
|
693
|
+
:body => post_body,
|
694
|
+
:auth_names => auth_names,
|
695
|
+
:return_type => return_type
|
696
|
+
)
|
697
|
+
|
698
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
699
|
+
if @api_client.config.debugging
|
700
|
+
@api_client.config.logger.debug "API called: FuseApi#get_financial_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
701
|
+
end
|
702
|
+
return data, status_code, headers
|
703
|
+
end
|
704
|
+
|
459
705
|
# Get account details
|
460
706
|
# @param get_financial_connections_account_details_request [GetFinancialConnectionsAccountDetailsRequest]
|
461
707
|
# @param [Hash] opts the optional parameters
|
@@ -522,6 +768,68 @@ module FuseClient
|
|
522
768
|
return data, status_code, headers
|
523
769
|
end
|
524
770
|
|
771
|
+
# Retrieves an account statement for the given financial connection, account and date. This endpoint may time out so we recommend using a retry mechanism with exponential backoff.
|
772
|
+
# @param [Hash] opts the optional parameters
|
773
|
+
# @option opts [GetFinancialConnectionsAccountStatementRequest] :get_financial_connections_account_statement_request
|
774
|
+
# @return [GetFinancialConnectionsAccountStatementResponse]
|
775
|
+
def get_financial_connections_account_statement(opts = {})
|
776
|
+
data, _status_code, _headers = get_financial_connections_account_statement_with_http_info(opts)
|
777
|
+
data
|
778
|
+
end
|
779
|
+
|
780
|
+
# Retrieves an account statement for the given financial connection, account and date. This endpoint may time out so we recommend using a retry mechanism with exponential backoff.
|
781
|
+
# @param [Hash] opts the optional parameters
|
782
|
+
# @option opts [GetFinancialConnectionsAccountStatementRequest] :get_financial_connections_account_statement_request
|
783
|
+
# @return [Array<(GetFinancialConnectionsAccountStatementResponse, Integer, Hash)>] GetFinancialConnectionsAccountStatementResponse data, response status code and response headers
|
784
|
+
def get_financial_connections_account_statement_with_http_info(opts = {})
|
785
|
+
if @api_client.config.debugging
|
786
|
+
@api_client.config.logger.debug 'Calling API: FuseApi.get_financial_connections_account_statement ...'
|
787
|
+
end
|
788
|
+
# resource path
|
789
|
+
local_var_path = '/v1/financial_connections/accounts/statement'
|
790
|
+
|
791
|
+
# query parameters
|
792
|
+
query_params = opts[:query_params] || {}
|
793
|
+
|
794
|
+
# header parameters
|
795
|
+
header_params = opts[:header_params] || {}
|
796
|
+
# HTTP header 'Accept' (if needed)
|
797
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
798
|
+
# HTTP header 'Content-Type'
|
799
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
800
|
+
if !content_type.nil?
|
801
|
+
header_params['Content-Type'] = content_type
|
802
|
+
end
|
803
|
+
|
804
|
+
# form parameters
|
805
|
+
form_params = opts[:form_params] || {}
|
806
|
+
|
807
|
+
# http body (model)
|
808
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'get_financial_connections_account_statement_request'])
|
809
|
+
|
810
|
+
# return_type
|
811
|
+
return_type = opts[:debug_return_type] || 'GetFinancialConnectionsAccountStatementResponse'
|
812
|
+
|
813
|
+
# auth_names
|
814
|
+
auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
|
815
|
+
|
816
|
+
new_options = opts.merge(
|
817
|
+
:operation => :"FuseApi.get_financial_connections_account_statement",
|
818
|
+
:header_params => header_params,
|
819
|
+
:query_params => query_params,
|
820
|
+
:form_params => form_params,
|
821
|
+
:body => post_body,
|
822
|
+
:auth_names => auth_names,
|
823
|
+
:return_type => return_type
|
824
|
+
)
|
825
|
+
|
826
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
827
|
+
if @api_client.config.debugging
|
828
|
+
@api_client.config.logger.debug "API called: FuseApi#get_financial_connections_account_statement\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
829
|
+
end
|
830
|
+
return data, status_code, headers
|
831
|
+
end
|
832
|
+
|
525
833
|
# Get accounts
|
526
834
|
# @param get_financial_connections_accounts_request [GetFinancialConnectionsAccountsRequest]
|
527
835
|
# @param [Hash] opts the optional parameters
|
@@ -591,7 +899,7 @@ module FuseClient
|
|
591
899
|
# Get balances
|
592
900
|
# @param get_financial_connections_balance_request [GetFinancialConnectionsBalanceRequest]
|
593
901
|
# @param [Hash] opts the optional parameters
|
594
|
-
# @return [
|
902
|
+
# @return [GetFinancialConnectionsBalanceResponse]
|
595
903
|
def get_financial_connections_balances(get_financial_connections_balance_request, opts = {})
|
596
904
|
data, _status_code, _headers = get_financial_connections_balances_with_http_info(get_financial_connections_balance_request, opts)
|
597
905
|
data
|
@@ -600,7 +908,7 @@ module FuseClient
|
|
600
908
|
# Get balances
|
601
909
|
# @param get_financial_connections_balance_request [GetFinancialConnectionsBalanceRequest]
|
602
910
|
# @param [Hash] opts the optional parameters
|
603
|
-
# @return [Array<(
|
911
|
+
# @return [Array<(GetFinancialConnectionsBalanceResponse, Integer, Hash)>] GetFinancialConnectionsBalanceResponse data, response status code and response headers
|
604
912
|
def get_financial_connections_balances_with_http_info(get_financial_connections_balance_request, opts = {})
|
605
913
|
if @api_client.config.debugging
|
606
914
|
@api_client.config.logger.debug 'Calling API: FuseApi.get_financial_connections_balances ...'
|
@@ -632,7 +940,7 @@ module FuseClient
|
|
632
940
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(get_financial_connections_balance_request)
|
633
941
|
|
634
942
|
# return_type
|
635
|
-
return_type = opts[:debug_return_type] || '
|
943
|
+
return_type = opts[:debug_return_type] || 'GetFinancialConnectionsBalanceResponse'
|
636
944
|
|
637
945
|
# auth_names
|
638
946
|
auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
|
@@ -721,25 +1029,25 @@ module FuseClient
|
|
721
1029
|
end
|
722
1030
|
|
723
1031
|
# Get transactions
|
724
|
-
# @param
|
1032
|
+
# @param get_financial_connections_transactions_request [GetFinancialConnectionsTransactionsRequest]
|
725
1033
|
# @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(
|
1034
|
+
# @return [GetFinancialConnectionsTransactionsResponse]
|
1035
|
+
def get_financial_connections_transactions(get_financial_connections_transactions_request, opts = {})
|
1036
|
+
data, _status_code, _headers = get_financial_connections_transactions_with_http_info(get_financial_connections_transactions_request, opts)
|
729
1037
|
data
|
730
1038
|
end
|
731
1039
|
|
732
1040
|
# Get transactions
|
733
|
-
# @param
|
1041
|
+
# @param get_financial_connections_transactions_request [GetFinancialConnectionsTransactionsRequest]
|
734
1042
|
# @param [Hash] opts the optional parameters
|
735
|
-
# @return [Array<(
|
736
|
-
def get_financial_connections_transactions_with_http_info(
|
1043
|
+
# @return [Array<(GetFinancialConnectionsTransactionsResponse, Integer, Hash)>] GetFinancialConnectionsTransactionsResponse data, response status code and response headers
|
1044
|
+
def get_financial_connections_transactions_with_http_info(get_financial_connections_transactions_request, opts = {})
|
737
1045
|
if @api_client.config.debugging
|
738
1046
|
@api_client.config.logger.debug 'Calling API: FuseApi.get_financial_connections_transactions ...'
|
739
1047
|
end
|
740
|
-
# verify the required parameter '
|
741
|
-
if @api_client.config.client_side_validation &&
|
742
|
-
fail ArgumentError, "Missing the required parameter '
|
1048
|
+
# verify the required parameter 'get_financial_connections_transactions_request' is set
|
1049
|
+
if @api_client.config.client_side_validation && get_financial_connections_transactions_request.nil?
|
1050
|
+
fail ArgumentError, "Missing the required parameter 'get_financial_connections_transactions_request' when calling FuseApi.get_financial_connections_transactions"
|
743
1051
|
end
|
744
1052
|
# resource path
|
745
1053
|
local_var_path = '/v1/financial_connections/transactions'
|
@@ -761,10 +1069,10 @@ module FuseClient
|
|
761
1069
|
form_params = opts[:form_params] || {}
|
762
1070
|
|
763
1071
|
# http body (model)
|
764
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
1072
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(get_financial_connections_transactions_request)
|
765
1073
|
|
766
1074
|
# return_type
|
767
|
-
return_type = opts[:debug_return_type] || '
|
1075
|
+
return_type = opts[:debug_return_type] || 'GetFinancialConnectionsTransactionsResponse'
|
768
1076
|
|
769
1077
|
# auth_names
|
770
1078
|
auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
|
@@ -981,25 +1289,86 @@ module FuseClient
|
|
981
1289
|
return data, status_code, headers
|
982
1290
|
end
|
983
1291
|
|
984
|
-
#
|
1292
|
+
# @param spend_power_id [String]
|
985
1293
|
# @param [Hash] opts the optional parameters
|
986
|
-
# @
|
987
|
-
|
988
|
-
|
989
|
-
data, _status_code, _headers = refresh_asset_report_with_http_info(opts)
|
1294
|
+
# @return [GetSpendPowerResponse]
|
1295
|
+
def get_spend_power(spend_power_id, opts = {})
|
1296
|
+
data, _status_code, _headers = get_spend_power_with_http_info(spend_power_id, opts)
|
990
1297
|
data
|
991
1298
|
end
|
992
1299
|
|
993
|
-
#
|
1300
|
+
# @param spend_power_id [String]
|
994
1301
|
# @param [Hash] opts the optional parameters
|
995
|
-
# @
|
996
|
-
|
997
|
-
def refresh_asset_report_with_http_info(opts = {})
|
1302
|
+
# @return [Array<(GetSpendPowerResponse, Integer, Hash)>] GetSpendPowerResponse data, response status code and response headers
|
1303
|
+
def get_spend_power_with_http_info(spend_power_id, opts = {})
|
998
1304
|
if @api_client.config.debugging
|
999
|
-
@api_client.config.logger.debug 'Calling API: FuseApi.
|
1305
|
+
@api_client.config.logger.debug 'Calling API: FuseApi.get_spend_power ...'
|
1306
|
+
end
|
1307
|
+
# verify the required parameter 'spend_power_id' is set
|
1308
|
+
if @api_client.config.client_side_validation && spend_power_id.nil?
|
1309
|
+
fail ArgumentError, "Missing the required parameter 'spend_power_id' when calling FuseApi.get_spend_power"
|
1000
1310
|
end
|
1001
1311
|
# resource path
|
1002
|
-
local_var_path = '/v1/
|
1312
|
+
local_var_path = '/v1/financial_connections/spend-power/{spend_power_id}'.sub('{' + 'spend_power_id' + '}', CGI.escape(spend_power_id.to_s))
|
1313
|
+
|
1314
|
+
# query parameters
|
1315
|
+
query_params = opts[:query_params] || {}
|
1316
|
+
|
1317
|
+
# header parameters
|
1318
|
+
header_params = opts[:header_params] || {}
|
1319
|
+
# HTTP header 'Accept' (if needed)
|
1320
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1321
|
+
|
1322
|
+
# form parameters
|
1323
|
+
form_params = opts[:form_params] || {}
|
1324
|
+
|
1325
|
+
# http body (model)
|
1326
|
+
post_body = opts[:debug_body]
|
1327
|
+
|
1328
|
+
# return_type
|
1329
|
+
return_type = opts[:debug_return_type] || 'GetSpendPowerResponse'
|
1330
|
+
|
1331
|
+
# auth_names
|
1332
|
+
auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
|
1333
|
+
|
1334
|
+
new_options = opts.merge(
|
1335
|
+
:operation => :"FuseApi.get_spend_power",
|
1336
|
+
:header_params => header_params,
|
1337
|
+
:query_params => query_params,
|
1338
|
+
:form_params => form_params,
|
1339
|
+
:body => post_body,
|
1340
|
+
:auth_names => auth_names,
|
1341
|
+
:return_type => return_type
|
1342
|
+
)
|
1343
|
+
|
1344
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1345
|
+
if @api_client.config.debugging
|
1346
|
+
@api_client.config.logger.debug "API called: FuseApi#get_spend_power\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1347
|
+
end
|
1348
|
+
return data, status_code, headers
|
1349
|
+
end
|
1350
|
+
|
1351
|
+
# Migrate financial connection
|
1352
|
+
# 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.
|
1353
|
+
# @param [Hash] opts the optional parameters
|
1354
|
+
# @option opts [MigrateFinancialConnectionsTokenRequest] :migrate_financial_connections_token_request
|
1355
|
+
# @return [MigrateFinancialConnectionsTokenResponse]
|
1356
|
+
def migrate_financial_connection(opts = {})
|
1357
|
+
data, _status_code, _headers = migrate_financial_connection_with_http_info(opts)
|
1358
|
+
data
|
1359
|
+
end
|
1360
|
+
|
1361
|
+
# Migrate financial connection
|
1362
|
+
# 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.
|
1363
|
+
# @param [Hash] opts the optional parameters
|
1364
|
+
# @option opts [MigrateFinancialConnectionsTokenRequest] :migrate_financial_connections_token_request
|
1365
|
+
# @return [Array<(MigrateFinancialConnectionsTokenResponse, Integer, Hash)>] MigrateFinancialConnectionsTokenResponse data, response status code and response headers
|
1366
|
+
def migrate_financial_connection_with_http_info(opts = {})
|
1367
|
+
if @api_client.config.debugging
|
1368
|
+
@api_client.config.logger.debug 'Calling API: FuseApi.migrate_financial_connection ...'
|
1369
|
+
end
|
1370
|
+
# resource path
|
1371
|
+
local_var_path = '/v1/financial_connections/migrate'
|
1003
1372
|
|
1004
1373
|
# query parameters
|
1005
1374
|
query_params = opts[:query_params] || {}
|
@@ -1018,16 +1387,16 @@ module FuseClient
|
|
1018
1387
|
form_params = opts[:form_params] || {}
|
1019
1388
|
|
1020
1389
|
# http body (model)
|
1021
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'
|
1390
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'migrate_financial_connections_token_request'])
|
1022
1391
|
|
1023
1392
|
# return_type
|
1024
|
-
return_type = opts[:debug_return_type] || '
|
1393
|
+
return_type = opts[:debug_return_type] || 'MigrateFinancialConnectionsTokenResponse'
|
1025
1394
|
|
1026
1395
|
# auth_names
|
1027
1396
|
auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
|
1028
1397
|
|
1029
1398
|
new_options = opts.merge(
|
1030
|
-
:operation => :"FuseApi.
|
1399
|
+
:operation => :"FuseApi.migrate_financial_connection",
|
1031
1400
|
:header_params => header_params,
|
1032
1401
|
:query_params => query_params,
|
1033
1402
|
:form_params => form_params,
|
@@ -1038,36 +1407,30 @@ module FuseClient
|
|
1038
1407
|
|
1039
1408
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1040
1409
|
if @api_client.config.debugging
|
1041
|
-
@api_client.config.logger.debug "API called: FuseApi#
|
1410
|
+
@api_client.config.logger.debug "API called: FuseApi#migrate_financial_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1042
1411
|
end
|
1043
1412
|
return data, status_code, headers
|
1044
1413
|
end
|
1045
1414
|
|
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]
|
1415
|
+
# Refreshes the Asset Report in JSON format. For Plaid, you will need to have the assets product enabled on your plaid account.
|
1049
1416
|
# @param [Hash] opts the optional parameters
|
1050
|
-
# @
|
1051
|
-
|
1052
|
-
|
1417
|
+
# @option opts [RefreshAssetReportRequest] :refresh_asset_report_request
|
1418
|
+
# @return [AssetReportResponse]
|
1419
|
+
def refresh_asset_report(opts = {})
|
1420
|
+
data, _status_code, _headers = refresh_asset_report_with_http_info(opts)
|
1053
1421
|
data
|
1054
1422
|
end
|
1055
1423
|
|
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]
|
1424
|
+
# Refreshes the Asset Report in JSON format. For Plaid, you will need to have the assets product enabled on your plaid account.
|
1059
1425
|
# @param [Hash] opts the optional parameters
|
1060
|
-
# @
|
1061
|
-
|
1426
|
+
# @option opts [RefreshAssetReportRequest] :refresh_asset_report_request
|
1427
|
+
# @return [Array<(AssetReportResponse, Integer, Hash)>] AssetReportResponse data, response status code and response headers
|
1428
|
+
def refresh_asset_report_with_http_info(opts = {})
|
1062
1429
|
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"
|
1430
|
+
@api_client.config.logger.debug 'Calling API: FuseApi.refresh_asset_report ...'
|
1068
1431
|
end
|
1069
1432
|
# resource path
|
1070
|
-
local_var_path = '/v1/financial_connections/
|
1433
|
+
local_var_path = '/v1/financial_connections/asset_report/refresh'
|
1071
1434
|
|
1072
1435
|
# query parameters
|
1073
1436
|
query_params = opts[:query_params] || {}
|
@@ -1086,16 +1449,16 @@ module FuseClient
|
|
1086
1449
|
form_params = opts[:form_params] || {}
|
1087
1450
|
|
1088
1451
|
# http body (model)
|
1089
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
1452
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'refresh_asset_report_request'])
|
1090
1453
|
|
1091
1454
|
# return_type
|
1092
|
-
return_type = opts[:debug_return_type] || '
|
1455
|
+
return_type = opts[:debug_return_type] || 'AssetReportResponse'
|
1093
1456
|
|
1094
1457
|
# auth_names
|
1095
1458
|
auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
|
1096
1459
|
|
1097
1460
|
new_options = opts.merge(
|
1098
|
-
:operation => :"FuseApi.
|
1461
|
+
:operation => :"FuseApi.refresh_asset_report",
|
1099
1462
|
:header_params => header_params,
|
1100
1463
|
:query_params => query_params,
|
1101
1464
|
:form_params => form_params,
|
@@ -1106,34 +1469,36 @@ module FuseClient
|
|
1106
1469
|
|
1107
1470
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1108
1471
|
if @api_client.config.debugging
|
1109
|
-
@api_client.config.logger.debug "API called: FuseApi#
|
1472
|
+
@api_client.config.logger.debug "API called: FuseApi#refresh_asset_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1110
1473
|
end
|
1111
1474
|
return data, status_code, headers
|
1112
1475
|
end
|
1113
1476
|
|
1114
|
-
# Sync
|
1115
|
-
#
|
1477
|
+
# Sync financial connections data
|
1478
|
+
# Call this endpoint upon receiving a financial_connection.sync_data webhook. This will keep the financial connections data up to date.
|
1479
|
+
# @param body [Object]
|
1116
1480
|
# @param [Hash] opts the optional parameters
|
1117
|
-
# @return [
|
1118
|
-
def
|
1119
|
-
data, _status_code, _headers =
|
1481
|
+
# @return [SyncFinancialConnectionsDataResponse]
|
1482
|
+
def sync_financial_connections_data(body, opts = {})
|
1483
|
+
data, _status_code, _headers = sync_financial_connections_data_with_http_info(body, opts)
|
1120
1484
|
data
|
1121
1485
|
end
|
1122
1486
|
|
1123
|
-
# Sync
|
1124
|
-
#
|
1487
|
+
# Sync financial connections data
|
1488
|
+
# Call this endpoint upon receiving a financial_connection.sync_data webhook. This will keep the financial connections data up to date.
|
1489
|
+
# @param body [Object]
|
1125
1490
|
# @param [Hash] opts the optional parameters
|
1126
|
-
# @return [Array<(
|
1127
|
-
def
|
1491
|
+
# @return [Array<(SyncFinancialConnectionsDataResponse, Integer, Hash)>] SyncFinancialConnectionsDataResponse data, response status code and response headers
|
1492
|
+
def sync_financial_connections_data_with_http_info(body, opts = {})
|
1128
1493
|
if @api_client.config.debugging
|
1129
|
-
@api_client.config.logger.debug 'Calling API: FuseApi.
|
1494
|
+
@api_client.config.logger.debug 'Calling API: FuseApi.sync_financial_connections_data ...'
|
1130
1495
|
end
|
1131
|
-
# verify the required parameter '
|
1132
|
-
if @api_client.config.client_side_validation &&
|
1133
|
-
fail ArgumentError, "Missing the required parameter '
|
1496
|
+
# verify the required parameter 'body' is set
|
1497
|
+
if @api_client.config.client_side_validation && body.nil?
|
1498
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling FuseApi.sync_financial_connections_data"
|
1134
1499
|
end
|
1135
1500
|
# resource path
|
1136
|
-
local_var_path = '/v1/financial_connections/
|
1501
|
+
local_var_path = '/v1/financial_connections/sync'
|
1137
1502
|
|
1138
1503
|
# query parameters
|
1139
1504
|
query_params = opts[:query_params] || {}
|
@@ -1152,16 +1517,16 @@ module FuseClient
|
|
1152
1517
|
form_params = opts[:form_params] || {}
|
1153
1518
|
|
1154
1519
|
# http body (model)
|
1155
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
1520
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
1156
1521
|
|
1157
1522
|
# return_type
|
1158
|
-
return_type = opts[:debug_return_type] || '
|
1523
|
+
return_type = opts[:debug_return_type] || 'SyncFinancialConnectionsDataResponse'
|
1159
1524
|
|
1160
1525
|
# auth_names
|
1161
1526
|
auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
|
1162
1527
|
|
1163
1528
|
new_options = opts.merge(
|
1164
|
-
:operation => :"FuseApi.
|
1529
|
+
:operation => :"FuseApi.sync_financial_connections_data",
|
1165
1530
|
:header_params => header_params,
|
1166
1531
|
:query_params => query_params,
|
1167
1532
|
:form_params => form_params,
|
@@ -1172,40 +1537,28 @@ module FuseClient
|
|
1172
1537
|
|
1173
1538
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1174
1539
|
if @api_client.config.debugging
|
1175
|
-
@api_client.config.logger.debug "API called: FuseApi#
|
1540
|
+
@api_client.config.logger.debug "API called: FuseApi#sync_financial_connections_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1176
1541
|
end
|
1177
1542
|
return data, status_code, headers
|
1178
1543
|
end
|
1179
1544
|
|
1180
|
-
# Update entity
|
1181
|
-
# @param entity_id_to_update [String]
|
1182
|
-
# @param update_entity_request [UpdateEntityRequest]
|
1183
1545
|
# @param [Hash] opts the optional parameters
|
1184
|
-
# @
|
1185
|
-
|
1186
|
-
|
1546
|
+
# @option opts [SpendPowerCustomization] :body
|
1547
|
+
# @return [UpdateSpendPowerCustomizationResponse]
|
1548
|
+
def update_spend_power_customization(opts = {})
|
1549
|
+
data, _status_code, _headers = update_spend_power_customization_with_http_info(opts)
|
1187
1550
|
data
|
1188
1551
|
end
|
1189
1552
|
|
1190
|
-
# Update entity
|
1191
|
-
# @param entity_id_to_update [String]
|
1192
|
-
# @param update_entity_request [UpdateEntityRequest]
|
1193
1553
|
# @param [Hash] opts the optional parameters
|
1194
|
-
# @
|
1195
|
-
|
1554
|
+
# @option opts [SpendPowerCustomization] :body
|
1555
|
+
# @return [Array<(UpdateSpendPowerCustomizationResponse, Integer, Hash)>] UpdateSpendPowerCustomizationResponse data, response status code and response headers
|
1556
|
+
def update_spend_power_customization_with_http_info(opts = {})
|
1196
1557
|
if @api_client.config.debugging
|
1197
|
-
@api_client.config.logger.debug 'Calling API: FuseApi.
|
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"
|
1558
|
+
@api_client.config.logger.debug 'Calling API: FuseApi.update_spend_power_customization ...'
|
1206
1559
|
end
|
1207
1560
|
# resource path
|
1208
|
-
local_var_path = '/v1/
|
1561
|
+
local_var_path = '/v1/financial_connections/spend-power/customization/update'
|
1209
1562
|
|
1210
1563
|
# query parameters
|
1211
1564
|
query_params = opts[:query_params] || {}
|
@@ -1224,16 +1577,16 @@ module FuseClient
|
|
1224
1577
|
form_params = opts[:form_params] || {}
|
1225
1578
|
|
1226
1579
|
# http body (model)
|
1227
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
1580
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
|
1228
1581
|
|
1229
1582
|
# return_type
|
1230
|
-
return_type = opts[:debug_return_type] || '
|
1583
|
+
return_type = opts[:debug_return_type] || 'UpdateSpendPowerCustomizationResponse'
|
1231
1584
|
|
1232
1585
|
# auth_names
|
1233
1586
|
auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
|
1234
1587
|
|
1235
1588
|
new_options = opts.merge(
|
1236
|
-
:operation => :"FuseApi.
|
1589
|
+
:operation => :"FuseApi.update_spend_power_customization",
|
1237
1590
|
:header_params => header_params,
|
1238
1591
|
:query_params => query_params,
|
1239
1592
|
:form_params => form_params,
|
@@ -1242,9 +1595,9 @@ module FuseClient
|
|
1242
1595
|
:return_type => return_type
|
1243
1596
|
)
|
1244
1597
|
|
1245
|
-
data, status_code, headers = @api_client.call_api(:
|
1598
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1246
1599
|
if @api_client.config.debugging
|
1247
|
-
@api_client.config.logger.debug "API called: FuseApi#
|
1600
|
+
@api_client.config.logger.debug "API called: FuseApi#update_spend_power_customization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1248
1601
|
end
|
1249
1602
|
return data, status_code, headers
|
1250
1603
|
end
|