fuse_client 1.0.6 → 1.0.7

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.
Files changed (59) 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/GetAssetReportResponse.md +3 -1
  10. data/docs/GetEntityResponse.md +3 -1
  11. data/docs/GetFinancialConnectionsAccountBalanceResponse.md +3 -1
  12. data/docs/GetFinancialConnectionsAccountDetailsResponse.md +3 -1
  13. data/docs/GetFinancialConnectionsAccountsResponse.md +3 -1
  14. data/docs/GetFinancialConnectionsOwnersResponseAccountsInner.md +3 -1
  15. data/docs/GetFinancialInstitutionResponse.md +3 -1
  16. data/docs/GetInvestmentHoldingsResponse.md +3 -1
  17. data/docs/GetInvestmentTransactionsResponse.md +3 -1
  18. data/docs/GetLiabilitiesResponse.md +3 -1
  19. data/docs/GetTransactionsResponse.md +3 -1
  20. data/docs/SyncFinancialConnectionsDataResponse.md +3 -1
  21. data/docs/SyncTransactionsResponse.md +3 -1
  22. data/docs/UpdateEntityResponse.md +3 -1
  23. data/lib/fuse_client/models/create_asset_report_response.rb +14 -4
  24. data/lib/fuse_client/models/create_entity_response.rb +14 -4
  25. data/lib/fuse_client/models/create_link_token_response.rb +1 -1
  26. data/lib/fuse_client/models/create_session_response.rb +1 -1
  27. data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +1 -1
  28. data/lib/fuse_client/models/get_asset_report_response.rb +14 -4
  29. data/lib/fuse_client/models/get_entity_response.rb +14 -4
  30. data/lib/fuse_client/models/get_financial_connections_account_balance_response.rb +14 -4
  31. data/lib/fuse_client/models/get_financial_connections_account_details_response.rb +14 -4
  32. data/lib/fuse_client/models/get_financial_connections_accounts_response.rb +14 -4
  33. data/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +14 -4
  34. data/lib/fuse_client/models/get_financial_institution_response.rb +14 -4
  35. data/lib/fuse_client/models/get_investment_holdings_response.rb +14 -4
  36. data/lib/fuse_client/models/get_investment_transactions_response.rb +14 -4
  37. data/lib/fuse_client/models/get_liabilities_response.rb +14 -4
  38. data/lib/fuse_client/models/get_transactions_response.rb +14 -4
  39. data/lib/fuse_client/models/sync_financial_connections_data_response.rb +14 -4
  40. data/lib/fuse_client/models/sync_transactions_response.rb +14 -4
  41. data/lib/fuse_client/models/update_entity_response.rb +14 -4
  42. data/lib/fuse_client/version.rb +1 -1
  43. data/spec/models/create_asset_report_response_spec.rb +6 -0
  44. data/spec/models/create_entity_response_spec.rb +6 -0
  45. data/spec/models/get_asset_report_response_spec.rb +6 -0
  46. data/spec/models/get_entity_response_spec.rb +6 -0
  47. data/spec/models/get_financial_connections_account_balance_response_spec.rb +6 -0
  48. data/spec/models/get_financial_connections_account_details_response_spec.rb +6 -0
  49. data/spec/models/get_financial_connections_accounts_response_spec.rb +6 -0
  50. data/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +6 -0
  51. data/spec/models/get_financial_institution_response_spec.rb +6 -0
  52. data/spec/models/get_investment_holdings_response_spec.rb +6 -0
  53. data/spec/models/get_investment_transactions_response_spec.rb +6 -0
  54. data/spec/models/get_liabilities_response_spec.rb +6 -0
  55. data/spec/models/get_transactions_response_spec.rb +6 -0
  56. data/spec/models/sync_financial_connections_data_response_spec.rb +6 -0
  57. data/spec/models/sync_transactions_response_spec.rb +6 -0
  58. data/spec/models/update_entity_response_spec.rb +6 -0
  59. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91a66b4e8ff0e1a024e8d5db8d2a77802b29bf9487a470fcdd2fb5dbe1010332
4
- data.tar.gz: c8b28e455bdfc96d02f7f56d8374d4c11c5710e09eedd82aca08a9c6b24edffb
3
+ metadata.gz: 0b5381ac849c02c1880222ab27ec90cd1d24ba7d32fbe9622ac5f230eb7b61d0
4
+ data.tar.gz: 26a6285d66f2f26730148698286ea68a0149b9ae30258093a1737ab14d9e85ab
5
5
  SHA512:
