fuse_client 1.0.35 → 1.0.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -4
- data/docs/Entity.md +5 -3
- data/docs/FinancialConnectionDetails.md +5 -1
- data/docs/FinancialConnectionDetailsFinverse.md +20 -0
- data/docs/FinancialConnectionDetailsTruelayer.md +18 -0
- data/docs/FinancialConnectionsAccountDetails.md +2 -0
- data/docs/FinancialConnectionsAccountDetailsAccountNumber.md +28 -0
- data/docs/GetFinancialConnectionsOwnersResponse.md +3 -1
- data/docs/GetFinancialConnectionsOwnersResponseAccountsInner.md +1 -3
- data/lib/fuse_client/configuration.rb +42 -0
- data/lib/fuse_client/models/account_subtype.rb +12 -1
- data/lib/fuse_client/models/account_type.rb +1 -1
- data/lib/fuse_client/models/aggregator.rb +3 -1
- data/lib/fuse_client/models/country_code.rb +82 -4
- data/lib/fuse_client/models/entity.rb +16 -6
- data/lib/fuse_client/models/financial_connection_details.rb +22 -4
- data/lib/fuse_client/models/financial_connection_details_finverse.rb +236 -0
- data/lib/fuse_client/models/financial_connection_details_truelayer.rb +226 -0
- data/lib/fuse_client/models/financial_connections_account_details.rb +10 -1
- data/lib/fuse_client/models/financial_connections_account_details_account_number.rb +270 -0
- data/lib/fuse_client/models/financial_connections_investment_security_type.rb +1 -1
- data/lib/fuse_client/models/financial_connections_investment_transaction_subtype.rb +1 -1
- data/lib/fuse_client/models/fuse_api_error_code.rb +7 -1
- data/lib/fuse_client/models/get_financial_connections_owners_response.rb +19 -4
- data/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +4 -19
- data/lib/fuse_client/models/webhook_source.rb +3 -1
- data/lib/fuse_client/version.rb +1 -1
- data/lib/fuse_client.rb +3 -0
- data/spec/models/entity_spec.rb +6 -0
- data/spec/models/financial_connection_details_finverse_spec.rb +40 -0
- data/spec/models/financial_connection_details_spec.rb +12 -0
- data/spec/models/financial_connection_details_truelayer_spec.rb +34 -0
- data/spec/models/financial_connections_account_details_account_number_spec.rb +64 -0
- data/spec/models/financial_connections_account_details_spec.rb +6 -0
- data/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +0 -6
- data/spec/models/get_financial_connections_owners_response_spec.rb +6 -0
- metadata +24 -12
@@ -0,0 +1,270 @@
|
|
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
|
+
class FinancialConnectionsAccountDetailsAccountNumber
|
18
|
+
# Unique identifier representing the account, typically referred to as the account number.
|
19
|
+
attr_accessor :number
|
20
|
+
|
21
|
+
# A six-digit number used by banks in the United Kingdom and Ireland to identify the branch where the account is held.
|
22
|
+
attr_accessor :sort_code
|
23
|
+
|
24
|
+
# International Bank Account Number (IBAN) is an internationally agreed system of identifying bank accounts across national borders to facilitate the communication and processing of cross border transactions.
|
25
|
+
attr_accessor :iban
|
26
|
+
|
27
|
+
# SWIFT/BIC code is an international identifier used to distinctively recognize a particular bank during financial transactions, such as money transfers.
|
28
|
+
attr_accessor :swift_bic
|
29
|
+
|
30
|
+
# Bank-State-Branch (BSB) code is a six-digit numerical code used to identify an individual branch of a financial institution in Australia.
|
31
|
+
attr_accessor :bsb
|
32
|
+
|
33
|
+
# Bank Identifier Code (BIC) is an international standard identifier used by banks and financial institutions globally to carry out transactions.
|
34
|
+
attr_accessor :bic
|
35
|
+
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
37
|
+
def self.attribute_map
|
38
|
+
{
|
39
|
+
:'number' => :'number',
|
40
|
+
:'sort_code' => :'sort_code',
|
41
|
+
:'iban' => :'iban',
|
42
|
+
:'swift_bic' => :'swift_bic',
|
43
|
+
:'bsb' => :'bsb',
|
44
|
+
:'bic' => :'bic'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Returns all the JSON keys this model knows about
|
49
|
+
def self.acceptable_attributes
|
50
|
+
attribute_map.values
|
51
|
+
end
|
52
|
+
|
53
|
+
# Attribute type mapping.
|
54
|
+
def self.openapi_types
|
55
|
+
{
|
56
|
+
:'number' => :'String',
|
57
|
+
:'sort_code' => :'String',
|
58
|
+
:'iban' => :'String',
|
59
|
+
:'swift_bic' => :'String',
|
60
|
+
:'bsb' => :'String',
|
61
|
+
:'bic' => :'String'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# List of attributes with nullable: true
|
66
|
+
def self.openapi_nullable
|
67
|
+
Set.new([
|
68
|
+
])
|
69
|
+
end
|
70
|
+
|
71
|
+
# Initializes the object
|
72
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
73
|
+
def initialize(attributes = {})
|
74
|
+
if (!attributes.is_a?(Hash))
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::FinancialConnectionsAccountDetailsAccountNumber` initialize method"
|
76
|
+
end
|
77
|
+
|
78
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
79
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
80
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::FinancialConnectionsAccountDetailsAccountNumber`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
82
|
+
end
|
83
|
+
h[k.to_sym] = v
|
84
|
+
}
|
85
|
+
|
86
|
+
if attributes.key?(:'number')
|
87
|
+
self.number = attributes[:'number']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'sort_code')
|
91
|
+
self.sort_code = attributes[:'sort_code']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.key?(:'iban')
|
95
|
+
self.iban = attributes[:'iban']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.key?(:'swift_bic')
|
99
|
+
self.swift_bic = attributes[:'swift_bic']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.key?(:'bsb')
|
103
|
+
self.bsb = attributes[:'bsb']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.key?(:'bic')
|
107
|
+
self.bic = attributes[:'bic']
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
112
|
+
# @return Array for valid properties with the reasons
|
113
|
+
def list_invalid_properties
|
114
|
+
invalid_properties = Array.new
|
115
|
+
invalid_properties
|
116
|
+
end
|
117
|
+
|
118
|
+
# Check to see if the all the properties in the model are valid
|
119
|
+
# @return true if the model is valid
|
120
|
+
def valid?
|
121
|
+
true
|
122
|
+
end
|
123
|
+
|
124
|
+
# Checks equality by comparing each attribute.
|
125
|
+
# @param [Object] Object to be compared
|
126
|
+
def ==(o)
|
127
|
+
return true if self.equal?(o)
|
128
|
+
self.class == o.class &&
|
129
|
+
number == o.number &&
|
130
|
+
sort_code == o.sort_code &&
|
131
|
+
iban == o.iban &&
|
132
|
+
swift_bic == o.swift_bic &&
|
133
|
+
bsb == o.bsb &&
|
134
|
+
bic == o.bic
|
135
|
+
end
|
136
|
+
|
137
|
+
# @see the `==` method
|
138
|
+
# @param [Object] Object to be compared
|
139
|
+
def eql?(o)
|
140
|
+
self == o
|
141
|
+
end
|
142
|
+
|
143
|
+
# Calculates hash code according to all attributes.
|
144
|
+
# @return [Integer] Hash code
|
145
|
+
def hash
|
146
|
+
[number, sort_code, iban, swift_bic, bsb, bic].hash
|
147
|
+
end
|
148
|
+
|
149
|
+
# Builds the object from hash
|
150
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
151
|
+
# @return [Object] Returns the model itself
|
152
|
+
def self.build_from_hash(attributes)
|
153
|
+
new.build_from_hash(attributes)
|
154
|
+
end
|
155
|
+
|
156
|
+
# Builds the object from hash
|
157
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
158
|
+
# @return [Object] Returns the model itself
|
159
|
+
def build_from_hash(attributes)
|
160
|
+
return nil unless attributes.is_a?(Hash)
|
161
|
+
attributes = attributes.transform_keys(&:to_sym)
|
162
|
+
self.class.openapi_types.each_pair do |key, type|
|
163
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
164
|
+
self.send("#{key}=", nil)
|
165
|
+
elsif type =~ /\AArray<(.*)>/i
|
166
|
+
# check to ensure the input is an array given that the attribute
|
167
|
+
# is documented as an array but the input is not
|
168
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
169
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
170
|
+
end
|
171
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
172
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
self
|
177
|
+
end
|
178
|
+
|
179
|
+
# Deserializes the data based on type
|
180
|
+
# @param string type Data type
|
181
|
+
# @param string value Value to be deserialized
|
182
|
+
# @return [Object] Deserialized data
|
183
|
+
def _deserialize(type, value)
|
184
|
+
case type.to_sym
|
185
|
+
when :Time
|
186
|
+
Time.parse(value)
|
187
|
+
when :Date
|
188
|
+
Date.parse(value)
|
189
|
+
when :String
|
190
|
+
value.to_s
|
191
|
+
when :Integer
|
192
|
+
value.to_i
|
193
|
+
when :Float
|
194
|
+
value.to_f
|
195
|
+
when :Boolean
|
196
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
197
|
+
true
|
198
|
+
else
|
199
|
+
false
|
200
|
+
end
|
201
|
+
when :Object
|
202
|
+
# generic object (usually a Hash), return directly
|
203
|
+
value
|
204
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
205
|
+
inner_type = Regexp.last_match[:inner_type]
|
206
|
+
value.map { |v| _deserialize(inner_type, v) }
|
207
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
208
|
+
k_type = Regexp.last_match[:k_type]
|
209
|
+
v_type = Regexp.last_match[:v_type]
|
210
|
+
{}.tap do |hash|
|
211
|
+
value.each do |k, v|
|
212
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
213
|
+
end
|
214
|
+
end
|
215
|
+
else # model
|
216
|
+
# models (e.g. Pet) or oneOf
|
217
|
+
klass = FuseClient.const_get(type)
|
218
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
# Returns the string representation of the object
|
223
|
+
# @return [String] String presentation of the object
|
224
|
+
def to_s
|
225
|
+
to_hash.to_s
|
226
|
+
end
|
227
|
+
|
228
|
+
# to_body is an alias to to_hash (backward compatibility)
|
229
|
+
# @return [Hash] Returns the object in the form of hash
|
230
|
+
def to_body
|
231
|
+
to_hash
|
232
|
+
end
|
233
|
+
|
234
|
+
# Returns the object in the form of hash
|
235
|
+
# @return [Hash] Returns the object in the form of hash
|
236
|
+
def to_hash
|
237
|
+
hash = {}
|
238
|
+
self.class.attribute_map.each_pair do |attr, param|
|
239
|
+
value = self.send(attr)
|
240
|
+
if value.nil?
|
241
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
242
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
243
|
+
end
|
244
|
+
|
245
|
+
hash[param] = _to_hash(value)
|
246
|
+
end
|
247
|
+
hash
|
248
|
+
end
|
249
|
+
|
250
|
+
# Outputs non-array value in the form of hash
|
251
|
+
# For object, use to_hash. Otherwise, just return the value
|
252
|
+
# @param [Object] value Any valid value
|
253
|
+
# @return [Hash] Returns the value in the form of hash
|
254
|
+
def _to_hash(value)
|
255
|
+
if value.is_a?(Array)
|
256
|
+
value.compact.map { |v| _to_hash(v) }
|
257
|
+
elsif value.is_a?(Hash)
|
258
|
+
{}.tap do |hash|
|
259
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
260
|
+
end
|
261
|
+
elsif value.respond_to? :to_hash
|
262
|
+
value.to_hash
|
263
|
+
else
|
264
|
+
value
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
end
|
269
|
+
|
270
|
+
end
|
@@ -40,7 +40,7 @@ module FuseClient
|
|
40
40
|
REAL_ESTATE = "real_estate".freeze
|
41
41
|
AUTOMOBILE = "automobile".freeze
|
42
42
|
DELISTED_OR_DEFUNCT_ASSET = "delisted_or_defunct_asset".freeze
|
43
|
-
|
43
|
+
UNMAPPED = "-".freeze
|
44
44
|
|
45
45
|
def self.all_vars
|
46
46
|
@all_vars ||= [CASH, CRYPTOCURRENCY, DERIVATIVE, EQUITY, ETF, FIXED_INCOME, LOAN, MUTUAL_FUND, OTHER, GLOBAL_DEPOSITARY_RECEIPT, OPEN_ENDED_FUND, RIGHT, TEMPORARY, WARRANT, CLOSED_ENDED_FUND, COMMON_STOCK, EXCHANGE_TRADED_FUND, BOND, AMERICAN_DEPOSITARY_RECEIPT, UNIT, STRUCTURED_PRODUCT, PREFERRED_STOCK, REAL_ESTATE, AUTOMOBILE, DELISTED_OR_DEFUNCT_ASSET, ].freeze
|
@@ -63,7 +63,7 @@ module FuseClient
|
|
63
63
|
TRUST_FEE = "trust_fee".freeze
|
64
64
|
UNQUALIFIED_GAIN = "unqualified_gain".freeze
|
65
65
|
WITHDRAWAL = "withdrawal".freeze
|
66
|
-
|
66
|
+
UNMAPPED = "-".freeze
|
67
67
|
|
68
68
|
def self.all_vars
|
69
69
|
@all_vars ||= [ACCOUNT_FEE, ADJUSTMENT, ASSIGNMENT, BUY, BUY_TO_COVER, CONTRIBUTION, DEPOSIT, DISTRIBUTION, DIVIDEND, DIVIDEND_REINVESTMENT, EXERCISE, EXPIRE, FUND_FEE, INTEREST, INTEREST_RECEIVABLE, INTEREST_REINVESTMENT, LEGAL_FEE, LOAN_PAYMENT, LONG_TERM_CAPITAL_GAIN, LONG_TERM_CAPITAL_GAIN_REINVESTMENT, MANAGEMENT_FEE, MARGIN_EXPENSE, MERGER, MISCELLANEOUS_FEE, NON_QUALIFIED_DIVIDEND, NON_RESIDENT_TAX, PENDING_CREDIT, PENDING_DEBIT, QUALIFIED_DIVIDEND, REBALANCE, RETURN_OF_PRINCIPAL, REQUEST, SELL, SELL_SHORT, SEND, SHORT_TERM_CAPITAL_GAIN, SHORT_TERM_CAPITAL_GAIN_REINVESTMENT, SPIN_OFF, SPLIT, STOCK_DISTRIBUTION, TAX, TAX_WITHHELD, TRADE, TRANSFER, TRANSFER_FEE, TRUST_FEE, UNQUALIFIED_GAIN, WITHDRAWAL, ].freeze
|
@@ -45,6 +45,12 @@ module FuseClient
|
|
45
45
|
MISSING_MONO_PUBLIC_KEY_HEADER = "missing_mono_public_key_header".freeze
|
46
46
|
MISSING_MONO_SECRET_KEY_HEADER = "missing_mono_secret_key_header".freeze
|
47
47
|
MISSING_MONO_WEBHOOK_SECRET_HEADER = "missing_mono_webhook_secret_header".freeze
|
48
|
+
MISSING_TRUELAYER_CLIENT_ID_HEADER = "missing_truelayer_client_id_header".freeze
|
49
|
+
MISSING_TRUELAYER_CLIENT_SECRET_HEADER = "missing_truelayer_client_secret_header".freeze
|
50
|
+
MISSING_TRUELAYER_REDIRECT_URI_HEADER = "missing_truelayer_redirect_uri_header".freeze
|
51
|
+
MISSING_FINVERSE_CLIENT_ID_HEADER = "missing_finverse_client_id_header".freeze
|
52
|
+
MISSING_FINVERSE_CLIENT_SECRET_HEADER = "missing_finverse_client_secret_header".freeze
|
53
|
+
MISSING_FINVERSE_REDIRECT_URI_HEADER = "missing_finverse_redirect_uri_header".freeze
|
48
54
|
MISSING_FUSE_VERIFICATION_HEADER = "missing_fuse_verification_header".freeze
|
49
55
|
AGGREGATOR_ERROR = "aggregator_error".freeze
|
50
56
|
AGGREGATOR_DISCONNECTED_ERROR = "aggregator_disconnected_error".freeze
|
@@ -60,7 +66,7 @@ module FuseClient
|
|
60
66
|
OTHER = "other".freeze
|
61
67
|
|
62
68
|
def self.all_vars
|
63
|
-
@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, SPEND_POWER_NOT_FOUND, SPEND_POWER_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_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
|
69
|
+
@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, SPEND_POWER_NOT_FOUND, SPEND_POWER_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_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
|
64
70
|
end
|
65
71
|
|
66
72
|
# Builds the enum from string
|
@@ -17,10 +17,14 @@ module FuseClient
|
|
17
17
|
class GetFinancialConnectionsOwnersResponse
|
18
18
|
attr_accessor :accounts
|
19
19
|
|
20
|
+
# An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
|
21
|
+
attr_accessor :request_id
|
22
|
+
|
20
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
24
|
def self.attribute_map
|
22
25
|
{
|
23
|
-
:'accounts' => :'accounts'
|
26
|
+
:'accounts' => :'accounts',
|
27
|
+
:'request_id' => :'request_id'
|
24
28
|
}
|
25
29
|
end
|
26
30
|
|
@@ -32,7 +36,8 @@ module FuseClient
|
|
32
36
|
# Attribute type mapping.
|
33
37
|
def self.openapi_types
|
34
38
|
{
|
35
|
-
:'accounts' => :'Array<GetFinancialConnectionsOwnersResponseAccountsInner>'
|
39
|
+
:'accounts' => :'Array<GetFinancialConnectionsOwnersResponseAccountsInner>',
|
40
|
+
:'request_id' => :'String'
|
36
41
|
}
|
37
42
|
end
|
38
43
|
|
@@ -62,6 +67,10 @@ module FuseClient
|
|
62
67
|
self.accounts = value
|
63
68
|
end
|
64
69
|
end
|
70
|
+
|
71
|
+
if attributes.key?(:'request_id')
|
72
|
+
self.request_id = attributes[:'request_id']
|
73
|
+
end
|
65
74
|
end
|
66
75
|
|
67
76
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -72,6 +81,10 @@ module FuseClient
|
|
72
81
|
invalid_properties.push('invalid value for "accounts", accounts cannot be nil.')
|
73
82
|
end
|
74
83
|
|
84
|
+
if @request_id.nil?
|
85
|
+
invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
|
86
|
+
end
|
87
|
+
|
75
88
|
invalid_properties
|
76
89
|
end
|
77
90
|
|
@@ -79,6 +92,7 @@ module FuseClient
|
|
79
92
|
# @return true if the model is valid
|
80
93
|
def valid?
|
81
94
|
return false if @accounts.nil?
|
95
|
+
return false if @request_id.nil?
|
82
96
|
true
|
83
97
|
end
|
84
98
|
|
@@ -87,7 +101,8 @@ module FuseClient
|
|
87
101
|
def ==(o)
|
88
102
|
return true if self.equal?(o)
|
89
103
|
self.class == o.class &&
|
90
|
-
accounts == o.accounts
|
104
|
+
accounts == o.accounts &&
|
105
|
+
request_id == o.request_id
|
91
106
|
end
|
92
107
|
|
93
108
|
# @see the `==` method
|
@@ -99,7 +114,7 @@ module FuseClient
|
|
99
114
|
# Calculates hash code according to all attributes.
|
100
115
|
# @return [Integer] Hash code
|
101
116
|
def hash
|
102
|
-
[accounts].hash
|
117
|
+
[accounts, request_id].hash
|
103
118
|
end
|
104
119
|
|
105
120
|
# Builds the object from hash
|
@@ -20,15 +20,11 @@ module FuseClient
|
|
20
20
|
|
21
21
|
attr_accessor :owners
|
22
22
|
|
23
|
-
# An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
|
24
|
-
attr_accessor :request_id
|
25
|
-
|
26
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
24
|
def self.attribute_map
|
28
25
|
{
|
29
26
|
:'remote_account_id' => :'remote_account_id',
|
30
|
-
:'owners' => :'owners'
|
31
|
-
:'request_id' => :'request_id'
|
27
|
+
:'owners' => :'owners'
|
32
28
|
}
|
33
29
|
end
|
34
30
|
|
@@ -41,8 +37,7 @@ module FuseClient
|
|
41
37
|
def self.openapi_types
|
42
38
|
{
|
43
39
|
:'remote_account_id' => :'String',
|
44
|
-
:'owners' => :'Array<FinancialConnectionsOwner>'
|
45
|
-
:'request_id' => :'String'
|
40
|
+
:'owners' => :'Array<FinancialConnectionsOwner>'
|
46
41
|
}
|
47
42
|
end
|
48
43
|
|
@@ -76,10 +71,6 @@ module FuseClient
|
|
76
71
|
self.owners = value
|
77
72
|
end
|
78
73
|
end
|
79
|
-
|
80
|
-
if attributes.key?(:'request_id')
|
81
|
-
self.request_id = attributes[:'request_id']
|
82
|
-
end
|
83
74
|
end
|
84
75
|
|
85
76
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -94,10 +85,6 @@ module FuseClient
|
|
94
85
|
invalid_properties.push('invalid value for "owners", owners cannot be nil.')
|
95
86
|
end
|
96
87
|
|
97
|
-
if @request_id.nil?
|
98
|
-
invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
|
99
|
-
end
|
100
|
-
|
101
88
|
invalid_properties
|
102
89
|
end
|
103
90
|
|
@@ -106,7 +93,6 @@ module FuseClient
|
|
106
93
|
def valid?
|
107
94
|
return false if @remote_account_id.nil?
|
108
95
|
return false if @owners.nil?
|
109
|
-
return false if @request_id.nil?
|
110
96
|
true
|
111
97
|
end
|
112
98
|
|
@@ -116,8 +102,7 @@ module FuseClient
|
|
116
102
|
return true if self.equal?(o)
|
117
103
|
self.class == o.class &&
|
118
104
|
remote_account_id == o.remote_account_id &&
|
119
|
-
owners == o.owners
|
120
|
-
request_id == o.request_id
|
105
|
+
owners == o.owners
|
121
106
|
end
|
122
107
|
|
123
108
|
# @see the `==` method
|
@@ -129,7 +114,7 @@ module FuseClient
|
|
129
114
|
# Calculates hash code according to all attributes.
|
130
115
|
# @return [Integer] Hash code
|
131
116
|
def hash
|
132
|
-
[remote_account_id, owners
|
117
|
+
[remote_account_id, owners].hash
|
133
118
|
end
|
134
119
|
|
135
120
|
# Builds the object from hash
|
@@ -21,9 +21,11 @@ module FuseClient
|
|
21
21
|
FUSE = "fuse".freeze
|
22
22
|
SNAPTRADE = "snaptrade".freeze
|
23
23
|
MONO = "mono".freeze
|
24
|
+
TRUELAYER = "truelayer".freeze
|
25
|
+
FINVERSE = "finverse".freeze
|
24
26
|
|
25
27
|
def self.all_vars
|
26
|
-
@all_vars ||= [PLAID, TELLER, MX, FUSE, SNAPTRADE, MONO].freeze
|
28
|
+
@all_vars ||= [PLAID, TELLER, MX, FUSE, SNAPTRADE, MONO, TRUELAYER, FINVERSE].freeze
|
27
29
|
end
|
28
30
|
|
29
31
|
# Builds the enum from string
|
data/lib/fuse_client/version.rb
CHANGED
data/lib/fuse_client.rb
CHANGED
@@ -88,16 +88,19 @@ require 'fuse_client/models/fin_ql_top_merchants_feature_inner'
|
|
88
88
|
require 'fuse_client/models/finance_score'
|
89
89
|
require 'fuse_client/models/financial_connection_data'
|
90
90
|
require 'fuse_client/models/financial_connection_details'
|
91
|
+
require 'fuse_client/models/financial_connection_details_finverse'
|
91
92
|
require 'fuse_client/models/financial_connection_details_flinks'
|
92
93
|
require 'fuse_client/models/financial_connection_details_mono'
|
93
94
|
require 'fuse_client/models/financial_connection_details_mx'
|
94
95
|
require 'fuse_client/models/financial_connection_details_plaid'
|
95
96
|
require 'fuse_client/models/financial_connection_details_snaptrade'
|
96
97
|
require 'fuse_client/models/financial_connection_details_teller'
|
98
|
+
require 'fuse_client/models/financial_connection_details_truelayer'
|
97
99
|
require 'fuse_client/models/financial_connections_account'
|
98
100
|
require 'fuse_client/models/financial_connections_account_balance'
|
99
101
|
require 'fuse_client/models/financial_connections_account_cached_balance'
|
100
102
|
require 'fuse_client/models/financial_connections_account_details'
|
103
|
+
require 'fuse_client/models/financial_connections_account_details_account_number'
|
101
104
|
require 'fuse_client/models/financial_connections_account_details_ach'
|
102
105
|
require 'fuse_client/models/financial_connections_account_institution'
|
103
106
|
require 'fuse_client/models/financial_connections_account_liability'
|
data/spec/models/entity_spec.rb
CHANGED
@@ -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::FinancialConnectionDetailsFinverse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe FuseClient::FinancialConnectionDetailsFinverse do
|
21
|
+
let(:instance) { FuseClient::FinancialConnectionDetailsFinverse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of FinancialConnectionDetailsFinverse' do
|
24
|
+
it 'should create an instance of FinancialConnectionDetailsFinverse' do
|
25
|
+
expect(instance).to be_instance_of(FuseClient::FinancialConnectionDetailsFinverse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "access_token"' 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 "login_identity_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
|
@@ -95,4 +95,16 @@ describe FuseClient::FinancialConnectionDetails do
|
|
95
95
|
end
|
96
96
|
end
|
97
97
|
|
98
|
+
describe 'test attribute "truelayer"' do
|
99
|
+
it 'should work' do
|
100
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
describe 'test attribute "finverse"' do
|
105
|
+
it 'should work' do
|
106
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
98
110
|
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.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for FuseClient::FinancialConnectionDetailsTruelayer
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe FuseClient::FinancialConnectionDetailsTruelayer do
|
21
|
+
let(:instance) { FuseClient::FinancialConnectionDetailsTruelayer.new }
|
22
|
+
|
23
|
+
describe 'test an instance of FinancialConnectionDetailsTruelayer' do
|
24
|
+
it 'should create an instance of FinancialConnectionDetailsTruelayer' do
|
25
|
+
expect(instance).to be_instance_of(FuseClient::FinancialConnectionDetailsTruelayer)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "access_token"' 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
|
+
end
|
@@ -0,0 +1,64 @@
|
|
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::FinancialConnectionsAccountDetailsAccountNumber
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe FuseClient::FinancialConnectionsAccountDetailsAccountNumber do
|
21
|
+
let(:instance) { FuseClient::FinancialConnectionsAccountDetailsAccountNumber.new }
|
22
|
+
|
23
|
+
describe 'test an instance of FinancialConnectionsAccountDetailsAccountNumber' do
|
24
|
+
it 'should create an instance of FinancialConnectionsAccountDetailsAccountNumber' do
|
25
|
+
expect(instance).to be_instance_of(FuseClient::FinancialConnectionsAccountDetailsAccountNumber)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "number"' 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 "sort_code"' 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
|
+
describe 'test attribute "iban"' 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 "swift_bic"' 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
|
+
|
52
|
+
describe 'test attribute "bsb"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "bic"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|