fuse_client 1.0.33 → 1.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +6 -1
  4. data/docs/AddAccountEventsRequest.md +18 -0
  5. data/docs/AddAccountEventsRequestEventsInner.md +51 -0
  6. data/docs/{AddSpendPowerTransactionResponse.md → AddAccountEventsResponse.md} +2 -2
  7. data/docs/AssetReportTransaction.md +1 -1
  8. data/docs/CreateSessionRequest.md +1 -1
  9. data/docs/CreateSpendPowerCustomizationRequest.md +22 -0
  10. data/docs/CreateSpendPowerRequest.md +5 -5
  11. data/docs/CreateSpendPowerResponse.md +1 -1
  12. data/docs/DeleteSpendPowerResponse.md +2 -2
  13. data/docs/EnrichTransactionsRequest.md +18 -0
  14. data/docs/EnrichTransactionsResponse.md +18 -0
  15. data/docs/EnrichedTransaction.md +46 -0
  16. data/docs/EnrichedTransactionLogo.md +18 -0
  17. data/docs/EvalSpendPowerRequest.md +22 -0
  18. data/docs/EvalSpendPowerRequestEventsInner.md +20 -0
  19. data/docs/EvalSpendPowerResponse.md +20 -0
  20. data/docs/ExternalTransactionEvent.md +36 -0
  21. data/docs/ExternalTransactionEventStatus.md +15 -0
  22. data/docs/FinancialConnectionsAccountBalance.md +2 -2
  23. data/docs/FinancialConnectionsAccountCachedBalance.md +2 -2
  24. data/docs/FinancialConnectionsHolding.md +3 -3
  25. data/docs/FinancialConnectionsInvestmentSecurity.md +1 -1
  26. data/docs/FinancialConnectionsInvestmentTransaction.md +5 -3
  27. data/docs/FinancialConnectionsInvestmentTransactionSubtype.md +15 -0
  28. data/docs/FuseApi.md +193 -35
  29. data/docs/GetFinanceScoreResponse.md +20 -0
  30. data/docs/GetInvestmentTransactionsRequest.md +4 -4
  31. data/docs/GetSpendPowerCustomizationResponse.md +20 -0
  32. data/docs/InAppTransactionEvent.md +34 -0
  33. data/docs/InAppTransactionEventStatus.md +15 -0
  34. data/docs/SpendPower.md +6 -6
  35. data/docs/SpendPowerApi.md +87 -44
  36. data/docs/SpendPowerCustomization.md +5 -3
  37. data/docs/SpendPowerTimeFrame.md +15 -0
  38. data/docs/Transaction.md +1 -1
  39. data/docs/TransactionCategory.md +20 -0
  40. data/docs/TransactionCategoryDetailed.md +15 -0
  41. data/docs/TransactionCategoryPrimary.md +15 -0
  42. data/docs/TransactionEventType.md +15 -0
  43. data/docs/TransactionToEnrich.md +26 -0
  44. data/docs/UpdateSpendPowerCustomizationRequest.md +22 -0
  45. data/docs/UpdatedBalanceEvent.md +26 -0
  46. data/lib/fuse_client/api/fuse_api.rb +176 -31
  47. data/lib/fuse_client/api/spend_power_api.rb +78 -52
  48. data/lib/fuse_client/models/add_account_events_request.rb +254 -0
  49. data/lib/fuse_client/models/add_account_events_request_events_inner.rb +106 -0
  50. data/lib/fuse_client/models/{add_spend_power_transaction_response.rb → add_account_events_response.rb} +3 -3
  51. data/lib/fuse_client/models/asset_report_transaction.rb +1 -1
  52. data/lib/fuse_client/models/country_code.rb +2 -1
  53. data/lib/fuse_client/models/create_session_request.rb +1 -1
  54. data/lib/fuse_client/models/create_spend_power_customization_request.rb +314 -0
  55. data/lib/fuse_client/models/create_spend_power_request.rb +22 -22
  56. data/lib/fuse_client/models/create_spend_power_response.rb +1 -1
  57. data/lib/fuse_client/models/delete_spend_power_response.rb +11 -10
  58. data/lib/fuse_client/models/enrich_transactions_request.rb +226 -0
  59. data/lib/fuse_client/models/enrich_transactions_response.rb +222 -0
  60. data/lib/fuse_client/models/enriched_transaction.rb +397 -0
  61. data/lib/fuse_client/models/enriched_transaction_logo.rb +220 -0
  62. data/lib/fuse_client/models/eval_spend_power_request.rb +296 -0
  63. data/lib/fuse_client/models/eval_spend_power_request_events_inner.rb +239 -0
  64. data/lib/fuse_client/models/eval_spend_power_response.rb +230 -0
  65. data/lib/fuse_client/models/external_transaction_event.rb +384 -0
  66. data/lib/fuse_client/models/external_transaction_event_status.rb +40 -0
  67. data/lib/fuse_client/models/financial_connections_account_balance.rb +2 -2
  68. data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +2 -2
  69. data/lib/fuse_client/models/financial_connections_holding.rb +3 -3
  70. data/lib/fuse_client/models/financial_connections_investment_security.rb +1 -1
  71. data/lib/fuse_client/models/financial_connections_investment_transaction.rb +13 -4
  72. data/lib/fuse_client/models/financial_connections_investment_transaction_subtype.rb +87 -0
  73. data/lib/fuse_client/models/fuse_api_error_code.rb +3 -1
  74. data/lib/fuse_client/models/get_finance_score_response.rb +240 -0
  75. data/lib/fuse_client/models/get_investment_transactions_request.rb +37 -9
  76. data/lib/fuse_client/models/get_spend_power_customization_response.rb +239 -0
  77. data/lib/fuse_client/models/in_app_transaction_event.rb +364 -0
  78. data/lib/fuse_client/models/in_app_transaction_event_status.rb +41 -0
  79. data/lib/fuse_client/models/spend_power.rb +18 -18
  80. data/lib/fuse_client/models/spend_power_customization.rb +54 -14
  81. data/lib/fuse_client/models/spend_power_time_frame.rb +41 -0
  82. data/lib/fuse_client/models/transaction.rb +1 -1
  83. data/lib/fuse_client/models/transaction_category.rb +260 -0
  84. data/lib/fuse_client/models/transaction_category_detailed.rb +135 -0
  85. data/lib/fuse_client/models/transaction_category_primary.rb +59 -0
  86. data/lib/fuse_client/models/transaction_event_type.rb +65 -0
  87. data/lib/fuse_client/models/{add_spend_power_transaction_request.rb → transaction_to_enrich.rb} +47 -27
  88. data/lib/fuse_client/models/update_spend_power_customization_request.rb +291 -0
  89. data/lib/fuse_client/models/updated_balance_event.rb +308 -0
  90. data/lib/fuse_client/version.rb +1 -1
  91. data/lib/fuse_client.rb +26 -2
  92. data/spec/api/fuse_api_spec.rb +33 -7
  93. data/spec/api/spend_power_api_spec.rb +14 -17
  94. data/spec/models/add_account_events_request_events_inner_spec.rb +31 -0
  95. data/spec/models/add_account_events_request_spec.rb +34 -0
  96. data/spec/models/{add_spend_power_transaction_response_spec.rb → add_account_events_response_spec.rb} +6 -6
  97. data/spec/models/create_spend_power_customization_request_spec.rb +46 -0
  98. data/spec/models/create_spend_power_request_spec.rb +2 -2
  99. data/spec/models/delete_spend_power_response_spec.rb +1 -1
  100. data/spec/models/enrich_transactions_request_spec.rb +34 -0
  101. data/spec/models/enrich_transactions_response_spec.rb +34 -0
  102. data/spec/models/enriched_transaction_logo_spec.rb +34 -0
  103. data/spec/models/enriched_transaction_spec.rb +122 -0
  104. data/spec/models/eval_spend_power_request_events_inner_spec.rb +40 -0
  105. data/spec/models/eval_spend_power_request_spec.rb +46 -0
  106. data/spec/models/eval_spend_power_response_spec.rb +40 -0
  107. data/spec/models/external_transaction_event_spec.rb +92 -0
  108. data/spec/models/external_transaction_event_status_spec.rb +28 -0
  109. data/spec/models/financial_connections_investment_transaction_spec.rb +6 -0
  110. data/spec/models/financial_connections_investment_transaction_subtype_spec.rb +28 -0
  111. data/spec/models/get_finance_score_response_spec.rb +40 -0
  112. data/spec/models/get_spend_power_customization_response_spec.rb +40 -0
  113. data/spec/models/in_app_transaction_event_spec.rb +86 -0
  114. data/spec/models/in_app_transaction_event_status_spec.rb +28 -0
  115. data/spec/models/spend_power_customization_spec.rb +6 -4
  116. data/spec/models/spend_power_spec.rb +1 -1
  117. data/spec/models/spend_power_time_frame_spec.rb +28 -0
  118. data/spec/models/transaction_category_detailed_spec.rb +28 -0
  119. data/spec/models/transaction_category_primary_spec.rb +28 -0
  120. data/spec/models/transaction_category_spec.rb +40 -0
  121. data/spec/models/transaction_event_type_spec.rb +28 -0
  122. data/spec/models/{add_spend_power_transaction_request_spec.rb → transaction_to_enrich_spec.rb} +23 -11
  123. data/spec/models/update_spend_power_customization_request_spec.rb +46 -0
  124. data/spec/models/updated_balance_event_spec.rb +62 -0
  125. metadata +106 -10
  126. data/docs/AddSpendPowerTransactionRequest.md +0 -22
