fuse_client 1.0.31 → 1.0.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +8 -9
- data/README.md +10 -2
- data/docs/AddAccountEventsRequest.md +18 -0
- data/docs/AddAccountEventsRequestEventsInner.md +51 -0
- data/docs/AddAccountEventsResponse.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 +5 -5
- data/docs/CreateSpendPowerCustomizationRequest.md +22 -0
- 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/EnrichTransactionsRequest.md +18 -0
- data/docs/EnrichTransactionsResponse.md +18 -0
- data/docs/EnrichedTransaction.md +46 -0
- data/docs/EnrichedTransactionLogo.md +18 -0
- data/docs/Entity.md +1 -1
- data/docs/EvalSpendPowerRequest.md +22 -0
- data/docs/EvalSpendPowerRequestEventsInner.md +20 -0
- data/docs/EvalSpendPowerResponse.md +20 -0
- data/docs/ExchangeFinancialConnectionsPublicTokenRequest.md +1 -1
- data/docs/ExchangeFinancialConnectionsPublicTokenResponse.md +2 -2
- data/docs/ExternalTransactionEvent.md +36 -0
- data/docs/ExternalTransactionEventStatus.md +15 -0
- data/docs/FinancialConnectionsAccountBalance.md +2 -2
- data/docs/FinancialConnectionsAccountCachedBalance.md +2 -2
- data/docs/FinancialConnectionsHolding.md +3 -3
- data/docs/FinancialConnectionsInvestmentSecurity.md +2 -2
- data/docs/FinancialConnectionsInvestmentSecurityType.md +15 -0
- data/docs/FinancialConnectionsInvestmentTransaction.md +7 -3
- data/docs/FinancialConnectionsInvestmentTransactionSubtype.md +15 -0
- data/docs/FuseApi.md +643 -19
- 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/GetFinanceScoreResponse.md +20 -0
- data/docs/GetFinancialConnectionsAccountStatementRequest.md +22 -0
- data/docs/GetFinancialConnectionsAccountStatementResponse.md +20 -0
- data/docs/GetInvestmentTransactionsRequest.md +4 -4
- data/docs/GetInvestmentTransactionsResponse.md +2 -0
- data/docs/GetSpendPowerCustomizationResponse.md +20 -0
- data/docs/GetSpendPowerResponse.md +20 -0
- data/docs/InAppTransactionEvent.md +34 -0
- data/docs/InAppTransactionEventStatus.md +15 -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 +165 -0
- data/docs/SpendPowerCustomization.md +24 -0
- data/docs/SpendPowerTimeFrame.md +15 -0
- data/docs/Transaction.md +2 -2
- data/docs/TransactionCategory.md +20 -0
- data/docs/TransactionCategoryDetailed.md +15 -0
- data/docs/TransactionCategoryPrimary.md +15 -0
- data/docs/TransactionEventType.md +15 -0
- data/docs/TransactionToEnrich.md +26 -0
- data/docs/UpdateSpendPowerCustomizationRequest.md +22 -0
- data/docs/UpdateSpendPowerCustomizationResponse.md +20 -0
- data/docs/UpdatedBalanceEvent.md +26 -0
- data/docs/WebhookEvent.md +6 -0
- data/fuse_client.gemspec +1 -1
- data/lib/fuse_client/api/fuse_api.rb +530 -16
- data/lib/fuse_client/api/spend_power_api.rb +172 -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_account_events_request.rb +254 -0
- data/lib/fuse_client/models/add_account_events_request_events_inner.rb +106 -0
- data/lib/fuse_client/models/add_account_events_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 +3 -2
- 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 +32 -9
- data/lib/fuse_client/models/create_session_response.rb +1 -1
- data/lib/fuse_client/models/create_spend_power_customization_request.rb +314 -0
- 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 +240 -0
- data/lib/fuse_client/models/enrich_transactions_request.rb +226 -0
- data/lib/fuse_client/models/enrich_transactions_response.rb +222 -0
- data/lib/fuse_client/models/enriched_transaction.rb +397 -0
- data/lib/fuse_client/models/enriched_transaction_logo.rb +220 -0
- data/lib/fuse_client/models/entity.rb +2 -2
- data/lib/fuse_client/models/eval_spend_power_request.rb +296 -0
- data/lib/fuse_client/models/eval_spend_power_request_events_inner.rb +239 -0
- data/lib/fuse_client/models/eval_spend_power_response.rb +230 -0
- 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/external_transaction_event.rb +384 -0
- data/lib/fuse_client/models/external_transaction_event_status.rb +40 -0
- 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 +3 -3
- data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +3 -3
- 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 +4 -4
- data/lib/fuse_client/models/financial_connections_investment_security.rb +25 -9
- 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 +62 -5
- data/lib/fuse_client/models/financial_connections_investment_transaction_subtype.rb +87 -0
- 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 +78 -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_finance_score_response.rb +240 -0
- 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 +38 -10
- 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_customization_response.rb +239 -0
- data/lib/fuse_client/models/get_spend_power_response.rb +239 -0
- data/lib/fuse_client/models/in_app_transaction_event.rb +364 -0
- data/lib/fuse_client/models/in_app_transaction_event_status.rb +41 -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 +329 -0
- data/lib/fuse_client/models/spend_power_time_frame.rb +41 -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_category.rb +260 -0
- data/lib/fuse_client/models/transaction_category_detailed.rb +135 -0
- data/lib/fuse_client/models/transaction_category_primary.rb +59 -0
- data/lib/fuse_client/models/transaction_event_type.rb +65 -0
- data/lib/fuse_client/models/transaction_merchant.rb +1 -1
- data/lib/fuse_client/models/transaction_to_enrich.rb +304 -0
- 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_request.rb +291 -0
- data/lib/fuse_client/models/update_spend_power_customization_response.rb +240 -0
- data/lib/fuse_client/models/updated_balance_event.rb +308 -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 +52 -6
- data/spec/api/fuse_api_spec.rb +95 -6
- data/spec/api/spend_power_api_spec.rb +61 -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_account_events_request_events_inner_spec.rb +31 -0
- data/spec/models/add_account_events_request_spec.rb +34 -0
- data/spec/models/add_account_events_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_request_spec.rb +46 -0
- 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/enrich_transactions_request_spec.rb +34 -0
- data/spec/models/enrich_transactions_response_spec.rb +34 -0
- data/spec/models/enriched_transaction_logo_spec.rb +34 -0
- data/spec/models/enriched_transaction_spec.rb +122 -0
- data/spec/models/entity_spec.rb +1 -1
- data/spec/models/eval_spend_power_request_events_inner_spec.rb +40 -0
- data/spec/models/eval_spend_power_request_spec.rb +46 -0
- data/spec/models/eval_spend_power_response_spec.rb +40 -0
- 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/external_transaction_event_spec.rb +92 -0
- data/spec/models/external_transaction_event_status_spec.rb +28 -0
- 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 +17 -1
- data/spec/models/financial_connections_investment_transaction_subtype_spec.rb +28 -0
- 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_finance_score_response_spec.rb +40 -0
- 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_customization_response_spec.rb +40 -0
- data/spec/models/get_spend_power_response_spec.rb +40 -0
- data/spec/models/in_app_transaction_event_spec.rb +86 -0
- data/spec/models/in_app_transaction_event_status_spec.rb +28 -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 +52 -0
- data/spec/models/spend_power_spec.rb +70 -0
- data/spec/models/spend_power_time_frame_spec.rb +28 -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_category_detailed_spec.rb +28 -0
- data/spec/models/transaction_category_primary_spec.rb +28 -0
- data/spec/models/transaction_category_spec.rb +40 -0
- data/spec/models/transaction_event_type_spec.rb +28 -0
- data/spec/models/transaction_merchant_spec.rb +1 -1
- data/spec/models/transaction_spec.rb +9 -1
- data/spec/models/transaction_to_enrich_spec.rb +62 -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_request_spec.rb +46 -0
- data/spec/models/update_spend_power_customization_response_spec.rb +40 -0
- data/spec/models/updated_balance_event_spec.rb +62 -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 +206 -22
- data/docs/GetAssetReportResponseReport.md +0 -28
- data/docs/GetAssetReportResponseReportAccountsInner.md +0 -24
@@ -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,10 @@ module FuseClient
|
|
18
18
|
# Remote Account Id of the transaction, ie Plaid Account Id
|
19
19
|
attr_accessor :remote_account_id
|
20
20
|
|
21
|
-
# Amount in cents after factoring in pending balances
|
21
|
+
# Amount in cents after factoring in pending balances. The format of this value is a double. For accounts with credit features, the available funds generally equal the credit limit. Some institutions may not provide an available balance calculation. If this is the case, Fuse will return a null value for the available balance. To ensure you have the most accurate information, we recommend obtaining the current balance by using 'balance.available || balance.current'.
|
22
22
|
attr_accessor :available
|
23
23
|
|
24
|
-
# Amount in cents without factoring in pending balances
|
24
|
+
# Amount in cents without factoring in pending balances. The format of this value is a double.
|
25
25
|
attr_accessor :current
|
26
26
|
|
27
27
|
# The ISO-4217 currency code of the balance.
|
@@ -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
|
|
@@ -15,10 +15,10 @@ require 'time'
|
|
15
15
|
|
16
16
|
module FuseClient
|
17
17
|
class FinancialConnectionsAccountCachedBalance
|
18
|
-
# The amount of funds available to be withdrawn from the account, as determined by the financial institution Available balance may be cached and is not guaranteed to be up-to-date in realtime unless the value was returned by /financial_connections/balances.
|
18
|
+
# The amount of funds available, in cents, to be withdrawn from the account, as determined by the financial institution. The format of this value is a double. Available balance may be cached and is not guaranteed to be up-to-date in realtime unless the value was returned by /financial_connections/balances. For accounts with credit features, the available funds generally equal the credit limit. Some institutions may not provide an available balance calculation. If this is the case, Fuse will return a null value for the available balance. To ensure you have the most accurate information, we recommend obtaining the current balance by using 'balance.available || balance.current'.
|
19
19
|
attr_accessor :available
|
20
20
|
|
21
|
-
# Amount without factoring in pending balances
|
21
|
+
# Amount without factoring in pending balances, in cents. The format of this value is a double.
|
22
22
|
attr_accessor :current
|
23
23
|
|
24
24
|
# The ISO-4217 currency code of the balance.
|
@@ -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,16 +18,16 @@ module FuseClient
|
|
18
18
|
# The remote account ID associated with this holding.
|
19
19
|
attr_accessor :remote_account_id
|
20
20
|
|
21
|
-
# The original total value of the holding when it was purchased.
|
21
|
+
# The original total value of the holding, in cents, when it was purchased. The format of this value is a double.
|
22
22
|
attr_accessor :cost_basis
|
23
23
|
|
24
|
-
# The current market value of the holding.
|
24
|
+
# The current market value of the holding, in cents. The format of this value is a double.
|
25
25
|
attr_accessor :value
|
26
26
|
|
27
27
|
# The number of units of the security held in this holding.
|
28
28
|
attr_accessor :quantity
|
29
29
|
|
30
|
-
# The price of the security as provided by the financial institution managing the holding.
|
30
|
+
# The price of the security, in cents, as provided by the financial institution managing the holding. The format of this value is a double.
|
31
31
|
attr_accessor :institution_price
|
32
32
|
|
33
33
|
attr_accessor :security
|
@@ -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
|
|
@@ -30,7 +30,7 @@ module FuseClient
|
|
30
30
|
# The Committee on Uniform Securities Identification Procedures (CUSIP) number uniquely identifies the security, primarily used in the United States and Canada.
|
31
31
|
attr_accessor :cusip
|
32
32
|
|
33
|
-
# The closing price of the security at the end of the most recent trading day.
|
33
|
+
# The closing price of the security, in cents, at the end of the most recent trading day. The format of this value is a double.
|
34
34
|
attr_accessor :close_price
|
35
35
|
|
36
36
|
attr_accessor :currency
|
@@ -38,11 +38,32 @@ module FuseClient
|
|
38
38
|
# A descriptive name for the security, suitable for display.
|
39
39
|
attr_accessor :name
|
40
40
|
|
41
|
-
# The type of security (e.g., equity, mutual fund)
|
42
41
|
attr_accessor :type
|
43
42
|
|
44
43
|
attr_accessor :exchange
|
45
44
|
|
45
|
+
class EnumAttributeValidator
|
46
|
+
attr_reader :datatype
|
47
|
+
attr_reader :allowable_values
|
48
|
+
|
49
|
+
def initialize(datatype, allowable_values)
|
50
|
+
@allowable_values = allowable_values.map do |value|
|
51
|
+
case datatype.to_s
|
52
|
+
when /Integer/i
|
53
|
+
value.to_i
|
54
|
+
when /Float/i
|
55
|
+
value.to_f
|
56
|
+
else
|
57
|
+
value
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
def valid?(value)
|
63
|
+
!value || allowable_values.include?(value)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
46
67
|
# Attribute mapping from ruby-style variable name to JSON key.
|
47
68
|
def self.attribute_map
|
48
69
|
{
|
@@ -75,7 +96,7 @@ module FuseClient
|
|
75
96
|
:'close_price' => :'Float',
|
76
97
|
:'currency' => :'Currency',
|
77
98
|
:'name' => :'String',
|
78
|
-
:'type' => :'
|
99
|
+
:'type' => :'FinancialConnectionsInvestmentSecurityType',
|
79
100
|
:'exchange' => :'FinancialConnectionsInvestmentSecurityExchange'
|
80
101
|
}
|
81
102
|
end
|
@@ -154,10 +175,6 @@ module FuseClient
|
|
154
175
|
invalid_properties.push('invalid value for "symbol", symbol cannot be nil.')
|
155
176
|
end
|
156
177
|
|
157
|
-
if @close_price.nil?
|
158
|
-
invalid_properties.push('invalid value for "close_price", close_price cannot be nil.')
|
159
|
-
end
|
160
|
-
|
161
178
|
if @currency.nil?
|
162
179
|
invalid_properties.push('invalid value for "currency", currency cannot be nil.')
|
163
180
|
end
|
@@ -170,7 +187,6 @@ module FuseClient
|
|
170
187
|
def valid?
|
171
188
|
return false if @remote_id.nil?
|
172
189
|
return false if @symbol.nil?
|
173
|
-
return false if @close_price.nil?
|
174
190
|
return false if @currency.nil?
|
175
191
|
true
|
176
192
|
end
|
@@ -0,0 +1,64 @@
|
|
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 FinancialConnectionsInvestmentSecurityType
|
18
|
+
CASH = "cash".freeze
|
19
|
+
CRYPTOCURRENCY = "cryptocurrency".freeze
|
20
|
+
DERIVATIVE = "derivative".freeze
|
21
|
+
EQUITY = "equity".freeze
|
22
|
+
ETF = "etf".freeze
|
23
|
+
FIXED_INCOME = "fixed_income".freeze
|
24
|
+
LOAN = "loan".freeze
|
25
|
+
MUTUAL_FUND = "mutual_fund".freeze
|
26
|
+
OTHER = "other".freeze
|
27
|
+
GLOBAL_DEPOSITARY_RECEIPT = "global_depositary_receipt".freeze
|
28
|
+
OPEN_ENDED_FUND = "open_ended_fund".freeze
|
29
|
+
RIGHT = "right".freeze
|
30
|
+
TEMPORARY = "temporary".freeze
|
31
|
+
WARRANT = "warrant".freeze
|
32
|
+
CLOSED_ENDED_FUND = "closed_ended_fund".freeze
|
33
|
+
COMMON_STOCK = "common_stock".freeze
|
34
|
+
EXCHANGE_TRADED_FUND = "exchange_traded_fund".freeze
|
35
|
+
BOND = "bond".freeze
|
36
|
+
AMERICAN_DEPOSITARY_RECEIPT = "american_depositary_receipt".freeze
|
37
|
+
UNIT = "unit".freeze
|
38
|
+
STRUCTURED_PRODUCT = "structured_product".freeze
|
39
|
+
PREFERRED_STOCK = "preferred_stock".freeze
|
40
|
+
REAL_ESTATE = "real_estate".freeze
|
41
|
+
AUTOMOBILE = "automobile".freeze
|
42
|
+
DELISTED_OR_DEFUNCT_ASSET = "delisted_or_defunct_asset".freeze
|
43
|
+
= "-".freeze
|
44
|
+
|
45
|
+
def self.all_vars
|
46
|
+
@all_vars ||= [CASH, CRYPTOCURRENCY, DERIVATIVE, EQUITY, ETF, FIXED_INCOME, LOAN, MUTUAL_FUND, OTHER, GLOBAL_DEPOSITARY_RECEIPT, OPEN_ENDED_FUND, RIGHT, TEMPORARY, WARRANT, CLOSED_ENDED_FUND, COMMON_STOCK, EXCHANGE_TRADED_FUND, BOND, AMERICAN_DEPOSITARY_RECEIPT, UNIT, STRUCTURED_PRODUCT, PREFERRED_STOCK, REAL_ESTATE, AUTOMOBILE, DELISTED_OR_DEFUNCT_ASSET, ].freeze
|
47
|
+
end
|
48
|
+
|
49
|
+
# Builds the enum from string
|
50
|
+
# @param [String] The enum value in the form of the string
|
51
|
+
# @return [String] The enum value
|
52
|
+
def self.build_from_hash(value)
|
53
|
+
new.build_from_hash(value)
|
54
|
+
end
|
55
|
+
|
56
|
+
# Builds the enum from string
|
57
|
+
# @param [String] The enum value in the form of the string
|
58
|
+
# @return [String] The enum value
|
59
|
+
def build_from_hash(value)
|
60
|
+
return value if FinancialConnectionsInvestmentSecurityType.all_vars.include?(value)
|
61
|
+
raise "Invalid ENUM value #{value} for class #FinancialConnectionsInvestmentSecurityType"
|
62
|
+
end
|
63
|
+
end
|
64
|
+
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
|
|
@@ -24,29 +24,55 @@ module FuseClient
|
|
24
24
|
# The name of the account associated with the investment transaction
|
25
25
|
attr_accessor :account_name
|
26
26
|
|
27
|
-
# The amount of the investment transaction
|
27
|
+
# The amount of the investment transaction, in cents. The format of this value is a double.
|
28
28
|
attr_accessor :amount
|
29
29
|
|
30
30
|
# A description of the investment transaction
|
31
31
|
attr_accessor :description
|
32
32
|
|
33
|
-
# The fees associated with the investment transaction
|
33
|
+
# The fees associated with the investment transaction, in cents. The format of this value is a double.
|
34
34
|
attr_accessor :fees
|
35
35
|
|
36
|
+
attr_accessor :currency
|
37
|
+
|
36
38
|
# The date and time of the investment transaction
|
37
39
|
attr_accessor :date
|
38
40
|
|
39
41
|
# The type of the investment transaction (e.g., 'buy', 'sell', 'dividend')
|
40
42
|
attr_accessor :type
|
41
43
|
|
44
|
+
attr_accessor :subtype
|
45
|
+
|
42
46
|
# The number of units of the security involved in this transaction
|
43
47
|
attr_accessor :quantity
|
44
48
|
|
45
|
-
# The price of the security involved in this transaction
|
49
|
+
# The price of the security involved in this transaction, in cents. The format of this value is a double.
|
46
50
|
attr_accessor :price
|
47
51
|
|
48
52
|
attr_accessor :security
|
49
53
|
|
54
|
+
class EnumAttributeValidator
|
55
|
+
attr_reader :datatype
|
56
|
+
attr_reader :allowable_values
|
57
|
+
|
58
|
+
def initialize(datatype, allowable_values)
|
59
|
+
@allowable_values = allowable_values.map do |value|
|
60
|
+
case datatype.to_s
|
61
|
+
when /Integer/i
|
62
|
+
value.to_i
|
63
|
+
when /Float/i
|
64
|
+
value.to_f
|
65
|
+
else
|
66
|
+
value
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
def valid?(value)
|
72
|
+
!value || allowable_values.include?(value)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
50
76
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
77
|
def self.attribute_map
|
52
78
|
{
|
@@ -56,8 +82,10 @@ module FuseClient
|
|
56
82
|
:'amount' => :'amount',
|
57
83
|
:'description' => :'description',
|
58
84
|
:'fees' => :'fees',
|
85
|
+
:'currency' => :'currency',
|
59
86
|
:'date' => :'date',
|
60
87
|
:'type' => :'type',
|
88
|
+
:'subtype' => :'subtype',
|
61
89
|
:'quantity' => :'quantity',
|
62
90
|
:'price' => :'price',
|
63
91
|
:'security' => :'security'
|
@@ -78,8 +106,10 @@ module FuseClient
|
|
78
106
|
:'amount' => :'Float',
|
79
107
|
:'description' => :'String',
|
80
108
|
:'fees' => :'Float',
|
109
|
+
:'currency' => :'Currency',
|
81
110
|
:'date' => :'Time',
|
82
111
|
:'type' => :'String',
|
112
|
+
:'subtype' => :'FinancialConnectionsInvestmentTransactionSubtype',
|
83
113
|
:'quantity' => :'Float',
|
84
114
|
:'price' => :'Float',
|
85
115
|
:'security' => :'FinancialConnectionsInvestmentSecurity'
|
@@ -131,6 +161,10 @@ module FuseClient
|
|
131
161
|
self.fees = attributes[:'fees']
|
132
162
|
end
|
133
163
|
|
164
|
+
if attributes.key?(:'currency')
|
165
|
+
self.currency = attributes[:'currency']
|
166
|
+
end
|
167
|
+
|
134
168
|
if attributes.key?(:'date')
|
135
169
|
self.date = attributes[:'date']
|
136
170
|
end
|
@@ -139,6 +173,10 @@ module FuseClient
|
|
139
173
|
self.type = attributes[:'type']
|
140
174
|
end
|
141
175
|
|
176
|
+
if attributes.key?(:'subtype')
|
177
|
+
self.subtype = attributes[:'subtype']
|
178
|
+
end
|
179
|
+
|
142
180
|
if attributes.key?(:'quantity')
|
143
181
|
self.quantity = attributes[:'quantity']
|
144
182
|
end
|
@@ -176,6 +214,10 @@ module FuseClient
|
|
176
214
|
invalid_properties.push('invalid value for "fees", fees cannot be nil.')
|
177
215
|
end
|
178
216
|
|
217
|
+
if @currency.nil?
|
218
|
+
invalid_properties.push('invalid value for "currency", currency cannot be nil.')
|
219
|
+
end
|
220
|
+
|
179
221
|
if @date.nil?
|
180
222
|
invalid_properties.push('invalid value for "date", date cannot be nil.')
|
181
223
|
end
|
@@ -207,14 +249,27 @@ module FuseClient
|
|
207
249
|
return false if @amount.nil?
|
208
250
|
return false if @description.nil?
|
209
251
|
return false if @fees.nil?
|
252
|
+
return false if @currency.nil?
|
210
253
|
return false if @date.nil?
|
211
254
|
return false if @type.nil?
|
255
|
+
type_validator = EnumAttributeValidator.new('String', ["cash", "buy", "sell", "transfer", "fee", "cancel", "-"])
|
256
|
+
return false unless type_validator.valid?(@type)
|
212
257
|
return false if @quantity.nil?
|
213
258
|
return false if @price.nil?
|
214
259
|
return false if @security.nil?
|
215
260
|
true
|
216
261
|
end
|
217
262
|
|
263
|
+
# Custom attribute writer method checking allowed values (enum).
|
264
|
+
# @param [Object] type Object to be assigned
|
265
|
+
def type=(type)
|
266
|
+
validator = EnumAttributeValidator.new('String', ["cash", "buy", "sell", "transfer", "fee", "cancel", "-"])
|
267
|
+
unless validator.valid?(type)
|
268
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
269
|
+
end
|
270
|
+
@type = type
|
271
|
+
end
|
272
|
+
|
218
273
|
# Checks equality by comparing each attribute.
|
219
274
|
# @param [Object] Object to be compared
|
220
275
|
def ==(o)
|
@@ -226,8 +281,10 @@ module FuseClient
|
|
226
281
|
amount == o.amount &&
|
227
282
|
description == o.description &&
|
228
283
|
fees == o.fees &&
|
284
|
+
currency == o.currency &&
|
229
285
|
date == o.date &&
|
230
286
|
type == o.type &&
|
287
|
+
subtype == o.subtype &&
|
231
288
|
quantity == o.quantity &&
|
232
289
|
price == o.price &&
|
233
290
|
security == o.security
|
@@ -242,7 +299,7 @@ module FuseClient
|
|
242
299
|
# Calculates hash code according to all attributes.
|
243
300
|
# @return [Integer] Hash code
|
244
301
|
def hash
|
245
|
-
[remote_id, remote_account_id, account_name, amount, description, fees, date, type, quantity, price, security].hash
|
302
|
+
[remote_id, remote_account_id, account_name, amount, description, fees, currency, date, type, subtype, quantity, price, security].hash
|
246
303
|
end
|
247
304
|
|
248
305
|
# Builds the object from hash
|
@@ -0,0 +1,87 @@
|
|
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 FinancialConnectionsInvestmentTransactionSubtype
|
18
|
+
ACCOUNT_FEE = "account_fee".freeze
|
19
|
+
ADJUSTMENT = "adjustment".freeze
|
20
|
+
ASSIGNMENT = "assignment".freeze
|
21
|
+
BUY = "buy".freeze
|
22
|
+
BUY_TO_COVER = "buy_to_cover".freeze
|
23
|
+
CONTRIBUTION = "contribution".freeze
|
24
|
+
DEPOSIT = "deposit".freeze
|
25
|
+
DISTRIBUTION = "distribution".freeze
|
26
|
+
DIVIDEND = "dividend".freeze
|
27
|
+
DIVIDEND_REINVESTMENT = "dividend_reinvestment".freeze
|
28
|
+
EXERCISE = "exercise".freeze
|
29
|
+
EXPIRE = "expire".freeze
|
30
|
+
FUND_FEE = "fund_fee".freeze
|
31
|
+
INTEREST = "interest".freeze
|
32
|
+
INTEREST_RECEIVABLE = "interest_receivable".freeze
|
33
|
+
INTEREST_REINVESTMENT = "interest_reinvestment".freeze
|
34
|
+
LEGAL_FEE = "legal_fee".freeze
|
35
|
+
LOAN_PAYMENT = "loan_payment".freeze
|
36
|
+
LONG_TERM_CAPITAL_GAIN = "long_term_capital_gain".freeze
|
37
|
+
LONG_TERM_CAPITAL_GAIN_REINVESTMENT = "long_term_capital_gain_reinvestment".freeze
|
38
|
+
MANAGEMENT_FEE = "management_fee".freeze
|
39
|
+
MARGIN_EXPENSE = "margin_expense".freeze
|
40
|
+
MERGER = "merger".freeze
|
41
|
+
MISCELLANEOUS_FEE = "miscellaneous_fee".freeze
|
42
|
+
NON_QUALIFIED_DIVIDEND = "non_qualified_dividend".freeze
|
43
|
+
NON_RESIDENT_TAX = "non_resident_tax".freeze
|
44
|
+
PENDING_CREDIT = "pending_credit".freeze
|
45
|
+
PENDING_DEBIT = "pending_debit".freeze
|
46
|
+
QUALIFIED_DIVIDEND = "qualified_dividend".freeze
|
47
|
+
REBALANCE = "rebalance".freeze
|
48
|
+
RETURN_OF_PRINCIPAL = "return_of_principal".freeze
|
49
|
+
REQUEST = "request".freeze
|
50
|
+
SELL = "sell".freeze
|
51
|
+
SELL_SHORT = "sell_short".freeze
|
52
|
+
SEND = "send".freeze
|
53
|
+
SHORT_TERM_CAPITAL_GAIN = "short_term_capital_gain".freeze
|
54
|
+
SHORT_TERM_CAPITAL_GAIN_REINVESTMENT = "short_term_capital_gain_reinvestment".freeze
|
55
|
+
SPIN_OFF = "spin_off".freeze
|
56
|
+
SPLIT = "split".freeze
|
57
|
+
STOCK_DISTRIBUTION = "stock_distribution".freeze
|
58
|
+
TAX = "tax".freeze
|
59
|
+
TAX_WITHHELD = "tax_withheld".freeze
|
60
|
+
TRADE = "trade".freeze
|
61
|
+
TRANSFER = "transfer".freeze
|
62
|
+
TRANSFER_FEE = "transfer_fee".freeze
|
63
|
+
TRUST_FEE = "trust_fee".freeze
|
64
|
+
UNQUALIFIED_GAIN = "unqualified_gain".freeze
|
65
|
+
WITHDRAWAL = "withdrawal".freeze
|
66
|
+
= "-".freeze
|
67
|
+
|
68
|
+
def self.all_vars
|
69
|
+
@all_vars ||= [ACCOUNT_FEE, ADJUSTMENT, ASSIGNMENT, BUY, BUY_TO_COVER, CONTRIBUTION, DEPOSIT, DISTRIBUTION, DIVIDEND, DIVIDEND_REINVESTMENT, EXERCISE, EXPIRE, FUND_FEE, INTEREST, INTEREST_RECEIVABLE, INTEREST_REINVESTMENT, LEGAL_FEE, LOAN_PAYMENT, LONG_TERM_CAPITAL_GAIN, LONG_TERM_CAPITAL_GAIN_REINVESTMENT, MANAGEMENT_FEE, MARGIN_EXPENSE, MERGER, MISCELLANEOUS_FEE, NON_QUALIFIED_DIVIDEND, NON_RESIDENT_TAX, PENDING_CREDIT, PENDING_DEBIT, QUALIFIED_DIVIDEND, REBALANCE, RETURN_OF_PRINCIPAL, REQUEST, SELL, SELL_SHORT, SEND, SHORT_TERM_CAPITAL_GAIN, SHORT_TERM_CAPITAL_GAIN_REINVESTMENT, SPIN_OFF, SPLIT, STOCK_DISTRIBUTION, TAX, TAX_WITHHELD, TRADE, TRANSFER, TRANSFER_FEE, TRUST_FEE, UNQUALIFIED_GAIN, WITHDRAWAL, ].freeze
|
70
|
+
end
|
71
|
+
|
72
|
+
# Builds the enum from string
|
73
|
+
# @param [String] The enum value in the form of the string
|
74
|
+
# @return [String] The enum value
|
75
|
+
def self.build_from_hash(value)
|
76
|
+
new.build_from_hash(value)
|
77
|
+
end
|
78
|
+
|
79
|
+
# Builds the enum from string
|
80
|
+
# @param [String] The enum value in the form of the string
|
81
|
+
# @return [String] The enum value
|
82
|
+
def build_from_hash(value)
|
83
|
+
return value if FinancialConnectionsInvestmentTransactionSubtype.all_vars.include?(value)
|
84
|
+
raise "Invalid ENUM value #{value} for class #FinancialConnectionsInvestmentTransactionSubtype"
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|