fuse_client 1.0.37 → 1.0.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/docs/{SpendPower.md → ConsumerRiskReport.md} +5 -5
  4. data/docs/{SpendPowerCustomization.md → ConsumerRiskReportCustomization.md} +6 -6
  5. data/docs/{SpendPowerTimeFrame.md → ConsumerRiskReportTimeFrame.md} +2 -2
  6. data/docs/{CreateSpendPowerCustomizationRequest.md → CreateConsumerRiskReportCustomizationRequest.md} +5 -5
  7. data/docs/{CreateSpendPowerCustomizationResponse.md → CreateConsumerRiskReportCustomizationResponse.md} +2 -2
  8. data/docs/CreateConsumerRiskReportRequest.md +24 -0
  9. data/docs/{DeleteSpendPowerResponse.md → CreateConsumerRiskReportResponse.md} +3 -3
  10. data/docs/CreateLinkTokenRequest.md +3 -1
  11. data/docs/CreateLinkTokenRequestSnaptrade.md +18 -0
  12. data/docs/CreateLinkTokenRequestSnaptradeConfig.md +18 -0
  13. data/docs/{CreateSpendPowerResponse.md → DeleteConsumerRiskReportResponse.md} +3 -3
  14. data/docs/EnrichedTransaction.md +4 -26
  15. data/docs/EvalConsumerRiskReportRequest.md +22 -0
  16. data/docs/{EvalSpendPowerRequestEventsInner.md → EvalConsumerRiskReportRequestEventsInner.md} +2 -2
  17. data/docs/{EvalSpendPowerResponse.md → EvalConsumerRiskReportResponse.md} +2 -2
  18. data/docs/ExternalTransactionEvent.md +8 -2
  19. data/docs/FinancialConnectionDetails.md +5 -1
  20. data/docs/FinancialConnectionDetailsBasiq.md +20 -0
  21. data/docs/FinancialConnectionDetailsBelvo.md +20 -0
  22. data/docs/FinancialConnectionsAccount.md +2 -0
  23. data/docs/FinancialConnectionsAccountLiability.md +2 -0
  24. data/docs/FinancialConnectionsInvestmentSecurityExchange.md +3 -1
  25. data/docs/FinancialConnectionsOwnerAddressesInnerData.md +2 -0
  26. data/docs/FuseApi.md +153 -149
  27. data/docs/{GetSpendPowerCustomizationResponse.md → GetConsumerRiskReportCustomizationResponse.md} +4 -4
  28. data/docs/{GetSpendPowerResponse.md → GetConsumerRiskReportResponse.md} +4 -4
  29. data/docs/InAppTransactionEvent.md +1 -1
  30. data/docs/RiskReportApi.md +165 -0
  31. data/docs/Transaction.md +1 -1
  32. data/docs/TransactionToEnrich.md +13 -5
  33. data/docs/{UpdateSpendPowerCustomizationRequest.md → UpdateConsumerRiskReportCustomizationRequest.md} +5 -5
  34. data/docs/{UpdateSpendPowerCustomizationResponse.md → UpdateConsumerRiskReportCustomizationResponse.md} +2 -2
  35. data/docs/UpdatedBalanceEvent.md +2 -2
  36. data/lib/fuse_client/api/fuse_api.rb +142 -139
  37. data/lib/fuse_client/api/{spend_power_api.rb → risk_report_api.rb} +39 -39
  38. data/lib/fuse_client/configuration.rb +5 -1
  39. data/lib/fuse_client/models/account_subtype.rb +3 -2
  40. data/lib/fuse_client/models/aggregator.rb +3 -1
  41. data/lib/fuse_client/models/{spend_power.rb → consumer_risk_report.rb} +4 -6
  42. data/lib/fuse_client/models/{spend_power_customization.rb → consumer_risk_report_customization.rb} +6 -7
  43. data/lib/fuse_client/models/{spend_power_time_frame.rb → consumer_risk_report_time_frame.rb} +3 -3
  44. data/lib/fuse_client/models/{create_spend_power_customization_request.rb → create_consumer_risk_report_customization_request.rb} +6 -6
  45. data/lib/fuse_client/models/{create_spend_power_customization_response.rb → create_consumer_risk_report_customization_response.rb} +3 -3
  46. data/lib/fuse_client/models/{create_spend_power_request.rb → create_consumer_risk_report_request.rb} +16 -6
  47. data/lib/fuse_client/models/{delete_spend_power_response.rb → create_consumer_risk_report_response.rb} +3 -4
  48. data/lib/fuse_client/models/create_link_token_request.rb +13 -4
  49. data/lib/fuse_client/models/create_link_token_request_snaptrade.rb +220 -0
  50. data/lib/fuse_client/models/create_link_token_request_snaptrade_config.rb +256 -0
  51. data/lib/fuse_client/models/{create_spend_power_response.rb → delete_consumer_risk_report_response.rb} +3 -4
  52. data/lib/fuse_client/models/enriched_transaction.rb +17 -158
  53. data/lib/fuse_client/models/{eval_spend_power_request.rb → eval_consumer_risk_report_request.rb} +5 -5
  54. data/lib/fuse_client/models/{eval_spend_power_request_events_inner.rb → eval_consumer_risk_report_request_events_inner.rb} +3 -3
  55. data/lib/fuse_client/models/{eval_spend_power_response.rb → eval_consumer_risk_report_response.rb} +3 -3
  56. data/lib/fuse_client/models/external_transaction_event.rb +45 -7
  57. data/lib/fuse_client/models/financial_connection_details.rb +22 -4
  58. data/lib/fuse_client/models/financial_connection_details_basiq.rb +241 -0
  59. data/lib/fuse_client/models/financial_connection_details_belvo.rb +236 -0
  60. data/lib/fuse_client/models/financial_connections_account.rb +16 -1
  61. data/lib/fuse_client/models/financial_connections_account_balance.rb +2 -0
  62. data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +2 -0
  63. data/lib/fuse_client/models/financial_connections_account_liability.rb +16 -1
  64. data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +14 -4
  65. data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +11 -1
  66. data/lib/fuse_client/models/fuse_api_error_code.rb +6 -3
  67. data/lib/fuse_client/models/get_consumer_risk_report_customization_response.rb +239 -0
  68. data/lib/fuse_client/models/{get_spend_power_response.rb → get_consumer_risk_report_response.rb} +13 -13
  69. data/lib/fuse_client/models/in_app_transaction_event.rb +0 -5
  70. data/lib/fuse_client/models/transaction.rb +1 -1
  71. data/lib/fuse_client/models/transaction_to_enrich.rb +130 -27
  72. data/lib/fuse_client/models/{update_spend_power_customization_request.rb → update_consumer_risk_report_customization_request.rb} +6 -6
  73. data/lib/fuse_client/models/{update_spend_power_customization_response.rb → update_consumer_risk_report_customization_response.rb} +3 -3
  74. data/lib/fuse_client/models/updated_balance_event.rb +2 -2
  75. data/lib/fuse_client/version.rb +1 -1
  76. data/lib/fuse_client.rb +20 -16
  77. data/spec/api/fuse_api_spec.rb +37 -36
  78. data/spec/api/{spend_power_api_spec.rb → risk_report_api_spec.rb} +16 -16
  79. data/spec/models/asset_report_transaction_spec.rb +1 -1
  80. data/spec/models/{spend_power_customization_spec.rb → consumer_risk_report_customization_spec.rb} +6 -6
  81. data/spec/models/{spend_power_spec.rb → consumer_risk_report_spec.rb} +6 -6
  82. data/spec/models/{spend_power_time_frame_spec.rb → consumer_risk_report_time_frame_spec.rb} +6 -6
  83. data/spec/models/{create_spend_power_customization_request_spec.rb → create_consumer_risk_report_customization_request_spec.rb} +6 -6
  84. data/spec/models/{create_spend_power_customization_response_spec.rb → create_consumer_risk_report_customization_response_spec.rb} +6 -6
  85. data/spec/models/{create_spend_power_request_spec.rb → create_consumer_risk_report_request_spec.rb} +12 -6
  86. data/spec/models/{delete_spend_power_response_spec.rb → create_consumer_risk_report_response_spec.rb} +6 -6
  87. data/spec/models/create_link_token_request_snaptrade_config_spec.rb +38 -0
  88. data/spec/models/create_link_token_request_snaptrade_spec.rb +34 -0
  89. data/spec/models/create_link_token_request_spec.rb +6 -0
  90. data/spec/models/{create_spend_power_response_spec.rb → delete_consumer_risk_report_response_spec.rb} +6 -6
  91. data/spec/models/enriched_transaction_spec.rb +2 -72
  92. data/spec/models/{eval_spend_power_request_events_inner_spec.rb → eval_consumer_risk_report_request_events_inner_spec.rb} +6 -6
  93. data/spec/models/{eval_spend_power_request_spec.rb → eval_consumer_risk_report_request_spec.rb} +6 -6
  94. data/spec/models/{eval_spend_power_response_spec.rb → eval_consumer_risk_report_response_spec.rb} +6 -6
  95. data/spec/models/external_transaction_event_spec.rb +22 -0
  96. data/spec/models/financial_connection_details_basiq_spec.rb +40 -0
  97. data/spec/models/financial_connection_details_belvo_spec.rb +40 -0
  98. data/spec/models/financial_connection_details_spec.rb +12 -0
  99. data/spec/models/financial_connections_account_liability_spec.rb +6 -0
  100. data/spec/models/financial_connections_account_spec.rb +6 -0
  101. data/spec/models/financial_connections_investment_security_exchange_spec.rb +6 -0
  102. data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +6 -0
  103. data/spec/models/{get_spend_power_customization_response_spec.rb → get_consumer_risk_report_customization_response_spec.rb} +7 -7
  104. data/spec/models/{get_spend_power_response_spec.rb → get_consumer_risk_report_response_spec.rb} +7 -7
  105. data/spec/models/transaction_spec.rb +1 -1
  106. data/spec/models/transaction_to_enrich_spec.rb +32 -4
  107. data/spec/models/{update_spend_power_customization_request_spec.rb → update_consumer_risk_report_customization_request_spec.rb} +6 -6
  108. data/spec/models/{update_spend_power_customization_response_spec.rb → update_consumer_risk_report_customization_response_spec.rb} +6 -6
  109. metadata +92 -76
  110. data/docs/CreateSpendPowerRequest.md +0 -22
  111. data/docs/EvalSpendPowerRequest.md +0 -22
  112. data/docs/SpendPowerApi.md +0 -165
  113. data/lib/fuse_client/models/get_spend_power_customization_response.rb +0 -239