@@ -19,29 +19,29 @@ module FuseClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # @param spend_power_id [String]
22
+ # @param account_id [String]
23
23
  # @param [Hash] opts the optional parameters
24
- # @option opts [AddSpendPowerTransactionRequest] :add_spend_power_transaction_request
25
- # @return [AddSpendPowerTransactionResponse]
26
- def add_spend_power_transaction(spend_power_id, opts = {})
27
- data, _status_code, _headers = add_spend_power_transaction_with_http_info(spend_power_id, opts)
24
+ # @option opts [AddAccountEventsRequest] :add_account_events_request
25
+ # @return [AddAccountEventsResponse]
26
+ def add_account_events(account_id, opts = {})
27
+ data, _status_code, _headers = add_account_events_with_http_info(account_id, opts)
28
28
  data
29
29
  end
30
30
 
31
- # @param spend_power_id [String]
31
+ # @param account_id [String]
32
32
  # @param [Hash] opts the optional parameters
33
- # @option opts [AddSpendPowerTransactionRequest] :add_spend_power_transaction_request
34
- # @return [Array<(AddSpendPowerTransactionResponse, Integer, Hash)>] AddSpendPowerTransactionResponse data, response status code and response headers
35
- def add_spend_power_transaction_with_http_info(spend_power_id, opts = {})
33
+ # @option opts [AddAccountEventsRequest] :add_account_events_request
34
+ # @return [Array<(AddAccountEventsResponse, Integer, Hash)>] AddAccountEventsResponse data, response status code and response headers
35
+ def add_account_events_with_http_info(account_id, opts = {})
36
36
  if @api_client.config.debugging
