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
@@ -147,25 +147,25 @@ module FuseClient
147
147
  return data, status_code, headers
148
148
  end
149
149
 
150
- # Create a link token to start the process of a user connecting to a specific financial institution.
150
+ # Starts the background process that will calculate the consumer risk report depending on the customization passed in.
151
151
  # @param [Hash] opts the optional parameters
152
- # @option opts [CreateLinkTokenRequest] :create_link_token_request
153
- # @return [CreateLinkTokenResponse]
154
- def create_link_token(opts = {})
155
- data, _status_code, _headers = create_link_token_with_http_info(opts)
152
+ # @option opts [CreateConsumerRiskReportRequest] :create_consumer_risk_report_request
153
+ # @return [CreateConsumerRiskReportResponse]
154
+ def create_consumer_risk_report(opts = {})
155
+ data, _status_code, _headers = create_consumer_risk_report_with_http_info(opts)
156
156
  data
157
157
  end
158
158
 
159
- # Create a link token to start the process of a user connecting to a specific financial institution.
159
+ # Starts the background process that will calculate the consumer risk report depending on the customization passed in.
160
160
  # @param [Hash] opts the optional parameters
161
- # @option opts [CreateLinkTokenRequest] :create_link_token_request
162
- # @return [Array<(CreateLinkTokenResponse, Integer, Hash)>] CreateLinkTokenResponse data, response status code and response headers
163
- def create_link_token_with_http_info(opts = {})
161
+ # @option opts [CreateConsumerRiskReportRequest] :create_consumer_risk_report_request
162
+ # @return [Array<(CreateConsumerRiskReportResponse, Integer, Hash)>] CreateConsumerRiskReportResponse data, response status code and response headers
163
+ def create_consumer_risk_report_with_http_info(opts = {})
164
164
  if @api_client.config.debugging
165
- @api_client.config.logger.debug 'Calling API: FuseApi.create_link_token ...'
165
+ @api_client.config.logger.debug 'Calling API: FuseApi.create_consumer_risk_report ...'
166
166
  end
167
167
  # resource path
168
- local_var_path = '/v1/link/token'
168
+ local_var_path = '/v1/risk_report/consumer'
169
169
 
170
170
  # query parameters
171
171
  query_params = opts[:query_params] || {}
@@ -184,16 +184,16 @@ module FuseClient
184
184
  form_params = opts[:form_params] || {}
185
185
 
186
186
  # http body (model)
187
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_link_token_request'])
187
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_consumer_risk_report_request'])
188
188
 
189
189
  # return_type
190
- return_type = opts[:debug_return_type] || 'CreateLinkTokenResponse'
190
+ return_type = opts[:debug_return_type] || 'CreateConsumerRiskReportResponse'
191
191
 
192
192
  # auth_names
193
193
  auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
194
194
 
