fuse_client 1.0.4 → 1.0.6

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: 91a66b4e8ff0e1a024e8d5db8d2a77802b29bf9487a470fcdd2fb5dbe1010332
4
+ data.tar.gz: c8b28e455bdfc96d02f7f56d8374d4c11c5710e09eedd82aca08a9c6b24edffb
5
5
  SHA512:
6
- metadata.gz: cf951f13b0160dd5572b1f787f446841a8156367a766dd580542e586940bfaceac574ff49a63ce8c868aeeb51dee5bf58336ddd292db2df051e86f642bfba45a
7
- data.tar.gz: 219a8d714d6c397c06de168c6bb52497a0034edd6eb1612dee1328c9b5d539b771925870bb4fe45af2f19620f04828f581c094f1bc5678cdb4932cba11c6510f
6
+ metadata.gz: be191bd09a5d0fd87c348b073c19bf4ab8f52d14b51c57be9a3b2e169df989ea658114999eacf071e3b8836282b586eeb86adb5958d35c47494621c36ad6eb78
7
+ data.tar.gz: ce2f4abee919ae6a45fe25fc61f2e5e157e21bf688c22b4894d278ecc0f7afb3083cb755f3ad99101c5a08205baf3d0de3d210746fd156b2781342b00cd8b86c
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.6)
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
+
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
  | **account_details** | [**Array&lt;FinancialConnectionsAccountDetails&gt;**](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&lt;FinancialConnectionsAccount&gt;**](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,18 @@
1
+ # FuseClient::GetFinancialInstitutionResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **financial_institution** | [**FinancialInstitution**](FinancialInstitution.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'fuse_client'
13
+
14
+ instance = FuseClient::GetFinancialInstitutionResponse.new(
15
+ financial_institution: null
16
+ )
17
+ ```
18
+
@@ -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']
@@ -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
@@ -0,0 +1,219 @@
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
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'financial_institution' => :'financial_institution'
24
+ }
25
+ end
26
+
27
+ # Returns all the JSON keys this model knows about
28
+ def self.acceptable_attributes
29
+ attribute_map.values
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'financial_institution' => :'FinancialInstitution'
36
+ }
37
+ end
38
+
39
+ # List of attributes with nullable: true
40
+ def self.openapi_nullable
41
+ Set.new([
42
+ ])
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ if (!attributes.is_a?(Hash))
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::GetFinancialInstitutionResponse` initialize method"
50
+ end
51
+
52
+ # check to see if the attribute exists and convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h|
54
+ if (!self.class.attribute_map.key?(k.to_sym))
55
+ 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
56
+ end
57
+ h[k.to_sym] = v
58
+ }
59
+
60
+ if attributes.key?(:'financial_institution')
61
+ self.financial_institution = attributes[:'financial_institution']
62
+ end
63
+ end
64
+
65
+ # Show invalid properties with the reasons. Usually used together with valid?
66
+ # @return Array for valid properties with the reasons
67
+ def list_invalid_properties
68
+ invalid_properties = Array.new
69
+ invalid_properties
70
+ end
71
+
72
+ # Check to see if the all the properties in the model are valid
73
+ # @return true if the model is valid
74
+ def valid?
75
+ true
76
+ end
77
+
78
+ # Checks equality by comparing each attribute.
79
+ # @param [Object] Object to be compared
80
+ def ==(o)
81
+ return true if self.equal?(o)
82
+ self.class == o.class &&
83
+ financial_institution == o.financial_institution
84
+ end
85
+
86
+ # @see the `==` method
87
+ # @param [Object] Object to be compared
88
+ def eql?(o)
89
+ self == o
90
+ end
91
+
92
+ # Calculates hash code according to all attributes.
93
+ # @return [Integer] Hash code
94
+ def hash
95
+ [financial_institution].hash
96
+ end
97
+
98
+ # Builds the object from hash
99
+ # @param [Hash] attributes Model attributes in the form of hash
100
+ # @return [Object] Returns the model itself
101
+ def self.build_from_hash(attributes)
102
+ new.build_from_hash(attributes)
103
+ end
104
+
105
+ # Builds the object from hash
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ # @return [Object] Returns the model itself
108
+ def build_from_hash(attributes)
109
+ return nil unless attributes.is_a?(Hash)
110
+ attributes = attributes.transform_keys(&:to_sym)
111
+ self.class.openapi_types.each_pair do |key, type|
112
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
113
+ self.send("#{key}=", nil)
114
+ elsif type =~ /\AArray<(.*)>/i
115
+ # check to ensure the input is an array given that the attribute
116
+ # is documented as an array but the input is not
117
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
118
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
119
+ end
120
+ elsif !attributes[self.class.attribute_map[key]].nil?
121
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
122
+ end
123
+ end
124
+
125
+ self
126
+ end
127
+
128
+ # Deserializes the data based on type
129
+ # @param string type Data type
130
+ # @param string value Value to be deserialized
131
+ # @return [Object] Deserialized data
132
+ def _deserialize(type, value)
133
+ case type.to_sym
134
+ when :Time
135
+ Time.parse(value)
136
+ when :Date
137
+ Date.parse(value)
138
+ when :String
139
+ value.to_s
140
+ when :Integer
141
+ value.to_i
142
+ when :Float
143
+ value.to_f
144
+ when :Boolean
145
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
146
+ true
147
+ else
148
+ false
149
+ end
150
+ when :Object
151
+ # generic object (usually a Hash), return directly
152
+ value
153
+ when /\AArray<(?<inner_type>.+)>\z/
154
+ inner_type = Regexp.last_match[:inner_type]
155
+ value.map { |v| _deserialize(inner_type, v) }
156
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
157
+ k_type = Regexp.last_match[:k_type]
158
+ v_type = Regexp.last_match[:v_type]
159
+ {}.tap do |hash|
160
+ value.each do |k, v|
161
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
162
+ end
163
+ end
164
+ else # model
165
+ # models (e.g. Pet) or oneOf
166
+ klass = FuseClient.const_get(type)
167
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
168
+ end
169
+ end
170
+
171
+ # Returns the string representation of the object
172
+ # @return [String] String presentation of the object
173
+ def to_s
174
+ to_hash.to_s
175
+ end
176
+
177
+ # to_body is an alias to to_hash (backward compatibility)
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_body
180
+ to_hash
181
+ end
182
+
183
+ # Returns the object in the form of hash
184
+ # @return [Hash] Returns the object in the form of hash
185
+ def to_hash
186
+ hash = {}
187
+ self.class.attribute_map.each_pair do |attr, param|
188
+ value = self.send(attr)
189
+ if value.nil?
190
+ is_nullable = self.class.openapi_nullable.include?(attr)
191
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
192
+ end
193
+
194
+ hash[param] = _to_hash(value)
195
+ end
196
+ hash
197
+ end
198
+
199
+ # Outputs non-array value in the form of hash
200
+ # For object, use to_hash. Otherwise, just return the value
201
+ # @param [Object] value Any valid value
202
+ # @return [Hash] Returns the value in the form of hash
203
+ def _to_hash(value)
204
+ if value.is_a?(Array)
205
+ value.compact.map { |v| _to_hash(v) }
206
+ elsif value.is_a?(Hash)
207
+ {}.tap do |hash|
208
+ value.each { |k, v| hash[k] = _to_hash(v) }
209
+ end
210
+ elsif value.respond_to? :to_hash
211
+ value.to_hash
212
+ else
213
+ value
214
+ end
215
+ end
216
+
217
+ end
218
+
219
+ end
@@ -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.6'
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'
@@ -73,6 +74,7 @@ require 'fuse_client/models/get_financial_connections_balance_request'
73
74
  require 'fuse_client/models/get_financial_connections_owners_request'
