fuse_client 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/docs/FuseApi.md +4 -4
- data/docs/GetFinancialInstitutionResponse.md +18 -0
- data/lib/fuse_client/api/fuse_api.rb +3 -3
- data/lib/fuse_client/models/get_financial_institution_response.rb +219 -0
- data/lib/fuse_client/version.rb +1 -1
- data/lib/fuse_client.rb +1 -0
- data/spec/api/fuse_api_spec.rb +1 -1
- data/spec/models/get_financial_institution_response_spec.rb +34 -0
- metadata +5 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91a66b4e8ff0e1a024e8d5db8d2a77802b29bf9487a470fcdd2fb5dbe1010332
|
4
|
+
data.tar.gz: c8b28e455bdfc96d02f7f56d8374d4c11c5710e09eedd82aca08a9c6b24edffb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be191bd09a5d0fd87c348b073c19bf4ab8f52d14b51c57be9a3b2e169df989ea658114999eacf071e3b8836282b586eeb86adb5958d35c47494621c36ad6eb78
|
7
|
+
data.tar.gz: ce2f4abee919ae6a45fe25fc61f2e5e157e21bf688c22b4894d278ecc0f7afb3083cb755f3ad99101c5a08205baf3d0de3d210746fd156b2781342b00cd8b86c
|
data/Gemfile.lock
CHANGED
data/docs/FuseApi.md
CHANGED
@@ -936,7 +936,7 @@ end
|
|
936
936
|
|
937
937
|
## get_financial_institution
|
938
938
|
|
939
|
-
> <
|
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(<
|
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 # => <
|
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
|
-
[**
|
1001
|
+
[**GetFinancialInstitutionResponse**](GetFinancialInstitutionResponse.md)
|
1002
1002
|
|
1003
1003
|
### Authorization
|
1004
1004
|
|
@@ -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 [
|
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<(
|
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] || '
|
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,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
|
data/lib/fuse_client/version.rb
CHANGED
data/lib/fuse_client.rb
CHANGED
@@ -74,6 +74,7 @@ require 'fuse_client/models/get_financial_connections_balance_request'
|
|
74
74
|
require 'fuse_client/models/get_financial_connections_owners_request'
|
75
75
|
require 'fuse_client/models/get_financial_connections_owners_response'
|
76
76
|
require 'fuse_client/models/get_financial_connections_owners_response_accounts_inner'
|
77
|
+
require 'fuse_client/models/get_financial_institution_response'
|
77
78
|
require 'fuse_client/models/get_investment_holdings_request'
|
78
79
|
require 'fuse_client/models/get_investment_holdings_response'
|
79
80
|
require 'fuse_client/models/get_investment_transactions_request'
|
data/spec/api/fuse_api_spec.rb
CHANGED
@@ -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 [
|
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,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
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
@@ -120,6 +120,7 @@ files:
|
|
120
120
|
- docs/GetFinancialConnectionsOwnersRequest.md
|
121
121
|
- docs/GetFinancialConnectionsOwnersResponse.md
|
122
122
|
- docs/GetFinancialConnectionsOwnersResponseAccountsInner.md
|
123
|
+
- docs/GetFinancialInstitutionResponse.md
|
123
124
|
- docs/GetInvestmentHoldingsRequest.md
|
124
125
|
- docs/GetInvestmentHoldingsResponse.md
|
125
126
|
- docs/GetInvestmentTransactionsRequest.md
|
@@ -203,6 +204,7 @@ files:
|
|
203
204
|
- lib/fuse_client/models/get_financial_connections_owners_request.rb
|
204
205
|
- lib/fuse_client/models/get_financial_connections_owners_response.rb
|
205
206
|
- lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb
|
207
|
+
- lib/fuse_client/models/get_financial_institution_response.rb
|
206
208
|
- lib/fuse_client/models/get_investment_holdings_request.rb
|
207
209
|
- lib/fuse_client/models/get_investment_holdings_response.rb
|
208
210
|
- lib/fuse_client/models/get_investment_transactions_request.rb
|
@@ -283,6 +285,7 @@ files:
|
|
283
285
|
- spec/models/get_financial_connections_owners_request_spec.rb
|
284
286
|
- spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb
|
285
287
|
- spec/models/get_financial_connections_owners_response_spec.rb
|
288
|
+
- spec/models/get_financial_institution_response_spec.rb
|
286
289
|
- spec/models/get_investment_holdings_request_spec.rb
|
287
290
|
- spec/models/get_investment_holdings_response_spec.rb
|
288
291
|
- spec/models/get_investment_transactions_request_spec.rb
|
@@ -344,6 +347,7 @@ test_files:
|
|
344
347
|
- spec/models/financial_connections_investment_account_spec.rb
|
345
348
|
- spec/models/financial_connections_account_details_spec.rb
|
346
349
|
- spec/models/financial_connections_account_balance_spec.rb
|
350
|
+
- spec/models/get_financial_institution_response_spec.rb
|
347
351
|
- spec/models/create_link_token_request_spec.rb
|
348
352
|
- spec/models/product_spec.rb
|
349
353
|
- spec/models/financial_connections_account_spec.rb
|