fuse_client 1.0.31 → 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 +7 -8
- data/README.md +4 -1
- 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/CreateAssetReportRequest.md +2 -4
- data/docs/CreateAssetReportResponse.md +2 -2
- data/docs/CreateLinkTokenRequest.md +6 -2
- data/docs/CreateLinkTokenRequestPlaid.md +1 -1
- data/docs/CreateLinkTokenRequestTeller.md +18 -0
- data/docs/CreateLinkTokenRequestTellerConfig.md +18 -0
- data/docs/CreateSessionRequest.md +4 -4
- data/docs/CreateSpendPowerCustomizationResponse.md +20 -0
- data/docs/CreateSpendPowerRequest.md +22 -0
- data/docs/CreateSpendPowerResponse.md +20 -0
- data/docs/DeleteSpendPowerResponse.md +20 -0
- data/docs/Entity.md +1 -1
- data/docs/ExchangeFinancialConnectionsPublicTokenRequest.md +1 -1
- data/docs/ExchangeFinancialConnectionsPublicTokenResponse.md +2 -2
- data/docs/FinancialConnectionsAccountBalance.md +1 -1
- data/docs/FinancialConnectionsAccountCachedBalance.md +1 -1
- data/docs/FinancialConnectionsInvestmentSecurity.md +2 -2
- data/docs/FinancialConnectionsInvestmentSecurityType.md +15 -0
- data/docs/FinancialConnectionsInvestmentTransaction.md +2 -0
- data/docs/FuseApi.md +484 -18
- data/docs/FuseApiAggregatorError.md +28 -0
- data/docs/FuseApiError.md +7 -5
- data/docs/FuseApiErrorCode.md +15 -0
- data/docs/FuseApiErrorData.md +1 -1
- data/docs/FuseApiErrorType.md +15 -0
- data/docs/GetAssetReportRequest.md +2 -0
- data/docs/GetFinancialConnectionsAccountStatementRequest.md +22 -0
- data/docs/GetFinancialConnectionsAccountStatementResponse.md +20 -0
- data/docs/GetInvestmentTransactionsResponse.md +2 -0
- data/docs/GetSpendPowerResponse.md +20 -0
- data/docs/MigrateFinancialConnectionsAggregatorConnectionData.md +3 -1
- data/docs/MigrateFinancialConnectionsAggregatorConnectionDataPlaid.md +3 -1
- data/docs/MigrateFinancialConnectionsAggregatorConnectionDataTeller.md +18 -0
- data/docs/MigrateFinancialConnectionsTokenRequest.md +1 -1
- 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/Transaction.md +2 -2
- data/docs/UpdateSpendPowerCustomizationResponse.md +20 -0
- data/docs/WebhookEvent.md +6 -0
- data/fuse_client.gemspec +1 -1
- data/lib/fuse_client/api/fuse_api.rb +385 -16
- 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 +51 -4
- data/lib/fuse_client/models/account_subtype.rb +1 -1
- data/lib/fuse_client/models/account_type.rb +3 -2
- data/lib/fuse_client/models/add_spend_power_transaction_request.rb +284 -0
- data/lib/fuse_client/models/add_spend_power_transaction_response.rb +240 -0
- 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 +1 -1
- 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 -6
- 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 +1 -1
- data/lib/fuse_client/models/create_session_request.rb +31 -8
- data/lib/fuse_client/models/create_session_response.rb +1 -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 +1 -1
- data/lib/fuse_client/models/delete_financial_connection_response.rb +1 -1
- 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 +3 -3
- data/lib/fuse_client/models/financial_connection_data.rb +1 -1
- data/lib/fuse_client/models/financial_connection_details.rb +1 -1
- data/lib/fuse_client/models/financial_connection_details_mx.rb +1 -1
- data/lib/fuse_client/models/financial_connection_details_plaid.rb +1 -1
- data/lib/fuse_client/models/financial_connection_details_teller.rb +1 -1
- data/lib/fuse_client/models/financial_connections_account.rb +1 -1
- data/lib/fuse_client/models/financial_connections_account_balance.rb +2 -2
- data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +2 -2
- data/lib/fuse_client/models/financial_connections_account_details.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/fuse_client/models/financial_connections_investment_security.rb +24 -8
- data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +1 -1
- data/lib/fuse_client/models/financial_connections_investment_security_type.rb +64 -0
- data/lib/fuse_client/models/financial_connections_investment_transaction.rb +50 -2
- data/lib/fuse_client/models/financial_connections_owner.rb +1 -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 +1 -1
- data/lib/fuse_client/models/financial_connections_owner_names_inner.rb +1 -1
- data/lib/fuse_client/models/financial_connections_owner_phone_numbers_inner.rb +1 -1
- data/lib/fuse_client/models/financial_institution.rb +1 -1
- 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 -28
- data/lib/fuse_client/models/fuse_api_error_code.rb +76 -0
- data/lib/fuse_client/models/fuse_api_error_data.rb +2 -2
- 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 +1 -1
- 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 +1 -1
- data/lib/fuse_client/models/get_financial_connection_response.rb +1 -1
- 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 +1 -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 +1 -1
- data/lib/fuse_client/models/get_financial_connections_balance_request.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_balance_request_options.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_balance_response.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_owners_request.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_owners_response.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_transactions_request.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_transactions_response.rb +1 -1
- data/lib/fuse_client/models/get_financial_institution_response.rb +1 -1
- data/lib/fuse_client/models/get_investment_holdings_request.rb +1 -1
- data/lib/fuse_client/models/get_investment_holdings_request_options.rb +1 -1
- data/lib/fuse_client/models/get_investment_holdings_response.rb +1 -1
- data/lib/fuse_client/models/get_investment_transactions_request.rb +1 -1
- data/lib/fuse_client/models/get_investment_transactions_request_options.rb +1 -1
- data/lib/fuse_client/models/get_investment_transactions_response.rb +12 -2
- 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 +14 -5
- data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_mx.rb +1 -1
- data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_plaid.rb +15 -5
- 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 +23 -4
- data/lib/fuse_client/models/migrate_financial_connections_token_request_entity.rb +1 -1
- data/lib/fuse_client/models/migrate_financial_connections_token_response.rb +1 -1
- 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/spend_power.rb +315 -0
- data/lib/fuse_client/models/spend_power_customization.rb +289 -0
- 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 +1 -1
- data/lib/fuse_client/models/sync_transactions_response_removed_inner.rb +1 -1
- data/lib/fuse_client/models/transaction.rb +15 -3
- data/lib/fuse_client/models/transaction_merchant.rb +1 -1
- 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 +34 -2
- data/lib/fuse_client/models/webhook_source.rb +1 -1
- data/lib/fuse_client/models/webhook_type.rb +4 -3
- data/lib/fuse_client/version.rb +2 -2
- data/lib/fuse_client.rb +28 -6
- data/spec/api/fuse_api_spec.rb +69 -6
- data/spec/api/spend_power_api_spec.rb +64 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_subtype_spec.rb +1 -1
- data/spec/models/account_type_spec.rb +1 -1
- 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_asset_report_response_report_accounts_inner_spec.rb → asset_report_accounts_inner_spec.rb} +10 -10
- 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 +1 -1
- 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 +13 -1
- 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 +1 -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/create_spend_power_request_spec.rb +46 -0
- data/spec/models/create_spend_power_response_spec.rb +40 -0
- data/spec/models/currency_spec.rb +1 -1
- data/spec/models/delete_financial_connection_response_spec.rb +1 -1
- 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 +1 -1
- data/spec/models/financial_connection_details_plaid_spec.rb +1 -1
- data/spec/models/financial_connection_details_spec.rb +1 -1
- data/spec/models/financial_connection_details_teller_spec.rb +1 -1
- data/spec/models/financial_connections_account_balance_spec.rb +1 -1
- data/spec/models/financial_connections_account_cached_balance_spec.rb +1 -1
- 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 +1 -1
- data/spec/models/financial_connections_account_spec.rb +1 -1
- data/spec/models/financial_connections_holding_spec.rb +1 -1
- data/spec/models/financial_connections_investment_security_exchange_spec.rb +1 -1
- data/spec/models/financial_connections_investment_security_spec.rb +1 -1
- data/spec/models/financial_connections_investment_security_type_spec.rb +28 -0
- data/spec/models/financial_connections_investment_transaction_spec.rb +11 -1
- 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 +1 -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 -9
- 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 +1 -1
- data/spec/models/get_financial_connection_response_spec.rb +1 -1
- 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_statement_response_spec.rb +40 -0
- 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 +1 -1
- data/spec/models/get_financial_connections_balance_request_spec.rb +1 -1
- data/spec/models/get_financial_connections_balance_response_spec.rb +1 -1
- 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 +1 -1
- data/spec/models/get_financial_connections_transactions_response_spec.rb +1 -1
- data/spec/models/get_financial_institution_response_spec.rb +1 -1
- data/spec/models/get_investment_holdings_request_options_spec.rb +1 -1
- data/spec/models/get_investment_holdings_request_spec.rb +1 -1
- data/spec/models/get_investment_holdings_response_spec.rb +1 -1
- data/spec/models/get_investment_transactions_request_options_spec.rb +1 -1
- data/spec/models/get_investment_transactions_request_spec.rb +1 -1
- data/spec/models/get_investment_transactions_response_spec.rb +7 -1
- 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 +1 -1
- data/spec/models/migrate_financial_connections_aggregator_connection_data_plaid_spec.rb +7 -1
- data/spec/models/migrate_financial_connections_aggregator_connection_data_spec.rb +7 -1
- 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 +1 -1
- data/spec/models/migrate_financial_connections_token_request_spec.rb +2 -2
- data/spec/models/migrate_financial_connections_token_response_spec.rb +1 -1
- 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/spend_power_spec.rb +70 -0
- 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_merchant_spec.rb +1 -1
- data/spec/models/transaction_spec.rb +9 -1
- 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/webhook_event_spec.rb +19 -1
- data/spec/models/webhook_source_spec.rb +1 -1
- data/spec/models/webhook_type_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +110 -22
- data/docs/GetAssetReportResponseReport.md +0 -28
- data/docs/GetAssetReportResponseReportAccountsInner.md +0 -24
@@ -0,0 +1,240 @@
|
|
1
|
+
=begin
|
2
|
+
#Fuse
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.5.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module FuseClient
|
17
|
+
class UpdateSpendPowerCustomizationResponse
|
18
|
+
# The id of the updated customization.
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
# An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
|
22
|
+
attr_accessor :request_id
|
23
|
+
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
+
def self.attribute_map
|
26
|
+
{
|
27
|
+
:'id' => :'id',
|
28
|
+
:'request_id' => :'request_id'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# Returns all the JSON keys this model knows about
|
33
|
+
def self.acceptable_attributes
|
34
|
+
attribute_map.values
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
def self.openapi_types
|
39
|
+
{
|
40
|
+
:'id' => :'String',
|
41
|
+
:'request_id' => :'String'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# List of attributes with nullable: true
|
46
|
+
def self.openapi_nullable
|
47
|
+
Set.new([
|
48
|
+
])
|
49
|
+
end
|
50
|
+
|
51
|
+
# Initializes the object
|
52
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::UpdateSpendPowerCustomizationResponse` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::UpdateSpendPowerCustomizationResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
62
|
+
end
|
63
|
+
h[k.to_sym] = v
|
64
|
+
}
|
65
|
+
|
66
|
+
if attributes.key?(:'id')
|
67
|
+
self.id = attributes[:'id']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes.key?(:'request_id')
|
71
|
+
self.request_id = attributes[:'request_id']
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
76
|
+
# @return Array for valid properties with the reasons
|
77
|
+
def list_invalid_properties
|
78
|
+
invalid_properties = Array.new
|
79
|
+
if @id.nil?
|
80
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
81
|
+
end
|
82
|
+
|
83
|
+
if @request_id.nil?
|
84
|
+
invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
|
85
|
+
end
|
86
|
+
|
87
|
+
invalid_properties
|
88
|
+
end
|
89
|
+
|
90
|
+
# Check to see if the all the properties in the model are valid
|
91
|
+
# @return true if the model is valid
|
92
|
+
def valid?
|
93
|
+
return false if @id.nil?
|
94
|
+
return false if @request_id.nil?
|
95
|
+
true
|
96
|
+
end
|
97
|
+
|
98
|
+
# Checks equality by comparing each attribute.
|
99
|
+
# @param [Object] Object to be compared
|
100
|
+
def ==(o)
|
101
|
+
return true if self.equal?(o)
|
102
|
+
self.class == o.class &&
|
103
|
+
id == o.id &&
|
104
|
+
request_id == o.request_id
|
105
|
+
end
|
106
|
+
|
107
|
+
# @see the `==` method
|
108
|
+
# @param [Object] Object to be compared
|
109
|
+
def eql?(o)
|
110
|
+
self == o
|
111
|
+
end
|
112
|
+
|
113
|
+
# Calculates hash code according to all attributes.
|
114
|
+
# @return [Integer] Hash code
|
115
|
+
def hash
|
116
|
+
[id, request_id].hash
|
117
|
+
end
|
118
|
+
|
119
|
+
# Builds the object from hash
|
120
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
121
|
+
# @return [Object] Returns the model itself
|
122
|
+
def self.build_from_hash(attributes)
|
123
|
+
new.build_from_hash(attributes)
|
124
|
+
end
|
125
|
+
|
126
|
+
# Builds the object from hash
|
127
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
128
|
+
# @return [Object] Returns the model itself
|
129
|
+
def build_from_hash(attributes)
|
130
|
+
return nil unless attributes.is_a?(Hash)
|
131
|
+
attributes = attributes.transform_keys(&:to_sym)
|
132
|
+
self.class.openapi_types.each_pair do |key, type|
|
133
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
134
|
+
self.send("#{key}=", nil)
|
135
|
+
elsif type =~ /\AArray<(.*)>/i
|
136
|
+
# check to ensure the input is an array given that the attribute
|
137
|
+
# is documented as an array but the input is not
|
138
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
139
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
140
|
+
end
|
141
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
142
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
self
|
147
|
+
end
|
148
|
+
|
149
|
+
# Deserializes the data based on type
|
150
|
+
# @param string type Data type
|
151
|
+
# @param string value Value to be deserialized
|
152
|
+
# @return [Object] Deserialized data
|
153
|
+
def _deserialize(type, value)
|
154
|
+
case type.to_sym
|
155
|
+
when :Time
|
156
|
+
Time.parse(value)
|
157
|
+
when :Date
|
158
|
+
Date.parse(value)
|
159
|
+
when :String
|
160
|
+
value.to_s
|
161
|
+
when :Integer
|
162
|
+
value.to_i
|
163
|
+
when :Float
|
164
|
+
value.to_f
|
165
|
+
when :Boolean
|
166
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
167
|
+
true
|
168
|
+
else
|
169
|
+
false
|
170
|
+
end
|
171
|
+
when :Object
|
172
|
+
# generic object (usually a Hash), return directly
|
173
|
+
value
|
174
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
175
|
+
inner_type = Regexp.last_match[:inner_type]
|
176
|
+
value.map { |v| _deserialize(inner_type, v) }
|
177
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
178
|
+
k_type = Regexp.last_match[:k_type]
|
179
|
+
v_type = Regexp.last_match[:v_type]
|
180
|
+
{}.tap do |hash|
|
181
|
+
value.each do |k, v|
|
182
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
183
|
+
end
|
184
|
+
end
|
185
|
+
else # model
|
186
|
+
# models (e.g. Pet) or oneOf
|
187
|
+
klass = FuseClient.const_get(type)
|
188
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
# Returns the string representation of the object
|
193
|
+
# @return [String] String presentation of the object
|
194
|
+
def to_s
|
195
|
+
to_hash.to_s
|
196
|
+
end
|
197
|
+
|
198
|
+
# to_body is an alias to to_hash (backward compatibility)
|
199
|
+
# @return [Hash] Returns the object in the form of hash
|
200
|
+
def to_body
|
201
|
+
to_hash
|
202
|
+
end
|
203
|
+
|
204
|
+
# Returns the object in the form of hash
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
206
|
+
def to_hash
|
207
|
+
hash = {}
|
208
|
+
self.class.attribute_map.each_pair do |attr, param|
|
209
|
+
value = self.send(attr)
|
210
|
+
if value.nil?
|
211
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
212
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
213
|
+
end
|
214
|
+
|
215
|
+
hash[param] = _to_hash(value)
|
216
|
+
end
|
217
|
+
hash
|
218
|
+
end
|
219
|
+
|
220
|
+
# Outputs non-array value in the form of hash
|
221
|
+
# For object, use to_hash. Otherwise, just return the value
|
222
|
+
# @param [Object] value Any valid value
|
223
|
+
# @return [Hash] Returns the value in the form of hash
|
224
|
+
def _to_hash(value)
|
225
|
+
if value.is_a?(Array)
|
226
|
+
value.compact.map { |v| _to_hash(v) }
|
227
|
+
elsif value.is_a?(Hash)
|
228
|
+
{}.tap do |hash|
|
229
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
230
|
+
end
|
231
|
+
elsif value.respond_to? :to_hash
|
232
|
+
value.to_hash
|
233
|
+
else
|
234
|
+
value
|
235
|
+
end
|
236
|
+
end
|
237
|
+
|
238
|
+
end
|
239
|
+
|
240
|
+
end
|
@@ -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
|
|
@@ -27,6 +27,15 @@ module FuseClient
|
|
27
27
|
# Aggregator verification data needed to verify the webhook
|
28
28
|
attr_accessor :verification_token
|
29
29
|
|
30
|
+
# Exists for assets.report_ready webhooks
|
31
|
+
attr_accessor :asset_report_id
|
32
|
+
|
33
|
+
# Exists for transactions.updates webhooks. Indicates if historical transaction information (up to 24 months) is ready to be queried.
|
34
|
+
attr_accessor :historical_transactions_available
|
35
|
+
|
36
|
+
# Exists for transactions.updates webhooks. Currently only supported by Plaid.
|
37
|
+
attr_accessor :removed_transaction_ids
|
38
|
+
|
30
39
|
attr_accessor :remote_data
|
31
40
|
|
32
41
|
class EnumAttributeValidator
|
@@ -59,6 +68,9 @@ module FuseClient
|
|
59
68
|
:'environment' => :'environment',
|
60
69
|
:'source' => :'source',
|
61
70
|
:'verification_token' => :'verification_token',
|
71
|
+
:'asset_report_id' => :'asset_report_id',
|
72
|
+
:'historical_transactions_available' => :'historical_transactions_available',
|
73
|
+
:'removed_transaction_ids' => :'removed_transaction_ids',
|
62
74
|
:'remote_data' => :'remote_data'
|
63
75
|
}
|
64
76
|
end
|
@@ -76,6 +88,9 @@ module FuseClient
|
|
76
88
|
:'environment' => :'String',
|
77
89
|
:'source' => :'WebhookSource',
|
78
90
|
:'verification_token' => :'String',
|
91
|
+
:'asset_report_id' => :'String',
|
92
|
+
:'historical_transactions_available' => :'Boolean',
|
93
|
+
:'removed_transaction_ids' => :'Array<String>',
|
79
94
|
:'remote_data' => :'Object'
|
80
95
|
}
|
81
96
|
end
|
@@ -122,6 +137,20 @@ module FuseClient
|
|
122
137
|
self.verification_token = attributes[:'verification_token']
|
123
138
|
end
|
124
139
|
|
140
|
+
if attributes.key?(:'asset_report_id')
|
141
|
+
self.asset_report_id = attributes[:'asset_report_id']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.key?(:'historical_transactions_available')
|
145
|
+
self.historical_transactions_available = attributes[:'historical_transactions_available']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'removed_transaction_ids')
|
149
|
+
if (value = attributes[:'removed_transaction_ids']).is_a?(Array)
|
150
|
+
self.removed_transaction_ids = value
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
125
154
|
if attributes.key?(:'remote_data')
|
126
155
|
self.remote_data = attributes[:'remote_data']
|
127
156
|
end
|
@@ -182,6 +211,9 @@ module FuseClient
|
|
182
211
|
environment == o.environment &&
|
183
212
|
source == o.source &&
|
184
213
|
verification_token == o.verification_token &&
|
214
|
+
asset_report_id == o.asset_report_id &&
|
215
|
+
historical_transactions_available == o.historical_transactions_available &&
|
216
|
+
removed_transaction_ids == o.removed_transaction_ids &&
|
185
217
|
remote_data == o.remote_data
|
186
218
|
end
|
187
219
|
|
@@ -194,7 +226,7 @@ module FuseClient
|
|
194
226
|
# Calculates hash code according to all attributes.
|
195
227
|
# @return [Integer] Hash code
|
196
228
|
def hash
|
197
|
-
[type, financial_connection_id, environment, source, verification_token, remote_data].hash
|
229
|
+
[type, financial_connection_id, environment, source, verification_token, asset_report_id, historical_transactions_available, removed_transaction_ids, remote_data].hash
|
198
230
|
end
|
199
231
|
|
200
232
|
# Builds the object from hash
|
@@ -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
|
|
@@ -18,10 +18,11 @@ module FuseClient
|
|
18
18
|
FINANCIAL_CONNECTION_SYNC_DATA = "financial_connection.sync_data".freeze
|
19
19
|
FINANCIAL_CONNECTION_DISCONNECTED = "financial_connection.disconnected".freeze
|
20
20
|
FINANCIAL_CONNECTION_FINISHED = "financial_connection.finished".freeze
|
21
|
-
|
21
|
+
TRANSACTIONS_UPDATES = "transactions.updates".freeze
|
22
|
+
ASSETS_REPORT_READY = "assets.report_ready".freeze
|
22
23
|
|
23
24
|
def self.all_vars
|
24
|
-
@all_vars ||= [FINANCIAL_CONNECTION_SYNC_DATA, FINANCIAL_CONNECTION_DISCONNECTED, FINANCIAL_CONNECTION_FINISHED,
|
25
|
+
@all_vars ||= [FINANCIAL_CONNECTION_SYNC_DATA, FINANCIAL_CONNECTION_DISCONNECTED, FINANCIAL_CONNECTION_FINISHED, TRANSACTIONS_UPDATES, ASSETS_REPORT_READY].freeze
|
25
26
|
end
|
26
27
|
|
27
28
|
# Builds the enum from string
|
data/lib/fuse_client/version.rb
CHANGED
data/lib/fuse_client.rb
CHANGED
@@ -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,7 +19,15 @@ require 'fuse_client/configuration'
|
|
19
19
|
# Models
|
20
20
|
require 'fuse_client/models/account_subtype'
|
21
21
|
require 'fuse_client/models/account_type'
|
22
|
+
require 'fuse_client/models/add_spend_power_transaction_request'
|
23
|
+
require 'fuse_client/models/add_spend_power_transaction_response'
|
22
24
|
require 'fuse_client/models/aggregator'
|
25
|
+
require 'fuse_client/models/asset_report'
|
26
|
+
require 'fuse_client/models/asset_report_accounts_inner'
|
27
|
+
require 'fuse_client/models/asset_report_accounts_inner_balance'
|
28
|
+
require 'fuse_client/models/asset_report_accounts_inner_historical_balances_inner'
|
29
|
+
require 'fuse_client/models/asset_report_response'
|
30
|
+
require 'fuse_client/models/asset_report_transaction'
|
23
31
|
require 'fuse_client/models/country_code'
|
24
32
|
require 'fuse_client/models/create_asset_report_request'
|
25
33
|
require 'fuse_client/models/create_asset_report_response'
|
@@ -28,11 +36,17 @@ require 'fuse_client/models/create_entity_response'
|
|
28
36
|
require 'fuse_client/models/create_link_token_request'
|
29
37
|
require 'fuse_client/models/create_link_token_request_mx'
|
30
38
|
require 'fuse_client/models/create_link_token_request_plaid'
|
39
|
+
require 'fuse_client/models/create_link_token_request_teller'
|
40
|
+
require 'fuse_client/models/create_link_token_request_teller_config'
|
31
41
|
require 'fuse_client/models/create_link_token_response'
|
32
42
|
require 'fuse_client/models/create_session_request'
|
33
43
|
require 'fuse_client/models/create_session_response'
|
44
|
+
require 'fuse_client/models/create_spend_power_customization_response'
|
45
|
+
require 'fuse_client/models/create_spend_power_request'
|
46
|
+
require 'fuse_client/models/create_spend_power_response'
|
34
47
|
require 'fuse_client/models/currency'
|
35
48
|
require 'fuse_client/models/delete_financial_connection_response'
|
49
|
+
require 'fuse_client/models/delete_spend_power_response'
|
36
50
|
require 'fuse_client/models/entity'
|
37
51
|
require 'fuse_client/models/exchange_financial_connections_public_token_request'
|
38
52
|
require 'fuse_client/models/exchange_financial_connections_public_token_response'
|
@@ -53,6 +67,7 @@ require 'fuse_client/models/financial_connections_account_liability_all_of_aprs'
|
|
53
67
|
require 'fuse_client/models/financial_connections_holding'
|
54
68
|
require 'fuse_client/models/financial_connections_investment_security'
|
55
69
|
require 'fuse_client/models/financial_connections_investment_security_exchange'
|
70
|
+
require 'fuse_client/models/financial_connections_investment_security_type'
|
56
71
|
require 'fuse_client/models/financial_connections_investment_transaction'
|
57
72
|
require 'fuse_client/models/financial_connections_owner'
|
58
73
|
require 'fuse_client/models/financial_connections_owner_addresses_inner'
|
@@ -62,21 +77,21 @@ require 'fuse_client/models/financial_connections_owner_names_inner'
|
|
62
77
|
require 'fuse_client/models/financial_connections_owner_phone_numbers_inner'
|
63
78
|
require 'fuse_client/models/financial_institution'
|
64
79
|
require 'fuse_client/models/financial_institution_logo'
|
80
|
+
require 'fuse_client/models/fuse_api_aggregator_error'
|
65
81
|
require 'fuse_client/models/fuse_api_error'
|
82
|
+
require 'fuse_client/models/fuse_api_error_code'
|
66
83
|
require 'fuse_client/models/fuse_api_error_data'
|
84
|
+
require 'fuse_client/models/fuse_api_error_type'
|
67
85
|
require 'fuse_client/models/fuse_api_warning'
|
68
86
|
require 'fuse_client/models/fuse_api_warning_data'
|
69
87
|
require 'fuse_client/models/fuse_api_warning_data_warnings_inner'
|
70
88
|
require 'fuse_client/models/get_asset_report_request'
|
71
|
-
require 'fuse_client/models/get_asset_report_response'
|
72
|
-
require 'fuse_client/models/get_asset_report_response_report'
|
73
|
-
require 'fuse_client/models/get_asset_report_response_report_accounts_inner'
|
74
|
-
require 'fuse_client/models/get_asset_report_response_report_accounts_inner_balances'
|
75
|
-
require 'fuse_client/models/get_asset_report_response_report_accounts_inner_historical_balances_inner'
|
76
89
|
require 'fuse_client/models/get_entity_response'
|
77
90
|
require 'fuse_client/models/get_financial_connection_response'
|
78
91
|
require 'fuse_client/models/get_financial_connections_account_details_request'
|
79
92
|
require 'fuse_client/models/get_financial_connections_account_details_response'
|
93
|
+
require 'fuse_client/models/get_financial_connections_account_statement_request'
|
94
|
+
require 'fuse_client/models/get_financial_connections_account_statement_response'
|
80
95
|
require 'fuse_client/models/get_financial_connections_accounts_request'
|
81
96
|
require 'fuse_client/models/get_financial_connections_accounts_response'
|
82
97
|
require 'fuse_client/models/get_financial_connections_balance_request'
|
@@ -96,14 +111,19 @@ require 'fuse_client/models/get_investment_transactions_request_options'
|
|
96
111
|
require 'fuse_client/models/get_investment_transactions_response'
|
97
112
|
require 'fuse_client/models/get_liabilities_request'
|
98
113
|
require 'fuse_client/models/get_liabilities_response'
|
114
|
+
require 'fuse_client/models/get_spend_power_response'
|
99
115
|
require 'fuse_client/models/migrate_financial_connections_aggregator_connection_data'
|
100
116
|
require 'fuse_client/models/migrate_financial_connections_aggregator_connection_data_mx'
|
101
117
|
require 'fuse_client/models/migrate_financial_connections_aggregator_connection_data_plaid'
|
118
|
+
require 'fuse_client/models/migrate_financial_connections_aggregator_connection_data_teller'
|
102
119
|
require 'fuse_client/models/migrate_financial_connections_token_request'
|
103
120
|
require 'fuse_client/models/migrate_financial_connections_token_request_entity'
|
104
121
|
require 'fuse_client/models/migrate_financial_connections_token_response'
|
105
122
|
require 'fuse_client/models/product'
|
106
123
|
require 'fuse_client/models/refresh_asset_report_request'
|
124
|
+
require 'fuse_client/models/refresh_asset_report_response'
|
125
|
+
require 'fuse_client/models/spend_power'
|
126
|
+
require 'fuse_client/models/spend_power_customization'
|
107
127
|
require 'fuse_client/models/sync_financial_connections_data_response'
|
108
128
|
require 'fuse_client/models/sync_transactions_request'
|
109
129
|
require 'fuse_client/models/sync_transactions_response'
|
@@ -112,12 +132,14 @@ require 'fuse_client/models/transaction'
|
|
112
132
|
require 'fuse_client/models/transaction_merchant'
|
113
133
|
require 'fuse_client/models/update_entity_request'
|
114
134
|
require 'fuse_client/models/update_entity_response'
|
135
|
+
require 'fuse_client/models/update_spend_power_customization_response'
|
115
136
|
require 'fuse_client/models/webhook_event'
|
116
137
|
require 'fuse_client/models/webhook_source'
|
117
138
|
require 'fuse_client/models/webhook_type'
|
118
139
|
|
119
140
|
# APIs
|
120
141
|
require 'fuse_client/api/fuse_api'
|
142
|
+
require 'fuse_client/api/spend_power_api'
|
121
143
|
|
122
144
|
module FuseClient
|
123
145
|
class << self
|
data/spec/api/fuse_api_spec.rb
CHANGED
@@ -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
|
|
@@ -32,8 +32,19 @@ describe 'FuseApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for add_spend_power_transaction
|
36
|
+
# @param spend_power_id
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [AddSpendPowerTransactionRequest] :add_spend_power_transaction_request
|
39
|
+
# @return [AddSpendPowerTransactionResponse]
|
40
|
+
describe 'add_spend_power_transaction test' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
35
46
|
# unit tests for create_asset_report
|
36
|
-
# Use this endpoint to generate an Asset Report for a user.
|
47
|
+
# 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.
|
37
48
|
# @param [Hash] opts the optional parameters
|
38
49
|
# @option opts [CreateAssetReportRequest] :create_asset_report_request
|
39
50
|
# @return [CreateAssetReportResponse]
|
@@ -65,6 +76,27 @@ describe 'FuseApi' do
|
|
65
76
|
end
|
66
77
|
end
|
67
78
|
|
79
|
+
# unit tests for create_spend_power
|
80
|
+
# Starts the background process that will determine the spend power depending on the customization passed in.
|
81
|
+
# @param [Hash] opts the optional parameters
|
82
|
+
# @option opts [CreateSpendPowerRequest] :create_spend_power_request
|
83
|
+
# @return [CreateSpendPowerResponse]
|
84
|
+
describe 'create_spend_power test' do
|
85
|
+
it 'should work' do
|
86
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
# unit tests for create_spend_power_customization
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @option opts [SpendPowerCustomization] :body
|
93
|
+
# @return [CreateSpendPowerCustomizationResponse]
|
94
|
+
describe 'create_spend_power_customization test' do
|
95
|
+
it 'should work' do
|
96
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
68
100
|
# unit tests for delete_financial_connection
|
69
101
|
# Delete a financial connection
|
70
102
|
# @param financial_connection_id_to_delete
|
@@ -88,10 +120,10 @@ describe 'FuseApi' do
|
|
88
120
|
end
|
89
121
|
|
90
122
|
# unit tests for get_asset_report
|
91
|
-
# Retrieves the Asset Report in JSON format.
|
123
|
+
# Retrieves the Asset Report in JSON format. For Plaid, you will need to have the assets product enabled on your plaid account.
|
92
124
|
# @param [Hash] opts the optional parameters
|
93
125
|
# @option opts [GetAssetReportRequest] :get_asset_report_request
|
94
|
-
# @return [
|
126
|
+
# @return [RefreshAssetReportResponse]
|
95
127
|
describe 'get_asset_report test' do
|
96
128
|
it 'should work' do
|
97
129
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -132,6 +164,17 @@ describe 'FuseApi' do
|
|
132
164
|
end
|
133
165
|
end
|
134
166
|
|
167
|
+
# unit tests for get_financial_connections_account_statement
|
168
|
+
# 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.
|
169
|
+
# @param [Hash] opts the optional parameters
|
170
|
+
# @option opts [GetFinancialConnectionsAccountStatementRequest] :get_financial_connections_account_statement_request
|
171
|
+
# @return [GetFinancialConnectionsAccountStatementResponse]
|
172
|
+
describe 'get_financial_connections_account_statement test' do
|
173
|
+
it 'should work' do
|
174
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
135
178
|
# unit tests for get_financial_connections_accounts
|
136
179
|
# Get accounts
|
137
180
|
# @param get_financial_connections_accounts_request
|
@@ -210,6 +253,16 @@ describe 'FuseApi' do
|
|
210
253
|
end
|
211
254
|
end
|
212
255
|
|
256
|
+
# unit tests for get_spend_power
|
257
|
+
# @param spend_power_id
|
258
|
+
# @param [Hash] opts the optional parameters
|
259
|
+
# @return [GetSpendPowerResponse]
|
260
|
+
describe 'get_spend_power test' do
|
261
|
+
it 'should work' do
|
262
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
263
|
+
end
|
264
|
+
end
|
265
|
+
|
213
266
|
# unit tests for migrate_financial_connection
|
214
267
|
# Migrate financial connection
|
215
268
|
# 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.
|
@@ -223,10 +276,10 @@ describe 'FuseApi' do
|
|
223
276
|
end
|
224
277
|
|
225
278
|
# unit tests for refresh_asset_report
|
226
|
-
# Refreshes the Asset Report in JSON format.
|
279
|
+
# Refreshes the Asset Report in JSON format. For Plaid, you will need to have the assets product enabled on your plaid account.
|
227
280
|
# @param [Hash] opts the optional parameters
|
228
281
|
# @option opts [RefreshAssetReportRequest] :refresh_asset_report_request
|
229
|
-
# @return [
|
282
|
+
# @return [AssetReportResponse]
|
230
283
|
describe 'refresh_asset_report test' do
|
231
284
|
it 'should work' do
|
232
285
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -245,6 +298,16 @@ describe 'FuseApi' do
|
|
245
298
|
end
|
246
299
|
end
|
247
300
|
|
301
|
+
# unit tests for update_spend_power_customization
|
302
|
+
# @param [Hash] opts the optional parameters
|
303
|
+
# @option opts [SpendPowerCustomization] :body
|
304
|
+
# @return [UpdateSpendPowerCustomizationResponse]
|
305
|
+
describe 'update_spend_power_customization test' do
|
306
|
+
it 'should work' do
|
307
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
308
|
+
end
|
309
|
+
end
|
310
|
+
|
248
311
|
# unit tests for v1_financial_connections_liabilities_post
|
249
312
|
# Get liabilities
|
250
313
|
# @param get_liabilities_request
|