fuse_client 1.0.5 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +82 -1
  4. data/docs/CreateAssetReportResponse.md +3 -1
  5. data/docs/CreateEntityResponse.md +3 -1
  6. data/docs/CreateLinkTokenResponse.md +1 -1
  7. data/docs/CreateSessionResponse.md +1 -1
  8. data/docs/ExchangeFinancialConnectionsPublicTokenResponse.md +1 -1
  9. data/docs/FuseApi.md +4 -4
  10. data/docs/GetAssetReportResponse.md +3 -1
  11. data/docs/GetEntityResponse.md +3 -1
  12. data/docs/GetFinancialConnectionsAccountBalanceResponse.md +3 -1
  13. data/docs/GetFinancialConnectionsAccountDetailsResponse.md +3 -1
  14. data/docs/GetFinancialConnectionsAccountsResponse.md +3 -1
  15. data/docs/GetFinancialConnectionsOwnersResponseAccountsInner.md +3 -1
  16. data/docs/GetFinancialInstitutionResponse.md +20 -0
  17. data/docs/GetInvestmentHoldingsResponse.md +3 -1
  18. data/docs/GetInvestmentTransactionsResponse.md +3 -1
  19. data/docs/GetLiabilitiesResponse.md +3 -1
  20. data/docs/GetTransactionsResponse.md +3 -1
  21. data/docs/SyncFinancialConnectionsDataResponse.md +3 -1
  22. data/docs/SyncTransactionsResponse.md +3 -1
  23. data/docs/UpdateEntityResponse.md +3 -1
  24. data/lib/fuse_client/api/fuse_api.rb +3 -3
  25. data/lib/fuse_client/models/create_asset_report_response.rb +14 -4
  26. data/lib/fuse_client/models/create_entity_response.rb +14 -4
  27. data/lib/fuse_client/models/create_link_token_response.rb +1 -1
  28. data/lib/fuse_client/models/create_session_response.rb +1 -1
  29. data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +1 -1
  30. data/lib/fuse_client/models/get_asset_report_response.rb +14 -4
  31. data/lib/fuse_client/models/get_entity_response.rb +14 -4
  32. data/lib/fuse_client/models/get_financial_connections_account_balance_response.rb +14 -4
  33. data/lib/fuse_client/models/get_financial_connections_account_details_response.rb +14 -4
  34. data/lib/fuse_client/models/get_financial_connections_accounts_response.rb +14 -4
  35. data/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +14 -4
  36. data/lib/fuse_client/models/get_financial_institution_response.rb +229 -0
  37. data/lib/fuse_client/models/get_investment_holdings_response.rb +14 -4
  38. data/lib/fuse_client/models/get_investment_transactions_response.rb +14 -4
  39. data/lib/fuse_client/models/get_liabilities_response.rb +14 -4
  40. data/lib/fuse_client/models/get_transactions_response.rb +14 -4
  41. data/lib/fuse_client/models/sync_financial_connections_data_response.rb +14 -4
  42. data/lib/fuse_client/models/sync_transactions_response.rb +14 -4
  43. data/lib/fuse_client/models/update_entity_response.rb +14 -4
  44. data/lib/fuse_client/version.rb +1 -1
  45. data/lib/fuse_client.rb +1 -0
  46. data/spec/api/fuse_api_spec.rb +1 -1
  47. data/spec/models/create_asset_report_response_spec.rb +6 -0
  48. data/spec/models/create_entity_response_spec.rb +6 -0
  49. data/spec/models/get_asset_report_response_spec.rb +6 -0
  50. data/spec/models/get_entity_response_spec.rb +6 -0
  51. data/spec/models/get_financial_connections_account_balance_response_spec.rb +6 -0
  52. data/spec/models/get_financial_connections_account_details_response_spec.rb +6 -0
  53. data/spec/models/get_financial_connections_accounts_response_spec.rb +6 -0
  54. data/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +6 -0
  55. data/spec/models/get_financial_institution_response_spec.rb +40 -0
  56. data/spec/models/get_investment_holdings_response_spec.rb +6 -0
  57. data/spec/models/get_investment_transactions_response_spec.rb +6 -0
  58. data/spec/models/get_liabilities_response_spec.rb +6 -0
  59. data/spec/models/get_transactions_response_spec.rb +6 -0
  60. data/spec/models/sync_financial_connections_data_response_spec.rb +6 -0
  61. data/spec/models/sync_transactions_response_spec.rb +6 -0
  62. data/spec/models/update_entity_response_spec.rb +6 -0
  63. metadata +6 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5f632f163ea078beecb6bd978f8cd505cad8d293723eabe0854aebaac495456
