fuse_client 1.0.31 → 1.0.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +8 -9
- data/README.md +10 -2
- data/docs/AddAccountEventsRequest.md +18 -0
- data/docs/AddAccountEventsRequestEventsInner.md +51 -0
- data/docs/AddAccountEventsResponse.md +20 -0
- data/docs/AssetReport.md +26 -0
- data/docs/AssetReportAccountsInner.md +24 -0
- data/docs/{GetAssetReportResponseReportAccountsInnerBalances.md → AssetReportAccountsInnerBalance.md} +2 -2
- data/docs/{GetAssetReportResponseReportAccountsInnerHistoricalBalancesInner.md → AssetReportAccountsInnerHistoricalBalancesInner.md} +2 -2
- data/docs/{GetAssetReportResponse.md → AssetReportResponse.md} +3 -3
- data/docs/AssetReportTransaction.md +36 -0
- data/docs/CreateAssetReportRequest.md +2 -4
- data/docs/CreateAssetReportResponse.md +2 -2
- data/docs/CreateLinkTokenRequest.md +6 -2
- data/docs/CreateLinkTokenRequestPlaid.md +1 -1
- data/docs/CreateLinkTokenRequestTeller.md +18 -0
- data/docs/CreateLinkTokenRequestTellerConfig.md +18 -0
- data/docs/CreateSessionRequest.md +5 -5
- data/docs/CreateSpendPowerCustomizationRequest.md +22 -0
- data/docs/CreateSpendPowerCustomizationResponse.md +20 -0
- data/docs/CreateSpendPowerRequest.md +22 -0
- data/docs/CreateSpendPowerResponse.md +20 -0
- data/docs/DeleteSpendPowerResponse.md +20 -0
- data/docs/EnrichTransactionsRequest.md +18 -0
- data/docs/EnrichTransactionsResponse.md +18 -0
- data/docs/EnrichedTransaction.md +46 -0
- data/docs/EnrichedTransactionLogo.md +18 -0
- data/docs/Entity.md +1 -1
- data/docs/EvalSpendPowerRequest.md +22 -0
- data/docs/EvalSpendPowerRequestEventsInner.md +20 -0
- data/docs/EvalSpendPowerResponse.md +20 -0
- data/docs/ExchangeFinancialConnectionsPublicTokenRequest.md +1 -1
- data/docs/ExchangeFinancialConnectionsPublicTokenResponse.md +2 -2
- data/docs/ExternalTransactionEvent.md +36 -0
- data/docs/ExternalTransactionEventStatus.md +15 -0
- data/docs/FinancialConnectionsAccountBalance.md +2 -2
- data/docs/FinancialConnectionsAccountCachedBalance.md +2 -2
- data/docs/FinancialConnectionsHolding.md +3 -3
- data/docs/FinancialConnectionsInvestmentSecurity.md +2 -2
- data/docs/FinancialConnectionsInvestmentSecurityType.md +15 -0
- data/docs/FinancialConnectionsInvestmentTransaction.md +7 -3
- data/docs/FinancialConnectionsInvestmentTransactionSubtype.md +15 -0
- data/docs/FuseApi.md +643 -19
- data/docs/FuseApiAggregatorError.md +28 -0
- data/docs/FuseApiError.md +7 -5
- data/docs/FuseApiErrorCode.md +15 -0
- data/docs/FuseApiErrorData.md +1 -1
- data/docs/FuseApiErrorType.md +15 -0
- data/docs/GetAssetReportRequest.md +2 -0
- data/docs/GetFinanceScoreResponse.md +20 -0
- data/docs/GetFinancialConnectionsAccountStatementRequest.md +22 -0
- data/docs/GetFinancialConnectionsAccountStatementResponse.md +20 -0
- data/docs/GetInvestmentTransactionsRequest.md +4 -4
- data/docs/GetInvestmentTransactionsResponse.md +2 -0
- data/docs/GetSpendPowerCustomizationResponse.md +20 -0
- data/docs/GetSpendPowerResponse.md +20 -0
- data/docs/InAppTransactionEvent.md +34 -0
- data/docs/InAppTransactionEventStatus.md +15 -0
- data/docs/MigrateFinancialConnectionsAggregatorConnectionData.md +3 -1
- data/docs/MigrateFinancialConnectionsAggregatorConnectionDataPlaid.md +3 -1
- data/docs/MigrateFinancialConnectionsAggregatorConnectionDataTeller.md +18 -0
- data/docs/MigrateFinancialConnectionsTokenRequest.md +1 -1
- data/docs/RefreshAssetReportRequest.md +5 -5
- data/docs/RefreshAssetReportResponse.md +22 -0
- data/docs/SpendPower.md +30 -0
- data/docs/SpendPowerApi.md +165 -0
- data/docs/SpendPowerCustomization.md +24 -0
- data/docs/SpendPowerTimeFrame.md +15 -0
- data/docs/Transaction.md +2 -2
- data/docs/TransactionCategory.md +20 -0
- data/docs/TransactionCategoryDetailed.md +15 -0
- data/docs/TransactionCategoryPrimary.md +15 -0
- data/docs/TransactionEventType.md +15 -0
- data/docs/TransactionToEnrich.md +26 -0
- data/docs/UpdateSpendPowerCustomizationRequest.md +22 -0
- data/docs/UpdateSpendPowerCustomizationResponse.md +20 -0
- data/docs/UpdatedBalanceEvent.md +26 -0
- data/docs/WebhookEvent.md +6 -0
- data/fuse_client.gemspec +1 -1
- data/lib/fuse_client/api/fuse_api.rb +530 -16
- data/lib/fuse_client/api/spend_power_api.rb +172 -0
- data/lib/fuse_client/api_client.rb +1 -1
- data/lib/fuse_client/api_error.rb +1 -1
- data/lib/fuse_client/configuration.rb +51 -4
- data/lib/fuse_client/models/account_subtype.rb +1 -1
- data/lib/fuse_client/models/account_type.rb +3 -2
- data/lib/fuse_client/models/add_account_events_request.rb +254 -0
- data/lib/fuse_client/models/add_account_events_request_events_inner.rb +106 -0
- data/lib/fuse_client/models/add_account_events_response.rb +240 -0
- data/lib/fuse_client/models/aggregator.rb +4 -2
- data/lib/fuse_client/models/{get_asset_report_response_report.rb → asset_report.rb} +15 -27
- data/lib/fuse_client/models/{get_asset_report_response_report_accounts_inner.rb → asset_report_accounts_inner.rb} +27 -26
- data/lib/fuse_client/models/{get_asset_report_response_report_accounts_inner_balances.rb → asset_report_accounts_inner_balance.rb} +4 -4
- data/lib/fuse_client/models/{get_asset_report_response_report_accounts_inner_historical_balances_inner.rb → asset_report_accounts_inner_historical_balances_inner.rb} +4 -4
- data/lib/fuse_client/models/{get_asset_report_response.rb → asset_report_response.rb} +5 -5
- data/lib/fuse_client/models/asset_report_transaction.rb +385 -0
- data/lib/fuse_client/models/country_code.rb +3 -2
- data/lib/fuse_client/models/create_asset_report_request.rb +11 -23
- data/lib/fuse_client/models/create_asset_report_response.rb +3 -3
- data/lib/fuse_client/models/create_entity_request.rb +1 -1
- data/lib/fuse_client/models/create_entity_response.rb +1 -1
- data/lib/fuse_client/models/create_link_token_request.rb +25 -6
- data/lib/fuse_client/models/create_link_token_request_mx.rb +1 -1
- data/lib/fuse_client/models/create_link_token_request_plaid.rb +2 -2
- data/lib/fuse_client/models/create_link_token_request_teller.rb +220 -0
- data/lib/fuse_client/models/create_link_token_request_teller_config.rb +254 -0
- data/lib/fuse_client/models/create_link_token_response.rb +1 -1
- data/lib/fuse_client/models/create_session_request.rb +32 -9
- data/lib/fuse_client/models/create_session_response.rb +1 -1
- data/lib/fuse_client/models/create_spend_power_customization_request.rb +314 -0
- data/lib/fuse_client/models/create_spend_power_customization_response.rb +240 -0
- data/lib/fuse_client/models/create_spend_power_request.rb +255 -0
- data/lib/fuse_client/models/create_spend_power_response.rb +240 -0
- data/lib/fuse_client/models/currency.rb +1 -1
- data/lib/fuse_client/models/delete_financial_connection_response.rb +1 -1
- data/lib/fuse_client/models/delete_spend_power_response.rb +240 -0
- data/lib/fuse_client/models/enrich_transactions_request.rb +226 -0
- data/lib/fuse_client/models/enrich_transactions_response.rb +222 -0
- data/lib/fuse_client/models/enriched_transaction.rb +397 -0
- data/lib/fuse_client/models/enriched_transaction_logo.rb +220 -0
- data/lib/fuse_client/models/entity.rb +2 -2
- data/lib/fuse_client/models/eval_spend_power_request.rb +296 -0
- data/lib/fuse_client/models/eval_spend_power_request_events_inner.rb +239 -0
- data/lib/fuse_client/models/eval_spend_power_response.rb +230 -0
- data/lib/fuse_client/models/exchange_financial_connections_public_token_request.rb +6 -1
- data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +3 -3
- data/lib/fuse_client/models/external_transaction_event.rb +384 -0
- data/lib/fuse_client/models/external_transaction_event_status.rb +40 -0
- data/lib/fuse_client/models/financial_connection_data.rb +1 -1
- data/lib/fuse_client/models/financial_connection_details.rb +1 -1
- data/lib/fuse_client/models/financial_connection_details_mx.rb +1 -1
- data/lib/fuse_client/models/financial_connection_details_plaid.rb +1 -1
- data/lib/fuse_client/models/financial_connection_details_teller.rb +1 -1
- data/lib/fuse_client/models/financial_connections_account.rb +1 -1
- data/lib/fuse_client/models/financial_connections_account_balance.rb +3 -3
- data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +3 -3
- data/lib/fuse_client/models/financial_connections_account_details.rb +1 -1
- data/lib/fuse_client/models/financial_connections_account_details_ach.rb +1 -1
- data/lib/fuse_client/models/financial_connections_account_institution.rb +1 -1
- data/lib/fuse_client/models/financial_connections_account_liability.rb +1 -1
- data/lib/fuse_client/models/financial_connections_account_liability_all_of.rb +1 -1
- data/lib/fuse_client/models/financial_connections_account_liability_all_of_aprs.rb +1 -1
- data/lib/fuse_client/models/financial_connections_holding.rb +4 -4
- data/lib/fuse_client/models/financial_connections_investment_security.rb +25 -9
- data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +1 -1
- data/lib/fuse_client/models/financial_connections_investment_security_type.rb +64 -0
- data/lib/fuse_client/models/financial_connections_investment_transaction.rb +62 -5
- data/lib/fuse_client/models/financial_connections_investment_transaction_subtype.rb +87 -0
- data/lib/fuse_client/models/financial_connections_owner.rb +1 -1
- data/lib/fuse_client/models/financial_connections_owner_addresses_inner.rb +1 -1
- data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +1 -1
- data/lib/fuse_client/models/financial_connections_owner_emails_inner.rb +1 -1
- data/lib/fuse_client/models/financial_connections_owner_names_inner.rb +1 -1
- data/lib/fuse_client/models/financial_connections_owner_phone_numbers_inner.rb +1 -1
- data/lib/fuse_client/models/financial_institution.rb +1 -1
- data/lib/fuse_client/models/financial_institution_logo.rb +1 -1
- data/lib/fuse_client/models/fuse_api_aggregator_error.rb +264 -0
- data/lib/fuse_client/models/fuse_api_error.rb +43 -28
- data/lib/fuse_client/models/fuse_api_error_code.rb +78 -0
- data/lib/fuse_client/models/fuse_api_error_data.rb +2 -2
- data/lib/fuse_client/models/fuse_api_error_type.rb +42 -0
- data/lib/fuse_client/models/fuse_api_warning.rb +1 -1
- data/lib/fuse_client/models/fuse_api_warning_data.rb +1 -1
- data/lib/fuse_client/models/fuse_api_warning_data_warnings_inner.rb +1 -1
- data/lib/fuse_client/models/get_asset_report_request.rb +17 -2
- data/lib/fuse_client/models/get_entity_response.rb +1 -1
- data/lib/fuse_client/models/get_finance_score_response.rb +240 -0
- data/lib/fuse_client/models/get_financial_connection_response.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_account_details_request.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_account_details_response.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_account_statement_request.rb +250 -0
- data/lib/fuse_client/models/get_financial_connections_account_statement_response.rb +240 -0
- data/lib/fuse_client/models/get_financial_connections_accounts_request.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_accounts_response.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_balance_request.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_balance_request_options.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_balance_response.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_owners_request.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_owners_response.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_transactions_request.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_transactions_response.rb +1 -1
- data/lib/fuse_client/models/get_financial_institution_response.rb +1 -1
- data/lib/fuse_client/models/get_investment_holdings_request.rb +1 -1
- data/lib/fuse_client/models/get_investment_holdings_request_options.rb +1 -1
- data/lib/fuse_client/models/get_investment_holdings_response.rb +1 -1
- data/lib/fuse_client/models/get_investment_transactions_request.rb +38 -10
- data/lib/fuse_client/models/get_investment_transactions_request_options.rb +1 -1
- data/lib/fuse_client/models/get_investment_transactions_response.rb +12 -2
- data/lib/fuse_client/models/get_liabilities_request.rb +1 -1
- data/lib/fuse_client/models/get_liabilities_response.rb +1 -1
- data/lib/fuse_client/models/get_spend_power_customization_response.rb +239 -0
- data/lib/fuse_client/models/get_spend_power_response.rb +239 -0
- data/lib/fuse_client/models/in_app_transaction_event.rb +364 -0
- data/lib/fuse_client/models/in_app_transaction_event_status.rb +41 -0
- data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data.rb +14 -5
- data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_mx.rb +1 -1
- data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_plaid.rb +15 -5
- data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_teller.rb +226 -0
- data/lib/fuse_client/models/migrate_financial_connections_token_request.rb +23 -4
- data/lib/fuse_client/models/migrate_financial_connections_token_request_entity.rb +1 -1
- data/lib/fuse_client/models/migrate_financial_connections_token_response.rb +1 -1
- data/lib/fuse_client/models/product.rb +3 -3
- data/lib/fuse_client/models/refresh_asset_report_request.rb +32 -33
- data/lib/fuse_client/models/refresh_asset_report_response.rb +240 -0
- data/lib/fuse_client/models/spend_power.rb +315 -0
- data/lib/fuse_client/models/spend_power_customization.rb +329 -0
- data/lib/fuse_client/models/spend_power_time_frame.rb +41 -0
- data/lib/fuse_client/models/sync_financial_connections_data_response.rb +1 -1
- data/lib/fuse_client/models/sync_transactions_request.rb +1 -1
- data/lib/fuse_client/models/sync_transactions_response.rb +1 -1
- data/lib/fuse_client/models/sync_transactions_response_removed_inner.rb +1 -1
- data/lib/fuse_client/models/transaction.rb +15 -3
- data/lib/fuse_client/models/transaction_category.rb +260 -0
- data/lib/fuse_client/models/transaction_category_detailed.rb +135 -0
- data/lib/fuse_client/models/transaction_category_primary.rb +59 -0
- data/lib/fuse_client/models/transaction_event_type.rb +65 -0
- data/lib/fuse_client/models/transaction_merchant.rb +1 -1
- data/lib/fuse_client/models/transaction_to_enrich.rb +304 -0
- data/lib/fuse_client/models/update_entity_request.rb +1 -1
- data/lib/fuse_client/models/update_entity_response.rb +1 -1
- data/lib/fuse_client/models/update_spend_power_customization_request.rb +291 -0
- data/lib/fuse_client/models/update_spend_power_customization_response.rb +240 -0
- data/lib/fuse_client/models/updated_balance_event.rb +308 -0
- data/lib/fuse_client/models/webhook_event.rb +34 -2
- data/lib/fuse_client/models/webhook_source.rb +1 -1
- data/lib/fuse_client/models/webhook_type.rb +4 -3
- data/lib/fuse_client/version.rb +2 -2
- data/lib/fuse_client.rb +52 -6
- data/spec/api/fuse_api_spec.rb +95 -6
- data/spec/api/spend_power_api_spec.rb +61 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_subtype_spec.rb +1 -1
- data/spec/models/account_type_spec.rb +1 -1
- data/spec/models/add_account_events_request_events_inner_spec.rb +31 -0
- data/spec/models/add_account_events_request_spec.rb +34 -0
- data/spec/models/add_account_events_response_spec.rb +40 -0
- data/spec/models/aggregator_spec.rb +1 -1
- data/spec/models/{get_asset_report_response_report_accounts_inner_balances_spec.rb → asset_report_accounts_inner_balance_spec.rb} +7 -7
- data/spec/models/{get_asset_report_response_report_accounts_inner_historical_balances_inner_spec.rb → asset_report_accounts_inner_historical_balances_inner_spec.rb} +7 -7
- data/spec/models/{get_asset_report_response_report_accounts_inner_spec.rb → asset_report_accounts_inner_spec.rb} +10 -10
- data/spec/models/{get_asset_report_response_spec.rb → asset_report_response_spec.rb} +7 -7
- data/spec/models/{get_asset_report_response_report_spec.rb → asset_report_spec.rb} +8 -14
- data/spec/models/asset_report_transaction_spec.rb +96 -0
- data/spec/models/country_code_spec.rb +1 -1
- data/spec/models/create_asset_report_request_spec.rb +1 -7
- data/spec/models/create_asset_report_response_spec.rb +1 -1
- data/spec/models/create_entity_request_spec.rb +1 -1
- data/spec/models/create_entity_response_spec.rb +1 -1
- data/spec/models/create_link_token_request_mx_spec.rb +1 -1
- data/spec/models/create_link_token_request_plaid_spec.rb +1 -1
- data/spec/models/create_link_token_request_spec.rb +13 -1
- data/spec/models/create_link_token_request_teller_config_spec.rb +38 -0
- data/spec/models/create_link_token_request_teller_spec.rb +34 -0
- data/spec/models/create_link_token_response_spec.rb +1 -1
- data/spec/models/create_session_request_spec.rb +1 -1
- data/spec/models/create_session_response_spec.rb +1 -1
- data/spec/models/create_spend_power_customization_request_spec.rb +46 -0
- data/spec/models/create_spend_power_customization_response_spec.rb +40 -0
- data/spec/models/create_spend_power_request_spec.rb +46 -0
- data/spec/models/create_spend_power_response_spec.rb +40 -0
- data/spec/models/currency_spec.rb +1 -1
- data/spec/models/delete_financial_connection_response_spec.rb +1 -1
- data/spec/models/delete_spend_power_response_spec.rb +40 -0
- data/spec/models/enrich_transactions_request_spec.rb +34 -0
- data/spec/models/enrich_transactions_response_spec.rb +34 -0
- data/spec/models/enriched_transaction_logo_spec.rb +34 -0
- data/spec/models/enriched_transaction_spec.rb +122 -0
- data/spec/models/entity_spec.rb +1 -1
- data/spec/models/eval_spend_power_request_events_inner_spec.rb +40 -0
- data/spec/models/eval_spend_power_request_spec.rb +46 -0
- data/spec/models/eval_spend_power_response_spec.rb +40 -0
- data/spec/models/exchange_financial_connections_public_token_request_spec.rb +1 -1
- data/spec/models/exchange_financial_connections_public_token_response_spec.rb +1 -1
- data/spec/models/external_transaction_event_spec.rb +92 -0
- data/spec/models/external_transaction_event_status_spec.rb +28 -0
- data/spec/models/financial_connection_data_spec.rb +1 -1
- data/spec/models/financial_connection_details_mx_spec.rb +1 -1
- data/spec/models/financial_connection_details_plaid_spec.rb +1 -1
- data/spec/models/financial_connection_details_spec.rb +1 -1
- data/spec/models/financial_connection_details_teller_spec.rb +1 -1
- data/spec/models/financial_connections_account_balance_spec.rb +1 -1
- data/spec/models/financial_connections_account_cached_balance_spec.rb +1 -1
- data/spec/models/financial_connections_account_details_ach_spec.rb +1 -1
- data/spec/models/financial_connections_account_details_spec.rb +1 -1
- data/spec/models/financial_connections_account_institution_spec.rb +1 -1
- data/spec/models/financial_connections_account_liability_all_of_aprs_spec.rb +1 -1
- data/spec/models/financial_connections_account_liability_all_of_spec.rb +1 -1
- data/spec/models/financial_connections_account_liability_spec.rb +1 -1
- data/spec/models/financial_connections_account_spec.rb +1 -1
- data/spec/models/financial_connections_holding_spec.rb +1 -1
- data/spec/models/financial_connections_investment_security_exchange_spec.rb +1 -1
- data/spec/models/financial_connections_investment_security_spec.rb +1 -1
- data/spec/models/financial_connections_investment_security_type_spec.rb +28 -0
- data/spec/models/financial_connections_investment_transaction_spec.rb +17 -1
- data/spec/models/financial_connections_investment_transaction_subtype_spec.rb +28 -0
- data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +1 -1
- data/spec/models/financial_connections_owner_addresses_inner_spec.rb +1 -1
- data/spec/models/financial_connections_owner_emails_inner_spec.rb +1 -1
- data/spec/models/financial_connections_owner_names_inner_spec.rb +1 -1
- data/spec/models/financial_connections_owner_phone_numbers_inner_spec.rb +1 -1
- data/spec/models/financial_connections_owner_spec.rb +1 -1
- data/spec/models/financial_institution_logo_spec.rb +1 -1
- data/spec/models/financial_institution_spec.rb +1 -1
- data/spec/models/fuse_api_aggregator_error_spec.rb +64 -0
- data/spec/models/fuse_api_error_code_spec.rb +28 -0
- data/spec/models/fuse_api_error_data_spec.rb +1 -1
- data/spec/models/fuse_api_error_spec.rb +7 -9
- data/spec/models/fuse_api_error_type_spec.rb +28 -0
- data/spec/models/fuse_api_warning_data_spec.rb +1 -1
- data/spec/models/fuse_api_warning_data_warnings_inner_spec.rb +1 -1
- data/spec/models/fuse_api_warning_spec.rb +1 -1
- data/spec/models/get_asset_report_request_spec.rb +7 -1
- data/spec/models/get_entity_response_spec.rb +1 -1
- data/spec/models/get_finance_score_response_spec.rb +40 -0
- data/spec/models/get_financial_connection_response_spec.rb +1 -1
- data/spec/models/get_financial_connections_account_details_request_spec.rb +1 -1
- data/spec/models/get_financial_connections_account_details_response_spec.rb +1 -1
- data/spec/models/get_financial_connections_account_statement_request_spec.rb +46 -0
- data/spec/models/get_financial_connections_account_statement_response_spec.rb +40 -0
- data/spec/models/get_financial_connections_accounts_request_spec.rb +1 -1
- data/spec/models/get_financial_connections_accounts_response_spec.rb +1 -1
- data/spec/models/get_financial_connections_balance_request_options_spec.rb +1 -1
- data/spec/models/get_financial_connections_balance_request_spec.rb +1 -1
- data/spec/models/get_financial_connections_balance_response_spec.rb +1 -1
- data/spec/models/get_financial_connections_owners_request_spec.rb +1 -1
- data/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +1 -1
- data/spec/models/get_financial_connections_owners_response_spec.rb +1 -1
- data/spec/models/get_financial_connections_transactions_request_spec.rb +1 -1
- data/spec/models/get_financial_connections_transactions_response_spec.rb +1 -1
- data/spec/models/get_financial_institution_response_spec.rb +1 -1
- data/spec/models/get_investment_holdings_request_options_spec.rb +1 -1
- data/spec/models/get_investment_holdings_request_spec.rb +1 -1
- data/spec/models/get_investment_holdings_response_spec.rb +1 -1
- data/spec/models/get_investment_transactions_request_options_spec.rb +1 -1
- data/spec/models/get_investment_transactions_request_spec.rb +1 -1
- data/spec/models/get_investment_transactions_response_spec.rb +7 -1
- data/spec/models/get_liabilities_request_spec.rb +1 -1
- data/spec/models/get_liabilities_response_spec.rb +1 -1
- data/spec/models/get_spend_power_customization_response_spec.rb +40 -0
- data/spec/models/get_spend_power_response_spec.rb +40 -0
- data/spec/models/in_app_transaction_event_spec.rb +86 -0
- data/spec/models/in_app_transaction_event_status_spec.rb +28 -0
- data/spec/models/migrate_financial_connections_aggregator_connection_data_mx_spec.rb +1 -1
- data/spec/models/migrate_financial_connections_aggregator_connection_data_plaid_spec.rb +7 -1
- data/spec/models/migrate_financial_connections_aggregator_connection_data_spec.rb +7 -1
- data/spec/models/migrate_financial_connections_aggregator_connection_data_teller_spec.rb +34 -0
- data/spec/models/migrate_financial_connections_token_request_entity_spec.rb +1 -1
- data/spec/models/migrate_financial_connections_token_request_spec.rb +2 -2
- data/spec/models/migrate_financial_connections_token_response_spec.rb +1 -1
- data/spec/models/product_spec.rb +1 -1
- data/spec/models/refresh_asset_report_request_spec.rb +3 -3
- data/spec/models/refresh_asset_report_response_spec.rb +46 -0
- data/spec/models/spend_power_customization_spec.rb +52 -0
- data/spec/models/spend_power_spec.rb +70 -0
- data/spec/models/spend_power_time_frame_spec.rb +28 -0
- data/spec/models/sync_financial_connections_data_response_spec.rb +1 -1
- data/spec/models/sync_transactions_request_spec.rb +1 -1
- data/spec/models/sync_transactions_response_removed_inner_spec.rb +1 -1
- data/spec/models/sync_transactions_response_spec.rb +1 -1
- data/spec/models/transaction_category_detailed_spec.rb +28 -0
- data/spec/models/transaction_category_primary_spec.rb +28 -0
- data/spec/models/transaction_category_spec.rb +40 -0
- data/spec/models/transaction_event_type_spec.rb +28 -0
- data/spec/models/transaction_merchant_spec.rb +1 -1
- data/spec/models/transaction_spec.rb +9 -1
- data/spec/models/transaction_to_enrich_spec.rb +62 -0
- data/spec/models/update_entity_request_spec.rb +1 -1
- data/spec/models/update_entity_response_spec.rb +1 -1
- data/spec/models/update_spend_power_customization_request_spec.rb +46 -0
- data/spec/models/update_spend_power_customization_response_spec.rb +40 -0
- data/spec/models/updated_balance_event_spec.rb +62 -0
- data/spec/models/webhook_event_spec.rb +19 -1
- data/spec/models/webhook_source_spec.rb +1 -1
- data/spec/models/webhook_type_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +206 -22
- data/docs/GetAssetReportResponseReport.md +0 -28
- data/docs/GetAssetReportResponseReportAccountsInner.md +0 -24
@@ -0,0 +1,28 @@
|
|
1
|
+
# FuseClient::FuseApiAggregatorError
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **request_id** | **String** | | [optional] |
|
8
|
+
| **title** | **String** | | [optional] |
|
9
|
+
| **details** | **String** | | [optional] |
|
10
|
+
| **code** | **String** | | [optional] |
|
11
|
+
| **type** | **String** | | [optional] |
|
12
|
+
| **path** | **String** | | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'fuse_client'
|
18
|
+
|
19
|
+
instance = FuseClient::FuseApiAggregatorError.new(
|
20
|
+
request_id: null,
|
21
|
+
title: null,
|
22
|
+
details: null,
|
23
|
+
code: null,
|
24
|
+
type: null,
|
25
|
+
path: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
data/docs/FuseApiError.md
CHANGED
@@ -4,11 +4,12 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **
|
8
|
-
| **
|
9
|
-
| **
|
10
|
-
| **
|
11
|
-
| **
|
7
|
+
| **request_id** | **String** | | |
|
8
|
+
| **title** | **String** | | |
|
9
|
+
| **details** | **String** | | |
|
10
|
+
| **code** | [**FuseApiErrorCode**](FuseApiErrorCode.md) | | |
|
11
|
+
| **type** | [**FuseApiErrorType**](FuseApiErrorType.md) | | |
|
12
|
+
| **source** | **String** | | |
|
12
13
|
| **data** | [**FuseApiErrorData**](FuseApiErrorData.md) | | [optional] |
|
13
14
|
|
14
15
|
## Example
|
@@ -17,6 +18,7 @@
|
|
17
18
|
require 'fuse_client'
|
18
19
|
|
19
20
|
instance = FuseClient::FuseApiError.new(
|
21
|
+
request_id: null,
|
20
22
|
title: null,
|
21
23
|
details: null,
|
22
24
|
code: null,
|
data/docs/FuseApiErrorData.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **aggregator** | [**Aggregator**](Aggregator.md) | | [optional] |
|
8
|
-
| **errors** | [**Array<
|
8
|
+
| **errors** | [**Array<FuseApiAggregatorError>**](FuseApiAggregatorError.md) | | [optional] |
|
9
9
|
|
10
10
|
## Example
|
11
11
|
|
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **access_token** | **String** | Access fuse token corresponding to the financial account to be refresh the Asset Report for. | |
|
7
8
|
| **asset_report_token** | **String** | The token associated with the Asset Report to retrieve. | |
|
8
9
|
|
9
10
|
## Example
|
@@ -12,6 +13,7 @@
|
|
12
13
|
require 'fuse_client'
|
13
14
|
|
14
15
|
instance = FuseClient::GetAssetReportRequest.new(
|
16
|
+
access_token: null,
|
15
17
|
asset_report_token: null
|
16
18
|
)
|
17
19
|
```
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# FuseClient::GetFinanceScoreResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **finance_score** | **Float** | A value between 0 and 1 where 1 is a perfect finance score and 0 is the worst finance score. | |
|
8
|
+
| **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'fuse_client'
|
14
|
+
|
15
|
+
instance = FuseClient::GetFinanceScoreResponse.new(
|
16
|
+
finance_score: null,
|
17
|
+
request_id: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# FuseClient::GetFinancialConnectionsAccountStatementRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **access_token** | **String** | Access token for authentication | |
|
8
|
+
| **remote_account_id** | **String** | The remote account id to retrieve the statement for. | |
|
9
|
+
| **date** | **String** | The year and month for the account statement to be retrieved in YYYY-MM. | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'fuse_client'
|
15
|
+
|
16
|
+
instance = FuseClient::GetFinancialConnectionsAccountStatementRequest.new(
|
17
|
+
access_token: null,
|
18
|
+
remote_account_id: null,
|
19
|
+
date: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# FuseClient::GetFinancialConnectionsAccountStatementResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **statement_url** | **String** | PDF statement URL. | |
|
8
|
+
| **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'fuse_client'
|
14
|
+
|
15
|
+
instance = FuseClient::GetFinancialConnectionsAccountStatementResponse.new(
|
16
|
+
statement_url: null,
|
17
|
+
request_id: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -5,10 +5,10 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **access_token** | **String** | Access token for authentication | |
|
8
|
-
| **start_date** | **String** | The earliest date for which data should be returned. Dates should be formatted as YYYY-MM-DD. |
|
9
|
-
| **end_date** | **String** | The latest date for which data should be returned. Dates should be formatted as YYYY-MM-DD. |
|
10
|
-
| **page** | **Integer** | Specify current page. |
|
11
|
-
| **records_per_page** | **Integer** | Number of items per page. | [
|
8
|
+
| **start_date** | **String** | The earliest date for which data should be returned. Dates should be formatted as YYYY-MM-DD. | |
|
9
|
+
| **end_date** | **String** | The latest date for which data should be returned. Dates should be formatted as YYYY-MM-DD. | |
|
10
|
+
| **page** | **Integer** | Specify current page. | |
|
11
|
+
| **records_per_page** | **Integer** | Number of items per page. | [default to 25] |
|
12
12
|
| **options** | [**GetInvestmentTransactionsRequestOptions**](GetInvestmentTransactionsRequestOptions.md) | | [optional] |
|
13
13
|
|
14
14
|
## Example
|
@@ -6,6 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **accounts** | [**Array<FinancialConnectionsAccount>**](FinancialConnectionsAccount.md) | | |
|
8
8
|
| **investment_transactions** | [**Array<FinancialConnectionsInvestmentTransaction>**](FinancialConnectionsInvestmentTransaction.md) | | |
|
9
|
+
| **total_transactions** | **Float** | The total number of transactions within the specified date range. | [optional] |
|
9
10
|
| **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | |
|
10
11
|
|
11
12
|
## Example
|
@@ -16,6 +17,7 @@ require 'fuse_client'
|
|
16
17
|
instance = FuseClient::GetInvestmentTransactionsResponse.new(
|
17
18
|
accounts: null,
|
18
19
|
investment_transactions: null,
|
20
|
+
total_transactions: null,
|
19
21
|
request_id: null
|
20
22
|
)
|
21
23
|
```
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# FuseClient::GetSpendPowerCustomizationResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **spend_power_customization** | [**SpendPowerCustomization**](SpendPowerCustomization.md) | | |
|
8
|
+
| **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'fuse_client'
|
14
|
+
|
15
|
+
instance = FuseClient::GetSpendPowerCustomizationResponse.new(
|
16
|
+
spend_power_customization: null,
|
17
|
+
request_id: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# FuseClient::GetSpendPowerResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **spend_power** | [**SpendPower**](SpendPower.md) | | |
|
8
|
+
| **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'fuse_client'
|
14
|
+
|
15
|
+
instance = FuseClient::GetSpendPowerResponse.new(
|
16
|
+
spend_power: null,
|
17
|
+
request_id: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# FuseClient::InAppTransactionEvent
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | ID of the transaction | |
|
8
|
+
| **event_type** | **String** | | |
|
9
|
+
| **status** | [**InAppTransactionEventStatus**](InAppTransactionEventStatus.md) | | |
|
10
|
+
| **balance** | **Float** | The running balance of the account after the transaction has occurred, in cents. | [optional] |
|
11
|
+
| **amount** | **Float** | | |
|
12
|
+
| **merchant_name** | **String** | | |
|
13
|
+
| **transaction_type** | [**TransactionEventType**](TransactionEventType.md) | | |
|
14
|
+
| **iso_currency_code** | **String** | The ISO-4217 currency code. | [optional] |
|
15
|
+
| **timestamp** | **String** | Datetime of the transaction In ISO-8601 format | |
|
16
|
+
|
17
|
+
## Example
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'fuse_client'
|
21
|
+
|
22
|
+
instance = FuseClient::InAppTransactionEvent.new(
|
23
|
+
id: null,
|
24
|
+
event_type: null,
|
25
|
+
status: null,
|
26
|
+
balance: null,
|
27
|
+
amount: null,
|
28
|
+
merchant_name: null,
|
29
|
+
transaction_type: null,
|
30
|
+
iso_currency_code: null,
|
31
|
+
timestamp: null
|
32
|
+
)
|
33
|
+
```
|
34
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# FuseClient::InAppTransactionEventStatus
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'fuse_client'
|
12
|
+
|
13
|
+
instance = FuseClient::InAppTransactionEventStatus.new()
|
14
|
+
```
|
15
|
+
|
@@ -6,6 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **plaid** | [**MigrateFinancialConnectionsAggregatorConnectionDataPlaid**](MigrateFinancialConnectionsAggregatorConnectionDataPlaid.md) | | [optional] |
|
8
8
|
| **mx** | [**MigrateFinancialConnectionsAggregatorConnectionDataMx**](MigrateFinancialConnectionsAggregatorConnectionDataMx.md) | | [optional] |
|
9
|
+
| **teller** | [**MigrateFinancialConnectionsAggregatorConnectionDataTeller**](MigrateFinancialConnectionsAggregatorConnectionDataTeller.md) | | [optional] |
|
9
10
|
|
10
11
|
## Example
|
11
12
|
|
@@ -14,7 +15,8 @@ require 'fuse_client'
|
|
14
15
|
|
15
16
|
instance = FuseClient::MigrateFinancialConnectionsAggregatorConnectionData.new(
|
16
17
|
plaid: null,
|
17
|
-
mx: null
|
18
|
+
mx: null,
|
19
|
+
teller: null
|
18
20
|
)
|
19
21
|
```
|
20
22
|
|
@@ -5,6 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **access_token** | **String** | The Plaid access token associated with the user's financial accounts. | |
|
8
|
+
| **use_item_webhook** | **Boolean** | If true, any webhooks received for this new financial connection will be sent to the webhook url used when the item was created. If false, the webhook url set at the organization sandbox/production environment level will be used instead. | [optional] |
|
8
9
|
|
9
10
|
## Example
|
10
11
|
|
@@ -12,7 +13,8 @@
|
|
12
13
|
require 'fuse_client'
|
13
14
|
|
14
15
|
instance = FuseClient::MigrateFinancialConnectionsAggregatorConnectionDataPlaid.new(
|
15
|
-
access_token: null
|
16
|
+
access_token: null,
|
17
|
+
use_item_webhook: null
|
16
18
|
)
|
17
19
|
```
|
18
20
|
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# FuseClient::MigrateFinancialConnectionsAggregatorConnectionDataTeller
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **access_token** | **String** | The Teller access token associated with the user's financial accounts. | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'fuse_client'
|
13
|
+
|
14
|
+
instance = FuseClient::MigrateFinancialConnectionsAggregatorConnectionDataTeller.new(
|
15
|
+
access_token: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **connection_data** | [**MigrateFinancialConnectionsAggregatorConnectionData**](MigrateFinancialConnectionsAggregatorConnectionData.md) | | |
|
8
|
-
| **aggregator** | **String** | The aggregator being migrated (either 'plaid'
|
8
|
+
| **aggregator** | **String** | The aggregator being migrated (either 'plaid', 'mx' or 'teller). | |
|
9
9
|
| **entity** | [**MigrateFinancialConnectionsTokenRequestEntity**](MigrateFinancialConnectionsTokenRequestEntity.md) | | |
|
10
10
|
| **fuse_products** | [**Array<Product>**](Product.md) | A list of Fuse products that the migrated connection will have access to. | |
|
11
11
|
|
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **access_token** | **String** |
|
8
|
-
| **
|
9
|
-
| **
|
7
|
+
| **access_token** | **String** | Access fuse token corresponding to the financial account to be refresh the Asset Report for. | |
|
8
|
+
| **asset_report_token** | **String** | The asset_report_token returned by the original call to /asset_report/create | |
|
9
|
+
| **days_requested** | **Float** | The maximum integer number of days of history to include in the Asset Report | [optional] |
|
10
10
|
|
11
11
|
## Example
|
12
12
|
|
@@ -15,8 +15,8 @@ require 'fuse_client'
|
|
15
15
|
|
16
16
|
instance = FuseClient::RefreshAssetReportRequest.new(
|
17
17
|
access_token: null,
|
18
|
-
|
19
|
-
|
18
|
+
asset_report_token: null,
|
19
|
+
days_requested: null
|
20
20
|
)
|
21
21
|
```
|
22
22
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# FuseClient::RefreshAssetReportResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **asset_report_token** | **String** | A token that can be provided to endpoints such as /asset_report to fetch an asset report. | [optional] |
|
8
|
+
| **asset_report_id** | **String** | A unique ID identifying an Asset Report. | [optional] |
|
9
|
+
| **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'fuse_client'
|
15
|
+
|
16
|
+
instance = FuseClient::RefreshAssetReportResponse.new(
|
17
|
+
asset_report_token: null,
|
18
|
+
asset_report_id: null,
|
19
|
+
request_id: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/SpendPower.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# FuseClient::SpendPower
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | The id of the spend power | |
|
8
|
+
| **customization_id** | **String** | The customization id of the spend power. | |
|
9
|
+
| **spend_limit** | **Float** | The total limit for the current timeframe, in cents. | |
|
10
|
+
| **current_spend** | **Float** | The total current spend in the current timeframe, in cents, without factoring in pending payments. | |
|
11
|
+
| **pending_payments_amount** | **Float** | The total unpaid amount, in cents, from all timeframes. | |
|
12
|
+
| **iso_currency_code** | **String** | The ISO-4217 currency code of the transaction | |
|
13
|
+
| **last_updated** | **String** | The datetime of when the spend power was most recently updated, in ISO-8601 format. | |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'fuse_client'
|
19
|
+
|
20
|
+
instance = FuseClient::SpendPower.new(
|
21
|
+
id: null,
|
22
|
+
customization_id: null,
|
23
|
+
spend_limit: null,
|
24
|
+
current_spend: null,
|
25
|
+
pending_payments_amount: null,
|
26
|
+
iso_currency_code: null,
|
27
|
+
last_updated: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,165 @@
|
|
1
|
+
# FuseClient::SpendPowerApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://sandbox-api.letsfuse.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**delete_spend_power**](SpendPowerApi.md#delete_spend_power) | **DELETE** /v1/spend_power/{spend_power_id} | Delete spend power customization |
|
8
|
+
| [**get_spend_power_customization**](SpendPowerApi.md#get_spend_power_customization) | **GET** /v1/spend_power/customization/{spend_power_customization_id} | Get spend power customization |
|
9
|
+
|
10
|
+
|
11
|
+
## delete_spend_power
|
12
|
+
|
13
|
+
> <DeleteSpendPowerResponse> delete_spend_power(spend_power_id, fuse_client_id, fuse_api_key)
|
14
|
+
|
15
|
+
Delete spend power customization
|
16
|
+
|
17
|
+
### Examples
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'time'
|
21
|
+
require 'fuse_client'
|
22
|
+
# setup authorization
|
23
|
+
FuseClient.configure do |config|
|
24
|
+
# Configure API key authorization: fuseApiKey
|
25
|
+
config.api_key['fuseApiKey'] = 'YOUR API KEY'
|
26
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
27
|
+
# config.api_key_prefix['fuseApiKey'] = 'Bearer'
|
28
|
+
|
29
|
+
# Configure API key authorization: fuseClientId
|
30
|
+
config.api_key['fuseClientId'] = 'YOUR API KEY'
|
31
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
32
|
+
# config.api_key_prefix['fuseClientId'] = 'Bearer'
|
33
|
+
end
|
34
|
+
|
35
|
+
api_instance = FuseClient::SpendPowerApi.new
|
36
|
+
spend_power_id = 'spend_power_id_example' # String |
|
37
|
+
fuse_client_id = 'fuse_client_id_example' # String |
|
38
|
+
fuse_api_key = 'fuse_api_key_example' # String |
|
39
|
+
|
40
|
+
begin
|
41
|
+
# Delete spend power customization
|
42
|
+
result = api_instance.delete_spend_power(spend_power_id, fuse_client_id, fuse_api_key)
|
43
|
+
p result
|
44
|
+
rescue FuseClient::ApiError => e
|
45
|
+
puts "Error when calling SpendPowerApi->delete_spend_power: #{e}"
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
#### Using the delete_spend_power_with_http_info variant
|
50
|
+
|
51
|
+
This returns an Array which contains the response data, status code and headers.
|
52
|
+
|
53
|
+
> <Array(<DeleteSpendPowerResponse>, Integer, Hash)> delete_spend_power_with_http_info(spend_power_id, fuse_client_id, fuse_api_key)
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
begin
|
57
|
+
# Delete spend power customization
|
58
|
+
data, status_code, headers = api_instance.delete_spend_power_with_http_info(spend_power_id, fuse_client_id, fuse_api_key)
|
59
|
+
p status_code # => 2xx
|
60
|
+
p headers # => { ... }
|
61
|
+
p data # => <DeleteSpendPowerResponse>
|
62
|
+
rescue FuseClient::ApiError => e
|
63
|
+
puts "Error when calling SpendPowerApi->delete_spend_power_with_http_info: #{e}"
|
64
|
+
end
|
65
|
+
```
|
66
|
+
|
67
|
+
### Parameters
|
68
|
+
|
69
|
+
| Name | Type | Description | Notes |
|
70
|
+
| ---- | ---- | ----------- | ----- |
|
71
|
+
| **spend_power_id** | **String** | | |
|
72
|
+
| **fuse_client_id** | **String** | | |
|
73
|
+
| **fuse_api_key** | **String** | | |
|
74
|
+
|
75
|
+
### Return type
|
76
|
+
|
77
|
+
[**DeleteSpendPowerResponse**](DeleteSpendPowerResponse.md)
|
78
|
+
|
79
|
+
### Authorization
|
80
|
+
|
81
|
+
[fuseApiKey](../README.md#fuseApiKey), [fuseClientId](../README.md#fuseClientId)
|
82
|
+
|
83
|
+
### HTTP request headers
|
84
|
+
|
85
|
+
- **Content-Type**: Not defined
|
86
|
+
- **Accept**: application/json
|
87
|
+
|
88
|
+
|
89
|
+
## get_spend_power_customization
|
90
|
+
|
91
|
+
> <GetSpendPowerCustomizationResponse> get_spend_power_customization(spend_power_customization_id, fuse_client_id, fuse_api_key)
|
92
|
+
|
93
|
+
Get spend power customization
|
94
|
+
|
95
|
+
### Examples
|
96
|
+
|
97
|
+
```ruby
|
98
|
+
require 'time'
|
99
|
+
require 'fuse_client'
|
100
|
+
# setup authorization
|
101
|
+
FuseClient.configure do |config|
|
102
|
+
# Configure API key authorization: fuseApiKey
|
103
|
+
config.api_key['fuseApiKey'] = 'YOUR API KEY'
|
104
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
105
|
+
# config.api_key_prefix['fuseApiKey'] = 'Bearer'
|
106
|
+
|
107
|
+
# Configure API key authorization: fuseClientId
|
108
|
+
config.api_key['fuseClientId'] = 'YOUR API KEY'
|
109
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
110
|
+
# config.api_key_prefix['fuseClientId'] = 'Bearer'
|
111
|
+
end
|
112
|
+
|
113
|
+
api_instance = FuseClient::SpendPowerApi.new
|
114
|
+
spend_power_customization_id = 'spend_power_customization_id_example' # String |
|
115
|
+
fuse_client_id = 'fuse_client_id_example' # String |
|
116
|
+
fuse_api_key = 'fuse_api_key_example' # String |
|
117
|
+
|
118
|
+
begin
|
119
|
+
# Get spend power customization
|
120
|
+
result = api_instance.get_spend_power_customization(spend_power_customization_id, fuse_client_id, fuse_api_key)
|
121
|
+
p result
|
122
|
+
rescue FuseClient::ApiError => e
|
123
|
+
puts "Error when calling SpendPowerApi->get_spend_power_customization: #{e}"
|
124
|
+
end
|
125
|
+
```
|
126
|
+
|
127
|
+
#### Using the get_spend_power_customization_with_http_info variant
|
128
|
+
|
129
|
+
This returns an Array which contains the response data, status code and headers.
|
130
|
+
|
131
|
+
> <Array(<GetSpendPowerCustomizationResponse>, Integer, Hash)> get_spend_power_customization_with_http_info(spend_power_customization_id, fuse_client_id, fuse_api_key)
|
132
|
+
|
133
|
+
```ruby
|
134
|
+
begin
|
135
|
+
# Get spend power customization
|
136
|
+
data, status_code, headers = api_instance.get_spend_power_customization_with_http_info(spend_power_customization_id, fuse_client_id, fuse_api_key)
|
137
|
+
p status_code # => 2xx
|
138
|
+
p headers # => { ... }
|
139
|
+
p data # => <GetSpendPowerCustomizationResponse>
|
140
|
+
rescue FuseClient::ApiError => e
|
141
|
+
puts "Error when calling SpendPowerApi->get_spend_power_customization_with_http_info: #{e}"
|
142
|
+
end
|
143
|
+
```
|
144
|
+
|
145
|
+
### Parameters
|
146
|
+
|
147
|
+
| Name | Type | Description | Notes |
|
148
|
+
| ---- | ---- | ----------- | ----- |
|
149
|
+
| **spend_power_customization_id** | **String** | | |
|
150
|
+
| **fuse_client_id** | **String** | | |
|
151
|
+
| **fuse_api_key** | **String** | | |
|
152
|
+
|
153
|
+
### Return type
|
154
|
+
|
155
|
+
[**GetSpendPowerCustomizationResponse**](GetSpendPowerCustomizationResponse.md)
|
156
|
+
|
157
|
+
### Authorization
|
158
|
+
|
159
|
+
[fuseApiKey](../README.md#fuseApiKey), [fuseClientId](../README.md#fuseClientId)
|
160
|
+
|
161
|
+
### HTTP request headers
|
162
|
+
|
163
|
+
- **Content-Type**: Not defined
|
164
|
+
- **Accept**: application/json
|
165
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# FuseClient::SpendPowerCustomization
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | The id of the spend power customization | |
|
8
|
+
| **timeframe** | [**SpendPowerTimeFrame**](SpendPowerTimeFrame.md) | | |
|
9
|
+
| **min_limit** | **Float** | The minimum allowed limit for the spend power, in cents. | |
|
10
|
+
| **max_limit** | **Float** | The maximum allowed limit for the spend power, in cents. | |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'fuse_client'
|
16
|
+
|
17
|
+
instance = FuseClient::SpendPowerCustomization.new(
|
18
|
+
id: null,
|
19
|
+
timeframe: null,
|
20
|
+
min_limit: null,
|
21
|
+
max_limit: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# FuseClient::SpendPowerTimeFrame
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'fuse_client'
|
12
|
+
|
13
|
+
instance = FuseClient::SpendPowerTimeFrame.new()
|
14
|
+
```
|
15
|
+
|