fuse_client 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/docs/CreateLinkTokenRequest.md +8 -2
- data/docs/FuseApi.md +14 -14
- data/docs/FuseApiWarningData.md +2 -2
- data/docs/FuseApiWarningDataWarningsInner.md +26 -0
- data/fuse_client.gemspec +2 -2
- data/lib/fuse_client/api/fuse_api.rb +9 -9
- data/lib/fuse_client/api_client.rb +1 -1
- data/lib/fuse_client/api_error.rb +2 -1
- data/lib/fuse_client/configuration.rb +12 -1
- data/lib/fuse_client/models/aggregator.rb +1 -1
- 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 +42 -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 +1 -1
- data/lib/fuse_client/models/create_session_request.rb +1 -1
- data/lib/fuse_client/models/create_session_response.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 +1 -1
- data/lib/fuse_client/models/financial_connections_account.rb +1 -1
- data/lib/fuse_client/models/financial_connections_account_balance.rb +1 -1
- data/lib/fuse_client/models/financial_connections_account_details.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/fuse_client/models/financial_connections_investment_account.rb +1 -1
- data/lib/fuse_client/models/financial_connections_investment_security.rb +1 -1
- data/lib/fuse_client/models/financial_connections_investment_transaction.rb +1 -1
- data/lib/fuse_client/models/financial_connections_investment_transaction_data_inner.rb +1 -1
- data/lib/fuse_client/models/financial_connections_owner.rb +1 -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 +1 -1
- data/lib/fuse_client/models/financial_connections_owner_names_inner.rb +1 -1
- data/lib/fuse_client/models/financial_connections_owner_phone_numbers_inner.rb +1 -1
- data/lib/fuse_client/models/fuse_api_error.rb +1 -1
- data/lib/fuse_client/models/fuse_api_error_data.rb +1 -1
- data/lib/fuse_client/models/fuse_api_warning.rb +1 -1
- data/lib/fuse_client/models/fuse_api_warning_data.rb +9 -9
- data/lib/fuse_client/models/fuse_api_warning_data_warnings_inner.rb +289 -0
- 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 +1 -1
- data/lib/fuse_client/models/get_financial_connections_account_balance_response.rb +1 -1
- 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 +1 -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 +1 -1
- data/lib/fuse_client/models/get_financial_connections_balance_request.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_owners_request.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_owners_response.rb +1 -1
- data/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +1 -1
- data/lib/fuse_client/models/get_investment_holdings_request.rb +1 -1
- data/lib/fuse_client/models/get_investment_holdings_response.rb +1 -1
- data/lib/fuse_client/models/get_investment_transactions_request.rb +1 -1
- data/lib/fuse_client/models/get_investment_transactions_response.rb +1 -1
- 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/get_transactions_request.rb +1 -1
- data/lib/fuse_client/models/get_transactions_response.rb +1 -1
- data/lib/fuse_client/models/get_transactions_response_data_inner.rb +1 -1
- data/lib/fuse_client/models/get_transactions_response_data_inner_merchant.rb +1 -1
- data/lib/fuse_client/models/product.rb +1 -1
- 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 +1 -1
- data/lib/fuse_client/models/sync_transactions_response_removed_inner.rb +1 -1
- data/lib/fuse_client/models/transaction_common_model.rb +1 -1
- 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/version.rb +2 -2
- data/lib/fuse_client.rb +2 -1
- data/spec/api/fuse_api_spec.rb +4 -4
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/aggregator_spec.rb +1 -1
- 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 +20 -2
- data/spec/models/create_link_token_response_spec.rb +1 -1
- data/spec/models/create_session_request_spec.rb +1 -1
- data/spec/models/create_session_response_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_connections_account_balance_spec.rb +1 -1
- 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 +1 -1
- data/spec/models/financial_connections_account_spec.rb +1 -1
- data/spec/models/financial_connections_holding_spec.rb +1 -1
- data/spec/models/financial_connections_investment_account_spec.rb +1 -1
- data/spec/models/financial_connections_investment_security_spec.rb +1 -1
- data/spec/models/financial_connections_investment_transaction_data_inner_spec.rb +1 -1
- data/spec/models/financial_connections_investment_transaction_spec.rb +1 -1
- 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/fuse_api_error_data_spec.rb +1 -1
- data/spec/models/fuse_api_error_spec.rb +1 -1
- data/spec/models/fuse_api_warning_data_spec.rb +2 -2
- data/spec/models/fuse_api_warning_data_warnings_inner_spec.rb +62 -0
- 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 +1 -1
- data/spec/models/get_financial_connections_account_balance_response_spec.rb +1 -1
- 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_spec.rb +1 -1
- 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_investment_holdings_request_spec.rb +1 -1
- data/spec/models/get_investment_holdings_response_spec.rb +1 -1
- data/spec/models/get_investment_transactions_request_spec.rb +1 -1
- data/spec/models/get_investment_transactions_response_spec.rb +1 -1
- data/spec/models/get_liabilities_request_spec.rb +1 -1
- data/spec/models/get_liabilities_response_spec.rb +1 -1
- data/spec/models/get_transactions_request_spec.rb +1 -1
- data/spec/models/get_transactions_response_data_inner_merchant_spec.rb +1 -1
- data/spec/models/get_transactions_response_data_inner_spec.rb +1 -1
- data/spec/models/get_transactions_response_spec.rb +1 -1
- 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 +1 -1
- data/spec/models/update_entity_request_spec.rb +1 -1
- data/spec/models/update_entity_response_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +6 -3
- data/fuse_client-0.3.4.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 628afaeb261c0f8ccd640b9db4ee825377761444dd444fb64d68846a4ab8ab7a
|
4
|
+
data.tar.gz: 37cb4afb9961af40906da1e336609ce9639f128a1983bd3bdaa4f5ea27e209a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88d208df41f9955707ebe5d5b3face7a1397fa889cf6e504dec198d4b471d796ba41e3569255013d2bbf11ba80365f86f915f06f3439a559909c8084f7e7315d
|
7
|
+
data.tar.gz: e632699c37f9153ac118c4d0c9d95763e3dca283409500dae80ca9b671a2523ce2dafa6fbb2af04842da602fd70e7a63975023d22820bb67ecf64d8bc3fe73e5
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fuse_client (0.
|
4
|
+
fuse_client (1.0.1)
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -17,7 +17,7 @@ GEM
|
|
17
17
|
jaro_winkler (1.5.4)
|
18
18
|
method_source (1.0.0)
|
19
19
|
parallel (1.22.1)
|
20
|
-
parser (3.2.
|
20
|
+
parser (3.2.1.0)
|
21
21
|
ast (~> 2.4.1)
|
22
22
|
pry (0.14.2)
|
23
23
|
coderay (~> 1.1)
|
@@ -67,4 +67,4 @@ DEPENDENCIES
|
|
67
67
|
rubocop (~> 0.66.0)
|
68
68
|
|
69
69
|
BUNDLED WITH
|
70
|
-
2.4.
|
70
|
+
2.4.6
|
@@ -5,7 +5,10 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **institution_id** | **String** | An id that is unique for an institution. | [optional] |
|
8
|
-
| **
|
8
|
+
| **entity_id** | **String** | Unique identifier for the user or business account. | |
|
9
|
+
| **entity_name** | **String** | The name of the user or business account. | [optional] |
|
10
|
+
| **entity_email** | **String** | Email address associated with the user or business account. | [optional] |
|
11
|
+
| **reconnection_url** | **String** | This field is used to provide the user with a link to reconnect their financial account. It may be included in an automated email sent by Fuse to the entity's registered email address. It's important to note that the reconnection_url should be a valid URL and can only be used once to reconnect the disconnected account. | [optional] |
|
9
12
|
| **client_name** | **String** | The name of your application. | [optional] |
|
10
13
|
| **session_client_secret** | **String** | The session client secret created from the 'Create session client secret' endpoint | |
|
11
14
|
| **mx** | [**CreateLinkTokenRequestMx**](CreateLinkTokenRequestMx.md) | | [optional] |
|
@@ -18,7 +21,10 @@ require 'fuse_client'
|
|
18
21
|
|
19
22
|
instance = FuseClient::CreateLinkTokenRequest.new(
|
20
23
|
institution_id: null,
|
21
|
-
|
24
|
+
entity_id: null,
|
25
|
+
entity_name: null,
|
26
|
+
entity_email: null,
|
27
|
+
reconnection_url: null,
|
22
28
|
client_name: null,
|
23
29
|
session_client_secret: null,
|
24
30
|
mx: null,
|
data/docs/FuseApi.md
CHANGED
@@ -8,7 +8,7 @@ All URIs are relative to *https://sandbox-api.letsfuse.com*
|
|
8
8
|
| [**create_entity**](FuseApi.md#create_entity) | **POST** /v1/entities | Create entity |
|
9
9
|
| [**create_link_token**](FuseApi.md#create_link_token) | **POST** /v1/link/token | |
|
10
10
|
| [**create_session**](FuseApi.md#create_session) | **POST** /v1/session | |
|
11
|
-
| [**
|
11
|
+
| [**exchange_financial_connections_public_token**](FuseApi.md#exchange_financial_connections_public_token) | **POST** /v1/financial_connections/public_token/exchange | |
|
12
12
|
| [**get_asset_report**](FuseApi.md#get_asset_report) | **POST** /v1/asset_report | |
|
13
13
|
| [**get_entity**](FuseApi.md#get_entity) | **GET** /v1/entities/{entity_id} | Get entity |
|
14
14
|
| [**get_financial_connections_account_details**](FuseApi.md#get_financial_connections_account_details) | **POST** /v1/financial_connections/accounts/details | Get account details |
|
@@ -17,7 +17,7 @@ All URIs are relative to *https://sandbox-api.letsfuse.com*
|
|
17
17
|
| [**get_financial_connections_owners**](FuseApi.md#get_financial_connections_owners) | **POST** /v1/financial_connections/owners | Get account owners |
|
18
18
|
| [**get_financial_connections_transactions**](FuseApi.md#get_financial_connections_transactions) | **POST** /v1/financial_connections/transactions | Get transactions |
|
19
19
|
| [**get_investment_holdings**](FuseApi.md#get_investment_holdings) | **POST** /v1/financial_connections/investments/holdings | Get investment holdings |
|
20
|
-
| [**get_investment_transactions**](FuseApi.md#get_investment_transactions) | **POST** /v1/financial_connections/investments/transactions | Get investment
|
20
|
+
| [**get_investment_transactions**](FuseApi.md#get_investment_transactions) | **POST** /v1/financial_connections/investments/transactions | Get investment transactions |
|
21
21
|
| [**refresh_asset_report**](FuseApi.md#refresh_asset_report) | **POST** /v1/asset_report/refresh | |
|
22
22
|
| [**sync_financial_connections_data**](FuseApi.md#sync_financial_connections_data) | **POST** /v1/financial_connections/sync | Sync financial connections data |
|
23
23
|
| [**sync_financial_connections_transactions**](FuseApi.md#sync_financial_connections_transactions) | **POST** /v1/financial_connections/transactions/sync | Sync transactions |
|
@@ -205,7 +205,7 @@ end
|
|
205
205
|
|
206
206
|
api_instance = FuseClient::FuseApi.new
|
207
207
|
opts = {
|
208
|
-
create_link_token_request: FuseClient::CreateLinkTokenRequest.new({
|
208
|
+
create_link_token_request: FuseClient::CreateLinkTokenRequest.new({entity_id: 'entity_id_example', session_client_secret: 'session_client_secret_example'}) # CreateLinkTokenRequest |
|
209
209
|
}
|
210
210
|
|
211
211
|
begin
|
@@ -333,9 +333,9 @@ end
|
|
333
333
|
- **Accept**: application/json
|
334
334
|
|
335
335
|
|
336
|
-
##
|
336
|
+
## exchange_financial_connections_public_token
|
337
337
|
|
338
|
-
> <ExchangeFinancialConnectionsPublicTokenResponse>
|
338
|
+
> <ExchangeFinancialConnectionsPublicTokenResponse> exchange_financial_connections_public_token(opts)
|
339
339
|
|
340
340
|
|
341
341
|
|
@@ -366,28 +366,28 @@ opts = {
|
|
366
366
|
|
367
367
|
begin
|
368
368
|
|
369
|
-
result = api_instance.
|
369
|
+
result = api_instance.exchange_financial_connections_public_token(opts)
|
370
370
|
p result
|
371
371
|
rescue FuseClient::ApiError => e
|
372
|
-
puts "Error when calling FuseApi->
|
372
|
+
puts "Error when calling FuseApi->exchange_financial_connections_public_token: #{e}"
|
373
373
|
end
|
374
374
|
```
|
375
375
|
|
376
|
-
#### Using the
|
376
|
+
#### Using the exchange_financial_connections_public_token_with_http_info variant
|
377
377
|
|
378
378
|
This returns an Array which contains the response data, status code and headers.
|
379
379
|
|
380
|
-
> <Array(<ExchangeFinancialConnectionsPublicTokenResponse>, Integer, Hash)>
|
380
|
+
> <Array(<ExchangeFinancialConnectionsPublicTokenResponse>, Integer, Hash)> exchange_financial_connections_public_token_with_http_info(opts)
|
381
381
|
|
382
382
|
```ruby
|
383
383
|
begin
|
384
384
|
|
385
|
-
data, status_code, headers = api_instance.
|
385
|
+
data, status_code, headers = api_instance.exchange_financial_connections_public_token_with_http_info(opts)
|
386
386
|
p status_code # => 2xx
|
387
387
|
p headers # => { ... }
|
388
388
|
p data # => <ExchangeFinancialConnectionsPublicTokenResponse>
|
389
389
|
rescue FuseClient::ApiError => e
|
390
|
-
puts "Error when calling FuseApi->
|
390
|
+
puts "Error when calling FuseApi->exchange_financial_connections_public_token_with_http_info: #{e}"
|
391
391
|
end
|
392
392
|
```
|
393
393
|
|
@@ -1011,7 +1011,7 @@ end
|
|
1011
1011
|
|
1012
1012
|
> <GetInvestmentTransactionsResponse> get_investment_transactions(get_investment_transactions_request)
|
1013
1013
|
|
1014
|
-
Get investment
|
1014
|
+
Get investment transactions
|
1015
1015
|
|
1016
1016
|
### Examples
|
1017
1017
|
|
@@ -1035,7 +1035,7 @@ api_instance = FuseClient::FuseApi.new
|
|
1035
1035
|
get_investment_transactions_request = FuseClient::GetInvestmentTransactionsRequest.new({access_token: 'access_token_example'}) # GetInvestmentTransactionsRequest |
|
1036
1036
|
|
1037
1037
|
begin
|
1038
|
-
# Get investment
|
1038
|
+
# Get investment transactions
|
1039
1039
|
result = api_instance.get_investment_transactions(get_investment_transactions_request)
|
1040
1040
|
p result
|
1041
1041
|
rescue FuseClient::ApiError => e
|
@@ -1051,7 +1051,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
1051
1051
|
|
1052
1052
|
```ruby
|
1053
1053
|
begin
|
1054
|
-
# Get investment
|
1054
|
+
# Get investment transactions
|
1055
1055
|
data, status_code, headers = api_instance.get_investment_transactions_with_http_info(get_investment_transactions_request)
|
1056
1056
|
p status_code # => 2xx
|
1057
1057
|
p headers # => { ... }
|
data/docs/FuseApiWarningData.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **aggregator** | **String** | | [optional] |
|
8
|
-
| **
|
8
|
+
| **warnings** | [**Array<FuseApiWarningDataWarningsInner>**](FuseApiWarningDataWarningsInner.md) | | [optional] |
|
9
9
|
|
10
10
|
## Example
|
11
11
|
|
@@ -14,7 +14,7 @@ require 'fuse_client'
|
|
14
14
|
|
15
15
|
instance = FuseClient::FuseApiWarningData.new(
|
16
16
|
aggregator: null,
|
17
|
-
|
17
|
+
warnings: null
|
18
18
|
)
|
19
19
|
```
|
20
20
|
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# FuseClient::FuseApiWarningDataWarningsInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **title** | **String** | | [optional] |
|
8
|
+
| **details** | **String** | | [optional] |
|
9
|
+
| **code** | **String** | | [optional] |
|
10
|
+
| **type** | **String** | | [optional] |
|
11
|
+
| **source** | **String** | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'fuse_client'
|
17
|
+
|
18
|
+
instance = FuseClient::FuseApiWarningDataWarningsInner.new(
|
19
|
+
title: null,
|
20
|
+
details: null,
|
21
|
+
code: null,
|
22
|
+
type: null,
|
23
|
+
source: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
data/fuse_client.gemspec
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
The version of the OpenAPI document: 1.0.0
|
9
9
|
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
|
-
OpenAPI Generator version: 6.
|
11
|
+
OpenAPI Generator version: 6.3.0
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.summary = "Fuse Ruby Gem"
|
26
26
|
s.description = "A fuse client to interact with the Fuse API"
|
27
27
|
s.license = "MIT"
|
28
|
-
s.required_ruby_version = ">= 2.
|
28
|
+
s.required_ruby_version = ">= 2.7"
|
29
29
|
|
30
30
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
31
|
|
@@ -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.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -275,8 +275,8 @@ module FuseClient
|
|
275
275
|
# @param [Hash] opts the optional parameters
|
276
276
|
# @option opts [ExchangeFinancialConnectionsPublicTokenRequest] :exchange_financial_connections_public_token_request
|
277
277
|
# @return [ExchangeFinancialConnectionsPublicTokenResponse]
|
278
|
-
def
|
279
|
-
data, _status_code, _headers =
|
278
|
+
def exchange_financial_connections_public_token(opts = {})
|
279
|
+
data, _status_code, _headers = exchange_financial_connections_public_token_with_http_info(opts)
|
280
280
|
data
|
281
281
|
end
|
282
282
|
|
@@ -284,9 +284,9 @@ module FuseClient
|
|
284
284
|
# @param [Hash] opts the optional parameters
|
285
285
|
# @option opts [ExchangeFinancialConnectionsPublicTokenRequest] :exchange_financial_connections_public_token_request
|
286
286
|
# @return [Array<(ExchangeFinancialConnectionsPublicTokenResponse, Integer, Hash)>] ExchangeFinancialConnectionsPublicTokenResponse data, response status code and response headers
|
287
|
-
def
|
287
|
+
def exchange_financial_connections_public_token_with_http_info(opts = {})
|
288
288
|
if @api_client.config.debugging
|
289
|
-
@api_client.config.logger.debug 'Calling API: FuseApi.
|
289
|
+
@api_client.config.logger.debug 'Calling API: FuseApi.exchange_financial_connections_public_token ...'
|
290
290
|
end
|
291
291
|
# resource path
|
292
292
|
local_var_path = '/v1/financial_connections/public_token/exchange'
|
@@ -317,7 +317,7 @@ module FuseClient
|
|
317
317
|
auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
|
318
318
|
|
319
319
|
new_options = opts.merge(
|
320
|
-
:operation => :"FuseApi.
|
320
|
+
:operation => :"FuseApi.exchange_financial_connections_public_token",
|
321
321
|
:header_params => header_params,
|
322
322
|
:query_params => query_params,
|
323
323
|
:form_params => form_params,
|
@@ -328,7 +328,7 @@ module FuseClient
|
|
328
328
|
|
329
329
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
330
330
|
if @api_client.config.debugging
|
331
|
-
@api_client.config.logger.debug "API called: FuseApi#
|
331
|
+
@api_client.config.logger.debug "API called: FuseApi#exchange_financial_connections_public_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
332
332
|
end
|
333
333
|
return data, status_code, headers
|
334
334
|
end
|
@@ -852,7 +852,7 @@ module FuseClient
|
|
852
852
|
return data, status_code, headers
|
853
853
|
end
|
854
854
|
|
855
|
-
# Get investment
|
855
|
+
# Get investment transactions
|
856
856
|
# @param get_investment_transactions_request [GetInvestmentTransactionsRequest]
|
857
857
|
# @param [Hash] opts the optional parameters
|
858
858
|
# @return [GetInvestmentTransactionsResponse]
|
@@ -861,7 +861,7 @@ module FuseClient
|
|
861
861
|
data
|
862
862
|
end
|
863
863
|
|
864
|
-
# Get investment
|
864
|
+
# Get investment transactions
|
865
865
|
# @param get_investment_transactions_request [GetInvestmentTransactionsRequest]
|
866
866
|
# @param [Hash] opts the optional parameters
|
867
867
|
# @return [Array<(GetInvestmentTransactionsResponse, Integer, Hash)>] GetInvestmentTransactionsResponse data, response status code and response headers
|
@@ -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.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,6 +32,7 @@ module FuseClient
|
|
32
32
|
end
|
33
33
|
else
|
34
34
|
super arg
|
35
|
+
@message = arg
|
35
36
|
end
|
36
37
|
end
|
37
38
|
|
@@ -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.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -62,6 +62,11 @@ module FuseClient
|
|
62
62
|
# Defines the access token (Bearer) used with OAuth2.
|
63
63
|
attr_accessor :access_token
|
64
64
|
|
65
|
+
# Defines a Proc used to fetch or refresh access tokens (Bearer) used with OAuth2.
|
66
|
+
# Overrides the access_token if set
|
67
|
+
# @return [Proc]
|
68
|
+
attr_accessor :access_token_getter
|
69
|
+
|
65
70
|
# Set this to enable/disable debugging. When enabled (set to true), HTTP request/response
|
66
71
|
# details will be logged with `logger.debug` (see the `logger` attribute).
|
67
72
|
# Default to false.
|
@@ -208,6 +213,12 @@ module FuseClient
|
|
208
213
|
end
|
209
214
|
end
|
210
215
|
|
216
|
+
# Gets access_token using access_token_getter or uses the static access_token
|
217
|
+
def access_token_with_refresh
|
218
|
+
return access_token if access_token_getter.nil?
|
219
|
+
access_token_getter.call
|
220
|
+
end
|
221
|
+
|
211
222
|
# Gets Basic Auth token string
|
212
223
|
def basic_auth_token
|
213
224
|
'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n")
|
@@ -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.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,8 +18,17 @@ module FuseClient
|
|
18
18
|
# An id that is unique for an institution.
|
19
19
|
attr_accessor :institution_id
|
20
20
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
21
|
+
# Unique identifier for the user or business account.
|
22
|
+
attr_accessor :entity_id
|
23
|
+
|
24
|
+
# The name of the user or business account.
|
25
|
+
attr_accessor :entity_name
|
26
|
+
|
27
|
+
# Email address associated with the user or business account.
|
28
|
+
attr_accessor :entity_email
|
29
|
+
|
30
|
+
# This field is used to provide the user with a link to reconnect their financial account. It may be included in an automated email sent by Fuse to the entity's registered email address. It's important to note that the reconnection_url should be a valid URL and can only be used once to reconnect the disconnected account.
|
31
|
+
attr_accessor :reconnection_url
|
23
32
|
|
24
33
|
# The name of your application.
|
25
34
|
attr_accessor :client_name
|
@@ -35,7 +44,10 @@ module FuseClient
|
|
35
44
|
def self.attribute_map
|
36
45
|
{
|
37
46
|
:'institution_id' => :'institution_id',
|
38
|
-
:'
|
47
|
+
:'entity_id' => :'entity_id',
|
48
|
+
:'entity_name' => :'entity_name',
|
49
|
+
:'entity_email' => :'entity_email',
|
50
|
+
:'reconnection_url' => :'reconnection_url',
|
39
51
|
:'client_name' => :'client_name',
|
40
52
|
:'session_client_secret' => :'session_client_secret',
|
41
53
|
:'mx' => :'mx',
|
@@ -52,7 +64,10 @@ module FuseClient
|
|
52
64
|
def self.openapi_types
|
53
65
|
{
|
54
66
|
:'institution_id' => :'String',
|
55
|
-
:'
|
67
|
+
:'entity_id' => :'String',
|
68
|
+
:'entity_name' => :'String',
|
69
|
+
:'entity_email' => :'String',
|
70
|
+
:'reconnection_url' => :'String',
|
56
71
|
:'client_name' => :'String',
|
57
72
|
:'session_client_secret' => :'String',
|
58
73
|
:'mx' => :'CreateLinkTokenRequestMx',
|
@@ -85,8 +100,20 @@ module FuseClient
|
|
85
100
|
self.institution_id = attributes[:'institution_id']
|
86
101
|
end
|
87
102
|
|
88
|
-
if attributes.key?(:'
|
89
|
-
self.
|
103
|
+
if attributes.key?(:'entity_id')
|
104
|
+
self.entity_id = attributes[:'entity_id']
|
105
|
+
end
|
106
|
+
|
107
|
+
if attributes.key?(:'entity_name')
|
108
|
+
self.entity_name = attributes[:'entity_name']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'entity_email')
|
112
|
+
self.entity_email = attributes[:'entity_email']
|
113
|
+
end
|
114
|
+
|
115
|
+
if attributes.key?(:'reconnection_url')
|
116
|
+
self.reconnection_url = attributes[:'reconnection_url']
|
90
117
|
end
|
91
118
|
|
92
119
|
if attributes.key?(:'client_name')
|
@@ -110,8 +137,8 @@ module FuseClient
|
|
110
137
|
# @return Array for valid properties with the reasons
|
111
138
|
def list_invalid_properties
|
112
139
|
invalid_properties = Array.new
|
113
|
-
if @
|
114
|
-
invalid_properties.push('invalid value for "
|
140
|
+
if @entity_id.nil?
|
141
|
+
invalid_properties.push('invalid value for "entity_id", entity_id cannot be nil.')
|
115
142
|
end
|
116
143
|
|
117
144
|
if @session_client_secret.nil?
|
@@ -124,7 +151,7 @@ module FuseClient
|
|
124
151
|
# Check to see if the all the properties in the model are valid
|
125
152
|
# @return true if the model is valid
|
126
153
|
def valid?
|
127
|
-
return false if @
|
154
|
+
return false if @entity_id.nil?
|
128
155
|
return false if @session_client_secret.nil?
|
129
156
|
true
|
130
157
|
end
|
@@ -135,7 +162,10 @@ module FuseClient
|
|
135
162
|
return true if self.equal?(o)
|
136
163
|
self.class == o.class &&
|
137
164
|
institution_id == o.institution_id &&
|
138
|
-
|
165
|
+
entity_id == o.entity_id &&
|
166
|
+
entity_name == o.entity_name &&
|
167
|
+
entity_email == o.entity_email &&
|
168
|
+
reconnection_url == o.reconnection_url &&
|
139
169
|
client_name == o.client_name &&
|
140
170
|
session_client_secret == o.session_client_secret &&
|
141
171
|
mx == o.mx &&
|
@@ -151,7 +181,7 @@ module FuseClient
|
|
151
181
|
# Calculates hash code according to all attributes.
|
152
182
|
# @return [Integer] Hash code
|
153
183
|
def hash
|
154
|
-
[institution_id,
|
184
|
+
[institution_id, entity_id, entity_name, entity_email, reconnection_url, client_name, session_client_secret, mx, plaid].hash
|
155
185
|
end
|
156
186
|
|
157
187
|
# Builds the object from hash
|