37
- @api_client.config.logger.debug 'Calling API: FuseApi.add_spend_power_transaction ...'
37
+ @api_client.config.logger.debug 'Calling API: FuseApi.add_account_events ...'
38
38
  end
39
- # verify the required parameter 'spend_power_id' is set
40
- if @api_client.config.client_side_validation && spend_power_id.nil?
41
- fail ArgumentError, "Missing the required parameter 'spend_power_id' when calling FuseApi.add_spend_power_transaction"
39
+ # verify the required parameter 'account_id' is set
40
+ if @api_client.config.client_side_validation && account_id.nil?
41
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling FuseApi.add_account_events"
42
42
  end
43
43
  # resource path
44
- local_var_path = '/v1/financial_connections/spend-power/{spend_power_id}/transaction'.sub('{' + 'spend_power_id' + '}', CGI.escape(spend_power_id.to_s))
44
+ local_var_path = '/v1/accounts/{account_id}/events'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
45
45
 
46
46
  # query parameters
47
47
  query_params = opts[:query_params] || {}
@@ -60,16 +60,16 @@ module FuseClient
60
60
  form_params = opts[:form_params] || {}
61
61
 
62
62
  # http body (model)
63
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'add_spend_power_transaction_request'])
63
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'add_account_events_request'])
64
64
 
65
65
  # return_type
66
- return_type = opts[:debug_return_type] || 'AddSpendPowerTransactionResponse'
66
+ return_type = opts[:debug_return_type] || 'AddAccountEventsResponse'
67
67
 
68
68
  # auth_names
69
69
  auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
70
70
 
