fuse_client 1.0.37 → 1.0.38
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/docs/{SpendPower.md → ConsumerRiskReport.md} +5 -5
- data/docs/{SpendPowerCustomization.md → ConsumerRiskReportCustomization.md} +6 -6
- data/docs/{SpendPowerTimeFrame.md → ConsumerRiskReportTimeFrame.md} +2 -2
- data/docs/{CreateSpendPowerCustomizationRequest.md → CreateConsumerRiskReportCustomizationRequest.md} +5 -5
- data/docs/{CreateSpendPowerCustomizationResponse.md → CreateConsumerRiskReportCustomizationResponse.md} +2 -2
- data/docs/{CreateSpendPowerRequest.md → CreateConsumerRiskReportRequest.md} +4 -4
- data/docs/{DeleteSpendPowerResponse.md → CreateConsumerRiskReportResponse.md} +3 -3
- data/docs/{CreateSpendPowerResponse.md → DeleteConsumerRiskReportResponse.md} +3 -3
- data/docs/EvalConsumerRiskReportRequest.md +22 -0
- data/docs/{EvalSpendPowerRequestEventsInner.md → EvalConsumerRiskReportRequestEventsInner.md} +2 -2
- data/docs/{EvalSpendPowerResponse.md → EvalConsumerRiskReportResponse.md} +2 -2
- data/docs/ExternalTransactionEvent.md +2 -2
- data/docs/FinancialConnectionDetails.md +5 -1
- data/docs/FinancialConnectionDetailsBasiq.md +20 -0
- data/docs/FinancialConnectionDetailsBelvo.md +20 -0
- data/docs/FinancialConnectionsInvestmentSecurityExchange.md +3 -1
- data/docs/FinancialConnectionsOwnerAddressesInnerData.md +2 -0
- data/docs/FuseApi.md +152 -148
- data/docs/{GetSpendPowerCustomizationResponse.md → GetConsumerRiskReportCustomizationResponse.md} +4 -4
- data/docs/{GetSpendPowerResponse.md → GetConsumerRiskReportResponse.md} +4 -4
- data/docs/InAppTransactionEvent.md +1 -1
- data/docs/RiskReportApi.md +165 -0
- data/docs/Transaction.md +1 -1
- data/docs/{UpdateSpendPowerCustomizationRequest.md → UpdateConsumerRiskReportCustomizationRequest.md} +5 -5
- data/docs/{UpdateSpendPowerCustomizationResponse.md → UpdateConsumerRiskReportCustomizationResponse.md} +2 -2
- data/docs/UpdatedBalanceEvent.md +2 -2
- data/fuse_client-1.0.37.gem +0 -0
- data/lib/fuse_client/api/fuse_api.rb +142 -139
- data/lib/fuse_client/api/{spend_power_api.rb → risk_report_api.rb} +39 -39
- data/lib/fuse_client/models/account_subtype.rb +3 -2
- data/lib/fuse_client/models/aggregator.rb +3 -1
- data/lib/fuse_client/models/{spend_power.rb → consumer_risk_report.rb} +4 -6
- data/lib/fuse_client/models/{spend_power_customization.rb → consumer_risk_report_customization.rb} +6 -7
- data/lib/fuse_client/models/{spend_power_time_frame.rb → consumer_risk_report_time_frame.rb} +3 -3
- data/lib/fuse_client/models/{create_spend_power_customization_request.rb → create_consumer_risk_report_customization_request.rb} +6 -6
- data/lib/fuse_client/models/{create_spend_power_customization_response.rb → create_consumer_risk_report_customization_response.rb} +3 -3
- data/lib/fuse_client/models/{create_spend_power_request.rb → create_consumer_risk_report_request.rb} +5 -5
- data/lib/fuse_client/models/{delete_spend_power_response.rb → create_consumer_risk_report_response.rb} +3 -4
- data/lib/fuse_client/models/{create_spend_power_response.rb → delete_consumer_risk_report_response.rb} +3 -4
- data/lib/fuse_client/models/{eval_spend_power_request.rb → eval_consumer_risk_report_request.rb} +5 -5
- data/lib/fuse_client/models/{eval_spend_power_request_events_inner.rb → eval_consumer_risk_report_request_events_inner.rb} +3 -3
- data/lib/fuse_client/models/{eval_spend_power_response.rb → eval_consumer_risk_report_response.rb} +3 -3
- data/lib/fuse_client/models/external_transaction_event.rb +1 -6
- data/lib/fuse_client/models/financial_connection_details.rb +22 -4
- data/lib/fuse_client/models/financial_connection_details_basiq.rb +241 -0
- data/lib/fuse_client/models/financial_connection_details_belvo.rb +236 -0
- data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +14 -4
- data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +11 -1
- data/lib/fuse_client/models/fuse_api_error_code.rb +6 -3
- data/lib/fuse_client/models/get_consumer_risk_report_customization_response.rb +239 -0
- data/lib/fuse_client/models/{get_spend_power_response.rb → get_consumer_risk_report_response.rb} +13 -13
- data/lib/fuse_client/models/in_app_transaction_event.rb +0 -5
- data/lib/fuse_client/models/transaction.rb +1 -1
- data/lib/fuse_client/models/{update_spend_power_customization_request.rb → update_consumer_risk_report_customization_request.rb} +6 -6
- data/lib/fuse_client/models/{update_spend_power_customization_response.rb → update_consumer_risk_report_customization_response.rb} +3 -3
- data/lib/fuse_client/models/updated_balance_event.rb +2 -2
- data/lib/fuse_client/version.rb +1 -1
- data/lib/fuse_client.rb +18 -16
- data/spec/api/fuse_api_spec.rb +37 -36
- data/spec/api/{spend_power_api_spec.rb → risk_report_api_spec.rb} +16 -16
- data/spec/models/{spend_power_customization_spec.rb → consumer_risk_report_customization_spec.rb} +6 -6
- data/spec/models/{spend_power_spec.rb → consumer_risk_report_spec.rb} +6 -6
- data/spec/models/{spend_power_time_frame_spec.rb → consumer_risk_report_time_frame_spec.rb} +6 -6
- data/spec/models/{create_spend_power_customization_request_spec.rb → create_consumer_risk_report_customization_request_spec.rb} +6 -6
- data/spec/models/{create_spend_power_customization_response_spec.rb → create_consumer_risk_report_customization_response_spec.rb} +6 -6
- data/spec/models/{create_spend_power_request_spec.rb → create_consumer_risk_report_request_spec.rb} +6 -6
- data/spec/models/{delete_spend_power_response_spec.rb → create_consumer_risk_report_response_spec.rb} +6 -6
- data/spec/models/{create_spend_power_response_spec.rb → delete_consumer_risk_report_response_spec.rb} +6 -6
- data/spec/models/{eval_spend_power_request_events_inner_spec.rb → eval_consumer_risk_report_request_events_inner_spec.rb} +6 -6
- data/spec/models/{eval_spend_power_request_spec.rb → eval_consumer_risk_report_request_spec.rb} +6 -6
- data/spec/models/{eval_spend_power_response_spec.rb → eval_consumer_risk_report_response_spec.rb} +6 -6
- data/spec/models/financial_connection_details_basiq_spec.rb +40 -0
- data/spec/models/financial_connection_details_belvo_spec.rb +40 -0
- data/spec/models/financial_connection_details_spec.rb +12 -0
- data/spec/models/financial_connections_investment_security_exchange_spec.rb +6 -0
- data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +6 -0
- data/spec/models/{get_spend_power_customization_response_spec.rb → get_consumer_risk_report_customization_response_spec.rb} +7 -7
- data/spec/models/{get_spend_power_response_spec.rb → get_consumer_risk_report_response_spec.rb} +7 -7
- data/spec/models/{update_spend_power_customization_request_spec.rb → update_consumer_risk_report_customization_request_spec.rb} +6 -6
- data/spec/models/{update_spend_power_customization_response_spec.rb → update_consumer_risk_report_customization_response_spec.rb} +6 -6
- metadata +74 -65
- data/docs/EvalSpendPowerRequest.md +0 -22
- data/docs/SpendPowerApi.md +0 -165
- data/lib/fuse_client/models/get_spend_power_customization_response.rb +0 -239
@@ -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 Basiq
|
18
|
+
class FinancialConnectionDetailsBasiq
|
19
|
+
# The identifier of the user for Basiq.
|
20
|
+
attr_accessor :user_id
|
21
|
+
|
22
|
+
# The identifier of the connection for Basiq.
|
23
|
+
attr_accessor :connection_id
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'user_id' => :'user_id',
|
29
|
+
:'connection_id' => :'connection_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
|
+
:'user_id' => :'String',
|
42
|
+
:'connection_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::FinancialConnectionDetailsBasiq` 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::FinancialConnectionDetailsBasiq`. 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?(:'user_id')
|
68
|
+
self.user_id = attributes[:'user_id']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.key?(:'connection_id')
|
72
|
+
self.connection_id = attributes[:'connection_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 @user_id.nil?
|
81
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
82
|
+
end
|
83
|
+
|
84
|
+
if @connection_id.nil?
|
85
|
+
invalid_properties.push('invalid value for "connection_id", connection_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 @user_id.nil?
|
95
|
+
return false if @connection_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
|
+
user_id == o.user_id &&
|
105
|
+
connection_id == o.connection_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
|
+
[user_id, connection_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
|
@@ -0,0 +1,236 @@
|
|
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 Belvo
|
18
|
+
class FinancialConnectionDetailsBelvo
|
19
|
+
# The identifier of the link for Belvo.
|
20
|
+
attr_accessor :link_id
|
21
|
+
|
22
|
+
# The identifier of the institution for Belvo.
|
23
|
+
attr_accessor :institution
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'link_id' => :'link_id',
|
29
|
+
:'institution' => :'institution'
|
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
|
+
:'link_id' => :'String',
|
42
|
+
:'institution' => :'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::FinancialConnectionDetailsBelvo` 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::FinancialConnectionDetailsBelvo`. 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?(:'link_id')
|
68
|
+
self.link_id = attributes[:'link_id']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.key?(:'institution')
|
72
|
+
self.institution = attributes[:'institution']
|
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 @link_id.nil?
|
81
|
+
invalid_properties.push('invalid value for "link_id", link_id cannot be nil.')
|
82
|
+
end
|
83
|
+
|
84
|
+
invalid_properties
|
85
|
+
end
|
86
|
+
|
87
|
+
# Check to see if the all the properties in the model are valid
|
88
|
+
# @return true if the model is valid
|
89
|
+
def valid?
|
90
|
+
return false if @link_id.nil?
|
91
|
+
true
|
92
|
+
end
|
93
|
+
|
94
|
+
# Checks equality by comparing each attribute.
|
95
|
+
# @param [Object] Object to be compared
|
96
|
+
def ==(o)
|
97
|
+
return true if self.equal?(o)
|
98
|
+
self.class == o.class &&
|
99
|
+
link_id == o.link_id &&
|
100
|
+
institution == o.institution
|
101
|
+
end
|
102
|
+
|
103
|
+
# @see the `==` method
|
104
|
+
# @param [Object] Object to be compared
|
105
|
+
def eql?(o)
|
106
|
+
self == o
|
107
|
+
end
|
108
|
+
|
109
|
+
# Calculates hash code according to all attributes.
|
110
|
+
# @return [Integer] Hash code
|
111
|
+
def hash
|
112
|
+
[link_id, institution].hash
|
113
|
+
end
|
114
|
+
|
115
|
+
# Builds the object from hash
|
116
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
117
|
+
# @return [Object] Returns the model itself
|
118
|
+
def self.build_from_hash(attributes)
|
119
|
+
new.build_from_hash(attributes)
|
120
|
+
end
|
121
|
+
|
122
|
+
# Builds the object from hash
|
123
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
124
|
+
# @return [Object] Returns the model itself
|
125
|
+
def build_from_hash(attributes)
|
126
|
+
return nil unless attributes.is_a?(Hash)
|
127
|
+
attributes = attributes.transform_keys(&:to_sym)
|
128
|
+
self.class.openapi_types.each_pair do |key, type|
|
129
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
130
|
+
self.send("#{key}=", nil)
|
131
|
+
elsif type =~ /\AArray<(.*)>/i
|
132
|
+
# check to ensure the input is an array given that the attribute
|
133
|
+
# is documented as an array but the input is not
|
134
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
135
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
136
|
+
end
|
137
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
138
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
self
|
143
|
+
end
|
144
|
+
|
145
|
+
# Deserializes the data based on type
|
146
|
+
# @param string type Data type
|
147
|
+
# @param string value Value to be deserialized
|
148
|
+
# @return [Object] Deserialized data
|
149
|
+
def _deserialize(type, value)
|
150
|
+
case type.to_sym
|
151
|
+
when :Time
|
152
|
+
Time.parse(value)
|
153
|
+
when :Date
|
154
|
+
Date.parse(value)
|
155
|
+
when :String
|
156
|
+
value.to_s
|
157
|
+
when :Integer
|
158
|
+
value.to_i
|
159
|
+
when :Float
|
160
|
+
value.to_f
|
161
|
+
when :Boolean
|
162
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
163
|
+
true
|
164
|
+
else
|
165
|
+
false
|
166
|
+
end
|
167
|
+
when :Object
|
168
|
+
# generic object (usually a Hash), return directly
|
169
|
+
value
|
170
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
171
|
+
inner_type = Regexp.last_match[:inner_type]
|
172
|
+
value.map { |v| _deserialize(inner_type, v) }
|
173
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
174
|
+
k_type = Regexp.last_match[:k_type]
|
175
|
+
v_type = Regexp.last_match[:v_type]
|
176
|
+
{}.tap do |hash|
|
177
|
+
value.each do |k, v|
|
178
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
else # model
|
182
|
+
# models (e.g. Pet) or oneOf
|
183
|
+
klass = FuseClient.const_get(type)
|
184
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
# Returns the string representation of the object
|
189
|
+
# @return [String] String presentation of the object
|
190
|
+
def to_s
|
191
|
+
to_hash.to_s
|
192
|
+
end
|
193
|
+
|
194
|
+
# to_body is an alias to to_hash (backward compatibility)
|
195
|
+
# @return [Hash] Returns the object in the form of hash
|
196
|
+
def to_body
|
197
|
+
to_hash
|
198
|
+
end
|
199
|
+
|
200
|
+
# Returns the object in the form of hash
|
201
|
+
# @return [Hash] Returns the object in the form of hash
|
202
|
+
def to_hash
|
203
|
+
hash = {}
|
204
|
+
self.class.attribute_map.each_pair do |attr, param|
|
205
|
+
value = self.send(attr)
|
206
|
+
if value.nil?
|
207
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
208
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
209
|
+
end
|
210
|
+
|
211
|
+
hash[param] = _to_hash(value)
|
212
|
+
end
|
213
|
+
hash
|
214
|
+
end
|
215
|
+
|
216
|
+
# Outputs non-array value in the form of hash
|
217
|
+
# For object, use to_hash. Otherwise, just return the value
|
218
|
+
# @param [Object] value Any valid value
|
219
|
+
# @return [Hash] Returns the value in the form of hash
|
220
|
+
def _to_hash(value)
|
221
|
+
if value.is_a?(Array)
|
222
|
+
value.compact.map { |v| _to_hash(v) }
|
223
|
+
elsif value.is_a?(Hash)
|
224
|
+
{}.tap do |hash|
|
225
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
226
|
+
end
|
227
|
+
elsif value.respond_to? :to_hash
|
228
|
+
value.to_hash
|
229
|
+
else
|
230
|
+
value
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
end
|
235
|
+
|
236
|
+
end
|
@@ -18,10 +18,14 @@ module FuseClient
|
|
18
18
|
# The Market Identifier Code (MIC) associated with the specific financial market or exchange where the security is traded.
|
19
19
|
attr_accessor :mic_code
|
20
20
|
|
21
|
+
# The suffix of the security's ticker symbol.
|
22
|
+
attr_accessor :suffix
|
23
|
+
|
21
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
25
|
def self.attribute_map
|
23
26
|
{
|
24
|
-
:'mic_code' => :'mic_code'
|
27
|
+
:'mic_code' => :'mic_code',
|
28
|
+
:'suffix' => :'suffix'
|
25
29
|
}
|
26
30
|
end
|
27
31
|
|
@@ -33,7 +37,8 @@ module FuseClient
|
|
33
37
|
# Attribute type mapping.
|
34
38
|
def self.openapi_types
|
35
39
|
{
|
36
|
-
:'mic_code' => :'String'
|
40
|
+
:'mic_code' => :'String',
|
41
|
+
:'suffix' => :'String'
|
37
42
|
}
|
38
43
|
end
|
39
44
|
|
@@ -61,6 +66,10 @@ module FuseClient
|
|
61
66
|
if attributes.key?(:'mic_code')
|
62
67
|
self.mic_code = attributes[:'mic_code']
|
63
68
|
end
|
69
|
+
|
70
|
+
if attributes.key?(:'suffix')
|
71
|
+
self.suffix = attributes[:'suffix']
|
72
|
+
end
|
64
73
|
end
|
65
74
|
|
66
75
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -81,7 +90,8 @@ module FuseClient
|
|
81
90
|
def ==(o)
|
82
91
|
return true if self.equal?(o)
|
83
92
|
self.class == o.class &&
|
84
|
-
mic_code == o.mic_code
|
93
|
+
mic_code == o.mic_code &&
|
94
|
+
suffix == o.suffix
|
85
95
|
end
|
86
96
|
|
87
97
|
# @see the `==` method
|
@@ -93,7 +103,7 @@ module FuseClient
|
|
93
103
|
# Calculates hash code according to all attributes.
|
94
104
|
# @return [Integer] Hash code
|
95
105
|
def hash
|
96
|
-
[mic_code].hash
|
106
|
+
[mic_code, suffix].hash
|
97
107
|
end
|
98
108
|
|
99
109
|
# Builds the object from hash
|
@@ -15,6 +15,9 @@ require 'time'
|
|
15
15
|
|
16
16
|
module FuseClient
|
17
17
|
class FinancialConnectionsOwnerAddressesInnerData
|
18
|
+
# Full address of the owner
|
19
|
+
attr_accessor :full_address
|
20
|
+
|
18
21
|
# City of the address
|
19
22
|
attr_accessor :city
|
20
23
|
|
@@ -33,6 +36,7 @@ module FuseClient
|
|
33
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
37
|
def self.attribute_map
|
35
38
|
{
|
39
|
+
:'full_address' => :'full_address',
|
36
40
|
:'city' => :'city',
|
37
41
|
:'country' => :'country',
|
38
42
|
:'postal_code' => :'postal_code',
|
@@ -49,6 +53,7 @@ module FuseClient
|
|
49
53
|
# Attribute type mapping.
|
50
54
|
def self.openapi_types
|
51
55
|
{
|
56
|
+
:'full_address' => :'String',
|
52
57
|
:'city' => :'String',
|
53
58
|
:'country' => :'String',
|
54
59
|
:'postal_code' => :'String',
|
@@ -78,6 +83,10 @@ module FuseClient
|
|
78
83
|
h[k.to_sym] = v
|
79
84
|
}
|
80
85
|
|
86
|
+
if attributes.key?(:'full_address')
|
87
|
+
self.full_address = attributes[:'full_address']
|
88
|
+
end
|
89
|
+
|
81
90
|
if attributes.key?(:'city')
|
82
91
|
self.city = attributes[:'city']
|
83
92
|
end
|
@@ -117,6 +126,7 @@ module FuseClient
|
|
117
126
|
def ==(o)
|
118
127
|
return true if self.equal?(o)
|
119
128
|
self.class == o.class &&
|
129
|
+
full_address == o.full_address &&
|
120
130
|
city == o.city &&
|
121
131
|
country == o.country &&
|
122
132
|
postal_code == o.postal_code &&
|
@@ -133,7 +143,7 @@ module FuseClient
|
|
133
143
|
# Calculates hash code according to all attributes.
|
134
144
|
# @return [Integer] Hash code
|
135
145
|
def hash
|
136
|
-
[city, country, postal_code, region, street].hash
|
146
|
+
[full_address, city, country, postal_code, region, street].hash
|
137
147
|
end
|
138
148
|
|
139
149
|
# Builds the object from hash
|
@@ -25,8 +25,8 @@ module FuseClient
|
|
25
25
|
ENTITY_NOT_FOUND = "entity_not_found".freeze
|
26
26
|
SESSION_NOT_FOUND = "session_not_found".freeze
|
27
27
|
FINANCIAL_INSTITUTION_NOT_FOUND = "financial_institution_not_found".freeze
|
28
|
-
|
29
|
-
|
28
|
+
CONSUMER_RISK_REPORT_NOT_FOUND = "consumer_risk_report_not_found".freeze
|
29
|
+
CONSUMER_RISK_REPORT_CUSTOMIZATION_NOT_FOUND = "consumer_risk_report_customization_not_found".freeze
|
30
30
|
MISSING_ACCESS_TOKEN = "missing_access_token".freeze
|
31
31
|
MISSING_PLAID_CLIENT_ID_HEADER = "missing_plaid_client_id_header".freeze
|
32
32
|
MISSING_PLAID_SECRET_HEADER = "missing_plaid_secret_header".freeze
|
@@ -51,6 +51,9 @@ module FuseClient
|
|
51
51
|
MISSING_FINVERSE_CLIENT_ID_HEADER = "missing_finverse_client_id_header".freeze
|
52
52
|
MISSING_FINVERSE_CLIENT_SECRET_HEADER = "missing_finverse_client_secret_header".freeze
|
53
53
|
MISSING_FINVERSE_REDIRECT_URI_HEADER = "missing_finverse_redirect_uri_header".freeze
|
54
|
+
MISSING_BASIQ_API_KEY_HEADER = "missing_basiq_api_key_header".freeze
|
55
|
+
MISSING_BELVO_SECRET_ID_HEADER = "missing_belvo_secret_id_header".freeze
|
56
|
+
MISSING_BELVO_SECRET_PASSWORD_HEADER = "missing_belvo_secret_password_header".freeze
|
54
57
|
MISSING_FUSE_VERIFICATION_HEADER = "missing_fuse_verification_header".freeze
|
55
58
|
AGGREGATOR_ERROR = "aggregator_error".freeze
|
56
59
|
AGGREGATOR_DISCONNECTED_ERROR = "aggregator_disconnected_error".freeze
|
@@ -66,7 +69,7 @@ module FuseClient
|
|
66
69
|
OTHER = "other".freeze
|
67
70
|
|
68
71
|
def self.all_vars
|
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,
|
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
|
70
73
|
end
|
71
74
|
|
72
75
|
# Builds the enum from string
|