@@ -18,17 +18,26 @@ module FuseClient
18
18
  # A unique ID for the transaction that to help you tie data back to your systems.
19
19
  attr_accessor :id
20
20
 
21
- # The name of the merchant.
22
- attr_accessor :merchant_name
21
+ # The name of the merchant if available or a description of the transaction.
22
+ attr_accessor :description
23
23
 
24
24
  # The merchant category code.
25
25
  attr_accessor :mcc
26
26
 
27
- # The amount of the transaction in cents, in the currency of the account.
27
+ # The amount of the transaction in cents, in the currency of the account. Must be a positive value. Use the type field to indicate the direction.
28
28
  attr_accessor :amount
29
29
 
30
- # The type of the transaction
31
- attr_accessor :type
30
+ # The direction of the transaction.
31
+ attr_accessor :direction
32
+
33
+ attr_accessor :country_code
34
+
35
+ attr_accessor :iso_currency_code
36
+
37
+ # The date the transaction was posted.
38
+ attr_accessor :date
39
+
40
+ attr_accessor :owner_type
32
41
 
33
42
  class EnumAttributeValidator
34
43
  attr_reader :datatype
@@ -56,10 +65,14 @@ module FuseClient
56
65
  def self.attribute_map
57
66
  {
58
67
  :'id' => :'id',
59
- :'merchant_name' => :'merchant_name',
68
+ :'description' => :'description',
60
69
  :'mcc' => :'mcc',
61
70
  :'amount' => :'amount',
62
- :'type' => :'type'
71
+ :'direction' => :'direction',
72
+ :'country_code' => :'country_code',
73
+ :'iso_currency_code' => :'iso_currency_code',
74
+ :'date' => :'date',
75
+ :'owner_type' => :'owner_type'
63
76
  }
