fuse_client 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/docs/CreateLinkTokenRequest.md +8 -2
  4. data/docs/FuseApi.md +14 -14
  5. data/docs/FuseApiWarningData.md +2 -2
  6. data/docs/FuseApiWarningDataWarningsInner.md +26 -0
  7. data/fuse_client.gemspec +2 -2
  8. data/lib/fuse_client/api/fuse_api.rb +9 -9
  9. data/lib/fuse_client/api_client.rb +1 -1
  10. data/lib/fuse_client/api_error.rb +2 -1
  11. data/lib/fuse_client/configuration.rb +12 -1
  12. data/lib/fuse_client/models/aggregator.rb +1 -1
  13. data/lib/fuse_client/models/create_asset_report_request.rb +1 -1
  14. data/lib/fuse_client/models/create_asset_report_response.rb +1 -1
  15. data/lib/fuse_client/models/create_entity_request.rb +1 -1
  16. data/lib/fuse_client/models/create_entity_response.rb +1 -1
  17. data/lib/fuse_client/models/create_link_token_request.rb +42 -12
  18. data/lib/fuse_client/models/create_link_token_request_mx.rb +1 -1
  19. data/lib/fuse_client/models/create_link_token_request_plaid.rb +1 -1
  20. data/lib/fuse_client/models/create_link_token_response.rb +1 -1
  21. data/lib/fuse_client/models/create_session_request.rb +1 -1
  22. data/lib/fuse_client/models/create_session_response.rb +1 -1
  23. data/lib/fuse_client/models/exchange_financial_connections_public_token_request.rb +1 -1
  24. data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +1 -1
  25. data/lib/fuse_client/models/financial_connections_account.rb +1 -1
  26. data/lib/fuse_client/models/financial_connections_account_balance.rb +1 -1
  27. data/lib/fuse_client/models/financial_connections_account_details.rb +1 -1
  28. data/lib/fuse_client/models/financial_connections_account_details_ach.rb +1 -1
  29. data/lib/fuse_client/models/financial_connections_account_institution.rb +1 -1
  30. data/lib/fuse_client/models/financial_connections_account_liability.rb +1 -1
  31. data/lib/fuse_client/models/financial_connections_account_liability_all_of.rb +1 -1
  32. data/lib/fuse_client/models/financial_connections_account_liability_all_of_aprs.rb +1 -1
  33. data/lib/fuse_client/models/financial_connections_holding.rb +1 -1
  34. data/lib/fuse_client/models/financial_connections_investment_account.rb +1 -1
  35. data/lib/fuse_client/models/financial_connections_investment_security.rb +1 -1
  36. data/lib/fuse_client/models/financial_connections_investment_transaction.rb +1 -1
  37. data/lib/fuse_client/models/financial_connections_investment_transaction_data_inner.rb +1 -1
  38. data/lib/fuse_client/models/financial_connections_owner.rb +1 -1
  39. data/lib/fuse_client/models/financial_connections_owner_addresses_inner.rb +1 -1
  40. data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +1 -1
  41. data/lib/fuse_client/models/financial_connections_owner_emails_inner.rb +1 -1
  42. data/lib/fuse_client/models/financial_connections_owner_names_inner.rb +1 -1
  43. data/lib/fuse_client/models/financial_connections_owner_phone_numbers_inner.rb +1 -1
  44. data/lib/fuse_client/models/fuse_api_error.rb +1 -1
  45. data/lib/fuse_client/models/fuse_api_error_data.rb +1 -1
  46. data/lib/fuse_client/models/fuse_api_warning.rb +1 -1
  47. data/lib/fuse_client/models/fuse_api_warning_data.rb +9 -9
  48. data/lib/fuse_client/models/fuse_api_warning_data_warnings_inner.rb +289 -0
  49. data/lib/fuse_client/models/get_asset_report_request.rb +1 -1
  50. data/lib/fuse_client/models/get_asset_report_response.rb +1 -1
  51. data/lib/fuse_client/models/get_asset_report_response_report.rb +1 -1
  52. data/lib/fuse_client/models/get_asset_report_response_report_accounts_inner.rb +1 -1
  53. data/lib/fuse_client/models/get_asset_report_response_report_accounts_inner_balances.rb +1 -1
  54. data/lib/fuse_client/models/get_asset_report_response_report_accounts_inner_historical_balances_inner.rb +1 -1
  55. data/lib/fuse_client/models/get_entity_response.rb +1 -1
  56. data/lib/fuse_client/models/get_financial_connections_account_balance_response.rb +1 -1
  57. data/lib/fuse_client/models/get_financial_connections_account_details_request.rb +1 -1
  58. data/lib/fuse_client/models/get_financial_connections_account_details_response.rb +1 -1
  59. data/lib/fuse_client/models/get_financial_connections_accounts_request.rb +1 -1
  60. data/lib/fuse_client/models/get_financial_connections_accounts_response.rb +1 -1
  61. data/lib/fuse_client/models/get_financial_connections_balance_request.rb +1 -1
  62. data/lib/fuse_client/models/get_financial_connections_owners_request.rb +1 -1
  63. data/lib/fuse_client/models/get_financial_connections_owners_response.rb +1 -1
  64. data/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +1 -1
  65. data/lib/fuse_client/models/get_investment_holdings_request.rb +1 -1
  66. data/lib/fuse_client/models/get_investment_holdings_response.rb +1 -1
  67. data/lib/fuse_client/models/get_investment_transactions_request.rb +1 -1
  68. data/lib/fuse_client/models/get_investment_transactions_response.rb +1 -1
  69. data/lib/fuse_client/models/get_liabilities_request.rb +1 -1
  70. data/lib/fuse_client/models/get_liabilities_response.rb +1 -1
  71. data/lib/fuse_client/models/get_transactions_request.rb +1 -1
  72. data/lib/fuse_client/models/get_transactions_response.rb +1 -1
  73. data/lib/fuse_client/models/get_transactions_response_data_inner.rb +1 -1
  74. data/lib/fuse_client/models/get_transactions_response_data_inner_merchant.rb +1 -1
  75. data/lib/fuse_client/models/product.rb +1 -1
  76. data/lib/fuse_client/models/refresh_asset_report_request.rb +1 -1
  77. data/lib/fuse_client/models/sync_financial_connections_data_response.rb +1 -1
  78. data/lib/fuse_client/models/sync_transactions_request.rb +1 -1
  79. data/lib/fuse_client/models/sync_transactions_response.rb +1 -1
  80. data/lib/fuse_client/models/sync_transactions_response_removed_inner.rb +1 -1
  81. data/lib/fuse_client/models/transaction_common_model.rb +1 -1
  82. data/lib/fuse_client/models/update_entity_request.rb +1 -1
  83. data/lib/fuse_client/models/update_entity_response.rb +1 -1
  84. data/lib/fuse_client/version.rb +2 -2
  85. data/lib/fuse_client.rb +2 -1
  86. data/spec/api/fuse_api_spec.rb +4 -4
  87. data/spec/api_client_spec.rb +1 -1
  88. data/spec/configuration_spec.rb +1 -1
  89. data/spec/models/aggregator_spec.rb +1 -1
  90. data/spec/models/create_asset_report_request_spec.rb +1 -1
  91. data/spec/models/create_asset_report_response_spec.rb +1 -1
  92. data/spec/models/create_entity_request_spec.rb +1 -1
  93. data/spec/models/create_entity_response_spec.rb +1 -1
  94. data/spec/models/create_link_token_request_mx_spec.rb +1 -1
  95. data/spec/models/create_link_token_request_plaid_spec.rb +1 -1
  96. data/spec/models/create_link_token_request_spec.rb +20 -2
  97. data/spec/models/create_link_token_response_spec.rb +1 -1
  98. data/spec/models/create_session_request_spec.rb +1 -1
  99. data/spec/models/create_session_response_spec.rb +1 -1
  100. data/spec/models/exchange_financial_connections_public_token_request_spec.rb +1 -1
  101. data/spec/models/exchange_financial_connections_public_token_response_spec.rb +1 -1
  102. data/spec/models/financial_connections_account_balance_spec.rb +1 -1
  103. data/spec/models/financial_connections_account_details_ach_spec.rb +1 -1
  104. data/spec/models/financial_connections_account_details_spec.rb +1 -1
  105. data/spec/models/financial_connections_account_institution_spec.rb +1 -1
  106. data/spec/models/financial_connections_account_liability_all_of_aprs_spec.rb +1 -1
  107. data/spec/models/financial_connections_account_liability_all_of_spec.rb +1 -1
  108. data/spec/models/financial_connections_account_liability_spec.rb +1 -1
  109. data/spec/models/financial_connections_account_spec.rb +1 -1
  110. data/spec/models/financial_connections_holding_spec.rb +1 -1
  111. data/spec/models/financial_connections_investment_account_spec.rb +1 -1
  112. data/spec/models/financial_connections_investment_security_spec.rb +1 -1
  113. data/spec/models/financial_connections_investment_transaction_data_inner_spec.rb +1 -1
  114. data/spec/models/financial_connections_investment_transaction_spec.rb +1 -1
  115. data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +1 -1
  116. data/spec/models/financial_connections_owner_addresses_inner_spec.rb +1 -1
  117. data/spec/models/financial_connections_owner_emails_inner_spec.rb +1 -1
  118. data/spec/models/financial_connections_owner_names_inner_spec.rb +1 -1
  119. data/spec/models/financial_connections_owner_phone_numbers_inner_spec.rb +1 -1
  120. data/spec/models/financial_connections_owner_spec.rb +1 -1
  121. data/spec/models/fuse_api_error_data_spec.rb +1 -1
  122. data/spec/models/fuse_api_error_spec.rb +1 -1
  123. data/spec/models/fuse_api_warning_data_spec.rb +2 -2
  124. data/spec/models/fuse_api_warning_data_warnings_inner_spec.rb +62 -0
  125. data/spec/models/fuse_api_warning_spec.rb +1 -1
  126. data/spec/models/get_asset_report_request_spec.rb +1 -1
  127. data/spec/models/get_asset_report_response_report_accounts_inner_balances_spec.rb +1 -1
  128. data/spec/models/get_asset_report_response_report_accounts_inner_historical_balances_inner_spec.rb +1 -1
  129. data/spec/models/get_asset_report_response_report_accounts_inner_spec.rb +1 -1
  130. data/spec/models/get_asset_report_response_report_spec.rb +1 -1
  131. data/spec/models/get_asset_report_response_spec.rb +1 -1
  132. data/spec/models/get_entity_response_spec.rb +1 -1
  133. data/spec/models/get_financial_connections_account_balance_response_spec.rb +1 -1
  134. data/spec/models/get_financial_connections_account_details_request_spec.rb +1 -1
  135. data/spec/models/get_financial_connections_account_details_response_spec.rb +1 -1
  136. data/spec/models/get_financial_connections_accounts_request_spec.rb +1 -1
  137. data/spec/models/get_financial_connections_accounts_response_spec.rb +1 -1
  138. data/spec/models/get_financial_connections_balance_request_spec.rb +1 -1
  139. data/spec/models/get_financial_connections_owners_request_spec.rb +1 -1
  140. data/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +1 -1
  141. data/spec/models/get_financial_connections_owners_response_spec.rb +1 -1
  142. data/spec/models/get_investment_holdings_request_spec.rb +1 -1
  143. data/spec/models/get_investment_holdings_response_spec.rb +1 -1
  144. data/spec/models/get_investment_transactions_request_spec.rb +1 -1
  145. data/spec/models/get_investment_transactions_response_spec.rb +1 -1
  146. data/spec/models/get_liabilities_request_spec.rb +1 -1
  147. data/spec/models/get_liabilities_response_spec.rb +1 -1
  148. data/spec/models/get_transactions_request_spec.rb +1 -1
  149. data/spec/models/get_transactions_response_data_inner_merchant_spec.rb +1 -1
  150. data/spec/models/get_transactions_response_data_inner_spec.rb +1 -1
  151. data/spec/models/get_transactions_response_spec.rb +1 -1
  152. data/spec/models/product_spec.rb +1 -1
  153. data/spec/models/refresh_asset_report_request_spec.rb +1 -1
  154. data/spec/models/sync_financial_connections_data_response_spec.rb +1 -1
  155. data/spec/models/sync_transactions_request_spec.rb +1 -1
  156. data/spec/models/sync_transactions_response_removed_inner_spec.rb +1 -1
  157. data/spec/models/sync_transactions_response_spec.rb +1 -1
  158. data/spec/models/transaction_common_model_spec.rb +1 -1
  159. data/spec/models/update_entity_request_spec.rb +1 -1
  160. data/spec/models/update_entity_response_spec.rb +1 -1
  161. data/spec/spec_helper.rb +1 -1
  162. metadata +6 -3
  163. data/fuse_client-0.3.4.gem +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f93526bc8e71667ef45d715122037a917af2ab91ad48c40e01e9d650d9389b04
