fuse_client 0.3.1 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{fuse-ruby-openapi/Gemfile → Gemfile} +0 -0
- data/Gemfile.lock +70 -0
- data/LICENSE +21 -0
- data/README.md +1 -0
- data/{fuse-ruby-openapi/Rakefile → Rakefile} +0 -0
- data/docs/Aggregator.md +15 -0
- data/{fuse-ruby-openapi/docs → docs}/CreateAssetReportRequest.md +3 -1
- data/{fuse-ruby-openapi/docs → docs}/CreateAssetReportResponse.md +0 -0
- data/docs/CreateEntityRequest.md +24 -0
- data/docs/CreateEntityResponse.md +24 -0
- data/{fuse-ruby-openapi/docs → docs}/CreateLinkTokenRequest.md +5 -5
- data/{fuse-ruby-openapi/docs → docs}/CreateLinkTokenRequestMx.md +1 -1
- data/docs/CreateLinkTokenRequestPlaid.md +18 -0
- data/{fuse-ruby-openapi/docs → docs}/CreateLinkTokenResponse.md +0 -0
- data/docs/CreateSessionRequest.md +20 -0
- data/{fuse-ruby-openapi/docs → docs}/CreateSessionResponse.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/ExchangeFinancialConnectionsPublicTokenRequest.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/ExchangeFinancialConnectionsPublicTokenResponse.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsAccount.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsAccountBalance.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsAccountDetails.md +1 -3
- data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsAccountDetailsAch.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsAccountInstitution.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsAccountLiability.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsAccountLiabilityAllOf.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsAccountLiabilityAllOfAprs.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsHolding.md +2 -0
- data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsInvestmentAccount.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsInvestmentSecurity.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsInvestmentTransaction.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsInvestmentTransactionDataInner.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsOwner.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsOwnerAddressesInner.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsOwnerAddressesInnerData.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsOwnerEmailsInner.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsOwnerNamesInner.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsOwnerPhoneNumbersInner.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/FuseApi.md +307 -1
- data/{fuse-ruby-openapi/docs → docs}/FuseApiError.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/FuseApiErrorData.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/FuseApiWarning.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/FuseApiWarningData.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/GetAssetReportRequest.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/GetAssetReportResponse.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/GetAssetReportResponseReport.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/GetAssetReportResponseReportAccountsInner.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/GetAssetReportResponseReportAccountsInnerBalances.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/GetAssetReportResponseReportAccountsInnerHistoricalBalancesInner.md +0 -0
- data/docs/GetEntityResponse.md +24 -0
- data/{fuse-ruby-openapi/docs → docs}/GetFinancialConnectionsAccountBalanceResponse.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/GetFinancialConnectionsAccountDetailsRequest.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/GetFinancialConnectionsAccountDetailsResponse.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/GetFinancialConnectionsAccountsRequest.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/GetFinancialConnectionsAccountsResponse.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/GetFinancialConnectionsBalanceRequest.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/GetFinancialConnectionsOwnersRequest.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/GetFinancialConnectionsOwnersResponse.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/GetFinancialConnectionsOwnersResponseAccountsInner.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/GetInvestmentHoldingsRequest.md +3 -1
- data/{fuse-ruby-openapi/docs → docs}/GetInvestmentHoldingsResponse.md +1 -3
- data/{fuse-ruby-openapi/docs → docs}/GetInvestmentTransactionsRequest.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/GetInvestmentTransactionsResponse.md +1 -3
- data/{fuse-ruby-openapi/docs → docs}/GetLiabilitiesRequest.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/GetLiabilitiesResponse.md +1 -3
- data/{fuse-ruby-openapi/docs → docs}/GetTransactionsRequest.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/GetTransactionsResponse.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/GetTransactionsResponseDataInner.md +1 -3
- data/{fuse-ruby-openapi/docs → docs}/GetTransactionsResponseDataInnerMerchant.md +0 -0
- data/docs/Product.md +15 -0
- data/docs/RefreshAssetReportRequest.md +22 -0
- data/{fuse-ruby-openapi/docs → docs}/SyncFinancialConnectionsDataResponse.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/SyncTransactionsRequest.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/SyncTransactionsResponse.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/SyncTransactionsResponseRemovedInner.md +0 -0
- data/{fuse-ruby-openapi/docs → docs}/TransactionCommonModel.md +0 -0
- data/docs/UpdateEntityRequest.md +22 -0
- data/docs/UpdateEntityResponse.md +24 -0
- data/{fuse-ruby-openapi/fuse_client.gemspec → fuse_client.gemspec} +0 -0
- data/{fuse-ruby-openapi/git_push.sh → git_push.sh} +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/api/fuse_api.rb +261 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/api_client.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/api_error.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/configuration.rb +2 -2
- data/lib/fuse_client/models/aggregator.rb +42 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/create_asset_report_request.rb +16 -4
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/create_asset_report_response.rb +0 -0
- data/lib/fuse_client/models/create_entity_request.rb +268 -0
- data/lib/fuse_client/models/create_entity_response.rb +268 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/create_link_token_request.rb +21 -20
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/create_link_token_request_mx.rb +1 -1
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/create_link_token_request_plaid.rb +3 -2
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/create_link_token_response.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/create_session_request.rb +36 -39
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/create_session_response.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/exchange_financial_connections_public_token_request.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/exchange_financial_connections_public_token_response.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_account.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_account_balance.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_account_details.rb +4 -14
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_account_details_ach.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_account_institution.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_account_liability.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_account_liability_all_of.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_account_liability_all_of_aprs.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_holding.rb +11 -1
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_investment_account.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_investment_security.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_investment_transaction.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_investment_transaction_data_inner.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_owner.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_owner_addresses_inner.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_owner_emails_inner.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_owner_names_inner.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_owner_phone_numbers_inner.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/fuse_api_error.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/fuse_api_error_data.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/fuse_api_warning.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/fuse_api_warning_data.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_asset_report_request.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_asset_report_response.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_asset_report_response_report.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_asset_report_response_report_accounts_inner.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_asset_report_response_report_accounts_inner_balances.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_asset_report_response_report_accounts_inner_historical_balances_inner.rb +0 -0
- data/lib/fuse_client/models/get_entity_response.rb +268 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_financial_connections_account_balance_response.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_financial_connections_account_details_request.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_financial_connections_account_details_response.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_financial_connections_accounts_request.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_financial_connections_accounts_response.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_financial_connections_balance_request.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_financial_connections_owners_request.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_financial_connections_owners_response.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_investment_holdings_request.rb +14 -4
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_investment_holdings_response.rb +4 -14
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_investment_transactions_request.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_investment_transactions_response.rb +4 -14
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_liabilities_request.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_liabilities_response.rb +4 -14
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_transactions_request.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_transactions_response.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_transactions_response_data_inner.rb +4 -14
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_transactions_response_data_inner_merchant.rb +0 -0
- data/lib/fuse_client/models/product.rb +44 -0
- data/lib/fuse_client/models/refresh_asset_report_request.rb +275 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/sync_financial_connections_data_response.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/sync_transactions_request.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/sync_transactions_response.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/sync_transactions_response_removed_inner.rb +0 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/transaction_common_model.rb +0 -0
- data/{fuse-ruby-openapi/lib/fuse_client/models/create_session_request_plaid.rb → lib/fuse_client/models/update_entity_request.rb} +41 -21
- data/lib/fuse_client/models/update_entity_response.rb +268 -0
- data/{fuse-ruby-openapi/lib → lib}/fuse_client/version.rb +1 -1
- data/{fuse-ruby-openapi/lib → lib}/fuse_client.rb +8 -3
- data/{fuse-ruby-openapi/spec → spec}/api/fuse_api_spec.rb +45 -0
- data/{fuse-ruby-openapi/spec → spec}/api_client_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/configuration_spec.rb +3 -3
- data/spec/models/aggregator_spec.rb +28 -0
- data/{fuse-ruby-openapi/spec → spec}/models/create_asset_report_request_spec.rb +6 -0
- data/{fuse-ruby-openapi/spec → spec}/models/create_asset_report_response_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec/models/create_session_request_mx_spec.rb → spec/models/create_entity_request_spec.rb} +10 -10
- data/spec/models/create_entity_response_spec.rb +52 -0
- data/{fuse-ruby-openapi/spec → spec}/models/create_link_token_request_mx_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/create_link_token_request_plaid_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/create_link_token_request_spec.rb +5 -5
- data/{fuse-ruby-openapi/spec → spec}/models/create_link_token_response_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/create_session_request_spec.rb +1 -11
- data/{fuse-ruby-openapi/spec → spec}/models/create_session_response_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/exchange_financial_connections_public_token_request_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/exchange_financial_connections_public_token_response_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_account_balance_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_account_details_ach_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_account_details_spec.rb +0 -6
- data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_account_institution_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_account_liability_all_of_aprs_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_account_liability_all_of_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_account_liability_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_account_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_holding_spec.rb +6 -0
- data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_investment_account_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_investment_security_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_investment_transaction_data_inner_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_investment_transaction_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_owner_addresses_inner_data_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_owner_addresses_inner_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_owner_emails_inner_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_owner_names_inner_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_owner_phone_numbers_inner_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_owner_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/fuse_api_error_data_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/fuse_api_error_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/fuse_api_warning_data_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/fuse_api_warning_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/get_asset_report_request_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/get_asset_report_response_report_accounts_inner_balances_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/get_asset_report_response_report_accounts_inner_historical_balances_inner_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/get_asset_report_response_report_accounts_inner_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/get_asset_report_response_report_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/get_asset_report_response_spec.rb +0 -0
- data/spec/models/get_entity_response_spec.rb +52 -0
- data/{fuse-ruby-openapi/spec → spec}/models/get_financial_connections_account_balance_response_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/get_financial_connections_account_details_request_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/get_financial_connections_account_details_response_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/get_financial_connections_accounts_request_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/get_financial_connections_accounts_response_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/get_financial_connections_balance_request_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/get_financial_connections_owners_request_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/get_financial_connections_owners_response_accounts_inner_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/get_financial_connections_owners_response_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/get_investment_holdings_request_spec.rb +6 -0
- data/{fuse-ruby-openapi/spec → spec}/models/get_investment_holdings_response_spec.rb +0 -6
- data/{fuse-ruby-openapi/spec → spec}/models/get_investment_transactions_request_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/get_investment_transactions_response_spec.rb +0 -6
- data/{fuse-ruby-openapi/spec → spec}/models/get_liabilities_request_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/get_liabilities_response_spec.rb +0 -6
- data/{fuse-ruby-openapi/spec → spec}/models/get_transactions_request_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/get_transactions_response_data_inner_merchant_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/get_transactions_response_data_inner_spec.rb +0 -6
- data/{fuse-ruby-openapi/spec → spec}/models/get_transactions_response_spec.rb +0 -0
- data/spec/models/product_spec.rb +28 -0
- data/spec/models/refresh_asset_report_request_spec.rb +46 -0
- data/{fuse-ruby-openapi/spec → spec}/models/sync_financial_connections_data_response_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/sync_transactions_request_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/sync_transactions_response_removed_inner_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/sync_transactions_response_spec.rb +0 -0
- data/{fuse-ruby-openapi/spec → spec}/models/transaction_common_model_spec.rb +0 -0
- data/spec/models/update_entity_request_spec.rb +46 -0
- data/spec/models/update_entity_response_spec.rb +52 -0
- data/{fuse-ruby-openapi/spec → spec}/spec_helper.rb +0 -0
- metadata +309 -228
- data/2023-01-25.json +0 -1736
- data/fuse-ruby-openapi/.gitignore +0 -39
- data/fuse-ruby-openapi/.gitlab-ci.yml +0 -26
- data/fuse-ruby-openapi/.openapi-generator/FILES +0 -220
- data/fuse-ruby-openapi/.openapi-generator/VERSION +0 -1
- data/fuse-ruby-openapi/.openapi-generator-ignore +0 -23
- data/fuse-ruby-openapi/.rspec +0 -2
- data/fuse-ruby-openapi/.rubocop.yml +0 -148
- data/fuse-ruby-openapi/.travis.yml +0 -14
- data/fuse-ruby-openapi/README.md +0 -258
- data/fuse-ruby-openapi/docs/CreateLinkTokenRequestPlaid.md +0 -18
- data/fuse-ruby-openapi/docs/CreateLinkTokenRequestPlaidConfig.md +0 -18
- data/fuse-ruby-openapi/docs/CreateSessionRequest.md +0 -22
- data/fuse-ruby-openapi/docs/CreateSessionRequestMx.md +0 -24
- data/fuse-ruby-openapi/docs/CreateSessionRequestPlaid.md +0 -18
- data/fuse-ruby-openapi/lib/fuse_client/models/create_link_token_request_plaid_config.rb +0 -225
- data/fuse-ruby-openapi/lib/fuse_client/models/create_session_request_mx.rb +0 -247
- data/fuse-ruby-openapi/spec/models/create_link_token_request_plaid_config_spec.rb +0 -34
- data/fuse-ruby-openapi/spec/models/create_session_request_plaid_spec.rb +0 -34
- data/fuse_client-0.3.0.gem +0 -0
- data/generate-fuse-openapi-spec.js +0 -136
@@ -1,247 +0,0 @@
|
|
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.2.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
require 'time'
|
15
|
-
|
16
|
-
module FuseClient
|
17
|
-
# This can be left empty even if MX is in the list of supported_financial_institution_aggregators, although we would recommend having a look at what each field means to see if you want to override the default value of 'false'. These fields are described here(https://docs.mx.com/api#core_resources_institutions_list_institutions). An object specifying information about the MX configuration to use for deciding which MX supported financial institutions to display.
|
18
|
-
class CreateSessionRequestMx
|
19
|
-
attr_accessor :supports_account_identification
|
20
|
-
|
21
|
-
attr_accessor :supports_account_statement
|
22
|
-
|
23
|
-
attr_accessor :supports_account_verification
|
24
|
-
|
25
|
-
attr_accessor :supports_transaction_history
|
26
|
-
|
27
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
-
def self.attribute_map
|
29
|
-
{
|
30
|
-
:'supports_account_identification' => :'supports_account_identification',
|
31
|
-
:'supports_account_statement' => :'supports_account_statement',
|
32
|
-
:'supports_account_verification' => :'supports_account_verification',
|
33
|
-
:'supports_transaction_history' => :'supports_transaction_history'
|
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
|
-
:'supports_account_identification' => :'Boolean',
|
46
|
-
:'supports_account_statement' => :'Boolean',
|
47
|
-
:'supports_account_verification' => :'Boolean',
|
48
|
-
:'supports_transaction_history' => :'Boolean'
|
49
|
-
}
|
50
|
-
end
|
51
|
-
|
52
|
-
# List of attributes with nullable: true
|
53
|
-
def self.openapi_nullable
|
54
|
-
Set.new([
|
55
|
-
])
|
56
|
-
end
|
57
|
-
|
58
|
-
# Initializes the object
|
59
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
60
|
-
def initialize(attributes = {})
|
61
|
-
if (!attributes.is_a?(Hash))
|
62
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::CreateSessionRequestMx` initialize method"
|
63
|
-
end
|
64
|
-
|
65
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
66
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
67
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
68
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::CreateSessionRequestMx`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
69
|
-
end
|
70
|
-
h[k.to_sym] = v
|
71
|
-
}
|
72
|
-
|
73
|
-
if attributes.key?(:'supports_account_identification')
|
74
|
-
self.supports_account_identification = attributes[:'supports_account_identification']
|
75
|
-
end
|
76
|
-
|
77
|
-
if attributes.key?(:'supports_account_statement')
|
78
|
-
self.supports_account_statement = attributes[:'supports_account_statement']
|
79
|
-
end
|
80
|
-
|
81
|
-
if attributes.key?(:'supports_account_verification')
|
82
|
-
self.supports_account_verification = attributes[:'supports_account_verification']
|
83
|
-
end
|
84
|
-
|
85
|
-
if attributes.key?(:'supports_transaction_history')
|
86
|
-
self.supports_transaction_history = attributes[:'supports_transaction_history']
|
87
|
-
end
|
88
|
-
end
|
89
|
-
|
90
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
91
|
-
# @return Array for valid properties with the reasons
|
92
|
-
def list_invalid_properties
|
93
|
-
invalid_properties = Array.new
|
94
|
-
invalid_properties
|
95
|
-
end
|
96
|
-
|
97
|
-
# Check to see if the all the properties in the model are valid
|
98
|
-
# @return true if the model is valid
|
99
|
-
def valid?
|
100
|
-
true
|
101
|
-
end
|
102
|
-
|
103
|
-
# Checks equality by comparing each attribute.
|
104
|
-
# @param [Object] Object to be compared
|
105
|
-
def ==(o)
|
106
|
-
return true if self.equal?(o)
|
107
|
-
self.class == o.class &&
|
108
|
-
supports_account_identification == o.supports_account_identification &&
|
109
|
-
supports_account_statement == o.supports_account_statement &&
|
110
|
-
supports_account_verification == o.supports_account_verification &&
|
111
|
-
supports_transaction_history == o.supports_transaction_history
|
112
|
-
end
|
113
|
-
|
114
|
-
# @see the `==` method
|
115
|
-
# @param [Object] Object to be compared
|
116
|
-
def eql?(o)
|
117
|
-
self == o
|
118
|
-
end
|
119
|
-
|
120
|
-
# Calculates hash code according to all attributes.
|
121
|
-
# @return [Integer] Hash code
|
122
|
-
def hash
|
123
|
-
[supports_account_identification, supports_account_statement, supports_account_verification, supports_transaction_history].hash
|
124
|
-
end
|
125
|
-
|
126
|
-
# Builds the object from hash
|
127
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
128
|
-
# @return [Object] Returns the model itself
|
129
|
-
def self.build_from_hash(attributes)
|
130
|
-
new.build_from_hash(attributes)
|
131
|
-
end
|
132
|
-
|
133
|
-
# Builds the object from hash
|
134
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
135
|
-
# @return [Object] Returns the model itself
|
136
|
-
def build_from_hash(attributes)
|
137
|
-
return nil unless attributes.is_a?(Hash)
|
138
|
-
attributes = attributes.transform_keys(&:to_sym)
|
139
|
-
self.class.openapi_types.each_pair do |key, type|
|
140
|
-
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
141
|
-
self.send("#{key}=", nil)
|
142
|
-
elsif type =~ /\AArray<(.*)>/i
|
143
|
-
# check to ensure the input is an array given that the attribute
|
144
|
-
# is documented as an array but the input is not
|
145
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
146
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
147
|
-
end
|
148
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
149
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
150
|
-
end
|
151
|
-
end
|
152
|
-
|
153
|
-
self
|
154
|
-
end
|
155
|
-
|
156
|
-
# Deserializes the data based on type
|
157
|
-
# @param string type Data type
|
158
|
-
# @param string value Value to be deserialized
|
159
|
-
# @return [Object] Deserialized data
|
160
|
-
def _deserialize(type, value)
|
161
|
-
case type.to_sym
|
162
|
-
when :Time
|
163
|
-
Time.parse(value)
|
164
|
-
when :Date
|
165
|
-
Date.parse(value)
|
166
|
-
when :String
|
167
|
-
value.to_s
|
168
|
-
when :Integer
|
169
|
-
value.to_i
|
170
|
-
when :Float
|
171
|
-
value.to_f
|
172
|
-
when :Boolean
|
173
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
174
|
-
true
|
175
|
-
else
|
176
|
-
false
|
177
|
-
end
|
178
|
-
when :Object
|
179
|
-
# generic object (usually a Hash), return directly
|
180
|
-
value
|
181
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
182
|
-
inner_type = Regexp.last_match[:inner_type]
|
183
|
-
value.map { |v| _deserialize(inner_type, v) }
|
184
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
185
|
-
k_type = Regexp.last_match[:k_type]
|
186
|
-
v_type = Regexp.last_match[:v_type]
|
187
|
-
{}.tap do |hash|
|
188
|
-
value.each do |k, v|
|
189
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
190
|
-
end
|
191
|
-
end
|
192
|
-
else # model
|
193
|
-
# models (e.g. Pet) or oneOf
|
194
|
-
klass = FuseClient.const_get(type)
|
195
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
196
|
-
end
|
197
|
-
end
|
198
|
-
|
199
|
-
# Returns the string representation of the object
|
200
|
-
# @return [String] String presentation of the object
|
201
|
-
def to_s
|
202
|
-
to_hash.to_s
|
203
|
-
end
|
204
|
-
|
205
|
-
# to_body is an alias to to_hash (backward compatibility)
|
206
|
-
# @return [Hash] Returns the object in the form of hash
|
207
|
-
def to_body
|
208
|
-
to_hash
|
209
|
-
end
|
210
|
-
|
211
|
-
# Returns the object in the form of hash
|
212
|
-
# @return [Hash] Returns the object in the form of hash
|
213
|
-
def to_hash
|
214
|
-
hash = {}
|
215
|
-
self.class.attribute_map.each_pair do |attr, param|
|
216
|
-
value = self.send(attr)
|
217
|
-
if value.nil?
|
218
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
219
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
220
|
-
end
|
221
|
-
|
222
|
-
hash[param] = _to_hash(value)
|
223
|
-
end
|
224
|
-
hash
|
225
|
-
end
|
226
|
-
|
227
|
-
# Outputs non-array value in the form of hash
|
228
|
-
# For object, use to_hash. Otherwise, just return the value
|
229
|
-
# @param [Object] value Any valid value
|
230
|
-
# @return [Hash] Returns the value in the form of hash
|
231
|
-
def _to_hash(value)
|
232
|
-
if value.is_a?(Array)
|
233
|
-
value.compact.map { |v| _to_hash(v) }
|
234
|
-
elsif value.is_a?(Hash)
|
235
|
-
{}.tap do |hash|
|
236
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
237
|
-
end
|
238
|
-
elsif value.respond_to? :to_hash
|
239
|
-
value.to_hash
|
240
|
-
else
|
241
|
-
value
|
242
|
-
end
|
243
|
-
end
|
244
|
-
|
245
|
-
end
|
246
|
-
|
247
|
-
end
|
@@ -1,34 +0,0 @@
|
|
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.2.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for FuseClient::CreateLinkTokenRequestPlaidConfig
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe FuseClient::CreateLinkTokenRequestPlaidConfig do
|
21
|
-
let(:instance) { FuseClient::CreateLinkTokenRequestPlaidConfig.new }
|
22
|
-
|
23
|
-
describe 'test an instance of CreateLinkTokenRequestPlaidConfig' do
|
24
|
-
it 'should create an instance of CreateLinkTokenRequestPlaidConfig' do
|
25
|
-
expect(instance).to be_instance_of(FuseClient::CreateLinkTokenRequestPlaidConfig)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
describe 'test attribute "client_name"' do
|
29
|
-
it 'should work' do
|
30
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
end
|
@@ -1,34 +0,0 @@
|
|
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.2.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for FuseClient::CreateSessionRequestPlaid
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe FuseClient::CreateSessionRequestPlaid do
|
21
|
-
let(:instance) { FuseClient::CreateSessionRequestPlaid.new }
|
22
|
-
|
23
|
-
describe 'test an instance of CreateSessionRequestPlaid' do
|
24
|
-
it 'should create an instance of CreateSessionRequestPlaid' do
|
25
|
-
expect(instance).to be_instance_of(FuseClient::CreateSessionRequestPlaid)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
describe 'test attribute "products"' do
|
29
|
-
it 'should work' do
|
30
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
end
|
data/fuse_client-0.3.0.gem
DELETED
Binary file
|
@@ -1,136 +0,0 @@
|
|
1
|
-
const fs = require("fs");
|
2
|
-
const path = require("path");
|
3
|
-
const apiSpecsDirectory = "../";
|
4
|
-
|
5
|
-
const spec = {
|
6
|
-
openapi: "3.0.0",
|
7
|
-
info: {
|
8
|
-
title: "Fuse",
|
9
|
-
version: "1.0.0",
|
10
|
-
},
|
11
|
-
tags: [
|
12
|
-
{
|
13
|
-
name: "Fuse",
|
14
|
-
},
|
15
|
-
],
|
16
|
-
servers: [
|
17
|
-
{
|
18
|
-
url: "https://yz9sph5c42.execute-api.us-east-1.amazonaws.com",
|
19
|
-
description: "sandbox",
|
20
|
-
},
|
21
|
-
],
|
22
|
-
security: [
|
23
|
-
{
|
24
|
-
fuseApiKey: [],
|
25
|
-
},
|
26
|
-
{
|
27
|
-
fuseClientId: [],
|
28
|
-
},
|
29
|
-
],
|
30
|
-
paths: {},
|
31
|
-
components: {
|
32
|
-
securitySchemes: {
|
33
|
-
fuseApiKey: {
|
34
|
-
type: "apiKey",
|
35
|
-
name: "Fuse-Api-Key",
|
36
|
-
in: "header",
|
37
|
-
},
|
38
|
-
fuseClientId: {
|
39
|
-
type: "apiKey",
|
40
|
-
name: "Fuse-Client-Id",
|
41
|
-
in: "header",
|
42
|
-
},
|
43
|
-
plaidClientId: {
|
44
|
-
type: "apiKey",
|
45
|
-
name: "Plaid-Client-Id",
|
46
|
-
in: "header",
|
47
|
-
},
|
48
|
-
plaidSecret: {
|
49
|
-
type: "apiKey",
|
50
|
-
name: "Plaid-Secret",
|
51
|
-
in: "header",
|
52
|
-
},
|
53
|
-
tellerApplicationId: {
|
54
|
-
type: "apiKey",
|
55
|
-
name: "Teller-Application-Id",
|
56
|
-
in: "header",
|
57
|
-
},
|
58
|
-
tellerCertificate: {
|
59
|
-
type: "apiKey",
|
60
|
-
name: "Teller-Certificate",
|
61
|
-
in: "header",
|
62
|
-
},
|
63
|
-
tellerPrivateKey: {
|
64
|
-
type: "apiKey",
|
65
|
-
name: "Teller-Private-Key",
|
66
|
-
in: "header",
|
67
|
-
},
|
68
|
-
tellerTokenSigningKey: {
|
69
|
-
type: "apiKey",
|
70
|
-
name: "Teller-Token-Signing-Key",
|
71
|
-
in: "header",
|
72
|
-
},
|
73
|
-
tellerSigningSecret: {
|
74
|
-
type: "apiKey",
|
75
|
-
name: "Teller-Signing-Secret",
|
76
|
-
in: "header",
|
77
|
-
},
|
78
|
-
mxClientId: {
|
79
|
-
type: "apiKey",
|
80
|
-
name: "Mx-Client-Id",
|
81
|
-
in: "header",
|
82
|
-
},
|
83
|
-
mxApiKey: {
|
84
|
-
type: "apiKey",
|
85
|
-
name: "Mx-Api-Key",
|
86
|
-
in: "header",
|
87
|
-
},
|
88
|
-
},
|
89
|
-
schemas: {},
|
90
|
-
},
|
91
|
-
};
|
92
|
-
|
93
|
-
const files = fs.readdirSync(apiSpecsDirectory);
|
94
|
-
const finalPathsObj = {};
|
95
|
-
const finalSchemaObj = {};
|
96
|
-
|
97
|
-
function addComponentSchema(spec, target) {
|
98
|
-
const curSpecSchemas = spec["components"]["schemas"];
|
99
|
-
for (const curSchemaKey of Object.keys(curSpecSchemas)) {
|
100
|
-
const curSchemaObj = curSpecSchemas[curSchemaKey];
|
101
|
-
finalSchemaObj[curSchemaKey] = JSON.parse(JSON.stringify(curSchemaObj));
|
102
|
-
}
|
103
|
-
}
|
104
|
-
|
105
|
-
const commonSpec = JSON.parse(
|
106
|
-
fs.readFileSync(path.join(apiSpecsDirectory, "Common.json"), "utf8")
|
107
|
-
);
|
108
|
-
addComponentSchema(commonSpec, finalSchemaObj);
|
109
|
-
|
110
|
-
for (const curFile of files) {
|
111
|
-
if (!curFile.endsWith(".json") || curFile === "Common.json") {
|
112
|
-
continue;
|
113
|
-
}
|
114
|
-
const curSpec = JSON.parse(
|
115
|
-
fs.readFileSync(path.join(apiSpecsDirectory, curFile), "utf8")
|
116
|
-
);
|
117
|
-
|
118
|
-
//Add paths to finalPathsObj
|
119
|
-
const curSpecPaths = curSpec["paths"];
|
120
|
-
for (const curPathKey of Object.keys(curSpecPaths)) {
|
121
|
-
const curPathObj = curSpecPaths[curPathKey];
|
122
|
-
const curPathObjDeepCopy = JSON.parse(JSON.stringify(curPathObj));
|
123
|
-
curPathObjDeepCopy["post"]["tags"] = ["Fuse"];
|
124
|
-
delete curPathObjDeepCopy["post"]["parameters"];
|
125
|
-
finalPathsObj[curPathKey] = curPathObjDeepCopy;
|
126
|
-
}
|
127
|
-
|
128
|
-
addComponentSchema(curSpec, finalSchemaObj);
|
129
|
-
}
|
130
|
-
|
131
|
-
spec.paths = finalPathsObj;
|
132
|
-
spec.components.schemas = finalSchemaObj;
|
133
|
-
const finalSpec = JSON.parse(
|
134
|
-
JSON.stringify(spec).replaceAll("waterloo/Common.json", "")
|
135
|
-
);
|
136
|
-
fs.writeFileSync("2023-01-25.json", JSON.stringify(finalSpec, null, 4));
|