fuse_client 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 997fd19ff36bff63d35b36f0d78d7a980e530c098021a2149439d1321499d213
4
- data.tar.gz: 4be893793d8fdef485f03ff82f195284d95c89269c288dc50e7d898853759e11
3
+ metadata.gz: e5f632f163ea078beecb6bd978f8cd505cad8d293723eabe0854aebaac495456
4
+ data.tar.gz: f8b9681f52c254ae98ffb360cc7d0ddc91d7141655e71f8f18500ac46a6ed200
5
5
  SHA512:
6
- metadata.gz: cf951f13b0160dd5572b1f787f446841a8156367a766dd580542e586940bfaceac574ff49a63ce8c868aeeb51dee5bf58336ddd292db2df051e86f642bfba45a
7
- data.tar.gz: 219a8d714d6c397c06de168c6bb52497a0034edd6eb1612dee1328c9b5d539b771925870bb4fe45af2f19620f04828f581c094f1bc5678cdb4932cba11c6510f
6
+ metadata.gz: 8e4d19340085bc98f5bbc2cf665ba9983b0532d12b636caae158270a2c71c9f69c840bfee74cb7bfb866e7902d3d0a54505a576917c88921bfde199b0b4c1efa
7
+ data.tar.gz: 9a6689eb7096de8615c111b9cb69471872ec91daa424e551a88e76076f9849bbbd8114e46e70eef2dfd89522221646e5114946d5c597bea3f72541ea45c2f64c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fuse_client (1.0.4)
4
+ fuse_client (1.0.5)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -0,0 +1,20 @@
1
+ # FuseClient::FinancialConnectionData
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | The financial connection id. | [optional] |
8
+ | **institution_id** | **String** | The Fuse Institution ID associated with the financial connection | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'fuse_client'
14
+
15
+ instance = FuseClient::FinancialConnectionData.new(
16
+ id: null,
17
+ institution_id: null
18
+ )
19
+ ```
20
+
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **account_details** | [**Array<FinancialConnectionsAccountDetails>**](FinancialConnectionsAccountDetails.md) | | [optional] |
8
+ | **financial_connection** | [**FinancialConnectionData**](FinancialConnectionData.md) | | [optional] |
8
9
 
9
10
  ## Example
10
11
 
@@ -12,7 +13,8 @@
12
13
  require 'fuse_client'
13
14
 
14
15
  instance = FuseClient::GetFinancialConnectionsAccountDetailsResponse.new(
15
- account_details: null
16
+ account_details: null,
17
+ financial_connection: null
16
18
  )
17
19
  ```
18
20
 
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **accounts** | [**Array<FinancialConnectionsAccount>**](FinancialConnectionsAccount.md) | | [optional] |
8
+ | **financial_connection** | [**FinancialConnectionData**](FinancialConnectionData.md) | | [optional] |
8
9
 
9
10
  ## Example
10
11
 
@@ -12,7 +13,8 @@
12
13
  require 'fuse_client'
13
14
 
14
15
  instance = FuseClient::GetFinancialConnectionsAccountsResponse.new(
15
- accounts: null
16
+ accounts: null,
17
+ financial_connection: null
16
18
  )