64
77
  end
65
78
 
@@ -72,10 +85,14 @@ module FuseClient
72
85
  def self.openapi_types
73
86
  {
74
87
  :'id' => :'String',
75
- :'merchant_name' => :'String',
88
+ :'description' => :'String',
76
89
  :'mcc' => :'String',
77
90
  :'amount' => :'Float',
78
- :'type' => :'String'
91
+ :'direction' => :'String',
92
+ :'country_code' => :'String',
93
+ :'iso_currency_code' => :'String',
94
+ :'date' => :'String',
95
+ :'owner_type' => :'String'
79
96
  }
80
97
  end
81
98
 
@@ -104,8 +121,8 @@ module FuseClient
104
121
  self.id = attributes[:'id']
105
122
  end
106
123
 
107
- if attributes.key?(:'merchant_name')
108
- self.merchant_name = attributes[:'merchant_name']
124
+ if attributes.key?(:'description')
125
+ self.description = attributes[:'description']
109
126
  end
110
127
 
111
128
  if attributes.key?(:'mcc')
@@ -116,8 +133,30 @@ module FuseClient
116
133
  self.amount = attributes[:'amount']
117
134
  end
118
135
 
119
- if attributes.key?(:'type')
120
- self.type = attributes[:'type']
136
+ if attributes.key?(:'direction')
137
+ self.direction = attributes[:'direction']
138
+ end
139
+
140
+ if attributes.key?(:'country_code')
141
+ self.country_code = attributes[:'country_code']
142
+ else
143
+ self.country_code = 'US'
144
+ end
145
+
146
+ if attributes.key?(:'iso_currency_code')
147
+ self.iso_currency_code = attributes[:'iso_currency_code']
148
+ else
149
+ self.iso_currency_code = 'USD'
150
+ end
151
+
152
+ if attributes.key?(:'date')
153
+ self.date = attributes[:'date']
154
+ end
155
+
156
+ if attributes.key?(:'owner_type')
157
+ self.owner_type = attributes[:'owner_type']
158
+ else
159
+ self.owner_type = 'consumer'
121
160
  end
