fuse_client 1.0.5 → 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 (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
@@ -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
@@ -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
@@ -17,10 +17,14 @@ module FuseClient
17
17
  class GetFinancialConnectionsAccountBalanceResponse
18
18
  attr_accessor :balances
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
- :'balances' => :'balances'
26
+ :'balances' => :'balances',
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
- :'balances' => :'Array<FinancialConnectionsAccountBalance>'
39
+ :'balances' => :'Array<FinancialConnectionsAccountBalance>',
40
+ :'request_id' => :'String'
36
41
  }
37
42
  end
38
43
 
@@ -62,6 +67,10 @@ module FuseClient
62
67
  self.balances = value
63
68
  end
64
69
  end
70
+
71
+ if attributes.key?(:'request_id')
72
+ self.request_id = attributes[:'request_id']
73
+ end
65
74
  end
66
75
 
67
76
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -82,7 +91,8 @@ module FuseClient
82
91
  def ==(o)
83
92
  return true if self.equal?(o)
84
93
  self.class == o.class &&
85
- balances == o.balances
94
+ balances == o.balances &&
95
+ request_id == o.request_id
86
96
  end
87
97
 
88
98
  # @see the `==` method
@@ -94,7 +104,7 @@ module FuseClient
94
104
  # Calculates hash code according to all attributes.
95
105
  # @return [Integer] Hash code
96
106
  def hash
97
- [balances].hash
107
+ [balances, request_id].hash
98
108
  end
99
109
 
100
110
  # Builds the object from hash
@@ -19,11 +19,15 @@ module FuseClient
19
19
 
20
20
  attr_accessor :financial_connection
21
21
 
22
+ # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
23
+ attr_accessor :request_id
24
+
22
25
  # Attribute mapping from ruby-style variable name to JSON key.
23
26
  def self.attribute_map
24
27
  {
25
28
  :'account_details' => :'account_details',
26
- :'financial_connection' => :'financial_connection'
29
+ :'financial_connection' => :'financial_connection',
30
+ :'request_id' => :'request_id'
27
31
  }
28
32
  end
29
33
 
@@ -36,7 +40,8 @@ module FuseClient
36
40
  def self.openapi_types
37
41
  {
38
42
  :'account_details' => :'Array<FinancialConnectionsAccountDetails>',
39
- :'financial_connection' => :'FinancialConnectionData'
43
+ :'financial_connection' => :'FinancialConnectionData',
44
+ :'request_id' => :'String'
40
45
  }
41
46
  end
42
47
 
@@ -70,6 +75,10 @@ module FuseClient
70
75
  if attributes.key?(:'financial_connection')
71
76
  self.financial_connection = attributes[:'financial_connection']
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
  account_details == o.account_details &&
94
- financial_connection == o.financial_connection
103
+ financial_connection == o.financial_connection &&
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
- [account_details, financial_connection].hash
116
+ [account_details, financial_connection, request_id].hash
107
117
  end
108
118
 
109
119
  # Builds the object from hash
@@ -19,11 +19,15 @@ module FuseClient
19
19
 
20
20
  attr_accessor :financial_connection
21
21
 
22
+ # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
23
+ attr_accessor :request_id
24
+
22
25
  # Attribute mapping from ruby-style variable name to JSON key.
23
26
  def self.attribute_map
24
27
  {
25
28
  :'accounts' => :'accounts',
26
- :'financial_connection' => :'financial_connection'
29
+ :'financial_connection' => :'financial_connection',
30
+ :'request_id' => :'request_id'
27
31
  }
28
32
  end
29
33
 
@@ -36,7 +40,8 @@ module FuseClient
36
40
  def self.openapi_types
37
41
  {
38
42
  :'accounts' => :'Array<FinancialConnectionsAccount>',
39
- :'financial_connection' => :'FinancialConnectionData'
43
+ :'financial_connection' => :'FinancialConnectionData',
44
+ :'request_id' => :'String'
40
45
  }
41
46
  end
42
47
 
@@ -70,6 +75,10 @@ module FuseClient
70
75
  if attributes.key?(:'financial_connection')
71
76
  self.financial_connection = attributes[:'financial_connection']
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
  accounts == o.accounts &&