195
195
  new_options = opts.merge(
196
- :operation => :"FuseApi.create_link_token",
196
+ :operation => :"FuseApi.create_consumer_risk_report",
197
197
  :header_params => header_params,
198
198
  :query_params => query_params,
199
199
  :form_params => form_params,
@@ -204,30 +204,28 @@ module FuseClient
204
204
 
205
205
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
206
206
  if @api_client.config.debugging
207
- @api_client.config.logger.debug "API called: FuseApi#create_link_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
207
+ @api_client.config.logger.debug "API called: FuseApi#create_consumer_risk_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
208
208
  end
209
209
  return data, status_code, headers
210
210
  end
211
211
 
212
- # Creates a session that returns a client_secret which is required as a parameter when initializing the Fuse SDK.
213
212
  # @param [Hash] opts the optional parameters
214
- # @option opts [CreateSessionRequest] :create_session_request
215
- # @return [CreateSessionResponse]
216
- def create_session(opts = {})
217
- data, _status_code, _headers = create_session_with_http_info(opts)
213
+ # @option opts [CreateConsumerRiskReportCustomizationRequest] :create_consumer_risk_report_customization_request
214
+ # @return [CreateConsumerRiskReportCustomizationResponse]
215
+ def create_consumer_risk_report_customization(opts = {})
216
+ data, _status_code, _headers = create_consumer_risk_report_customization_with_http_info(opts)
218
217
  data
219
218
  end
220
219
 
221
- # Creates a session that returns a client_secret which is required as a parameter when initializing the Fuse SDK.
222
220
  # @param [Hash] opts the optional parameters
223
- # @option opts [CreateSessionRequest] :create_session_request
224
- # @return [Array<(CreateSessionResponse, Integer, Hash)>] CreateSessionResponse data, response status code and response headers
225
- def create_session_with_http_info(opts = {})
221
+ # @option opts [CreateConsumerRiskReportCustomizationRequest] :create_consumer_risk_report_customization_request
222
+ # @return [Array<(CreateConsumerRiskReportCustomizationResponse, Integer, Hash)>] CreateConsumerRiskReportCustomizationResponse data, response status code and response headers
223
+ def create_consumer_risk_report_customization_with_http_info(opts = {})
226
224
  if @api_client.config.debugging
227
- @api_client.config.logger.debug 'Calling API: FuseApi.create_session ...'
225
+ @api_client.config.logger.debug 'Calling API: FuseApi.create_consumer_risk_report_customization ...'
228
226
  end
229
227
  # resource path
230
- local_var_path = '/v1/session'
228
+ local_var_path = '/v1/risk_report/consumer/customization'
231
229
 
232
230
  # query parameters
233
231
  query_params = opts[:query_params] || {}
@@ -246,16 +244,16 @@ module FuseClient
246
244
  form_params = opts[:form_params] || {}
247
245
 
248
246
  # http body (model)
249
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_session_request'])
247
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_consumer_risk_report_customization_request'])
250
248
 
251
249
  # return_type
252
- return_type = opts[:debug_return_type] || 'CreateSessionResponse'
250
+ return_type = opts[:debug_return_type] || 'CreateConsumerRiskReportCustomizationResponse'
253
251
 
254
252
  # auth_names
255
253
  auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
256
254
 
257
255
  new_options = opts.merge(
258
- :operation => :"FuseApi.create_session",
256
+ :operation => :"FuseApi.create_consumer_risk_report_customization",
259
257
  :header_params => header_params,
260
258
  :query_params => query_params,
261
259
  :form_params => form_params,
@@ -266,30 +264,30 @@ module FuseClient
266
264
 
267
265
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
268
266
  if @api_client.config.debugging
269
- @api_client.config.logger.debug "API called: FuseApi#create_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
267
+ @api_client.config.logger.debug "API called: FuseApi#create_consumer_risk_report_customization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
270
268
  end
271
269
  return data, status_code, headers
272
270
  end
273
271
 
274
- # Starts the background process that will determine the spend power depending on the customization passed in.
272
+ # Create a link token to start the process of a user connecting to a specific financial institution.
275
273
  # @param [Hash] opts the optional parameters
276
- # @option opts [CreateSpendPowerRequest] :create_spend_power_request
277
- # @return [CreateSpendPowerResponse]
278
- def create_spend_power(opts = {})
279
- data, _status_code, _headers = create_spend_power_with_http_info(opts)
274
+ # @option opts [CreateLinkTokenRequest] :create_link_token_request
275
+ # @return [CreateLinkTokenResponse]
276
+ def create_link_token(opts = {})
277
+ data, _status_code, _headers = create_link_token_with_http_info(opts)
280
278
  data
281
279
  end
282
280
 
283
- # Starts the background process that will determine the spend power depending on the customization passed in.
281
+ # Create a link token to start the process of a user connecting to a specific financial institution.
284
282
  # @param [Hash] opts the optional parameters
285
- # @option opts [CreateSpendPowerRequest] :create_spend_power_request
286
- # @return [Array<(CreateSpendPowerResponse, Integer, Hash)>] CreateSpendPowerResponse data, response status code and response headers
287
- def create_spend_power_with_http_info(opts = {})
283
+ # @option opts [CreateLinkTokenRequest] :create_link_token_request
284
+ # @return [Array<(CreateLinkTokenResponse, Integer, Hash)>] CreateLinkTokenResponse data, response status code and response headers
285
+ def create_link_token_with_http_info(opts = {})
288
286
  if @api_client.config.debugging
289
- @api_client.config.logger.debug 'Calling API: FuseApi.create_spend_power ...'
287
+ @api_client.config.logger.debug 'Calling API: FuseApi.create_link_token ...'
290
288
  end
291
289
  # resource path
292
- local_var_path = '/v1/spend_power'
290
+ local_var_path = '/v1/link/token'
293
291
 
294
292
  # query parameters
295
293
  query_params = opts[:query_params] || {}
@@ -308,16 +306,16 @@ module FuseClient
308
306
  form_params = opts[:form_params] || {}
309
307
 
310
308
  # http body (model)
311
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_spend_power_request'])
309
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_link_token_request'])
312
310
 
313
311
  # return_type
314
- return_type = opts[:debug_return_type] || 'CreateSpendPowerResponse'
312
+ return_type = opts[:debug_return_type] || 'CreateLinkTokenResponse'
315
313
 
316
314
  # auth_names
317
315
  auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
318
316
 
319
317
  new_options = opts.merge(
320
- :operation => :"FuseApi.create_spend_power",
318
+ :operation => :"FuseApi.create_link_token",
321
319
  :header_params => header_params,
322
320
  :query_params => query_params,
323
321
  :form_params => form_params,
@@ -328,28 +326,30 @@ module FuseClient
328
326
 
329
327
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
330
328
  if @api_client.config.debugging
331
- @api_client.config.logger.debug "API called: FuseApi#create_spend_power\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
329
+ @api_client.config.logger.debug "API called: FuseApi#create_link_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
332
330
  end
333
331
  return data, status_code, headers
334
332
  end
335
333
 
334
+ # Creates a session that returns a client_secret which is required as a parameter when initializing the Fuse SDK.
336
335
  # @param [Hash] opts the optional parameters
337
- # @option opts [CreateSpendPowerCustomizationRequest] :create_spend_power_customization_request
338
- # @return [CreateSpendPowerCustomizationResponse]
339
- def create_spend_power_customization(opts = {})
340
- data, _status_code, _headers = create_spend_power_customization_with_http_info(opts)
336
+ # @option opts [CreateSessionRequest] :create_session_request
337
+ # @return [CreateSessionResponse]
338
+ def create_session(opts = {})
339
+ data, _status_code, _headers = create_session_with_http_info(opts)
341
340
  data
342
341
  end
343
342
 
343
+ # Creates a session that returns a client_secret which is required as a parameter when initializing the Fuse SDK.
344
344
  # @param [Hash] opts the optional parameters
345
- # @option opts [CreateSpendPowerCustomizationRequest] :create_spend_power_customization_request
346
- # @return [Array<(CreateSpendPowerCustomizationResponse, Integer, Hash)>] CreateSpendPowerCustomizationResponse data, response status code and response headers
347
- def create_spend_power_customization_with_http_info(opts = {})
345
+ # @option opts [CreateSessionRequest] :create_session_request
346
+ # @return [Array<(CreateSessionResponse, Integer, Hash)>] CreateSessionResponse data, response status code and response headers
347
+ def create_session_with_http_info(opts = {})
348
348
  if @api_client.config.debugging
349
- @api_client.config.logger.debug 'Calling API: FuseApi.create_spend_power_customization ...'
349
+ @api_client.config.logger.debug 'Calling API: FuseApi.create_session ...'
350
350
  end
351
351
  # resource path
352
- local_var_path = '/v1/spend_power/customization'
352
+ local_var_path = '/v1/session'
353
353
 
354
354
  # query parameters
355
355
  query_params = opts[:query_params] || {}
@@ -368,16 +368,16 @@ module FuseClient
368
368
  form_params = opts[:form_params] || {}
369
369
 
370
370
  # http body (model)
371
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_spend_power_customization_request'])
371
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_session_request'])
372
372
 
373
373
  # return_type
374
- return_type = opts[:debug_return_type] || 'CreateSpendPowerCustomizationResponse'
374
+ return_type = opts[:debug_return_type] || 'CreateSessionResponse'
375
375
 
376
376
  # auth_names
377
377
  auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
378
378
 
379
379
  new_options = opts.merge(
380
- :operation => :"FuseApi.create_spend_power_customization",
380
+ :operation => :"FuseApi.create_session",
381
381
  :header_params => header_params,
382
382
  :query_params => query_params,
383
383
  :form_params => form_params,
@@ -388,7 +388,7 @@ module FuseClient
388
388
 
389
389
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
390
390
  if @api_client.config.debugging
391
- @api_client.config.logger.debug "API called: FuseApi#create_spend_power_customization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
391
+ @api_client.config.logger.debug "API called: FuseApi#create_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
392
392
  end
393
393
  return data, status_code, headers
394
394
  end
@@ -716,6 +716,70 @@ module FuseClient
716
716
  return data, status_code, headers
717
717
  end
718
718
 
719
+ # Get consumer risk report
720
+ # @param consumer_risk_report_id [String]
721
+ # @param [Hash] opts the optional parameters
722
+ # @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.
723
+ # @return [GetConsumerRiskReportResponse]
724
+ def get_consumer_risk_report(consumer_risk_report_id, opts = {})
725
+ data, _status_code, _headers = get_consumer_risk_report_with_http_info(consumer_risk_report_id, opts)
726
+ data
727
+ end
728
+
729
+ # Get consumer risk report
730
+ # @param consumer_risk_report_id [String]
731
+ # @param [Hash] opts the optional parameters
732
+ # @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.
733
+ # @return [Array<(GetConsumerRiskReportResponse, Integer, Hash)>] GetConsumerRiskReportResponse data, response status code and response headers
734
+ def get_consumer_risk_report_with_http_info(consumer_risk_report_id, opts = {})
735
+ if @api_client.config.debugging
736
+ @api_client.config.logger.debug 'Calling API: FuseApi.get_consumer_risk_report ...'
737
+ end
738
+ # verify the required parameter 'consumer_risk_report_id' is set
739
+ if @api_client.config.client_side_validation && consumer_risk_report_id.nil?
740
+ fail ArgumentError, "Missing the required parameter 'consumer_risk_report_id' when calling FuseApi.get_consumer_risk_report"
741
+ end
742
+ # resource path
743
+ local_var_path = '/v1/risk_report/consumer/{consumer_risk_report_id}'.sub('{' + 'consumer_risk_report_id' + '}', CGI.escape(consumer_risk_report_id.to_s))
744
+
745
+ # query parameters
746
+ query_params = opts[:query_params] || {}
747
+ query_params[:'recalculate'] = opts[:'recalculate'] if !opts[:'recalculate'].nil?
748
+
749
+ # header parameters
750
+ header_params = opts[:header_params] || {}
751
+ # HTTP header 'Accept' (if needed)
752
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
753
+
754
+ # form parameters
755
+ form_params = opts[:form_params] || {}
756
+
757
+ # http body (model)
758
+ post_body = opts[:debug_body]
759
+
760
+ # return_type
761
+ return_type = opts[:debug_return_type] || 'GetConsumerRiskReportResponse'
762
+
763
+ # auth_names
764
+ auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
765
+
766
+ new_options = opts.merge(
767
+ :operation => :"FuseApi.get_consumer_risk_report",
768
+ :header_params => header_params,
769
+ :query_params => query_params,
770
+ :form_params => form_params,
771
+ :body => post_body,
772
+ :auth_names => auth_names,
773
+ :return_type => return_type
774
+ )
775
+
776
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
777
+ if @api_client.config.debugging
778
+ @api_client.config.logger.debug "API called: FuseApi#get_consumer_risk_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
779
+ end
780
+ return data, status_code, headers
781
+ end
782
+
719
783
  # Get entity
720
784
  # An entity is automatically created after a successful connection. The id of the entity is what is set when calling the 'create session' endpoint
721
785
  # @param entity_id [String]
@@ -1488,67 +1552,6 @@ module FuseClient
1488
1552
  return data, status_code, headers
1489
1553
  end
1490
1554
 
1491
- # Get spend power
1492
- # @param spend_power_id [String]
1493
- # @param [Hash] opts the optional parameters
1494
- # @return [GetSpendPowerResponse]
1495
- def get_spend_power(spend_power_id, opts = {})
1496
- data, _status_code, _headers = get_spend_power_with_http_info(spend_power_id, opts)
1497
- data
1498
- end
1499
-
1500
- # Get spend power
1501
- # @param spend_power_id [String]
1502
- # @param [Hash] opts the optional parameters
1503
- # @return [Array<(GetSpendPowerResponse, Integer, Hash)>] GetSpendPowerResponse data, response status code and response headers
1504
- def get_spend_power_with_http_info(spend_power_id, opts = {})
1505
- if @api_client.config.debugging
1506
- @api_client.config.logger.debug 'Calling API: FuseApi.get_spend_power ...'
1507
- end
1508
- # verify the required parameter 'spend_power_id' is set
1509
- if @api_client.config.client_side_validation && spend_power_id.nil?
1510
- fail ArgumentError, "Missing the required parameter 'spend_power_id' when calling FuseApi.get_spend_power"
1511
- end
1512
- # resource path
1513
- local_var_path = '/v1/spend_power/{spend_power_id}'.sub('{' + 'spend_power_id' + '}', CGI.escape(spend_power_id.to_s))
1514
-
1515
- # query parameters
1516
- query_params = opts[:query_params] || {}
1517
-
1518
- # header parameters
1519
- header_params = opts[:header_params] || {}
1520
- # HTTP header 'Accept' (if needed)
1521
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1522
-
1523
- # form parameters
1524
- form_params = opts[:form_params] || {}
1525
-
1526
- # http body (model)
1527
- post_body = opts[:debug_body]
1528
-
1529
- # return_type
1530
- return_type = opts[:debug_return_type] || 'GetSpendPowerResponse'
1531
-
1532
- # auth_names
1533
- auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
1534
-
1535
- new_options = opts.merge(
1536
- :operation => :"FuseApi.get_spend_power",
1537
- :header_params => header_params,
1538
- :query_params => query_params,
1539
- :form_params => form_params,
1540
- :body => post_body,
1541
- :auth_names => auth_names,
1542
- :return_type => return_type
1543
- )
1544
-
1545
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1546
- if @api_client.config.debugging
1547
- @api_client.config.logger.debug "API called: FuseApi#get_spend_power\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1548
- end
1549
- return data, status_code, headers
1550
- end
1551
-
1552
1555
  # Migrate financial connection
1553
1556
  # 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's data, access token, ID, and request ID.
1554
1557
  # @param [Hash] opts the optional parameters
@@ -1743,31 +1746,31 @@ module FuseClient
1743
1746
  return data, status_code, headers
1744
1747
  end
1745
1748
 
1746
- # Update spend power customization
1747
- # @param spend_power_customization_id [String]
1749
+ # Update consumer risk report customization
1750
+ # @param consumer_risk_report_customization_id [String]
1748
1751
  # @param [Hash] opts the optional parameters
1749
- # @option opts [UpdateSpendPowerCustomizationRequest] :update_spend_power_customization_request
1750
- # @return [UpdateSpendPowerCustomizationResponse]
1751
- def update_spend_power_customization(spend_power_customization_id, opts = {})
1752
- data, _status_code, _headers = update_spend_power_customization_with_http_info(spend_power_customization_id, opts)
1752
+ # @option opts [UpdateConsumerRiskReportCustomizationRequest] :update_consumer_risk_report_customization_request
1753
+ # @return [UpdateConsumerRiskReportCustomizationResponse]
1754
+ def update_consumer_risk_report_customization(consumer_risk_report_customization_id, opts = {})
1755
+ data, _status_code, _headers = update_consumer_risk_report_customization_with_http_info(consumer_risk_report_customization_id, opts)
1753
1756
  data
1754
1757
  end
1755
1758
 
1756
- # Update spend power customization
1757
- # @param spend_power_customization_id [String]
1759
+ # Update consumer risk report customization
1760
+ # @param consumer_risk_report_customization_id [String]
1758
1761
  # @param [Hash] opts the optional parameters
1759
- # @option opts [UpdateSpendPowerCustomizationRequest] :update_spend_power_customization_request
1760
- # @return [Array<(UpdateSpendPowerCustomizationResponse, Integer, Hash)>] UpdateSpendPowerCustomizationResponse data, response status code and response headers
1761
- def update_spend_power_customization_with_http_info(spend_power_customization_id, opts = {})
1762
+ # @option opts [UpdateConsumerRiskReportCustomizationRequest] :update_consumer_risk_report_customization_request
1763
+ # @return [Array<(UpdateConsumerRiskReportCustomizationResponse, Integer, Hash)>] UpdateConsumerRiskReportCustomizationResponse data, response status code and response headers
1764
+ def update_consumer_risk_report_customization_with_http_info(consumer_risk_report_customization_id, opts = {})
1762
1765
  if @api_client.config.debugging
1763
- @api_client.config.logger.debug 'Calling API: FuseApi.update_spend_power_customization ...'
1766
+ @api_client.config.logger.debug 'Calling API: FuseApi.update_consumer_risk_report_customization ...'
1764
1767
  end
1765
- # verify the required parameter 'spend_power_customization_id' is set
1766
- if @api_client.config.client_side_validation && spend_power_customization_id.nil?
1767
- fail ArgumentError, "Missing the required parameter 'spend_power_customization_id' when calling FuseApi.update_spend_power_customization"
1768
+ # verify the required parameter 'consumer_risk_report_customization_id' is set
1769
+ if @api_client.config.client_side_validation && consumer_risk_report_customization_id.nil?
1770
+ fail ArgumentError, "Missing the required parameter 'consumer_risk_report_customization_id' when calling FuseApi.update_consumer_risk_report_customization"
1768
1771
  end
1769
1772
  # resource path
1770
- local_var_path = '/v1/spend_power/customization/{spend_power_customization_id}'.sub('{' + 'spend_power_customization_id' + '}', CGI.escape(spend_power_customization_id.to_s))
1773
+ local_var_path = '/v1/risk_report/consumer/customization/{consumer_risk_report_customization_id}'.sub('{' + 'consumer_risk_report_customization_id' + '}', CGI.escape(consumer_risk_report_customization_id.to_s))
1771
1774
 
1772
1775
  # query parameters
1773
1776
  query_params = opts[:query_params] || {}
@@ -1786,16 +1789,16 @@ module FuseClient
1786
1789
  form_params = opts[:form_params] || {}
1787
1790
 
1788
1791
  # http body (model)
1789
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_spend_power_customization_request'])
1792
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_consumer_risk_report_customization_request'])
1790
1793
 
1791
1794
  # return_type
1792
- return_type = opts[:debug_return_type] || 'UpdateSpendPowerCustomizationResponse'
1795
+ return_type = opts[:debug_return_type] || 'UpdateConsumerRiskReportCustomizationResponse'
1793
1796
 
1794
1797
  # auth_names
1795
1798
  auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
1796
1799
 
1797
1800
  new_options = opts.merge(
1798
- :operation => :"FuseApi.update_spend_power_customization",
1801
+ :operation => :"FuseApi.update_consumer_risk_report_customization",
1799
1802
  :header_params => header_params,
1800
1803
  :query_params => query_params,
1801
1804
  :form_params => form_params,
@@ -1806,7 +1809,7 @@ module FuseClient
1806
1809
 
1807
1810
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1808
1811
  if @api_client.config.debugging
1809
- @api_client.config.logger.debug "API called: FuseApi#update_spend_power_customization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1812
+ @api_client.config.logger.debug "API called: FuseApi#update_consumer_risk_report_customization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1810
1813
  end
1811
1814
  return data, status_code, headers
1812
1815
  end
@@ -13,47 +13,47 @@ OpenAPI Generator version: 6.6.0
13
13
  require 'cgi'
14
14
 
15
15
  module FuseClient
16
- class SpendPowerApi
16
+ class RiskReportApi
17
17
  attr_accessor :api_client
18
18
 
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Delete spend power customization
23
- # @param spend_power_id [String]
22
+ # Delete consumer risk report
23
+ # @param consumer_risk_report_id [String]
24
24
  # @param fuse_client_id [String]
25
25
  # @param fuse_api_key [String]
26
26
  # @param [Hash] opts the optional parameters
27
- # @return [DeleteSpendPowerResponse]
28
- def delete_spend_power(spend_power_id, fuse_client_id, fuse_api_key, opts = {})
29
- data, _status_code, _headers = delete_spend_power_with_http_info(spend_power_id, fuse_client_id, fuse_api_key, opts)
27
+ # @return [DeleteConsumerRiskReportResponse]
28
+ def delete_consumer_risk_report(consumer_risk_report_id, fuse_client_id, fuse_api_key, opts = {})
29
+ data, _status_code, _headers = delete_consumer_risk_report_with_http_info(consumer_risk_report_id, fuse_client_id, fuse_api_key, opts)
30
30
  data
31
31
  end
32
32
 
33
- # Delete spend power customization
34
- # @param spend_power_id [String]
33
+ # Delete consumer risk report
34
+ # @param consumer_risk_report_id [String]
35
35
  # @param fuse_client_id [String]
36
36
  # @param fuse_api_key [String]
37
37
  # @param [Hash] opts the optional parameters
38
- # @return [Array<(DeleteSpendPowerResponse, Integer, Hash)>] DeleteSpendPowerResponse data, response status code and response headers
39
- def delete_spend_power_with_http_info(spend_power_id, fuse_client_id, fuse_api_key, opts = {})
38
+ # @return [Array<(DeleteConsumerRiskReportResponse, Integer, Hash)>] DeleteConsumerRiskReportResponse data, response status code and response headers
39
+ def delete_consumer_risk_report_with_http_info(consumer_risk_report_id, fuse_client_id, fuse_api_key, opts = {})
40
40
  if @api_client.config.debugging
41
- @api_client.config.logger.debug 'Calling API: SpendPowerApi.delete_spend_power ...'
41
+ @api_client.config.logger.debug 'Calling API: RiskReportApi.delete_consumer_risk_report ...'
42
42
  end
43
- # verify the required parameter 'spend_power_id' is set
44
- if @api_client.config.client_side_validation && spend_power_id.nil?
45
- fail ArgumentError, "Missing the required parameter 'spend_power_id' when calling SpendPowerApi.delete_spend_power"
43
+ # verify the required parameter 'consumer_risk_report_id' is set
44
+ if @api_client.config.client_side_validation && consumer_risk_report_id.nil?
45
+ fail ArgumentError, "Missing the required parameter 'consumer_risk_report_id' when calling RiskReportApi.delete_consumer_risk_report"
46
46
  end
47
47
  # verify the required parameter 'fuse_client_id' is set
48
48
  if @api_client.config.client_side_validation && fuse_client_id.nil?
49
- fail ArgumentError, "Missing the required parameter 'fuse_client_id' when calling SpendPowerApi.delete_spend_power"
49
+ fail ArgumentError, "Missing the required parameter 'fuse_client_id' when calling RiskReportApi.delete_consumer_risk_report"
50
50
  end
51
51
  # verify the required parameter 'fuse_api_key' is set
52
52
  if @api_client.config.client_side_validation && fuse_api_key.nil?
53
- fail ArgumentError, "Missing the required parameter 'fuse_api_key' when calling SpendPowerApi.delete_spend_power"
53
+ fail ArgumentError, "Missing the required parameter 'fuse_api_key' when calling RiskReportApi.delete_consumer_risk_report"
54
54
  end
55
55
  # resource path
56
- local_var_path = '/v1/spend_power/{spend_power_id}'.sub('{' + 'spend_power_id' + '}', CGI.escape(spend_power_id.to_s))
56
+ local_var_path = '/v1/risk_report/consumer/{consumer_risk_report_id}'.sub('{' + 'consumer_risk_report_id' + '}', CGI.escape(consumer_risk_report_id.to_s))
57
57
 
58
58
  # query parameters
59
59
  query_params = opts[:query_params] || {}
@@ -72,13 +72,13 @@ module FuseClient
72
72
  post_body = opts[:debug_body]
73
73
 
74
74
  # return_type
75
- return_type = opts[:debug_return_type] || 'DeleteSpendPowerResponse'
75
+ return_type = opts[:debug_return_type] || 'DeleteConsumerRiskReportResponse'
76
76
 
77
77
  # auth_names
78
78
  auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
79
79
 
80
80
  new_options = opts.merge(
81
- :operation => :"SpendPowerApi.delete_spend_power",
81
+ :operation => :"RiskReportApi.delete_consumer_risk_report",
82
82
  :header_params => header_params,
83
83
  :query_params => query_params,
84
84
  :form_params => form_params,
@@ -89,46 +89,46 @@ module FuseClient
89
89
 
90
90
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
91
91
  if @api_client.config.debugging
92
- @api_client.config.logger.debug "API called: SpendPowerApi#delete_spend_power\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
92
+ @api_client.config.logger.debug "API called: RiskReportApi#delete_consumer_risk_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
93
93
  end
94
94
  return data, status_code, headers
95
95
  end
96
96
 
97
- # Get spend power customization
98
- # @param spend_power_customization_id [String]
97
+ # Get consumer risk report customization
98
+ # @param consumer_risk_report_customization_id [String]
99
99
  # @param fuse_client_id [String]
100
100
  # @param fuse_api_key [String]
101
101
  # @param [Hash] opts the optional parameters
102
- # @return [GetSpendPowerCustomizationResponse]
103
- def get_spend_power_customization(spend_power_customization_id, fuse_client_id, fuse_api_key, opts = {})
104
- data, _status_code, _headers = get_spend_power_customization_with_http_info(spend_power_customization_id, fuse_client_id, fuse_api_key, opts)
102
+ # @return [GetConsumerRiskReportCustomizationResponse]
103
+ def get_consumer_risk_report_customization(consumer_risk_report_customization_id, fuse_client_id, fuse_api_key, opts = {})
104
+ data, _status_code, _headers = get_consumer_risk_report_customization_with_http_info(consumer_risk_report_customization_id, fuse_client_id, fuse_api_key, opts)
105
105
  data
106
106
  end
107
107
 
108
- # Get spend power customization
109
- # @param spend_power_customization_id [String]
108
+ # Get consumer risk report customization
109
+ # @param consumer_risk_report_customization_id [String]
110
110
  # @param fuse_client_id [String]
111
111
  # @param fuse_api_key [String]
112
112
  # @param [Hash] opts the optional parameters
113
- # @return [Array<(GetSpendPowerCustomizationResponse, Integer, Hash)>] GetSpendPowerCustomizationResponse data, response status code and response headers
114
- def get_spend_power_customization_with_http_info(spend_power_customization_id, fuse_client_id, fuse_api_key, opts = {})
113
+ # @return [Array<(GetConsumerRiskReportCustomizationResponse, Integer, Hash)>] GetConsumerRiskReportCustomizationResponse data, response status code and response headers
114
+ def get_consumer_risk_report_customization_with_http_info(consumer_risk_report_customization_id, fuse_client_id, fuse_api_key, opts = {})
115
115
  if @api_client.config.debugging
116
- @api_client.config.logger.debug 'Calling API: SpendPowerApi.get_spend_power_customization ...'
116
+ @api_client.config.logger.debug 'Calling API: RiskReportApi.get_consumer_risk_report_customization ...'
117
117
  end
118
- # verify the required parameter 'spend_power_customization_id' is set
119
- if @api_client.config.client_side_validation && spend_power_customization_id.nil?
120
- fail ArgumentError, "Missing the required parameter 'spend_power_customization_id' when calling SpendPowerApi.get_spend_power_customization"
118
+ # verify the required parameter 'consumer_risk_report_customization_id' is set
119
+ if @api_client.config.client_side_validation && consumer_risk_report_customization_id.nil?
120
+ fail ArgumentError, "Missing the required parameter 'consumer_risk_report_customization_id' when calling RiskReportApi.get_consumer_risk_report_customization"
121
121
  end
122
122
  # verify the required parameter 'fuse_client_id' is set
123
123
  if @api_client.config.client_side_validation && fuse_client_id.nil?
124
- fail ArgumentError, "Missing the required parameter 'fuse_client_id' when calling SpendPowerApi.get_spend_power_customization"
124
+ fail ArgumentError, "Missing the required parameter 'fuse_client_id' when calling RiskReportApi.get_consumer_risk_report_customization"
125
125
  end
126
126
  # verify the required parameter 'fuse_api_key' is set
127
127
  if @api_client.config.client_side_validation && fuse_api_key.nil?
128
- fail ArgumentError, "Missing the required parameter 'fuse_api_key' when calling SpendPowerApi.get_spend_power_customization"
128
+ fail ArgumentError, "Missing the required parameter 'fuse_api_key' when calling RiskReportApi.get_consumer_risk_report_customization"
129
129
  end
130
130
  # resource path
131
- local_var_path = '/v1/spend_power/customization/{spend_power_customization_id}'.sub('{' + 'spend_power_customization_id' + '}', CGI.escape(spend_power_customization_id.to_s))
131
+ local_var_path = '/v1/risk_report/consumer/customization/{consumer_risk_report_customization_id}'.sub('{' + 'consumer_risk_report_customization_id' + '}', CGI.escape(consumer_risk_report_customization_id.to_s))
132
132
 
133
133
  # query parameters
134
134
  query_params = opts[:query_params] || {}
@@ -147,13 +147,13 @@ module FuseClient
147
147
  post_body = opts[:debug_body]
148
148
 
149
149
  # return_type
150
- return_type = opts[:debug_return_type] || 'GetSpendPowerCustomizationResponse'
150
+ return_type = opts[:debug_return_type] || 'GetConsumerRiskReportCustomizationResponse'
151
151
 
152
152
  # auth_names
153
153
  auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
154
154
 
155
155
  new_options = opts.merge(
156
- :operation => :"SpendPowerApi.get_spend_power_customization",
156
+ :operation => :"RiskReportApi.get_consumer_risk_report_customization",
157
157
  :header_params => header_params,
158
158
  :query_params => query_params,
159
159
  :form_params => form_params,
@@ -164,7 +164,7 @@ module FuseClient
164
164
 
165
165
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
166
166
  if @api_client.config.debugging
167
- @api_client.config.logger.debug "API called: SpendPowerApi#get_spend_power_customization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
167
+ @api_client.config.logger.debug "API called: RiskReportApi#get_consumer_risk_report_customization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
168
168
  end
169
169
  return data, status_code, headers
170
170
  end