fuse_client 1.0.33 → 1.0.34
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 +2 -2
- data/README.md +6 -1
- data/docs/AddAccountEventsRequest.md +18 -0
- data/docs/AddAccountEventsRequestEventsInner.md +51 -0
- data/docs/{AddSpendPowerTransactionResponse.md → AddAccountEventsResponse.md} +2 -2
- data/docs/AssetReportTransaction.md +1 -1
- data/docs/CreateSessionRequest.md +1 -1
- data/docs/CreateSpendPowerCustomizationRequest.md +22 -0
- data/docs/CreateSpendPowerRequest.md +5 -5
- data/docs/CreateSpendPowerResponse.md +1 -1
- data/docs/DeleteSpendPowerResponse.md +2 -2
- data/docs/EnrichTransactionsRequest.md +18 -0
- data/docs/EnrichTransactionsResponse.md +18 -0
- data/docs/EnrichedTransaction.md +46 -0
- data/docs/EnrichedTransactionLogo.md +18 -0
- data/docs/EvalSpendPowerRequest.md +22 -0
- data/docs/EvalSpendPowerRequestEventsInner.md +20 -0
- data/docs/EvalSpendPowerResponse.md +20 -0
- data/docs/ExternalTransactionEvent.md +36 -0
- data/docs/ExternalTransactionEventStatus.md +15 -0
- data/docs/FinancialConnectionsAccountBalance.md +2 -2
- data/docs/FinancialConnectionsAccountCachedBalance.md +2 -2
- data/docs/FinancialConnectionsHolding.md +3 -3
- data/docs/FinancialConnectionsInvestmentSecurity.md +1 -1
- data/docs/FinancialConnectionsInvestmentTransaction.md +5 -3
- data/docs/FinancialConnectionsInvestmentTransactionSubtype.md +15 -0
- data/docs/FuseApi.md +193 -35
- data/docs/GetFinanceScoreResponse.md +20 -0
- data/docs/GetInvestmentTransactionsRequest.md +4 -4
- data/docs/GetSpendPowerCustomizationResponse.md +20 -0
- data/docs/InAppTransactionEvent.md +34 -0
- data/docs/InAppTransactionEventStatus.md +15 -0
- data/docs/SpendPower.md +6 -6
- data/docs/SpendPowerApi.md +87 -44
- data/docs/SpendPowerCustomization.md +5 -3
- data/docs/SpendPowerTimeFrame.md +15 -0
- data/docs/Transaction.md +1 -1
- data/docs/TransactionCategory.md +20 -0
- data/docs/TransactionCategoryDetailed.md +15 -0
- data/docs/TransactionCategoryPrimary.md +15 -0
- data/docs/TransactionEventType.md +15 -0
- data/docs/TransactionToEnrich.md +26 -0
- data/docs/UpdateSpendPowerCustomizationRequest.md +22 -0
- data/docs/UpdatedBalanceEvent.md +26 -0
- data/lib/fuse_client/api/fuse_api.rb +176 -31
- data/lib/fuse_client/api/spend_power_api.rb +78 -52
- data/lib/fuse_client/models/add_account_events_request.rb +254 -0
- data/lib/fuse_client/models/add_account_events_request_events_inner.rb +106 -0
- data/lib/fuse_client/models/{add_spend_power_transaction_response.rb → add_account_events_response.rb} +3 -3
- data/lib/fuse_client/models/asset_report_transaction.rb +1 -1
- data/lib/fuse_client/models/country_code.rb +2 -1
- data/lib/fuse_client/models/create_session_request.rb +1 -1
- data/lib/fuse_client/models/create_spend_power_customization_request.rb +314 -0
- data/lib/fuse_client/models/create_spend_power_request.rb +22 -22
- data/lib/fuse_client/models/create_spend_power_response.rb +1 -1
- data/lib/fuse_client/models/delete_spend_power_response.rb +11 -10
- data/lib/fuse_client/models/enrich_transactions_request.rb +226 -0
- data/lib/fuse_client/models/enrich_transactions_response.rb +222 -0
- data/lib/fuse_client/models/enriched_transaction.rb +397 -0
- data/lib/fuse_client/models/enriched_transaction_logo.rb +220 -0
- data/lib/fuse_client/models/eval_spend_power_request.rb +296 -0
- data/lib/fuse_client/models/eval_spend_power_request_events_inner.rb +239 -0
- data/lib/fuse_client/models/eval_spend_power_response.rb +230 -0
- data/lib/fuse_client/models/external_transaction_event.rb +384 -0
- data/lib/fuse_client/models/external_transaction_event_status.rb +40 -0
- data/lib/fuse_client/models/financial_connections_account_balance.rb +2 -2
- data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +2 -2
- data/lib/fuse_client/models/financial_connections_holding.rb +3 -3
- data/lib/fuse_client/models/financial_connections_investment_security.rb +1 -1
- data/lib/fuse_client/models/financial_connections_investment_transaction.rb +13 -4
- data/lib/fuse_client/models/financial_connections_investment_transaction_subtype.rb +87 -0
- data/lib/fuse_client/models/fuse_api_error_code.rb +3 -1
- data/lib/fuse_client/models/get_finance_score_response.rb +240 -0
- data/lib/fuse_client/models/get_investment_transactions_request.rb +37 -9
- data/lib/fuse_client/models/get_spend_power_customization_response.rb +239 -0
- data/lib/fuse_client/models/in_app_transaction_event.rb +364 -0
- data/lib/fuse_client/models/in_app_transaction_event_status.rb +41 -0
- data/lib/fuse_client/models/spend_power.rb +18 -18
- data/lib/fuse_client/models/spend_power_customization.rb +54 -14
- data/lib/fuse_client/models/spend_power_time_frame.rb +41 -0
- data/lib/fuse_client/models/transaction.rb +1 -1
- data/lib/fuse_client/models/transaction_category.rb +260 -0
- data/lib/fuse_client/models/transaction_category_detailed.rb +135 -0
- data/lib/fuse_client/models/transaction_category_primary.rb +59 -0
- data/lib/fuse_client/models/transaction_event_type.rb +65 -0
- data/lib/fuse_client/models/{add_spend_power_transaction_request.rb → transaction_to_enrich.rb} +47 -27
- data/lib/fuse_client/models/update_spend_power_customization_request.rb +291 -0
- data/lib/fuse_client/models/updated_balance_event.rb +308 -0
- data/lib/fuse_client/version.rb +1 -1
- data/lib/fuse_client.rb +26 -2
- data/spec/api/fuse_api_spec.rb +33 -7
- data/spec/api/spend_power_api_spec.rb +14 -17
- data/spec/models/add_account_events_request_events_inner_spec.rb +31 -0
- data/spec/models/add_account_events_request_spec.rb +34 -0
- data/spec/models/{add_spend_power_transaction_response_spec.rb → add_account_events_response_spec.rb} +6 -6
- data/spec/models/create_spend_power_customization_request_spec.rb +46 -0
- data/spec/models/create_spend_power_request_spec.rb +2 -2
- data/spec/models/delete_spend_power_response_spec.rb +1 -1
- data/spec/models/enrich_transactions_request_spec.rb +34 -0
- data/spec/models/enrich_transactions_response_spec.rb +34 -0
- data/spec/models/enriched_transaction_logo_spec.rb +34 -0
- data/spec/models/enriched_transaction_spec.rb +122 -0
- data/spec/models/eval_spend_power_request_events_inner_spec.rb +40 -0
- data/spec/models/eval_spend_power_request_spec.rb +46 -0
- data/spec/models/eval_spend_power_response_spec.rb +40 -0
- data/spec/models/external_transaction_event_spec.rb +92 -0
- data/spec/models/external_transaction_event_status_spec.rb +28 -0
- data/spec/models/financial_connections_investment_transaction_spec.rb +6 -0
- data/spec/models/financial_connections_investment_transaction_subtype_spec.rb +28 -0
- data/spec/models/get_finance_score_response_spec.rb +40 -0
- data/spec/models/get_spend_power_customization_response_spec.rb +40 -0
- data/spec/models/in_app_transaction_event_spec.rb +86 -0
- data/spec/models/in_app_transaction_event_status_spec.rb +28 -0
- data/spec/models/spend_power_customization_spec.rb +6 -4
- data/spec/models/spend_power_spec.rb +1 -1
- data/spec/models/spend_power_time_frame_spec.rb +28 -0
- data/spec/models/transaction_category_detailed_spec.rb +28 -0
- data/spec/models/transaction_category_primary_spec.rb +28 -0
- data/spec/models/transaction_category_spec.rb +40 -0
- data/spec/models/transaction_event_type_spec.rb +28 -0
- data/spec/models/{add_spend_power_transaction_request_spec.rb → transaction_to_enrich_spec.rb} +23 -11
- data/spec/models/update_spend_power_customization_request_spec.rb +46 -0
- data/spec/models/updated_balance_event_spec.rb +62 -0
- metadata +106 -10
- data/docs/AddSpendPowerTransactionRequest.md +0 -22
@@ -0,0 +1,308 @@
|
|
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.5.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module FuseClient
|
17
|
+
class UpdatedBalanceEvent
|
18
|
+
attr_accessor :event_type
|
19
|
+
|
20
|
+
# The current balance of the account factoring in pending transactions. Use positive values to represent money going out and negative to represent money going in.
|
21
|
+
attr_accessor :available
|
22
|
+
|
23
|
+
# The current balance of the account without factoring in pending transactions. Use positive values to represent money going out and negative to represent money going in.
|
24
|
+
attr_accessor :current
|
25
|
+
|
26
|
+
# The ISO-4217 currency code.
|
27
|
+
attr_accessor :iso_currency_code
|
28
|
+
|
29
|
+
# Datetime that the balance is accurate for In ISO-8601 format
|
30
|
+
attr_accessor :timestamp
|
31
|
+
|
32
|
+
class EnumAttributeValidator
|
33
|
+
attr_reader :datatype
|
34
|
+
attr_reader :allowable_values
|
35
|
+
|
36
|
+
def initialize(datatype, allowable_values)
|
37
|
+
@allowable_values = allowable_values.map do |value|
|
38
|
+
case datatype.to_s
|
39
|
+
when /Integer/i
|
40
|
+
value.to_i
|
41
|
+
when /Float/i
|
42
|
+
value.to_f
|
43
|
+
else
|
44
|
+
value
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def valid?(value)
|
50
|
+
!value || allowable_values.include?(value)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
55
|
+
def self.attribute_map
|
56
|
+
{
|
57
|
+
:'event_type' => :'event_type',
|
58
|
+
:'available' => :'available',
|
59
|
+
:'current' => :'current',
|
60
|
+
:'iso_currency_code' => :'iso_currency_code',
|
61
|
+
:'timestamp' => :'timestamp'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# Returns all the JSON keys this model knows about
|
66
|
+
def self.acceptable_attributes
|
67
|
+
attribute_map.values
|
68
|
+
end
|
69
|
+
|
70
|
+
# Attribute type mapping.
|
71
|
+
def self.openapi_types
|
72
|
+
{
|
73
|
+
:'event_type' => :'String',
|
74
|
+
:'available' => :'Float',
|
75
|
+
:'current' => :'Float',
|
76
|
+
:'iso_currency_code' => :'String',
|
77
|
+
:'timestamp' => :'String'
|
78
|
+
}
|
79
|
+
end
|
80
|
+
|
81
|
+
# List of attributes with nullable: true
|
82
|
+
def self.openapi_nullable
|
83
|
+
Set.new([
|
84
|
+
])
|
85
|
+
end
|
86
|
+
|
87
|
+
# Initializes the object
|
88
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
89
|
+
def initialize(attributes = {})
|
90
|
+
if (!attributes.is_a?(Hash))
|
91
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::UpdatedBalanceEvent` initialize method"
|
92
|
+
end
|
93
|
+
|
94
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
95
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
96
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
97
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::UpdatedBalanceEvent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
98
|
+
end
|
99
|
+
h[k.to_sym] = v
|
100
|
+
}
|
101
|
+
|
102
|
+
if attributes.key?(:'event_type')
|
103
|
+
self.event_type = attributes[:'event_type']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.key?(:'available')
|
107
|
+
self.available = attributes[:'available']
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes.key?(:'current')
|
111
|
+
self.current = attributes[:'current']
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes.key?(:'iso_currency_code')
|
115
|
+
self.iso_currency_code = attributes[:'iso_currency_code']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes.key?(:'timestamp')
|
119
|
+
self.timestamp = attributes[:'timestamp']
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
124
|
+
# @return Array for valid properties with the reasons
|
125
|
+
def list_invalid_properties
|
126
|
+
invalid_properties = Array.new
|
127
|
+
if @event_type.nil?
|
128
|
+
invalid_properties.push('invalid value for "event_type", event_type cannot be nil.')
|
129
|
+
end
|
130
|
+
|
131
|
+
if @iso_currency_code.nil?
|
132
|
+
invalid_properties.push('invalid value for "iso_currency_code", iso_currency_code cannot be nil.')
|
133
|
+
end
|
134
|
+
|
135
|
+
if @timestamp.nil?
|
136
|
+
invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.')
|
137
|
+
end
|
138
|
+
|
139
|
+
invalid_properties
|
140
|
+
end
|
141
|
+
|
142
|
+
# Check to see if the all the properties in the model are valid
|
143
|
+
# @return true if the model is valid
|
144
|
+
def valid?
|
145
|
+
return false if @event_type.nil?
|
146
|
+
event_type_validator = EnumAttributeValidator.new('String', ["updated_balance"])
|
147
|
+
return false unless event_type_validator.valid?(@event_type)
|
148
|
+
return false if @iso_currency_code.nil?
|
149
|
+
return false if @timestamp.nil?
|
150
|
+
true
|
151
|
+
end
|
152
|
+
|
153
|
+
# Custom attribute writer method checking allowed values (enum).
|
154
|
+
# @param [Object] event_type Object to be assigned
|
155
|
+
def event_type=(event_type)
|
156
|
+
validator = EnumAttributeValidator.new('String', ["updated_balance"])
|
157
|
+
unless validator.valid?(event_type)
|
158
|
+
fail ArgumentError, "invalid value for \"event_type\", must be one of #{validator.allowable_values}."
|
159
|
+
end
|
160
|
+
@event_type = event_type
|
161
|
+
end
|
162
|
+
|
163
|
+
# Checks equality by comparing each attribute.
|
164
|
+
# @param [Object] Object to be compared
|
165
|
+
def ==(o)
|
166
|
+
return true if self.equal?(o)
|
167
|
+
self.class == o.class &&
|
168
|
+
event_type == o.event_type &&
|
169
|
+
available == o.available &&
|
170
|
+
current == o.current &&
|
171
|
+
iso_currency_code == o.iso_currency_code &&
|
172
|
+
timestamp == o.timestamp
|
173
|
+
end
|
174
|
+
|
175
|
+
# @see the `==` method
|
176
|
+
# @param [Object] Object to be compared
|
177
|
+
def eql?(o)
|
178
|
+
self == o
|
179
|
+
end
|
180
|
+
|
181
|
+
# Calculates hash code according to all attributes.
|
182
|
+
# @return [Integer] Hash code
|
183
|
+
def hash
|
184
|
+
[event_type, available, current, iso_currency_code, timestamp].hash
|
185
|
+
end
|
186
|
+
|
187
|
+
# Builds the object from hash
|
188
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
189
|
+
# @return [Object] Returns the model itself
|
190
|
+
def self.build_from_hash(attributes)
|
191
|
+
new.build_from_hash(attributes)
|
192
|
+
end
|
193
|
+
|
194
|
+
# Builds the object from hash
|
195
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
196
|
+
# @return [Object] Returns the model itself
|
197
|
+
def build_from_hash(attributes)
|
198
|
+
return nil unless attributes.is_a?(Hash)
|
199
|
+
attributes = attributes.transform_keys(&:to_sym)
|
200
|
+
self.class.openapi_types.each_pair do |key, type|
|
201
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
202
|
+
self.send("#{key}=", nil)
|
203
|
+
elsif type =~ /\AArray<(.*)>/i
|
204
|
+
# check to ensure the input is an array given that the attribute
|
205
|
+
# is documented as an array but the input is not
|
206
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
207
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
208
|
+
end
|
209
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
210
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
self
|
215
|
+
end
|
216
|
+
|
217
|
+
# Deserializes the data based on type
|
218
|
+
# @param string type Data type
|
219
|
+
# @param string value Value to be deserialized
|
220
|
+
# @return [Object] Deserialized data
|
221
|
+
def _deserialize(type, value)
|
222
|
+
case type.to_sym
|
223
|
+
when :Time
|
224
|
+
Time.parse(value)
|
225
|
+
when :Date
|
226
|
+
Date.parse(value)
|
227
|
+
when :String
|
228
|
+
value.to_s
|
229
|
+
when :Integer
|
230
|
+
value.to_i
|
231
|
+
when :Float
|
232
|
+
value.to_f
|
233
|
+
when :Boolean
|
234
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
235
|
+
true
|
236
|
+
else
|
237
|
+
false
|
238
|
+
end
|
239
|
+
when :Object
|
240
|
+
# generic object (usually a Hash), return directly
|
241
|
+
value
|
242
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
243
|
+
inner_type = Regexp.last_match[:inner_type]
|
244
|
+
value.map { |v| _deserialize(inner_type, v) }
|
245
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
246
|
+
k_type = Regexp.last_match[:k_type]
|
247
|
+
v_type = Regexp.last_match[:v_type]
|
248
|
+
{}.tap do |hash|
|
249
|
+
value.each do |k, v|
|
250
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
251
|
+
end
|
252
|
+
end
|
253
|
+
else # model
|
254
|
+
# models (e.g. Pet) or oneOf
|
255
|
+
klass = FuseClient.const_get(type)
|
256
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
257
|
+
end
|
258
|
+
end
|
259
|
+
|
260
|
+
# Returns the string representation of the object
|
261
|
+
# @return [String] String presentation of the object
|
262
|
+
def to_s
|
263
|
+
to_hash.to_s
|
264
|
+
end
|
265
|
+
|
266
|
+
# to_body is an alias to to_hash (backward compatibility)
|
267
|
+
# @return [Hash] Returns the object in the form of hash
|
268
|
+
def to_body
|
269
|
+
to_hash
|
270
|
+
end
|
271
|
+
|
272
|
+
# Returns the object in the form of hash
|
273
|
+
# @return [Hash] Returns the object in the form of hash
|
274
|
+
def to_hash
|
275
|
+
hash = {}
|
276
|
+
self.class.attribute_map.each_pair do |attr, param|
|
277
|
+
value = self.send(attr)
|
278
|
+
if value.nil?
|
279
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
280
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
281
|
+
end
|
282
|
+
|
283
|
+
hash[param] = _to_hash(value)
|
284
|
+
end
|
285
|
+
hash
|
286
|
+
end
|
287
|
+
|
288
|
+
# Outputs non-array value in the form of hash
|
289
|
+
# For object, use to_hash. Otherwise, just return the value
|
290
|
+
# @param [Object] value Any valid value
|
291
|
+
# @return [Hash] Returns the value in the form of hash
|
292
|
+
def _to_hash(value)
|
293
|
+
if value.is_a?(Array)
|
294
|
+
value.compact.map { |v| _to_hash(v) }
|
295
|
+
elsif value.is_a?(Hash)
|
296
|
+
{}.tap do |hash|
|
297
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
298
|
+
end
|
299
|
+
elsif value.respond_to? :to_hash
|
300
|
+
value.to_hash
|
301
|
+
else
|
302
|
+
value
|
303
|
+
end
|
304
|
+
end
|
305
|
+
|
306
|
+
end
|
307
|
+
|
308
|
+
end
|
data/lib/fuse_client/version.rb
CHANGED
data/lib/fuse_client.rb
CHANGED
@@ -19,8 +19,9 @@ require 'fuse_client/configuration'
|
|
19
19
|
# Models
|
20
20
|
require 'fuse_client/models/account_subtype'
|
21
21
|
require 'fuse_client/models/account_type'
|
22
|
-
require 'fuse_client/models/
|
23
|
-
require 'fuse_client/models/
|
22
|
+
require 'fuse_client/models/add_account_events_request'
|
23
|
+
require 'fuse_client/models/add_account_events_request_events_inner'
|
24
|
+
require 'fuse_client/models/add_account_events_response'
|
24
25
|
require 'fuse_client/models/aggregator'
|
25
26
|
require 'fuse_client/models/asset_report'
|
26
27
|
require 'fuse_client/models/asset_report_accounts_inner'
|
@@ -41,15 +42,25 @@ require 'fuse_client/models/create_link_token_request_teller_config'
|
|
41
42
|
require 'fuse_client/models/create_link_token_response'
|
42
43
|
require 'fuse_client/models/create_session_request'
|
43
44
|
require 'fuse_client/models/create_session_response'
|
45
|
+
require 'fuse_client/models/create_spend_power_customization_request'
|
44
46
|
require 'fuse_client/models/create_spend_power_customization_response'
|
45
47
|
require 'fuse_client/models/create_spend_power_request'
|
46
48
|
require 'fuse_client/models/create_spend_power_response'
|
47
49
|
require 'fuse_client/models/currency'
|
48
50
|
require 'fuse_client/models/delete_financial_connection_response'
|
49
51
|
require 'fuse_client/models/delete_spend_power_response'
|
52
|
+
require 'fuse_client/models/enrich_transactions_request'
|
53
|
+
require 'fuse_client/models/enrich_transactions_response'
|
54
|
+
require 'fuse_client/models/enriched_transaction'
|
55
|
+
require 'fuse_client/models/enriched_transaction_logo'
|
50
56
|
require 'fuse_client/models/entity'
|
57
|
+
require 'fuse_client/models/eval_spend_power_request'
|
58
|
+
require 'fuse_client/models/eval_spend_power_request_events_inner'
|
59
|
+
require 'fuse_client/models/eval_spend_power_response'
|
51
60
|
require 'fuse_client/models/exchange_financial_connections_public_token_request'
|
52
61
|
require 'fuse_client/models/exchange_financial_connections_public_token_response'
|
62
|
+
require 'fuse_client/models/external_transaction_event'
|
63
|
+
require 'fuse_client/models/external_transaction_event_status'
|
53
64
|
require 'fuse_client/models/financial_connection_data'
|
54
65
|
require 'fuse_client/models/financial_connection_details'
|
55
66
|
require 'fuse_client/models/financial_connection_details_mx'
|
@@ -69,6 +80,7 @@ require 'fuse_client/models/financial_connections_investment_security'
|
|
69
80
|
require 'fuse_client/models/financial_connections_investment_security_exchange'
|
70
81
|
require 'fuse_client/models/financial_connections_investment_security_type'
|
71
82
|
require 'fuse_client/models/financial_connections_investment_transaction'
|
83
|
+
require 'fuse_client/models/financial_connections_investment_transaction_subtype'
|
72
84
|
require 'fuse_client/models/financial_connections_owner'
|
73
85
|
require 'fuse_client/models/financial_connections_owner_addresses_inner'
|
74
86
|
require 'fuse_client/models/financial_connections_owner_addresses_inner_data'
|
@@ -87,6 +99,7 @@ require 'fuse_client/models/fuse_api_warning_data'
|
|
87
99
|
require 'fuse_client/models/fuse_api_warning_data_warnings_inner'
|
88
100
|
require 'fuse_client/models/get_asset_report_request'
|
89
101
|
require 'fuse_client/models/get_entity_response'
|
102
|
+
require 'fuse_client/models/get_finance_score_response'
|
90
103
|
require 'fuse_client/models/get_financial_connection_response'
|
91
104
|
require 'fuse_client/models/get_financial_connections_account_details_request'
|
92
105
|
require 'fuse_client/models/get_financial_connections_account_details_response'
|
@@ -111,7 +124,10 @@ require 'fuse_client/models/get_investment_transactions_request_options'
|
|
111
124
|
require 'fuse_client/models/get_investment_transactions_response'
|
112
125
|
require 'fuse_client/models/get_liabilities_request'
|
113
126
|
require 'fuse_client/models/get_liabilities_response'
|
127
|
+
require 'fuse_client/models/get_spend_power_customization_response'
|
114
128
|
require 'fuse_client/models/get_spend_power_response'
|
129
|
+
require 'fuse_client/models/in_app_transaction_event'
|
130
|
+
require 'fuse_client/models/in_app_transaction_event_status'
|
115
131
|
require 'fuse_client/models/migrate_financial_connections_aggregator_connection_data'
|
116
132
|
require 'fuse_client/models/migrate_financial_connections_aggregator_connection_data_mx'
|
117
133
|
require 'fuse_client/models/migrate_financial_connections_aggregator_connection_data_plaid'
|
@@ -124,15 +140,23 @@ require 'fuse_client/models/refresh_asset_report_request'
|
|
124
140
|
require 'fuse_client/models/refresh_asset_report_response'
|
125
141
|
require 'fuse_client/models/spend_power'
|
126
142
|
require 'fuse_client/models/spend_power_customization'
|
143
|
+
require 'fuse_client/models/spend_power_time_frame'
|
127
144
|
require 'fuse_client/models/sync_financial_connections_data_response'
|
128
145
|
require 'fuse_client/models/sync_transactions_request'
|
129
146
|
require 'fuse_client/models/sync_transactions_response'
|
130
147
|
require 'fuse_client/models/sync_transactions_response_removed_inner'
|
131
148
|
require 'fuse_client/models/transaction'
|
149
|
+
require 'fuse_client/models/transaction_category'
|
150
|
+
require 'fuse_client/models/transaction_category_detailed'
|
151
|
+
require 'fuse_client/models/transaction_category_primary'
|
152
|
+
require 'fuse_client/models/transaction_event_type'
|
132
153
|
require 'fuse_client/models/transaction_merchant'
|
154
|
+
require 'fuse_client/models/transaction_to_enrich'
|
133
155
|
require 'fuse_client/models/update_entity_request'
|
134
156
|
require 'fuse_client/models/update_entity_response'
|
157
|
+
require 'fuse_client/models/update_spend_power_customization_request'
|
135
158
|
require 'fuse_client/models/update_spend_power_customization_response'
|
159
|
+
require 'fuse_client/models/updated_balance_event'
|
136
160
|
require 'fuse_client/models/webhook_event'
|
137
161
|
require 'fuse_client/models/webhook_source'
|
138
162
|
require 'fuse_client/models/webhook_type'
|
data/spec/api/fuse_api_spec.rb
CHANGED
@@ -32,12 +32,12 @@ describe 'FuseApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
36
|
-
# @param
|
35
|
+
# unit tests for add_account_events
|
36
|
+
# @param account_id
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
|
-
# @option opts [
|
39
|
-
# @return [
|
40
|
-
describe '
|
38
|
+
# @option opts [AddAccountEventsRequest] :add_account_events_request
|
39
|
+
# @return [AddAccountEventsResponse]
|
40
|
+
describe 'add_account_events test' do
|
41
41
|
it 'should work' do
|
42
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
43
|
end
|
@@ -89,7 +89,7 @@ describe 'FuseApi' do
|
|
89
89
|
|
90
90
|
# unit tests for create_spend_power_customization
|
91
91
|
# @param [Hash] opts the optional parameters
|
92
|
-
# @option opts [
|
92
|
+
# @option opts [CreateSpendPowerCustomizationRequest] :create_spend_power_customization_request
|
93
93
|
# @return [CreateSpendPowerCustomizationResponse]
|
94
94
|
describe 'create_spend_power_customization test' do
|
95
95
|
it 'should work' do
|
@@ -108,6 +108,18 @@ describe 'FuseApi' do
|
|
108
108
|
end
|
109
109
|
end
|
110
110
|
|
111
|
+
# unit tests for enrich_transactions
|
112
|
+
# @param fuse_client_id
|
113
|
+
# @param fuse_api_key
|
114
|
+
# @param [Hash] opts the optional parameters
|
115
|
+
# @option opts [EnrichTransactionsRequest] :enrich_transactions_request
|
116
|
+
# @return [EnrichTransactionsResponse]
|
117
|
+
describe 'enrich_transactions test' do
|
118
|
+
it 'should work' do
|
119
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
111
123
|
# unit tests for exchange_financial_connections_public_token
|
112
124
|
# API to exchange a public token for an access token and financial connection id
|
113
125
|
# @param [Hash] opts the optional parameters
|
@@ -142,6 +154,17 @@ describe 'FuseApi' do
|
|
142
154
|
end
|
143
155
|
end
|
144
156
|
|
157
|
+
# unit tests for get_finance_score
|
158
|
+
# Get finance score
|
159
|
+
# @param account_id
|
160
|
+
# @param [Hash] opts the optional parameters
|
161
|
+
# @return [GetFinanceScoreResponse]
|
162
|
+
describe 'get_finance_score test' do
|
163
|
+
it 'should work' do
|
164
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
145
168
|
# unit tests for get_financial_connection
|
146
169
|
# Get financial connection details
|
147
170
|
# @param financial_connection_id
|
@@ -254,6 +277,7 @@ describe 'FuseApi' do
|
|
254
277
|
end
|
255
278
|
|
256
279
|
# unit tests for get_spend_power
|
280
|
+
# Get spend power
|
257
281
|
# @param spend_power_id
|
258
282
|
# @param [Hash] opts the optional parameters
|
259
283
|
# @return [GetSpendPowerResponse]
|
@@ -299,8 +323,10 @@ describe 'FuseApi' do
|
|
299
323
|
end
|
300
324
|
|
301
325
|
# unit tests for update_spend_power_customization
|
326
|
+
# Update spend power customization
|
327
|
+
# @param spend_power_customization_id
|
302
328
|
# @param [Hash] opts the optional parameters
|
303
|
-
# @option opts [
|
329
|
+
# @option opts [UpdateSpendPowerCustomizationRequest] :update_spend_power_customization_request
|
304
330
|
# @return [UpdateSpendPowerCustomizationResponse]
|
305
331
|
describe 'update_spend_power_customization test' do
|
306
332
|
it 'should work' do
|
@@ -33,27 +33,11 @@ describe 'SpendPowerApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for delete_spend_power
|
36
|
+
# Delete spend power customization
|
36
37
|
# @param spend_power_id
|
37
38
|
# @param fuse_client_id
|
38
39
|
# @param fuse_api_key
|
39
40
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @option opts [String] :plaid_client_id
|
41
|
-
# @option opts [String] :plaid_secret
|
42
|
-
# @option opts [String] :teller_application_id
|
43
|
-
# @option opts [String] :teller_certificate
|
44
|
-
# @option opts [String] :teller_private_key
|
45
|
-
# @option opts [String] :teller_token_signing_key
|
46
|
-
# @option opts [String] :teller_signing_secret
|
47
|
-
# @option opts [String] :mx_client_id
|
48
|
-
# @option opts [String] :mx_api_key
|
49
|
-
# @option opts [String] :snaptrade_client_id
|
50
|
-
# @option opts [String] :snaptrade_consumer_key
|
51
|
-
# @option opts [String] :flinks_customer_id
|
52
|
-
# @option opts [String] :flinks_us_instance_id
|
53
|
-
# @option opts [String] :flinks_ca_instance_id
|
54
|
-
# @option opts [String] :finicity_partner_id
|
55
|
-
# @option opts [String] :finicity_partner_secret
|
56
|
-
# @option opts [String] :finicity_app_key
|
57
41
|
# @return [DeleteSpendPowerResponse]
|
58
42
|
describe 'delete_spend_power test' do
|
59
43
|
it 'should work' do
|
@@ -61,4 +45,17 @@ describe 'SpendPowerApi' do
|
|
61
45
|
end
|
62
46
|
end
|
63
47
|
|
48
|
+
# unit tests for get_spend_power_customization
|
49
|
+
# Get spend power customization
|
50
|
+
# @param spend_power_customization_id
|
51
|
+
# @param fuse_client_id
|
52
|
+
# @param fuse_api_key
|
53
|
+
# @param [Hash] opts the optional parameters
|
54
|
+
# @return [GetSpendPowerCustomizationResponse]
|
55
|
+
describe 'get_spend_power_customization test' do
|
56
|
+
it 'should work' do
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
64
61
|
end
|
@@ -0,0 +1,31 @@
|
|
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.5.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for FuseClient::AddAccountEventsRequestEventsInner
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe FuseClient::AddAccountEventsRequestEventsInner do
|
21
|
+
describe '.openapi_one_of' do
|
22
|
+
it 'lists the items referenced in the oneOf array' do
|
23
|
+
expect(described_class.openapi_one_of).to_not be_empty
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
describe '.build' do
|
28
|
+
it 'returns the correct model' do
|
29
|
+
end
|
30
|
+
end
|
31
|
+
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.5.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for FuseClient::AddAccountEventsRequest
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe FuseClient::AddAccountEventsRequest do
|
21
|
+
let(:instance) { FuseClient::AddAccountEventsRequest.new }
|
22
|
+
|
23
|
+
describe 'test an instance of AddAccountEventsRequest' do
|
24
|
+
it 'should create an instance of AddAccountEventsRequest' do
|
25
|
+
expect(instance).to be_instance_of(FuseClient::AddAccountEventsRequest)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "events"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for FuseClient::
|
17
|
+
# Unit tests for FuseClient::AddAccountEventsResponse
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe FuseClient::
|
21
|
-
let(:instance) { FuseClient::
|
20
|
+
describe FuseClient::AddAccountEventsResponse do
|
21
|
+
let(:instance) { FuseClient::AddAccountEventsResponse.new }
|
22
22
|
|
23
|
-
describe 'test an instance of
|
24
|
-
it 'should create an instance of
|
25
|
-
expect(instance).to be_instance_of(FuseClient::
|
23
|
+
describe 'test an instance of AddAccountEventsResponse' do
|
24
|
+
it 'should create an instance of AddAccountEventsResponse' do
|
25
|
+
expect(instance).to be_instance_of(FuseClient::AddAccountEventsResponse)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
describe 'test attribute "message"' do
|
@@ -0,0 +1,46 @@
|
|
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.5.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for FuseClient::CreateSpendPowerCustomizationRequest
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe FuseClient::CreateSpendPowerCustomizationRequest do
|
21
|
+
let(:instance) { FuseClient::CreateSpendPowerCustomizationRequest.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CreateSpendPowerCustomizationRequest' do
|
24
|
+
it 'should create an instance of CreateSpendPowerCustomizationRequest' do
|
25
|
+
expect(instance).to be_instance_of(FuseClient::CreateSpendPowerCustomizationRequest)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "timeframe"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "min_limit"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "max_limit"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
@@ -25,13 +25,13 @@ describe FuseClient::CreateSpendPowerRequest do
|
|
25
25
|
expect(instance).to be_instance_of(FuseClient::CreateSpendPowerRequest)
|
26
26
|
end
|
27
27
|
end
|
28
|
-
describe 'test attribute "
|
28
|
+
describe 'test attribute "account_id"' do
|
29
29
|
it 'should work' do
|
30
30
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
describe 'test attribute "
|
34
|
+
describe 'test attribute "iso_currency_code"' do
|
35
35
|
it 'should work' do
|
36
36
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
37
|
end
|