94
- financial_connection == o.financial_connection
103
+ financial_connection == o.financial_connection &&
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
- [accounts, financial_connection].hash
116
+ [accounts, financial_connection, request_id].hash
107
117
  end
108
118
 
109
119
  # Builds the object from hash
@@ -20,11 +20,15 @@ module FuseClient
20
20
 
21
21
  attr_accessor :owners
22
22
 
23
+ # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
24
+ attr_accessor :request_id
25
+
23
26
  # Attribute mapping from ruby-style variable name to JSON key.
24
27
  def self.attribute_map
25
28
  {
26
29
  :'remote_account_id' => :'remote_account_id',
27
- :'owners' => :'owners'
30
+ :'owners' => :'owners',
31
+ :'request_id' => :'request_id'
28
32
  }
29
33
  end
30
34
 
@@ -37,7 +41,8 @@ module FuseClient
37
41
  def self.openapi_types
38
42
  {
39
43
  :'remote_account_id' => :'String',
40
- :'owners' => :'Array<FinancialConnectionsOwner>'
44
+ :'owners' => :'Array<FinancialConnectionsOwner>',
45
+ :'request_id' => :'String'
41
46
  }
42
47
  end
43
48
 
@@ -71,6 +76,10 @@ module FuseClient
71
76
  self.owners = value
72
77
  end
73
78
  end
79
+
80
+ if attributes.key?(:'request_id')
81
+ self.request_id = attributes[:'request_id']
82
+ end
74
83
  end
75
84
 
76
85
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -92,7 +101,8 @@ module FuseClient
92
101
  return true if self.equal?(o)
93
102
  self.class == o.class &&
94
103
  remote_account_id == o.remote_account_id &&
95
- owners == o.owners
104
+ owners == o.owners &&
105
+ request_id == o.request_id
96
106
  end
97
107
 
98
108
  # @see the `==` method
@@ -104,7 +114,7 @@ module FuseClient
104
114
  # Calculates hash code according to all attributes.
105
115
  # @return [Integer] Hash code
106
116
  def hash
107
- [remote_account_id, owners].hash
117
+ [remote_account_id, owners, request_id].hash
108
118
  end
109
119
 
110
120
  # Builds the object from hash