6
- metadata.gz: be191bd09a5d0fd87c348b073c19bf4ab8f52d14b51c57be9a3b2e169df989ea658114999eacf071e3b8836282b586eeb86adb5958d35c47494621c36ad6eb78
7
- data.tar.gz: ce2f4abee919ae6a45fe25fc61f2e5e157e21bf688c22b4894d278ecc0f7afb3083cb755f3ad99101c5a08205baf3d0de3d210746fd156b2781342b00cd8b86c
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.6)
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
 
@@ -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<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::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<FinancialConnectionsAccountBalance>**](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<FinancialConnectionsAccountDetails>**](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<FinancialConnectionsAccount>**](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<FinancialConnectionsOwner>**](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
 
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
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] |
8
9
 
9
10
  ## Example
10
11
 
@@ -12,7 +13,8 @@
12
13
  require 'fuse_client'
13
14
 
14
15
  instance = FuseClient::GetFinancialInstitutionResponse.new(
15
- financial_institution: null
16
+ financial_institution: null,
17
+ request_id: null
16
18
  )
17
19
  ```
18
20
 
@@ -7,6 +7,7 @@
7
7
  | **accounts** | [**Array<FinancialConnectionsInvestmentAccount>**](FinancialConnectionsInvestmentAccount.md) | | [optional] |
8
8
  | **holdings** | [**Array<FinancialConnectionsHolding>**](FinancialConnectionsHolding.md) | | [optional] |
9
9
  | **securities** | [**Array<FinancialConnectionsInvestmentSecurity>**](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<FinancialConnectionsInvestmentAccount>**](FinancialConnectionsInvestmentAccount.md) | | [optional] |
8
8
  | **investment_transactions** | [**Array<FinancialConnectionsInvestmentTransaction>**](FinancialConnectionsInvestmentTransaction.md) | | [optional] |
9
9
  | **securities** | [**Array<FinancialConnectionsInvestmentSecurity>**](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<FinancialConnectionsAccountLiability>**](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<GetTransactionsResponseDataInner>**](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<SyncTransactionsResponseRemovedInner>**](SyncTransactionsResponseRemovedInner.md) | Transactions that have been removed from the item since `cursor` 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 `has_next` being `false`) 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 `cursor` set to `next_cursor`. If `has_next` is true, it'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<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::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
 
@@ -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.
@@ -17,10 +17,14 @@ module FuseClient
17
17
  class GetAssetReportResponse
18
18
  attr_accessor :report
19
19
 
20
+ # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
21
+ attr_accessor :request_id
22
+
20
23
  # Attribute mapping from ruby-style variable name to JSON key.
21
24
  def self.attribute_map
22
25
  {
23
- :'report' => :'report'
26
+ :'report' => :'report',
27
+ :'request_id' => :'request_id'
24
28
  }
25
29
  end
26
30
 
@@ -32,7 +36,8 @@ module FuseClient
32
36
  # Attribute type mapping.
33
37
  def self.openapi_types
34
38
  {
35
- :'report' => :'GetAssetReportResponseReport'
39
+ :'report' => :'GetAssetReportResponseReport',
40
+ :'request_id' => :'String'
36
41
  }
37
42
  end
38
43
 
@@ -60,6 +65,10 @@ module FuseClient
60
65
  if attributes.key?(:'report')
61
66
  self.report = attributes[:'report']
62
67
  end
68
+
69
+ if attributes.key?(:'request_id')
70
+ self.request_id = attributes[:'request_id']
71
+ end
63
72
  end
64
73
 
65
74
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -80,7 +89,8 @@ module FuseClient
80
89
  def ==(o)
81
90
  return true if self.equal?(o)
82
91
  self.class == o.class &&
83
- report == o.report
92
+ report == o.report &&
93
+ request_id == o.request_id
84
94
  end
85
95
 
86
96
  # @see the `==` method
@@ -92,7 +102,7 @@ module FuseClient
92
102
  # Calculates hash code according to all attributes.
93
103
  # @return [Integer] Hash code
94
104
  def hash
95
- [report].hash
105
+ [report, request_id].hash
96
106
  end
97
107
 
98
108
  # Builds the object from hash