122
161
  end
123
162
 
@@ -129,8 +168,24 @@ module FuseClient
129
168
  invalid_properties.push('invalid value for "id", id cannot be nil.')
130
169
  end
131
170
 
132
- if @merchant_name.nil?
133
- invalid_properties.push('invalid value for "merchant_name", merchant_name cannot be nil.')
171
+ if @description.nil?
172
+ invalid_properties.push('invalid value for "description", description cannot be nil.')
173
+ end
174
+
175
+ if @description.to_s.length < 1
176
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
177
+ end
178
+
179
+ if @amount.nil?
180
+ invalid_properties.push('invalid value for "amount", amount cannot be nil.')
181
+ end
182
+
183
+ if @amount < 0
184
+ invalid_properties.push('invalid value for "amount", must be greater than or equal to 0.')
185
+ end
186
+
187
+ if @direction.nil?
188
+ invalid_properties.push('invalid value for "direction", direction cannot be nil.')
134
189
  end
135
190
 
136
191
  invalid_properties
@@ -140,20 +195,64 @@ module FuseClient
140
195
  # @return true if the model is valid
141
196
  def valid?
142
197
  return false if @id.nil?
143
- return false if @merchant_name.nil?
144
- type_validator = EnumAttributeValidator.new('String', ["debit", "credit"])
145
- return false unless type_validator.valid?(@type)
198
+ return false if @description.nil?
199
+ return false if @description.to_s.length < 1
200
+ return false if @amount.nil?
201
+ return false if @amount < 0
202
+ return false if @direction.nil?
203
+ direction_validator = EnumAttributeValidator.new('String', ["incoming", "outgoing"])
204
+ return false unless direction_validator.valid?(@direction)
205
+ owner_type_validator = EnumAttributeValidator.new('String', ["consumer", "business"])
206
+ return false unless owner_type_validator.valid?(@owner_type)
146
207
  true
147
208
  end
148
209
 
210
+ # Custom attribute writer method with validation
211
+ # @param [Object] description Value to be assigned
212
+ def description=(description)
213
+ if description.nil?
214
+ fail ArgumentError, 'description cannot be nil'
215
+ end
216
+
217
+ if description.to_s.length < 1
218
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
219
+ end
220
+
221
+ @description = description
222
+ end
223
+
224
+ # Custom attribute writer method with validation
225
+ # @param [Object] amount Value to be assigned
226
+ def amount=(amount)
227
+ if amount.nil?
228
+ fail ArgumentError, 'amount cannot be nil'
229
+ end
230
+
231
+ if amount < 0
232
+ fail ArgumentError, 'invalid value for "amount", must be greater than or equal to 0.'
233
+ end
234
+
235
+ @amount = amount
236
+ end
237
+
238
+ # Custom attribute writer method checking allowed values (enum).
239
+ # @param [Object] direction Object to be assigned
240
+ def direction=(direction)
241
+ validator = EnumAttributeValidator.new('String', ["incoming", "outgoing"])
242
+ unless validator.valid?(direction)
243
+ fail ArgumentError, "invalid value for \"direction\", must be one of #{validator.allowable_values}."
244
+ end
245
+ @direction = direction
246
+ end
247
+
149
248
  # Custom attribute writer method checking allowed values (enum).
150
- # @param [Object] type Object to be assigned
151
- def type=(type)
152
- validator = EnumAttributeValidator.new('String', ["debit", "credit"])
153
- unless validator.valid?(type)
154
- fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
249
+ # @param [Object] owner_type Object to be assigned
250
+ def owner_type=(owner_type)
251
+ validator = EnumAttributeValidator.new('String', ["consumer", "business"])
252
+ unless validator.valid?(owner_type)
253
+ fail ArgumentError, "invalid value for \"owner_type\", must be one of #{validator.allowable_values}."
155
254
  end
156
- @type = type
255
+ @owner_type = owner_type
157
256
  end
158
257
 
159
258
  # Checks equality by comparing each attribute.
@@ -162,10 +261,14 @@ module FuseClient
162
261
  return true if self.equal?(o)
163
262
  self.class == o.class &&
164
263
  id == o.id &&
165
- merchant_name == o.merchant_name &&
264
+ description == o.description &&
166
265
  mcc == o.mcc &&
167
266
  amount == o.amount &&
168
- type == o.type
267
+ direction == o.direction &&
268
+ country_code == o.country_code &&
269
+ iso_currency_code == o.iso_currency_code &&
270
+ date == o.date &&
271
+ owner_type == o.owner_type
169
272
  end
170
273
 
171
274
  # @see the `==` method
@@ -177,7 +280,7 @@ module FuseClient
177
280
  # Calculates hash code according to all attributes.
178
281
  # @return [Integer] Hash code
179
282
  def hash