4
- data.tar.gz: 2c46dfecde4c969b5a0cc7cdb07f71a6f4a0f5d522ff1c2fce35e30b537fdd3d
3
+ metadata.gz: 628afaeb261c0f8ccd640b9db4ee825377761444dd444fb64d68846a4ab8ab7a
4
+ data.tar.gz: 37cb4afb9961af40906da1e336609ce9639f128a1983bd3bdaa4f5ea27e209a2
5
5
  SHA512:
6
- metadata.gz: 8e33adbbe2c0e78760083f8df8407fea6690528a96a4c866a3184f9b093b0c577d7ed31584723212303a6734affda6611f32225beff6f60e826e293a6ff8d9f5
7
- data.tar.gz: 2aa51fa5f7aaf51af8c6cea971147c0a529100d14963e546dd78fe55affe4a4f13a07398eafe84d93ec2707e015d9073ff396e77b1be0c0c3843843f07893cc1
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.3.4)
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.0.0)
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.5
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
- | **user_id** | **String** | An id that is unique for a user of your application. | |
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
- user_id: null,
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
- | [**exchange_public_token**](FuseApi.md#exchange_public_token) | **POST** /v1/financial_connections/public_token/exchange | |
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 holdings |
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({user_id: 'user_id_example', session_client_secret: 'session_client_secret_example'}) # CreateLinkTokenRequest |
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
- ## exchange_public_token
336
+ ## exchange_financial_connections_public_token
337
337
 
338
- > <ExchangeFinancialConnectionsPublicTokenResponse> exchange_public_token(opts)
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.exchange_public_token(opts)
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->exchange_public_token: #{e}"
372
+ puts "Error when calling FuseApi->exchange_financial_connections_public_token: #{e}"
373
373
  end
374
374
  ```
375
375
 
376
- #### Using the exchange_public_token_with_http_info variant
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)> exchange_public_token_with_http_info(opts)
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.exchange_public_token_with_http_info(opts)
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->exchange_public_token_with_http_info: #{e}"
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 holdings
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 holdings
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 holdings
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 # => { ... }
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **aggregator** | **String** | | [optional] |
8
- | **errors** | [**Array&lt;FuseApiWarning&gt;**](FuseApiWarning.md) | | [optional] |
8
+ | **warnings** | [**Array&lt;FuseApiWarningDataWarningsInner&gt;**](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
- errors: null
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.2.1
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.4"
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.2.1
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 exchange_public_token(opts = {})
279
- data, _status_code, _headers = exchange_public_token_with_http_info(opts)
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 exchange_public_token_with_http_info(opts = {})
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.exchange_public_token ...'
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.exchange_public_token",
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#exchange_public_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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 holdings
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 holdings
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.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
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.2.1
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.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
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
- # An id that is unique for a user of your application.
22
- attr_accessor :user_id
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
- :'user_id' => :'user_id',
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
- :'user_id' => :'String',
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?(:'user_id')
89
- self.user_id = attributes[:'user_id']
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 @user_id.nil?
114
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
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 @user_id.nil?
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
- user_id == o.user_id &&
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, user_id, client_name, session_client_secret, mx, plaid].hash
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
@@ -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.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12