fuse_client 1.0.7 → 1.0.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -5
- data/docs/AccountSubType.md +15 -0
- data/docs/AccountType.md +15 -0
- data/docs/CountryCode.md +15 -0
- data/docs/CreateLinkTokenRequest.md +0 -2
- data/docs/CreateLinkTokenResponse.md +2 -2
- data/docs/CreateSessionRequest.md +9 -1
- data/docs/CreateSessionResponse.md +3 -3
- data/docs/Currency.md +20 -0
- data/docs/DeleteFinancialConnectionResponse.md +22 -0
- data/docs/ExchangeFinancialConnectionsPublicTokenResponse.md +3 -3
- data/docs/FinancialConnectionData.md +2 -2
- data/docs/FinancialConnectionDetails.md +32 -0
- data/docs/FinancialConnectionDetailsMx.md +20 -0
- data/docs/FinancialConnectionDetailsPlaid.md +20 -0
- data/docs/FinancialConnectionDetailsTeller.md +20 -0
- data/docs/FinancialConnectionsAccount.md +8 -8
- data/docs/FinancialConnectionsAccountBalance.md +5 -3
- data/docs/FinancialConnectionsAccountCachedBalance.md +24 -0
- data/docs/FinancialConnectionsAccountDetails.md +2 -2
- data/docs/FinancialConnectionsAccountLiability.md +8 -8
- data/docs/FinancialConnectionsHolding.md +8 -8
- data/docs/FinancialConnectionsInvestmentSecurity.md +17 -7
- data/docs/FinancialConnectionsInvestmentSecurityExchange.md +18 -0
- data/docs/FinancialConnectionsInvestmentTransaction.md +22 -2
- data/docs/FinancialConnectionsOwner.md +4 -4
- data/docs/FinancialConnectionsOwnerEmailsInner.md +1 -1
- data/docs/FinancialConnectionsOwnerNamesInner.md +1 -1
- data/docs/FinancialConnectionsOwnerPhoneNumbersInner.md +1 -1
- data/docs/FinancialInstitution.md +3 -1
- data/docs/FuseApi.md +189 -185
- data/docs/FuseApiErrorData.md +1 -1
- data/docs/FuseApiWarningData.md +1 -1
- data/docs/GetEntityResponse.md +4 -2
- data/docs/GetFinancialConnectionResponse.md +20 -0
- data/docs/GetFinancialConnectionsAccountDetailsResponse.md +3 -3
- data/docs/GetFinancialConnectionsAccountsResponse.md +3 -3
- data/docs/GetFinancialConnectionsBalanceRequest.md +3 -1
- data/docs/GetFinancialConnectionsBalanceRequestOptions.md +18 -0
- data/docs/{GetFinancialConnectionsAccountBalanceResponse.md → GetFinancialConnectionsBalanceResponse.md} +4 -4
- data/docs/GetFinancialConnectionsOwnersResponse.md +1 -1
- data/docs/GetFinancialConnectionsOwnersResponseAccountsInner.md +3 -3
- data/docs/GetFinancialConnectionsTransactionsRequest.md +26 -0
- data/docs/GetFinancialConnectionsTransactionsResponse.md +22 -0
- data/docs/GetFinancialInstitutionResponse.md +2 -2
- data/docs/GetInvestmentHoldingsRequest.md +3 -3
- data/docs/GetInvestmentHoldingsRequestOptions.md +18 -0
- data/docs/GetInvestmentHoldingsResponse.md +3 -5
- data/docs/GetInvestmentTransactionsRequest.md +11 -1
- data/docs/GetInvestmentTransactionsRequestOptions.md +18 -0
- data/docs/GetInvestmentTransactionsResponse.md +3 -5
- data/docs/MigrateFinancialConnectionsAggregatorConnectionData.md +20 -0
- data/docs/MigrateFinancialConnectionsAggregatorConnectionDataMx.md +20 -0
- data/docs/MigrateFinancialConnectionsAggregatorConnectionDataPlaid.md +18 -0
- data/docs/MigrateFinancialConnectionsTokenRequest.md +24 -0
- data/docs/MigrateFinancialConnectionsTokenRequestEntity.md +18 -0
- data/docs/MigrateFinancialConnectionsTokenResponse.md +24 -0
- data/docs/SyncTransactionsResponse.md +2 -2
- data/docs/{GetTransactionsResponseDataInner.md → Transaction.md} +16 -14
- data/docs/{GetTransactionsResponseDataInnerMerchant.md → TransactionMerchant.md} +2 -2
- data/docs/WebhookEvent.md +28 -0
- data/docs/WebhookSource.md +15 -0
- data/docs/WebhookType.md +15 -0
- data/fuse_client.gemspec +1 -1
- data/lib/fuse_client/api/fuse_api.rb +181 -197
- data/lib/fuse_client/api_client.rb +1 -1
- data/lib/fuse_client/api_error.rb +1 -1
- data/lib/fuse_client/configuration.rb +39 -18
- data/lib/fuse_client/models/account_subtype.rb +178 -0
- data/lib/fuse_client/models/account_type.rb +45 -0
- data/lib/fuse_client/models/aggregator.rb +3 -3
- data/lib/fuse_client/models/country_code.rb +40 -0
- data/lib/fuse_client/models/create_asset_report_request.rb +1 -1
- data/lib/fuse_client/models/create_asset_report_response.rb +1 -1
- data/lib/fuse_client/models/create_entity_request.rb +1 -1
- data/lib/fuse_client/models/create_entity_response.rb +1 -1
- data/lib/fuse_client/models/create_link_token_request.rb +2 -12
- data/lib/fuse_client/models/create_link_token_request_mx.rb +1 -1
- data/lib/fuse_client/models/create_link_token_request_plaid.rb +1 -1
- data/lib/fuse_client/models/create_link_token_response.rb +11 -1
- data/lib/fuse_client/models/create_session_request.rb +46 -5
- data/lib/fuse_client/models/create_session_response.rb +16 -1
- data/lib/fuse_client/models/currency.rb +235 -0
- data/lib/fuse_client/models/delete_financial_connection_response.rb +255 -0
- data/lib/fuse_client/models/entity.rb +1 -1
- data/lib/fuse_client/models/exchange_financial_connections_public_token_request.rb +1 -1
- data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +16 -1
- data/lib/fuse_client/models/financial_connection_data.rb +11 -1
- data/lib/fuse_client/models/financial_connection_details.rb +345 -0
- data/lib/fuse_client/models/financial_connection_details_mx.rb +241 -0
- data/lib/fuse_client/models/{get_transactions_request.rb → financial_connection_details_plaid.rb} +19 -23
- data/lib/fuse_client/models/financial_connection_details_teller.rb +241 -0
- data/lib/fuse_client/models/financial_connections_account.rb +59 -14
- data/lib/fuse_client/models/financial_connections_account_balance.rb +21 -6
- data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +250 -0
- data/lib/fuse_client/models/financial_connections_account_details.rb +11 -1
- data/lib/fuse_client/models/financial_connections_account_details_ach.rb +1 -1
- data/lib/fuse_client/models/financial_connections_account_institution.rb +1 -1
- data/lib/fuse_client/models/financial_connections_account_liability.rb +59 -14
- data/lib/fuse_client/models/financial_connections_account_liability_all_of.rb +1 -1
- data/lib/fuse_client/models/financial_connections_account_liability_all_of_aprs.rb +1 -1
- data/lib/fuse_client/models/financial_connections_holding.rb +52 -23
- data/lib/fuse_client/models/financial_connections_investment_security.rb +92 -24
- data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +220 -0
- data/lib/fuse_client/models/financial_connections_investment_transaction.rb +158 -10
- data/lib/fuse_client/models/financial_connections_owner.rb +21 -1
- data/lib/fuse_client/models/financial_connections_owner_addresses_inner.rb +1 -1
- data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +1 -1
- data/lib/fuse_client/models/financial_connections_owner_emails_inner.rb +6 -1
- data/lib/fuse_client/models/financial_connections_owner_names_inner.rb +6 -1
- data/lib/fuse_client/models/financial_connections_owner_phone_numbers_inner.rb +6 -1
- data/lib/fuse_client/models/financial_institution.rb +22 -5
- data/lib/fuse_client/models/financial_institution_logo.rb +1 -1
- data/lib/fuse_client/models/fuse_api_error.rb +25 -1
- data/lib/fuse_client/models/fuse_api_error_data.rb +24 -2
- data/lib/fuse_client/models/fuse_api_warning.rb +1 -1
- data/lib/fuse_client/models/fuse_api_warning_data.rb +24 -2
- data/lib/fuse_client/models/fuse_api_warning_data_warnings_inner.rb +1 -1
- data/lib/fuse_client/models/get_asset_report_request.rb +1 -1
- data/lib/fuse_client/models/get_asset_report_response.rb +1 -1
- data/lib/fuse_client/models/get_asset_report_response_report.rb +1 -1
- data/lib/fuse_client/models/get_asset_report_response_report_accounts_inner.rb +1 -1
- data/lib/fuse_client/models/get_asset_report_response_report_accounts_inner_balances.rb +1 -1
- data/lib/fuse_client/models/get_asset_report_response_report_accounts_inner_historical_balances_inner.rb +1 -1
- data/lib/fuse_client/models/get_entity_response.rb +29 -2
- data/lib/fuse_client/models/{get_transactions_response.rb → get_financial_connection_response.rb} +21 -33
- data/lib/fuse_client/models/get_financial_connections_account_details_request.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_account_details_response.rb +16 -1
- data/lib/fuse_client/models/get_financial_connections_accounts_request.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_accounts_response.rb +16 -1
- data/lib/fuse_client/models/get_financial_connections_balance_request.rb +14 -5
- data/lib/fuse_client/models/get_financial_connections_balance_request_options.rb +222 -0
- data/lib/fuse_client/models/{get_financial_connections_account_balance_response.rb → get_financial_connections_balance_response.rb} +14 -4
- data/lib/fuse_client/models/get_financial_connections_owners_request.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_owners_response.rb +6 -1
- data/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +16 -1
- data/lib/fuse_client/models/get_financial_connections_transactions_request.rb +334 -0
- data/lib/fuse_client/models/get_financial_connections_transactions_response.rb +256 -0
- data/lib/fuse_client/models/get_financial_institution_response.rb +11 -1
- data/lib/fuse_client/models/get_investment_holdings_request.rb +9 -10
- data/lib/fuse_client/models/get_investment_holdings_request_options.rb +222 -0
- data/lib/fuse_client/models/get_investment_holdings_response.rb +18 -14
- data/lib/fuse_client/models/get_investment_transactions_request.rb +95 -5
- data/lib/fuse_client/models/get_investment_transactions_request_options.rb +222 -0
- data/lib/fuse_client/models/get_investment_transactions_response.rb +18 -14
- data/lib/fuse_client/models/get_liabilities_request.rb +1 -1
- data/lib/fuse_client/models/get_liabilities_response.rb +1 -1
- data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data.rb +229 -0
- data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_mx.rb +236 -0
- data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_plaid.rb +226 -0
- data/lib/fuse_client/models/{financial_connections_investment_account.rb → migrate_financial_connections_token_request.rb} +86 -70
- data/lib/fuse_client/models/{transaction_common_model.rb → migrate_financial_connections_token_request_entity.rb} +12 -13
- data/lib/fuse_client/models/migrate_financial_connections_token_response.rb +264 -0
- data/lib/fuse_client/models/product.rb +3 -3
- data/lib/fuse_client/models/refresh_asset_report_request.rb +1 -1
- data/lib/fuse_client/models/sync_financial_connections_data_response.rb +1 -1
- data/lib/fuse_client/models/sync_transactions_request.rb +1 -1
- data/lib/fuse_client/models/sync_transactions_response.rb +3 -3
- data/lib/fuse_client/models/sync_transactions_response_removed_inner.rb +1 -1
- data/lib/fuse_client/models/{get_transactions_response_data_inner.rb → transaction.rb} +110 -21
- data/lib/fuse_client/models/{get_transactions_response_data_inner_merchant.rb → transaction_merchant.rb} +4 -4
- data/lib/fuse_client/models/update_entity_request.rb +1 -1
- data/lib/fuse_client/models/update_entity_response.rb +1 -1
- data/lib/fuse_client/models/{financial_connections_investment_transaction_data_inner.rb → webhook_event.rb} +94 -63
- data/lib/fuse_client/models/webhook_source.rb +43 -0
- data/lib/fuse_client/models/webhook_type.rb +42 -0
- data/lib/fuse_client/version.rb +2 -2
- data/lib/fuse_client.rb +30 -9
- data/spec/api/fuse_api_spec.rb +40 -39
- data/spec/api_client_spec.rb +3 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_subtype_spec.rb +28 -0
- data/spec/models/account_type_spec.rb +28 -0
- data/spec/models/aggregator_spec.rb +1 -1
- data/spec/models/country_code_spec.rb +28 -0
- data/spec/models/create_asset_report_request_spec.rb +1 -1
- data/spec/models/create_asset_report_response_spec.rb +1 -1
- data/spec/models/create_entity_request_spec.rb +1 -1
- data/spec/models/create_entity_response_spec.rb +1 -1
- data/spec/models/create_link_token_request_mx_spec.rb +1 -1
- data/spec/models/create_link_token_request_plaid_spec.rb +1 -1
- data/spec/models/create_link_token_request_spec.rb +1 -7
- data/spec/models/create_link_token_response_spec.rb +1 -1
- data/spec/models/create_session_request_spec.rb +25 -1
- data/spec/models/create_session_response_spec.rb +1 -1
- data/spec/models/{get_transactions_response_data_inner_merchant_spec.rb → currency_spec.rb} +13 -7
- data/spec/models/{get_transactions_request_spec.rb → delete_financial_connection_response_spec.rb} +10 -10
- data/spec/models/entity_spec.rb +1 -1
- data/spec/models/exchange_financial_connections_public_token_request_spec.rb +1 -1
- data/spec/models/exchange_financial_connections_public_token_response_spec.rb +1 -1
- data/spec/models/financial_connection_data_spec.rb +1 -1
- data/spec/models/financial_connection_details_mx_spec.rb +40 -0
- data/spec/models/financial_connection_details_plaid_spec.rb +40 -0
- data/spec/models/{financial_connections_investment_transaction_data_inner_spec.rb → financial_connection_details_spec.rb} +18 -14
- data/spec/models/financial_connection_details_teller_spec.rb +40 -0
- data/spec/models/financial_connections_account_balance_spec.rb +7 -1
- data/spec/models/financial_connections_account_cached_balance_spec.rb +52 -0
- data/spec/models/financial_connections_account_details_ach_spec.rb +1 -1
- data/spec/models/financial_connections_account_details_spec.rb +1 -1
- data/spec/models/financial_connections_account_institution_spec.rb +1 -1
- data/spec/models/financial_connections_account_liability_all_of_aprs_spec.rb +1 -1
- data/spec/models/financial_connections_account_liability_all_of_spec.rb +1 -1
- data/spec/models/financial_connections_account_liability_spec.rb +2 -2
- data/spec/models/financial_connections_account_spec.rb +2 -2
- data/spec/models/financial_connections_holding_spec.rb +4 -4
- data/spec/models/financial_connections_investment_security_exchange_spec.rb +34 -0
- data/spec/models/financial_connections_investment_security_spec.rb +34 -4
- data/spec/models/financial_connections_investment_transaction_spec.rb +62 -2
- data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +1 -1
- data/spec/models/financial_connections_owner_addresses_inner_spec.rb +1 -1
- data/spec/models/financial_connections_owner_emails_inner_spec.rb +1 -1
- data/spec/models/financial_connections_owner_names_inner_spec.rb +1 -1
- data/spec/models/financial_connections_owner_phone_numbers_inner_spec.rb +1 -1
- data/spec/models/financial_connections_owner_spec.rb +1 -1
- data/spec/models/financial_institution_logo_spec.rb +1 -1
- data/spec/models/financial_institution_spec.rb +7 -1
- data/spec/models/fuse_api_error_data_spec.rb +1 -1
- data/spec/models/fuse_api_error_spec.rb +9 -1
- data/spec/models/fuse_api_warning_data_spec.rb +1 -1
- data/spec/models/fuse_api_warning_data_warnings_inner_spec.rb +1 -1
- data/spec/models/fuse_api_warning_spec.rb +1 -1
- data/spec/models/get_asset_report_request_spec.rb +1 -1
- data/spec/models/get_asset_report_response_report_accounts_inner_balances_spec.rb +1 -1
- data/spec/models/get_asset_report_response_report_accounts_inner_historical_balances_inner_spec.rb +1 -1
- data/spec/models/get_asset_report_response_report_accounts_inner_spec.rb +1 -1
- data/spec/models/get_asset_report_response_report_spec.rb +1 -1
- data/spec/models/get_asset_report_response_spec.rb +1 -1
- data/spec/models/get_entity_response_spec.rb +7 -1
- data/spec/models/get_financial_connection_response_spec.rb +40 -0
- data/spec/models/get_financial_connections_account_details_request_spec.rb +1 -1
- data/spec/models/get_financial_connections_account_details_response_spec.rb +1 -1
- data/spec/models/get_financial_connections_accounts_request_spec.rb +1 -1
- data/spec/models/get_financial_connections_accounts_response_spec.rb +1 -1
- data/spec/models/get_financial_connections_balance_request_options_spec.rb +34 -0
- data/spec/models/get_financial_connections_balance_request_spec.rb +7 -1
- data/spec/models/{get_financial_connections_account_balance_response_spec.rb → get_financial_connections_balance_response_spec.rb} +7 -7
- data/spec/models/get_financial_connections_owners_request_spec.rb +1 -1
- data/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +1 -1
- data/spec/models/get_financial_connections_owners_response_spec.rb +1 -1
- data/spec/models/get_financial_connections_transactions_request_spec.rb +58 -0
- data/spec/models/get_financial_connections_transactions_response_spec.rb +46 -0
- data/spec/models/get_financial_institution_response_spec.rb +1 -1
- data/spec/models/get_investment_holdings_request_options_spec.rb +34 -0
- data/spec/models/get_investment_holdings_request_spec.rb +2 -2
- data/spec/models/get_investment_holdings_response_spec.rb +1 -7
- data/spec/models/get_investment_transactions_request_options_spec.rb +34 -0
- data/spec/models/get_investment_transactions_request_spec.rb +31 -1
- data/spec/models/get_investment_transactions_response_spec.rb +1 -7
- data/spec/models/get_liabilities_request_spec.rb +1 -1
- data/spec/models/get_liabilities_response_spec.rb +1 -1
- data/spec/models/migrate_financial_connections_aggregator_connection_data_mx_spec.rb +40 -0
- data/spec/models/migrate_financial_connections_aggregator_connection_data_plaid_spec.rb +34 -0
- data/spec/models/migrate_financial_connections_aggregator_connection_data_spec.rb +40 -0
- data/spec/models/migrate_financial_connections_token_request_entity_spec.rb +34 -0
- data/spec/models/migrate_financial_connections_token_request_spec.rb +56 -0
- data/spec/models/{get_transactions_response_spec.rb → migrate_financial_connections_token_response_spec.rb} +10 -10
- data/spec/models/product_spec.rb +1 -1
- data/spec/models/refresh_asset_report_request_spec.rb +1 -1
- data/spec/models/sync_financial_connections_data_response_spec.rb +1 -1
- data/spec/models/sync_transactions_request_spec.rb +1 -1
- data/spec/models/sync_transactions_response_removed_inner_spec.rb +1 -1
- data/spec/models/sync_transactions_response_spec.rb +1 -1
- data/spec/models/{transaction_common_model_spec.rb → transaction_merchant_spec.rb} +8 -8
- data/spec/models/{get_transactions_response_data_inner_spec.rb → transaction_spec.rb} +23 -13
- data/spec/models/update_entity_request_spec.rb +1 -1
- data/spec/models/update_entity_response_spec.rb +1 -1
- data/spec/models/{financial_connections_investment_account_spec.rb → webhook_event_spec.rb} +17 -25
- data/spec/models/webhook_source_spec.rb +28 -0
- data/spec/models/webhook_type_spec.rb +28 -0
- data/spec/spec_helper.rb +1 -1
- metadata +118 -34
- data/docs/FinancialConnectionsInvestmentAccount.md +0 -32
- data/docs/FinancialConnectionsInvestmentTransactionDataInner.md +0 -32
- data/docs/GetTransactionsRequest.md +0 -22
- data/docs/GetTransactionsResponse.md +0 -24
- data/docs/TransactionCommonModel.md +0 -18
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -107,12 +107,17 @@ module FuseClient
|
|
107
107
|
# @return Array for valid properties with the reasons
|
108
108
|
def list_invalid_properties
|
109
109
|
invalid_properties = Array.new
|
110
|
+
if @data.nil?
|
111
|
+
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
112
|
+
end
|
113
|
+
|
110
114
|
invalid_properties
|
111
115
|
end
|
112
116
|
|
113
117
|
# Check to see if the all the properties in the model are valid
|
114
118
|
# @return true if the model is valid
|
115
119
|
def valid?
|
120
|
+
return false if @data.nil?
|
116
121
|
type_validator = EnumAttributeValidator.new('String', ["primary", "secondary", "other"])
|
117
122
|
return false unless type_validator.valid?(@type)
|
118
123
|
true
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -76,12 +76,17 @@ module FuseClient
|
|
76
76
|
# @return Array for valid properties with the reasons
|
77
77
|
def list_invalid_properties
|
78
78
|
invalid_properties = Array.new
|
79
|
+
if @data.nil?
|
80
|
+
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
81
|
+
end
|
82
|
+
|
79
83
|
invalid_properties
|
80
84
|
end
|
81
85
|
|
82
86
|
# Check to see if the all the properties in the model are valid
|
83
87
|
# @return true if the model is valid
|
84
88
|
def valid?
|
89
|
+
return false if @data.nil?
|
85
90
|
true
|
86
91
|
end
|
87
92
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -107,12 +107,17 @@ module FuseClient
|
|
107
107
|
# @return Array for valid properties with the reasons
|
108
108
|
def list_invalid_properties
|
109
109
|
invalid_properties = Array.new
|
110
|
+
if @data.nil?
|
111
|
+
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
112
|
+
end
|
113
|
+
|
110
114
|
invalid_properties
|
111
115
|
end
|
112
116
|
|
113
117
|
# Check to see if the all the properties in the model are valid
|
114
118
|
# @return true if the model is valid
|
115
119
|
def valid?
|
120
|
+
return false if @data.nil?
|
116
121
|
type_validator = EnumAttributeValidator.new('String', ["home", "work", "mobile"])
|
117
122
|
return false unless type_validator.valid?(@type)
|
118
123
|
true
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -26,13 +26,17 @@ module FuseClient
|
|
26
26
|
# Website of the financial institution.
|
27
27
|
attr_accessor :website
|
28
28
|
|
29
|
+
# List of country codes supported by this institution
|
30
|
+
attr_accessor :country_codes
|
31
|
+
|
29
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
33
|
def self.attribute_map
|
31
34
|
{
|
32
35
|
:'id' => :'id',
|
33
36
|
:'name' => :'name',
|
34
37
|
:'logo' => :'logo',
|
35
|
-
:'website' => :'website'
|
38
|
+
:'website' => :'website',
|
39
|
+
:'country_codes' => :'country_codes'
|
36
40
|
}
|
37
41
|
end
|
38
42
|
|
@@ -47,7 +51,8 @@ module FuseClient
|
|
47
51
|
:'id' => :'String',
|
48
52
|
:'name' => :'String',
|
49
53
|
:'logo' => :'FinancialInstitutionLogo',
|
50
|
-
:'website' => :'String'
|
54
|
+
:'website' => :'String',
|
55
|
+
:'country_codes' => :'Array<CountryCode>'
|
51
56
|
}
|
52
57
|
end
|
53
58
|
|
@@ -87,6 +92,12 @@ module FuseClient
|
|
87
92
|
if attributes.key?(:'website')
|
88
93
|
self.website = attributes[:'website']
|
89
94
|
end
|
95
|
+
|
96
|
+
if attributes.key?(:'country_codes')
|
97
|
+
if (value = attributes[:'country_codes']).is_a?(Array)
|
98
|
+
self.country_codes = value
|
99
|
+
end
|
100
|
+
end
|
90
101
|
end
|
91
102
|
|
92
103
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -101,6 +112,10 @@ module FuseClient
|
|
101
112
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
102
113
|
end
|
103
114
|
|
115
|
+
if @country_codes.nil?
|
116
|
+
invalid_properties.push('invalid value for "country_codes", country_codes cannot be nil.')
|
117
|
+
end
|
118
|
+
|
104
119
|
invalid_properties
|
105
120
|
end
|
106
121
|
|
@@ -109,6 +124,7 @@ module FuseClient
|
|
109
124
|
def valid?
|
110
125
|
return false if @id.nil?
|
111
126
|
return false if @name.nil?
|
127
|
+
return false if @country_codes.nil?
|
112
128
|
true
|
113
129
|
end
|
114
130
|
|
@@ -120,7 +136,8 @@ module FuseClient
|
|
120
136
|
id == o.id &&
|
121
137
|
name == o.name &&
|
122
138
|
logo == o.logo &&
|
123
|
-
website == o.website
|
139
|
+
website == o.website &&
|
140
|
+
country_codes == o.country_codes
|
124
141
|
end
|
125
142
|
|
126
143
|
# @see the `==` method
|
@@ -132,7 +149,7 @@ module FuseClient
|
|
132
149
|
# Calculates hash code according to all attributes.
|
133
150
|
# @return [Integer] Hash code
|
134
151
|
def hash
|
135
|
-
[id, name, logo, website].hash
|
152
|
+
[id, name, logo, website, country_codes].hash
|
136
153
|
end
|
137
154
|
|
138
155
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -134,11 +134,35 @@ module FuseClient
|
|
134
134
|
# Check to see if the all the properties in the model are valid
|
135
135
|
# @return true if the model is valid
|
136
136
|
def valid?
|
137
|
+
code_validator = EnumAttributeValidator.new('String', ["client_error", "invalid_headers", "invalid_request_body", "internal_server_error", "organization_not_found", "entity_not_found", "session_not_found", "financial_institution_not_found", "missing_access_token", "missing_plaid_client_id_header", "missing_plaid_secret_header", "missing_mx_client_id_header", "missing_mx_api_key_header", "missing_teller_private_key_header", "missing_teller_certificate_header", "missing_teller_application_id_header", "aggregator_error", "aggregator_disconnected_error", "aggregator_connection_finished_error", "request_body_missing"])
|
138
|
+
return false unless code_validator.valid?(@code)
|
139
|
+
type_validator = EnumAttributeValidator.new('String', ["auth_error", "not_found", "bad_request", "server_error"])
|
140
|
+
return false unless type_validator.valid?(@type)
|
137
141
|
source_validator = EnumAttributeValidator.new('String', ["internal", "aggregator"])
|
138
142
|
return false unless source_validator.valid?(@source)
|
139
143
|
true
|
140
144
|
end
|
141
145
|
|
146
|
+
# Custom attribute writer method checking allowed values (enum).
|
147
|
+
# @param [Object] code Object to be assigned
|
148
|
+
def code=(code)
|
149
|
+
validator = EnumAttributeValidator.new('String', ["client_error", "invalid_headers", "invalid_request_body", "internal_server_error", "organization_not_found", "entity_not_found", "session_not_found", "financial_institution_not_found", "missing_access_token", "missing_plaid_client_id_header", "missing_plaid_secret_header", "missing_mx_client_id_header", "missing_mx_api_key_header", "missing_teller_private_key_header", "missing_teller_certificate_header", "missing_teller_application_id_header", "aggregator_error", "aggregator_disconnected_error", "aggregator_connection_finished_error", "request_body_missing"])
|
150
|
+
unless validator.valid?(code)
|
151
|
+
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
152
|
+
end
|
153
|
+
@code = code
|
154
|
+
end
|
155
|
+
|
156
|
+
# Custom attribute writer method checking allowed values (enum).
|
157
|
+
# @param [Object] type Object to be assigned
|
158
|
+
def type=(type)
|
159
|
+
validator = EnumAttributeValidator.new('String', ["auth_error", "not_found", "bad_request", "server_error"])
|
160
|
+
unless validator.valid?(type)
|
161
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
162
|
+
end
|
163
|
+
@type = type
|
164
|
+
end
|
165
|
+
|
142
166
|
# Custom attribute writer method checking allowed values (enum).
|
143
167
|
# @param [Object] source Object to be assigned
|
144
168
|
def source=(source)
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,6 +19,28 @@ module FuseClient
|
|
19
19
|
|
20
20
|
attr_accessor :errors
|
21
21
|
|
22
|
+
class EnumAttributeValidator
|
23
|
+
attr_reader :datatype
|
24
|
+
attr_reader :allowable_values
|
25
|
+
|
26
|
+
def initialize(datatype, allowable_values)
|
27
|
+
@allowable_values = allowable_values.map do |value|
|
28
|
+
case datatype.to_s
|
29
|
+
when /Integer/i
|
30
|
+
value.to_i
|
31
|
+
when /Float/i
|
32
|
+
value.to_f
|
33
|
+
else
|
34
|
+
value
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
def valid?(value)
|
40
|
+
!value || allowable_values.include?(value)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
22
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
45
|
def self.attribute_map
|
24
46
|
{
|
@@ -35,7 +57,7 @@ module FuseClient
|
|
35
57
|
# Attribute type mapping.
|
36
58
|
def self.openapi_types
|
37
59
|
{
|
38
|
-
:'aggregator' => :'
|
60
|
+
:'aggregator' => :'Aggregator',
|
39
61
|
:'errors' => :'Array<FuseApiError>'
|
40
62
|
}
|
41
63
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,6 +19,28 @@ module FuseClient
|
|
19
19
|
|
20
20
|
attr_accessor :warnings
|
21
21
|
|
22
|
+
class EnumAttributeValidator
|
23
|
+
attr_reader :datatype
|
24
|
+
attr_reader :allowable_values
|
25
|
+
|
26
|
+
def initialize(datatype, allowable_values)
|
27
|
+
@allowable_values = allowable_values.map do |value|
|
28
|
+
case datatype.to_s
|
29
|
+
when /Integer/i
|
30
|
+
value.to_i
|
31
|
+
when /Float/i
|
32
|
+
value.to_f
|
33
|
+
else
|
34
|
+
value
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
def valid?(value)
|
40
|
+
!value || allowable_values.include?(value)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
22
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
45
|
def self.attribute_map
|
24
46
|
{
|
@@ -35,7 +57,7 @@ module FuseClient
|
|
35
57
|
# Attribute type mapping.
|
36
58
|
def self.openapi_types
|
37
59
|
{
|
38
|
-
:'aggregator' => :'
|
60
|
+
:'aggregator' => :'Aggregator',
|
39
61
|
:'warnings' => :'Array<FuseApiWarningDataWarningsInner>'
|
40
62
|
}
|
41
63
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -26,6 +26,9 @@ module FuseClient
|
|
26
26
|
|
27
27
|
attr_accessor :institution_ids
|
28
28
|
|
29
|
+
# Data needed to query data from the various aggregators
|
30
|
+
attr_accessor :financial_connections
|
31
|
+
|
29
32
|
# An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
|
30
33
|
attr_accessor :request_id
|
31
34
|
|
@@ -36,6 +39,7 @@ module FuseClient
|
|
36
39
|
:'email' => :'email',
|
37
40
|
:'aggregators' => :'aggregators',
|
38
41
|
:'institution_ids' => :'institution_ids',
|
42
|
+
:'financial_connections' => :'financial_connections',
|
39
43
|
:'request_id' => :'request_id'
|
40
44
|
}
|
41
45
|
end
|
@@ -52,6 +56,7 @@ module FuseClient
|
|
52
56
|
:'email' => :'String',
|
53
57
|
:'aggregators' => :'Array<Aggregator>',
|
54
58
|
:'institution_ids' => :'Array<String>',
|
59
|
+
:'financial_connections' => :'Array<FinancialConnectionDetails>',
|
55
60
|
:'request_id' => :'String'
|
56
61
|
}
|
57
62
|
end
|
@@ -97,6 +102,12 @@ module FuseClient
|
|
97
102
|
end
|
98
103
|
end
|
99
104
|
|
105
|
+
if attributes.key?(:'financial_connections')
|
106
|
+
if (value = attributes[:'financial_connections']).is_a?(Array)
|
107
|
+
self.financial_connections = value
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
100
111
|
if attributes.key?(:'request_id')
|
101
112
|
self.request_id = attributes[:'request_id']
|
102
113
|
end
|
@@ -106,17 +117,32 @@ module FuseClient
|
|
106
117
|
# @return Array for valid properties with the reasons
|
107
118
|
def list_invalid_properties
|
108
119
|
invalid_properties = Array.new
|
120
|
+
if @id.nil?
|
121
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
122
|
+
end
|
123
|
+
|
109
124
|
if !@aggregators.nil? && @aggregators.length < 1
|
110
125
|
invalid_properties.push('invalid value for "aggregators", number of items must be greater than or equal to 1.')
|
111
126
|
end
|
112
127
|
|
128
|
+
if @financial_connections.nil?
|
129
|
+
invalid_properties.push('invalid value for "financial_connections", financial_connections cannot be nil.')
|
130
|
+
end
|
131
|
+
|
132
|
+
if @request_id.nil?
|
133
|
+
invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
|
134
|
+
end
|
135
|
+
|
113
136
|
invalid_properties
|
114
137
|
end
|
115
138
|
|
116
139
|
# Check to see if the all the properties in the model are valid
|
117
140
|
# @return true if the model is valid
|
118
141
|
def valid?
|
142
|
+
return false if @id.nil?
|
119
143
|
return false if !@aggregators.nil? && @aggregators.length < 1
|
144
|
+
return false if @financial_connections.nil?
|
145
|
+
return false if @request_id.nil?
|
120
146
|
true
|
121
147
|
end
|
122
148
|
|
@@ -139,6 +165,7 @@ module FuseClient
|
|
139
165
|
email == o.email &&
|
140
166
|
aggregators == o.aggregators &&
|
141
167
|
institution_ids == o.institution_ids &&
|
168
|
+
financial_connections == o.financial_connections &&
|
142
169
|
request_id == o.request_id
|
143
170
|
end
|
144
171
|
|
@@ -151,7 +178,7 @@ module FuseClient
|
|
151
178
|
# Calculates hash code according to all attributes.
|
152
179
|
# @return [Integer] Hash code
|
153
180
|
def hash
|
154
|
-
[id, email, aggregators, institution_ids, request_id].hash
|
181
|
+
[id, email, aggregators, institution_ids, financial_connections, request_id].hash
|
155
182
|
end
|
156
183
|
|
157
184
|
# Builds the object from hash
|
data/lib/fuse_client/models/{get_transactions_response.rb → get_financial_connection_response.rb}
RENAMED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,14 +14,8 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module FuseClient
|
17
|
-
class
|
18
|
-
attr_accessor :
|
19
|
-
|
20
|
-
# The cursor of the last item returned
|
21
|
-
attr_accessor :cursor
|
22
|
-
|
23
|
-
# Indicates if there are more pages to navigate through
|
24
|
-
attr_accessor :has_next
|
17
|
+
class GetFinancialConnectionResponse
|
18
|
+
attr_accessor :financial_connection
|
25
19
|
|
26
20
|
# An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
|
27
21
|
attr_accessor :request_id
|
@@ -29,9 +23,7 @@ module FuseClient
|
|
29
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
24
|
def self.attribute_map
|
31
25
|
{
|
32
|
-
:'
|
33
|
-
:'cursor' => :'cursor',
|
34
|
-
:'has_next' => :'has_next',
|
26
|
+
:'financial_connection' => :'financial_connection',
|
35
27
|
:'request_id' => :'request_id'
|
36
28
|
}
|
37
29
|
end
|
@@ -44,9 +36,7 @@ module FuseClient
|
|
44
36
|
# Attribute type mapping.
|
45
37
|
def self.openapi_types
|
46
38
|
{
|
47
|
-
:'
|
48
|
-
:'cursor' => :'String',
|
49
|
-
:'has_next' => :'Boolean',
|
39
|
+
:'financial_connection' => :'FinancialConnectionDetails',
|
50
40
|
:'request_id' => :'String'
|
51
41
|
}
|
52
42
|
end
|
@@ -61,29 +51,19 @@ module FuseClient
|
|
61
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
62
52
|
def initialize(attributes = {})
|
63
53
|
if (!attributes.is_a?(Hash))
|
64
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::GetFinancialConnectionResponse` initialize method"
|
65
55
|
end
|
66
56
|
|
67
57
|
# check to see if the attribute exists and convert string to symbol for hash key
|
68
58
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
69
59
|
if (!self.class.attribute_map.key?(k.to_sym))
|
70
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::GetFinancialConnectionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
71
61
|
end
|
72
62
|
h[k.to_sym] = v
|
73
63
|
}
|
74
64
|
|
75
|
-
if attributes.key?(:'
|
76
|
-
|
77
|
-
self.data = value
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
|
-
if attributes.key?(:'cursor')
|
82
|
-
self.cursor = attributes[:'cursor']
|
83
|
-
end
|
84
|
-
|
85
|
-
if attributes.key?(:'has_next')
|
86
|
-
self.has_next = attributes[:'has_next']
|
65
|
+
if attributes.key?(:'financial_connection')
|
66
|
+
self.financial_connection = attributes[:'financial_connection']
|
87
67
|
end
|
88
68
|
|
89
69
|
if attributes.key?(:'request_id')
|
@@ -95,12 +75,22 @@ module FuseClient
|
|
95
75
|
# @return Array for valid properties with the reasons
|
96
76
|
def list_invalid_properties
|
97
77
|
invalid_properties = Array.new
|
78
|
+
if @financial_connection.nil?
|
79
|
+
invalid_properties.push('invalid value for "financial_connection", financial_connection cannot be nil.')
|
80
|
+
end
|
81
|
+
|
82
|
+
if @request_id.nil?
|
83
|
+
invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
|
84
|
+
end
|
85
|
+
|
98
86
|
invalid_properties
|
99
87
|
end
|
100
88
|
|
101
89
|
# Check to see if the all the properties in the model are valid
|
102
90
|
# @return true if the model is valid
|
103
91
|
def valid?
|
92
|
+
return false if @financial_connection.nil?
|
93
|
+
return false if @request_id.nil?
|
104
94
|
true
|
105
95
|
end
|
106
96
|
|
@@ -109,9 +99,7 @@ module FuseClient
|
|
109
99
|
def ==(o)
|
110
100
|
return true if self.equal?(o)
|
111
101
|
self.class == o.class &&
|
112
|
-
|
113
|
-
cursor == o.cursor &&
|
114
|
-
has_next == o.has_next &&
|
102
|
+
financial_connection == o.financial_connection &&
|
115
103
|
request_id == o.request_id
|
116
104
|
end
|
117
105
|
|
@@ -124,7 +112,7 @@ module FuseClient
|
|
124
112
|
# Calculates hash code according to all attributes.
|
125
113
|
# @return [Integer] Hash code
|
126
114
|
def hash
|
127
|
-
[
|
115
|
+
[financial_connection, request_id].hash
|
128
116
|
end
|
129
117
|
|
130
118
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -85,12 +85,27 @@ module FuseClient
|
|
85
85
|
# @return Array for valid properties with the reasons
|
86
86
|
def list_invalid_properties
|
87
87
|
invalid_properties = Array.new
|
88
|
+
if @account_details.nil?
|
89
|
+
invalid_properties.push('invalid value for "account_details", account_details cannot be nil.')
|
90
|
+
end
|
91
|
+
|
92
|
+
if @financial_connection.nil?
|
93
|
+
invalid_properties.push('invalid value for "financial_connection", financial_connection cannot be nil.')
|
94
|
+
end
|
95
|
+
|
96
|
+
if @request_id.nil?
|
97
|
+
invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
|
98
|
+
end
|
99
|
+
|
88
100
|
invalid_properties
|
89
101
|
end
|
90
102
|
|
91
103
|
# Check to see if the all the properties in the model are valid
|
92
104
|
# @return true if the model is valid
|
93
105
|
def valid?
|
106
|
+
return false if @account_details.nil?
|
107
|
+
return false if @financial_connection.nil?
|
108
|
+
return false if @request_id.nil?
|
94
109
|
true
|
95
110
|
end
|
96
111
|
|