180
- [id, merchant_name, mcc, amount, type].hash
283
+ [id, description, mcc, amount, direction, country_code, iso_currency_code, date, owner_type].hash
181
284
  end
182
285
 
183
286
  # Builds the object from hash
@@ -14,13 +14,13 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FuseClient
17
- class UpdateSpendPowerCustomizationRequest
17
+ class UpdateConsumerRiskReportCustomizationRequest
18
18
  attr_accessor :timeframe
19
19
 
20
- # The minimum allowed limit for the spend power, in cents.
20
+ # The minimum allowed limit, in cents.
21
21
  attr_accessor :min_limit
22
22
 
23
- # The maximum allowed limit for the spend power, in cents.
23
+ # The maximum allowed limit, in cents.
24
24
  attr_accessor :max_limit
25
25
 
26
26
  # This parameter indicates the risk tolerance associated with spend limits. A high risk tolerance allow for higher limits, increasing both potential gains and losses. A Lower risk tolerance enforces strict limits, reducing the potential for loss but also limiting transaction volume for reliable users.
@@ -66,7 +66,7 @@ module FuseClient
66
66
  # Attribute type mapping.
67
67
  def self.openapi_types
68
68
  {
69
- :'timeframe' => :'SpendPowerTimeFrame',
69
+ :'timeframe' => :'ConsumerRiskReportTimeFrame',
70
70
  :'min_limit' => :'Float',
71
71
  :'max_limit' => :'Float',
72
72
  :'risk_tolerance' => :'Float'
@@ -83,13 +83,13 @@ module FuseClient
83
83
  # @param [Hash] attributes Model attributes in the form of hash
84
84
  def initialize(attributes = {})
85
85
  if (!attributes.is_a?(Hash))
86
- fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::UpdateSpendPowerCustomizationRequest` initialize method"
86
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::UpdateConsumerRiskReportCustomizationRequest` initialize method"
87
87
  end
88
88
 
89
89
  # check to see if the attribute exists and convert string to symbol for hash key
90
90
  attributes = attributes.each_with_object({}) { |(k, v), h|
91
91
  if (!self.class.attribute_map.key?(k.to_sym))
92
- fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::UpdateSpendPowerCustomizationRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
92
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::UpdateConsumerRiskReportCustomizationRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
93
93
  end
94
94
  h[k.to_sym] = v
95
95
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FuseClient
17
- class UpdateSpendPowerCustomizationResponse
17
+ class UpdateConsumerRiskReportCustomizationResponse
18
18
  # The id of the updated customization.
19
19
  attr_accessor :id
20
20
 
@@ -52,13 +52,13 @@ module FuseClient
52
52
  # @param [Hash] attributes Model attributes in the form of hash
53
53
  def initialize(attributes = {})
54
54
  if (!attributes.is_a?(Hash))
55
- fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::UpdateSpendPowerCustomizationResponse` initialize method"
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::UpdateConsumerRiskReportCustomizationResponse` initialize method"
56
56
  end
57
57
 
58
58
  # check to see if the attribute exists and convert string to symbol for hash key
59
59
  attributes = attributes.each_with_object({}) { |(k, v), h|
60
60
  if (!self.class.attribute_map.key?(k.to_sym))
61
- fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::UpdateSpendPowerCustomizationResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::UpdateConsumerRiskReportCustomizationResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
62
  end
63
63
  h[k.to_sym] = v
64
64
  }
@@ -23,10 +23,10 @@ module FuseClient
23
23
  # Datetime that the balance is accurate for In ISO-8601 format
24
24
  attr_accessor :timestamp
25
25
 
26
- # 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.
26
+ # The current balance of the account factoring in pending transactions.
27
27
  attr_accessor :available
28
28
 
29
- # 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.
29
+ # The current balance of the account without factoring in pending transactions.
30
30
  attr_accessor :current
31
31
 
32
32
  class EnumAttributeValidator
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.6.0
11
11
  =end
12
12
 
13
13
  module FuseClient
14
- VERSION = '1.0.37'
14
+ VERSION = '1.0.40'
15
15
  end
data/lib/fuse_client.rb CHANGED
@@ -29,14 +29,23 @@ require 'fuse_client/models/asset_report_accounts_inner_balance'
29
29
  require 'fuse_client/models/asset_report_accounts_inner_historical_balances_inner'
30
30
  require 'fuse_client/models/asset_report_response'
31
31
  require 'fuse_client/models/asset_report_transaction'
32
+ require 'fuse_client/models/consumer_risk_report'
33
+ require 'fuse_client/models/consumer_risk_report_customization'
34
+ require 'fuse_client/models/consumer_risk_report_time_frame'
32
35
  require 'fuse_client/models/country_code'
33
36
  require 'fuse_client/models/create_asset_report_request'
34
37
  require 'fuse_client/models/create_asset_report_response'
38
+ require 'fuse_client/models/create_consumer_risk_report_customization_request'
39
+ require 'fuse_client/models/create_consumer_risk_report_customization_response'
40
+ require 'fuse_client/models/create_consumer_risk_report_request'
41
+ require 'fuse_client/models/create_consumer_risk_report_response'
35
42
  require 'fuse_client/models/create_entity_request'
36
43
  require 'fuse_client/models/create_entity_response'
37
44
  require 'fuse_client/models/create_link_token_request'
38
45
  require 'fuse_client/models/create_link_token_request_mx'
39
46
  require 'fuse_client/models/create_link_token_request_plaid'
47
+ require 'fuse_client/models/create_link_token_request_snaptrade'
48
+ require 'fuse_client/models/create_link_token_request_snaptrade_config'
40
49
  require 'fuse_client/models/create_link_token_request_teller'
41
50
  require 'fuse_client/models/create_link_token_request_teller_config'
42
51
  require 'fuse_client/models/create_link_token_request_teller_config_account_filter'
@@ -47,20 +56,16 @@ require 'fuse_client/models/create_link_token_request_teller_config_account_filt
47
56
  require 'fuse_client/models/create_link_token_response'
48
57
  require 'fuse_client/models/create_session_request'
49
58
  require 'fuse_client/models/create_session_response'
50
- require 'fuse_client/models/create_spend_power_customization_request'
51
- require 'fuse_client/models/create_spend_power_customization_response'
52
- require 'fuse_client/models/create_spend_power_request'
53
- require 'fuse_client/models/create_spend_power_response'
54
59
  require 'fuse_client/models/currency'
60
+ require 'fuse_client/models/delete_consumer_risk_report_response'
55
61
  require 'fuse_client/models/delete_financial_connection_response'
56
- require 'fuse_client/models/delete_spend_power_response'
57
62
  require 'fuse_client/models/enrich_transactions_request'
58
63
  require 'fuse_client/models/enrich_transactions_response'
59
64
  require 'fuse_client/models/enriched_transaction'
60
65
  require 'fuse_client/models/entity'
61
- require 'fuse_client/models/eval_spend_power_request'
62
- require 'fuse_client/models/eval_spend_power_request_events_inner'
63
- require 'fuse_client/models/eval_spend_power_response'
66
+ require 'fuse_client/models/eval_consumer_risk_report_request'
67
+ require 'fuse_client/models/eval_consumer_risk_report_request_events_inner'
68
+ require 'fuse_client/models/eval_consumer_risk_report_response'
64
69
  require 'fuse_client/models/exchange_financial_connections_public_token_request'
65
70
  require 'fuse_client/models/exchange_financial_connections_public_token_response'
66
71
  require 'fuse_client/models/external_transaction_event'
@@ -88,6 +93,8 @@ require 'fuse_client/models/fin_ql_top_merchants_feature_inner'
88
93
  require 'fuse_client/models/finance_score'
89
94
  require 'fuse_client/models/financial_connection_data'
90
95
  require 'fuse_client/models/financial_connection_details'
96
+ require 'fuse_client/models/financial_connection_details_basiq'
97
+ require 'fuse_client/models/financial_connection_details_belvo'
91
98
  require 'fuse_client/models/financial_connection_details_finverse'
92
99
  require 'fuse_client/models/financial_connection_details_flinks'
93
100
  require 'fuse_client/models/financial_connection_details_mono'
@@ -129,6 +136,8 @@ require 'fuse_client/models/fuse_api_warning'
129
136
  require 'fuse_client/models/fuse_api_warning_data'
130
137
  require 'fuse_client/models/fuse_api_warning_data_warnings_inner'
131
138
  require 'fuse_client/models/get_asset_report_request'
139
+ require 'fuse_client/models/get_consumer_risk_report_customization_response'
140
+ require 'fuse_client/models/get_consumer_risk_report_response'
132
141
  require 'fuse_client/models/get_entity_response'
133
142
  require 'fuse_client/models/get_finance_score_response'
134
143
  require 'fuse_client/models/get_financial_connection_response'
@@ -155,8 +164,6 @@ require 'fuse_client/models/get_investment_transactions_request_options'
155
164
  require 'fuse_client/models/get_investment_transactions_response'
156
165
  require 'fuse_client/models/get_liabilities_request'
157
166
  require 'fuse_client/models/get_liabilities_response'
158
- require 'fuse_client/models/get_spend_power_customization_response'
159
- require 'fuse_client/models/get_spend_power_response'
160
167
  require 'fuse_client/models/in_app_transaction_event'
161
168
  require 'fuse_client/models/in_app_transaction_event_status'
162
169
  require 'fuse_client/models/merchant'
@@ -171,9 +178,6 @@ require 'fuse_client/models/migrate_financial_connections_token_response'
171
178
  require 'fuse_client/models/product'
172
179
  require 'fuse_client/models/refresh_asset_report_request'
173
180
  require 'fuse_client/models/refresh_asset_report_response'
174
- require 'fuse_client/models/spend_power'
175
- require 'fuse_client/models/spend_power_customization'
176
- require 'fuse_client/models/spend_power_time_frame'
177
181
  require 'fuse_client/models/sync_financial_connections_data_response'
178
182
  require 'fuse_client/models/sync_transactions_request'
179
183
  require 'fuse_client/models/sync_transactions_response'
@@ -185,10 +189,10 @@ require 'fuse_client/models/transaction_category_primary'
185
189
  require 'fuse_client/models/transaction_event_type'
186
190
  require 'fuse_client/models/transaction_merchant'
187
191
  require 'fuse_client/models/transaction_to_enrich'
192
+ require 'fuse_client/models/update_consumer_risk_report_customization_request'
193
+ require 'fuse_client/models/update_consumer_risk_report_customization_response'
188
194
  require 'fuse_client/models/update_entity_request'
189
195
  require 'fuse_client/models/update_entity_response'
190
- require 'fuse_client/models/update_spend_power_customization_request'
191
- require 'fuse_client/models/update_spend_power_customization_response'
192
196
  require 'fuse_client/models/updated_balance_event'
193
197
  require 'fuse_client/models/webhook_event'
194
198
  require 'fuse_client/models/webhook_source'
@@ -196,7 +200,7 @@ require 'fuse_client/models/webhook_type'
196
200
 
197
201
  # APIs
198
202
  require 'fuse_client/api/fuse_api'
199
- require 'fuse_client/api/spend_power_api'
203
+ require 'fuse_client/api/risk_report_api'
200
204
 
201
205
  module FuseClient
202
206
  class << self
@@ -54,44 +54,44 @@ describe 'FuseApi' do
54
54
  end
55
55
  end
56
56
 
57
- # unit tests for create_link_token
58
- # Create a link token to start the process of a user connecting to a specific financial institution.
57
+ # unit tests for create_consumer_risk_report
58
+ # Starts the background process that will calculate the consumer risk report depending on the customization passed in.
59
59
  # @param [Hash] opts the optional parameters
60
- # @option opts [CreateLinkTokenRequest] :create_link_token_request
61
- # @return [CreateLinkTokenResponse]
62
- describe 'create_link_token test' do
60
+ # @option opts [CreateConsumerRiskReportRequest] :create_consumer_risk_report_request
61
+ # @return [CreateConsumerRiskReportResponse]
62
+ describe 'create_consumer_risk_report test' do
63
63
  it 'should work' do
64
64
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
65
65
  end
66
66
  end
67
67
 
68
- # unit tests for create_session
69
- # Creates a session that returns a client_secret which is required as a parameter when initializing the Fuse SDK.
68
+ # unit tests for create_consumer_risk_report_customization
70
69
  # @param [Hash] opts the optional parameters
71
- # @option opts [CreateSessionRequest] :create_session_request
72
- # @return [CreateSessionResponse]
73
- describe 'create_session test' do
70
+ # @option opts [CreateConsumerRiskReportCustomizationRequest] :create_consumer_risk_report_customization_request
71
+ # @return [CreateConsumerRiskReportCustomizationResponse]
72
+ describe 'create_consumer_risk_report_customization test' do
74
73
  it 'should work' do
75
74
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
76
75
  end
77
76
  end
78
77
 
79
- # unit tests for create_spend_power
80
- # Starts the background process that will determine the spend power depending on the customization passed in.
78
+ # unit tests for create_link_token
79
+ # Create a link token to start the process of a user connecting to a specific financial institution.
81
80
  # @param [Hash] opts the optional parameters
82
- # @option opts [CreateSpendPowerRequest] :create_spend_power_request
83
- # @return [CreateSpendPowerResponse]
84
- describe 'create_spend_power test' do
81
+ # @option opts [CreateLinkTokenRequest] :create_link_token_request
82
+ # @return [CreateLinkTokenResponse]
83
+ describe 'create_link_token test' do
85
84
  it 'should work' do
86
85
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
87
86
  end
88
87
  end
89
88
 
90
- # unit tests for create_spend_power_customization
89
+ # unit tests for create_session
90
+ # Creates a session that returns a client_secret which is required as a parameter when initializing the Fuse SDK.
91
91
  # @param [Hash] opts the optional parameters
92
- # @option opts [CreateSpendPowerCustomizationRequest] :create_spend_power_customization_request
93
- # @return [CreateSpendPowerCustomizationResponse]
94
- describe 'create_spend_power_customization test' do
92
+ # @option opts [CreateSessionRequest] :create_session_request
93
+ # @return [CreateSessionResponse]
94
+ describe 'create_session test' do
95
95
  it 'should work' do
96
96
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
97
97
  end
@@ -154,6 +154,18 @@ describe 'FuseApi' do
154
154
  end
155
155
  end
156
156
 
157
+ # unit tests for get_consumer_risk_report
158
+ # Get consumer risk report
159
+ # @param consumer_risk_report_id
160
+ # @param [Hash] opts the optional parameters
161
+ # @option opts [Boolean] :recalculate An optional boolean parameter. If set to true, the system will recalculate before returning the risk report. If omitted or set to false, the current risk report will be returned without recalculation.
162
+ # @return [GetConsumerRiskReportResponse]
163
+ describe 'get_consumer_risk_report test' do
164
+ it 'should work' do
165
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
166
+ end
167
+ end
168
+
157
169
  # unit tests for get_entity
158
170
  # Get entity
159
171
  # An entity is automatically created after a successful connection. The id of the entity is what is set when calling the &#39;create session&#39; endpoint
@@ -288,17 +300,6 @@ describe 'FuseApi' do
288
300
  end
289
301
  end
290
302
 
291
- # unit tests for get_spend_power
292
- # Get spend power
293
- # @param spend_power_id
294
- # @param [Hash] opts the optional parameters
295
- # @return [GetSpendPowerResponse]
296
- describe 'get_spend_power test' do
297
- it 'should work' do
298
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
299
- end
300
- end
301
-
302
303
  # unit tests for migrate_financial_connection
303
304
  # Migrate financial connection
304
305
  # This endpoint migrates financial connections from Plaid or MX into the unified Fuse API. It accepts a POST request with connection data, aggregator, entity, and Fuse products, and responds with a JSON payload containing the migrated connection&#39;s data, access token, ID, and request ID.
@@ -334,13 +335,13 @@ describe 'FuseApi' do
334
335
  end
335
336
  end
336
337
 
337
- # unit tests for update_spend_power_customization
338
- # Update spend power customization
339
- # @param spend_power_customization_id
338
+ # unit tests for update_consumer_risk_report_customization
339
+ # Update consumer risk report customization
340
+ # @param consumer_risk_report_customization_id
340
341
  # @param [Hash] opts the optional parameters
341
- # @option opts [UpdateSpendPowerCustomizationRequest] :update_spend_power_customization_request
342
- # @return [UpdateSpendPowerCustomizationResponse]
343
- describe 'update_spend_power_customization test' do
342
+ # @option opts [UpdateConsumerRiskReportCustomizationRequest] :update_consumer_risk_report_customization_request
343
+ # @return [UpdateConsumerRiskReportCustomizationResponse]
344
+ describe 'update_consumer_risk_report_customization test' do
344
345
  it 'should work' do
345
346
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
346
347
  end
@@ -13,46 +13,46 @@ OpenAPI Generator version: 6.6.0
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for FuseClient::SpendPowerApi
16
+ # Unit tests for FuseClient::RiskReportApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
- describe 'SpendPowerApi' do
19
+ describe 'RiskReportApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = FuseClient::SpendPowerApi.new
22
+ @api_instance = FuseClient::RiskReportApi.new
23
23
  end
24
24
 
25
25
  after do
26
26
  # run after each test
27
27
  end
28
28
 
29
- describe 'test an instance of SpendPowerApi' do
30
- it 'should create an instance of SpendPowerApi' do
31
- expect(@api_instance).to be_instance_of(FuseClient::SpendPowerApi)
29
+ describe 'test an instance of RiskReportApi' do
30
+ it 'should create an instance of RiskReportApi' do
31
+ expect(@api_instance).to be_instance_of(FuseClient::RiskReportApi)
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for delete_spend_power
36
- # Delete spend power customization
37
- # @param spend_power_id
35
+ # unit tests for delete_consumer_risk_report
36
+ # Delete consumer risk report
37
+ # @param consumer_risk_report_id
38
38
  # @param fuse_client_id
39
39
  # @param fuse_api_key
40
40
  # @param [Hash] opts the optional parameters
41
- # @return [DeleteSpendPowerResponse]
42
- describe 'delete_spend_power test' do
41
+ # @return [DeleteConsumerRiskReportResponse]
42
+ describe 'delete_consumer_risk_report test' do
43
43
  it 'should work' do
44
44
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
45
  end
46
46
  end
47
47
 
48
- # unit tests for get_spend_power_customization
49
- # Get spend power customization
50
- # @param spend_power_customization_id
48
+ # unit tests for get_consumer_risk_report_customization
49
+ # Get consumer risk report customization
50
+ # @param consumer_risk_report_customization_id
51
51
  # @param fuse_client_id
52
52
  # @param fuse_api_key
53
53
  # @param [Hash] opts the optional parameters
54
- # @return [GetSpendPowerCustomizationResponse]
55
- describe 'get_spend_power_customization test' do
54
+ # @return [GetConsumerRiskReportCustomizationResponse]
55
+ describe 'get_consumer_risk_report_customization test' do
56
56
  it 'should work' do
57
57
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
58
58
  end