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
|
|
@@ -14,49 +14,44 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module FuseClient
|
17
|
-
class
|
18
|
-
#
|
17
|
+
class AddSpendPowerTransactionRequest
|
18
|
+
# Id of the transaction
|
19
19
|
attr_accessor :id
|
20
20
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
23
|
-
|
24
|
-
# Remote Account Id of the transaction, ie Plaid Account Id
|
25
|
-
attr_accessor :remote_account_id
|
21
|
+
# The status of the transaction. This will be either pending, posted or cancelled.
|
22
|
+
attr_accessor :status
|
26
23
|
|
27
|
-
#
|
24
|
+
# The amount of the transaction, in cents. Use positive numbers to represent money going out and negative numbers to represent money coming in.
|
28
25
|
attr_accessor :amount
|
29
26
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
27
|
+
class EnumAttributeValidator
|
28
|
+
attr_reader :datatype
|
29
|
+
attr_reader :allowable_values
|
30
|
+
|
31
|
+
def initialize(datatype, allowable_values)
|
32
|
+
@allowable_values = allowable_values.map do |value|
|
33
|
+
case datatype.to_s
|
34
|
+
when /Integer/i
|
35
|
+
value.to_i
|
36
|
+
when /Float/i
|
37
|
+
value.to_f
|
38
|
+
else
|
39
|
+
value
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
43
|
|
44
|
-
|
45
|
-
|
44
|
+
def valid?(value)
|
45
|
+
!value || allowable_values.include?(value)
|
46
|
+
end
|
47
|
+
end
|
46
48
|
|
47
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
50
|
def self.attribute_map
|
49
51
|
{
|
50
52
|
:'id' => :'id',
|
51
|
-
:'remote_id' => :'remote_id',
|
52
|
-
:'remote_account_id' => :'remote_account_id',
|
53
|
-
:'amount' => :'amount',
|
54
|
-
:'date' => :'date',
|
55
|
-
:'description' => :'description',
|
56
|
-
:'category' => :'category',
|
57
|
-
:'merchant' => :'merchant',
|
58
53
|
:'status' => :'status',
|
59
|
-
:'
|
54
|
+
:'amount' => :'amount'
|
60
55
|
}
|
61
56
|
end
|
62
57
|
|
@@ -69,15 +64,8 @@ module FuseClient
|
|
69
64
|
def self.openapi_types
|
70
65
|
{
|
71
66
|
:'id' => :'String',
|
72
|
-
:'remote_id' => :'String',
|
73
|
-
:'remote_account_id' => :'String',
|
74
|
-
:'amount' => :'Float',
|
75
|
-
:'date' => :'String',
|
76
|
-
:'description' => :'String',
|
77
|
-
:'category' => :'Array<String>',
|
78
|
-
:'merchant' => :'GetTransactionsResponseDataInnerMerchant',
|
79
67
|
:'status' => :'String',
|
80
|
-
:'
|
68
|
+
:'amount' => :'String'
|
81
69
|
}
|
82
70
|
end
|
83
71
|
|
@@ -91,13 +79,13 @@ module FuseClient
|
|
91
79
|
# @param [Hash] attributes Model attributes in the form of hash
|
92
80
|
def initialize(attributes = {})
|
93
81
|
if (!attributes.is_a?(Hash))
|
94
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::
|
82
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::AddSpendPowerTransactionRequest` initialize method"
|
95
83
|
end
|
96
84
|
|
97
85
|
# check to see if the attribute exists and convert string to symbol for hash key
|
98
86
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
99
87
|
if (!self.class.attribute_map.key?(k.to_sym))
|
100
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::
|
88
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::AddSpendPowerTransactionRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
101
89
|
end
|
102
90
|
h[k.to_sym] = v
|
103
91
|
}
|
@@ -106,42 +94,12 @@ module FuseClient
|
|
106
94
|
self.id = attributes[:'id']
|
107
95
|
end
|
108
96
|
|
109
|
-
if attributes.key?(:'remote_id')
|
110
|
-
self.remote_id = attributes[:'remote_id']
|
111
|
-
end
|
112
|
-
|
113
|
-
if attributes.key?(:'remote_account_id')
|
114
|
-
self.remote_account_id = attributes[:'remote_account_id']
|
115
|
-
end
|
116
|
-
|
117
|
-
if attributes.key?(:'amount')
|
118
|
-
self.amount = attributes[:'amount']
|
119
|
-
end
|
120
|
-
|
121
|
-
if attributes.key?(:'date')
|
122
|
-
self.date = attributes[:'date']
|
123
|
-
end
|
124
|
-
|
125
|
-
if attributes.key?(:'description')
|
126
|
-
self.description = attributes[:'description']
|
127
|
-
end
|
128
|
-
|
129
|
-
if attributes.key?(:'category')
|
130
|
-
if (value = attributes[:'category']).is_a?(Array)
|
131
|
-
self.category = value
|
132
|
-
end
|
133
|
-
end
|
134
|
-
|
135
|
-
if attributes.key?(:'merchant')
|
136
|
-
self.merchant = attributes[:'merchant']
|
137
|
-
end
|
138
|
-
|
139
97
|
if attributes.key?(:'status')
|
140
98
|
self.status = attributes[:'status']
|
141
99
|
end
|
142
100
|
|
143
|
-
if attributes.key?(:'
|
144
|
-
self.
|
101
|
+
if attributes.key?(:'amount')
|
102
|
+
self.amount = attributes[:'amount']
|
145
103
|
end
|
146
104
|
end
|
147
105
|
|
@@ -149,30 +107,45 @@ module FuseClient
|
|
149
107
|
# @return Array for valid properties with the reasons
|
150
108
|
def list_invalid_properties
|
151
109
|
invalid_properties = Array.new
|
110
|
+
if @id.nil?
|
111
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
112
|
+
end
|
113
|
+
|
114
|
+
if @status.nil?
|
115
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
116
|
+
end
|
117
|
+
|
152
118
|
invalid_properties
|
153
119
|
end
|
154
120
|
|
155
121
|
# Check to see if the all the properties in the model are valid
|
156
122
|
# @return true if the model is valid
|
157
123
|
def valid?
|
124
|
+
return false if @id.nil?
|
125
|
+
return false if @status.nil?
|
126
|
+
status_validator = EnumAttributeValidator.new('String', ["pending", "posted", "cancelled"])
|
127
|
+
return false unless status_validator.valid?(@status)
|
158
128
|
true
|
159
129
|
end
|
160
130
|
|
131
|
+
# Custom attribute writer method checking allowed values (enum).
|
132
|
+
# @param [Object] status Object to be assigned
|
133
|
+
def status=(status)
|
134
|
+
validator = EnumAttributeValidator.new('String', ["pending", "posted", "cancelled"])
|
135
|
+
unless validator.valid?(status)
|
136
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
137
|
+
end
|
138
|
+
@status = status
|
139
|
+
end
|
140
|
+
|
161
141
|
# Checks equality by comparing each attribute.
|
162
142
|
# @param [Object] Object to be compared
|
163
143
|
def ==(o)
|
164
144
|
return true if self.equal?(o)
|
165
145
|
self.class == o.class &&
|
166
146
|
id == o.id &&
|
167
|
-
remote_id == o.remote_id &&
|
168
|
-
remote_account_id == o.remote_account_id &&
|
169
|
-
amount == o.amount &&
|
170
|
-
date == o.date &&
|
171
|
-
description == o.description &&
|
172
|
-
category == o.category &&
|
173
|
-
merchant == o.merchant &&
|
174
147
|
status == o.status &&
|
175
|
-
|
148
|
+
amount == o.amount
|
176
149
|
end
|
177
150
|
|
178
151
|
# @see the `==` method
|
@@ -184,7 +157,7 @@ module FuseClient
|
|
184
157
|
# Calculates hash code according to all attributes.
|
185
158
|
# @return [Integer] Hash code
|
186
159
|
def hash
|
187
|
-
[id,
|
160
|
+
[id, status, amount].hash
|
188
161
|
end
|
189
162
|
|
190
163
|
# Builds the object from hash
|
data/lib/fuse_client/models/{get_transactions_response.rb → add_spend_power_transaction_response.rb}
RENAMED
@@ -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
|
|
@@ -14,14 +14,9 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module FuseClient
|
17
|
-
class
|
18
|
-
|
19
|
-
|
20
|
-
# The cursor of the last item returned
|
21
|
-
attr_accessor :cursor
|
22
|
-
|
23
|
-
# Indicates if there are more pages to navigate through
|
24
|
-
attr_accessor :has_next
|
17
|
+
class AddSpendPowerTransactionResponse
|
18
|
+
# Response message
|
19
|
+
attr_accessor :message
|
25
20
|
|
26
21
|
# An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
|
27
22
|
attr_accessor :request_id
|
@@ -29,9 +24,7 @@ module FuseClient
|
|
29
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
25
|
def self.attribute_map
|
31
26
|
{
|
32
|
-
:'
|
33
|
-
:'cursor' => :'cursor',
|
34
|
-
:'has_next' => :'has_next',
|
27
|
+
:'message' => :'message',
|
35
28
|
:'request_id' => :'request_id'
|
36
29
|
}
|
37
30
|
end
|
@@ -44,9 +37,7 @@ module FuseClient
|
|
44
37
|
# Attribute type mapping.
|
45
38
|
def self.openapi_types
|
46
39
|
{
|
47
|
-
:'
|
48
|
-
:'cursor' => :'String',
|
49
|
-
:'has_next' => :'Boolean',
|
40
|
+
:'message' => :'String',
|
50
41
|
:'request_id' => :'String'
|
51
42
|
}
|
52
43
|
end
|
@@ -61,29 +52,19 @@ module FuseClient
|
|
61
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
62
53
|
def initialize(attributes = {})
|
63
54
|
if (!attributes.is_a?(Hash))
|
64
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::AddSpendPowerTransactionResponse` initialize method"
|
65
56
|
end
|
66
57
|
|
67
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
68
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
69
60
|
if (!self.class.attribute_map.key?(k.to_sym))
|
70
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::AddSpendPowerTransactionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
71
62
|
end
|
72
63
|
h[k.to_sym] = v
|
73
64
|
}
|
74
65
|
|
75
|
-
if attributes.key?(:'
|
76
|
-
|
77
|
-
self.data = value
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
|
-
if attributes.key?(:'cursor')
|
82
|
-
self.cursor = attributes[:'cursor']
|
83
|
-
end
|
84
|
-
|
85
|
-
if attributes.key?(:'has_next')
|
86
|
-
self.has_next = attributes[:'has_next']
|
66
|
+
if attributes.key?(:'message')
|
67
|
+
self.message = attributes[:'message']
|
87
68
|
end
|
88
69
|
|
89
70
|
if attributes.key?(:'request_id')
|
@@ -95,12 +76,22 @@ module FuseClient
|
|
95
76
|
# @return Array for valid properties with the reasons
|
96
77
|
def list_invalid_properties
|
97
78
|
invalid_properties = Array.new
|
79
|
+
if @message.nil?
|
80
|
+
invalid_properties.push('invalid value for "message", message 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
|
+
|
98
87
|
invalid_properties
|
99
88
|
end
|
100
89
|
|
101
90
|
# Check to see if the all the properties in the model are valid
|
102
91
|
# @return true if the model is valid
|
103
92
|
def valid?
|
93
|
+
return false if @message.nil?
|
94
|
+
return false if @request_id.nil?
|
104
95
|
true
|
105
96
|
end
|
106
97
|
|
@@ -109,9 +100,7 @@ module FuseClient
|
|
109
100
|
def ==(o)
|
110
101
|
return true if self.equal?(o)
|
111
102
|
self.class == o.class &&
|
112
|
-
|
113
|
-
cursor == o.cursor &&
|
114
|
-
has_next == o.has_next &&
|
103
|
+
message == o.message &&
|
115
104
|
request_id == o.request_id
|
116
105
|
end
|
117
106
|
|
@@ -124,7 +113,7 @@ module FuseClient
|
|
124
113
|
# Calculates hash code according to all attributes.
|
125
114
|
# @return [Integer] Hash code
|
126
115
|
def hash
|
127
|
-
[
|
116
|
+
[message, request_id].hash
|
128
117
|
end
|
129
118
|
|
130
119
|
# 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,12 @@ module FuseClient
|
|
18
18
|
PLAID = "plaid".freeze
|
19
19
|
TELLER = "teller".freeze
|
20
20
|
MX = "mx".freeze
|
21
|
+
SNAPTRADE = "snaptrade".freeze
|
22
|
+
FLINKS = "flinks".freeze
|
21
23
|
FINICITY = "finicity".freeze
|
22
24
|
|
23
25
|
def self.all_vars
|
24
|
-
@all_vars ||= [PLAID, TELLER, MX, FINICITY].freeze
|
26
|
+
@all_vars ||= [PLAID, TELLER, MX, SNAPTRADE, FLINKS, FINICITY].freeze
|
25
27
|
end
|
26
28
|
|
27
29
|
# Builds the enum from string
|
@@ -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,12 @@ require 'time'
|
|
15
15
|
|
16
16
|
module FuseClient
|
17
17
|
# The Asset Report in JSON format.
|
18
|
-
class
|
18
|
+
class AssetReport
|
19
19
|
# A unique ID identifying an Asset Report.
|
20
20
|
attr_accessor :asset_report_id
|
21
21
|
|
22
|
-
#
|
23
|
-
attr_accessor :
|
22
|
+
# A token that can be provided to endpoints such as /asset_report/get or /asset_report/pdf/get to fetch or update an Asset Report.
|
23
|
+
attr_accessor :asset_report_token
|
24
24
|
|
25
25
|
# The date and time when the Asset Report was created, in ISO 8601 format
|
26
26
|
attr_accessor :date_generated
|
@@ -31,18 +31,14 @@ module FuseClient
|
|
31
31
|
# An array of Asset Reports, one for each account in the Asset Report.
|
32
32
|
attr_accessor :accounts
|
33
33
|
|
34
|
-
# If the Asset Report generation was successful but identity information cannot be returned, this array will contain information about the errors causing identity information to be missing
|
35
|
-
attr_accessor :warnings
|
36
|
-
|
37
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
35
|
def self.attribute_map
|
39
36
|
{
|
40
37
|
:'asset_report_id' => :'asset_report_id',
|
41
|
-
:'
|
38
|
+
:'asset_report_token' => :'asset_report_token',
|
42
39
|
:'date_generated' => :'date_generated',
|
43
40
|
:'days_requested' => :'days_requested',
|
44
|
-
:'accounts' => :'accounts'
|
45
|
-
:'warnings' => :'warnings'
|
41
|
+
:'accounts' => :'accounts'
|
46
42
|
}
|
47
43
|
end
|
48
44
|
|
@@ -55,11 +51,10 @@ module FuseClient
|
|
55
51
|
def self.openapi_types
|
56
52
|
{
|
57
53
|
:'asset_report_id' => :'String',
|
58
|
-
:'
|
54
|
+
:'asset_report_token' => :'String',
|
59
55
|
:'date_generated' => :'String',
|
60
56
|
:'days_requested' => :'Integer',
|
61
|
-
:'accounts' => :'Array<
|
62
|
-
:'warnings' => :'Array<FuseApiWarning>'
|
57
|
+
:'accounts' => :'Array<AssetReportAccountsInner>'
|
63
58
|
}
|
64
59
|
end
|
65
60
|
|
@@ -73,13 +68,13 @@ module FuseClient
|
|
73
68
|
# @param [Hash] attributes Model attributes in the form of hash
|
74
69
|
def initialize(attributes = {})
|
75
70
|
if (!attributes.is_a?(Hash))
|
76
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::
|
71
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::AssetReport` initialize method"
|
77
72
|
end
|
78
73
|
|
79
74
|
# check to see if the attribute exists and convert string to symbol for hash key
|
80
75
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
81
76
|
if (!self.class.attribute_map.key?(k.to_sym))
|
82
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::AssetReport`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
83
78
|
end
|
84
79
|
h[k.to_sym] = v
|
85
80
|
}
|
@@ -88,8 +83,8 @@ module FuseClient
|
|
88
83
|
self.asset_report_id = attributes[:'asset_report_id']
|
89
84
|
end
|
90
85
|
|
91
|
-
if attributes.key?(:'
|
92
|
-
self.
|
86
|
+
if attributes.key?(:'asset_report_token')
|
87
|
+
self.asset_report_token = attributes[:'asset_report_token']
|
93
88
|
end
|
94
89
|
|
95
90
|
if attributes.key?(:'date_generated')
|
@@ -105,12 +100,6 @@ module FuseClient
|
|
105
100
|
self.accounts = value
|
106
101
|
end
|
107
102
|
end
|
108
|
-
|
109
|
-
if attributes.key?(:'warnings')
|
110
|
-
if (value = attributes[:'warnings']).is_a?(Array)
|
111
|
-
self.warnings = value
|
112
|
-
end
|
113
|
-
end
|
114
103
|
end
|
115
104
|
|
116
105
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -132,11 +121,10 @@ module FuseClient
|
|
132
121
|
return true if self.equal?(o)
|
133
122
|
self.class == o.class &&
|
134
123
|
asset_report_id == o.asset_report_id &&
|
135
|
-
|
124
|
+
asset_report_token == o.asset_report_token &&
|
136
125
|
date_generated == o.date_generated &&
|
137
126
|
days_requested == o.days_requested &&
|
138
|
-
accounts == o.accounts
|
139
|
-
warnings == o.warnings
|
127
|
+
accounts == o.accounts
|
140
128
|
end
|
141
129
|
|
142
130
|
# @see the `==` method
|
@@ -148,7 +136,7 @@ module FuseClient
|
|
148
136
|
# Calculates hash code according to all attributes.
|
149
137
|
# @return [Integer] Hash code
|
150
138
|
def hash
|
151
|
-
[asset_report_id,
|
139
|
+
[asset_report_id, asset_report_token, date_generated, days_requested, accounts].hash
|
152
140
|
end
|
153
141
|
|
154
142
|
# 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
|
|
@@ -14,24 +14,25 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module FuseClient
|
17
|
-
class
|
18
|
-
#
|
19
|
-
attr_accessor :
|
17
|
+
class AssetReportAccountsInner
|
18
|
+
# The remote account ID of the account.
|
19
|
+
attr_accessor :remote_id
|
20
20
|
|
21
|
-
attr_accessor :
|
21
|
+
attr_accessor :balance
|
22
22
|
|
23
23
|
# An array of historical balances for the account.
|
24
24
|
attr_accessor :historical_balances
|
25
25
|
|
26
|
-
|
26
|
+
# An array of historical transactions for the account.
|
27
|
+
attr_accessor :transactions
|
27
28
|
|
28
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
30
|
def self.attribute_map
|
30
31
|
{
|
31
|
-
:'
|
32
|
-
:'
|
32
|
+
:'remote_id' => :'remote_id',
|
33
|
+
:'balance' => :'balance',
|
33
34
|
:'historical_balances' => :'historical_balances',
|
34
|
-
:'
|
35
|
+
:'transactions' => :'transactions'
|
35
36
|
}
|
36
37
|
end
|
37
38
|
|
@@ -43,10 +44,10 @@ module FuseClient
|
|
43
44
|
# Attribute type mapping.
|
44
45
|
def self.openapi_types
|
45
46
|
{
|
46
|
-
:'
|
47
|
-
:'
|
48
|
-
:'historical_balances' => :'Array<
|
49
|
-
:'
|
47
|
+
:'remote_id' => :'String',
|
48
|
+
:'balance' => :'AssetReportAccountsInnerBalance',
|
49
|
+
:'historical_balances' => :'Array<AssetReportAccountsInnerHistoricalBalancesInner>',
|
50
|
+
:'transactions' => :'Array<AssetReportTransaction>'
|
50
51
|
}
|
51
52
|
end
|
52
53
|
|
@@ -60,23 +61,23 @@ module FuseClient
|
|
60
61
|
# @param [Hash] attributes Model attributes in the form of hash
|
61
62
|
def initialize(attributes = {})
|
62
63
|
if (!attributes.is_a?(Hash))
|
63
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::
|
64
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::AssetReportAccountsInner` initialize method"
|
64
65
|
end
|
65
66
|
|
66
67
|
# check to see if the attribute exists and convert string to symbol for hash key
|
67
68
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
68
69
|
if (!self.class.attribute_map.key?(k.to_sym))
|
69
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::AssetReportAccountsInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
70
71
|
end
|
71
72
|
h[k.to_sym] = v
|
72
73
|
}
|
73
74
|
|
74
|
-
if attributes.key?(:'
|
75
|
-
self.
|
75
|
+
if attributes.key?(:'remote_id')
|
76
|
+
self.remote_id = attributes[:'remote_id']
|
76
77
|
end
|
77
78
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
79
|
+
if attributes.key?(:'balance')
|
80
|
+
self.balance = attributes[:'balance']
|
80
81
|
end
|
81
82
|
|
82
83
|
if attributes.key?(:'historical_balances')
|
@@ -85,9 +86,9 @@ module FuseClient
|
|
85
86
|
end
|
86
87
|
end
|
87
88
|
|
88
|
-
if attributes.key?(:'
|
89
|
-
if (value = attributes[:'
|
90
|
-
self.
|
89
|
+
if attributes.key?(:'transactions')
|
90
|
+
if (value = attributes[:'transactions']).is_a?(Array)
|
91
|
+
self.transactions = value
|
91
92
|
end
|
92
93
|
end
|
93
94
|
end
|
@@ -110,10 +111,10 @@ module FuseClient
|
|
110
111
|
def ==(o)
|
111
112
|
return true if self.equal?(o)
|
112
113
|
self.class == o.class &&
|
113
|
-
|
114
|
-
|
114
|
+
remote_id == o.remote_id &&
|
115
|
+
balance == o.balance &&
|
115
116
|
historical_balances == o.historical_balances &&
|
116
|
-
|
117
|
+
transactions == o.transactions
|
117
118
|
end
|
118
119
|
|
119
120
|
# @see the `==` method
|
@@ -125,7 +126,7 @@ module FuseClient
|
|
125
126
|
# Calculates hash code according to all attributes.
|
126
127
|
# @return [Integer] Hash code
|
127
128
|
def hash
|
128
|
-
[
|
129
|
+
[remote_id, balance, historical_balances, transactions].hash
|
129
130
|
end
|
130
131
|
|
131
132
|
# 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
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module FuseClient
|
17
|
-
class
|
17
|
+
class AssetReportAccountsInnerBalance
|
18
18
|
# Amount after factoring in pending balances
|
19
19
|
attr_accessor :available
|
20
20
|
|
@@ -57,13 +57,13 @@ module FuseClient
|
|
57
57
|
# @param [Hash] attributes Model attributes in the form of hash
|
58
58
|
def initialize(attributes = {})
|
59
59
|
if (!attributes.is_a?(Hash))
|
60
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::AssetReportAccountsInnerBalance` initialize method"
|
61
61
|
end
|
62
62
|
|
63
63
|
# check to see if the attribute exists and convert string to symbol for hash key
|
64
64
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
65
65
|
if (!self.class.attribute_map.key?(k.to_sym))
|
66
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::AssetReportAccountsInnerBalance`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
67
67
|
end
|
68
68
|
h[k.to_sym] = v
|
69
69
|
}
|