71
71
  new_options = opts.merge(
72
- :operation => :"FuseApi.add_spend_power_transaction",
72
+ :operation => :"FuseApi.add_account_events",
73
73
  :header_params => header_params,
74
74
  :query_params => query_params,
75
75
  :form_params => form_params,
@@ -80,7 +80,7 @@ module FuseClient
80
80
 
81
81
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
82
82
  if @api_client.config.debugging
83
- @api_client.config.logger.debug "API called: FuseApi#add_spend_power_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
83
+ @api_client.config.logger.debug "API called: FuseApi#add_account_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
84
  end
85
85
  return data, status_code, headers
86
86
  end
@@ -289,7 +289,7 @@ module FuseClient
289
289
  @api_client.config.logger.debug 'Calling API: FuseApi.create_spend_power ...'
290
290
  end
291
291
  # resource path
292
- local_var_path = '/v1/financial_connections/spend-power'
292
+ local_var_path = '/v1/spend_power'
293
293
 
294
294
  # query parameters
295
295
  query_params = opts[:query_params] || {}
@@ -334,7 +334,7 @@ module FuseClient
334
334
  end
335
335
 
336
336
  # @param [Hash] opts the optional parameters
337
- # @option opts [SpendPowerCustomization] :body
337
+ # @option opts [CreateSpendPowerCustomizationRequest] :create_spend_power_customization_request
338
338
  # @return [CreateSpendPowerCustomizationResponse]
339
339
  def create_spend_power_customization(opts = {})
340
340
  data, _status_code, _headers = create_spend_power_customization_with_http_info(opts)
@@ -342,14 +342,14 @@ module FuseClient
342
342
  end
343
343
 
344
344
  # @param [Hash] opts the optional parameters
345
- # @option opts [SpendPowerCustomization] :body
345
+ # @option opts [CreateSpendPowerCustomizationRequest] :create_spend_power_customization_request
346
346
  # @return [Array<(CreateSpendPowerCustomizationResponse, Integer, Hash)>] CreateSpendPowerCustomizationResponse data, response status code and response headers
347
347
  def create_spend_power_customization_with_http_info(opts = {})
348
348
  if @api_client.config.debugging
349
349
  @api_client.config.logger.debug 'Calling API: FuseApi.create_spend_power_customization ...'
350
350
  end
351
351
  # resource path
352
- local_var_path = '/v1/financial_connections/spend-power/customization'
352
+ local_var_path = '/v1/spend_power/customization'
353
353
 
354
354
  # query parameters
355
355
  query_params = opts[:query_params] || {}
@@ -368,7 +368,7 @@ 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[:'body'])
371
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_spend_power_customization_request'])
372
372
 
373
373
  # return_type
374
374
  return_type = opts[:debug_return_type] || 'CreateSpendPowerCustomizationResponse'
@@ -454,6 +454,80 @@ module FuseClient
454
454
  return data, status_code, headers
455
455
  end
456
456
 
