fuse_client 1.0.6 → 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/README.md +82 -1
- data/docs/AccountSubType.md +15 -0
- data/docs/AccountType.md +15 -0
- data/docs/CountryCode.md +15 -0
- data/docs/CreateAssetReportResponse.md +3 -1
- data/docs/CreateEntityResponse.md +3 -1
- 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/GetAssetReportResponse.md +3 -1
- data/docs/GetEntityResponse.md +6 -2
- data/docs/GetFinancialConnectionResponse.md +20 -0
- data/docs/GetFinancialConnectionsAccountDetailsResponse.md +5 -3
- data/docs/GetFinancialConnectionsAccountsResponse.md +5 -3
- data/docs/GetFinancialConnectionsBalanceRequest.md +3 -1
- data/docs/GetFinancialConnectionsBalanceRequestOptions.md +18 -0
- data/docs/GetFinancialConnectionsBalanceResponse.md +20 -0
- data/docs/GetFinancialConnectionsOwnersResponse.md +1 -1
- data/docs/GetFinancialConnectionsOwnersResponseAccountsInner.md +5 -3
- data/docs/GetFinancialConnectionsTransactionsRequest.md +26 -0
- data/docs/GetFinancialConnectionsTransactionsResponse.md +22 -0
- data/docs/GetFinancialInstitutionResponse.md +4 -2
- data/docs/GetInvestmentHoldingsRequest.md +3 -3
- data/docs/GetInvestmentHoldingsRequestOptions.md +18 -0
- data/docs/GetInvestmentHoldingsResponse.md +4 -4
- data/docs/GetInvestmentTransactionsRequest.md +11 -1
- data/docs/GetInvestmentTransactionsRequestOptions.md +18 -0
- data/docs/GetInvestmentTransactionsResponse.md +4 -4
- data/docs/GetLiabilitiesResponse.md +3 -1
- 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/SyncFinancialConnectionsDataResponse.md +3 -1
- data/docs/SyncTransactionsResponse.md +5 -3
- data/docs/{GetTransactionsResponseDataInner.md → Transaction.md} +16 -14
- data/docs/{GetTransactionsResponseDataInnerMerchant.md → TransactionMerchant.md} +2 -2
- data/docs/UpdateEntityResponse.md +3 -1
- 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 +15 -5
- data/lib/fuse_client/models/create_entity_request.rb +1 -1
- data/lib/fuse_client/models/create_entity_response.rb +15 -5
- 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 +12 -2
- data/lib/fuse_client/models/create_session_request.rb +46 -5
- data/lib/fuse_client/models/create_session_response.rb +17 -2
- data/lib/fuse_client/models/{get_transactions_response.rb → currency.rb} +24 -30
- 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 +17 -2
- 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/{transaction_common_model.rb → financial_connections_investment_security_exchange.rb} +12 -13
- 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 +15 -5
- 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 +42 -5
- data/lib/fuse_client/models/get_financial_connection_response.rb +239 -0
- 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 +30 -5
- data/lib/fuse_client/models/get_financial_connections_accounts_request.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_accounts_response.rb +30 -5
- 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_balance_response.rb +241 -0
- 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 +30 -5
- 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 +25 -5
- 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 +25 -11
- 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 +25 -11
- data/lib/fuse_client/models/get_liabilities_request.rb +1 -1
- data/lib/fuse_client/models/get_liabilities_response.rb +15 -5
- 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/{get_financial_connections_account_balance_response.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 +15 -5
- data/lib/fuse_client/models/sync_transactions_request.rb +1 -1
- data/lib/fuse_client/models/sync_transactions_response.rb +17 -7
- 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 +15 -5
- 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 +7 -1
- data/spec/models/create_entity_request_spec.rb +1 -1
- data/spec/models/create_entity_response_spec.rb +7 -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 +7 -1
- data/spec/models/get_entity_response_spec.rb +13 -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 +7 -1
- data/spec/models/get_financial_connections_accounts_request_spec.rb +1 -1
- data/spec/models/get_financial_connections_accounts_response_spec.rb +7 -1
- data/spec/models/{get_financial_connections_account_balance_response_spec.rb → get_financial_connections_balance_request_options_spec.rb} +8 -8
- data/spec/models/get_financial_connections_balance_request_spec.rb +7 -1
- data/spec/models/get_financial_connections_balance_response_spec.rb +40 -0
- data/spec/models/get_financial_connections_owners_request_spec.rb +1 -1
- data/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +7 -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_transactions_response_spec.rb → get_financial_connections_transactions_response_spec.rb} +10 -10
- data/spec/models/get_financial_institution_response_spec.rb +7 -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 +2 -2
- 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 +2 -2
- data/spec/models/get_liabilities_request_spec.rb +1 -1
- data/spec/models/get_liabilities_response_spec.rb +7 -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/migrate_financial_connections_token_response_spec.rb +52 -0
- 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 +7 -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 +7 -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 +7 -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/GetFinancialConnectionsAccountBalanceResponse.md +0 -18
- data/docs/GetTransactionsRequest.md +0 -22
- data/docs/GetTransactionsResponse.md +0 -22
- data/docs/TransactionCommonModel.md +0 -18
@@ -0,0 +1,250 @@
|
|
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.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module FuseClient
|
17
|
+
class FinancialConnectionsAccountCachedBalance
|
18
|
+
# The amount of funds available to be withdrawn from the account, as determined by the financial institution Available balance may be cached and is not guaranteed to be up-to-date in realtime unless the value was returned by /financial_connections/balances.
|
19
|
+
attr_accessor :available
|
20
|
+
|
21
|
+
# Amount without factoring in pending balances
|
22
|
+
attr_accessor :current
|
23
|
+
|
24
|
+
# The ISO-4217 currency code of the balance.
|
25
|
+
attr_accessor :iso_currency_code
|
26
|
+
|
27
|
+
# The date of the last update to the balance.
|
28
|
+
attr_accessor :last_updated_date
|
29
|
+
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
+
def self.attribute_map
|
32
|
+
{
|
33
|
+
:'available' => :'available',
|
34
|
+
:'current' => :'current',
|
35
|
+
:'iso_currency_code' => :'iso_currency_code',
|
36
|
+
:'last_updated_date' => :'last_updated_date'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# Returns all the JSON keys this model knows about
|
41
|
+
def self.acceptable_attributes
|
42
|
+
attribute_map.values
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
def self.openapi_types
|
47
|
+
{
|
48
|
+
:'available' => :'Float',
|
49
|
+
:'current' => :'Float',
|
50
|
+
:'iso_currency_code' => :'String',
|
51
|
+
:'last_updated_date' => :'String'
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# List of attributes with nullable: true
|
56
|
+
def self.openapi_nullable
|
57
|
+
Set.new([
|
58
|
+
])
|
59
|
+
end
|
60
|
+
|
61
|
+
# Initializes the object
|
62
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
63
|
+
def initialize(attributes = {})
|
64
|
+
if (!attributes.is_a?(Hash))
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::FinancialConnectionsAccountCachedBalance` initialize method"
|
66
|
+
end
|
67
|
+
|
68
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
69
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
70
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::FinancialConnectionsAccountCachedBalance`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
72
|
+
end
|
73
|
+
h[k.to_sym] = v
|
74
|
+
}
|
75
|
+
|
76
|
+
if attributes.key?(:'available')
|
77
|
+
self.available = attributes[:'available']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.key?(:'current')
|
81
|
+
self.current = attributes[:'current']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.key?(:'iso_currency_code')
|
85
|
+
self.iso_currency_code = attributes[:'iso_currency_code']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.key?(:'last_updated_date')
|
89
|
+
self.last_updated_date = attributes[:'last_updated_date']
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
94
|
+
# @return Array for valid properties with the reasons
|
95
|
+
def list_invalid_properties
|
96
|
+
invalid_properties = Array.new
|
97
|
+
invalid_properties
|
98
|
+
end
|
99
|
+
|
100
|
+
# Check to see if the all the properties in the model are valid
|
101
|
+
# @return true if the model is valid
|
102
|
+
def valid?
|
103
|
+
true
|
104
|
+
end
|
105
|
+
|
106
|
+
# Checks equality by comparing each attribute.
|
107
|
+
# @param [Object] Object to be compared
|
108
|
+
def ==(o)
|
109
|
+
return true if self.equal?(o)
|
110
|
+
self.class == o.class &&
|
111
|
+
available == o.available &&
|
112
|
+
current == o.current &&
|
113
|
+
iso_currency_code == o.iso_currency_code &&
|
114
|
+
last_updated_date == o.last_updated_date
|
115
|
+
end
|
116
|
+
|
117
|
+
# @see the `==` method
|
118
|
+
# @param [Object] Object to be compared
|
119
|
+
def eql?(o)
|
120
|
+
self == o
|
121
|
+
end
|
122
|
+
|
123
|
+
# Calculates hash code according to all attributes.
|
124
|
+
# @return [Integer] Hash code
|
125
|
+
def hash
|
126
|
+
[available, current, iso_currency_code, last_updated_date].hash
|
127
|
+
end
|
128
|
+
|
129
|
+
# Builds the object from hash
|
130
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
131
|
+
# @return [Object] Returns the model itself
|
132
|
+
def self.build_from_hash(attributes)
|
133
|
+
new.build_from_hash(attributes)
|
134
|
+
end
|
135
|
+
|
136
|
+
# Builds the object from hash
|
137
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
138
|
+
# @return [Object] Returns the model itself
|
139
|
+
def build_from_hash(attributes)
|
140
|
+
return nil unless attributes.is_a?(Hash)
|
141
|
+
attributes = attributes.transform_keys(&:to_sym)
|
142
|
+
self.class.openapi_types.each_pair do |key, type|
|
143
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
144
|
+
self.send("#{key}=", nil)
|
145
|
+
elsif type =~ /\AArray<(.*)>/i
|
146
|
+
# check to ensure the input is an array given that the attribute
|
147
|
+
# is documented as an array but the input is not
|
148
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
149
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
150
|
+
end
|
151
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
152
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
self
|
157
|
+
end
|
158
|
+
|
159
|
+
# Deserializes the data based on type
|
160
|
+
# @param string type Data type
|
161
|
+
# @param string value Value to be deserialized
|
162
|
+
# @return [Object] Deserialized data
|
163
|
+
def _deserialize(type, value)
|
164
|
+
case type.to_sym
|
165
|
+
when :Time
|
166
|
+
Time.parse(value)
|
167
|
+
when :Date
|
168
|
+
Date.parse(value)
|
169
|
+
when :String
|
170
|
+
value.to_s
|
171
|
+
when :Integer
|
172
|
+
value.to_i
|
173
|
+
when :Float
|
174
|
+
value.to_f
|
175
|
+
when :Boolean
|
176
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
177
|
+
true
|
178
|
+
else
|
179
|
+
false
|
180
|
+
end
|
181
|
+
when :Object
|
182
|
+
# generic object (usually a Hash), return directly
|
183
|
+
value
|
184
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
185
|
+
inner_type = Regexp.last_match[:inner_type]
|
186
|
+
value.map { |v| _deserialize(inner_type, v) }
|
187
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
188
|
+
k_type = Regexp.last_match[:k_type]
|
189
|
+
v_type = Regexp.last_match[:v_type]
|
190
|
+
{}.tap do |hash|
|
191
|
+
value.each do |k, v|
|
192
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
else # model
|
196
|
+
# models (e.g. Pet) or oneOf
|
197
|
+
klass = FuseClient.const_get(type)
|
198
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
# Returns the string representation of the object
|
203
|
+
# @return [String] String presentation of the object
|
204
|
+
def to_s
|
205
|
+
to_hash.to_s
|
206
|
+
end
|
207
|
+
|
208
|
+
# to_body is an alias to to_hash (backward compatibility)
|
209
|
+
# @return [Hash] Returns the object in the form of hash
|
210
|
+
def to_body
|
211
|
+
to_hash
|
212
|
+
end
|
213
|
+
|
214
|
+
# Returns the object in the form of hash
|
215
|
+
# @return [Hash] Returns the object in the form of hash
|
216
|
+
def to_hash
|
217
|
+
hash = {}
|
218
|
+
self.class.attribute_map.each_pair do |attr, param|
|
219
|
+
value = self.send(attr)
|
220
|
+
if value.nil?
|
221
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
222
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
223
|
+
end
|
224
|
+
|
225
|
+
hash[param] = _to_hash(value)
|
226
|
+
end
|
227
|
+
hash
|
228
|
+
end
|
229
|
+
|
230
|
+
# Outputs non-array value in the form of hash
|
231
|
+
# For object, use to_hash. Otherwise, just return the value
|
232
|
+
# @param [Object] value Any valid value
|
233
|
+
# @return [Hash] Returns the value in the form of hash
|
234
|
+
def _to_hash(value)
|
235
|
+
if value.is_a?(Array)
|
236
|
+
value.compact.map { |v| _to_hash(v) }
|
237
|
+
elsif value.is_a?(Hash)
|
238
|
+
{}.tap do |hash|
|
239
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
240
|
+
end
|
241
|
+
elsif value.respond_to? :to_hash
|
242
|
+
value.to_hash
|
243
|
+
else
|
244
|
+
value
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
end
|
249
|
+
|
250
|
+
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
|
|
@@ -75,12 +75,22 @@ module FuseClient
|
|
75
75
|
# @return Array for valid properties with the reasons
|
76
76
|
def list_invalid_properties
|
77
77
|
invalid_properties = Array.new
|
78
|
+
if @remote_id.nil?
|
79
|
+
invalid_properties.push('invalid value for "remote_id", remote_id cannot be nil.')
|
80
|
+
end
|
81
|
+
|
82
|
+
if @ach.nil?
|
83
|
+
invalid_properties.push('invalid value for "ach", ach cannot be nil.')
|
84
|
+
end
|
85
|
+
|
78
86
|
invalid_properties
|
79
87
|
end
|
80
88
|
|
81
89
|
# Check to see if the all the properties in the model are valid
|
82
90
|
# @return true if the model is valid
|
83
91
|
def valid?
|
92
|
+
return false if @remote_id.nil?
|
93
|
+
return false if @ach.nil?
|
84
94
|
true
|
85
95
|
end
|
86
96
|
|
@@ -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
|
|
@@ -23,16 +23,14 @@ module FuseClient
|
|
23
23
|
|
24
24
|
attr_accessor :institution
|
25
25
|
|
26
|
-
# The
|
27
|
-
attr_accessor :
|
26
|
+
# The partial account number.
|
27
|
+
attr_accessor :mask
|
28
28
|
|
29
29
|
# The account's name, ie 'My Checking'
|
30
30
|
attr_accessor :name
|
31
31
|
|
32
|
-
# The account's type e.g depository.
|
33
32
|
attr_accessor :type
|
34
33
|
|
35
|
-
# The account's subtype
|
36
34
|
attr_accessor :subtype
|
37
35
|
|
38
36
|
attr_accessor :balance
|
@@ -58,13 +56,35 @@ module FuseClient
|
|
58
56
|
# The minimum payment required for an account. This can apply to any debt account.
|
59
57
|
attr_accessor :minimum_payment_amount
|
60
58
|
|
59
|
+
class EnumAttributeValidator
|
60
|
+
attr_reader :datatype
|
61
|
+
attr_reader :allowable_values
|
62
|
+
|
63
|
+
def initialize(datatype, allowable_values)
|
64
|
+
@allowable_values = allowable_values.map do |value|
|
65
|
+
case datatype.to_s
|
66
|
+
when /Integer/i
|
67
|
+
value.to_i
|
68
|
+
when /Float/i
|
69
|
+
value.to_f
|
70
|
+
else
|
71
|
+
value
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
def valid?(value)
|
77
|
+
!value || allowable_values.include?(value)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
61
81
|
# Attribute mapping from ruby-style variable name to JSON key.
|
62
82
|
def self.attribute_map
|
63
83
|
{
|
64
84
|
:'remote_id' => :'remote_id',
|
65
85
|
:'fingerprint' => :'fingerprint',
|
66
86
|
:'institution' => :'institution',
|
67
|
-
:'
|
87
|
+
:'mask' => :'mask',
|
68
88
|
:'name' => :'name',
|
69
89
|
:'type' => :'type',
|
70
90
|
:'subtype' => :'subtype',
|
@@ -90,11 +110,11 @@ module FuseClient
|
|
90
110
|
:'remote_id' => :'String',
|
91
111
|
:'fingerprint' => :'String',
|
92
112
|
:'institution' => :'FinancialConnectionsAccountInstitution',
|
93
|
-
:'
|
113
|
+
:'mask' => :'String',
|
94
114
|
:'name' => :'String',
|
95
|
-
:'type' => :'
|
96
|
-
:'subtype' => :'
|
97
|
-
:'balance' => :'
|
115
|
+
:'type' => :'AccountType',
|
116
|
+
:'subtype' => :'AccountSubtype',
|
117
|
+
:'balance' => :'FinancialConnectionsAccountCachedBalance',
|
98
118
|
:'aprs' => :'Array<FinancialConnectionsAccountLiabilityAllOfAprs>',
|
99
119
|
:'interest_rate_percentage' => :'Float',
|
100
120
|
:'origination_principal_amount' => :'Float',
|
@@ -146,8 +166,8 @@ module FuseClient
|
|
146
166
|
self.institution = attributes[:'institution']
|
147
167
|
end
|
148
168
|
|
149
|
-
if attributes.key?(:'
|
150
|
-
self.
|
169
|
+
if attributes.key?(:'mask')
|
170
|
+
self.mask = attributes[:'mask']
|
151
171
|
end
|
152
172
|
|
153
173
|
if attributes.key?(:'name')
|
@@ -201,12 +221,37 @@ module FuseClient
|
|
201
221
|
# @return Array for valid properties with the reasons
|
202
222
|
def list_invalid_properties
|
203
223
|
invalid_properties = Array.new
|
224
|
+
if @remote_id.nil?
|
225
|
+
invalid_properties.push('invalid value for "remote_id", remote_id cannot be nil.')
|
226
|
+
end
|
227
|
+
|
228
|
+
if @fingerprint.nil?
|
229
|
+
invalid_properties.push('invalid value for "fingerprint", fingerprint cannot be nil.')
|
230
|
+
end
|
231
|
+
|
232
|
+
if @name.nil?
|
233
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
234
|
+
end
|
235
|
+
|
236
|
+
if @type.nil?
|
237
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
238
|
+
end
|
239
|
+
|
240
|
+
if @balance.nil?
|
241
|
+
invalid_properties.push('invalid value for "balance", balance cannot be nil.')
|
242
|
+
end
|
243
|
+
|
204
244
|
invalid_properties
|
205
245
|
end
|
206
246
|
|
207
247
|
# Check to see if the all the properties in the model are valid
|
208
248
|
# @return true if the model is valid
|
209
249
|
def valid?
|
250
|
+
return false if @remote_id.nil?
|
251
|
+
return false if @fingerprint.nil?
|
252
|
+
return false if @name.nil?
|
253
|
+
return false if @type.nil?
|
254
|
+
return false if @balance.nil?
|
210
255
|
true
|
211
256
|
end
|
212
257
|
|
@@ -218,7 +263,7 @@ module FuseClient
|
|
218
263
|
remote_id == o.remote_id &&
|
219
264
|
fingerprint == o.fingerprint &&
|
220
265
|
institution == o.institution &&
|
221
|
-
|
266
|
+
mask == o.mask &&
|
222
267
|
name == o.name &&
|
223
268
|
type == o.type &&
|
224
269
|
subtype == o.subtype &&
|
@@ -241,7 +286,7 @@ module FuseClient
|
|
241
286
|
# Calculates hash code according to all attributes.
|
242
287
|
# @return [Integer] Hash code
|
243
288
|
def hash
|
244
|
-
[remote_id, fingerprint, institution,
|
289
|
+
[remote_id, fingerprint, institution, mask, name, type, subtype, balance, aprs, interest_rate_percentage, origination_principal_amount, next_payment_due_date, last_payment_date, last_payment_amount, minimum_payment_amount].hash
|
245
290
|
end
|
246
291
|
|
247
292
|
# 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
|
|
@@ -15,23 +15,22 @@ require 'time'
|
|
15
15
|
|
16
16
|
module FuseClient
|
17
17
|
class FinancialConnectionsHolding
|
18
|
-
#
|
18
|
+
# The remote account ID associated with this holding.
|
19
19
|
attr_accessor :remote_account_id
|
20
20
|
|
21
|
-
# The original total value of the holding.
|
21
|
+
# The original total value of the holding when it was purchased.
|
22
22
|
attr_accessor :cost_basis
|
23
23
|
|
24
|
-
# The value of the holding
|
24
|
+
# The current market value of the holding.
|
25
25
|
attr_accessor :value
|
26
26
|
|
27
|
-
# The
|
28
|
-
attr_accessor :iso_currency_code
|
29
|
-
|
30
|
-
# The number of units of the security involved in this transaction.
|
27
|
+
# The number of units of the security held in this holding.
|
31
28
|
attr_accessor :quantity
|
32
29
|
|
33
|
-
# The
|
34
|
-
attr_accessor :
|
30
|
+
# The price of the security as provided by the financial institution managing the holding.
|
31
|
+
attr_accessor :institution_price
|
32
|
+
|
33
|
+
attr_accessor :security
|
35
34
|
|
36
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
36
|
def self.attribute_map
|
@@ -39,9 +38,9 @@ module FuseClient
|
|
39
38
|
:'remote_account_id' => :'remote_account_id',
|
40
39
|
:'cost_basis' => :'cost_basis',
|
41
40
|
:'value' => :'value',
|
42
|
-
:'iso_currency_code' => :'iso_currency_code',
|
43
41
|
:'quantity' => :'quantity',
|
44
|
-
:'
|
42
|
+
:'institution_price' => :'institution_price',
|
43
|
+
:'security' => :'security'
|
45
44
|
}
|
46
45
|
end
|
47
46
|
|
@@ -56,9 +55,9 @@ module FuseClient
|
|
56
55
|
:'remote_account_id' => :'String',
|
57
56
|
:'cost_basis' => :'Float',
|
58
57
|
:'value' => :'Float',
|
59
|
-
:'iso_currency_code' => :'String',
|
60
58
|
:'quantity' => :'Float',
|
61
|
-
:'
|
59
|
+
:'institution_price' => :'Float',
|
60
|
+
:'security' => :'FinancialConnectionsInvestmentSecurity'
|
62
61
|
}
|
63
62
|
end
|
64
63
|
|
@@ -95,16 +94,16 @@ module FuseClient
|
|
95
94
|
self.value = attributes[:'value']
|
96
95
|
end
|
97
96
|
|
98
|
-
if attributes.key?(:'iso_currency_code')
|
99
|
-
self.iso_currency_code = attributes[:'iso_currency_code']
|
100
|
-
end
|
101
|
-
|
102
97
|
if attributes.key?(:'quantity')
|
103
98
|
self.quantity = attributes[:'quantity']
|
104
99
|
end
|
105
100
|
|
106
|
-
if attributes.key?(:'
|
107
|
-
self.
|
101
|
+
if attributes.key?(:'institution_price')
|
102
|
+
self.institution_price = attributes[:'institution_price']
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.key?(:'security')
|
106
|
+
self.security = attributes[:'security']
|
108
107
|
end
|
109
108
|
end
|
110
109
|
|
@@ -112,12 +111,42 @@ module FuseClient
|
|
112
111
|
# @return Array for valid properties with the reasons
|
113
112
|
def list_invalid_properties
|
114
113
|
invalid_properties = Array.new
|
114
|
+
if @remote_account_id.nil?
|
115
|
+
invalid_properties.push('invalid value for "remote_account_id", remote_account_id cannot be nil.')
|
116
|
+
end
|
117
|
+
|
118
|
+
if @cost_basis.nil?
|
119
|
+
invalid_properties.push('invalid value for "cost_basis", cost_basis cannot be nil.')
|
120
|
+
end
|
121
|
+
|
122
|
+
if @value.nil?
|
123
|
+
invalid_properties.push('invalid value for "value", value cannot be nil.')
|
124
|
+
end
|
125
|
+
|
126
|
+
if @quantity.nil?
|
127
|
+
invalid_properties.push('invalid value for "quantity", quantity cannot be nil.')
|
128
|
+
end
|
129
|
+
|
130
|
+
if @institution_price.nil?
|
131
|
+
invalid_properties.push('invalid value for "institution_price", institution_price cannot be nil.')
|
132
|
+
end
|
133
|
+
|
134
|
+
if @security.nil?
|
135
|
+
invalid_properties.push('invalid value for "security", security cannot be nil.')
|
136
|
+
end
|
137
|
+
|
115
138
|
invalid_properties
|
116
139
|
end
|
117
140
|
|
118
141
|
# Check to see if the all the properties in the model are valid
|
119
142
|
# @return true if the model is valid
|
120
143
|
def valid?
|
144
|
+
return false if @remote_account_id.nil?
|
145
|
+
return false if @cost_basis.nil?
|
146
|
+
return false if @value.nil?
|
147
|
+
return false if @quantity.nil?
|
148
|
+
return false if @institution_price.nil?
|
149
|
+
return false if @security.nil?
|
121
150
|
true
|
122
151
|
end
|
123
152
|
|
@@ -129,9 +158,9 @@ module FuseClient
|
|
129
158
|
remote_account_id == o.remote_account_id &&
|
130
159
|
cost_basis == o.cost_basis &&
|
131
160
|
value == o.value &&
|
132
|
-
iso_currency_code == o.iso_currency_code &&
|
133
161
|
quantity == o.quantity &&
|
134
|
-
|
162
|
+
institution_price == o.institution_price &&
|
163
|
+
security == o.security
|
135
164
|
end
|
136
165
|
|
137
166
|
# @see the `==` method
|
@@ -143,7 +172,7 @@ module FuseClient
|
|
143
172
|
# Calculates hash code according to all attributes.
|
144
173
|
# @return [Integer] Hash code
|
145
174
|
def hash
|
146
|
-
[remote_account_id, cost_basis, value,
|
175
|
+
[remote_account_id, cost_basis, value, quantity, institution_price, security].hash
|
147
176
|
end
|
148
177
|
|
149
178
|
# Builds the object from hash
|