4
- data.tar.gz: f8b9681f52c254ae98ffb360cc7d0ddc91d7141655e71f8f18500ac46a6ed200
3
+ metadata.gz: 0b5381ac849c02c1880222ab27ec90cd1d24ba7d32fbe9622ac5f230eb7b61d0
4
+ data.tar.gz: 26a6285d66f2f26730148698286ea68a0149b9ae30258093a1737ab14d9e85ab
5
5
  SHA512:
6
- metadata.gz: 8e4d19340085bc98f5bbc2cf665ba9983b0532d12b636caae158270a2c71c9f69c840bfee74cb7bfb866e7902d3d0a54505a576917c88921bfde199b0b4c1efa
7
- data.tar.gz: 9a6689eb7096de8615c111b9cb69471872ec91daa424e551a88e76076f9849bbbd8114e46e70eef2dfd89522221646e5114946d5c597bea3f72541ea45c2f64c
6
+ metadata.gz: feafc4e57a60a2736b502518163715873703f66fe4f72f4404c4ca11a4b642f5293e2af2de991842e750cec0706be9d04125093fc9a6ee1165a6c32dc5e024c1
7
+ data.tar.gz: 5233550f845551dc75e45613aa71e447f45bd7230b6b9db1edb2cac7fb06ab00378c5cbc09f5e78d0ef63a4e7799f41ca5f8e80abe3f8bcc8d3fe86dffd00560
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fuse_client (1.0.5)
4
+ fuse_client (1.0.7)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1 +1,82 @@
1
- # fuse-ruby
1
+ # fuse-ruby
2
+
3
+ ### Add to gem file
4
+
5
+ ```ruby
6
+ gem 'fuse_client', "~> 1.0.6"
7
+ ```
8
+
9
+ ### Setup fuse client
10
+
11
+ ```ruby
12
+ require 'fuse_client'
13
+
14
+ class FuseService
15
+ attr_reader :client, :auth_names
16
+
17
+ def initialize()
18
+ # Setup authorization
19
+ FuseClient.configure do |config|
20
+ config.host = ENV['FUSE_BASE_PATH']
21
+ config.server_index = nil
22
+ config.api_key['fuseApiKey'] = ENV['FUSE_API_KEY']
23
+ config.api_key['fuseClientId'] = ENV['FUSE_CLIENT_ID']
24
+ config.api_key['plaidClientId'] = ENV['PLAID_CLIENT_ID']
25
+ config.api_key['plaidSecret'] = ENV['PLAID_SECRET']
26
+ config.api_key['mxClientId'] = ENV['MX_CLIENT_ID']
27
+ config.api_key['mxApiKey'] = ENV['MX_API_KEY']
28
+ config.api_key['tellerApplicationId'] = ENV['TELLER_APPLICATION_ID']
29
+ config.api_key['tellerCertificate'] = ENV['TELLER_CERTIFICATE']
30
+ config.api_key['tellerPrivateKey'] = ENV['TELLER_PRIVATE_KEY']
31
+ end
32
+
33
+ @client = FuseClient::FuseApi.new
34
+
35
+ @auth_names = %w[fuseApiKey fuseClientId plaidClientId plaidSecret mxClientId mxApiKey tellerApplicationId tellerCertificate tellerPrivateKey]
36
+ end
37
+
38
+ def create_session
39
+ opts = {
40
+ create_session_request: FuseClient::CreateSessionRequest.new(
41
+ supported_financial_institution_aggregators: %w[plaid teller mx],
42
+ products: ['account_details']
43
+ )
44
+ }
45
+ client.create_session(populate_opts(opts))
46
+ end
47
+
48
+ def create_link_token(session_client_secret, institution_id)
49
+ opts = {
50
+ create_link_token_request: FuseClient::CreateLinkTokenRequest.new(
51
+ entity: {
52
+ id: 'my entity id'
53
+ },
54
+ session_client_secret: session_client_secret,
55
+ client_name: 'My client name',
56
+ institution_id: institution_id
57
+ )
58
+ }
59
+
60
+ client.create_link_token(populate_opts(opts))
61
+ end
62
+
63
+ def exchange_public_token(public_token)
64
+ opts = {
65
+ exchange_financial_connections_public_token_request: FuseClient::ExchangeFinancialConnectionsPublicTokenRequest.new(
66
+ public_token:
67
+ public_token
68
+ )
69
+ }
70
+ client.exchange_financial_connections_public_token(populate_opts(opts))
71
+ end
72
+
73
+ private
74
+
75
+ def populate_opts(opts = {})
76
+ opts.merge(
77
+ debug_auth_names: auth_names
78
+ )
79
+ end
80
+
81
+ end
82
+ ```
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **asset_report_token** | **String** | A token that can be provided to endpoints such as /asset_report or /asset_report/pdf to fetch an Asset Report. | [optional] |
8
8
  | **asset_report_id** | **String** | A unique ID identifying an Asset Report. | [optional] |