17
19
  ```
18
20
 
@@ -0,0 +1,230 @@
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 FinancialConnectionData
18
+ # The financial connection id.
19
+ attr_accessor :id
20
+
21
+ # The Fuse Institution ID associated with the financial connection
22
+ attr_accessor :institution_id
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'id' => :'id',
28
+ :'institution_id' => :'institution_id'
29
+ }
30
+ end
31
+
32
+ # Returns all the JSON keys this model knows about
33
+ def self.acceptable_attributes
34
+ attribute_map.values
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.openapi_types
39
+ {
40
+ :'id' => :'String',
41
+ :'institution_id' => :'String'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::FinancialConnectionData` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!self.class.attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::FinancialConnectionData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'id')
67
+ self.id = attributes[:'id']
68
+ end
69
+
70
+ if attributes.key?(:'institution_id')
71
+ self.institution_id = attributes[:'institution_id']
72
+ end
73
+ end
74
+
75
+ # Show invalid properties with the reasons. Usually used together with valid?
76
+ # @return Array for valid properties with the reasons
77
+ def list_invalid_properties
78
+ invalid_properties = Array.new
79
+ invalid_properties
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ id == o.id &&
94
+ institution_id == o.institution_id
95
+ end
96
+
97
+ # @see the `==` method
98
+ # @param [Object] Object to be compared
99
+ def eql?(o)
100
+ self == o
101
+ end
102
+
103
+ # Calculates hash code according to all attributes.
104
+ # @return [Integer] Hash code
105
+ def hash
106
+ [id, institution_id].hash
107
+ end
108
+
109
+ # Builds the object from hash
110
+ # @param [Hash] attributes Model attributes in the form of hash
111
+ # @return [Object] Returns the model itself
112
+ def self.build_from_hash(attributes)
113
+ new.build_from_hash(attributes)
114
+ end
115
+
116
+ # Builds the object from hash
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ # @return [Object] Returns the model itself
119
+ def build_from_hash(attributes)
120
+ return nil unless attributes.is_a?(Hash)
121
+ attributes = attributes.transform_keys(&:to_sym)
122
+ self.class.openapi_types.each_pair do |key, type|
123
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
124
+ self.send("#{key}=", nil)
125
+ elsif type =~ /\AArray<(.*)>/i
126
+ # check to ensure the input is an array given that the attribute
127
+ # is documented as an array but the input is not
128
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
129
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
130
+ end
131
+ elsif !attributes[self.class.attribute_map[key]].nil?
132
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
133
+ end
134
+ end
135
+
136
+ self
137
+ end
138
+
139
+ # Deserializes the data based on type
140
+ # @param string type Data type
141
+ # @param string value Value to be deserialized
142
+ # @return [Object] Deserialized data
143
+ def _deserialize(type, value)
144
+ case type.to_sym
145
+ when :Time
146
+ Time.parse(value)
147
+ when :Date
148
+ Date.parse(value)
149
+ when :String
150
+ value.to_s
151
+ when :Integer
152
+ value.to_i
153
+ when :Float
154
+ value.to_f
155
+ when :Boolean
156
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
157
+ true
158
+ else
159
+ false
160
+ end
161
+ when :Object
162
+ # generic object (usually a Hash), return directly
163
+ value
164
+ when /\AArray<(?<inner_type>.+)>\z/
165
+ inner_type = Regexp.last_match[:inner_type]
166
+ value.map { |v| _deserialize(inner_type, v) }
167
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
168
+ k_type = Regexp.last_match[:k_type]
169
+ v_type = Regexp.last_match[:v_type]
170
+ {}.tap do |hash|
171
+ value.each do |k, v|
172
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
173
+ end
174
+ end
175
+ else # model
176
+ # models (e.g. Pet) or oneOf
177
+ klass = FuseClient.const_get(type)
178
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
179
+ end
180
+ end
181
+
182
+ # Returns the string representation of the object
183
+ # @return [String] String presentation of the object
184
+ def to_s
185
+ to_hash.to_s
186
+ end
187
+
188
+ # to_body is an alias to to_hash (backward compatibility)
189
+ # @return [Hash] Returns the object in the form of hash
190
+ def to_body
191
+ to_hash
192
+ end
193
+
194
+ # Returns the object in the form of hash
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_hash
197
+ hash = {}
198
+ self.class.attribute_map.each_pair do |attr, param|
199
+ value = self.send(attr)
200
+ if value.nil?
201
+ is_nullable = self.class.openapi_nullable.include?(attr)
202
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
203
+ end
204
+
205
+ hash[param] = _to_hash(value)
206
+ end
207
+ hash
208
+ end
209
+
210
+ # Outputs non-array value in the form of hash
211
+ # For object, use to_hash. Otherwise, just return the value
212
+ # @param [Object] value Any valid value
213
+ # @return [Hash] Returns the value in the form of hash
214
+ def _to_hash(value)
215
+ if value.is_a?(Array)
216
+ value.compact.map { |v| _to_hash(v) }
217
+ elsif value.is_a?(Hash)
218
+ {}.tap do |hash|
219
+ value.each { |k, v| hash[k] = _to_hash(v) }
220
+ end
221
+ elsif value.respond_to? :to_hash
222
+ value.to_hash
223
+ else
224
+ value
225
+ end
226
+ end
227
+
228
+ end
229
+
230
+ end
@@ -17,10 +17,13 @@ module FuseClient
17
17
  class GetFinancialConnectionsAccountDetailsResponse