74
75
  require 'fuse_client/models/get_financial_connections_owners_response'
75
76
  require 'fuse_client/models/get_financial_connections_owners_response_accounts_inner'
77
+ require 'fuse_client/models/get_financial_institution_response'
76
78
  require 'fuse_client/models/get_investment_holdings_request'
77
79
  require 'fuse_client/models/get_investment_holdings_response'
78
80
  require 'fuse_client/models/get_investment_transactions_request'
@@ -169,7 +169,7 @@ describe 'FuseApi' do
169
169
  # Receive metadata for a financial institution
170
170
  # @param institution_id
171
171
  # @param [Hash] opts the optional parameters
172
- # @return [FinancialInstitution]
172
+ # @return [GetFinancialInstitutionResponse]
173
173
  describe 'get_financial_institution test' do
174
174
  it 'should work' do
175
175
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -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
@@ -0,0 +1,34 @@
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::GetFinancialInstitutionResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe FuseClient::GetFinancialInstitutionResponse do
21
+ let(:instance) { FuseClient::GetFinancialInstitutionResponse.new }
22
+
23
+ describe 'test an instance of GetFinancialInstitutionResponse' do
24
+ it 'should create an instance of GetFinancialInstitutionResponse' do
25
+ expect(instance).to be_instance_of(FuseClient::GetFinancialInstitutionResponse)
26
+ end
27
+ end
28
+ describe 'test attribute "financial_institution"' 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
+ 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.6
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
@@ -119,6 +120,7 @@ files:
119
120
  - docs/GetFinancialConnectionsOwnersRequest.md