9
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
9
10
 
10
11
  ## Example
11
12
 
@@ -14,7 +15,8 @@ require 'fuse_client'
14
15
 
15
16
  instance = FuseClient::CreateAssetReportResponse.new(
16
17
  asset_report_token: null,
17
- asset_report_id: null
18
+ asset_report_id: null,
19
+ request_id: null
18
20
  )
19
21
  ```
20
22
 
@@ -8,6 +8,7 @@
8
8
  | **email** | **String** | Email of the entity | [optional] |
9
9
  | **aggregators** | [**Array<Aggregator>**](Aggregator.md) | These will force the user to connect through all of these aggregators | [optional] |
10
10
  | **institution_ids** | **Array<String>** | | [optional] |
11
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
11
12
 
12
13
  ## Example
13
14
 
@@ -18,7 +19,8 @@ instance = FuseClient::CreateEntityResponse.new(
18
19
  id: null,
19
20
  email: null,
20
21
  aggregators: null,
21
- institution_ids: null
22
+ institution_ids: null,
23
+ request_id: null
22
24
  )
23
25
  ```
24
26
 
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **link_token** | **String** | Token needed by the frontend sdk to initiate the connection | [optional] |
8
- | **request_id** | **String** | Used for debugging purposes | [optional] |
8
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
9
9
 
10
10
  ## Example
11
11
 
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **expiration** | **String** | 4 hours from the point of creation | [optional] |
8
8
  | **client_secret** | **String** | Token needed by the frontend sdk to start the process | [optional] |
9
- | **request_id** | **String** | Used for debugging purposes | [optional] |
9
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
10
10
 
11
11
  ## Example
12
12
 
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **access_token** | **String** | Token used for querying data on the user | [optional] |
8
8
  | **financial_connection_id** | **String** | The id of the new financial connection. Every webhook will be sent with this id. | [optional] |
9
- | **request_id** | **String** | Used for debugging purposes | [optional] |
9
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
10
10
 
11
11
  ## Example
12
12
 
data/docs/FuseApi.md CHANGED
@@ -936,7 +936,7 @@ end
936
936
 
937
937
  ## get_financial_institution
938
938
 
939
- > <FinancialInstitution> get_financial_institution(institution_id)
939
+ > <GetFinancialInstitutionResponse> get_financial_institution(institution_id)
940
940
 
941
941
  Get a financial institution
942
942
 
@@ -976,7 +976,7 @@ end
976
976
 
977
977
  This returns an Array which contains the response data, status code and headers.
978
978
 
979
- > <Array(<FinancialInstitution>, Integer, Hash)> get_financial_institution_with_http_info(institution_id)
979
+ > <Array(<GetFinancialInstitutionResponse>, Integer, Hash)> get_financial_institution_with_http_info(institution_id)
980
980
 
