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
@@ -0,0 +1,264 @@
|
|
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 MigrateFinancialConnectionsTokenResponse
|
18
|
+
attr_accessor :connection_data
|
19
|
+
|
20
|
+
# Fuse access token for the fuse connection
|
21
|
+
attr_accessor :fuse_access_token
|
22
|
+
|
23
|
+
# Financial connection id for the fuse connection
|
24
|
+
attr_accessor :fuse_financial_connection_id
|
25
|
+
|
26
|
+
# An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
|
27
|
+
attr_accessor :request_id
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
def self.attribute_map
|
31
|
+
{
|
32
|
+
:'connection_data' => :'connection_data',
|
33
|
+
:'fuse_access_token' => :'fuse_access_token',
|
34
|
+
:'fuse_financial_connection_id' => :'fuse_financial_connection_id',
|
35
|
+
:'request_id' => :'request_id'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Returns all the JSON keys this model knows about
|
40
|
+
def self.acceptable_attributes
|
41
|
+
attribute_map.values
|
42
|
+
end
|
43
|
+
|
44
|
+
# Attribute type mapping.
|
45
|
+
def self.openapi_types
|
46
|
+
{
|
47
|
+
:'connection_data' => :'MigrateFinancialConnectionsAggregatorConnectionData',
|
48
|
+
:'fuse_access_token' => :'String',
|
49
|
+
:'fuse_financial_connection_id' => :'String',
|
50
|
+
:'request_id' => :'String'
|
51
|
+
}
|
52
|
+
end
|
53
|
+
|
54
|
+
# List of attributes with nullable: true
|
55
|
+
def self.openapi_nullable
|
56
|
+
Set.new([
|
57
|
+
])
|
58
|
+
end
|
59
|
+
|
60
|
+
# Initializes the object
|
61
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
62
|
+
def initialize(attributes = {})
|
63
|
+
if (!attributes.is_a?(Hash))
|
64
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::MigrateFinancialConnectionsTokenResponse` initialize method"
|
65
|
+
end
|
66
|
+
|
67
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
68
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
69
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::MigrateFinancialConnectionsTokenResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
71
|
+
end
|
72
|
+
h[k.to_sym] = v
|
73
|
+
}
|
74
|
+
|
75
|
+
if attributes.key?(:'connection_data')
|
76
|
+
self.connection_data = attributes[:'connection_data']
|
77
|
+
end
|
78
|
+
|
79
|
+
if attributes.key?(:'fuse_access_token')
|
80
|
+
self.fuse_access_token = attributes[:'fuse_access_token']
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.key?(:'fuse_financial_connection_id')
|
84
|
+
self.fuse_financial_connection_id = attributes[:'fuse_financial_connection_id']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.key?(:'request_id')
|
88
|
+
self.request_id = attributes[:'request_id']
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
93
|
+
# @return Array for valid properties with the reasons
|
94
|
+
def list_invalid_properties
|
95
|
+
invalid_properties = Array.new
|
96
|
+
if @connection_data.nil?
|
97
|
+
invalid_properties.push('invalid value for "connection_data", connection_data cannot be nil.')
|
98
|
+
end
|
99
|
+
|
100
|
+
if @fuse_access_token.nil?
|
101
|
+
invalid_properties.push('invalid value for "fuse_access_token", fuse_access_token cannot be nil.')
|
102
|
+
end
|
103
|
+
|
104
|
+
if @fuse_financial_connection_id.nil?
|
105
|
+
invalid_properties.push('invalid value for "fuse_financial_connection_id", fuse_financial_connection_id cannot be nil.')
|
106
|
+
end
|
107
|
+
|
108
|
+
invalid_properties
|
109
|
+
end
|
110
|
+
|
111
|
+
# Check to see if the all the properties in the model are valid
|
112
|
+
# @return true if the model is valid
|
113
|
+
def valid?
|
114
|
+
return false if @connection_data.nil?
|
115
|
+
return false if @fuse_access_token.nil?
|
116
|
+
return false if @fuse_financial_connection_id.nil?
|
117
|
+
true
|
118
|
+
end
|
119
|
+
|
120
|
+
# Checks equality by comparing each attribute.
|
121
|
+
# @param [Object] Object to be compared
|
122
|
+
def ==(o)
|
123
|
+
return true if self.equal?(o)
|
124
|
+
self.class == o.class &&
|
125
|
+
connection_data == o.connection_data &&
|
126
|
+
fuse_access_token == o.fuse_access_token &&
|
127
|
+
fuse_financial_connection_id == o.fuse_financial_connection_id &&
|
128
|
+
request_id == o.request_id
|
129
|
+
end
|
130
|
+
|
131
|
+
# @see the `==` method
|
132
|
+
# @param [Object] Object to be compared
|
133
|
+
def eql?(o)
|
134
|
+
self == o
|
135
|
+
end
|
136
|
+
|
137
|
+
# Calculates hash code according to all attributes.
|
138
|
+
# @return [Integer] Hash code
|
139
|
+
def hash
|
140
|
+
[connection_data, fuse_access_token, fuse_financial_connection_id, request_id].hash
|
141
|
+
end
|
142
|
+
|
143
|
+
# Builds the object from hash
|
144
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
145
|
+
# @return [Object] Returns the model itself
|
146
|
+
def self.build_from_hash(attributes)
|
147
|
+
new.build_from_hash(attributes)
|
148
|
+
end
|
149
|
+
|
150
|
+
# Builds the object from hash
|
151
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
152
|
+
# @return [Object] Returns the model itself
|
153
|
+
def build_from_hash(attributes)
|
154
|
+
return nil unless attributes.is_a?(Hash)
|
155
|
+
attributes = attributes.transform_keys(&:to_sym)
|
156
|
+
self.class.openapi_types.each_pair do |key, type|
|
157
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
158
|
+
self.send("#{key}=", nil)
|
159
|
+
elsif type =~ /\AArray<(.*)>/i
|
160
|
+
# check to ensure the input is an array given that the attribute
|
161
|
+
# is documented as an array but the input is not
|
162
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
163
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
164
|
+
end
|
165
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
166
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
self
|
171
|
+
end
|
172
|
+
|
173
|
+
# Deserializes the data based on type
|
174
|
+
# @param string type Data type
|
175
|
+
# @param string value Value to be deserialized
|
176
|
+
# @return [Object] Deserialized data
|
177
|
+
def _deserialize(type, value)
|
178
|
+
case type.to_sym
|
179
|
+
when :Time
|
180
|
+
Time.parse(value)
|
181
|
+
when :Date
|
182
|
+
Date.parse(value)
|
183
|
+
when :String
|
184
|
+
value.to_s
|
185
|
+
when :Integer
|
186
|
+
value.to_i
|
187
|
+
when :Float
|
188
|
+
value.to_f
|
189
|
+
when :Boolean
|
190
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
191
|
+
true
|
192
|
+
else
|
193
|
+
false
|
194
|
+
end
|
195
|
+
when :Object
|
196
|
+
# generic object (usually a Hash), return directly
|
197
|
+
value
|
198
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
199
|
+
inner_type = Regexp.last_match[:inner_type]
|
200
|
+
value.map { |v| _deserialize(inner_type, v) }
|
201
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
202
|
+
k_type = Regexp.last_match[:k_type]
|
203
|
+
v_type = Regexp.last_match[:v_type]
|
204
|
+
{}.tap do |hash|
|
205
|
+
value.each do |k, v|
|
206
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
else # model
|
210
|
+
# models (e.g. Pet) or oneOf
|
211
|
+
klass = FuseClient.const_get(type)
|
212
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
# Returns the string representation of the object
|
217
|
+
# @return [String] String presentation of the object
|
218
|
+
def to_s
|
219
|
+
to_hash.to_s
|
220
|
+
end
|
221
|
+
|
222
|
+
# to_body is an alias to to_hash (backward compatibility)
|
223
|
+
# @return [Hash] Returns the object in the form of hash
|
224
|
+
def to_body
|
225
|
+
to_hash
|
226
|
+
end
|
227
|
+
|
228
|
+
# Returns the object in the form of hash
|
229
|
+
# @return [Hash] Returns the object in the form of hash
|
230
|
+
def to_hash
|
231
|
+
hash = {}
|
232
|
+
self.class.attribute_map.each_pair do |attr, param|
|
233
|
+
value = self.send(attr)
|
234
|
+
if value.nil?
|
235
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
236
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
237
|
+
end
|
238
|
+
|
239
|
+
hash[param] = _to_hash(value)
|
240
|
+
end
|
241
|
+
hash
|
242
|
+
end
|
243
|
+
|
244
|
+
# Outputs non-array value in the form of hash
|
245
|
+
# For object, use to_hash. Otherwise, just return the value
|
246
|
+
# @param [Object] value Any valid value
|
247
|
+
# @return [Hash] Returns the value in the form of hash
|
248
|
+
def _to_hash(value)
|
249
|
+
if value.is_a?(Array)
|
250
|
+
value.compact.map { |v| _to_hash(v) }
|
251
|
+
elsif value.is_a?(Hash)
|
252
|
+
{}.tap do |hash|
|
253
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
254
|
+
end
|
255
|
+
elsif value.respond_to? :to_hash
|
256
|
+
value.to_hash
|
257
|
+
else
|
258
|
+
value
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
262
|
+
end
|
263
|
+
|
264
|
+
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,11 +19,11 @@ module FuseClient
|
|
19
19
|
BALANCE = "balance".freeze
|
20
20
|
OWNERSHIP = "ownership".freeze
|
21
21
|
TRANSACTIONS = "transactions".freeze
|
22
|
-
LIABILITIES = "liabilities".freeze
|
23
22
|
INVESTMENTS = "investments".freeze
|
23
|
+
ASSET_REPORT = "asset_report".freeze
|
24
24
|
|
25
25
|
def self.all_vars
|
26
|
-
@all_vars ||= [ACCOUNT_DETAILS, BALANCE, OWNERSHIP, TRANSACTIONS,
|
26
|
+
@all_vars ||= [ACCOUNT_DETAILS, BALANCE, OWNERSHIP, TRANSACTIONS, INVESTMENTS, ASSET_REPORT].freeze
|
27
27
|
end
|
28
28
|
|
29
29
|
# Builds the enum from string
|
@@ -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
|
|
@@ -53,8 +53,8 @@ module FuseClient
|
|
53
53
|
# Attribute type mapping.
|
54
54
|
def self.openapi_types
|
55
55
|
{
|
56
|
-
:'added' => :'Array<
|
57
|
-
:'modified' => :'Array<
|
56
|
+
:'added' => :'Array<Transaction>',
|
57
|
+
:'modified' => :'Array<Transaction>',
|
58
58
|
:'removed' => :'Array<SyncTransactionsResponseRemovedInner>',
|
59
59
|
:'next_cursor' => :'String',
|
60
60
|
:'has_next' => :'Boolean',
|
@@ -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,10 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module FuseClient
|
17
|
-
class
|
18
|
-
# Fuse Id of the transaction
|
19
|
-
attr_accessor :id
|
20
|
-
|
17
|
+
class Transaction
|
21
18
|
# Remote Id of the transaction, ie Plaid or Teller Id
|
22
19
|
attr_accessor :remote_id
|
23
20
|
|
@@ -27,7 +24,7 @@ module FuseClient
|
|
27
24
|
# Amount in cents associated with the transaction
|
28
25
|
attr_accessor :amount
|
29
26
|
|
30
|
-
# Date of the transaction
|
27
|
+
# Date of the transaction (YYYY-MM-DD)
|
31
28
|
attr_accessor :date
|
32
29
|
|
33
30
|
# Description of the transaction
|
@@ -38,16 +35,42 @@ module FuseClient
|
|
38
35
|
|
39
36
|
attr_accessor :merchant
|
40
37
|
|
41
|
-
# The status of the transaction. This will be either
|
38
|
+
# The status of the transaction. This will be either posted or pending.
|
42
39
|
attr_accessor :status
|
43
40
|
|
44
41
|
# Type of the transaction, ie adjustment
|
45
42
|
attr_accessor :type
|
46
43
|
|
44
|
+
# The ISO-4217 currency code of the transaction
|
45
|
+
attr_accessor :iso_currency_code
|
46
|
+
|
47
|
+
attr_accessor :remote_data
|
48
|
+
|
49
|
+
class EnumAttributeValidator
|
50
|
+
attr_reader :datatype
|
51
|
+
attr_reader :allowable_values
|
52
|
+
|
53
|
+
def initialize(datatype, allowable_values)
|
54
|
+
@allowable_values = allowable_values.map do |value|
|
55
|
+
case datatype.to_s
|
56
|
+
when /Integer/i
|
57
|
+
value.to_i
|
58
|
+
when /Float/i
|
59
|
+
value.to_f
|
60
|
+
else
|
61
|
+
value
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
def valid?(value)
|
67
|
+
!value || allowable_values.include?(value)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
47
71
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
72
|
def self.attribute_map
|
49
73
|
{
|
50
|
-
:'id' => :'id',
|
51
74
|
:'remote_id' => :'remote_id',
|
52
75
|
:'remote_account_id' => :'remote_account_id',
|
53
76
|
:'amount' => :'amount',
|
@@ -56,7 +79,9 @@ module FuseClient
|
|
56
79
|
:'category' => :'category',
|
57
80
|
:'merchant' => :'merchant',
|
58
81
|
:'status' => :'status',
|
59
|
-
:'type' => :'type'
|
82
|
+
:'type' => :'type',
|
83
|
+
:'iso_currency_code' => :'iso_currency_code',
|
84
|
+
:'remote_data' => :'remote_data'
|
60
85
|
}
|
61
86
|
end
|
62
87
|
|
@@ -68,22 +93,24 @@ module FuseClient
|
|
68
93
|
# Attribute type mapping.
|
69
94
|
def self.openapi_types
|
70
95
|
{
|
71
|
-
:'id' => :'String',
|
72
96
|
:'remote_id' => :'String',
|
73
97
|
:'remote_account_id' => :'String',
|
74
98
|
:'amount' => :'Float',
|
75
99
|
:'date' => :'String',
|
76
100
|
:'description' => :'String',
|
77
101
|
:'category' => :'Array<String>',
|
78
|
-
:'merchant' => :'
|
102
|
+
:'merchant' => :'TransactionMerchant',
|
79
103
|
:'status' => :'String',
|
80
|
-
:'type' => :'String'
|
104
|
+
:'type' => :'String',
|
105
|
+
:'iso_currency_code' => :'String',
|
106
|
+
:'remote_data' => :'Object'
|
81
107
|
}
|
82
108
|
end
|
83
109
|
|
84
110
|
# List of attributes with nullable: true
|
85
111
|
def self.openapi_nullable
|
86
112
|
Set.new([
|
113
|
+
:'remote_data'
|
87
114
|
])
|
88
115
|
end
|
89
116
|
|
@@ -91,21 +118,17 @@ module FuseClient
|
|
91
118
|
# @param [Hash] attributes Model attributes in the form of hash
|
92
119
|
def initialize(attributes = {})
|
93
120
|
if (!attributes.is_a?(Hash))
|
94
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::
|
121
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::Transaction` initialize method"
|
95
122
|
end
|
96
123
|
|
97
124
|
# check to see if the attribute exists and convert string to symbol for hash key
|
98
125
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
99
126
|
if (!self.class.attribute_map.key?(k.to_sym))
|
100
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::
|
127
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::Transaction`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
101
128
|
end
|
102
129
|
h[k.to_sym] = v
|
103
130
|
}
|
104
131
|
|
105
|
-
if attributes.key?(:'id')
|
106
|
-
self.id = attributes[:'id']
|
107
|
-
end
|
108
|
-
|
109
132
|
if attributes.key?(:'remote_id')
|
110
133
|
self.remote_id = attributes[:'remote_id']
|
111
134
|
end
|
@@ -143,27 +166,91 @@ module FuseClient
|
|
143
166
|
if attributes.key?(:'type')
|
144
167
|
self.type = attributes[:'type']
|
145
168
|
end
|
169
|
+
|
170
|
+
if attributes.key?(:'iso_currency_code')
|
171
|
+
self.iso_currency_code = attributes[:'iso_currency_code']
|
172
|
+
end
|
173
|
+
|
174
|
+
if attributes.key?(:'remote_data')
|
175
|
+
self.remote_data = attributes[:'remote_data']
|
176
|
+
end
|
146
177
|
end
|
147
178
|
|
148
179
|
# Show invalid properties with the reasons. Usually used together with valid?
|
149
180
|
# @return Array for valid properties with the reasons
|
150
181
|
def list_invalid_properties
|
151
182
|
invalid_properties = Array.new
|
183
|
+
if @remote_id.nil?
|
184
|
+
invalid_properties.push('invalid value for "remote_id", remote_id cannot be nil.')
|
185
|
+
end
|
186
|
+
|
187
|
+
if @remote_account_id.nil?
|
188
|
+
invalid_properties.push('invalid value for "remote_account_id", remote_account_id cannot be nil.')
|
189
|
+
end
|
190
|
+
|
191
|
+
if @amount.nil?
|
192
|
+
invalid_properties.push('invalid value for "amount", amount cannot be nil.')
|
193
|
+
end
|
194
|
+
|
195
|
+
if @date.nil?
|
196
|
+
invalid_properties.push('invalid value for "date", date cannot be nil.')
|
197
|
+
end
|
198
|
+
|
199
|
+
if @description.nil?
|
200
|
+
invalid_properties.push('invalid value for "description", description cannot be nil.')
|
201
|
+
end
|
202
|
+
|
203
|
+
if @category.nil?
|
204
|
+
invalid_properties.push('invalid value for "category", category cannot be nil.')
|
205
|
+
end
|
206
|
+
|
207
|
+
if @merchant.nil?
|
208
|
+
invalid_properties.push('invalid value for "merchant", merchant cannot be nil.')
|
209
|
+
end
|
210
|
+
|
211
|
+
if @status.nil?
|
212
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
213
|
+
end
|
214
|
+
|
215
|
+
if @type.nil?
|
216
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
217
|
+
end
|
218
|
+
|
152
219
|
invalid_properties
|
153
220
|
end
|
154
221
|
|
155
222
|
# Check to see if the all the properties in the model are valid
|
156
223
|
# @return true if the model is valid
|
157
224
|
def valid?
|
225
|
+
return false if @remote_id.nil?
|
226
|
+
return false if @remote_account_id.nil?
|
227
|
+
return false if @amount.nil?
|
228
|
+
return false if @date.nil?
|
229
|
+
return false if @description.nil?
|
230
|
+
return false if @category.nil?
|
231
|
+
return false if @merchant.nil?
|
232
|
+
return false if @status.nil?
|
233
|
+
status_validator = EnumAttributeValidator.new('String', ["pending", "posted"])
|
234
|
+
return false unless status_validator.valid?(@status)
|
235
|
+
return false if @type.nil?
|
158
236
|
true
|
159
237
|
end
|
160
238
|
|
239
|
+
# Custom attribute writer method checking allowed values (enum).
|
240
|
+
# @param [Object] status Object to be assigned
|
241
|
+
def status=(status)
|
242
|
+
validator = EnumAttributeValidator.new('String', ["pending", "posted"])
|
243
|
+
unless validator.valid?(status)
|
244
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
245
|
+
end
|
246
|
+
@status = status
|
247
|
+
end
|
248
|
+
|
161
249
|
# Checks equality by comparing each attribute.
|
162
250
|
# @param [Object] Object to be compared
|
163
251
|
def ==(o)
|
164
252
|
return true if self.equal?(o)
|
165
253
|
self.class == o.class &&
|
166
|
-
id == o.id &&
|
167
254
|
remote_id == o.remote_id &&
|
168
255
|
remote_account_id == o.remote_account_id &&
|
169
256
|
amount == o.amount &&
|
@@ -172,7 +259,9 @@ module FuseClient
|
|
172
259
|
category == o.category &&
|
173
260
|
merchant == o.merchant &&
|
174
261
|
status == o.status &&
|
175
|
-
type == o.type
|
262
|
+
type == o.type &&
|
263
|
+
iso_currency_code == o.iso_currency_code &&
|
264
|
+
remote_data == o.remote_data
|
176
265
|
end
|
177
266
|
|
178
267
|
# @see the `==` method
|
@@ -184,7 +273,7 @@ module FuseClient
|
|
184
273
|
# Calculates hash code according to all attributes.
|
185
274
|
# @return [Integer] Hash code
|
186
275
|
def hash
|
187
|
-
[
|
276
|
+
[remote_id, remote_account_id, amount, date, description, category, merchant, status, type, iso_currency_code, remote_data].hash
|
188
277
|
end
|
189
278
|
|
190
279
|
# 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
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module FuseClient
|
17
|
-
class
|
17
|
+
class TransactionMerchant
|
18
18
|
# Merchant name
|
19
19
|
attr_accessor :name
|
20
20
|
|
@@ -47,13 +47,13 @@ module FuseClient
|
|
47
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
48
48
|
def initialize(attributes = {})
|
49
49
|
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::TransactionMerchant` initialize method"
|
51
51
|
end
|
52
52
|
|
53
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
54
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::TransactionMerchant`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
57
|
end
|
58
58
|
h[k.to_sym] = v
|
59
59
|
}
|