18
18
  attr_accessor :account_details
19
19
 
20
+ attr_accessor :financial_connection
21
+
20
22
  # Attribute mapping from ruby-style variable name to JSON key.
21
23
  def self.attribute_map
22
24
  {
23
- :'account_details' => :'account_details'
25
+ :'account_details' => :'account_details',
26
+ :'financial_connection' => :'financial_connection'
24
27
  }
25
28
  end
26
29
 
@@ -32,7 +35,8 @@ module FuseClient
32
35
  # Attribute type mapping.
33
36
  def self.openapi_types
34
37
  {
35
- :'account_details' => :'Array<FinancialConnectionsAccountDetails>'
38
+ :'account_details' => :'Array<FinancialConnectionsAccountDetails>',
39
+ :'financial_connection' => :'FinancialConnectionData'
36
40
  }
37
41
  end
38
42
 
@@ -62,6 +66,10 @@ module FuseClient
62
66
  self.account_details = value
63
67
  end
64
68
  end
69
+
70
+ if attributes.key?(:'financial_connection')
71
+ self.financial_connection = attributes[:'financial_connection']
72
+ end
65
73
  end
66
74
 
67
75
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -82,7 +90,8 @@ module FuseClient
82
90
  def ==(o)
83
91
  return true if self.equal?(o)
84
92
  self.class == o.class &&
85
- account_details == o.account_details
93
+ account_details == o.account_details &&
94
+ financial_connection == o.financial_connection
86
95
  end
87
96
 
88
97
  # @see the `==` method
@@ -94,7 +103,7 @@ module FuseClient
94
103
  # Calculates hash code according to all attributes.
95
104
  # @return [Integer] Hash code
96
105
  def hash
97
- [account_details].hash
106
+ [account_details, financial_connection].hash
98
107
  end
99
108
 
100
109
  # Builds the object from hash
@@ -17,10 +17,13 @@ module FuseClient
17
17
  class GetFinancialConnectionsAccountsResponse
18
18
  attr_accessor :accounts
19
19
 
20
+ attr_accessor :financial_connection
21
+
20
22
  # Attribute mapping from ruby-style variable name to JSON key.
21
23
  def self.attribute_map
22
24
  {
23
- :'accounts' => :'accounts'
25
+ :'accounts' => :'accounts',
26
+ :'financial_connection' => :'financial_connection'
24
27
  }
25
28
  end
26
29
 
@@ -32,7 +35,8 @@ module FuseClient
32
35
  # Attribute type mapping.
33
36
  def self.openapi_types
34
37
  {
35
- :'accounts' => :'Array<FinancialConnectionsAccount>'
38
+ :'accounts' => :'Array<FinancialConnectionsAccount>',
39
+ :'financial_connection' => :'FinancialConnectionData'
36
40
  }
37
41
  end
38
42
 
@@ -62,6 +66,10 @@ module FuseClient
62
66
  self.accounts = value
63
67
  end
64
68
  end
69
+
70
+ if attributes.key?(:'financial_connection')
71
+ self.financial_connection = attributes[:'financial_connection']
72
+ end
65
73
  end
66
74
 
67
75
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -82,7 +90,8 @@ module FuseClient
82
90
  def ==(o)
83
91
  return true if self.equal?(o)
84
92
  self.class == o.class &&
85
- accounts == o.accounts
93
+ accounts == o.accounts &&
94
+ financial_connection == o.financial_connection
86
95
  end
87
96
 
88
97
  # @see the `==` method
@@ -94,7 +103,7 @@ module FuseClient
94
103
  # Calculates hash code according to all attributes.
95
104
  # @return [Integer] Hash code
96
105
  def hash