981
981
  ```ruby
982
982
  begin
@@ -984,7 +984,7 @@ begin
984
984
  data, status_code, headers = api_instance.get_financial_institution_with_http_info(institution_id)
985
985
  p status_code # => 2xx
986
986
  p headers # => { ... }
987
- p data # => <FinancialInstitution>
987
+ p data # => <GetFinancialInstitutionResponse>
988
988
  rescue FuseClient::ApiError => e
989
989
  puts "Error when calling FuseApi->get_financial_institution_with_http_info: #{e}"
990
990
  end
@@ -998,7 +998,7 @@ end
998
998
 
999
999
  ### Return type
1000
1000
 
1001
- [**FinancialInstitution**](FinancialInstitution.md)
1001
+ [**GetFinancialInstitutionResponse**](GetFinancialInstitutionResponse.md)
1002
1002
 
1003
1003
  ### Authorization
1004
1004
 
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **report** | [**GetAssetReportResponseReport**](GetAssetReportResponseReport.md) | | [optional] |
8
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
8
9
 
9
10
  ## Example
10
11
 
@@ -12,7 +13,8 @@
12
13
  require 'fuse_client'
13
14
 
14
15
  instance = FuseClient::GetAssetReportResponse.new(
15
- report: null
16
+ report: null,
17
+ request_id: null
16
18
  )
17
19
  ```
18
20
 
@@ -8,6 +8,7 @@
8
8
  | **email** | **String** | Email of the entity | [optional] |
9
9
  | **aggregators** | [**Array&lt;Aggregator&gt;**](Aggregator.md) | These will force the user to connect through all of these aggregators | [optional] |
10
10
  | **institution_ids** | **Array&lt;String&gt;** | | [optional] |
11
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
11
12
 
12
13
  ## Example
13
14
 
@@ -18,7 +19,8 @@ instance = FuseClient::GetEntityResponse.new(
18
19
  id: null,
19
20
  email: null,
20
21
  aggregators: null,
21
- institution_ids: null
22
+ institution_ids: null,
23
+ request_id: null
22
24
  )
23
25
  ```
24
26
 
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **balances** | [**Array&lt;FinancialConnectionsAccountBalance&gt;**](FinancialConnectionsAccountBalance.md) | | [optional] |
8
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
8
9
 
9
10
  ## Example
10
11
 
@@ -12,7 +13,8 @@
12
13
  require 'fuse_client'
13
14
 
14
15
  instance = FuseClient::GetFinancialConnectionsAccountBalanceResponse.new(
15
- balances: null
16
+ balances: null,
17
+ request_id: null
16
18
  )
17
19
  ```
18
20
 
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **account_details** | [**Array&lt;FinancialConnectionsAccountDetails&gt;**](FinancialConnectionsAccountDetails.md) | | [optional] |
8
8
  | **financial_connection** | [**FinancialConnectionData**](FinancialConnectionData.md) | | [optional] |
9
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
9
10
 
10
11
  ## Example
11
12
 
@@ -14,7 +15,8 @@ require 'fuse_client'
14
15
 
15
16
  instance = FuseClient::GetFinancialConnectionsAccountDetailsResponse.new(
16
17
  account_details: null,
17
- financial_connection: null
18
+ financial_connection: null,
19
+ request_id: null
18
20
  )
19
21
  ```
20
22
 
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **accounts** | [**Array&lt;FinancialConnectionsAccount&gt;**](FinancialConnectionsAccount.md) | | [optional] |
8
8
  | **financial_connection** | [**FinancialConnectionData**](FinancialConnectionData.md) | | [optional] |
9
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
9
10
 
10
11
  ## Example
11
12
 
@@ -14,7 +15,8 @@ require 'fuse_client'
14
15
 
15
16
  instance = FuseClient::GetFinancialConnectionsAccountsResponse.new(
16
17
  accounts: null,
17
- financial_connection: null
18
+ financial_connection: null,
19
+ request_id: null
18
20
  )
19
21
  ```
20
22
 
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **remote_account_id** | **String** | The remote account id of the account | [optional] |
8
8
  | **owners** | [**Array&lt;FinancialConnectionsOwner&gt;**](FinancialConnectionsOwner.md) | | [optional] |
9
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
9
10
 
10
11
  ## Example
11
12
 
@@ -14,7 +15,8 @@ require 'fuse_client'
14
15
 
15
16
  instance = FuseClient::GetFinancialConnectionsOwnersResponseAccountsInner.new(
16
17
  remote_account_id: null,
17
- owners: null
18
+ owners: null,
19
+ request_id: null
18
20
  )