120
121
  - docs/GetFinancialConnectionsOwnersResponse.md
121
122
  - docs/GetFinancialConnectionsOwnersResponseAccountsInner.md
123
+ - docs/GetFinancialInstitutionResponse.md
122
124
  - docs/GetInvestmentHoldingsRequest.md
123
125
  - docs/GetInvestmentHoldingsResponse.md
124
126
  - docs/GetInvestmentTransactionsRequest.md
@@ -159,6 +161,7 @@ files:
159
161
  - lib/fuse_client/models/entity.rb
160
162
  - lib/fuse_client/models/exchange_financial_connections_public_token_request.rb
161
163
  - lib/fuse_client/models/exchange_financial_connections_public_token_response.rb
164
+ - lib/fuse_client/models/financial_connection_data.rb
162
165
  - lib/fuse_client/models/financial_connections_account.rb
163
166
  - lib/fuse_client/models/financial_connections_account_balance.rb
164
167
  - lib/fuse_client/models/financial_connections_account_details.rb
@@ -201,6 +204,7 @@ files:
201
204
  - lib/fuse_client/models/get_financial_connections_owners_request.rb
202
205
  - lib/fuse_client/models/get_financial_connections_owners_response.rb
203
206
  - lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb
207
+ - lib/fuse_client/models/get_financial_institution_response.rb
204
208
  - lib/fuse_client/models/get_investment_holdings_request.rb
205
209
  - lib/fuse_client/models/get_investment_holdings_response.rb
206
210
  - lib/fuse_client/models/get_investment_transactions_request.rb
@@ -238,6 +242,7 @@ files:
238
242
  - spec/models/entity_spec.rb
239
243
  - spec/models/exchange_financial_connections_public_token_request_spec.rb
240
244
  - spec/models/exchange_financial_connections_public_token_response_spec.rb
245
+ - spec/models/financial_connection_data_spec.rb
241
246
  - spec/models/financial_connections_account_balance_spec.rb
242
247
  - spec/models/financial_connections_account_details_ach_spec.rb
243
248
  - spec/models/financial_connections_account_details_spec.rb
@@ -280,6 +285,7 @@ files:
280
285
  - spec/models/get_financial_connections_owners_request_spec.rb
281
286
  - spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb
282
287
  - spec/models/get_financial_connections_owners_response_spec.rb
288
+ - spec/models/get_financial_institution_response_spec.rb
283
289
  - spec/models/get_investment_holdings_request_spec.rb
284
290
  - spec/models/get_investment_holdings_response_spec.rb
285
291
  - spec/models/get_investment_transactions_request_spec.rb
@@ -341,6 +347,7 @@ test_files:
341
347
  - spec/models/financial_connections_investment_account_spec.rb
342
348
  - spec/models/financial_connections_account_details_spec.rb
343
349
  - spec/models/financial_connections_account_balance_spec.rb
350
+ - spec/models/get_financial_institution_response_spec.rb
344
351
  - spec/models/create_link_token_request_spec.rb
345
352
  - spec/models/product_spec.rb
346
353
  - spec/models/financial_connections_account_spec.rb
@@ -378,6 +385,7 @@ test_files:
378
385
  - spec/models/fuse_api_error_data_spec.rb
379
386
  - spec/models/financial_connections_investment_security_spec.rb
380
387
  - spec/models/financial_connections_holding_spec.rb
388
+ - spec/models/financial_connection_data_spec.rb
381
389
  - spec/models/get_liabilities_request_spec.rb
382
390
  - spec/models/financial_connections_owner_names_inner_spec.rb
383
391
  - spec/models/get_asset_report_response_report_accounts_inner_historical_balances_inner_spec.rb