fuse_client 1.0.40 → 1.0.41
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/docs/ExchangeFinancialConnectionsPublicTokenResponse.md +4 -0
- data/docs/FinancialConnectionDetails.md +3 -1
- data/docs/FinancialConnectionDetailsFinicity.md +20 -0
- data/docs/FuseApi.md +1 -1
- data/lib/fuse_client/models/aggregator.rb +9 -8
- data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +46 -1
- data/lib/fuse_client/models/financial_connection_details.rb +13 -4
- data/lib/fuse_client/models/financial_connection_details_finicity.rb +241 -0
- data/lib/fuse_client/models/fuse_api_error_code.rb +4 -1
- data/lib/fuse_client/version.rb +1 -1
- data/lib/fuse_client.rb +1 -0
- data/spec/models/exchange_financial_connections_public_token_response_spec.rb +12 -0
- data/spec/models/financial_connection_details_finicity_spec.rb +40 -0
- data/spec/models/financial_connection_details_spec.rb +6 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a492d2f9e47ad292cf3bf5b39bc639e8cd84e2b16e0ffcd1f1a18892f0fce774
|
4
|
+
data.tar.gz: 4f74fa2de057c81976c219b732b81f9d5794c021c9bf76967c070a4785f2f031
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a9fc8c27c141c0afe852afa4c9e545af02a38ce80cae2fee56900024be6ab61dc7a85336dc9322257d9687a489ac81d30ce4f7974410c645a69c99f631f60f9
|
7
|
+
data.tar.gz: ad609b8f0b24793fe29c901d125f86d8eb9a97d8ef4b6be353c20cdec2bc473360333d2acc3fef9c3f3eedf4e16dd0f9681d09f379545e966f74a5f695644fad
|
data/Gemfile.lock
CHANGED
@@ -6,6 +6,8 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **access_token** | **String** | Token used for querying data on the user, ie account details, balances etc. This does NOT expire and should be stored securely. | |
|
8
8
|
| **financial_connection_id** | **String** | The id of the new financial connection. Every webhook will be sent with this id. Use this id when calling the GET /financial_connection/${financial_connection_id} endpoint. | |
|
9
|
+
| **institution** | [**FinancialInstitution**](FinancialInstitution.md) | | [optional] |
|
10
|
+
| **aggregator** | [**Aggregator**](Aggregator.md) | | |
|
9
11
|
| **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | |
|
10
12
|
|
11
13
|
## Example
|
@@ -16,6 +18,8 @@ require 'fuse_client'
|
|
16
18
|
instance = FuseClient::ExchangeFinancialConnectionsPublicTokenResponse.new(
|
17
19
|
access_token: null,
|
18
20
|
financial_connection_id: null,
|
21
|
+
institution: null,
|
22
|
+
aggregator: null,
|
19
23
|
request_id: null
|
20
24
|
)
|
21
25
|
```
|
@@ -19,6 +19,7 @@
|
|
19
19
|
| **finverse** | [**FinancialConnectionDetailsFinverse**](FinancialConnectionDetailsFinverse.md) | | [optional] |
|
20
20
|
| **basiq** | [**FinancialConnectionDetailsBasiq**](FinancialConnectionDetailsBasiq.md) | | [optional] |
|
21
21
|
| **belvo** | [**FinancialConnectionDetailsBelvo**](FinancialConnectionDetailsBelvo.md) | | [optional] |
|
22
|
+
| **finicity** | [**FinancialConnectionDetailsFinicity**](FinancialConnectionDetailsFinicity.md) | | [optional] |
|
22
23
|
|
23
24
|
## Example
|
24
25
|
|
@@ -40,7 +41,8 @@ instance = FuseClient::FinancialConnectionDetails.new(
|
|
40
41
|
truelayer: null,
|
41
42
|
finverse: null,
|
42
43
|
basiq: null,
|
43
|
-
belvo: null
|
44
|
+
belvo: null,
|
45
|
+
finicity: null
|
44
46
|
)
|
45
47
|
```
|
46
48
|
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# FuseClient::FinancialConnectionDetailsFinicity
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **customer_id** | **String** | The identifier of the customer for Finicity. | |
|
8
|
+
| **institution_login_id** | **String** | The Finicity institution login id. | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'fuse_client'
|
14
|
+
|
15
|
+
instance = FuseClient::FinancialConnectionDetailsFinicity.new(
|
16
|
+
customer_id: null,
|
17
|
+
institution_login_id: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/FuseApi.md
CHANGED
@@ -451,7 +451,7 @@ end
|
|
451
451
|
|
452
452
|
api_instance = FuseClient::FuseApi.new
|
453
453
|
opts = {
|
454
|
-
create_session_request: FuseClient::CreateSessionRequest.new({supported_financial_institution_aggregators: [FuseClient::Aggregator::
|
454
|
+
create_session_request: FuseClient::CreateSessionRequest.new({supported_financial_institution_aggregators: [FuseClient::Aggregator::BASIQ], products: [FuseClient::Product::ACCOUNT_DETAILS], entity: FuseClient::Entity.new({id: 'id_example'})}) # CreateSessionRequest |
|
455
455
|
}
|
456
456
|
|
457
457
|
begin
|
@@ -15,19 +15,20 @@ require 'time'
|
|
15
15
|
|
16
16
|
module FuseClient
|
17
17
|
class Aggregator
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
BASIQ = "basiq".freeze
|
19
|
+
BELVO = "belvo".freeze
|
20
|
+
FINICITY = "finicity".freeze
|
21
|
+
FINVERSE = "finverse".freeze
|
22
22
|
FLINKS = "flinks".freeze
|
23
23
|
MONO = "mono".freeze
|
24
|
+
MX = "mx".freeze
|
25
|
+
PLAID = "plaid".freeze
|
26
|
+
SNAPTRADE = "snaptrade".freeze
|
27
|
+
TELLER = "teller".freeze
|
24
28
|
TRUELAYER = "truelayer".freeze
|
25
|
-
FINVERSE = "finverse".freeze
|
26
|
-
BASIQ = "basiq".freeze
|
27
|
-
BELVO = "belvo".freeze
|
28
29
|
|
29
30
|
def self.all_vars
|
30
|
-
@all_vars ||= [
|
31
|
+
@all_vars ||= [BASIQ, BELVO, FINICITY, FINVERSE, FLINKS, MONO, MX, PLAID, SNAPTRADE, TELLER, TRUELAYER].freeze
|
31
32
|
end
|
32
33
|
|
33
34
|
# Builds the enum from string
|
@@ -21,14 +21,42 @@ module FuseClient
|
|
21
21
|
# The id of the new financial connection. Every webhook will be sent with this id. Use this id when calling the GET /financial_connection/${financial_connection_id} endpoint.
|
22
22
|
attr_accessor :financial_connection_id
|
23
23
|
|
24
|
+
attr_accessor :institution
|
25
|
+
|
26
|
+
attr_accessor :aggregator
|
27
|
+
|
24
28
|
# An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
|
25
29
|
attr_accessor :request_id
|
26
30
|
|
31
|
+
class EnumAttributeValidator
|
32
|
+
attr_reader :datatype
|
33
|
+
attr_reader :allowable_values
|
34
|
+
|
35
|
+
def initialize(datatype, allowable_values)
|
36
|
+
@allowable_values = allowable_values.map do |value|
|
37
|
+
case datatype.to_s
|
38
|
+
when /Integer/i
|
39
|
+
value.to_i
|
40
|
+
when /Float/i
|
41
|
+
value.to_f
|
42
|
+
else
|
43
|
+
value
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
def valid?(value)
|
49
|
+
!value || allowable_values.include?(value)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
27
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
54
|
def self.attribute_map
|
29
55
|
{
|
30
56
|
:'access_token' => :'access_token',
|
31
57
|
:'financial_connection_id' => :'financial_connection_id',
|
58
|
+
:'institution' => :'institution',
|
59
|
+
:'aggregator' => :'aggregator',
|
32
60
|
:'request_id' => :'request_id'
|
33
61
|
}
|
34
62
|
end
|
@@ -43,6 +71,8 @@ module FuseClient
|
|
43
71
|
{
|
44
72
|
:'access_token' => :'String',
|
45
73
|
:'financial_connection_id' => :'String',
|
74
|
+
:'institution' => :'FinancialInstitution',
|
75
|
+
:'aggregator' => :'Aggregator',
|
46
76
|
:'request_id' => :'String'
|
47
77
|
}
|
48
78
|
end
|
@@ -76,6 +106,14 @@ module FuseClient
|
|
76
106
|
self.financial_connection_id = attributes[:'financial_connection_id']
|
77
107
|
end
|
78
108
|
|
109
|
+
if attributes.key?(:'institution')
|
110
|
+
self.institution = attributes[:'institution']
|
111
|
+
end
|
112
|
+
|
113
|
+
if attributes.key?(:'aggregator')
|
114
|
+
self.aggregator = attributes[:'aggregator']
|
115
|
+
end
|
116
|
+
|
79
117
|
if attributes.key?(:'request_id')
|
80
118
|
self.request_id = attributes[:'request_id']
|
81
119
|
end
|
@@ -93,6 +131,10 @@ module FuseClient
|
|
93
131
|
invalid_properties.push('invalid value for "financial_connection_id", financial_connection_id cannot be nil.')
|
94
132
|
end
|
95
133
|
|
134
|
+
if @aggregator.nil?
|
135
|
+
invalid_properties.push('invalid value for "aggregator", aggregator cannot be nil.')
|
136
|
+
end
|
137
|
+
|
96
138
|
if @request_id.nil?
|
97
139
|
invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
|
98
140
|
end
|
@@ -105,6 +147,7 @@ module FuseClient
|
|
105
147
|
def valid?
|
106
148
|
return false if @access_token.nil?
|
107
149
|
return false if @financial_connection_id.nil?
|
150
|
+
return false if @aggregator.nil?
|
108
151
|
return false if @request_id.nil?
|
109
152
|
true
|
110
153
|
end
|
@@ -116,6 +159,8 @@ module FuseClient
|
|
116
159
|
self.class == o.class &&
|
117
160
|
access_token == o.access_token &&
|
118
161
|
financial_connection_id == o.financial_connection_id &&
|
162
|
+
institution == o.institution &&
|
163
|
+
aggregator == o.aggregator &&
|
119
164
|
request_id == o.request_id
|
120
165
|
end
|
121
166
|
|
@@ -128,7 +173,7 @@ module FuseClient
|
|
128
173
|
# Calculates hash code according to all attributes.
|
129
174
|
# @return [Integer] Hash code
|
130
175
|
def hash
|
131
|
-
[access_token, financial_connection_id, request_id].hash
|
176
|
+
[access_token, financial_connection_id, institution, aggregator, request_id].hash
|
132
177
|
end
|
133
178
|
|
134
179
|
# Builds the object from hash
|
@@ -49,6 +49,8 @@ module FuseClient
|
|
49
49
|
|
50
50
|
attr_accessor :belvo
|
51
51
|
|
52
|
+
attr_accessor :finicity
|
53
|
+
|
52
54
|
class EnumAttributeValidator
|
53
55
|
attr_reader :datatype
|
54
56
|
attr_reader :allowable_values
|
@@ -88,7 +90,8 @@ module FuseClient
|
|
88
90
|
:'truelayer' => :'truelayer',
|
89
91
|
:'finverse' => :'finverse',
|
90
92
|
:'basiq' => :'basiq',
|
91
|
-
:'belvo' => :'belvo'
|
93
|
+
:'belvo' => :'belvo',
|
94
|
+
:'finicity' => :'finicity'
|
92
95
|
}
|
93
96
|
end
|
94
97
|
|
@@ -114,7 +117,8 @@ module FuseClient
|
|
114
117
|
:'truelayer' => :'FinancialConnectionDetailsTruelayer',
|
115
118
|
:'finverse' => :'FinancialConnectionDetailsFinverse',
|
116
119
|
:'basiq' => :'FinancialConnectionDetailsBasiq',
|
117
|
-
:'belvo' => :'FinancialConnectionDetailsBelvo'
|
120
|
+
:'belvo' => :'FinancialConnectionDetailsBelvo',
|
121
|
+
:'finicity' => :'FinancialConnectionDetailsFinicity'
|
118
122
|
}
|
119
123
|
end
|
120
124
|
|
@@ -198,6 +202,10 @@ module FuseClient
|
|
198
202
|
if attributes.key?(:'belvo')
|
199
203
|
self.belvo = attributes[:'belvo']
|
200
204
|
end
|
205
|
+
|
206
|
+
if attributes.key?(:'finicity')
|
207
|
+
self.finicity = attributes[:'finicity']
|
208
|
+
end
|
201
209
|
end
|
202
210
|
|
203
211
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -269,7 +277,8 @@ module FuseClient
|
|
269
277
|
truelayer == o.truelayer &&
|
270
278
|
finverse == o.finverse &&
|
271
279
|
basiq == o.basiq &&
|
272
|
-
belvo == o.belvo
|
280
|
+
belvo == o.belvo &&
|
281
|
+
finicity == o.finicity
|
273
282
|
end
|
274
283
|
|
275
284
|
# @see the `==` method
|
@@ -281,7 +290,7 @@ module FuseClient
|
|
281
290
|
# Calculates hash code according to all attributes.
|
282
291
|
# @return [Integer] Hash code
|
283
292
|
def hash
|
284
|
-
[id, connection_status, connection_status_updated_at, is_oauth, aggregator, plaid, teller, mx, snaptrade, flinks, mono, truelayer, finverse, basiq, belvo].hash
|
293
|
+
[id, connection_status, connection_status_updated_at, is_oauth, aggregator, plaid, teller, mx, snaptrade, flinks, mono, truelayer, finverse, basiq, belvo, finicity].hash
|
285
294
|
end
|
286
295
|
|
287
296
|
# Builds the object from hash
|
@@ -0,0 +1,241 @@
|
|
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.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module FuseClient
|
17
|
+
# Data needed to query data from Finicity.
|
18
|
+
class FinancialConnectionDetailsFinicity
|
19
|
+
# The identifier of the customer for Finicity.
|
20
|
+
attr_accessor :customer_id
|
21
|
+
|
22
|
+
# The Finicity institution login id.
|
23
|
+
attr_accessor :institution_login_id
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'customer_id' => :'customer_id',
|
29
|
+
:'institution_login_id' => :'institution_login_id'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Returns all the JSON keys this model knows about
|
34
|
+
def self.acceptable_attributes
|
35
|
+
attribute_map.values
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'customer_id' => :'String',
|
42
|
+
:'institution_login_id' => :'String'
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
# List of attributes with nullable: true
|
47
|
+
def self.openapi_nullable
|
48
|
+
Set.new([
|
49
|
+
])
|
50
|
+
end
|
51
|
+
|
52
|
+
# Initializes the object
|
53
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
54
|
+
def initialize(attributes = {})
|
55
|
+
if (!attributes.is_a?(Hash))
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::FinancialConnectionDetailsFinicity` initialize method"
|
57
|
+
end
|
58
|
+
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::FinancialConnectionDetailsFinicity`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
|
+
end
|
64
|
+
h[k.to_sym] = v
|
65
|
+
}
|
66
|
+
|
67
|
+
if attributes.key?(:'customer_id')
|
68
|
+
self.customer_id = attributes[:'customer_id']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.key?(:'institution_login_id')
|
72
|
+
self.institution_login_id = attributes[:'institution_login_id']
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
77
|
+
# @return Array for valid properties with the reasons
|
78
|
+
def list_invalid_properties
|
79
|
+
invalid_properties = Array.new
|
80
|
+
if @customer_id.nil?
|
81
|
+
invalid_properties.push('invalid value for "customer_id", customer_id cannot be nil.')
|
82
|
+
end
|
83
|
+
|
84
|
+
if @institution_login_id.nil?
|
85
|
+
invalid_properties.push('invalid value for "institution_login_id", institution_login_id cannot be nil.')
|
86
|
+
end
|
87
|
+
|
88
|
+
invalid_properties
|
89
|
+
end
|
90
|
+
|
91
|
+
# Check to see if the all the properties in the model are valid
|
92
|
+
# @return true if the model is valid
|
93
|
+
def valid?
|
94
|
+
return false if @customer_id.nil?
|
95
|
+
return false if @institution_login_id.nil?
|
96
|
+
true
|
97
|
+
end
|
98
|
+
|
99
|
+
# Checks equality by comparing each attribute.
|
100
|
+
# @param [Object] Object to be compared
|
101
|
+
def ==(o)
|
102
|
+
return true if self.equal?(o)
|
103
|
+
self.class == o.class &&
|
104
|
+
customer_id == o.customer_id &&
|
105
|
+
institution_login_id == o.institution_login_id
|
106
|
+
end
|
107
|
+
|
108
|
+
# @see the `==` method
|
109
|
+
# @param [Object] Object to be compared
|
110
|
+
def eql?(o)
|
111
|
+
self == o
|
112
|
+
end
|
113
|
+
|
114
|
+
# Calculates hash code according to all attributes.
|
115
|
+
# @return [Integer] Hash code
|
116
|
+
def hash
|
117
|
+
[customer_id, institution_login_id].hash
|
118
|
+
end
|
119
|
+
|
120
|
+
# Builds the object from hash
|
121
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
122
|
+
# @return [Object] Returns the model itself
|
123
|
+
def self.build_from_hash(attributes)
|
124
|
+
new.build_from_hash(attributes)
|
125
|
+
end
|
126
|
+
|
127
|
+
# Builds the object from hash
|
128
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
129
|
+
# @return [Object] Returns the model itself
|
130
|
+
def build_from_hash(attributes)
|
131
|
+
return nil unless attributes.is_a?(Hash)
|
132
|
+
attributes = attributes.transform_keys(&:to_sym)
|
133
|
+
self.class.openapi_types.each_pair do |key, type|
|
134
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
135
|
+
self.send("#{key}=", nil)
|
136
|
+
elsif type =~ /\AArray<(.*)>/i
|
137
|
+
# check to ensure the input is an array given that the attribute
|
138
|
+
# is documented as an array but the input is not
|
139
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
140
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
141
|
+
end
|
142
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
143
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
self
|
148
|
+
end
|
149
|
+
|
150
|
+
# Deserializes the data based on type
|
151
|
+
# @param string type Data type
|
152
|
+
# @param string value Value to be deserialized
|
153
|
+
# @return [Object] Deserialized data
|
154
|
+
def _deserialize(type, value)
|
155
|
+
case type.to_sym
|
156
|
+
when :Time
|
157
|
+
Time.parse(value)
|
158
|
+
when :Date
|
159
|
+
Date.parse(value)
|
160
|
+
when :String
|
161
|
+
value.to_s
|
162
|
+
when :Integer
|
163
|
+
value.to_i
|
164
|
+
when :Float
|
165
|
+
value.to_f
|
166
|
+
when :Boolean
|
167
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
168
|
+
true
|
169
|
+
else
|
170
|
+
false
|
171
|
+
end
|
172
|
+
when :Object
|
173
|
+
# generic object (usually a Hash), return directly
|
174
|
+
value
|
175
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
176
|
+
inner_type = Regexp.last_match[:inner_type]
|
177
|
+
value.map { |v| _deserialize(inner_type, v) }
|
178
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
179
|
+
k_type = Regexp.last_match[:k_type]
|
180
|
+
v_type = Regexp.last_match[:v_type]
|
181
|
+
{}.tap do |hash|
|
182
|
+
value.each do |k, v|
|
183
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
184
|
+
end
|
185
|
+
end
|
186
|
+
else # model
|
187
|
+
# models (e.g. Pet) or oneOf
|
188
|
+
klass = FuseClient.const_get(type)
|
189
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
# Returns the string representation of the object
|
194
|
+
# @return [String] String presentation of the object
|
195
|
+
def to_s
|
196
|
+
to_hash.to_s
|
197
|
+
end
|
198
|
+
|
199
|
+
# to_body is an alias to to_hash (backward compatibility)
|
200
|
+
# @return [Hash] Returns the object in the form of hash
|
201
|
+
def to_body
|
202
|
+
to_hash
|
203
|
+
end
|
204
|
+
|
205
|
+
# Returns the object in the form of hash
|
206
|
+
# @return [Hash] Returns the object in the form of hash
|
207
|
+
def to_hash
|
208
|
+
hash = {}
|
209
|
+
self.class.attribute_map.each_pair do |attr, param|
|
210
|
+
value = self.send(attr)
|
211
|
+
if value.nil?
|
212
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
213
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
214
|
+
end
|
215
|
+
|
216
|
+
hash[param] = _to_hash(value)
|
217
|
+
end
|
218
|
+
hash
|
219
|
+
end
|
220
|
+
|
221
|
+
# Outputs non-array value in the form of hash
|
222
|
+
# For object, use to_hash. Otherwise, just return the value
|
223
|
+
# @param [Object] value Any valid value
|
224
|
+
# @return [Hash] Returns the value in the form of hash
|
225
|
+
def _to_hash(value)
|
226
|
+
if value.is_a?(Array)
|
227
|
+
value.compact.map { |v| _to_hash(v) }
|
228
|
+
elsif value.is_a?(Hash)
|
229
|
+
{}.tap do |hash|
|
230
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
231
|
+
end
|
232
|
+
elsif value.respond_to? :to_hash
|
233
|
+
value.to_hash
|
234
|
+
else
|
235
|
+
value
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
end
|
240
|
+
|
241
|
+
end
|
@@ -54,6 +54,9 @@ module FuseClient
|
|
54
54
|
MISSING_BASIQ_API_KEY_HEADER = "missing_basiq_api_key_header".freeze
|
55
55
|
MISSING_BELVO_SECRET_ID_HEADER = "missing_belvo_secret_id_header".freeze
|
56
56
|
MISSING_BELVO_SECRET_PASSWORD_HEADER = "missing_belvo_secret_password_header".freeze
|
57
|
+
MISSING_FINICITY_PARTNER_ID_HEADER = "missing_finicity_partner_id_header".freeze
|
58
|
+
MISSING_FINICITY_APP_KEY_HEADER = "missing_finicity_app_key_header".freeze
|
59
|
+
MISSING_FINICITY_PARTNER_SECRET_HEADER = "missing_finicity_partner_secret_header".freeze
|
57
60
|
MISSING_FUSE_VERIFICATION_HEADER = "missing_fuse_verification_header".freeze
|
58
61
|
AGGREGATOR_ERROR = "aggregator_error".freeze
|
59
62
|
AGGREGATOR_DISCONNECTED_ERROR = "aggregator_disconnected_error".freeze
|
@@ -69,7 +72,7 @@ module FuseClient
|
|
69
72
|
OTHER = "other".freeze
|
70
73
|
|
71
74
|
def self.all_vars
|
72
|
-
@all_vars ||= [ASSET_REPORT_GENERATION_FAILED, ASSET_REPORT_NOT_READY, CLIENT_ERROR, INVALID_HEADERS, INVALID_REQUEST_BODY, INTERNAL_SERVER_ERROR, ORGANIZATION_NOT_FOUND, ENTITY_NOT_FOUND, SESSION_NOT_FOUND, FINANCIAL_INSTITUTION_NOT_FOUND, CONSUMER_RISK_REPORT_NOT_FOUND, CONSUMER_RISK_REPORT_CUSTOMIZATION_NOT_FOUND, MISSING_ACCESS_TOKEN, MISSING_PLAID_CLIENT_ID_HEADER, MISSING_PLAID_SECRET_HEADER, MISSING_MX_CLIENT_ID_HEADER, MISSING_MX_API_KEY_HEADER, MISSING_TELLER_PRIVATE_KEY_HEADER, MISSING_TELLER_CERTIFICATE_HEADER, MISSING_TELLER_APPLICATION_ID_HEADER, MISSING_TELLER_SIGNING_SECRET_HEADER, MISSING_SNAPTRADE_CLIENT_ID_HEADER, MISSING_SNAPTRADE_CONSUMER_KEY_HEADER, MISSING_FLINKS_CA_CUSTOMER_ID_HEADER, MISSING_FLINKS_US_CUSTOMER_ID_HEADER, MISSING_FLINKS_CA_INSTANCE_ID_HEADER, MISSING_FLINKS_US_INSTANCE_ID_HEADER, MISSING_MONO_PUBLIC_KEY_HEADER, MISSING_MONO_SECRET_KEY_HEADER, MISSING_MONO_WEBHOOK_SECRET_HEADER, MISSING_TRUELAYER_CLIENT_ID_HEADER, MISSING_TRUELAYER_CLIENT_SECRET_HEADER, MISSING_TRUELAYER_REDIRECT_URI_HEADER, MISSING_FINVERSE_CLIENT_ID_HEADER, MISSING_FINVERSE_CLIENT_SECRET_HEADER, MISSING_FINVERSE_REDIRECT_URI_HEADER, MISSING_BASIQ_API_KEY_HEADER, MISSING_BELVO_SECRET_ID_HEADER, MISSING_BELVO_SECRET_PASSWORD_HEADER, MISSING_FUSE_VERIFICATION_HEADER, AGGREGATOR_ERROR, AGGREGATOR_DISCONNECTED_ERROR, AGGREGATOR_CONNECTION_FINISHED_ERROR, AGGREGATOR_RATE_LIMIT_ERROR, REQUEST_BODY_MISSING, REQUEST_CONTENT_TYPE_INVALID, REQUEST_BODY_INVALID_JSON, WEBHOOK_ERROR, TIMEOUT, INVALID_CERTIFICATE, INVALID_PRIVATE_KEY, OTHER].freeze
|
75
|
+
@all_vars ||= [ASSET_REPORT_GENERATION_FAILED, ASSET_REPORT_NOT_READY, CLIENT_ERROR, INVALID_HEADERS, INVALID_REQUEST_BODY, INTERNAL_SERVER_ERROR, ORGANIZATION_NOT_FOUND, ENTITY_NOT_FOUND, SESSION_NOT_FOUND, FINANCIAL_INSTITUTION_NOT_FOUND, CONSUMER_RISK_REPORT_NOT_FOUND, CONSUMER_RISK_REPORT_CUSTOMIZATION_NOT_FOUND, MISSING_ACCESS_TOKEN, MISSING_PLAID_CLIENT_ID_HEADER, MISSING_PLAID_SECRET_HEADER, MISSING_MX_CLIENT_ID_HEADER, MISSING_MX_API_KEY_HEADER, MISSING_TELLER_PRIVATE_KEY_HEADER, MISSING_TELLER_CERTIFICATE_HEADER, MISSING_TELLER_APPLICATION_ID_HEADER, MISSING_TELLER_SIGNING_SECRET_HEADER, MISSING_SNAPTRADE_CLIENT_ID_HEADER, MISSING_SNAPTRADE_CONSUMER_KEY_HEADER, MISSING_FLINKS_CA_CUSTOMER_ID_HEADER, MISSING_FLINKS_US_CUSTOMER_ID_HEADER, MISSING_FLINKS_CA_INSTANCE_ID_HEADER, MISSING_FLINKS_US_INSTANCE_ID_HEADER, MISSING_MONO_PUBLIC_KEY_HEADER, MISSING_MONO_SECRET_KEY_HEADER, MISSING_MONO_WEBHOOK_SECRET_HEADER, MISSING_TRUELAYER_CLIENT_ID_HEADER, MISSING_TRUELAYER_CLIENT_SECRET_HEADER, MISSING_TRUELAYER_REDIRECT_URI_HEADER, MISSING_FINVERSE_CLIENT_ID_HEADER, MISSING_FINVERSE_CLIENT_SECRET_HEADER, MISSING_FINVERSE_REDIRECT_URI_HEADER, MISSING_BASIQ_API_KEY_HEADER, MISSING_BELVO_SECRET_ID_HEADER, MISSING_BELVO_SECRET_PASSWORD_HEADER, MISSING_FINICITY_PARTNER_ID_HEADER, MISSING_FINICITY_APP_KEY_HEADER, MISSING_FINICITY_PARTNER_SECRET_HEADER, MISSING_FUSE_VERIFICATION_HEADER, AGGREGATOR_ERROR, AGGREGATOR_DISCONNECTED_ERROR, AGGREGATOR_CONNECTION_FINISHED_ERROR, AGGREGATOR_RATE_LIMIT_ERROR, REQUEST_BODY_MISSING, REQUEST_CONTENT_TYPE_INVALID, REQUEST_BODY_INVALID_JSON, WEBHOOK_ERROR, TIMEOUT, INVALID_CERTIFICATE, INVALID_PRIVATE_KEY, OTHER].freeze
|
73
76
|
end
|
74
77
|
|
75
78
|
# Builds the enum from string
|
data/lib/fuse_client/version.rb
CHANGED
data/lib/fuse_client.rb
CHANGED
@@ -95,6 +95,7 @@ require 'fuse_client/models/financial_connection_data'
|
|
95
95
|
require 'fuse_client/models/financial_connection_details'
|
96
96
|
require 'fuse_client/models/financial_connection_details_basiq'
|
97
97
|
require 'fuse_client/models/financial_connection_details_belvo'
|
98
|
+
require 'fuse_client/models/financial_connection_details_finicity'
|
98
99
|
require 'fuse_client/models/financial_connection_details_finverse'
|
99
100
|
require 'fuse_client/models/financial_connection_details_flinks'
|
100
101
|
require 'fuse_client/models/financial_connection_details_mono'
|
@@ -37,6 +37,18 @@ describe FuseClient::ExchangeFinancialConnectionsPublicTokenResponse do
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
+
describe 'test attribute "institution"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "aggregator"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
40
52
|
describe 'test attribute "request_id"' do
|
41
53
|
it 'should work' do
|
42
54
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/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.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for FuseClient::FinancialConnectionDetailsFinicity
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe FuseClient::FinancialConnectionDetailsFinicity do
|
21
|
+
let(:instance) { FuseClient::FinancialConnectionDetailsFinicity.new }
|
22
|
+
|
23
|
+
describe 'test an instance of FinancialConnectionDetailsFinicity' do
|
24
|
+
it 'should create an instance of FinancialConnectionDetailsFinicity' do
|
25
|
+
expect(instance).to be_instance_of(FuseClient::FinancialConnectionDetailsFinicity)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "customer_id"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "institution_login_id"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
@@ -119,4 +119,10 @@ describe FuseClient::FinancialConnectionDetails do
|
|
119
119
|
end
|
120
120
|
end
|
121
121
|
|
122
|
+
describe 'test attribute "finicity"' do
|
123
|
+
it 'should work' do
|
124
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
122
128
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.41
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -140,6 +140,7 @@ files:
|
|
140
140
|
- docs/FinancialConnectionDetails.md
|
141
141
|
- docs/FinancialConnectionDetailsBasiq.md
|
142
142
|
- docs/FinancialConnectionDetailsBelvo.md
|
143
|
+
- docs/FinancialConnectionDetailsFinicity.md
|
143
144
|
- docs/FinancialConnectionDetailsFinverse.md
|
144
145
|
- docs/FinancialConnectionDetailsFlinks.md
|
145
146
|
- docs/FinancialConnectionDetailsMono.md
|
@@ -330,6 +331,7 @@ files:
|
|
330
331
|
- lib/fuse_client/models/financial_connection_details.rb
|
331
332
|
- lib/fuse_client/models/financial_connection_details_basiq.rb
|
332
333
|
- lib/fuse_client/models/financial_connection_details_belvo.rb
|
334
|
+
- lib/fuse_client/models/financial_connection_details_finicity.rb
|
333
335
|
- lib/fuse_client/models/financial_connection_details_finverse.rb
|
334
336
|
- lib/fuse_client/models/financial_connection_details_flinks.rb
|
335
337
|
- lib/fuse_client/models/financial_connection_details_mono.rb
|
@@ -514,6 +516,7 @@ files:
|
|
514
516
|
- spec/models/financial_connection_data_spec.rb
|
515
517
|
- spec/models/financial_connection_details_basiq_spec.rb
|
516
518
|
- spec/models/financial_connection_details_belvo_spec.rb
|
519
|
+
- spec/models/financial_connection_details_finicity_spec.rb
|
517
520
|
- spec/models/financial_connection_details_finverse_spec.rb
|
518
521
|
- spec/models/financial_connection_details_flinks_spec.rb
|
519
522
|
- spec/models/financial_connection_details_mono_spec.rb
|
@@ -802,6 +805,7 @@ test_files:
|
|
802
805
|
- spec/models/aggregator_spec.rb
|
803
806
|
- spec/models/updated_balance_event_spec.rb
|
804
807
|
- spec/models/get_financial_connections_transactions_request_spec.rb
|
808
|
+
- spec/models/financial_connection_details_finicity_spec.rb
|
805
809
|
- spec/models/fin_ql_merchant_categories_feature_inner_result_inner_spec.rb
|
806
810
|
- spec/models/consumer_risk_report_spec.rb
|
807
811
|
- spec/models/financial_connection_details_spec.rb
|