19
21
  ```
20
22
 
@@ -0,0 +1,20 @@
1
+ # FuseClient::GetFinancialInstitutionResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **financial_institution** | [**FinancialInstitution**](FinancialInstitution.md) | | [optional] |
8
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'fuse_client'
14
+
15
+ instance = FuseClient::GetFinancialInstitutionResponse.new(
16
+ financial_institution: null,
17
+ request_id: null
18
+ )
19
+ ```
20
+
@@ -7,6 +7,7 @@
7
7
  | **accounts** | [**Array&lt;FinancialConnectionsInvestmentAccount&gt;**](FinancialConnectionsInvestmentAccount.md) | | [optional] |
8
8
  | **holdings** | [**Array&lt;FinancialConnectionsHolding&gt;**](FinancialConnectionsHolding.md) | | [optional] |
9
9
  | **securities** | [**Array&lt;FinancialConnectionsInvestmentSecurity&gt;**](FinancialConnectionsInvestmentSecurity.md) | | [optional] |
10
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
10
11
 
11
12
  ## Example
12
13
 
@@ -16,7 +17,8 @@ require 'fuse_client'
16
17
  instance = FuseClient::GetInvestmentHoldingsResponse.new(
17
18
  accounts: null,
18
19
  holdings: null,
19
- securities: null
20
+ securities: null,
21
+ request_id: null
20
22
  )
21
23
  ```
22
24
 
@@ -7,6 +7,7 @@
7
7
  | **accounts** | [**Array&lt;FinancialConnectionsInvestmentAccount&gt;**](FinancialConnectionsInvestmentAccount.md) | | [optional] |
8
8
  | **investment_transactions** | [**Array&lt;FinancialConnectionsInvestmentTransaction&gt;**](FinancialConnectionsInvestmentTransaction.md) | | [optional] |
9
9
  | **securities** | [**Array&lt;FinancialConnectionsInvestmentSecurity&gt;**](FinancialConnectionsInvestmentSecurity.md) | | [optional] |
10
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
10
11
 
11
12
  ## Example
12
13
 
@@ -16,7 +17,8 @@ require 'fuse_client'
16
17
  instance = FuseClient::GetInvestmentTransactionsResponse.new(
17
18
  accounts: null,
18
19
  investment_transactions: null,
19
- securities: null
20
+ securities: null,
21
+ request_id: null
20
22
  )
21
23
  ```
22
24
 
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **liabilities** | [**Array&lt;FinancialConnectionsAccountLiability&gt;**](FinancialConnectionsAccountLiability.md) | | [optional] |
8
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
8
9
 
9
10
  ## Example
10
11
 
@@ -12,7 +13,8 @@
12
13
  require 'fuse_client'
13
14
 
14
15
  instance = FuseClient::GetLiabilitiesResponse.new(
15
- liabilities: null
16
+ liabilities: null,
17
+ request_id: null
16
18
  )
17
19
  ```
18
20
 
@@ -7,6 +7,7 @@
7
7
  | **data** | [**Array&lt;GetTransactionsResponseDataInner&gt;**](GetTransactionsResponseDataInner.md) | | [optional] |
8
8
  | **cursor** | **String** | The cursor of the last item returned | [optional] |
9
9
  | **has_next** | **Boolean** | Indicates if there are more pages to navigate through | [optional] |
10
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
10
11
 
11
12
  ## Example
12
13
 
@@ -16,7 +17,8 @@ require 'fuse_client'
16
17
  instance = FuseClient::GetTransactionsResponse.new(
17
18
  data: null,
18
19
  cursor: null,
19
- has_next: null
20
+ has_next: null,
21
+ request_id: null
20
22
  )
21
23
  ```
22
24
 
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **message** | **String** | Response message | [optional] |
8
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
8
9
 
9
10
  ## Example
10
11
 
@@ -12,7 +13,8 @@
12
13
  require 'fuse_client'
13
14
 
14
15
  instance = FuseClient::SyncFinancialConnectionsDataResponse.new(
15
- message: null
16
+ message: null,
17
+ request_id: null
16
18
  )
