fuse_client 1.0.33 → 1.0.35
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/README.md +7 -1
- data/docs/AddAccountEventsRequest.md +18 -0
- data/docs/AddAccountEventsRequestEventsInner.md +51 -0
- data/docs/{AddSpendPowerTransactionResponse.md → AddAccountEventsResponse.md} +2 -2
- data/docs/AssetReportTransaction.md +1 -1
- data/docs/CreateLinkTokenRequestTellerConfig.md +3 -1
- data/docs/CreateLinkTokenRequestTellerConfigAccountFilter.md +20 -0
- data/docs/CreateLinkTokenRequestTellerConfigAccountFilterCredit.md +49 -0
- data/docs/CreateLinkTokenRequestTellerConfigAccountFilterCreditOneOf.md +18 -0
- data/docs/CreateLinkTokenRequestTellerConfigAccountFilterDepository.md +49 -0
- data/docs/CreateLinkTokenRequestTellerConfigAccountFilterDepositoryOneOf.md +18 -0
- data/docs/CreateSessionRequest.md +1 -1
- data/docs/CreateSpendPowerCustomizationRequest.md +24 -0
- data/docs/CreateSpendPowerRequest.md +5 -5
- data/docs/CreateSpendPowerResponse.md +1 -1
- data/docs/DeleteSpendPowerResponse.md +2 -2
- data/docs/EnrichTransactionsRequest.md +18 -0
- data/docs/EnrichTransactionsResponse.md +18 -0
- data/docs/EnrichedTransaction.md +48 -0
- data/docs/EvalSpendPowerRequest.md +22 -0
- data/docs/EvalSpendPowerRequestEventsInner.md +20 -0
- data/docs/EvalSpendPowerResponse.md +24 -0
- data/docs/ExternalTransactionEvent.md +34 -0
- data/docs/ExternalTransactionEventStatus.md +15 -0
- data/docs/FinQLComparisonFeature.md +26 -0
- data/docs/FinQLFeature.md +61 -0
- data/docs/FinQLFeatureOneOf.md +18 -0
- data/docs/FinQLFeatureOneOf1.md +18 -0
- data/docs/FinQLFeatureOneOf2.md +18 -0
- data/docs/FinQLFeatureOneOf3.md +18 -0
- data/docs/FinQLFeatureOneOf4.md +18 -0
- data/docs/FinQLFeatureOneOf5.md +18 -0
- data/docs/FinQLFeatureOneOf6.md +18 -0
- data/docs/FinQLFeatureOneOf7.md +18 -0
- data/docs/FinQLFeatureRequest.md +15 -0
- data/docs/FinQLFrequencyFeature.md +20 -0
- data/docs/FinQLIndividualMerchantFeature.md +20 -0
- data/docs/FinQLInterestFeature.md +18 -0
- data/docs/FinQLMerchantCategoriesFeatureInner.md +20 -0
- data/docs/FinQLMerchantCategoriesFeatureInnerResultInner.md +20 -0
- data/docs/FinQLPromptRequest.md +22 -0
- data/docs/FinQLPromptResponse.md +20 -0
- data/docs/FinQLTimeBasedFeatureInner.md +20 -0
- data/docs/FinQLTopMerchantsFeatureInner.md +22 -0
- data/docs/FinanceScore.md +30 -0
- data/docs/FinancialConnectionDetails.md +7 -1
- data/docs/FinancialConnectionDetailsFlinks.md +18 -0
- data/docs/FinancialConnectionDetailsMono.md +18 -0
- data/docs/FinancialConnectionDetailsSnaptrade.md +22 -0
- data/docs/FinancialConnectionsAccount.md +4 -2
- data/docs/FinancialConnectionsAccountBalance.md +2 -2
- data/docs/FinancialConnectionsAccountCachedBalance.md +2 -2
- data/docs/FinancialConnectionsAccountDetails.md +3 -1
- data/docs/FinancialConnectionsAccountLiability.md +3 -1
- data/docs/FinancialConnectionsHolding.md +3 -3
- data/docs/FinancialConnectionsInvestmentSecurity.md +1 -1
- data/docs/FinancialConnectionsInvestmentTransaction.md +5 -3
- data/docs/FinancialConnectionsInvestmentTransactionSubtype.md +15 -0
- data/docs/FuseApi.md +272 -35
- data/docs/GetFinanceScoreResponse.md +20 -0
- data/docs/GetInvestmentTransactionsRequest.md +4 -4
- data/docs/GetSpendPowerCustomizationResponse.md +20 -0
- data/docs/InAppTransactionEvent.md +34 -0
- data/docs/InAppTransactionEventStatus.md +15 -0
- data/docs/Merchant.md +22 -0
- data/docs/MerchantLogo.md +18 -0
- data/docs/SpendPower.md +11 -7
- data/docs/SpendPowerApi.md +87 -44
- data/docs/SpendPowerCustomization.md +8 -4
- data/docs/SpendPowerTimeFrame.md +15 -0
- data/docs/Transaction.md +3 -1
- 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 +24 -0
- data/docs/UpdatedBalanceEvent.md +26 -0
- data/fuse_client.gemspec +1 -1
- data/lib/fuse_client/api/fuse_api.rb +241 -32
- data/lib/fuse_client/api/spend_power_api.rb +79 -53
- data/lib/fuse_client/api_client.rb +1 -1
- data/lib/fuse_client/api_error.rb +1 -1
- data/lib/fuse_client/configuration.rb +11 -11
- data/lib/fuse_client/models/account_subtype.rb +1 -1
- data/lib/fuse_client/models/account_type.rb +1 -1
- 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_spend_power_transaction_response.rb → add_account_events_response.rb} +4 -4
- data/lib/fuse_client/models/aggregator.rb +3 -3
- data/lib/fuse_client/models/asset_report.rb +1 -1
- data/lib/fuse_client/models/asset_report_accounts_inner.rb +1 -1
- data/lib/fuse_client/models/asset_report_accounts_inner_balance.rb +1 -1
- data/lib/fuse_client/models/asset_report_accounts_inner_historical_balances_inner.rb +1 -1
- data/lib/fuse_client/models/asset_report_response.rb +1 -1
- data/lib/fuse_client/models/asset_report_transaction.rb +2 -2
- data/lib/fuse_client/models/country_code.rb +7 -2
- data/lib/fuse_client/models/create_asset_report_request.rb +1 -1
- data/lib/fuse_client/models/create_asset_report_response.rb +1 -1
- 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 +1 -1
- data/lib/fuse_client/models/create_link_token_request_mx.rb +1 -1
- data/lib/fuse_client/models/create_link_token_request_plaid.rb +1 -1
- data/lib/fuse_client/models/create_link_token_request_teller.rb +1 -1
- data/lib/fuse_client/models/create_link_token_request_teller_config.rb +14 -5
- data/lib/fuse_client/models/create_link_token_request_teller_config_account_filter.rb +229 -0
- data/lib/fuse_client/models/create_link_token_request_teller_config_account_filter_credit.rb +105 -0
- data/lib/fuse_client/models/create_link_token_request_teller_config_account_filter_credit_one_of.rb +243 -0
- data/lib/fuse_client/models/create_link_token_request_teller_config_account_filter_depository.rb +105 -0
- data/lib/fuse_client/models/create_link_token_request_teller_config_account_filter_depository_one_of.rb +243 -0
- data/lib/fuse_client/models/create_link_token_response.rb +1 -1
- data/lib/fuse_client/models/create_session_request.rb +2 -2
- data/lib/fuse_client/models/create_session_response.rb +1 -1
- data/lib/fuse_client/models/create_spend_power_customization_request.rb +357 -0
- data/lib/fuse_client/models/create_spend_power_customization_response.rb +1 -1
- data/lib/fuse_client/models/create_spend_power_request.rb +23 -23
- data/lib/fuse_client/models/create_spend_power_response.rb +2 -2
- 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 +12 -11
- 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 +407 -0
- data/lib/fuse_client/models/entity.rb +1 -1
- 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 +250 -0
- data/lib/fuse_client/models/exchange_financial_connections_public_token_request.rb +1 -1
- data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +1 -1
- data/lib/fuse_client/models/external_transaction_event.rb +370 -0
- data/lib/fuse_client/models/external_transaction_event_status.rb +40 -0
- data/lib/fuse_client/models/fin_ql_comparison_feature.rb +255 -0
- data/lib/fuse_client/models/fin_ql_feature.rb +111 -0
- data/lib/fuse_client/models/fin_ql_feature_one_of.rb +219 -0
- data/lib/fuse_client/models/fin_ql_feature_one_of1.rb +219 -0
- data/lib/fuse_client/models/fin_ql_feature_one_of2.rb +221 -0
- data/lib/fuse_client/models/fin_ql_feature_one_of3.rb +219 -0
- data/lib/fuse_client/models/fin_ql_feature_one_of4.rb +219 -0
- data/lib/fuse_client/models/fin_ql_feature_one_of5.rb +221 -0
- data/lib/fuse_client/models/fin_ql_feature_one_of6.rb +219 -0
- data/lib/fuse_client/models/fin_ql_feature_one_of7.rb +221 -0
- data/lib/fuse_client/models/fin_ql_feature_request.rb +46 -0
- data/lib/fuse_client/models/fin_ql_frequency_feature.rb +262 -0
- data/lib/fuse_client/models/fin_ql_individual_merchant_feature.rb +228 -0
- data/lib/fuse_client/models/fin_ql_interest_feature.rb +219 -0
- data/lib/fuse_client/models/fin_ql_merchant_categories_feature_inner.rb +230 -0
- data/lib/fuse_client/models/fin_ql_merchant_categories_feature_inner_result_inner.rb +228 -0
- data/lib/fuse_client/models/fin_ql_prompt_request.rb +276 -0
- data/lib/fuse_client/models/fin_ql_prompt_response.rb +234 -0
- data/lib/fuse_client/models/fin_ql_time_based_feature_inner.rb +228 -0
- data/lib/fuse_client/models/fin_ql_top_merchants_feature_inner.rb +237 -0
- data/lib/fuse_client/models/finance_score.rb +315 -0
- data/lib/fuse_client/models/financial_connection_data.rb +1 -1
- data/lib/fuse_client/models/financial_connection_details.rb +32 -5
- data/lib/fuse_client/models/financial_connection_details_flinks.rb +226 -0
- data/lib/fuse_client/models/financial_connection_details_mono.rb +226 -0
- 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_snaptrade.rb +256 -0
- data/lib/fuse_client/models/financial_connection_details_teller.rb +1 -1
- data/lib/fuse_client/models/financial_connections_account.rb +16 -6
- 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 +15 -5
- 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 +13 -3
- 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 +2 -2
- data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +1 -1
- data/lib/fuse_client/models/financial_connections_investment_security_type.rb +1 -1
- data/lib/fuse_client/models/financial_connections_investment_transaction.rb +14 -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 +1 -1
- data/lib/fuse_client/models/fuse_api_error.rb +1 -1
- data/lib/fuse_client/models/fuse_api_error_code.rb +7 -2
- data/lib/fuse_client/models/fuse_api_error_data.rb +1 -1
- data/lib/fuse_client/models/fuse_api_error_type.rb +1 -1
- 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 +1 -1
- data/lib/fuse_client/models/get_entity_response.rb +1 -1
- data/lib/fuse_client/models/get_finance_score_response.rb +239 -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 +1 -1
- data/lib/fuse_client/models/get_financial_connections_account_statement_response.rb +1 -1
- 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 +1 -1
- 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 +1 -1
- data/lib/fuse_client/models/in_app_transaction_event.rb +369 -0
- data/lib/fuse_client/models/in_app_transaction_event_status.rb +41 -0
- data/lib/fuse_client/models/merchant.rb +249 -0
- data/lib/fuse_client/models/merchant_logo.rb +220 -0
- data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data.rb +1 -1
- 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 +1 -1
- data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_teller.rb +1 -1
- data/lib/fuse_client/models/migrate_financial_connections_token_request.rb +1 -1
- 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 +1 -1
- data/lib/fuse_client/models/refresh_asset_report_request.rb +1 -1
- data/lib/fuse_client/models/refresh_asset_report_response.rb +1 -1
- data/lib/fuse_client/models/spend_power.rb +51 -22
- data/lib/fuse_client/models/spend_power_customization.rb +91 -17
- 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 +13 -3
- data/lib/fuse_client/models/transaction_category.rb +260 -0
- data/lib/fuse_client/models/transaction_category_detailed.rb +156 -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/{add_spend_power_transaction_request.rb → transaction_to_enrich.rb} +48 -28
- 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 +325 -0
- data/lib/fuse_client/models/update_spend_power_customization_response.rb +1 -1
- data/lib/fuse_client/models/updated_balance_event.rb +308 -0
- data/lib/fuse_client/models/webhook_event.rb +1 -1
- data/lib/fuse_client/models/webhook_source.rb +3 -2
- data/lib/fuse_client/models/webhook_type.rb +1 -1
- data/lib/fuse_client/version.rb +2 -2
- data/lib/fuse_client.rb +57 -3
- data/spec/api/fuse_api_spec.rb +72 -34
- data/spec/api/spend_power_api_spec.rb +16 -19
- 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/asset_report_accounts_inner_balance_spec.rb +4 -4
- data/spec/models/asset_report_accounts_inner_historical_balances_inner_spec.rb +4 -4
- data/spec/models/asset_report_accounts_inner_spec.rb +5 -5
- data/spec/models/asset_report_response_spec.rb +3 -3
- data/spec/models/asset_report_spec.rb +6 -6
- data/spec/models/asset_report_transaction_spec.rb +11 -11
- data/spec/models/country_code_spec.rb +1 -1
- data/spec/models/create_asset_report_request_spec.rb +3 -3
- data/spec/models/create_asset_report_response_spec.rb +4 -4
- data/spec/models/create_entity_request_spec.rb +5 -5
- data/spec/models/create_entity_response_spec.rb +6 -6
- data/spec/models/create_link_token_request_mx_spec.rb +2 -2
- data/spec/models/create_link_token_request_plaid_spec.rb +2 -2
- data/spec/models/create_link_token_request_spec.rb +9 -9
- data/spec/models/create_link_token_request_teller_config_account_filter_credit_one_of_spec.rb +38 -0
- data/spec/models/create_link_token_request_teller_config_account_filter_credit_spec.rb +31 -0
- data/spec/models/create_link_token_request_teller_config_account_filter_depository_one_of_spec.rb +38 -0
- data/spec/models/create_link_token_request_teller_config_account_filter_depository_spec.rb +31 -0
- data/spec/models/create_link_token_request_teller_config_account_filter_spec.rb +40 -0
- data/spec/models/create_link_token_request_teller_config_spec.rb +8 -2
- data/spec/models/create_link_token_request_teller_spec.rb +2 -2
- data/spec/models/create_link_token_response_spec.rb +3 -3
- data/spec/models/create_session_request_spec.rb +7 -7
- data/spec/models/create_session_response_spec.rb +4 -4
- data/spec/models/create_spend_power_customization_request_spec.rb +52 -0
- data/spec/models/create_spend_power_customization_response_spec.rb +3 -3
- data/spec/models/create_spend_power_request_spec.rb +6 -6
- data/spec/models/create_spend_power_response_spec.rb +3 -3
- data/spec/models/currency_spec.rb +3 -3
- data/spec/models/delete_financial_connection_response_spec.rb +4 -4
- data/spec/models/delete_spend_power_response_spec.rb +4 -4
- 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_spec.rb +128 -0
- data/spec/models/entity_spec.rb +4 -4
- 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 +52 -0
- data/spec/models/exchange_financial_connections_public_token_request_spec.rb +2 -2
- data/spec/models/exchange_financial_connections_public_token_response_spec.rb +4 -4
- data/spec/models/external_transaction_event_spec.rb +86 -0
- data/spec/models/external_transaction_event_status_spec.rb +28 -0
- data/spec/models/fin_ql_comparison_feature_spec.rb +58 -0
- data/spec/models/fin_ql_feature_one_of1_spec.rb +34 -0
- data/spec/models/fin_ql_feature_one_of2_spec.rb +34 -0
- data/spec/models/fin_ql_feature_one_of3_spec.rb +34 -0
- data/spec/models/fin_ql_feature_one_of4_spec.rb +34 -0
- data/spec/models/fin_ql_feature_one_of5_spec.rb +34 -0
- data/spec/models/fin_ql_feature_one_of6_spec.rb +34 -0
- data/spec/models/fin_ql_feature_one_of7_spec.rb +34 -0
- data/spec/models/fin_ql_feature_one_of_spec.rb +34 -0
- data/spec/models/fin_ql_feature_request_spec.rb +28 -0
- data/spec/models/fin_ql_feature_spec.rb +31 -0
- data/spec/models/fin_ql_frequency_feature_spec.rb +44 -0
- data/spec/models/fin_ql_individual_merchant_feature_spec.rb +40 -0
- data/spec/models/fin_ql_interest_feature_spec.rb +34 -0
- data/spec/models/fin_ql_merchant_categories_feature_inner_result_inner_spec.rb +40 -0
- data/spec/models/fin_ql_merchant_categories_feature_inner_spec.rb +40 -0
- data/spec/models/fin_ql_prompt_request_spec.rb +46 -0
- data/spec/models/fin_ql_prompt_response_spec.rb +40 -0
- data/spec/models/fin_ql_time_based_feature_inner_spec.rb +40 -0
- data/spec/models/fin_ql_top_merchants_feature_inner_spec.rb +46 -0
- data/spec/models/finance_score_spec.rb +70 -0
- data/spec/models/financial_connection_data_spec.rb +3 -3
- data/spec/models/financial_connection_details_flinks_spec.rb +34 -0
- data/spec/models/financial_connection_details_mono_spec.rb +34 -0
- data/spec/models/financial_connection_details_mx_spec.rb +3 -3
- data/spec/models/financial_connection_details_plaid_spec.rb +3 -3
- data/spec/models/financial_connection_details_snaptrade_spec.rb +46 -0
- data/spec/models/financial_connection_details_spec.rb +27 -9
- data/spec/models/financial_connection_details_teller_spec.rb +3 -3
- data/spec/models/financial_connections_account_balance_spec.rb +6 -6
- data/spec/models/financial_connections_account_cached_balance_spec.rb +5 -5
- data/spec/models/financial_connections_account_details_ach_spec.rb +5 -5
- data/spec/models/financial_connections_account_details_spec.rb +9 -3
- data/spec/models/financial_connections_account_institution_spec.rb +2 -2
- data/spec/models/financial_connections_account_liability_all_of_aprs_spec.rb +3 -3
- data/spec/models/financial_connections_account_liability_all_of_spec.rb +8 -8
- data/spec/models/financial_connections_account_liability_spec.rb +22 -16
- data/spec/models/financial_connections_account_spec.rb +15 -9
- data/spec/models/financial_connections_holding_spec.rb +7 -7
- data/spec/models/financial_connections_investment_security_exchange_spec.rb +2 -2
- data/spec/models/financial_connections_investment_security_spec.rb +11 -11
- data/spec/models/financial_connections_investment_security_type_spec.rb +1 -1
- data/spec/models/financial_connections_investment_transaction_spec.rb +19 -13
- data/spec/models/financial_connections_investment_transaction_subtype_spec.rb +28 -0
- data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +6 -6
- data/spec/models/financial_connections_owner_addresses_inner_spec.rb +3 -3
- data/spec/models/financial_connections_owner_emails_inner_spec.rb +4 -4
- data/spec/models/financial_connections_owner_names_inner_spec.rb +3 -3
- data/spec/models/financial_connections_owner_phone_numbers_inner_spec.rb +4 -4
- data/spec/models/financial_connections_owner_spec.rb +5 -5
- data/spec/models/financial_institution_logo_spec.rb +4 -4
- data/spec/models/financial_institution_spec.rb +6 -6
- data/spec/models/fuse_api_aggregator_error_spec.rb +7 -7
- data/spec/models/fuse_api_error_code_spec.rb +1 -1
- data/spec/models/fuse_api_error_data_spec.rb +3 -3
- data/spec/models/fuse_api_error_spec.rb +8 -8
- data/spec/models/fuse_api_error_type_spec.rb +1 -1
- data/spec/models/fuse_api_warning_data_spec.rb +3 -3
- data/spec/models/fuse_api_warning_data_warnings_inner_spec.rb +6 -6
- data/spec/models/fuse_api_warning_spec.rb +7 -7
- data/spec/models/get_asset_report_request_spec.rb +3 -3
- data/spec/models/get_entity_response_spec.rb +7 -7
- data/spec/models/get_finance_score_response_spec.rb +40 -0
- data/spec/models/get_financial_connection_response_spec.rb +3 -3
- data/spec/models/get_financial_connections_account_details_request_spec.rb +2 -2
- data/spec/models/get_financial_connections_account_details_response_spec.rb +4 -4
- data/spec/models/get_financial_connections_account_statement_request_spec.rb +4 -4
- data/spec/models/get_financial_connections_account_statement_response_spec.rb +3 -3
- data/spec/models/get_financial_connections_accounts_request_spec.rb +2 -2
- data/spec/models/get_financial_connections_accounts_response_spec.rb +4 -4
- data/spec/models/get_financial_connections_balance_request_options_spec.rb +2 -2
- data/spec/models/get_financial_connections_balance_request_spec.rb +3 -3
- data/spec/models/get_financial_connections_balance_response_spec.rb +3 -3
- data/spec/models/get_financial_connections_owners_request_spec.rb +2 -2
- data/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +4 -4
- data/spec/models/get_financial_connections_owners_response_spec.rb +2 -2
- data/spec/models/get_financial_connections_transactions_request_spec.rb +6 -6
- data/spec/models/get_financial_connections_transactions_response_spec.rb +4 -4
- data/spec/models/get_financial_institution_response_spec.rb +3 -3
- data/spec/models/get_investment_holdings_request_options_spec.rb +2 -2
- data/spec/models/get_investment_holdings_request_spec.rb +3 -3
- data/spec/models/get_investment_holdings_response_spec.rb +4 -4
- data/spec/models/get_investment_transactions_request_options_spec.rb +2 -2
- data/spec/models/get_investment_transactions_request_spec.rb +7 -7
- data/spec/models/get_investment_transactions_response_spec.rb +5 -5
- data/spec/models/get_liabilities_request_spec.rb +2 -2
- data/spec/models/get_liabilities_response_spec.rb +3 -3
- data/spec/models/get_spend_power_customization_response_spec.rb +40 -0
- data/spec/models/get_spend_power_response_spec.rb +3 -3
- 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/merchant_logo_spec.rb +34 -0
- data/spec/models/merchant_spec.rb +46 -0
- data/spec/models/migrate_financial_connections_aggregator_connection_data_mx_spec.rb +3 -3
- data/spec/models/migrate_financial_connections_aggregator_connection_data_plaid_spec.rb +3 -3
- data/spec/models/migrate_financial_connections_aggregator_connection_data_spec.rb +4 -4
- data/spec/models/migrate_financial_connections_aggregator_connection_data_teller_spec.rb +2 -2
- data/spec/models/migrate_financial_connections_token_request_entity_spec.rb +2 -2
- data/spec/models/migrate_financial_connections_token_request_spec.rb +5 -5
- data/spec/models/migrate_financial_connections_token_response_spec.rb +5 -5
- data/spec/models/product_spec.rb +1 -1
- data/spec/models/refresh_asset_report_request_spec.rb +4 -4
- data/spec/models/refresh_asset_report_response_spec.rb +4 -4
- data/spec/models/spend_power_customization_spec.rb +16 -8
- data/spec/models/spend_power_spec.rb +21 -9
- data/spec/models/spend_power_time_frame_spec.rb +28 -0
- data/spec/models/sync_financial_connections_data_response_spec.rb +3 -3
- data/spec/models/sync_transactions_request_spec.rb +4 -4
- data/spec/models/sync_transactions_response_removed_inner_spec.rb +2 -2
- data/spec/models/sync_transactions_response_spec.rb +7 -7
- 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 +2 -2
- data/spec/models/transaction_spec.rb +18 -12
- data/spec/models/transaction_to_enrich_spec.rb +62 -0
- data/spec/models/update_entity_request_spec.rb +4 -4
- data/spec/models/update_entity_response_spec.rb +6 -6
- data/spec/models/update_spend_power_customization_request_spec.rb +52 -0
- data/spec/models/update_spend_power_customization_response_spec.rb +3 -3
- data/spec/models/updated_balance_event_spec.rb +62 -0
- data/spec/models/webhook_event_spec.rb +10 -10
- 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 +226 -10
- data/docs/AddSpendPowerTransactionRequest.md +0 -22
- data/spec/models/add_spend_power_transaction_request_spec.rb +0 -50
- data/spec/models/add_spend_power_transaction_response_spec.rb +0 -40
@@ -0,0 +1,226 @@
|
|
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.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module FuseClient
|
17
|
+
# Data needed to query data from Mono
|
18
|
+
class FinancialConnectionDetailsMono
|
19
|
+
# Account Id for Mono
|
20
|
+
attr_accessor :account_id
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'account_id' => :'account_id'
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Returns all the JSON keys this model knows about
|
30
|
+
def self.acceptable_attributes
|
31
|
+
attribute_map.values
|
32
|
+
end
|
33
|
+
|
34
|
+
# Attribute type mapping.
|
35
|
+
def self.openapi_types
|
36
|
+
{
|
37
|
+
:'account_id' => :'String'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# List of attributes with nullable: true
|
42
|
+
def self.openapi_nullable
|
43
|
+
Set.new([
|
44
|
+
])
|
45
|
+
end
|
46
|
+
|
47
|
+
# Initializes the object
|
48
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
49
|
+
def initialize(attributes = {})
|
50
|
+
if (!attributes.is_a?(Hash))
|
51
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::FinancialConnectionDetailsMono` initialize method"
|
52
|
+
end
|
53
|
+
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
57
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::FinancialConnectionDetailsMono`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
58
|
+
end
|
59
|
+
h[k.to_sym] = v
|
60
|
+
}
|
61
|
+
|
62
|
+
if attributes.key?(:'account_id')
|
63
|
+
self.account_id = attributes[:'account_id']
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
68
|
+
# @return Array for valid properties with the reasons
|
69
|
+
def list_invalid_properties
|
70
|
+
invalid_properties = Array.new
|
71
|
+
if @account_id.nil?
|
72
|
+
invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
|
73
|
+
end
|
74
|
+
|
75
|
+
invalid_properties
|
76
|
+
end
|
77
|
+
|
78
|
+
# Check to see if the all the properties in the model are valid
|
79
|
+
# @return true if the model is valid
|
80
|
+
def valid?
|
81
|
+
return false if @account_id.nil?
|
82
|
+
true
|
83
|
+
end
|
84
|
+
|
85
|
+
# Checks equality by comparing each attribute.
|
86
|
+
# @param [Object] Object to be compared
|
87
|
+
def ==(o)
|
88
|
+
return true if self.equal?(o)
|
89
|
+
self.class == o.class &&
|
90
|
+
account_id == o.account_id
|
91
|
+
end
|
92
|
+
|
93
|
+
# @see the `==` method
|
94
|
+
# @param [Object] Object to be compared
|
95
|
+
def eql?(o)
|
96
|
+
self == o
|
97
|
+
end
|
98
|
+
|
99
|
+
# Calculates hash code according to all attributes.
|
100
|
+
# @return [Integer] Hash code
|
101
|
+
def hash
|
102
|
+
[account_id].hash
|
103
|
+
end
|
104
|
+
|
105
|
+
# Builds the object from hash
|
106
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
107
|
+
# @return [Object] Returns the model itself
|
108
|
+
def self.build_from_hash(attributes)
|
109
|
+
new.build_from_hash(attributes)
|
110
|
+
end
|
111
|
+
|
112
|
+
# Builds the object from hash
|
113
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
114
|
+
# @return [Object] Returns the model itself
|
115
|
+
def build_from_hash(attributes)
|
116
|
+
return nil unless attributes.is_a?(Hash)
|
117
|
+
attributes = attributes.transform_keys(&:to_sym)
|
118
|
+
self.class.openapi_types.each_pair do |key, type|
|
119
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
120
|
+
self.send("#{key}=", nil)
|
121
|
+
elsif type =~ /\AArray<(.*)>/i
|
122
|
+
# check to ensure the input is an array given that the attribute
|
123
|
+
# is documented as an array but the input is not
|
124
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
125
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
126
|
+
end
|
127
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
128
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
self
|
133
|
+
end
|
134
|
+
|
135
|
+
# Deserializes the data based on type
|
136
|
+
# @param string type Data type
|
137
|
+
# @param string value Value to be deserialized
|
138
|
+
# @return [Object] Deserialized data
|
139
|
+
def _deserialize(type, value)
|
140
|
+
case type.to_sym
|
141
|
+
when :Time
|
142
|
+
Time.parse(value)
|
143
|
+
when :Date
|
144
|
+
Date.parse(value)
|
145
|
+
when :String
|
146
|
+
value.to_s
|
147
|
+
when :Integer
|
148
|
+
value.to_i
|
149
|
+
when :Float
|
150
|
+
value.to_f
|
151
|
+
when :Boolean
|
152
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
153
|
+
true
|
154
|
+
else
|
155
|
+
false
|
156
|
+
end
|
157
|
+
when :Object
|
158
|
+
# generic object (usually a Hash), return directly
|
159
|
+
value
|
160
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
161
|
+
inner_type = Regexp.last_match[:inner_type]
|
162
|
+
value.map { |v| _deserialize(inner_type, v) }
|
163
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
164
|
+
k_type = Regexp.last_match[:k_type]
|
165
|
+
v_type = Regexp.last_match[:v_type]
|
166
|
+
{}.tap do |hash|
|
167
|
+
value.each do |k, v|
|
168
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
169
|
+
end
|
170
|
+
end
|
171
|
+
else # model
|
172
|
+
# models (e.g. Pet) or oneOf
|
173
|
+
klass = FuseClient.const_get(type)
|
174
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
# Returns the string representation of the object
|
179
|
+
# @return [String] String presentation of the object
|
180
|
+
def to_s
|
181
|
+
to_hash.to_s
|
182
|
+
end
|
183
|
+
|
184
|
+
# to_body is an alias to to_hash (backward compatibility)
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
186
|
+
def to_body
|
187
|
+
to_hash
|
188
|
+
end
|
189
|
+
|
190
|
+
# Returns the object in the form of hash
|
191
|
+
# @return [Hash] Returns the object in the form of hash
|
192
|
+
def to_hash
|
193
|
+
hash = {}
|
194
|
+
self.class.attribute_map.each_pair do |attr, param|
|
195
|
+
value = self.send(attr)
|
196
|
+
if value.nil?
|
197
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
198
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
199
|
+
end
|
200
|
+
|
201
|
+
hash[param] = _to_hash(value)
|
202
|
+
end
|
203
|
+
hash
|
204
|
+
end
|
205
|
+
|
206
|
+
# Outputs non-array value in the form of hash
|
207
|
+
# For object, use to_hash. Otherwise, just return the value
|
208
|
+
# @param [Object] value Any valid value
|
209
|
+
# @return [Hash] Returns the value in the form of hash
|
210
|
+
def _to_hash(value)
|
211
|
+
if value.is_a?(Array)
|
212
|
+
value.compact.map { |v| _to_hash(v) }
|
213
|
+
elsif value.is_a?(Hash)
|
214
|
+
{}.tap do |hash|
|
215
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
216
|
+
end
|
217
|
+
elsif value.respond_to? :to_hash
|
218
|
+
value.to_hash
|
219
|
+
else
|
220
|
+
value
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
end
|
225
|
+
|
226
|
+
end
|
@@ -0,0 +1,256 @@
|
|
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.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module FuseClient
|
17
|
+
# Data needed to query data from SnapTrade
|
18
|
+
class FinancialConnectionDetailsSnaptrade
|
19
|
+
# Brokerage Authorization Id for SnapTrade
|
20
|
+
attr_accessor :brokerage_authorization_id
|
21
|
+
|
22
|
+
# User id for SnapTrade
|
23
|
+
attr_accessor :user_id
|
24
|
+
|
25
|
+
# User secret for SnapTrade
|
26
|
+
attr_accessor :user_secret
|
27
|
+
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'brokerage_authorization_id' => :'brokerage_authorization_id',
|
32
|
+
:'user_id' => :'user_id',
|
33
|
+
:'user_secret' => :'user_secret'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Returns all the JSON keys this model knows about
|
38
|
+
def self.acceptable_attributes
|
39
|
+
attribute_map.values
|
40
|
+
end
|
41
|
+
|
42
|
+
# Attribute type mapping.
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'brokerage_authorization_id' => :'String',
|
46
|
+
:'user_id' => :'String',
|
47
|
+
:'user_secret' => :'String'
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
# List of attributes with nullable: true
|
52
|
+
def self.openapi_nullable
|
53
|
+
Set.new([
|
54
|
+
])
|
55
|
+
end
|
56
|
+
|
57
|
+
# Initializes the object
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
59
|
+
def initialize(attributes = {})
|
60
|
+
if (!attributes.is_a?(Hash))
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::FinancialConnectionDetailsSnaptrade` initialize method"
|
62
|
+
end
|
63
|
+
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::FinancialConnectionDetailsSnaptrade`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
68
|
+
end
|
69
|
+
h[k.to_sym] = v
|
70
|
+
}
|
71
|
+
|
72
|
+
if attributes.key?(:'brokerage_authorization_id')
|
73
|
+
self.brokerage_authorization_id = attributes[:'brokerage_authorization_id']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'user_id')
|
77
|
+
self.user_id = attributes[:'user_id']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.key?(:'user_secret')
|
81
|
+
self.user_secret = attributes[:'user_secret']
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
86
|
+
# @return Array for valid properties with the reasons
|
87
|
+
def list_invalid_properties
|
88
|
+
invalid_properties = Array.new
|
89
|
+
if @brokerage_authorization_id.nil?
|
90
|
+
invalid_properties.push('invalid value for "brokerage_authorization_id", brokerage_authorization_id cannot be nil.')
|
91
|
+
end
|
92
|
+
|
93
|
+
if @user_id.nil?
|
94
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
95
|
+
end
|
96
|
+
|
97
|
+
if @user_secret.nil?
|
98
|
+
invalid_properties.push('invalid value for "user_secret", user_secret cannot be nil.')
|
99
|
+
end
|
100
|
+
|
101
|
+
invalid_properties
|
102
|
+
end
|
103
|
+
|
104
|
+
# Check to see if the all the properties in the model are valid
|
105
|
+
# @return true if the model is valid
|
106
|
+
def valid?
|
107
|
+
return false if @brokerage_authorization_id.nil?
|
108
|
+
return false if @user_id.nil?
|
109
|
+
return false if @user_secret.nil?
|
110
|
+
true
|
111
|
+
end
|
112
|
+
|
113
|
+
# Checks equality by comparing each attribute.
|
114
|
+
# @param [Object] Object to be compared
|
115
|
+
def ==(o)
|
116
|
+
return true if self.equal?(o)
|
117
|
+
self.class == o.class &&
|
118
|
+
brokerage_authorization_id == o.brokerage_authorization_id &&
|
119
|
+
user_id == o.user_id &&
|
120
|
+
user_secret == o.user_secret
|
121
|
+
end
|
122
|
+
|
123
|
+
# @see the `==` method
|
124
|
+
# @param [Object] Object to be compared
|
125
|
+
def eql?(o)
|
126
|
+
self == o
|
127
|
+
end
|
128
|
+
|
129
|
+
# Calculates hash code according to all attributes.
|
130
|
+
# @return [Integer] Hash code
|
131
|
+
def hash
|
132
|
+
[brokerage_authorization_id, user_id, user_secret].hash
|
133
|
+
end
|
134
|
+
|
135
|
+
# Builds the object from hash
|
136
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
137
|
+
# @return [Object] Returns the model itself
|
138
|
+
def self.build_from_hash(attributes)
|
139
|
+
new.build_from_hash(attributes)
|
140
|
+
end
|
141
|
+
|
142
|
+
# Builds the object from hash
|
143
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
144
|
+
# @return [Object] Returns the model itself
|
145
|
+
def build_from_hash(attributes)
|
146
|
+
return nil unless attributes.is_a?(Hash)
|
147
|
+
attributes = attributes.transform_keys(&:to_sym)
|
148
|
+
self.class.openapi_types.each_pair do |key, type|
|
149
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
150
|
+
self.send("#{key}=", nil)
|
151
|
+
elsif type =~ /\AArray<(.*)>/i
|
152
|
+
# check to ensure the input is an array given that the attribute
|
153
|
+
# is documented as an array but the input is not
|
154
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
155
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
156
|
+
end
|
157
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
158
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
self
|
163
|
+
end
|
164
|
+
|
165
|
+
# Deserializes the data based on type
|
166
|
+
# @param string type Data type
|
167
|
+
# @param string value Value to be deserialized
|
168
|
+
# @return [Object] Deserialized data
|
169
|
+
def _deserialize(type, value)
|
170
|
+
case type.to_sym
|
171
|
+
when :Time
|
172
|
+
Time.parse(value)
|
173
|
+
when :Date
|
174
|
+
Date.parse(value)
|
175
|
+
when :String
|
176
|
+
value.to_s
|
177
|
+
when :Integer
|
178
|
+
value.to_i
|
179
|
+
when :Float
|
180
|
+
value.to_f
|
181
|
+
when :Boolean
|
182
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
183
|
+
true
|
184
|
+
else
|
185
|
+
false
|
186
|
+
end
|
187
|
+
when :Object
|
188
|
+
# generic object (usually a Hash), return directly
|
189
|
+
value
|
190
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
191
|
+
inner_type = Regexp.last_match[:inner_type]
|
192
|
+
value.map { |v| _deserialize(inner_type, v) }
|
193
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
194
|
+
k_type = Regexp.last_match[:k_type]
|
195
|
+
v_type = Regexp.last_match[:v_type]
|
196
|
+
{}.tap do |hash|
|
197
|
+
value.each do |k, v|
|
198
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
199
|
+
end
|
200
|
+
end
|
201
|
+
else # model
|
202
|
+
# models (e.g. Pet) or oneOf
|
203
|
+
klass = FuseClient.const_get(type)
|
204
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
# Returns the string representation of the object
|
209
|
+
# @return [String] String presentation of the object
|
210
|
+
def to_s
|
211
|
+
to_hash.to_s
|
212
|
+
end
|
213
|
+
|
214
|
+
# to_body is an alias to to_hash (backward compatibility)
|
215
|
+
# @return [Hash] Returns the object in the form of hash
|
216
|
+
def to_body
|
217
|
+
to_hash
|
218
|
+
end
|
219
|
+
|
220
|
+
# Returns the object in the form of hash
|
221
|
+
# @return [Hash] Returns the object in the form of hash
|
222
|
+
def to_hash
|
223
|
+
hash = {}
|
224
|
+
self.class.attribute_map.each_pair do |attr, param|
|
225
|
+
value = self.send(attr)
|
226
|
+
if value.nil?
|
227
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
228
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
229
|
+
end
|
230
|
+
|
231
|
+
hash[param] = _to_hash(value)
|
232
|
+
end
|
233
|
+
hash
|
234
|
+
end
|
235
|
+
|
236
|
+
# Outputs non-array value in the form of hash
|
237
|
+
# For object, use to_hash. Otherwise, just return the value
|
238
|
+
# @param [Object] value Any valid value
|
239
|
+
# @return [Hash] Returns the value in the form of hash
|
240
|
+
def _to_hash(value)
|
241
|
+
if value.is_a?(Array)
|
242
|
+
value.compact.map { |v| _to_hash(v) }
|
243
|
+
elsif value.is_a?(Hash)
|
244
|
+
{}.tap do |hash|
|
245
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
246
|
+
end
|
247
|
+
elsif value.respond_to? :to_hash
|
248
|
+
value.to_hash
|
249
|
+
else
|
250
|
+
value
|
251
|
+
end
|
252
|
+
end
|
253
|
+
|
254
|
+
end
|
255
|
+
|
256
|
+
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.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,7 +18,7 @@ module FuseClient
|
|
18
18
|
# Remote Id of the account, ie Plaid or Teller account id
|
19
19
|
attr_accessor :remote_id
|
20
20
|
|
21
|
-
# Uniquely identifies this account across all accounts
|
21
|
+
# Uniquely identifies this account across all accounts for a single financial connection. Used for reconnection deduplication. See more information here: https://letsfuse.readme.io/docs/duplicate-accounts
|
22
22
|
attr_accessor :fingerprint
|
23
23
|
|
24
24
|
attr_accessor :institution
|
@@ -35,6 +35,8 @@ module FuseClient
|
|
35
35
|
|
36
36
|
attr_accessor :balance
|
37
37
|
|
38
|
+
attr_accessor :remote_data
|
39
|
+
|
38
40
|
class EnumAttributeValidator
|
39
41
|
attr_reader :datatype
|
40
42
|
attr_reader :allowable_values
|
@@ -67,7 +69,8 @@ module FuseClient
|
|
67
69
|
:'name' => :'name',
|
68
70
|
:'type' => :'type',
|
69
71
|
:'subtype' => :'subtype',
|
70
|
-
:'balance' => :'balance'
|
72
|
+
:'balance' => :'balance',
|
73
|
+
:'remote_data' => :'remote_data'
|
71
74
|
}
|
72
75
|
end
|
73
76
|
|
@@ -86,13 +89,15 @@ module FuseClient
|
|
86
89
|
:'name' => :'String',
|
87
90
|
:'type' => :'AccountType',
|
88
91
|
:'subtype' => :'AccountSubtype',
|
89
|
-
:'balance' => :'FinancialConnectionsAccountCachedBalance'
|
92
|
+
:'balance' => :'FinancialConnectionsAccountCachedBalance',
|
93
|
+
:'remote_data' => :'Object'
|
90
94
|
}
|
91
95
|
end
|
92
96
|
|
93
97
|
# List of attributes with nullable: true
|
94
98
|
def self.openapi_nullable
|
95
99
|
Set.new([
|
100
|
+
:'remote_data'
|
96
101
|
])
|
97
102
|
end
|
98
103
|
|
@@ -142,6 +147,10 @@ module FuseClient
|
|
142
147
|
if attributes.key?(:'balance')
|
143
148
|
self.balance = attributes[:'balance']
|
144
149
|
end
|
150
|
+
|
151
|
+
if attributes.key?(:'remote_data')
|
152
|
+
self.remote_data = attributes[:'remote_data']
|
153
|
+
end
|
145
154
|
end
|
146
155
|
|
147
156
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -194,7 +203,8 @@ module FuseClient
|
|
194
203
|
name == o.name &&
|
195
204
|
type == o.type &&
|
196
205
|
subtype == o.subtype &&
|
197
|
-
balance == o.balance
|
206
|
+
balance == o.balance &&
|
207
|
+
remote_data == o.remote_data
|
198
208
|
end
|
199
209
|
|
200
210
|
# @see the `==` method
|
@@ -206,7 +216,7 @@ module FuseClient
|
|
206
216
|
# Calculates hash code according to all attributes.
|
207
217
|
# @return [Integer] Hash code
|
208
218
|
def hash
|
209
|
-
[remote_id, fingerprint, institution, mask, name, type, subtype, balance].hash
|
219
|
+
[remote_id, fingerprint, institution, mask, name, type, subtype, balance, remote_data].hash
|
210
220
|
end
|
211
221
|
|
212
222
|
# 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.6.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. 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'.
|
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.6.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. 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'.
|
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.
|