457
+ # @param fuse_client_id [String]
458
+ # @param fuse_api_key [String]
459
+ # @param [Hash] opts the optional parameters
460
+ # @option opts [EnrichTransactionsRequest] :enrich_transactions_request
461
+ # @return [EnrichTransactionsResponse]
462
+ def enrich_transactions(fuse_client_id, fuse_api_key, opts = {})
463
+ data, _status_code, _headers = enrich_transactions_with_http_info(fuse_client_id, fuse_api_key, opts)
464
+ data
465
+ end
466
+
467
+ # @param fuse_client_id [String]
468
+ # @param fuse_api_key [String]
469
+ # @param [Hash] opts the optional parameters
470
+ # @option opts [EnrichTransactionsRequest] :enrich_transactions_request
471
+ # @return [Array<(EnrichTransactionsResponse, Integer, Hash)>] EnrichTransactionsResponse data, response status code and response headers
472
+ def enrich_transactions_with_http_info(fuse_client_id, fuse_api_key, opts = {})
473
+ if @api_client.config.debugging
474
+ @api_client.config.logger.debug 'Calling API: FuseApi.enrich_transactions ...'
475
+ end
476
+ # verify the required parameter 'fuse_client_id' is set
477
+ if @api_client.config.client_side_validation && fuse_client_id.nil?
478
+ fail ArgumentError, "Missing the required parameter 'fuse_client_id' when calling FuseApi.enrich_transactions"
479
+ end
480
+ # verify the required parameter 'fuse_api_key' is set
481
+ if @api_client.config.client_side_validation && fuse_api_key.nil?
482
+ fail ArgumentError, "Missing the required parameter 'fuse_api_key' when calling FuseApi.enrich_transactions"
483
+ end
484
+ # resource path
485
+ local_var_path = '/v1/transactions/enrich'
486
+
487
+ # query parameters
488
+ query_params = opts[:query_params] || {}
489
+
490
+ # header parameters
491
+ header_params = opts[:header_params] || {}
492
+ # HTTP header 'Accept' (if needed)
493
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
494
+ # HTTP header 'Content-Type'
495
+ content_type = @api_client.select_header_content_type(['application/json'])
496
+ if !content_type.nil?
497
+ header_params['Content-Type'] = content_type
498
+ end
499
+ header_params[:'Fuse-Client-Id'] = fuse_client_id
500
+ header_params[:'Fuse-Api-Key'] = fuse_api_key
501
+
502
+ # form parameters
503
+ form_params = opts[:form_params] || {}
504
+
505
+ # http body (model)
506
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'enrich_transactions_request'])
507
+
508
+ # return_type
509
+ return_type = opts[:debug_return_type] || 'EnrichTransactionsResponse'
510
+
511
+ # auth_names
512
+ auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
513
+
514
+ new_options = opts.merge(
515
+ :operation => :"FuseApi.enrich_transactions",
516
+ :header_params => header_params,
517
+ :query_params => query_params,
518
+ :form_params => form_params,
519
+ :body => post_body,
520
+ :auth_names => auth_names,
521
+ :return_type => return_type
522
+ )
523
+
524
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
525
+ if @api_client.config.debugging
526
+ @api_client.config.logger.debug "API called: FuseApi#enrich_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
527
+ end
528
+ return data, status_code, headers
529
+ end
530
+
457
531
  # API to exchange a public token for an access token and financial connection id
458
532
  # @param [Hash] opts the optional parameters
459
533
  # @option opts [ExchangeFinancialConnectionsPublicTokenRequest] :exchange_financial_connections_public_token_request
@@ -641,6 +715,67 @@ module FuseClient
641
715
  return data, status_code, headers
642
716
  end
643
717
 
718
+ # Get finance score
719
+ # @param account_id [String]
720
+ # @param [Hash] opts the optional parameters
721
+ # @return [GetFinanceScoreResponse]
722
+ def get_finance_score(account_id, opts = {})
723
+ data, _status_code, _headers = get_finance_score_with_http_info(account_id, opts)
724
+ data
725
+ end
726
+
727
+ # Get finance score
728
+ # @param account_id [String]
729
+ # @param [Hash] opts the optional parameters
730
+ # @return [Array<(GetFinanceScoreResponse, Integer, Hash)>] GetFinanceScoreResponse data, response status code and response headers
731
+ def get_finance_score_with_http_info(account_id, opts = {})
732
+ if @api_client.config.debugging
733
+ @api_client.config.logger.debug 'Calling API: FuseApi.get_finance_score ...'
734
+ end
735
+ # verify the required parameter 'account_id' is set
736
+ if @api_client.config.client_side_validation && account_id.nil?
737
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling FuseApi.get_finance_score"
738
+ end
739
+ # resource path
740
+ local_var_path = '/v1/accounts/{account_id}/finance_score'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
741
+
742
+ # query parameters
743
+ query_params = opts[:query_params] || {}
744
+
745
+ # header parameters
746
+ header_params = opts[:header_params] || {}
747
+ # HTTP header 'Accept' (if needed)
748
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
749
+
750
+ # form parameters
751
+ form_params = opts[:form_params] || {}
752
+
753
+ # http body (model)
754
+ post_body = opts[:debug_body]
755
+
756
+ # return_type
757
+ return_type = opts[:debug_return_type] || 'GetFinanceScoreResponse'
758
+
759
+ # auth_names
760
+ auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
761
+
762
+ new_options = opts.merge(
763
+ :operation => :"FuseApi.get_finance_score",
764
+ :header_params => header_params,
765
+ :query_params => query_params,
766
+ :form_params => form_params,
767
+ :body => post_body,
768
+ :auth_names => auth_names,
769
+ :return_type => return_type
770
+ )
771
+
772
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
773
+ if @api_client.config.debugging
774
+ @api_client.config.logger.debug "API called: FuseApi#get_finance_score\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
775
+ end
776
+ return data, status_code, headers
777
+ end
778
+
644
779
  # Get financial connection details