17
19
  ```
18
20
 
@@ -9,6 +9,7 @@
9
9
  | **removed** | [**Array&lt;SyncTransactionsResponseRemovedInner&gt;**](SyncTransactionsResponseRemovedInner.md) | Transactions that have been removed from the item since &#x60;cursor&#x60; ordered by ascending last modified time. | [optional] |
10
10
  | **next_cursor** | **String** | Cursor used for fetching any future updates after the latest update provided in this response. The cursor obtained after all pages have been pulled (indicated by &#x60;has_next&#x60; being &#x60;false&#x60;) will be valid for at least 1 year. This cursor should be persisted for later calls. | [optional] |
11
11
  | **has_next** | **Boolean** | Represents if more than requested count of transaction updates exist. If true, the additional updates can be fetched by making an additional request with &#x60;cursor&#x60; set to &#x60;next_cursor&#x60;. If &#x60;has_next&#x60; is true, it&#39;s important to pull all available pages, to make it less likely for underlying data changes to conflict with pagination. | [optional] |
12
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
12
13
 
13
14
  ## Example
14
15
 
@@ -20,7 +21,8 @@ instance = FuseClient::SyncTransactionsResponse.new(
20
21
  modified: null,
21
22
  removed: null,
22
23
  next_cursor: null,
23
- has_next: null
24
+ has_next: null,
25
+ request_id: null
24
26
  )
25
27
  ```
26
28
 
@@ -8,6 +8,7 @@
8
8
  | **email** | **String** | Email of the entity | [optional] |
9
9
  | **aggregators** | [**Array&lt;Aggregator&gt;**](Aggregator.md) | These will force the user to connect through all of these aggregators | [optional] |
10
10
  | **institution_ids** | **Array&lt;String&gt;** | | [optional] |
11
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | [optional] |
11
12
 
12
13
  ## Example
13
14
 
@@ -18,7 +19,8 @@ instance = FuseClient::UpdateEntityResponse.new(
18
19
  id: null,
19
20
  email: null,
20
21
  aggregators: null,
21
- institution_ids: null
22
+ institution_ids: null,
23
+ request_id: null
22
24
  )
