fuse_client 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,46 @@
|
|
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::GetTransactionsRequest
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe FuseClient::GetTransactionsRequest do
|
21
|
+
let(:instance) { FuseClient::GetTransactionsRequest.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GetTransactionsRequest' do
|
24
|
+
it 'should create an instance of GetTransactionsRequest' do
|
25
|
+
expect(instance).to be_instance_of(FuseClient::GetTransactionsRequest)
|
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 "cursor"' 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
|
+
describe 'test attribute "count"' 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
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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::GetTransactionsResponseDataInnerMerchant
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe FuseClient::GetTransactionsResponseDataInnerMerchant do
|
21
|
+
let(:instance) { FuseClient::GetTransactionsResponseDataInnerMerchant.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GetTransactionsResponseDataInnerMerchant' do
|
24
|
+
it 'should create an instance of GetTransactionsResponseDataInnerMerchant' do
|
25
|
+
expect(instance).to be_instance_of(FuseClient::GetTransactionsResponseDataInnerMerchant)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "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
|
@@ -0,0 +1,94 @@
|
|
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::GetTransactionsResponseDataInner
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe FuseClient::GetTransactionsResponseDataInner do
|
21
|
+
let(:instance) { FuseClient::GetTransactionsResponseDataInner.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GetTransactionsResponseDataInner' do
|
24
|
+
it 'should create an instance of GetTransactionsResponseDataInner' do
|
25
|
+
expect(instance).to be_instance_of(FuseClient::GetTransactionsResponseDataInner)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "id"' 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 "remote_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
|
+
describe 'test attribute "remote_account_id"' 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
|
+
describe 'test attribute "amount"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "date"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "description"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "category"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'test attribute "merchant"' do
|
71
|
+
it 'should work' do
|
72
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
describe 'test attribute "status"' do
|
77
|
+
it 'should work' do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
describe 'test attribute "type"' do
|
83
|
+
it 'should work' do
|
84
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
describe 'test attribute "remote_data"' do
|
89
|
+
it 'should work' do
|
90
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
end
|
@@ -0,0 +1,46 @@
|
|
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::GetTransactionsResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe FuseClient::GetTransactionsResponse do
|
21
|
+
let(:instance) { FuseClient::GetTransactionsResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GetTransactionsResponse' do
|
24
|
+
it 'should create an instance of GetTransactionsResponse' do
|
25
|
+
expect(instance).to be_instance_of(FuseClient::GetTransactionsResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "data"' 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 "cursor"' 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
|
+
describe 'test attribute "has_next"' 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
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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::SyncFinancialConnectionsDataResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe FuseClient::SyncFinancialConnectionsDataResponse do
|
21
|
+
let(:instance) { FuseClient::SyncFinancialConnectionsDataResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of SyncFinancialConnectionsDataResponse' do
|
24
|
+
it 'should create an instance of SyncFinancialConnectionsDataResponse' do
|
25
|
+
expect(instance).to be_instance_of(FuseClient::SyncFinancialConnectionsDataResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "message"' 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
|
@@ -0,0 +1,46 @@
|
|
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::SyncTransactionsRequest
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe FuseClient::SyncTransactionsRequest do
|
21
|
+
let(:instance) { FuseClient::SyncTransactionsRequest.new }
|
22
|
+
|
23
|
+
describe 'test an instance of SyncTransactionsRequest' do
|
24
|
+
it 'should create an instance of SyncTransactionsRequest' do
|
25
|
+
expect(instance).to be_instance_of(FuseClient::SyncTransactionsRequest)
|
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 "cursor"' 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
|
+
describe 'test attribute "count"' 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
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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::SyncTransactionsResponseRemovedInner
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe FuseClient::SyncTransactionsResponseRemovedInner do
|
21
|
+
let(:instance) { FuseClient::SyncTransactionsResponseRemovedInner.new }
|
22
|
+
|
23
|
+
describe 'test an instance of SyncTransactionsResponseRemovedInner' do
|
24
|
+
it 'should create an instance of SyncTransactionsResponseRemovedInner' do
|
25
|
+
expect(instance).to be_instance_of(FuseClient::SyncTransactionsResponseRemovedInner)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "transaction_id"' 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
|
@@ -0,0 +1,58 @@
|
|
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::SyncTransactionsResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe FuseClient::SyncTransactionsResponse do
|
21
|
+
let(:instance) { FuseClient::SyncTransactionsResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of SyncTransactionsResponse' do
|
24
|
+
it 'should create an instance of SyncTransactionsResponse' do
|
25
|
+
expect(instance).to be_instance_of(FuseClient::SyncTransactionsResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "added"' 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 "modified"' 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
|
+
describe 'test attribute "removed"' 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
|
+
describe 'test attribute "next_cursor"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "has_next"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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::TransactionCommonModel
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe FuseClient::TransactionCommonModel do
|
21
|
+
let(:instance) { FuseClient::TransactionCommonModel.new }
|
22
|
+
|
23
|
+
describe 'test an instance of TransactionCommonModel' do
|
24
|
+
it 'should create an instance of TransactionCommonModel' do
|
25
|
+
expect(instance).to be_instance_of(FuseClient::TransactionCommonModel)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "data"' 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
|
@@ -0,0 +1,111 @@
|
|
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
|
+
# load the gem
|
14
|
+
require 'fuse_client'
|
15
|
+
|
16
|
+
# The following was generated by the `rspec --init` command. Conventionally, all
|
17
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
18
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
19
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
20
|
+
# files.
|
21
|
+
#
|
22
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
23
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
24
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
25
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
26
|
+
# a separate helper file that requires the additional dependencies and performs
|
27
|
+
# the additional setup, and require it from the spec files that actually need
|
28
|
+
# it.
|
29
|
+
#
|
30
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
31
|
+
# users commonly want.
|
32
|
+
#
|
33
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
34
|
+
RSpec.configure do |config|
|
35
|
+
# rspec-expectations config goes here. You can use an alternate
|
36
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
37
|
+
# assertions if you prefer.
|
38
|
+
config.expect_with :rspec do |expectations|
|
39
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
40
|
+
# and `failure_message` of custom matchers include text for helper methods
|
41
|
+
# defined using `chain`, e.g.:
|
42
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
43
|
+
# # => "be bigger than 2 and smaller than 4"
|
44
|
+
# ...rather than:
|
45
|
+
# # => "be bigger than 2"
|
46
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
47
|
+
end
|
48
|
+
|
49
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
50
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
51
|
+
config.mock_with :rspec do |mocks|
|
52
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
53
|
+
# a real object. This is generally recommended, and will default to
|
54
|
+
# `true` in RSpec 4.
|
55
|
+
mocks.verify_partial_doubles = true
|
56
|
+
end
|
57
|
+
|
58
|
+
# The settings below are suggested to provide a good initial experience
|
59
|
+
# with RSpec, but feel free to customize to your heart's content.
|
60
|
+
=begin
|
61
|
+
# These two settings work together to allow you to limit a spec run
|
62
|
+
# to individual examples or groups you care about by tagging them with
|
63
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
64
|
+
# get run.
|
65
|
+
config.filter_run :focus
|
66
|
+
config.run_all_when_everything_filtered = true
|
67
|
+
|
68
|
+
# Allows RSpec to persist some state between runs in order to support
|
69
|
+
# the `--only-failures` and `--next-failure` CLI options. We recommend
|
70
|
+
# you configure your source control system to ignore this file.
|
71
|
+
config.example_status_persistence_file_path = "spec/examples.txt"
|
72
|
+
|
73
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
74
|
+
# recommended. For more details, see:
|
75
|
+
# - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
|
76
|
+
# - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
77
|
+
# - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
|
78
|
+
config.disable_monkey_patching!
|
79
|
+
|
80
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
81
|
+
# be too noisy due to issues in dependencies.
|
82
|
+
config.warnings = true
|
83
|
+
|
84
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
85
|
+
# file, and it's useful to allow more verbose output when running an
|
86
|
+
# individual spec file.
|
87
|
+
if config.files_to_run.one?
|
88
|
+
# Use the documentation formatter for detailed output,
|
89
|
+
# unless a formatter has already been configured
|
90
|
+
# (e.g. via a command-line flag).
|
91
|
+
config.default_formatter = 'doc'
|
92
|
+
end
|
93
|
+
|
94
|
+
# Print the 10 slowest examples and example groups at the
|
95
|
+
# end of the spec run, to help surface which specs are running
|
96
|
+
# particularly slow.
|
97
|
+
config.profile_examples = 10
|
98
|
+
|
99
|
+
# Run specs in random order to surface order dependencies. If you find an
|
100
|
+
# order dependency and want to debug it, you can fix the order by providing
|
101
|
+
# the seed, which is printed after each run.
|
102
|
+
# --seed 1234
|
103
|
+
config.order = :random
|
104
|
+
|
105
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
106
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
107
|
+
# test failures related to randomization by passing the same `--seed` value
|
108
|
+
# as the one that triggered the failure.
|
109
|
+
Kernel.srand config.seed
|
110
|
+
=end
|
111
|
+
end
|
@@ -0,0 +1,136 @@
|
|
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));
|