fuse_client 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/2023-01-25.json +1736 -0
- data/fuse-ruby-openapi/.gitignore +39 -0
- data/fuse-ruby-openapi/.gitlab-ci.yml +26 -0
- data/fuse-ruby-openapi/.openapi-generator/FILES +220 -0
- data/fuse-ruby-openapi/.openapi-generator/VERSION +1 -0
- data/fuse-ruby-openapi/.openapi-generator-ignore +23 -0
- data/fuse-ruby-openapi/.rspec +2 -0
- data/fuse-ruby-openapi/.rubocop.yml +148 -0
- data/fuse-ruby-openapi/.travis.yml +14 -0
- data/fuse-ruby-openapi/Gemfile +9 -0
- data/fuse-ruby-openapi/README.md +258 -0
- data/fuse-ruby-openapi/Rakefile +10 -0
- data/fuse-ruby-openapi/docs/CreateAssetReportRequest.md +20 -0
- data/fuse-ruby-openapi/docs/CreateAssetReportResponse.md +20 -0
- data/fuse-ruby-openapi/docs/CreateLinkTokenRequest.md +28 -0
- data/fuse-ruby-openapi/docs/CreateLinkTokenRequestMx.md +18 -0
- data/fuse-ruby-openapi/docs/CreateLinkTokenRequestPlaid.md +18 -0
- data/fuse-ruby-openapi/docs/CreateLinkTokenRequestPlaidConfig.md +18 -0
- data/fuse-ruby-openapi/docs/CreateLinkTokenResponse.md +20 -0
- data/fuse-ruby-openapi/docs/CreateSessionRequest.md +22 -0
- data/fuse-ruby-openapi/docs/CreateSessionRequestMx.md +24 -0
- data/fuse-ruby-openapi/docs/CreateSessionRequestPlaid.md +18 -0
- data/fuse-ruby-openapi/docs/CreateSessionResponse.md +22 -0
- data/fuse-ruby-openapi/docs/ExchangeFinancialConnectionsPublicTokenRequest.md +18 -0
- data/fuse-ruby-openapi/docs/ExchangeFinancialConnectionsPublicTokenResponse.md +22 -0
- data/fuse-ruby-openapi/docs/FinancialConnectionsAccount.md +32 -0
- data/fuse-ruby-openapi/docs/FinancialConnectionsAccountBalance.md +24 -0
- data/fuse-ruby-openapi/docs/FinancialConnectionsAccountDetails.md +22 -0
- data/fuse-ruby-openapi/docs/FinancialConnectionsAccountDetailsAch.md +24 -0
- data/fuse-ruby-openapi/docs/FinancialConnectionsAccountInstitution.md +18 -0
- data/fuse-ruby-openapi/docs/FinancialConnectionsAccountLiability.md +46 -0
- data/fuse-ruby-openapi/docs/FinancialConnectionsAccountLiabilityAllOf.md +30 -0
- data/fuse-ruby-openapi/docs/FinancialConnectionsAccountLiabilityAllOfAprs.md +20 -0
- data/fuse-ruby-openapi/docs/FinancialConnectionsHolding.md +26 -0
- data/fuse-ruby-openapi/docs/FinancialConnectionsInvestmentAccount.md +32 -0
- data/fuse-ruby-openapi/docs/FinancialConnectionsInvestmentSecurity.md +26 -0
- data/fuse-ruby-openapi/docs/FinancialConnectionsInvestmentTransaction.md +18 -0
- data/fuse-ruby-openapi/docs/FinancialConnectionsInvestmentTransactionDataInner.md +32 -0
- data/fuse-ruby-openapi/docs/FinancialConnectionsOwner.md +24 -0
- data/fuse-ruby-openapi/docs/FinancialConnectionsOwnerAddressesInner.md +20 -0
- data/fuse-ruby-openapi/docs/FinancialConnectionsOwnerAddressesInnerData.md +26 -0
- data/fuse-ruby-openapi/docs/FinancialConnectionsOwnerEmailsInner.md +22 -0
- data/fuse-ruby-openapi/docs/FinancialConnectionsOwnerNamesInner.md +20 -0
- data/fuse-ruby-openapi/docs/FinancialConnectionsOwnerPhoneNumbersInner.md +22 -0
- data/fuse-ruby-openapi/docs/FuseApi.md +1154 -0
- data/fuse-ruby-openapi/docs/FuseApiError.md +28 -0
- data/fuse-ruby-openapi/docs/FuseApiErrorData.md +20 -0
- data/fuse-ruby-openapi/docs/FuseApiWarning.md +28 -0
- data/fuse-ruby-openapi/docs/FuseApiWarningData.md +20 -0
- data/fuse-ruby-openapi/docs/GetAssetReportRequest.md +18 -0
- data/fuse-ruby-openapi/docs/GetAssetReportResponse.md +18 -0
- data/fuse-ruby-openapi/docs/GetAssetReportResponseReport.md +28 -0
- data/fuse-ruby-openapi/docs/GetAssetReportResponseReportAccountsInner.md +24 -0
- data/fuse-ruby-openapi/docs/GetAssetReportResponseReportAccountsInnerBalances.md +22 -0
- data/fuse-ruby-openapi/docs/GetAssetReportResponseReportAccountsInnerHistoricalBalancesInner.md +22 -0
- data/fuse-ruby-openapi/docs/GetFinancialConnectionsAccountBalanceResponse.md +18 -0
- data/fuse-ruby-openapi/docs/GetFinancialConnectionsAccountDetailsRequest.md +18 -0
- data/fuse-ruby-openapi/docs/GetFinancialConnectionsAccountDetailsResponse.md +18 -0
- data/fuse-ruby-openapi/docs/GetFinancialConnectionsAccountsRequest.md +18 -0
- data/fuse-ruby-openapi/docs/GetFinancialConnectionsAccountsResponse.md +18 -0
- data/fuse-ruby-openapi/docs/GetFinancialConnectionsBalanceRequest.md +18 -0
- data/fuse-ruby-openapi/docs/GetFinancialConnectionsOwnersRequest.md +18 -0
- data/fuse-ruby-openapi/docs/GetFinancialConnectionsOwnersResponse.md +18 -0
- data/fuse-ruby-openapi/docs/GetFinancialConnectionsOwnersResponseAccountsInner.md +20 -0
- data/fuse-ruby-openapi/docs/GetInvestmentHoldingsRequest.md +18 -0
- data/fuse-ruby-openapi/docs/GetInvestmentHoldingsResponse.md +24 -0
- data/fuse-ruby-openapi/docs/GetInvestmentTransactionsRequest.md +18 -0
- data/fuse-ruby-openapi/docs/GetInvestmentTransactionsResponse.md +24 -0
- data/fuse-ruby-openapi/docs/GetLiabilitiesRequest.md +18 -0
- data/fuse-ruby-openapi/docs/GetLiabilitiesResponse.md +20 -0
- data/fuse-ruby-openapi/docs/GetTransactionsRequest.md +22 -0
- data/fuse-ruby-openapi/docs/GetTransactionsResponse.md +22 -0
- data/fuse-ruby-openapi/docs/GetTransactionsResponseDataInner.md +38 -0
- data/fuse-ruby-openapi/docs/GetTransactionsResponseDataInnerMerchant.md +18 -0
- data/fuse-ruby-openapi/docs/SyncFinancialConnectionsDataResponse.md +18 -0
- data/fuse-ruby-openapi/docs/SyncTransactionsRequest.md +22 -0
- data/fuse-ruby-openapi/docs/SyncTransactionsResponse.md +26 -0
- data/fuse-ruby-openapi/docs/SyncTransactionsResponseRemovedInner.md +18 -0
- data/fuse-ruby-openapi/docs/TransactionCommonModel.md +18 -0
- data/fuse-ruby-openapi/fuse_client.gemspec +38 -0
- data/fuse-ruby-openapi/git_push.sh +57 -0
- data/fuse-ruby-openapi/lib/fuse_client/api/fuse_api.rb +994 -0
- data/fuse-ruby-openapi/lib/fuse_client/api_client.rb +392 -0
- data/fuse-ruby-openapi/lib/fuse_client/api_error.rb +57 -0
- data/fuse-ruby-openapi/lib/fuse_client/configuration.rb +349 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/create_asset_report_request.rb +268 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/create_asset_report_response.rb +230 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/create_link_token_request.rb +277 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/create_link_token_request_mx.rb +221 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/create_link_token_request_plaid.rb +220 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/create_link_token_request_plaid_config.rb +225 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/create_link_token_response.rb +230 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/create_session_request.rb +266 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/create_session_request_mx.rb +247 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/create_session_request_plaid.rb +238 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/create_session_response.rb +240 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/exchange_financial_connections_public_token_request.rb +220 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +240 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account.rb +288 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account_balance.rb +250 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account_details.rb +239 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account_details_ach.rb +250 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account_institution.rb +219 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account_liability.rb +368 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account_liability_all_of.rb +282 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account_liability_all_of_aprs.rb +230 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_holding.rb +260 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_investment_account.rb +288 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_investment_security.rb +260 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_investment_transaction.rb +221 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_investment_transaction_data_inner.rb +290 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_owner.rb +255 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_owner_addresses_inner.rb +229 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +260 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_owner_emails_inner.rb +274 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_owner_names_inner.rb +230 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_owner_phone_numbers_inner.rb +274 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/fuse_api_error.rb +298 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/fuse_api_error_data.rb +230 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/fuse_api_warning.rb +298 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/fuse_api_warning_data.rb +230 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_asset_report_request.rb +225 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_asset_report_response.rb +219 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_asset_report_response_report.rb +275 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_asset_report_response_report_accounts_inner.rb +252 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_asset_report_response_report_accounts_inner_balances.rb +240 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_asset_report_response_report_accounts_inner_historical_balances_inner.rb +240 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_account_balance_response.rb +221 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_account_details_request.rb +225 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_account_details_response.rb +221 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_accounts_request.rb +225 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_accounts_response.rb +221 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_balance_request.rb +225 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_owners_request.rb +225 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_owners_response.rb +221 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +231 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_investment_holdings_request.rb +225 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_investment_holdings_response.rb +253 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_investment_transactions_request.rb +225 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_investment_transactions_response.rb +253 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_liabilities_request.rb +225 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_liabilities_response.rb +231 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_transactions_request.rb +245 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_transactions_response.rb +241 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_transactions_response_data_inner.rb +321 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/get_transactions_response_data_inner_merchant.rb +220 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/sync_financial_connections_data_response.rb +220 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/sync_transactions_request.rb +245 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/sync_transactions_response.rb +266 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/sync_transactions_response_removed_inner.rb +219 -0
- data/fuse-ruby-openapi/lib/fuse_client/models/transaction_common_model.rb +221 -0
- data/fuse-ruby-openapi/lib/fuse_client/version.rb +15 -0
- data/fuse-ruby-openapi/lib/fuse_client.rb +106 -0
- data/fuse-ruby-openapi/spec/api/fuse_api_spec.rb +201 -0
- data/fuse-ruby-openapi/spec/api_client_spec.rb +226 -0
- data/fuse-ruby-openapi/spec/configuration_spec.rb +42 -0
- data/fuse-ruby-openapi/spec/models/create_asset_report_request_spec.rb +40 -0
- data/fuse-ruby-openapi/spec/models/create_asset_report_response_spec.rb +40 -0
- data/fuse-ruby-openapi/spec/models/create_link_token_request_mx_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/create_link_token_request_plaid_config_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/create_link_token_request_plaid_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/create_link_token_request_spec.rb +64 -0
- data/fuse-ruby-openapi/spec/models/create_link_token_response_spec.rb +40 -0
- data/fuse-ruby-openapi/spec/models/create_session_request_mx_spec.rb +52 -0
- data/fuse-ruby-openapi/spec/models/create_session_request_plaid_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/create_session_request_spec.rb +50 -0
- data/fuse-ruby-openapi/spec/models/create_session_response_spec.rb +46 -0
- data/fuse-ruby-openapi/spec/models/exchange_financial_connections_public_token_request_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/exchange_financial_connections_public_token_response_spec.rb +46 -0
- data/fuse-ruby-openapi/spec/models/financial_connections_account_balance_spec.rb +52 -0
- data/fuse-ruby-openapi/spec/models/financial_connections_account_details_ach_spec.rb +52 -0
- data/fuse-ruby-openapi/spec/models/financial_connections_account_details_spec.rb +46 -0
- data/fuse-ruby-openapi/spec/models/financial_connections_account_institution_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/financial_connections_account_liability_all_of_aprs_spec.rb +40 -0
- data/fuse-ruby-openapi/spec/models/financial_connections_account_liability_all_of_spec.rb +70 -0
- data/fuse-ruby-openapi/spec/models/financial_connections_account_liability_spec.rb +118 -0
- data/fuse-ruby-openapi/spec/models/financial_connections_account_spec.rb +76 -0
- data/fuse-ruby-openapi/spec/models/financial_connections_holding_spec.rb +58 -0
- data/fuse-ruby-openapi/spec/models/financial_connections_investment_account_spec.rb +76 -0
- data/fuse-ruby-openapi/spec/models/financial_connections_investment_security_spec.rb +58 -0
- data/fuse-ruby-openapi/spec/models/financial_connections_investment_transaction_data_inner_spec.rb +76 -0
- data/fuse-ruby-openapi/spec/models/financial_connections_investment_transaction_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +58 -0
- data/fuse-ruby-openapi/spec/models/financial_connections_owner_addresses_inner_spec.rb +40 -0
- data/fuse-ruby-openapi/spec/models/financial_connections_owner_emails_inner_spec.rb +50 -0
- data/fuse-ruby-openapi/spec/models/financial_connections_owner_names_inner_spec.rb +40 -0
- data/fuse-ruby-openapi/spec/models/financial_connections_owner_phone_numbers_inner_spec.rb +50 -0
- data/fuse-ruby-openapi/spec/models/financial_connections_owner_spec.rb +52 -0
- data/fuse-ruby-openapi/spec/models/fuse_api_error_data_spec.rb +40 -0
- data/fuse-ruby-openapi/spec/models/fuse_api_error_spec.rb +68 -0
- data/fuse-ruby-openapi/spec/models/fuse_api_warning_data_spec.rb +40 -0
- data/fuse-ruby-openapi/spec/models/fuse_api_warning_spec.rb +68 -0
- data/fuse-ruby-openapi/spec/models/get_asset_report_request_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/get_asset_report_response_report_accounts_inner_balances_spec.rb +46 -0
- data/fuse-ruby-openapi/spec/models/get_asset_report_response_report_accounts_inner_historical_balances_inner_spec.rb +46 -0
- data/fuse-ruby-openapi/spec/models/get_asset_report_response_report_accounts_inner_spec.rb +52 -0
- data/fuse-ruby-openapi/spec/models/get_asset_report_response_report_spec.rb +64 -0
- data/fuse-ruby-openapi/spec/models/get_asset_report_response_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/get_financial_connections_account_balance_response_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/get_financial_connections_account_details_request_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/get_financial_connections_account_details_response_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/get_financial_connections_accounts_request_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/get_financial_connections_accounts_response_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/get_financial_connections_balance_request_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/get_financial_connections_owners_request_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +40 -0
- data/fuse-ruby-openapi/spec/models/get_financial_connections_owners_response_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/get_investment_holdings_request_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/get_investment_holdings_response_spec.rb +52 -0
- data/fuse-ruby-openapi/spec/models/get_investment_transactions_request_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/get_investment_transactions_response_spec.rb +52 -0
- data/fuse-ruby-openapi/spec/models/get_liabilities_request_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/get_liabilities_response_spec.rb +40 -0
- data/fuse-ruby-openapi/spec/models/get_transactions_request_spec.rb +46 -0
- data/fuse-ruby-openapi/spec/models/get_transactions_response_data_inner_merchant_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/get_transactions_response_data_inner_spec.rb +94 -0
- data/fuse-ruby-openapi/spec/models/get_transactions_response_spec.rb +46 -0
- data/fuse-ruby-openapi/spec/models/sync_financial_connections_data_response_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/sync_transactions_request_spec.rb +46 -0
- data/fuse-ruby-openapi/spec/models/sync_transactions_response_removed_inner_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/models/sync_transactions_response_spec.rb +58 -0
- data/fuse-ruby-openapi/spec/models/transaction_common_model_spec.rb +34 -0
- data/fuse-ruby-openapi/spec/spec_helper.rb +111 -0
- data/generate-fuse-openapi-spec.js +136 -0
- metadata +307 -0
@@ -0,0 +1,15 @@
|
|
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
|
+
module FuseClient
|
14
|
+
VERSION = '0.2.0'
|
15
|
+
end
|
@@ -0,0 +1,106 @@
|
|
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
|
+
# Common files
|
14
|
+
require 'fuse_client/api_client'
|
15
|
+
require 'fuse_client/api_error'
|
16
|
+
require 'fuse_client/version'
|
17
|
+
require 'fuse_client/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'fuse_client/models/create_asset_report_request'
|
21
|
+
require 'fuse_client/models/create_asset_report_response'
|
22
|
+
require 'fuse_client/models/create_link_token_request'
|
23
|
+
require 'fuse_client/models/create_link_token_request_mx'
|
24
|
+
require 'fuse_client/models/create_link_token_request_plaid'
|
25
|
+
require 'fuse_client/models/create_link_token_request_plaid_config'
|
26
|
+
require 'fuse_client/models/create_link_token_response'
|
27
|
+
require 'fuse_client/models/create_session_request'
|
28
|
+
require 'fuse_client/models/create_session_request_mx'
|
29
|
+
require 'fuse_client/models/create_session_request_plaid'
|
30
|
+
require 'fuse_client/models/create_session_response'
|
31
|
+
require 'fuse_client/models/exchange_financial_connections_public_token_request'
|
32
|
+
require 'fuse_client/models/exchange_financial_connections_public_token_response'
|
33
|
+
require 'fuse_client/models/financial_connections_account'
|
34
|
+
require 'fuse_client/models/financial_connections_account_balance'
|
35
|
+
require 'fuse_client/models/financial_connections_account_details'
|
36
|
+
require 'fuse_client/models/financial_connections_account_details_ach'
|
37
|
+
require 'fuse_client/models/financial_connections_account_institution'
|
38
|
+
require 'fuse_client/models/financial_connections_account_liability'
|
39
|
+
require 'fuse_client/models/financial_connections_account_liability_all_of'
|
40
|
+
require 'fuse_client/models/financial_connections_account_liability_all_of_aprs'
|
41
|
+
require 'fuse_client/models/financial_connections_holding'
|
42
|
+
require 'fuse_client/models/financial_connections_investment_account'
|
43
|
+
require 'fuse_client/models/financial_connections_investment_security'
|
44
|
+
require 'fuse_client/models/financial_connections_investment_transaction'
|
45
|
+
require 'fuse_client/models/financial_connections_investment_transaction_data_inner'
|
46
|
+
require 'fuse_client/models/financial_connections_owner'
|
47
|
+
require 'fuse_client/models/financial_connections_owner_addresses_inner'
|
48
|
+
require 'fuse_client/models/financial_connections_owner_addresses_inner_data'
|
49
|
+
require 'fuse_client/models/financial_connections_owner_emails_inner'
|
50
|
+
require 'fuse_client/models/financial_connections_owner_names_inner'
|
51
|
+
require 'fuse_client/models/financial_connections_owner_phone_numbers_inner'
|
52
|
+
require 'fuse_client/models/fuse_api_error'
|
53
|
+
require 'fuse_client/models/fuse_api_error_data'
|
54
|
+
require 'fuse_client/models/fuse_api_warning'
|
55
|
+
require 'fuse_client/models/fuse_api_warning_data'
|
56
|
+
require 'fuse_client/models/get_asset_report_request'
|
57
|
+
require 'fuse_client/models/get_asset_report_response'
|
58
|
+
require 'fuse_client/models/get_asset_report_response_report'
|
59
|
+
require 'fuse_client/models/get_asset_report_response_report_accounts_inner'
|
60
|
+
require 'fuse_client/models/get_asset_report_response_report_accounts_inner_balances'
|
61
|
+
require 'fuse_client/models/get_asset_report_response_report_accounts_inner_historical_balances_inner'
|
62
|
+
require 'fuse_client/models/get_financial_connections_account_balance_response'
|
63
|
+
require 'fuse_client/models/get_financial_connections_account_details_request'
|
64
|
+
require 'fuse_client/models/get_financial_connections_account_details_response'
|
65
|
+
require 'fuse_client/models/get_financial_connections_accounts_request'
|
66
|
+
require 'fuse_client/models/get_financial_connections_accounts_response'
|
67
|
+
require 'fuse_client/models/get_financial_connections_balance_request'
|
68
|
+
require 'fuse_client/models/get_financial_connections_owners_request'
|
69
|
+
require 'fuse_client/models/get_financial_connections_owners_response'
|
70
|
+
require 'fuse_client/models/get_financial_connections_owners_response_accounts_inner'
|
71
|
+
require 'fuse_client/models/get_investment_holdings_request'
|
72
|
+
require 'fuse_client/models/get_investment_holdings_response'
|
73
|
+
require 'fuse_client/models/get_investment_transactions_request'
|
74
|
+
require 'fuse_client/models/get_investment_transactions_response'
|
75
|
+
require 'fuse_client/models/get_liabilities_request'
|
76
|
+
require 'fuse_client/models/get_liabilities_response'
|
77
|
+
require 'fuse_client/models/get_transactions_request'
|
78
|
+
require 'fuse_client/models/get_transactions_response'
|
79
|
+
require 'fuse_client/models/get_transactions_response_data_inner'
|
80
|
+
require 'fuse_client/models/get_transactions_response_data_inner_merchant'
|
81
|
+
require 'fuse_client/models/sync_financial_connections_data_response'
|
82
|
+
require 'fuse_client/models/sync_transactions_request'
|
83
|
+
require 'fuse_client/models/sync_transactions_response'
|
84
|
+
require 'fuse_client/models/sync_transactions_response_removed_inner'
|
85
|
+
require 'fuse_client/models/transaction_common_model'
|
86
|
+
|
87
|
+
# APIs
|
88
|
+
require 'fuse_client/api/fuse_api'
|
89
|
+
|
90
|
+
module FuseClient
|
91
|
+
class << self
|
92
|
+
# Customize default settings for the SDK using block.
|
93
|
+
# FuseClient.configure do |config|
|
94
|
+
# config.username = "xxx"
|
95
|
+
# config.password = "xxx"
|
96
|
+
# end
|
97
|
+
# If no block given, return the default Configuration object.
|
98
|
+
def configure
|
99
|
+
if block_given?
|
100
|
+
yield(Configuration.default)
|
101
|
+
else
|
102
|
+
Configuration.default
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
@@ -0,0 +1,201 @@
|
|
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
|
+
|
16
|
+
# Unit tests for FuseClient::FuseApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'FuseApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = FuseClient::FuseApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of FuseApi' do
|
30
|
+
it 'should create an instance of FuseApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(FuseClient::FuseApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create_asset_report
|
36
|
+
# Use this endpoint to generate an Asset Report for a user.
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [CreateAssetReportRequest] :create_asset_report_request
|
39
|
+
# @return [CreateAssetReportResponse]
|
40
|
+
describe 'create_asset_report test' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for create_link_token
|
47
|
+
# Create a link token to start the process of a user connecting to a specific financial institution.
|
48
|
+
# @param [Hash] opts the optional parameters
|
49
|
+
# @option opts [CreateLinkTokenRequest] :create_link_token_request
|
50
|
+
# @return [CreateLinkTokenResponse]
|
51
|
+
describe 'create_link_token test' do
|
52
|
+
it 'should work' do
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# unit tests for create_session
|
58
|
+
# Creates a session that returns a client_secret which is required as a parameter when initializing the Fuse SDK.
|
59
|
+
# @param [Hash] opts the optional parameters
|
60
|
+
# @option opts [CreateSessionRequest] :create_session_request
|
61
|
+
# @return [CreateSessionResponse]
|
62
|
+
describe 'create_session test' do
|
63
|
+
it 'should work' do
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# unit tests for exchange_public_token
|
69
|
+
# API to exchange a public token for an access token and financial connection id
|
70
|
+
# @param [Hash] opts the optional parameters
|
71
|
+
# @option opts [ExchangeFinancialConnectionsPublicTokenRequest] :exchange_financial_connections_public_token_request
|
72
|
+
# @return [ExchangeFinancialConnectionsPublicTokenResponse]
|
73
|
+
describe 'exchange_public_token test' do
|
74
|
+
it 'should work' do
|
75
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# unit tests for get_asset_report
|
80
|
+
# Retrieves the Asset Report in JSON format.
|
81
|
+
# @param [Hash] opts the optional parameters
|
82
|
+
# @option opts [GetAssetReportRequest] :get_asset_report_request
|
83
|
+
# @return [GetAssetReportResponse]
|
84
|
+
describe 'get_asset_report test' do
|
85
|
+
it 'should work' do
|
86
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
# unit tests for get_financial_connections_account_details
|
91
|
+
# Get account details
|
92
|
+
# @param get_financial_connections_account_details_request
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @return [GetFinancialConnectionsAccountDetailsResponse]
|
95
|
+
describe 'get_financial_connections_account_details test' do
|
96
|
+
it 'should work' do
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
# unit tests for get_financial_connections_accounts
|
102
|
+
# Get accounts
|
103
|
+
# @param get_financial_connections_accounts_request
|
104
|
+
# @param [Hash] opts the optional parameters
|
105
|
+
# @return [GetFinancialConnectionsAccountsResponse]
|
106
|
+
describe 'get_financial_connections_accounts test' do
|
107
|
+
it 'should work' do
|
108
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
# unit tests for get_financial_connections_balances
|
113
|
+
# Get balances
|
114
|
+
# @param get_financial_connections_balance_request
|
115
|
+
# @param [Hash] opts the optional parameters
|
116
|
+
# @return [GetFinancialConnectionsAccountBalanceResponse]
|
117
|
+
describe 'get_financial_connections_balances test' do
|
118
|
+
it 'should work' do
|
119
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
# unit tests for get_financial_connections_owners
|
124
|
+
# Get account owners
|
125
|
+
# @param get_financial_connections_owners_request
|
126
|
+
# @param [Hash] opts the optional parameters
|
127
|
+
# @return [GetFinancialConnectionsOwnersResponse]
|
128
|
+
describe 'get_financial_connections_owners test' do
|
129
|
+
it 'should work' do
|
130
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
# unit tests for get_financial_connections_transactions
|
135
|
+
# Get transactions
|
136
|
+
# @param get_transactions_request
|
137
|
+
# @param [Hash] opts the optional parameters
|
138
|
+
# @return [GetTransactionsResponse]
|
139
|
+
describe 'get_financial_connections_transactions test' do
|
140
|
+
it 'should work' do
|
141
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
# unit tests for get_investment_holdings
|
146
|
+
# Get investment holdings
|
147
|
+
# @param get_investment_holdings_request
|
148
|
+
# @param [Hash] opts the optional parameters
|
149
|
+
# @return [GetInvestmentHoldingsResponse]
|
150
|
+
describe 'get_investment_holdings test' do
|
151
|
+
it 'should work' do
|
152
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
# unit tests for get_investment_transactions
|
157
|
+
# Get investment holdings
|
158
|
+
# @param get_investment_transactions_request
|
159
|
+
# @param [Hash] opts the optional parameters
|
160
|
+
# @return [GetInvestmentTransactionsResponse]
|
161
|
+
describe 'get_investment_transactions test' do
|
162
|
+
it 'should work' do
|
163
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
# unit tests for sync_financial_connections_data
|
168
|
+
# Sync financial connections data
|
169
|
+
# Call this endpoint upon receiving a SYNC_REQUIRED webhook. This will keep the financial connections data up to date.
|
170
|
+
# @param body
|
171
|
+
# @param [Hash] opts the optional parameters
|
172
|
+
# @return [SyncFinancialConnectionsDataResponse]
|
173
|
+
describe 'sync_financial_connections_data test' do
|
174
|
+
it 'should work' do
|
175
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
# unit tests for sync_financial_connections_transactions
|
180
|
+
# Sync transactions
|
181
|
+
# @param sync_transactions_request
|
182
|
+
# @param [Hash] opts the optional parameters
|
183
|
+
# @return [SyncTransactionsResponse]
|
184
|
+
describe 'sync_financial_connections_transactions test' do
|
185
|
+
it 'should work' do
|
186
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
# unit tests for v1_financial_connections_liabilities_post
|
191
|
+
# Get liabilities
|
192
|
+
# @param get_liabilities_request
|
193
|
+
# @param [Hash] opts the optional parameters
|
194
|
+
# @return [GetLiabilitiesResponse]
|
195
|
+
describe 'v1_financial_connections_liabilities_post test' do
|
196
|
+
it 'should work' do
|
197
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
end
|
@@ -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.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
|
15
|
+
describe FuseClient::ApiClient do
|
16
|
+
context 'initialization' do
|
17
|
+
context 'URL stuff' do
|
18
|
+
context 'host' do
|
19
|
+
it 'removes http from host' do
|
20
|
+
FuseClient.configure { |c| c.host = 'http://example.com' }
|
21
|
+
expect(FuseClient::Configuration.default.host).to eq('example.com')
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'removes https from host' do
|
25
|
+
FuseClient.configure { |c| c.host = 'https://wookiee.com' }
|
26
|
+
expect(FuseClient::ApiClient.default.config.host).to eq('wookiee.com')
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'removes trailing path from host' do
|
30
|
+
FuseClient.configure { |c| c.host = 'hobo.com/v4' }
|
31
|
+
expect(FuseClient::Configuration.default.host).to eq('hobo.com')
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
context 'base_path' do
|
36
|
+
it "prepends a slash to base_path" do
|
37
|
+
FuseClient.configure { |c| c.base_path = 'v4/dog' }
|
38
|
+
expect(FuseClient::Configuration.default.base_path).to eq('/v4/dog')
|
39
|
+
end
|
40
|
+
|
41
|
+
it "doesn't prepend a slash if one is already there" do
|
42
|
+
FuseClient.configure { |c| c.base_path = '/v4/dog' }
|
43
|
+
expect(FuseClient::Configuration.default.base_path).to eq('/v4/dog')
|
44
|
+
end
|
45
|
+
|
46
|
+
it "ends up as a blank string if nil" do
|
47
|
+
FuseClient.configure { |c| c.base_path = nil }
|
48
|
+
expect(FuseClient::Configuration.default.base_path).to eq('')
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'params_encoding in #build_request' do
|
55
|
+
let(:config) { FuseClient::Configuration.new }
|
56
|
+
let(:api_client) { FuseClient::ApiClient.new(config) }
|
57
|
+
|
58
|
+
it 'defaults to nil' do
|
59
|
+
expect(FuseClient::Configuration.default.params_encoding).to eq(nil)
|
60
|
+
expect(config.params_encoding).to eq(nil)
|
61
|
+
|
62
|
+
request = api_client.build_request(:get, '/test')
|
63
|
+
expect(request.options[:params_encoding]).to eq(nil)
|
64
|
+
end
|
65
|
+
|
66
|
+
it 'can be customized' do
|
67
|
+
config.params_encoding = :multi
|
68
|
+
request = api_client.build_request(:get, '/test')
|
69
|
+
expect(request.options[:params_encoding]).to eq(:multi)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
describe 'timeout in #build_request' do
|
74
|
+
let(:config) { FuseClient::Configuration.new }
|
75
|
+
let(:api_client) { FuseClient::ApiClient.new(config) }
|
76
|
+
|
77
|
+
it 'defaults to 0' do
|
78
|
+
expect(FuseClient::Configuration.default.timeout).to eq(0)
|
79
|
+
expect(config.timeout).to eq(0)
|
80
|
+
|
81
|
+
request = api_client.build_request(:get, '/test')
|
82
|
+
expect(request.options[:timeout]).to eq(0)
|
83
|
+
end
|
84
|
+
|
85
|
+
it 'can be customized' do
|
86
|
+
config.timeout = 100
|
87
|
+
request = api_client.build_request(:get, '/test')
|
88
|
+
expect(request.options[:timeout]).to eq(100)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
describe '#deserialize' do
|
93
|
+
it "handles Array<Integer>" do
|
94
|
+
api_client = FuseClient::ApiClient.new
|
95
|
+
headers = { 'Content-Type' => 'application/json' }
|
96
|
+
response = double('response', headers: headers, body: '[12, 34]')
|
97
|
+
data = api_client.deserialize(response, 'Array<Integer>')
|
98
|
+
expect(data).to be_instance_of(Array)
|
99
|
+
expect(data).to eq([12, 34])
|
100
|
+
end
|
101
|
+
|
102
|
+
it 'handles Array<Array<Integer>>' do
|
103
|
+
api_client = FuseClient::ApiClient.new
|
104
|
+
headers = { 'Content-Type' => 'application/json' }
|
105
|
+
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
106
|
+
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
107
|
+
expect(data).to be_instance_of(Array)
|
108
|
+
expect(data).to eq([[12, 34], [56]])
|
109
|
+
end
|
110
|
+
|
111
|
+
it 'handles Hash<String, String>' do
|
112
|
+
api_client = FuseClient::ApiClient.new
|
113
|
+
headers = { 'Content-Type' => 'application/json' }
|
114
|
+
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
115
|
+
data = api_client.deserialize(response, 'Hash<String, String>')
|
116
|
+
expect(data).to be_instance_of(Hash)
|
117
|
+
expect(data).to eq(:message => 'Hello')
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
describe "#object_to_hash" do
|
122
|
+
it 'ignores nils and includes empty arrays' do
|
123
|
+
# uncomment below to test object_to_hash for model
|
124
|
+
# api_client = FuseClient::ApiClient.new
|
125
|
+
# _model = FuseClient::ModelName.new
|
126
|
+
# update the model attribute below
|
127
|
+
# _model.id = 1
|
128
|
+
# update the expected value (hash) below
|
129
|
+
# expected = {id: 1, name: '', tags: []}
|
130
|
+
# expect(api_client.object_to_hash(_model)).to eq(expected)
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
describe '#build_collection_param' do
|
135
|
+
let(:param) { ['aa', 'bb', 'cc'] }
|
136
|
+
let(:api_client) { FuseClient::ApiClient.new }
|
137
|
+
|
138
|
+
it 'works for csv' do
|
139
|
+
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
140
|
+
end
|
141
|
+
|
142
|
+
it 'works for ssv' do
|
143
|
+
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
|
144
|
+
end
|
145
|
+
|
146
|
+
it 'works for tsv' do
|
147
|
+
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
|
148
|
+
end
|
149
|
+
|
150
|
+
it 'works for pipes' do
|
151
|
+
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
|
152
|
+
end
|
153
|
+
|
154
|
+
it 'works for multi' do
|
155
|
+
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
|
156
|
+
end
|
157
|
+
|
158
|
+
it 'fails for invalid collection format' do
|
159
|
+
expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
describe '#json_mime?' do
|
164
|
+
let(:api_client) { FuseClient::ApiClient.new }
|
165
|
+
|
166
|
+
it 'works' do
|
167
|
+
expect(api_client.json_mime?(nil)).to eq false
|
168
|
+
expect(api_client.json_mime?('')).to eq false
|
169
|
+
|
170
|
+
expect(api_client.json_mime?('application/json')).to eq true
|
171
|
+
expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
|
172
|
+
expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
|
173
|
+
|
174
|
+
expect(api_client.json_mime?('application/xml')).to eq false
|
175
|
+
expect(api_client.json_mime?('text/plain')).to eq false
|
176
|
+
expect(api_client.json_mime?('application/jsonp')).to eq false
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
describe '#select_header_accept' do
|
181
|
+
let(:api_client) { FuseClient::ApiClient.new }
|
182
|
+
|
183
|
+
it 'works' do
|
184
|
+
expect(api_client.select_header_accept(nil)).to be_nil
|
185
|
+
expect(api_client.select_header_accept([])).to be_nil
|
186
|
+
|
187
|
+
expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
|
188
|
+
expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
189
|
+
expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
190
|
+
|
191
|
+
expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
|
192
|
+
expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
describe '#select_header_content_type' do
|
197
|
+
let(:api_client) { FuseClient::ApiClient.new }
|
198
|
+
|
199
|
+
it 'works' do
|
200
|
+
expect(api_client.select_header_content_type(nil)).to be_nil
|
201
|
+
expect(api_client.select_header_content_type([])).to be_nil
|
202
|
+
|
203
|
+
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
204
|
+
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
205
|
+
expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
206
|
+
expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
|
207
|
+
expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
describe '#sanitize_filename' do
|
212
|
+
let(:api_client) { FuseClient::ApiClient.new }
|
213
|
+
|
214
|
+
it 'works' do
|
215
|
+
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
216
|
+
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
217
|
+
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
218
|
+
expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
|
219
|
+
expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
|
220
|
+
expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
|
221
|
+
expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
|
222
|
+
expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
|
223
|
+
expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
|
224
|
+
end
|
225
|
+
end
|
226
|
+
end
|
@@ -0,0 +1,42 @@
|
|
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
|
+
|
15
|
+
describe FuseClient::Configuration do
|
16
|
+
let(:config) { FuseClient::Configuration.default }
|
17
|
+
|
18
|
+
before(:each) do
|
19
|
+
# uncomment below to setup host and base_path
|
20
|
+
# require 'URI'
|
21
|
+
# uri = URI.parse("https://yz9sph5c42.execute-api.us-east-1.amazonaws.com")
|
22
|
+
# FuseClient.configure do |c|
|
23
|
+
# c.host = uri.host
|
24
|
+
# c.base_path = uri.path
|
25
|
+
# end
|
26
|
+
end
|
27
|
+
|
28
|
+
describe '#base_url' do
|
29
|
+
it 'should have the default value' do
|
30
|
+
# uncomment below to test default value of the base path
|
31
|
+
# expect(config.base_url).to eq("https://yz9sph5c42.execute-api.us-east-1.amazonaws.com")
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'should remove trailing slashes' do
|
35
|
+
[nil, '', '/', '//'].each do |base_path|
|
36
|
+
config.base_path = base_path
|
37
|
+
# uncomment below to test trailing slashes
|
38
|
+
# expect(config.base_url).to eq("https://yz9sph5c42.execute-api.us-east-1.amazonaws.com")
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,40 @@
|
|
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::CreateAssetReportRequest
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe FuseClient::CreateAssetReportRequest do
|
21
|
+
let(:instance) { FuseClient::CreateAssetReportRequest.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CreateAssetReportRequest' do
|
24
|
+
it 'should create an instance of CreateAssetReportRequest' do
|
25
|
+
expect(instance).to be_instance_of(FuseClient::CreateAssetReportRequest)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "access_token"' 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
|
+
describe 'test attribute "days_requested"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
@@ -0,0 +1,40 @@
|
|
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::CreateAssetReportResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe FuseClient::CreateAssetReportResponse do
|
21
|
+
let(:instance) { FuseClient::CreateAssetReportResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CreateAssetReportResponse' do
|
24
|
+
it 'should create an instance of CreateAssetReportResponse' do
|
25
|
+
expect(instance).to be_instance_of(FuseClient::CreateAssetReportResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "asset_report_token"' 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
|
+
describe 'test attribute "asset_report_id"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|