23
25
  ```
24
26
 
@@ -790,7 +790,7 @@ module FuseClient
790
790
  # Receive metadata for a financial institution
791
791
  # @param institution_id [String]
792
792
  # @param [Hash] opts the optional parameters
793
- # @return [FinancialInstitution]
793
+ # @return [GetFinancialInstitutionResponse]
794
794
  def get_financial_institution(institution_id, opts = {})
795
795
  data, _status_code, _headers = get_financial_institution_with_http_info(institution_id, opts)
796
796
  data
@@ -800,7 +800,7 @@ module FuseClient
800
800
  # Receive metadata for a financial institution
801
801
  # @param institution_id [String]
802
802
  # @param [Hash] opts the optional parameters
803
- # @return [Array<(FinancialInstitution, Integer, Hash)>] FinancialInstitution data, response status code and response headers
803
+ # @return [Array<(GetFinancialInstitutionResponse, Integer, Hash)>] GetFinancialInstitutionResponse data, response status code and response headers
804
804
  def get_financial_institution_with_http_info(institution_id, opts = {})
805
805
  if @api_client.config.debugging
806
806
  @api_client.config.logger.debug 'Calling API: FuseApi.get_financial_institution ...'
@@ -827,7 +827,7 @@ module FuseClient
827
827
  post_body = opts[:debug_body]
828
828
 
829
829
  # return_type
830
- return_type = opts[:debug_return_type] || 'FinancialInstitution'
830
+ return_type = opts[:debug_return_type] || 'GetFinancialInstitutionResponse'
831
831
 
832
832
  # auth_names
833
833
  auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
@@ -21,11 +21,15 @@ module FuseClient
21
21
  # A unique ID identifying an Asset Report.
22
22
  attr_accessor :asset_report_id
23
23
 
24
+ # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
25
+ attr_accessor :request_id
26
+
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
27
30
  :'asset_report_token' => :'asset_report_token',
28
- :'asset_report_id' => :'asset_report_id'
31
+ :'asset_report_id' => :'asset_report_id',
32
+ :'request_id' => :'request_id'
29
33
  }
30
34
  end
31
35
 
@@ -38,7 +42,8 @@ module FuseClient
38
42
  def self.openapi_types
39
43
  {
40
44
  :'asset_report_token' => :'String',
41
- :'asset_report_id' => :'String'
45
+ :'asset_report_id' => :'String',
46
+ :'request_id' => :'String'
42
47
  }
43
48
  end
44
49
 
@@ -70,6 +75,10 @@ module FuseClient
70
75
  if attributes.key?(:'asset_report_id')
71
76
  self.asset_report_id = attributes[:'asset_report_id']
72
77
  end
78
+
79
+ if attributes.key?(:'request_id')
80
+ self.request_id = attributes[:'request_id']
81
+ end
73
82
  end
74
83
 
75
84
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -91,7 +100,8 @@ module FuseClient
91
100
  return true if self.equal?(o)
92
101
  self.class == o.class &&
93
102
  asset_report_token == o.asset_report_token &&
94
- asset_report_id == o.asset_report_id
103
+ asset_report_id == o.asset_report_id &&
104
+ request_id == o.request_id
95
105
  end
96
106
 
97
107
  # @see the `==` method
@@ -103,7 +113,7 @@ module FuseClient
103
113
  # Calculates hash code according to all attributes.
104
114
  # @return [Integer] Hash code
105
115
  def hash
106
- [asset_report_token, asset_report_id].hash
116
+ [asset_report_token, asset_report_id, request_id].hash
107
117
  end
108
118
 
109
119
  # Builds the object from hash
@@ -26,13 +26,17 @@ module FuseClient
26
26
 
27
27
  attr_accessor :institution_ids
28
28
 
29
+ # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
30
+ attr_accessor :request_id
31
+
29
32
  # Attribute mapping from ruby-style variable name to JSON key.
30
33
  def self.attribute_map
31
34
  {
32
35
  :'id' => :'id',
33
36
  :'email' => :'email',
34
37
  :'aggregators' => :'aggregators',
35
- :'institution_ids' => :'institution_ids'
38
+ :'institution_ids' => :'institution_ids',
39
+ :'request_id' => :'request_id'
36
40
  }
37
41
  end
38
42
 
@@ -47,7 +51,8 @@ module FuseClient
47
51
  :'id' => :'String',
48
52
  :'email' => :'String',
49
53
  :'aggregators' => :'Array<Aggregator>',
50
- :'institution_ids' => :'Array<String>'
54
+ :'institution_ids' => :'Array<String>',
55
+ :'request_id' => :'String'
51
56
  }
52
57
  end
53
58
 
@@ -91,6 +96,10 @@ module FuseClient
91
96
  self.institution_ids = value
92
97
  end
93
98
  end
99
+
100
+ if attributes.key?(:'request_id')
101
+ self.request_id = attributes[:'request_id']
102
+ end
94
103
  end
95
104
 
96
105
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -129,7 +138,8 @@ module FuseClient
129
138
  id == o.id &&
130
139
  email == o.email &&
131
140
  aggregators == o.aggregators &&
132
- institution_ids == o.institution_ids
141
+ institution_ids == o.institution_ids &&
142
+ request_id == o.request_id
133
143
  end
134
144
 
135
145
  # @see the `==` method
@@ -141,7 +151,7 @@ module FuseClient
141
151
  # Calculates hash code according to all attributes.
142
152
  # @return [Integer] Hash code
143
153
  def hash
144
- [id, email, aggregators, institution_ids].hash
154
+ [id, email, aggregators, institution_ids, request_id].hash
145
155
  end
146
156
 
147
157
  # Builds the object from hash
@@ -18,7 +18,7 @@ module FuseClient
18
18
  # Token needed by the frontend sdk to initiate the connection
19
19
  attr_accessor :link_token
20
20
 
21
- # Used for debugging purposes
21
+ # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
22
22
  attr_accessor :request_id
23
23
 
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -21,7 +21,7 @@ module FuseClient
21
21
  # Token needed by the frontend sdk to start the process
22
22
  attr_accessor :client_secret
23
23
 
24
- # Used for debugging purposes
24
+ # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
25
25
  attr_accessor :request_id
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -21,7 +21,7 @@ module FuseClient
21
21
  # The id of the new financial connection. Every webhook will be sent with this id.
22
22
  attr_accessor :financial_connection_id
23
23
 
24
- # Used for debugging purposes
24
+ # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
25
25
  attr_accessor :request_id
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.