@@ -0,0 +1,229 @@
1
+ =begin
2
+ #Fuse
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.3.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FuseClient
17
+ class GetFinancialInstitutionResponse
18
+ attr_accessor :financial_institution
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
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'financial_institution' => :'financial_institution',
27
+ :'request_id' => :'request_id'
28
+ }
29
+ end
30
+
31
+ # Returns all the JSON keys this model knows about
32
+ def self.acceptable_attributes
33
+ attribute_map.values
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.openapi_types
38
+ {
39
+ :'financial_institution' => :'FinancialInstitution',
40
+ :'request_id' => :'String'
41
+ }
42
+ end
43
+
44
+ # List of attributes with nullable: true
45
+ def self.openapi_nullable
46
+ Set.new([
47
+ ])
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ if (!attributes.is_a?(Hash))
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::GetFinancialInstitutionResponse` initialize method"
55
+ end
56
+
57
+ # check to see if the attribute exists and convert string to symbol for hash key
58
+ attributes = attributes.each_with_object({}) { |(k, v), h|
59
+ if (!self.class.attribute_map.key?(k.to_sym))
60
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::GetFinancialInstitutionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ end
62
+ h[k.to_sym] = v
63
+ }
64
+
65
+ if attributes.key?(:'financial_institution')
66
+ self.financial_institution = attributes[:'financial_institution']
67
+ end
68
+
69
+ if attributes.key?(:'request_id')
70
+ self.request_id = attributes[:'request_id']
71
+ end
72
+ end
73
+
74
+ # Show invalid properties with the reasons. Usually used together with valid?
75
+ # @return Array for valid properties with the reasons
76
+ def list_invalid_properties
77
+ invalid_properties = Array.new
78
+ invalid_properties
79
+ end
80
+
81
+ # Check to see if the all the properties in the model are valid
82
+ # @return true if the model is valid
83
+ def valid?
84
+ true
85
+ end
86
+
87
+ # Checks equality by comparing each attribute.
88
+ # @param [Object] Object to be compared
89
+ def ==(o)
90
+ return true if self.equal?(o)
91
+ self.class == o.class &&
92
+ financial_institution == o.financial_institution &&
93
+ request_id == o.request_id
94
+ end
95
+
96
+ # @see the `==` method
97
+ # @param [Object] Object to be compared
98
+ def eql?(o)
99
+ self == o
100
+ end
101
+
102
+ # Calculates hash code according to all attributes.
103
+ # @return [Integer] Hash code
104
+ def hash
105
+ [financial_institution, request_id].hash
106
+ end
107
+
108
+ # Builds the object from hash
109
+ # @param [Hash] attributes Model attributes in the form of hash
110
+ # @return [Object] Returns the model itself
111
+ def self.build_from_hash(attributes)
112
+ new.build_from_hash(attributes)
113
+ end
114
+
115
+ # Builds the object from hash
116
+ # @param [Hash] attributes Model attributes in the form of hash
117
+ # @return [Object] Returns the model itself
118
+ def build_from_hash(attributes)
119
+ return nil unless attributes.is_a?(Hash)
120
+ attributes = attributes.transform_keys(&:to_sym)
121
+ self.class.openapi_types.each_pair do |key, type|
122
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
123
+ self.send("#{key}=", nil)
124
+ elsif type =~ /\AArray<(.*)>/i
125
+ # check to ensure the input is an array given that the attribute
126
+ # is documented as an array but the input is not
127
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
128
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
129
+ end
130
+ elsif !attributes[self.class.attribute_map[key]].nil?
131
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
132
+ end
133
+ end
134
+
135
+ self
136
+ end
137
+
138
+ # Deserializes the data based on type
139
+ # @param string type Data type
140
+ # @param string value Value to be deserialized
141
+ # @return [Object] Deserialized data
142
+ def _deserialize(type, value)
143
+ case type.to_sym
144
+ when :Time
145
+ Time.parse(value)
146
+ when :Date
147
+ Date.parse(value)
148
+ when :String
149
+ value.to_s
150
+ when :Integer
151
+ value.to_i
152
+ when :Float
153
+ value.to_f
154
+ when :Boolean
155
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
156
+ true
157
+ else
158
+ false
159
+ end
160
+ when :Object
161
+ # generic object (usually a Hash), return directly
162
+ value
163
+ when /\AArray<(?<inner_type>.+)>\z/
164
+ inner_type = Regexp.last_match[:inner_type]
165
+ value.map { |v| _deserialize(inner_type, v) }
166
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
167
+ k_type = Regexp.last_match[:k_type]
168
+ v_type = Regexp.last_match[:v_type]
169
+ {}.tap do |hash|
170
+ value.each do |k, v|
171
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
172
+ end
173
+ end
174
+ else # model
175
+ # models (e.g. Pet) or oneOf
176
+ klass = FuseClient.const_get(type)
177
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
178
+ end
179
+ end
180
+
181
+ # Returns the string representation of the object
182
+ # @return [String] String presentation of the object
183
+ def to_s
184
+ to_hash.to_s
185
+ end
186
+
187
+ # to_body is an alias to to_hash (backward compatibility)
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_body
190
+ to_hash
191
+ end
192
+
193
+ # Returns the object in the form of hash
194
+ # @return [Hash] Returns the object in the form of hash
195
+ def to_hash
196
+ hash = {}
197
+ self.class.attribute_map.each_pair do |attr, param|
198
+ value = self.send(attr)
199
+ if value.nil?
200
+ is_nullable = self.class.openapi_nullable.include?(attr)
201
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
202
+ end
203
+
204
+ hash[param] = _to_hash(value)
205
+ end
206
+ hash
207
+ end
208
+
209
+ # Outputs non-array value in the form of hash
210
+ # For object, use to_hash. Otherwise, just return the value
211
+ # @param [Object] value Any valid value
212
+ # @return [Hash] Returns the value in the form of hash
213
+ def _to_hash(value)
214
+ if value.is_a?(Array)
215
+ value.compact.map { |v| _to_hash(v) }
216
+ elsif value.is_a?(Hash)
217
+ {}.tap do |hash|
218
+ value.each { |k, v| hash[k] = _to_hash(v) }
219
+ end
220
+ elsif value.respond_to? :to_hash
221
+ value.to_hash
222
+ else
223
+ value
224
+ end
225
+ end
226
+
227
+ end
228
+
229
+ end
@@ -21,12 +21,16 @@ module FuseClient
21
21
 
22
22
  attr_accessor :securities
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
  :'accounts' => :'accounts',
28
31
  :'holdings' => :'holdings',
29
- :'securities' => :'securities'
32
+ :'securities' => :'securities',
33
+ :'request_id' => :'request_id'
30
34
  }
31
35
  end
32
36
 
@@ -40,7 +44,8 @@ module FuseClient
40
44
  {
41
45
  :'accounts' => :'Array<FinancialConnectionsInvestmentAccount>',
42
46
  :'holdings' => :'Array<FinancialConnectionsHolding>',
43
- :'securities' => :'Array<FinancialConnectionsInvestmentSecurity>'
47
+ :'securities' => :'Array<FinancialConnectionsInvestmentSecurity>',
48
+ :'request_id' => :'String'
44
49
  }
45
50
  end
46
51
 
@@ -82,6 +87,10 @@ module FuseClient
82
87
  self.securities = value
83
88
  end
84
89
  end
90
+
91
+ if attributes.key?(:'request_id')
92
+ self.request_id = attributes[:'request_id']
93
+ end
85
94
  end
86
95
 
87
96
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -104,7 +113,8 @@ module FuseClient
104
113
  self.class == o.class &&
105
114
  accounts == o.accounts &&
106
115
  holdings == o.holdings &&
107
- securities == o.securities
116
+ securities == o.securities &&
117
+ request_id == o.request_id
108
118
  end
109
119
 
110
120
  # @see the `==` method
@@ -116,7 +126,7 @@ module FuseClient
116
126
  # Calculates hash code according to all attributes.
117
127
  # @return [Integer] Hash code
118
128
  def hash
119
- [accounts, holdings, securities].hash
129
+ [accounts, holdings, securities, request_id].hash
120
130
  end
121
131
 
122
132
  # Builds the object from hash
@@ -21,12 +21,16 @@ module FuseClient
21
21
 
22
22
  attr_accessor :securities
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
  :'accounts' => :'accounts',
28
31
  :'investment_transactions' => :'investment_transactions',
29
- :'securities' => :'securities'
32
+ :'securities' => :'securities',
33
+ :'request_id' => :'request_id'
30
34
  }
31
35
  end
32
36
 
@@ -40,7 +44,8 @@ module FuseClient
40
44
  {
41
45
  :'accounts' => :'Array<FinancialConnectionsInvestmentAccount>',
42
46
  :'investment_transactions' => :'Array<FinancialConnectionsInvestmentTransaction>',
43
- :'securities' => :'Array<FinancialConnectionsInvestmentSecurity>'
47
+ :'securities' => :'Array<FinancialConnectionsInvestmentSecurity>',
48
+ :'request_id' => :'String'
44
49
  }
45
50
  end
46
51
 
@@ -82,6 +87,10 @@ module FuseClient
82
87
  self.securities = value
83
88
  end
84
89
  end
90
+
91
+ if attributes.key?(:'request_id')
92
+ self.request_id = attributes[:'request_id']
93
+ end
85
94
  end
86
95
 
87
96
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -104,7 +113,8 @@ module FuseClient
104
113
  self.class == o.class &&
105
114
  accounts == o.accounts &&
106
115
  investment_transactions == o.investment_transactions &&
107
- securities == o.securities
116
+ securities == o.securities &&
117
+ request_id == o.request_id
108
118
  end
109
119
 
110
120
  # @see the `==` method
@@ -116,7 +126,7 @@ module FuseClient
116
126
  # Calculates hash code according to all attributes.
117
127
  # @return [Integer] Hash code
118
128
  def hash
119
- [accounts, investment_transactions, securities].hash
129
+ [accounts, investment_transactions, securities, request_id].hash
120
130
  end
121
131
 
122
132
  # Builds the object from hash