97
- [accounts].hash
106
+ [accounts, financial_connection].hash
98
107
  end
99
108
 
100
109
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.3.0
11
11
  =end
12
12
 
13
13
  module FuseClient
14
- VERSION = '1.0.4'
14
+ VERSION = '1.0.5'
15
15
  end
data/lib/fuse_client.rb CHANGED
@@ -31,6 +31,7 @@ require 'fuse_client/models/create_session_response'
31
31
  require 'fuse_client/models/entity'
32
32
  require 'fuse_client/models/exchange_financial_connections_public_token_request'
33
33
  require 'fuse_client/models/exchange_financial_connections_public_token_response'
34
+ require 'fuse_client/models/financial_connection_data'
34
35
  require 'fuse_client/models/financial_connections_account'
35
36
  require 'fuse_client/models/financial_connections_account_balance'
36
37
  require 'fuse_client/models/financial_connections_account_details'
@@ -0,0 +1,40 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for FuseClient::FinancialConnectionData
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe FuseClient::FinancialConnectionData do
21
+ let(:instance) { FuseClient::FinancialConnectionData.new }
22
+
23
+ describe 'test an instance of FinancialConnectionData' do
24
+ it 'should create an instance of FinancialConnectionData' do
25
+ expect(instance).to be_instance_of(FuseClient::FinancialConnectionData)
26
+ end
27
+ end
28
+ describe 'test attribute "id"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "institution_id"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ end
@@ -31,4 +31,10 @@ describe FuseClient::GetFinancialConnectionsAccountDetailsResponse do
31
31
  end
32
32
  end
33
33
 
34
+ describe 'test attribute "financial_connection"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
34
40
  end
@@ -31,4 +31,10 @@ describe FuseClient::GetFinancialConnectionsAccountsResponse do
31
31
  end
32
32
  end
33
33
 
34
+ describe 'test attribute "financial_connection"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
34
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuse_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -76,6 +76,7 @@ files:
76
76
  - docs/Entity.md
77
77
  - docs/ExchangeFinancialConnectionsPublicTokenRequest.md
78
78
  - docs/ExchangeFinancialConnectionsPublicTokenResponse.md
79
+ - docs/FinancialConnectionData.md
79
80
  - docs/FinancialConnectionsAccount.md
80
81
  - docs/FinancialConnectionsAccountBalance.md
81
82
  - docs/FinancialConnectionsAccountDetails.md
@@ -159,6 +160,7 @@ files:
159
160
  - lib/fuse_client/models/entity.rb
160
161
  - lib/fuse_client/models/exchange_financial_connections_public_token_request.rb
161
162
  - lib/fuse_client/models/exchange_financial_connections_public_token_response.rb
163
+ - lib/fuse_client/models/financial_connection_data.rb
162
164
  - lib/fuse_client/models/financial_connections_account.rb
163
165
  - lib/fuse_client/models/financial_connections_account_balance.rb
164
166
  - lib/fuse_client/models/financial_connections_account_details.rb
@@ -238,6 +240,7 @@ files:
238
240
  - spec/models/entity_spec.rb
239
241
  - spec/models/exchange_financial_connections_public_token_request_spec.rb
240
242
  - spec/models/exchange_financial_connections_public_token_response_spec.rb
243
+ - spec/models/financial_connection_data_spec.rb
241
244
  - spec/models/financial_connections_account_balance_spec.rb
242
245
  - spec/models/financial_connections_account_details_ach_spec.rb
243
246
  - spec/models/financial_connections_account_details_spec.rb
@@ -378,6 +381,7 @@ test_files:
378
381
  - spec/models/fuse_api_error_data_spec.rb
379
382
  - spec/models/financial_connections_investment_security_spec.rb
380
383
  - spec/models/financial_connections_holding_spec.rb
384
+ - spec/models/financial_connection_data_spec.rb
381
385
  - spec/models/get_liabilities_request_spec.rb
382
386
  - spec/models/financial_connections_owner_names_inner_spec.rb
383
387
  - spec/models/get_asset_report_response_report_accounts_inner_historical_balances_inner_spec.rb