645
780
  # @param financial_connection_id [String]
646
781
  # @param [Hash] opts the optional parameters
@@ -1289,6 +1424,7 @@ module FuseClient
1289
1424
  return data, status_code, headers
1290
1425
  end
1291
1426
 
1427
+ # Get spend power
1292
1428
  # @param spend_power_id [String]
1293
1429
  # @param [Hash] opts the optional parameters
1294
1430
  # @return [GetSpendPowerResponse]
@@ -1297,6 +1433,7 @@ module FuseClient
1297
1433
  data
1298
1434
  end
1299
1435
 
1436
+ # Get spend power
1300
1437
  # @param spend_power_id [String]
1301
1438
  # @param [Hash] opts the optional parameters
1302
1439
  # @return [Array<(GetSpendPowerResponse, Integer, Hash)>] GetSpendPowerResponse data, response status code and response headers
@@ -1309,7 +1446,7 @@ module FuseClient
1309
1446
  fail ArgumentError, "Missing the required parameter 'spend_power_id' when calling FuseApi.get_spend_power"
1310
1447
  end
1311
1448
  # resource path
1312
- local_var_path = '/v1/financial_connections/spend-power/{spend_power_id}'.sub('{' + 'spend_power_id' + '}', CGI.escape(spend_power_id.to_s))
1449
+ local_var_path = '/v1/spend_power/{spend_power_id}'.sub('{' + 'spend_power_id' + '}', CGI.escape(spend_power_id.to_s))
1313
1450
 
1314
1451
  # query parameters
1315
1452
  query_params = opts[:query_params] || {}
@@ -1542,23 +1679,31 @@ module FuseClient
1542
1679
  return data, status_code, headers
1543
1680
  end
1544
1681
 
1682
+ # Update spend power customization
1683
+ # @param spend_power_customization_id [String]
1545
1684
  # @param [Hash] opts the optional parameters
1546
- # @option opts [SpendPowerCustomization] :body
1685
+ # @option opts [UpdateSpendPowerCustomizationRequest] :update_spend_power_customization_request
1547
1686
  # @return [UpdateSpendPowerCustomizationResponse]
1548
- def update_spend_power_customization(opts = {})
1549
- data, _status_code, _headers = update_spend_power_customization_with_http_info(opts)
1687
+ def update_spend_power_customization(spend_power_customization_id, opts = {})
1688
+ data, _status_code, _headers = update_spend_power_customization_with_http_info(spend_power_customization_id, opts)
1550
1689
  data
1551
1690
  end
1552
1691
 
1692
+ # Update spend power customization
1693
+ # @param spend_power_customization_id [String]
1553
1694
  # @param [Hash] opts the optional parameters
1554
- # @option opts [SpendPowerCustomization] :body
1695
+ # @option opts [UpdateSpendPowerCustomizationRequest] :update_spend_power_customization_request
1555
1696
  # @return [Array<(UpdateSpendPowerCustomizationResponse, Integer, Hash)>] UpdateSpendPowerCustomizationResponse data, response status code and response headers
1556
- def update_spend_power_customization_with_http_info(opts = {})
1697
+ def update_spend_power_customization_with_http_info(spend_power_customization_id, opts = {})
1557
1698
  if @api_client.config.debugging
1558
1699
  @api_client.config.logger.debug 'Calling API: FuseApi.update_spend_power_customization ...'
1559
1700
  end
1701
+ # verify the required parameter 'spend_power_customization_id' is set
1702
+ if @api_client.config.client_side_validation && spend_power_customization_id.nil?
1703
+ fail ArgumentError, "Missing the required parameter 'spend_power_customization_id' when calling FuseApi.update_spend_power_customization"
1704
+ end
1560
1705
  # resource path
1561
- local_var_path = '/v1/financial_connections/spend-power/customization/update'
1706
+ local_var_path = '/v1/spend_power/customization/{spend_power_customization_id}'.sub('{' + 'spend_power_customization_id' + '}', CGI.escape(spend_power_customization_id.to_s))
1562
1707
 
1563
1708
  # query parameters
1564
1709
  query_params = opts[:query_params] || {}
@@ -1577,7 +1722,7 @@ module FuseClient
1577
1722
  form_params = opts[:form_params] || {}
1578
1723
 
1579
1724
  # http body (model)
1580
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
1725
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_spend_power_customization_request'])
1581
1726
 
