fuse_client 1.0.37 → 1.0.38
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 +3 -3
- data/docs/{SpendPower.md → ConsumerRiskReport.md} +5 -5
- data/docs/{SpendPowerCustomization.md → ConsumerRiskReportCustomization.md} +6 -6
- data/docs/{SpendPowerTimeFrame.md → ConsumerRiskReportTimeFrame.md} +2 -2
- data/docs/{CreateSpendPowerCustomizationRequest.md → CreateConsumerRiskReportCustomizationRequest.md} +5 -5
- data/docs/{CreateSpendPowerCustomizationResponse.md → CreateConsumerRiskReportCustomizationResponse.md} +2 -2
- data/docs/{CreateSpendPowerRequest.md → CreateConsumerRiskReportRequest.md} +4 -4
- data/docs/{DeleteSpendPowerResponse.md → CreateConsumerRiskReportResponse.md} +3 -3
- data/docs/{CreateSpendPowerResponse.md → DeleteConsumerRiskReportResponse.md} +3 -3
- data/docs/EvalConsumerRiskReportRequest.md +22 -0
- data/docs/{EvalSpendPowerRequestEventsInner.md → EvalConsumerRiskReportRequestEventsInner.md} +2 -2
- data/docs/{EvalSpendPowerResponse.md → EvalConsumerRiskReportResponse.md} +2 -2
- data/docs/ExternalTransactionEvent.md +2 -2
- data/docs/FinancialConnectionDetails.md +5 -1
- data/docs/FinancialConnectionDetailsBasiq.md +20 -0
- data/docs/FinancialConnectionDetailsBelvo.md +20 -0
- data/docs/FinancialConnectionsInvestmentSecurityExchange.md +3 -1
- data/docs/FinancialConnectionsOwnerAddressesInnerData.md +2 -0
- data/docs/FuseApi.md +152 -148
- data/docs/{GetSpendPowerCustomizationResponse.md → GetConsumerRiskReportCustomizationResponse.md} +4 -4
- data/docs/{GetSpendPowerResponse.md → GetConsumerRiskReportResponse.md} +4 -4
- data/docs/InAppTransactionEvent.md +1 -1
- data/docs/RiskReportApi.md +165 -0
- data/docs/Transaction.md +1 -1
- data/docs/{UpdateSpendPowerCustomizationRequest.md → UpdateConsumerRiskReportCustomizationRequest.md} +5 -5
- data/docs/{UpdateSpendPowerCustomizationResponse.md → UpdateConsumerRiskReportCustomizationResponse.md} +2 -2
- data/docs/UpdatedBalanceEvent.md +2 -2
- data/fuse_client-1.0.37.gem +0 -0
- data/lib/fuse_client/api/fuse_api.rb +142 -139
- data/lib/fuse_client/api/{spend_power_api.rb → risk_report_api.rb} +39 -39
- data/lib/fuse_client/models/account_subtype.rb +3 -2
- data/lib/fuse_client/models/aggregator.rb +3 -1
- data/lib/fuse_client/models/{spend_power.rb → consumer_risk_report.rb} +4 -6
- data/lib/fuse_client/models/{spend_power_customization.rb → consumer_risk_report_customization.rb} +6 -7
- data/lib/fuse_client/models/{spend_power_time_frame.rb → consumer_risk_report_time_frame.rb} +3 -3
- data/lib/fuse_client/models/{create_spend_power_customization_request.rb → create_consumer_risk_report_customization_request.rb} +6 -6
- data/lib/fuse_client/models/{create_spend_power_customization_response.rb → create_consumer_risk_report_customization_response.rb} +3 -3
- data/lib/fuse_client/models/{create_spend_power_request.rb → create_consumer_risk_report_request.rb} +5 -5
- data/lib/fuse_client/models/{delete_spend_power_response.rb → create_consumer_risk_report_response.rb} +3 -4
- data/lib/fuse_client/models/{create_spend_power_response.rb → delete_consumer_risk_report_response.rb} +3 -4
- data/lib/fuse_client/models/{eval_spend_power_request.rb → eval_consumer_risk_report_request.rb} +5 -5
- data/lib/fuse_client/models/{eval_spend_power_request_events_inner.rb → eval_consumer_risk_report_request_events_inner.rb} +3 -3
- data/lib/fuse_client/models/{eval_spend_power_response.rb → eval_consumer_risk_report_response.rb} +3 -3
- data/lib/fuse_client/models/external_transaction_event.rb +1 -6
- data/lib/fuse_client/models/financial_connection_details.rb +22 -4
- data/lib/fuse_client/models/financial_connection_details_basiq.rb +241 -0
- data/lib/fuse_client/models/financial_connection_details_belvo.rb +236 -0
- data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +14 -4
- data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +11 -1
- data/lib/fuse_client/models/fuse_api_error_code.rb +6 -3
- data/lib/fuse_client/models/get_consumer_risk_report_customization_response.rb +239 -0
- data/lib/fuse_client/models/{get_spend_power_response.rb → get_consumer_risk_report_response.rb} +13 -13
- data/lib/fuse_client/models/in_app_transaction_event.rb +0 -5
- data/lib/fuse_client/models/transaction.rb +1 -1
- data/lib/fuse_client/models/{update_spend_power_customization_request.rb → update_consumer_risk_report_customization_request.rb} +6 -6
- data/lib/fuse_client/models/{update_spend_power_customization_response.rb → update_consumer_risk_report_customization_response.rb} +3 -3
- data/lib/fuse_client/models/updated_balance_event.rb +2 -2
- data/lib/fuse_client/version.rb +1 -1
- data/lib/fuse_client.rb +18 -16
- data/spec/api/fuse_api_spec.rb +37 -36
- data/spec/api/{spend_power_api_spec.rb → risk_report_api_spec.rb} +16 -16
- data/spec/models/{spend_power_customization_spec.rb → consumer_risk_report_customization_spec.rb} +6 -6
- data/spec/models/{spend_power_spec.rb → consumer_risk_report_spec.rb} +6 -6
- data/spec/models/{spend_power_time_frame_spec.rb → consumer_risk_report_time_frame_spec.rb} +6 -6
- data/spec/models/{create_spend_power_customization_request_spec.rb → create_consumer_risk_report_customization_request_spec.rb} +6 -6
- data/spec/models/{create_spend_power_customization_response_spec.rb → create_consumer_risk_report_customization_response_spec.rb} +6 -6
- data/spec/models/{create_spend_power_request_spec.rb → create_consumer_risk_report_request_spec.rb} +6 -6
- data/spec/models/{delete_spend_power_response_spec.rb → create_consumer_risk_report_response_spec.rb} +6 -6
- data/spec/models/{create_spend_power_response_spec.rb → delete_consumer_risk_report_response_spec.rb} +6 -6
- data/spec/models/{eval_spend_power_request_events_inner_spec.rb → eval_consumer_risk_report_request_events_inner_spec.rb} +6 -6
- data/spec/models/{eval_spend_power_request_spec.rb → eval_consumer_risk_report_request_spec.rb} +6 -6
- data/spec/models/{eval_spend_power_response_spec.rb → eval_consumer_risk_report_response_spec.rb} +6 -6
- data/spec/models/financial_connection_details_basiq_spec.rb +40 -0
- data/spec/models/financial_connection_details_belvo_spec.rb +40 -0
- data/spec/models/financial_connection_details_spec.rb +12 -0
- data/spec/models/financial_connections_investment_security_exchange_spec.rb +6 -0
- data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +6 -0
- data/spec/models/{get_spend_power_customization_response_spec.rb → get_consumer_risk_report_customization_response_spec.rb} +7 -7
- data/spec/models/{get_spend_power_response_spec.rb → get_consumer_risk_report_response_spec.rb} +7 -7
- data/spec/models/{update_spend_power_customization_request_spec.rb → update_consumer_risk_report_customization_request_spec.rb} +6 -6
- data/spec/models/{update_spend_power_customization_response_spec.rb → update_consumer_risk_report_customization_response_spec.rb} +6 -6
- metadata +74 -65
- data/docs/EvalSpendPowerRequest.md +0 -22
- data/docs/SpendPowerApi.md +0 -165
- data/lib/fuse_client/models/get_spend_power_customization_response.rb +0 -239
@@ -147,25 +147,25 @@ module FuseClient
|
|
147
147
|
return data, status_code, headers
|
148
148
|
end
|
149
149
|
|
150
|
-
#
|
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 [
|
153
|
-
# @return [
|
154
|
-
def
|
155
|
-
data, _status_code, _headers =
|
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
|
-
#
|
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 [
|
162
|
-
# @return [Array<(
|
163
|
-
def
|
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.
|
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/
|
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[:'
|
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] || '
|
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.
|
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#
|
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 [
|
215
|
-
# @return [
|
216
|
-
def
|
217
|
-
data, _status_code, _headers =
|
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 [
|
224
|
-
# @return [Array<(
|
225
|
-
def
|
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.
|
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/
|
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[:'
|
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] || '
|
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.
|
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#
|
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
|
-
#
|
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 [
|
277
|
-
# @return [
|
278
|
-
def
|
279
|
-
data, _status_code, _headers =
|
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
|
-
#
|
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 [
|
286
|
-
# @return [Array<(
|
287
|
-
def
|
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.
|
287
|
+
@api_client.config.logger.debug 'Calling API: FuseApi.create_link_token ...'
|
290
288
|
end
|
291
289
|
# resource path
|
292
|
-
local_var_path = '/v1/
|
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[:'
|
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] || '
|
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.
|
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#
|
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 [
|
338
|
-
# @return [
|
339
|
-
def
|
340
|
-
data, _status_code, _headers =
|
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 [
|
346
|
-
# @return [Array<(
|
347
|
-
def
|
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.
|
349
|
+
@api_client.config.logger.debug 'Calling API: FuseApi.create_session ...'
|
350
350
|
end
|
351
351
|
# resource path
|
352
|
-
local_var_path = '/v1/
|
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[:'
|
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] || '
|
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.
|
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#
|
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
|
1747
|
-
# @param
|
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 [
|
1750
|
-
# @return [
|
1751
|
-
def
|
1752
|
-
data, _status_code, _headers =
|
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
|
1757
|
-
# @param
|
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 [
|
1760
|
-
# @return [Array<(
|
1761
|
-
def
|
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.
|
1766
|
+
@api_client.config.logger.debug 'Calling API: FuseApi.update_consumer_risk_report_customization ...'
|
1764
1767
|
end
|
1765
|
-
# verify the required parameter '
|
1766
|
-
if @api_client.config.client_side_validation &&
|
1767
|
-
fail ArgumentError, "Missing the required parameter '
|
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/
|
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[:'
|
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] || '
|
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.
|
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#
|
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
|
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
|
23
|
-
# @param
|
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 [
|
28
|
-
def
|
29
|
-
data, _status_code, _headers =
|
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
|
34
|
-
# @param
|
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<(
|
39
|
-
def
|
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:
|
41
|
+
@api_client.config.logger.debug 'Calling API: RiskReportApi.delete_consumer_risk_report ...'
|
42
42
|
end
|
43
|
-
# verify the required parameter '
|
44
|
-
if @api_client.config.client_side_validation &&
|
45
|
-
fail ArgumentError, "Missing the required parameter '
|
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
|
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
|
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/
|
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] || '
|
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 => :"
|
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:
|
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
|
98
|
-
# @param
|
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 [
|
103
|
-
def
|
104
|
-
data, _status_code, _headers =
|
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
|
109
|
-
# @param
|
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<(
|
114
|
-
def
|
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:
|
116
|
+
@api_client.config.logger.debug 'Calling API: RiskReportApi.get_consumer_risk_report_customization ...'
|
117
117
|
end
|
118
|
-
# verify the required parameter '
|
119
|
-
if @api_client.config.client_side_validation &&
|
120
|
-
fail ArgumentError, "Missing the required parameter '
|
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
|
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
|
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/
|
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] || '
|
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 => :"
|
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:
|
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
|