fuse_client 1.0.7 → 1.0.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -9
- data/README.md +4 -1
- data/docs/AccountSubType.md +15 -0
- data/docs/AccountType.md +15 -0
- data/docs/AddSpendPowerTransactionRequest.md +22 -0
- data/docs/AddSpendPowerTransactionResponse.md +20 -0
- data/docs/AssetReport.md +26 -0
- data/docs/AssetReportAccountsInner.md +24 -0
- data/docs/{GetAssetReportResponseReportAccountsInnerBalances.md → AssetReportAccountsInnerBalance.md} +2 -2
- data/docs/{GetAssetReportResponseReportAccountsInnerHistoricalBalancesInner.md → AssetReportAccountsInnerHistoricalBalancesInner.md} +2 -2
- data/docs/{GetAssetReportResponse.md → AssetReportResponse.md} +3 -3
- data/docs/AssetReportTransaction.md +36 -0
- data/docs/CountryCode.md +15 -0
- data/docs/CreateAssetReportRequest.md +2 -4
- data/docs/CreateAssetReportResponse.md +2 -2
- data/docs/CreateLinkTokenRequest.md +6 -4
- data/docs/CreateLinkTokenRequestPlaid.md +1 -1
- data/docs/CreateLinkTokenRequestTeller.md +18 -0
- data/docs/CreateLinkTokenRequestTellerConfig.md +18 -0
- data/docs/CreateLinkTokenResponse.md +2 -2
- data/docs/CreateSessionRequest.md +11 -3
- data/docs/CreateSessionResponse.md +3 -3
- data/docs/CreateSpendPowerCustomizationResponse.md +20 -0
- data/docs/CreateSpendPowerRequest.md +22 -0
- data/docs/CreateSpendPowerResponse.md +20 -0
- data/docs/Currency.md +20 -0
- data/docs/DeleteFinancialConnectionResponse.md +22 -0
- data/docs/DeleteSpendPowerResponse.md +20 -0
- data/docs/Entity.md +1 -1
- data/docs/ExchangeFinancialConnectionsPublicTokenRequest.md +1 -1
- data/docs/ExchangeFinancialConnectionsPublicTokenResponse.md +3 -3
- data/docs/FinancialConnectionData.md +2 -2
- data/docs/FinancialConnectionDetails.md +32 -0
- data/docs/FinancialConnectionDetailsMx.md +20 -0
- data/docs/FinancialConnectionDetailsPlaid.md +20 -0
- data/docs/FinancialConnectionDetailsTeller.md +20 -0
- data/docs/FinancialConnectionsAccount.md +8 -8
- data/docs/FinancialConnectionsAccountBalance.md +5 -3
- data/docs/FinancialConnectionsAccountCachedBalance.md +24 -0
- data/docs/FinancialConnectionsAccountDetails.md +2 -2
- data/docs/FinancialConnectionsAccountLiability.md +8 -8
- data/docs/FinancialConnectionsHolding.md +8 -8
- data/docs/FinancialConnectionsInvestmentSecurity.md +17 -7
- data/docs/FinancialConnectionsInvestmentSecurityExchange.md +18 -0
- data/docs/FinancialConnectionsInvestmentSecurityType.md +15 -0
- data/docs/FinancialConnectionsInvestmentTransaction.md +24 -2
- data/docs/FinancialConnectionsOwner.md +4 -4
- data/docs/FinancialConnectionsOwnerEmailsInner.md +1 -1
- data/docs/FinancialConnectionsOwnerNamesInner.md +1 -1
- data/docs/FinancialConnectionsOwnerPhoneNumbersInner.md +1 -1
- data/docs/FinancialInstitution.md +3 -1
- data/docs/FuseApi.md +588 -118
- data/docs/FuseApiAggregatorError.md +28 -0
- data/docs/FuseApiError.md +7 -5
- data/docs/FuseApiErrorCode.md +15 -0
- data/docs/FuseApiErrorData.md +2 -2
- data/docs/FuseApiErrorType.md +15 -0
- data/docs/FuseApiWarningData.md +1 -1
- data/docs/GetAssetReportRequest.md +2 -0
- data/docs/GetEntityResponse.md +4 -2
- data/docs/GetFinancialConnectionResponse.md +20 -0
- data/docs/GetFinancialConnectionsAccountDetailsResponse.md +3 -3
- data/docs/GetFinancialConnectionsAccountStatementRequest.md +22 -0
- data/docs/GetFinancialConnectionsAccountStatementResponse.md +20 -0
- data/docs/GetFinancialConnectionsAccountsResponse.md +3 -3
- data/docs/GetFinancialConnectionsBalanceRequest.md +3 -1
- data/docs/GetFinancialConnectionsBalanceRequestOptions.md +18 -0
- data/docs/{GetFinancialConnectionsAccountBalanceResponse.md → GetFinancialConnectionsBalanceResponse.md} +4 -4
- data/docs/GetFinancialConnectionsOwnersResponse.md +1 -1
- data/docs/GetFinancialConnectionsOwnersResponseAccountsInner.md +3 -3
- data/docs/GetFinancialConnectionsTransactionsRequest.md +26 -0
- data/docs/GetFinancialConnectionsTransactionsResponse.md +22 -0
- data/docs/GetFinancialInstitutionResponse.md +2 -2
- data/docs/GetInvestmentHoldingsRequest.md +3 -3
- data/docs/GetInvestmentHoldingsRequestOptions.md +18 -0
- data/docs/GetInvestmentHoldingsResponse.md +3 -5
- data/docs/GetInvestmentTransactionsRequest.md +11 -1
- data/docs/GetInvestmentTransactionsRequestOptions.md +18 -0
- data/docs/GetInvestmentTransactionsResponse.md +5 -5
- data/docs/GetSpendPowerResponse.md +20 -0
- data/docs/MigrateFinancialConnectionsAggregatorConnectionData.md +22 -0
- data/docs/MigrateFinancialConnectionsAggregatorConnectionDataMx.md +20 -0
- data/docs/MigrateFinancialConnectionsAggregatorConnectionDataPlaid.md +20 -0
- data/docs/MigrateFinancialConnectionsAggregatorConnectionDataTeller.md +18 -0
- data/docs/MigrateFinancialConnectionsTokenRequest.md +24 -0
- data/docs/MigrateFinancialConnectionsTokenRequestEntity.md +18 -0
- data/docs/MigrateFinancialConnectionsTokenResponse.md +24 -0
- data/docs/RefreshAssetReportRequest.md +5 -5
- data/docs/RefreshAssetReportResponse.md +22 -0
- data/docs/SpendPower.md +30 -0
- data/docs/SpendPowerApi.md +122 -0
- data/docs/SpendPowerCustomization.md +22 -0
- data/docs/SyncTransactionsResponse.md +2 -2
- data/docs/Transaction.md +38 -0
- data/docs/{GetTransactionsResponseDataInnerMerchant.md → TransactionMerchant.md} +2 -2
- data/docs/UpdateSpendPowerCustomizationResponse.md +20 -0
- data/docs/WebhookEvent.md +34 -0
- data/docs/WebhookSource.md +15 -0
- data/docs/WebhookType.md +15 -0
- data/fuse_client.gemspec +1 -1
- data/lib/fuse_client/api/fuse_api.rb +489 -136
- data/lib/fuse_client/api/spend_power_api.rb +146 -0
- data/lib/fuse_client/api_client.rb +1 -1
- data/lib/fuse_client/api_error.rb +1 -1
- data/lib/fuse_client/configuration.rb +86 -18
- data/lib/fuse_client/models/account_subtype.rb +178 -0
- data/lib/fuse_client/models/account_type.rb +46 -0
- data/lib/fuse_client/models/{get_transactions_response_data_inner.rb → add_spend_power_transaction_request.rb} +56 -83
- data/lib/fuse_client/models/{get_transactions_response.rb → add_spend_power_transaction_response.rb} +22 -33
- data/lib/fuse_client/models/aggregator.rb +4 -2
- data/lib/fuse_client/models/{get_asset_report_response_report.rb → asset_report.rb} +15 -27
- data/lib/fuse_client/models/{get_asset_report_response_report_accounts_inner.rb → asset_report_accounts_inner.rb} +27 -26
- data/lib/fuse_client/models/{get_asset_report_response_report_accounts_inner_balances.rb → asset_report_accounts_inner_balance.rb} +4 -4
- data/lib/fuse_client/models/{get_asset_report_response_report_accounts_inner_historical_balances_inner.rb → asset_report_accounts_inner_historical_balances_inner.rb} +4 -4
- data/lib/fuse_client/models/{get_asset_report_response.rb → asset_report_response.rb} +5 -5
- data/lib/fuse_client/models/asset_report_transaction.rb +385 -0
- data/lib/fuse_client/models/country_code.rb +40 -0
- data/lib/fuse_client/models/create_asset_report_request.rb +11 -23
- data/lib/fuse_client/models/create_asset_report_response.rb +3 -3
- data/lib/fuse_client/models/create_entity_request.rb +1 -1
- data/lib/fuse_client/models/create_entity_response.rb +1 -1
- data/lib/fuse_client/models/create_link_token_request.rb +25 -16
- data/lib/fuse_client/models/create_link_token_request_mx.rb +1 -1
- data/lib/fuse_client/models/create_link_token_request_plaid.rb +2 -2
- data/lib/fuse_client/models/create_link_token_request_teller.rb +220 -0
- data/lib/fuse_client/models/create_link_token_request_teller_config.rb +254 -0
- data/lib/fuse_client/models/create_link_token_response.rb +11 -1
- data/lib/fuse_client/models/create_session_request.rb +75 -11
- data/lib/fuse_client/models/create_session_response.rb +16 -1
- data/lib/fuse_client/models/create_spend_power_customization_response.rb +240 -0
- data/lib/fuse_client/models/create_spend_power_request.rb +255 -0
- data/lib/fuse_client/models/create_spend_power_response.rb +240 -0
- data/lib/fuse_client/models/currency.rb +235 -0
- data/lib/fuse_client/models/delete_financial_connection_response.rb +255 -0
- data/lib/fuse_client/models/delete_spend_power_response.rb +239 -0
- data/lib/fuse_client/models/entity.rb +2 -2
- data/lib/fuse_client/models/exchange_financial_connections_public_token_request.rb +6 -1
- data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +18 -3
- data/lib/fuse_client/models/financial_connection_data.rb +11 -1
- data/lib/fuse_client/models/financial_connection_details.rb +345 -0
- data/lib/fuse_client/models/financial_connection_details_mx.rb +241 -0
- data/lib/fuse_client/models/{get_transactions_request.rb → financial_connection_details_plaid.rb} +19 -23
- data/lib/fuse_client/models/financial_connection_details_teller.rb +241 -0
- data/lib/fuse_client/models/financial_connections_account.rb +59 -14
- data/lib/fuse_client/models/financial_connections_account_balance.rb +21 -6
- data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +250 -0
- data/lib/fuse_client/models/financial_connections_account_details.rb +11 -1
- data/lib/fuse_client/models/financial_connections_account_details_ach.rb +1 -1
- data/lib/fuse_client/models/financial_connections_account_institution.rb +1 -1
- data/lib/fuse_client/models/financial_connections_account_liability.rb +59 -14
- data/lib/fuse_client/models/financial_connections_account_liability_all_of.rb +1 -1
- data/lib/fuse_client/models/financial_connections_account_liability_all_of_aprs.rb +1 -1
- data/lib/fuse_client/models/financial_connections_holding.rb +52 -23
- data/lib/fuse_client/models/financial_connections_investment_security.rb +108 -24
- data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +220 -0
- data/lib/fuse_client/models/financial_connections_investment_security_type.rb +64 -0
- data/lib/fuse_client/models/financial_connections_investment_transaction.rb +206 -10
- data/lib/fuse_client/models/financial_connections_owner.rb +21 -1
- data/lib/fuse_client/models/financial_connections_owner_addresses_inner.rb +1 -1
- data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +1 -1
- data/lib/fuse_client/models/financial_connections_owner_emails_inner.rb +6 -1
- data/lib/fuse_client/models/financial_connections_owner_names_inner.rb +6 -1
- data/lib/fuse_client/models/financial_connections_owner_phone_numbers_inner.rb +6 -1
- data/lib/fuse_client/models/financial_institution.rb +22 -5
- data/lib/fuse_client/models/financial_institution_logo.rb +1 -1
- data/lib/fuse_client/models/fuse_api_aggregator_error.rb +264 -0
- data/lib/fuse_client/models/fuse_api_error.rb +43 -4
- data/lib/fuse_client/models/fuse_api_error_code.rb +76 -0
- data/lib/fuse_client/models/fuse_api_error_data.rb +25 -3
- data/lib/fuse_client/models/fuse_api_error_type.rb +42 -0
- data/lib/fuse_client/models/fuse_api_warning.rb +1 -1
- data/lib/fuse_client/models/fuse_api_warning_data.rb +24 -2
- data/lib/fuse_client/models/fuse_api_warning_data_warnings_inner.rb +1 -1
- data/lib/fuse_client/models/get_asset_report_request.rb +17 -2
- data/lib/fuse_client/models/get_entity_response.rb +29 -2
- data/lib/fuse_client/models/get_financial_connection_response.rb +239 -0
- data/lib/fuse_client/models/get_financial_connections_account_details_request.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_account_details_response.rb +16 -1
- data/lib/fuse_client/models/get_financial_connections_account_statement_request.rb +250 -0
- data/lib/fuse_client/models/get_financial_connections_account_statement_response.rb +240 -0
- data/lib/fuse_client/models/get_financial_connections_accounts_request.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_accounts_response.rb +16 -1
- data/lib/fuse_client/models/get_financial_connections_balance_request.rb +14 -5
- data/lib/fuse_client/models/get_financial_connections_balance_request_options.rb +222 -0
- data/lib/fuse_client/models/{get_financial_connections_account_balance_response.rb → get_financial_connections_balance_response.rb} +14 -4
- data/lib/fuse_client/models/get_financial_connections_owners_request.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_owners_response.rb +6 -1
- data/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +16 -1
- data/lib/fuse_client/models/get_financial_connections_transactions_request.rb +334 -0
- data/lib/fuse_client/models/get_financial_connections_transactions_response.rb +256 -0
- data/lib/fuse_client/models/get_financial_institution_response.rb +11 -1
- data/lib/fuse_client/models/get_investment_holdings_request.rb +9 -10
- data/lib/fuse_client/models/get_investment_holdings_request_options.rb +222 -0
- data/lib/fuse_client/models/get_investment_holdings_response.rb +18 -14
- data/lib/fuse_client/models/get_investment_transactions_request.rb +95 -5
- data/lib/fuse_client/models/get_investment_transactions_request_options.rb +222 -0
- data/lib/fuse_client/models/get_investment_transactions_response.rb +25 -11
- data/lib/fuse_client/models/get_liabilities_request.rb +1 -1
- data/lib/fuse_client/models/get_liabilities_response.rb +1 -1
- data/lib/fuse_client/models/get_spend_power_response.rb +239 -0
- data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data.rb +238 -0
- data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_mx.rb +236 -0
- data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_plaid.rb +236 -0
- data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_teller.rb +226 -0
- data/lib/fuse_client/models/migrate_financial_connections_token_request.rb +323 -0
- data/lib/fuse_client/models/{transaction_common_model.rb → migrate_financial_connections_token_request_entity.rb} +12 -13
- data/lib/fuse_client/models/migrate_financial_connections_token_response.rb +264 -0
- data/lib/fuse_client/models/product.rb +3 -3
- data/lib/fuse_client/models/refresh_asset_report_request.rb +32 -33
- data/lib/fuse_client/models/refresh_asset_report_response.rb +240 -0
- data/lib/fuse_client/models/{financial_connections_investment_transaction_data_inner.rb → spend_power.rb} +83 -58
- data/lib/fuse_client/models/{financial_connections_investment_account.rb → spend_power_customization.rb} +75 -74
- data/lib/fuse_client/models/sync_financial_connections_data_response.rb +1 -1
- data/lib/fuse_client/models/sync_transactions_request.rb +1 -1
- data/lib/fuse_client/models/sync_transactions_response.rb +3 -3
- data/lib/fuse_client/models/sync_transactions_response_removed_inner.rb +1 -1
- data/lib/fuse_client/models/transaction.rb +412 -0
- data/lib/fuse_client/models/{get_transactions_response_data_inner_merchant.rb → transaction_merchant.rb} +4 -4
- data/lib/fuse_client/models/update_entity_request.rb +1 -1
- data/lib/fuse_client/models/update_entity_response.rb +1 -1
- data/lib/fuse_client/models/update_spend_power_customization_response.rb +240 -0
- data/lib/fuse_client/models/webhook_event.rb +353 -0
- data/lib/fuse_client/models/webhook_source.rb +43 -0
- data/lib/fuse_client/models/webhook_type.rb +43 -0
- data/lib/fuse_client/version.rb +2 -2
- data/lib/fuse_client.rb +57 -14
- data/spec/api/fuse_api_spec.rb +100 -36
- data/spec/api/spend_power_api_spec.rb +64 -0
- data/spec/api_client_spec.rb +3 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_subtype_spec.rb +28 -0
- data/spec/models/account_type_spec.rb +28 -0
- data/spec/models/add_spend_power_transaction_request_spec.rb +50 -0
- data/spec/models/add_spend_power_transaction_response_spec.rb +40 -0
- data/spec/models/aggregator_spec.rb +1 -1
- data/spec/models/{get_asset_report_response_report_accounts_inner_balances_spec.rb → asset_report_accounts_inner_balance_spec.rb} +7 -7
- data/spec/models/{get_asset_report_response_report_accounts_inner_historical_balances_inner_spec.rb → asset_report_accounts_inner_historical_balances_inner_spec.rb} +7 -7
- data/spec/models/{get_transactions_response_spec.rb → asset_report_accounts_inner_spec.rb} +11 -11
- data/spec/models/{get_asset_report_response_spec.rb → asset_report_response_spec.rb} +7 -7
- data/spec/models/{get_asset_report_response_report_spec.rb → asset_report_spec.rb} +8 -14
- data/spec/models/asset_report_transaction_spec.rb +96 -0
- data/spec/models/country_code_spec.rb +28 -0
- data/spec/models/create_asset_report_request_spec.rb +1 -7
- data/spec/models/create_asset_report_response_spec.rb +1 -1
- data/spec/models/create_entity_request_spec.rb +1 -1
- data/spec/models/create_entity_response_spec.rb +1 -1
- data/spec/models/create_link_token_request_mx_spec.rb +1 -1
- data/spec/models/create_link_token_request_plaid_spec.rb +1 -1
- data/spec/models/create_link_token_request_spec.rb +10 -4
- data/spec/models/create_link_token_request_teller_config_spec.rb +38 -0
- data/spec/models/create_link_token_request_teller_spec.rb +34 -0
- data/spec/models/create_link_token_response_spec.rb +1 -1
- data/spec/models/create_session_request_spec.rb +25 -1
- data/spec/models/create_session_response_spec.rb +1 -1
- data/spec/models/create_spend_power_customization_response_spec.rb +40 -0
- data/spec/models/{get_transactions_request_spec.rb → create_spend_power_request_spec.rb} +9 -9
- data/spec/models/create_spend_power_response_spec.rb +40 -0
- data/spec/models/{get_transactions_response_data_inner_merchant_spec.rb → currency_spec.rb} +13 -7
- data/spec/models/delete_financial_connection_response_spec.rb +46 -0
- data/spec/models/delete_spend_power_response_spec.rb +40 -0
- data/spec/models/entity_spec.rb +1 -1
- data/spec/models/exchange_financial_connections_public_token_request_spec.rb +1 -1
- data/spec/models/exchange_financial_connections_public_token_response_spec.rb +1 -1
- data/spec/models/financial_connection_data_spec.rb +1 -1
- data/spec/models/financial_connection_details_mx_spec.rb +40 -0
- data/spec/models/financial_connection_details_plaid_spec.rb +40 -0
- data/spec/models/{financial_connections_investment_transaction_data_inner_spec.rb → financial_connection_details_spec.rb} +18 -14
- data/spec/models/financial_connection_details_teller_spec.rb +40 -0
- data/spec/models/financial_connections_account_balance_spec.rb +7 -1
- data/spec/models/{get_asset_report_response_report_accounts_inner_spec.rb → financial_connections_account_cached_balance_spec.rb} +11 -11
- data/spec/models/financial_connections_account_details_ach_spec.rb +1 -1
- data/spec/models/financial_connections_account_details_spec.rb +1 -1
- data/spec/models/financial_connections_account_institution_spec.rb +1 -1
- data/spec/models/financial_connections_account_liability_all_of_aprs_spec.rb +1 -1
- data/spec/models/financial_connections_account_liability_all_of_spec.rb +1 -1
- data/spec/models/financial_connections_account_liability_spec.rb +2 -2
- data/spec/models/financial_connections_account_spec.rb +2 -2
- data/spec/models/financial_connections_holding_spec.rb +4 -4
- data/spec/models/financial_connections_investment_security_exchange_spec.rb +34 -0
- data/spec/models/financial_connections_investment_security_spec.rb +34 -4
- data/spec/models/financial_connections_investment_security_type_spec.rb +28 -0
- data/spec/models/financial_connections_investment_transaction_spec.rb +72 -2
- data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +1 -1
- data/spec/models/financial_connections_owner_addresses_inner_spec.rb +1 -1
- data/spec/models/financial_connections_owner_emails_inner_spec.rb +1 -1
- data/spec/models/financial_connections_owner_names_inner_spec.rb +1 -1
- data/spec/models/financial_connections_owner_phone_numbers_inner_spec.rb +1 -1
- data/spec/models/financial_connections_owner_spec.rb +1 -1
- data/spec/models/financial_institution_logo_spec.rb +1 -1
- data/spec/models/financial_institution_spec.rb +7 -1
- data/spec/models/fuse_api_aggregator_error_spec.rb +64 -0
- data/spec/models/fuse_api_error_code_spec.rb +28 -0
- data/spec/models/fuse_api_error_data_spec.rb +1 -1
- data/spec/models/fuse_api_error_spec.rb +7 -1
- data/spec/models/fuse_api_error_type_spec.rb +28 -0
- data/spec/models/fuse_api_warning_data_spec.rb +1 -1
- data/spec/models/fuse_api_warning_data_warnings_inner_spec.rb +1 -1
- data/spec/models/fuse_api_warning_spec.rb +1 -1
- data/spec/models/get_asset_report_request_spec.rb +7 -1
- data/spec/models/get_entity_response_spec.rb +7 -1
- data/spec/models/get_financial_connection_response_spec.rb +40 -0
- data/spec/models/get_financial_connections_account_details_request_spec.rb +1 -1
- data/spec/models/get_financial_connections_account_details_response_spec.rb +1 -1
- data/spec/models/get_financial_connections_account_statement_request_spec.rb +46 -0
- data/spec/models/{get_financial_connections_account_balance_response_spec.rb → get_financial_connections_account_statement_response_spec.rb} +8 -8
- data/spec/models/get_financial_connections_accounts_request_spec.rb +1 -1
- data/spec/models/get_financial_connections_accounts_response_spec.rb +1 -1
- data/spec/models/get_financial_connections_balance_request_options_spec.rb +34 -0
- data/spec/models/get_financial_connections_balance_request_spec.rb +7 -1
- data/spec/models/get_financial_connections_balance_response_spec.rb +40 -0
- data/spec/models/get_financial_connections_owners_request_spec.rb +1 -1
- data/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +1 -1
- data/spec/models/get_financial_connections_owners_response_spec.rb +1 -1
- data/spec/models/get_financial_connections_transactions_request_spec.rb +58 -0
- data/spec/models/get_financial_connections_transactions_response_spec.rb +46 -0
- data/spec/models/get_financial_institution_response_spec.rb +1 -1
- data/spec/models/get_investment_holdings_request_options_spec.rb +34 -0
- data/spec/models/get_investment_holdings_request_spec.rb +2 -2
- data/spec/models/get_investment_holdings_response_spec.rb +1 -7
- data/spec/models/get_investment_transactions_request_options_spec.rb +34 -0
- data/spec/models/get_investment_transactions_request_spec.rb +31 -1
- data/spec/models/get_investment_transactions_response_spec.rb +2 -2
- data/spec/models/get_liabilities_request_spec.rb +1 -1
- data/spec/models/get_liabilities_response_spec.rb +1 -1
- data/spec/models/get_spend_power_response_spec.rb +40 -0
- data/spec/models/migrate_financial_connections_aggregator_connection_data_mx_spec.rb +40 -0
- data/spec/models/migrate_financial_connections_aggregator_connection_data_plaid_spec.rb +40 -0
- data/spec/models/migrate_financial_connections_aggregator_connection_data_spec.rb +46 -0
- data/spec/models/migrate_financial_connections_aggregator_connection_data_teller_spec.rb +34 -0
- data/spec/models/migrate_financial_connections_token_request_entity_spec.rb +34 -0
- data/spec/models/migrate_financial_connections_token_request_spec.rb +56 -0
- data/spec/models/migrate_financial_connections_token_response_spec.rb +52 -0
- data/spec/models/product_spec.rb +1 -1
- data/spec/models/refresh_asset_report_request_spec.rb +3 -3
- data/spec/models/refresh_asset_report_response_spec.rb +46 -0
- data/spec/models/spend_power_customization_spec.rb +50 -0
- data/spec/models/{financial_connections_investment_account_spec.rb → spend_power_spec.rb} +14 -20
- data/spec/models/sync_financial_connections_data_response_spec.rb +1 -1
- data/spec/models/sync_transactions_request_spec.rb +1 -1
- data/spec/models/sync_transactions_response_removed_inner_spec.rb +1 -1
- data/spec/models/sync_transactions_response_spec.rb +1 -1
- data/spec/models/{transaction_common_model_spec.rb → transaction_merchant_spec.rb} +8 -8
- data/spec/models/transaction_spec.rb +106 -0
- data/spec/models/update_entity_request_spec.rb +1 -1
- data/spec/models/update_entity_response_spec.rb +1 -1
- data/spec/models/update_spend_power_customization_response_spec.rb +40 -0
- data/spec/models/{get_transactions_response_data_inner_spec.rb → webhook_event_spec.rb} +20 -22
- data/spec/models/webhook_source_spec.rb +28 -0
- data/spec/models/webhook_type_spec.rb +28 -0
- data/spec/spec_helper.rb +1 -1
- metadata +226 -54
- data/docs/FinancialConnectionsInvestmentAccount.md +0 -32
- data/docs/FinancialConnectionsInvestmentTransactionDataInner.md +0 -32
- data/docs/GetAssetReportResponseReport.md +0 -28
- data/docs/GetAssetReportResponseReportAccountsInner.md +0 -24
- data/docs/GetTransactionsRequest.md +0 -22
- data/docs/GetTransactionsResponse.md +0 -24
- data/docs/GetTransactionsResponseDataInner.md +0 -36
- data/docs/TransactionCommonModel.md +0 -18
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,12 +15,77 @@ require 'time'
|
|
15
15
|
|
16
16
|
module FuseClient
|
17
17
|
class FinancialConnectionsInvestmentTransaction
|
18
|
-
|
18
|
+
# The remote ID of the Investment transaction
|
19
|
+
attr_accessor :remote_id
|
20
|
+
|
21
|
+
# Remote Account Id of the transaction, ie Plaid Account Id
|
22
|
+
attr_accessor :remote_account_id
|
23
|
+
|
24
|
+
# The name of the account associated with the investment transaction
|
25
|
+
attr_accessor :account_name
|
26
|
+
|
27
|
+
# The amount of the investment transaction
|
28
|
+
attr_accessor :amount
|
29
|
+
|
30
|
+
# A description of the investment transaction
|
31
|
+
attr_accessor :description
|
32
|
+
|
33
|
+
# The fees associated with the investment transaction
|
34
|
+
attr_accessor :fees
|
35
|
+
|
36
|
+
attr_accessor :currency
|
37
|
+
|
38
|
+
# The date and time of the investment transaction
|
39
|
+
attr_accessor :date
|
40
|
+
|
41
|
+
# The type of the investment transaction (e.g., 'buy', 'sell', 'dividend')
|
42
|
+
attr_accessor :type
|
43
|
+
|
44
|
+
# The number of units of the security involved in this transaction
|
45
|
+
attr_accessor :quantity
|
46
|
+
|
47
|
+
# The price of the security involved in this transaction
|
48
|
+
attr_accessor :price
|
49
|
+
|
50
|
+
attr_accessor :security
|
51
|
+
|
52
|
+
class EnumAttributeValidator
|
53
|
+
attr_reader :datatype
|
54
|
+
attr_reader :allowable_values
|
55
|
+
|
56
|
+
def initialize(datatype, allowable_values)
|
57
|
+
@allowable_values = allowable_values.map do |value|
|
58
|
+
case datatype.to_s
|
59
|
+
when /Integer/i
|
60
|
+
value.to_i
|
61
|
+
when /Float/i
|
62
|
+
value.to_f
|
63
|
+
else
|
64
|
+
value
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
def valid?(value)
|
70
|
+
!value || allowable_values.include?(value)
|
71
|
+
end
|
72
|
+
end
|
19
73
|
|
20
74
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
75
|
def self.attribute_map
|
22
76
|
{
|
23
|
-
:'
|
77
|
+
:'remote_id' => :'remote_id',
|
78
|
+
:'remote_account_id' => :'remote_account_id',
|
79
|
+
:'account_name' => :'account_name',
|
80
|
+
:'amount' => :'amount',
|
81
|
+
:'description' => :'description',
|
82
|
+
:'fees' => :'fees',
|
83
|
+
:'currency' => :'currency',
|
84
|
+
:'date' => :'date',
|
85
|
+
:'type' => :'type',
|
86
|
+
:'quantity' => :'quantity',
|
87
|
+
:'price' => :'price',
|
88
|
+
:'security' => :'security'
|
24
89
|
}
|
25
90
|
end
|
26
91
|
|
@@ -32,7 +97,18 @@ module FuseClient
|
|
32
97
|
# Attribute type mapping.
|
33
98
|
def self.openapi_types
|
34
99
|
{
|
35
|
-
:'
|
100
|
+
:'remote_id' => :'String',
|
101
|
+
:'remote_account_id' => :'String',
|
102
|
+
:'account_name' => :'String',
|
103
|
+
:'amount' => :'Float',
|
104
|
+
:'description' => :'String',
|
105
|
+
:'fees' => :'Float',
|
106
|
+
:'currency' => :'Currency',
|
107
|
+
:'date' => :'Time',
|
108
|
+
:'type' => :'String',
|
109
|
+
:'quantity' => :'Float',
|
110
|
+
:'price' => :'Float',
|
111
|
+
:'security' => :'FinancialConnectionsInvestmentSecurity'
|
36
112
|
}
|
37
113
|
end
|
38
114
|
|
@@ -57,10 +133,52 @@ module FuseClient
|
|
57
133
|
h[k.to_sym] = v
|
58
134
|
}
|
59
135
|
|
60
|
-
if attributes.key?(:'
|
61
|
-
|
62
|
-
|
63
|
-
|
136
|
+
if attributes.key?(:'remote_id')
|
137
|
+
self.remote_id = attributes[:'remote_id']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.key?(:'remote_account_id')
|
141
|
+
self.remote_account_id = attributes[:'remote_account_id']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.key?(:'account_name')
|
145
|
+
self.account_name = attributes[:'account_name']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'amount')
|
149
|
+
self.amount = attributes[:'amount']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.key?(:'description')
|
153
|
+
self.description = attributes[:'description']
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.key?(:'fees')
|
157
|
+
self.fees = attributes[:'fees']
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.key?(:'currency')
|
161
|
+
self.currency = attributes[:'currency']
|
162
|
+
end
|
163
|
+
|
164
|
+
if attributes.key?(:'date')
|
165
|
+
self.date = attributes[:'date']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.key?(:'type')
|
169
|
+
self.type = attributes[:'type']
|
170
|
+
end
|
171
|
+
|
172
|
+
if attributes.key?(:'quantity')
|
173
|
+
self.quantity = attributes[:'quantity']
|
174
|
+
end
|
175
|
+
|
176
|
+
if attributes.key?(:'price')
|
177
|
+
self.price = attributes[:'price']
|
178
|
+
end
|
179
|
+
|
180
|
+
if attributes.key?(:'security')
|
181
|
+
self.security = attributes[:'security']
|
64
182
|
end
|
65
183
|
end
|
66
184
|
|
@@ -68,21 +186,99 @@ module FuseClient
|
|
68
186
|
# @return Array for valid properties with the reasons
|
69
187
|
def list_invalid_properties
|
70
188
|
invalid_properties = Array.new
|
189
|
+
if @remote_id.nil?
|
190
|
+
invalid_properties.push('invalid value for "remote_id", remote_id cannot be nil.')
|
191
|
+
end
|
192
|
+
|
193
|
+
if @remote_account_id.nil?
|
194
|
+
invalid_properties.push('invalid value for "remote_account_id", remote_account_id cannot be nil.')
|
195
|
+
end
|
196
|
+
|
197
|
+
if @amount.nil?
|
198
|
+
invalid_properties.push('invalid value for "amount", amount cannot be nil.')
|
199
|
+
end
|
200
|
+
|
201
|
+
if @description.nil?
|
202
|
+
invalid_properties.push('invalid value for "description", description cannot be nil.')
|
203
|
+
end
|
204
|
+
|
205
|
+
if @fees.nil?
|
206
|
+
invalid_properties.push('invalid value for "fees", fees cannot be nil.')
|
207
|
+
end
|
208
|
+
|
209
|
+
if @currency.nil?
|
210
|
+
invalid_properties.push('invalid value for "currency", currency cannot be nil.')
|
211
|
+
end
|
212
|
+
|
213
|
+
if @date.nil?
|
214
|
+
invalid_properties.push('invalid value for "date", date cannot be nil.')
|
215
|
+
end
|
216
|
+
|
217
|
+
if @type.nil?
|
218
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
219
|
+
end
|
220
|
+
|
221
|
+
if @quantity.nil?
|
222
|
+
invalid_properties.push('invalid value for "quantity", quantity cannot be nil.')
|
223
|
+
end
|
224
|
+
|
225
|
+
if @price.nil?
|
226
|
+
invalid_properties.push('invalid value for "price", price cannot be nil.')
|
227
|
+
end
|
228
|
+
|
229
|
+
if @security.nil?
|
230
|
+
invalid_properties.push('invalid value for "security", security cannot be nil.')
|
231
|
+
end
|
232
|
+
|
71
233
|
invalid_properties
|
72
234
|
end
|
73
235
|
|
74
236
|
# Check to see if the all the properties in the model are valid
|
75
237
|
# @return true if the model is valid
|
76
238
|
def valid?
|
239
|
+
return false if @remote_id.nil?
|
240
|
+
return false if @remote_account_id.nil?
|
241
|
+
return false if @amount.nil?
|
242
|
+
return false if @description.nil?
|
243
|
+
return false if @fees.nil?
|
244
|
+
return false if @currency.nil?
|
245
|
+
return false if @date.nil?
|
246
|
+
return false if @type.nil?
|
247
|
+
type_validator = EnumAttributeValidator.new('String', ["cash", "buy", "sell", "transfer", "fee", "cancel", "-"])
|
248
|
+
return false unless type_validator.valid?(@type)
|
249
|
+
return false if @quantity.nil?
|
250
|
+
return false if @price.nil?
|
251
|
+
return false if @security.nil?
|
77
252
|
true
|
78
253
|
end
|
79
254
|
|
255
|
+
# Custom attribute writer method checking allowed values (enum).
|
256
|
+
# @param [Object] type Object to be assigned
|
257
|
+
def type=(type)
|
258
|
+
validator = EnumAttributeValidator.new('String', ["cash", "buy", "sell", "transfer", "fee", "cancel", "-"])
|
259
|
+
unless validator.valid?(type)
|
260
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
261
|
+
end
|
262
|
+
@type = type
|
263
|
+
end
|
264
|
+
|
80
265
|
# Checks equality by comparing each attribute.
|
81
266
|
# @param [Object] Object to be compared
|
82
267
|
def ==(o)
|
83
268
|
return true if self.equal?(o)
|
84
269
|
self.class == o.class &&
|
85
|
-
|
270
|
+
remote_id == o.remote_id &&
|
271
|
+
remote_account_id == o.remote_account_id &&
|
272
|
+
account_name == o.account_name &&
|
273
|
+
amount == o.amount &&
|
274
|
+
description == o.description &&
|
275
|
+
fees == o.fees &&
|
276
|
+
currency == o.currency &&
|
277
|
+
date == o.date &&
|
278
|
+
type == o.type &&
|
279
|
+
quantity == o.quantity &&
|
280
|
+
price == o.price &&
|
281
|
+
security == o.security
|
86
282
|
end
|
87
283
|
|
88
284
|
# @see the `==` method
|
@@ -94,7 +290,7 @@ module FuseClient
|
|
94
290
|
# Calculates hash code according to all attributes.
|
95
291
|
# @return [Integer] Hash code
|
96
292
|
def hash
|
97
|
-
[
|
293
|
+
[remote_id, remote_account_id, account_name, amount, description, fees, currency, date, type, quantity, price, security].hash
|
98
294
|
end
|
99
295
|
|
100
296
|
# 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
|
|
@@ -99,12 +99,32 @@ module FuseClient
|
|
99
99
|
# @return Array for valid properties with the reasons
|
100
100
|
def list_invalid_properties
|
101
101
|
invalid_properties = Array.new
|
102
|
+
if @addresses.nil?
|
103
|
+
invalid_properties.push('invalid value for "addresses", addresses cannot be nil.')
|
104
|
+
end
|
105
|
+
|
106
|
+
if @emails.nil?
|
107
|
+
invalid_properties.push('invalid value for "emails", emails cannot be nil.')
|
108
|
+
end
|
109
|
+
|
110
|
+
if @names.nil?
|
111
|
+
invalid_properties.push('invalid value for "names", names cannot be nil.')
|
112
|
+
end
|
113
|
+
|
114
|
+
if @phone_numbers.nil?
|
115
|
+
invalid_properties.push('invalid value for "phone_numbers", phone_numbers cannot be nil.')
|
116
|
+
end
|
117
|
+
|
102
118
|
invalid_properties
|
103
119
|
end
|
104
120
|
|
105
121
|
# Check to see if the all the properties in the model are valid
|
106
122
|
# @return true if the model is valid
|
107
123
|
def valid?
|
124
|
+
return false if @addresses.nil?
|
125
|
+
return false if @emails.nil?
|
126
|
+
return false if @names.nil?
|
127
|
+
return false if @phone_numbers.nil?
|
108
128
|
true
|
109
129
|
end
|
110
130
|
|
@@ -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
|
|
@@ -107,12 +107,17 @@ module FuseClient
|
|
107
107
|
# @return Array for valid properties with the reasons
|
108
108
|
def list_invalid_properties
|
109
109
|
invalid_properties = Array.new
|
110
|
+
if @data.nil?
|
111
|
+
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
112
|
+
end
|
113
|
+
|
110
114
|
invalid_properties
|
111
115
|
end
|
112
116
|
|
113
117
|
# Check to see if the all the properties in the model are valid
|
114
118
|
# @return true if the model is valid
|
115
119
|
def valid?
|
120
|
+
return false if @data.nil?
|
116
121
|
type_validator = EnumAttributeValidator.new('String', ["primary", "secondary", "other"])
|
117
122
|
return false unless type_validator.valid?(@type)
|
118
123
|
true
|
@@ -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
|
|
@@ -76,12 +76,17 @@ module FuseClient
|
|
76
76
|
# @return Array for valid properties with the reasons
|
77
77
|
def list_invalid_properties
|
78
78
|
invalid_properties = Array.new
|
79
|
+
if @data.nil?
|
80
|
+
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
81
|
+
end
|
82
|
+
|
79
83
|
invalid_properties
|
80
84
|
end
|
81
85
|
|
82
86
|
# Check to see if the all the properties in the model are valid
|
83
87
|
# @return true if the model is valid
|
84
88
|
def valid?
|
89
|
+
return false if @data.nil?
|
85
90
|
true
|
86
91
|
end
|
87
92
|
|
@@ -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
|
|
@@ -107,12 +107,17 @@ module FuseClient
|
|
107
107
|
# @return Array for valid properties with the reasons
|
108
108
|
def list_invalid_properties
|
109
109
|
invalid_properties = Array.new
|
110
|
+
if @data.nil?
|
111
|
+
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
112
|
+
end
|
113
|
+
|
110
114
|
invalid_properties
|
111
115
|
end
|
112
116
|
|
113
117
|
# Check to see if the all the properties in the model are valid
|
114
118
|
# @return true if the model is valid
|
115
119
|
def valid?
|
120
|
+
return false if @data.nil?
|
116
121
|
type_validator = EnumAttributeValidator.new('String', ["home", "work", "mobile"])
|
117
122
|
return false unless type_validator.valid?(@type)
|
118
123
|
true
|
@@ -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
|
|
@@ -26,13 +26,17 @@ module FuseClient
|
|
26
26
|
# Website of the financial institution.
|
27
27
|
attr_accessor :website
|
28
28
|
|
29
|
+
# List of country codes supported by this institution
|
30
|
+
attr_accessor :country_codes
|
31
|
+
|
29
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
33
|
def self.attribute_map
|
31
34
|
{
|
32
35
|
:'id' => :'id',
|
33
36
|
:'name' => :'name',
|
34
37
|
:'logo' => :'logo',
|
35
|
-
:'website' => :'website'
|
38
|
+
:'website' => :'website',
|
39
|
+
:'country_codes' => :'country_codes'
|
36
40
|
}
|
37
41
|
end
|
38
42
|
|
@@ -47,7 +51,8 @@ module FuseClient
|
|
47
51
|
:'id' => :'String',
|
48
52
|
:'name' => :'String',
|
49
53
|
:'logo' => :'FinancialInstitutionLogo',
|
50
|
-
:'website' => :'String'
|
54
|
+
:'website' => :'String',
|
55
|
+
:'country_codes' => :'Array<CountryCode>'
|
51
56
|
}
|
52
57
|
end
|
53
58
|
|
@@ -87,6 +92,12 @@ module FuseClient
|
|
87
92
|
if attributes.key?(:'website')
|
88
93
|
self.website = attributes[:'website']
|
89
94
|
end
|
95
|
+
|
96
|
+
if attributes.key?(:'country_codes')
|
97
|
+
if (value = attributes[:'country_codes']).is_a?(Array)
|
98
|
+
self.country_codes = value
|
99
|
+
end
|
100
|
+
end
|
90
101
|
end
|
91
102
|
|
92
103
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -101,6 +112,10 @@ module FuseClient
|
|
101
112
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
102
113
|
end
|
103
114
|
|
115
|
+
if @country_codes.nil?
|
116
|
+
invalid_properties.push('invalid value for "country_codes", country_codes cannot be nil.')
|
117
|
+
end
|
118
|
+
|
104
119
|
invalid_properties
|
105
120
|
end
|
106
121
|
|
@@ -109,6 +124,7 @@ module FuseClient
|
|
109
124
|
def valid?
|
110
125
|
return false if @id.nil?
|
111
126
|
return false if @name.nil?
|
127
|
+
return false if @country_codes.nil?
|
112
128
|
true
|
113
129
|
end
|
114
130
|
|
@@ -120,7 +136,8 @@ module FuseClient
|
|
120
136
|
id == o.id &&
|
121
137
|
name == o.name &&
|
122
138
|
logo == o.logo &&
|
123
|
-
website == o.website
|
139
|
+
website == o.website &&
|
140
|
+
country_codes == o.country_codes
|
124
141
|
end
|
125
142
|
|
126
143
|
# @see the `==` method
|
@@ -132,7 +149,7 @@ module FuseClient
|
|
132
149
|
# Calculates hash code according to all attributes.
|
133
150
|
# @return [Integer] Hash code
|
134
151
|
def hash
|
135
|
-
[id, name, logo, website].hash
|
152
|
+
[id, name, logo, website, country_codes].hash
|
136
153
|
end
|
137
154
|
|
138
155
|
# Builds the object from hash
|