1582
1727
  # return_type
1583
1728
  return_type = opts[:debug_return_type] || 'UpdateSpendPowerCustomizationResponse'
@@ -19,54 +19,22 @@ module FuseClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Delete spend power customization
22
23
  # @param spend_power_id [String]
23
24
  # @param fuse_client_id [String]
24
25
  # @param fuse_api_key [String]
25
26
  # @param [Hash] opts the optional parameters
26
- # @option opts [String] :plaid_client_id
27
- # @option opts [String] :plaid_secret
28
- # @option opts [String] :teller_application_id
29
- # @option opts [String] :teller_certificate
30
- # @option opts [String] :teller_private_key
31
- # @option opts [String] :teller_token_signing_key
32
- # @option opts [String] :teller_signing_secret
33
- # @option opts [String] :mx_client_id
34
- # @option opts [String] :mx_api_key
35
- # @option opts [String] :snaptrade_client_id
36
- # @option opts [String] :snaptrade_consumer_key
37
- # @option opts [String] :flinks_customer_id
38
- # @option opts [String] :flinks_us_instance_id
39
- # @option opts [String] :flinks_ca_instance_id
40
- # @option opts [String] :finicity_partner_id
41
- # @option opts [String] :finicity_partner_secret
42
- # @option opts [String] :finicity_app_key
43
27
  # @return [DeleteSpendPowerResponse]
44
28
  def delete_spend_power(spend_power_id, fuse_client_id, fuse_api_key, opts = {})
45
29
  data, _status_code, _headers = delete_spend_power_with_http_info(spend_power_id, fuse_client_id, fuse_api_key, opts)
46
30
  data
47
31
  end
48
32
 
33
+ # Delete spend power customization
49
34
  # @param spend_power_id [String]
50
35
  # @param fuse_client_id [String]
51
36
  # @param fuse_api_key [String]
52
37
  # @param [Hash] opts the optional parameters
53
- # @option opts [String] :plaid_client_id
54
- # @option opts [String] :plaid_secret
55
- # @option opts [String] :teller_application_id
56
- # @option opts [String] :teller_certificate
57
- # @option opts [String] :teller_private_key
58
- # @option opts [String] :teller_token_signing_key
59
- # @option opts [String] :teller_signing_secret
60
- # @option opts [String] :mx_client_id
61
- # @option opts [String] :mx_api_key
62
- # @option opts [String] :snaptrade_client_id
63
- # @option opts [String] :snaptrade_consumer_key
64
- # @option opts [String] :flinks_customer_id
65
- # @option opts [String] :flinks_us_instance_id
66
- # @option opts [String] :flinks_ca_instance_id
67
- # @option opts [String] :finicity_partner_id
68
- # @option opts [String] :finicity_partner_secret
69
- # @option opts [String] :finicity_app_key
70
38
  # @return [Array<(DeleteSpendPowerResponse, Integer, Hash)>] DeleteSpendPowerResponse data, response status code and response headers
71
39
  def delete_spend_power_with_http_info(spend_power_id, fuse_client_id, fuse_api_key, opts = {})
72
40
  if @api_client.config.debugging
@@ -85,7 +53,7 @@ module FuseClient
85
53
  fail ArgumentError, "Missing the required parameter 'fuse_api_key' when calling SpendPowerApi.delete_spend_power"
86
54
  end
87
55
  # resource path
88
- local_var_path = '/v1/financial_connections/spend-power/{spend_power_id}'.sub('{' + 'spend_power_id' + '}', CGI.escape(spend_power_id.to_s))
56
+ local_var_path = '/v1/spend_power/{spend_power_id}'.sub('{' + 'spend_power_id' + '}', CGI.escape(spend_power_id.to_s))
89
57
 
90
58
  # query parameters
91
59
  query_params = opts[:query_params] || {}
@@ -96,23 +64,6 @@ module FuseClient
96
64
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
97
65
  header_params[:'Fuse-Client-Id'] = fuse_client_id
98
66
  header_params[:'Fuse-Api-Key'] = fuse_api_key
99
- header_params[:'Plaid-Client-Id'] = opts[:'plaid_client_id'] if !opts[:'plaid_client_id'].nil?
100
- header_params[:'Plaid-Secret'] = opts[:'plaid_secret'] if !opts[:'plaid_secret'].nil?
101
- header_params[:'Teller-Application-Id'] = opts[:'teller_application_id'] if !opts[:'teller_application_id'].nil?
102
- header_params[:'Teller-Certificate'] = opts[:'teller_certificate'] if !opts[:'teller_certificate'].nil?
103
- header_params[:'Teller-Private-Key'] = opts[:'teller_private_key'] if !opts[:'teller_private_key'].nil?
104
- header_params[:'Teller-Token-Signing-Key'] = opts[:'teller_token_signing_key'] if !opts[:'teller_token_signing_key'].nil?
105
- header_params[:'Teller-Signing-Secret'] = opts[:'teller_signing_secret'] if !opts[:'teller_signing_secret'].nil?
106
- header_params[:'Mx-Client-Id'] = opts[:'mx_client_id'] if !opts[:'mx_client_id'].nil?
107
- header_params[:'Mx-Api-Key'] = opts[:'mx_api_key'] if !opts[:'mx_api_key'].nil?
108
- header_params[:'Snaptrade-Client-Id'] = opts[:'snaptrade_client_id'] if !opts[:'snaptrade_client_id'].nil?
109
- header_params[:'Snaptrade-Consumer-Key'] = opts[:'snaptrade_consumer_key'] if !opts[:'snaptrade_consumer_key'].nil?
110
- header_params[:'Flinks-Customer-Id'] = opts[:'flinks_customer_id'] if !opts[:'flinks_customer_id'].nil?
111
- header_params[:'Flinks-Us-Instance-Id'] = opts[:'flinks_us_instance_id'] if !opts[:'flinks_us_instance_id'].nil?
112
- header_params[:'Flinks-Ca-Instance-Id'] = opts[:'flinks_ca_instance_id'] if !opts[:'flinks_ca_instance_id'].nil?
113
- header_params[:'Finicity-Partner-Id'] = opts[:'finicity_partner_id'] if !opts[:'finicity_partner_id'].nil?
114
- header_params[:'Finicity-Partner-Secret'] = opts[:'finicity_partner_secret'] if !opts[:'finicity_partner_secret'].nil?
115
- header_params[:'Finicity-App-Key'] = opts[:'finicity_app_key'] if !opts[:'finicity_app_key'].nil?
116
67
 
117
68
  # form parameters
118
69
  form_params = opts[:form_params] || {}
@@ -142,5 +93,80 @@ module FuseClient
142
93
  end
143
94
  return data, status_code, headers
144
95
  end
96
+
97
+ # Get spend power customization
98
+ # @param spend_power_customization_id [String]
99
+ # @param fuse_client_id [String]
100
+ # @param fuse_api_key [String]
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)
105
+ data
106
+ end
107
+
108
+ # Get spend power customization
109
+ # @param spend_power_customization_id [String]
110
+ # @param fuse_client_id [String]
111
+ # @param fuse_api_key [String]
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 = {})
115
+ if @api_client.config.debugging
116
+ @api_client.config.logger.debug 'Calling API: SpendPowerApi.get_spend_power_customization ...'
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"
121
+ end
122
+ # verify the required parameter 'fuse_client_id' is set
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"
125
+ end
126
+ # verify the required parameter 'fuse_api_key' is set
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"
129
+ end
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))
132
+
133
+ # query parameters
134
+ query_params = opts[:query_params] || {}
135
+
136
+ # header parameters
137
+ header_params = opts[:header_params] || {}
138
+ # HTTP header 'Accept' (if needed)
139
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
140
+ header_params[:'Fuse-Client-Id'] = fuse_client_id
141
+ header_params[:'Fuse-Api-Key'] = fuse_api_key
142
+
143
+ # form parameters
144
+ form_params = opts[:form_params] || {}
145
+
146
+ # http body (model)
147
+ post_body = opts[:debug_body]
148
+
149
+ # return_type
150
+ return_type = opts[:debug_return_type] || 'GetSpendPowerCustomizationResponse'
151
+
152
+ # auth_names
153
+ auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
154
+
155
+ new_options = opts.merge(
156
+ :operation => :"SpendPowerApi.get_spend_power_customization",
157
+ :header_params => header_params,
158
+ :query_params => query_params,
159
+ :form_params => form_params,
160
+ :body => post_body,
161
+ :auth_names => auth_names,
162
+ :return_type => return_type
163
+ )
164
+
165
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
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}"
168
+ end
169
+ return data, status_code, headers
170
+ end
145
171
  end
146
172
  end