fuse_client 1.0.36 → 1.0.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -3
  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/{CreateSpendPowerRequest.md → CreateConsumerRiskReportRequest.md} +4 -4
  9. data/docs/{DeleteSpendPowerResponse.md → CreateConsumerRiskReportResponse.md} +3 -3
  10. data/docs/{CreateSpendPowerResponse.md → DeleteConsumerRiskReportResponse.md} +3 -3
  11. data/docs/Entity.md +5 -3
  12. data/docs/EvalConsumerRiskReportRequest.md +22 -0
  13. data/docs/{EvalSpendPowerRequestEventsInner.md → EvalConsumerRiskReportRequestEventsInner.md} +2 -2
  14. data/docs/{EvalSpendPowerResponse.md → EvalConsumerRiskReportResponse.md} +2 -2
  15. data/docs/ExternalTransactionEvent.md +2 -2
  16. data/docs/FinancialConnectionDetails.md +9 -1
  17. data/docs/FinancialConnectionDetailsBasiq.md +20 -0
  18. data/docs/FinancialConnectionDetailsBelvo.md +20 -0
  19. data/docs/FinancialConnectionDetailsFinverse.md +20 -0
  20. data/docs/FinancialConnectionDetailsTruelayer.md +18 -0
  21. data/docs/FinancialConnectionsAccountDetails.md +2 -0
  22. data/docs/FinancialConnectionsAccountDetailsAccountNumber.md +28 -0
  23. data/docs/FinancialConnectionsInvestmentSecurityExchange.md +3 -1
  24. data/docs/FinancialConnectionsOwnerAddressesInnerData.md +2 -0
  25. data/docs/FuseApi.md +152 -148
  26. data/docs/{GetSpendPowerCustomizationResponse.md → GetConsumerRiskReportCustomizationResponse.md} +4 -4
  27. data/docs/{GetSpendPowerResponse.md → GetConsumerRiskReportResponse.md} +4 -4
  28. data/docs/GetFinancialConnectionsOwnersResponse.md +3 -1
  29. data/docs/GetFinancialConnectionsOwnersResponseAccountsInner.md +1 -3
  30. data/docs/InAppTransactionEvent.md +1 -1
  31. data/docs/RiskReportApi.md +165 -0
  32. data/docs/Transaction.md +1 -1
  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/fuse_client-1.0.37.gem +0 -0
  37. data/lib/fuse_client/api/fuse_api.rb +142 -139
  38. data/lib/fuse_client/api/{spend_power_api.rb → risk_report_api.rb} +39 -39
  39. data/lib/fuse_client/configuration.rb +42 -0
  40. data/lib/fuse_client/models/account_subtype.rb +13 -1
  41. data/lib/fuse_client/models/aggregator.rb +5 -1
  42. data/lib/fuse_client/models/{spend_power.rb → consumer_risk_report.rb} +4 -6
  43. data/lib/fuse_client/models/{spend_power_customization.rb → consumer_risk_report_customization.rb} +6 -7
  44. data/lib/fuse_client/models/{spend_power_time_frame.rb → consumer_risk_report_time_frame.rb} +3 -3
  45. data/lib/fuse_client/models/country_code.rb +82 -4
  46. data/lib/fuse_client/models/{create_spend_power_customization_request.rb → create_consumer_risk_report_customization_request.rb} +6 -6
  47. data/lib/fuse_client/models/{create_spend_power_customization_response.rb → create_consumer_risk_report_customization_response.rb} +3 -3
  48. data/lib/fuse_client/models/{create_spend_power_request.rb → create_consumer_risk_report_request.rb} +5 -5
  49. data/lib/fuse_client/models/{delete_spend_power_response.rb → create_consumer_risk_report_response.rb} +3 -4
  50. data/lib/fuse_client/models/{create_spend_power_response.rb → delete_consumer_risk_report_response.rb} +3 -4
  51. data/lib/fuse_client/models/entity.rb +16 -6
  52. data/lib/fuse_client/models/{eval_spend_power_request.rb → eval_consumer_risk_report_request.rb} +5 -5
  53. data/lib/fuse_client/models/{eval_spend_power_request_events_inner.rb → eval_consumer_risk_report_request_events_inner.rb} +3 -3
  54. data/lib/fuse_client/models/{eval_spend_power_response.rb → eval_consumer_risk_report_response.rb} +3 -3
  55. data/lib/fuse_client/models/external_transaction_event.rb +1 -6
  56. data/lib/fuse_client/models/financial_connection_details.rb +40 -4
  57. data/lib/fuse_client/models/financial_connection_details_basiq.rb +241 -0
  58. data/lib/fuse_client/models/financial_connection_details_belvo.rb +236 -0
  59. data/lib/fuse_client/models/financial_connection_details_finverse.rb +236 -0
  60. data/lib/fuse_client/models/financial_connection_details_truelayer.rb +226 -0
  61. data/lib/fuse_client/models/financial_connections_account_details.rb +10 -1
  62. data/lib/fuse_client/models/financial_connections_account_details_account_number.rb +270 -0
  63. data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +14 -4
  64. data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +11 -1
  65. data/lib/fuse_client/models/fuse_api_error_code.rb +12 -3
  66. data/lib/fuse_client/models/get_consumer_risk_report_customization_response.rb +239 -0
  67. data/lib/fuse_client/models/{get_spend_power_response.rb → get_consumer_risk_report_response.rb} +13 -13
  68. data/lib/fuse_client/models/get_financial_connections_owners_response.rb +19 -4
  69. data/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +4 -19
  70. data/lib/fuse_client/models/in_app_transaction_event.rb +0 -5
  71. data/lib/fuse_client/models/transaction.rb +1 -1
  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/models/webhook_source.rb +3 -1
  76. data/lib/fuse_client/version.rb +1 -1
  77. data/lib/fuse_client.rb +21 -16
  78. data/spec/api/fuse_api_spec.rb +37 -36
  79. data/spec/api/{spend_power_api_spec.rb → risk_report_api_spec.rb} +16 -16
  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} +6 -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_spend_power_response_spec.rb → delete_consumer_risk_report_response_spec.rb} +6 -6
  88. data/spec/models/entity_spec.rb +6 -0
  89. data/spec/models/{eval_spend_power_request_events_inner_spec.rb → eval_consumer_risk_report_request_events_inner_spec.rb} +6 -6
  90. data/spec/models/{eval_spend_power_request_spec.rb → eval_consumer_risk_report_request_spec.rb} +6 -6
  91. data/spec/models/{eval_spend_power_response_spec.rb → eval_consumer_risk_report_response_spec.rb} +6 -6
  92. data/spec/models/financial_connection_details_basiq_spec.rb +40 -0
  93. data/spec/models/financial_connection_details_belvo_spec.rb +40 -0
  94. data/spec/models/{get_spend_power_customization_response_spec.rb → financial_connection_details_finverse_spec.rb} +8 -8
  95. data/spec/models/financial_connection_details_spec.rb +24 -0
  96. data/spec/models/financial_connection_details_truelayer_spec.rb +34 -0
  97. data/spec/models/financial_connections_account_details_account_number_spec.rb +64 -0
  98. data/spec/models/financial_connections_account_details_spec.rb +6 -0
  99. data/spec/models/financial_connections_investment_security_exchange_spec.rb +6 -0
  100. data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +6 -0
  101. data/spec/models/get_consumer_risk_report_customization_response_spec.rb +40 -0
  102. data/spec/models/{get_spend_power_response_spec.rb → get_consumer_risk_report_response_spec.rb} +7 -7
  103. data/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +0 -6
  104. data/spec/models/get_financial_connections_owners_response_spec.rb +6 -0
  105. data/spec/models/{update_spend_power_customization_request_spec.rb → update_consumer_risk_report_customization_request_spec.rb} +6 -6
  106. data/spec/models/{update_spend_power_customization_response_spec.rb → update_consumer_risk_report_customization_response_spec.rb} +6 -6
  107. metadata +97 -76
  108. data/docs/EvalSpendPowerRequest.md +0 -22
  109. data/docs/SpendPowerApi.md +0 -165
  110. data/lib/fuse_client/models/get_spend_power_customization_response.rb +0 -239
@@ -14,8 +14,8 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FuseClient
17
- class GetSpendPowerResponse
18
- attr_accessor :spend_power
17
+ class GetConsumerRiskReportResponse
18
+ attr_accessor :consumer_risk_report
19
19
 
20
20
  # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
21
21
  attr_accessor :request_id
@@ -23,7 +23,7 @@ module FuseClient
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
24
24
  def self.attribute_map
25
25
  {
26
- :'spend_power' => :'spend_power',
26
+ :'consumer_risk_report' => :'consumer_risk_report',
27
27
  :'request_id' => :'request_id'
28
28
  }
29
29
  end
@@ -36,7 +36,7 @@ module FuseClient
36
36
  # Attribute type mapping.
37
37
  def self.openapi_types
38
38
  {
39
- :'spend_power' => :'SpendPower',
39
+ :'consumer_risk_report' => :'ConsumerRiskReport',
40
40
  :'request_id' => :'String'
41
41
  }
42
42
  end
@@ -51,19 +51,19 @@ module FuseClient
51
51
  # @param [Hash] attributes Model attributes in the form of hash
52
52
  def initialize(attributes = {})
53
53
  if (!attributes.is_a?(Hash))
54
- fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::GetSpendPowerResponse` initialize method"
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::GetConsumerRiskReportResponse` initialize method"
55
55
  end
56
56
 
57
57
  # check to see if the attribute exists and convert string to symbol for hash key
58
58
  attributes = attributes.each_with_object({}) { |(k, v), h|
59
59
  if (!self.class.attribute_map.key?(k.to_sym))
60
- fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::GetSpendPowerResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::GetConsumerRiskReportResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
61
  end
62
62
  h[k.to_sym] = v
63
63
  }
64
64
 
65
- if attributes.key?(:'spend_power')
66
- self.spend_power = attributes[:'spend_power']
65
+ if attributes.key?(:'consumer_risk_report')
66
+ self.consumer_risk_report = attributes[:'consumer_risk_report']
67
67
  end
68
68
 
69
69
  if attributes.key?(:'request_id')
@@ -75,8 +75,8 @@ module FuseClient
75
75
  # @return Array for valid properties with the reasons
76
76
  def list_invalid_properties
77
77
  invalid_properties = Array.new
78
- if @spend_power.nil?
79
- invalid_properties.push('invalid value for "spend_power", spend_power cannot be nil.')
78
+ if @consumer_risk_report.nil?
79
+ invalid_properties.push('invalid value for "consumer_risk_report", consumer_risk_report cannot be nil.')
80
80
  end
81
81
 
82
82
  if @request_id.nil?
@@ -89,7 +89,7 @@ module FuseClient
89
89
  # Check to see if the all the properties in the model are valid
90
90
  # @return true if the model is valid
91
91
  def valid?
92
- return false if @spend_power.nil?
92
+ return false if @consumer_risk_report.nil?
93
93
  return false if @request_id.nil?
94
94
  true
95
95
  end
@@ -99,7 +99,7 @@ module FuseClient
99
99
  def ==(o)
100
100
  return true if self.equal?(o)
101
101
  self.class == o.class &&
102
- spend_power == o.spend_power &&
102
+ consumer_risk_report == o.consumer_risk_report &&
103
103
  request_id == o.request_id
104
104
  end
105
105
 
@@ -112,7 +112,7 @@ module FuseClient
112
112
  # Calculates hash code according to all attributes.
113
113
  # @return [Integer] Hash code
114
114
  def hash
115
- [spend_power, request_id].hash
115
+ [consumer_risk_report, request_id].hash
116
116
  end
117
117
 
118
118
  # Builds the object from hash
@@ -17,10 +17,14 @@ module FuseClient
17
17
  class GetFinancialConnectionsOwnersResponse
18
18
  attr_accessor :accounts
19
19
 
20
+ # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
21
+ attr_accessor :request_id
22
+
20
23
  # Attribute mapping from ruby-style variable name to JSON key.
21
24
  def self.attribute_map
22
25
  {
23
- :'accounts' => :'accounts'
26
+ :'accounts' => :'accounts',
27
+ :'request_id' => :'request_id'
24
28
  }
25
29
  end
26
30
 
@@ -32,7 +36,8 @@ module FuseClient
32
36
  # Attribute type mapping.
33
37
  def self.openapi_types
34
38
  {
35
- :'accounts' => :'Array<GetFinancialConnectionsOwnersResponseAccountsInner>'
39
+ :'accounts' => :'Array<GetFinancialConnectionsOwnersResponseAccountsInner>',
40
+ :'request_id' => :'String'
36
41
  }
37
42
  end
38
43
 
@@ -62,6 +67,10 @@ module FuseClient
62
67
  self.accounts = value
63
68
  end
64
69
  end
70
+
71
+ if attributes.key?(:'request_id')
72
+ self.request_id = attributes[:'request_id']
73
+ end
65
74
  end
66
75
 
67
76
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -72,6 +81,10 @@ module FuseClient
72
81
  invalid_properties.push('invalid value for "accounts", accounts cannot be nil.')
73
82
  end
74
83
 
84
+ if @request_id.nil?
85
+ invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
86
+ end
87
+
75
88
  invalid_properties
76
89
  end
77
90
 
@@ -79,6 +92,7 @@ module FuseClient
79
92
  # @return true if the model is valid
80
93
  def valid?
81
94
  return false if @accounts.nil?
95
+ return false if @request_id.nil?
82
96
  true
83
97
  end
84
98
 
@@ -87,7 +101,8 @@ module FuseClient
87
101
  def ==(o)
88
102
  return true if self.equal?(o)
89
103
  self.class == o.class &&
90
- accounts == o.accounts
104
+ accounts == o.accounts &&
105
+ request_id == o.request_id
91
106
  end
92
107
 
93
108
  # @see the `==` method
@@ -99,7 +114,7 @@ module FuseClient
99
114
  # Calculates hash code according to all attributes.
100
115
  # @return [Integer] Hash code
101
116
  def hash
102
- [accounts].hash
117
+ [accounts, request_id].hash
103
118
  end
104
119
 
105
120
  # Builds the object from hash
@@ -20,15 +20,11 @@ module FuseClient
20
20
 
21
21
  attr_accessor :owners
22
22
 
23
- # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
24
- attr_accessor :request_id
25
-
26
23
  # Attribute mapping from ruby-style variable name to JSON key.
27
24
  def self.attribute_map
28
25
  {
29
26
  :'remote_account_id' => :'remote_account_id',
30
- :'owners' => :'owners',
31
- :'request_id' => :'request_id'
27
+ :'owners' => :'owners'
32
28
  }
33
29
  end
34
30
 
@@ -41,8 +37,7 @@ module FuseClient
41
37
  def self.openapi_types
42
38
  {
43
39
  :'remote_account_id' => :'String',
44
- :'owners' => :'Array<FinancialConnectionsOwner>',
45
- :'request_id' => :'String'
40
+ :'owners' => :'Array<FinancialConnectionsOwner>'
46
41
  }
47
42
  end
48
43
 
@@ -76,10 +71,6 @@ module FuseClient
76
71
  self.owners = value
77
72
  end
78
73
  end
79
-
80
- if attributes.key?(:'request_id')
81
- self.request_id = attributes[:'request_id']
82
- end
83
74
  end
84
75
 
85
76
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -94,10 +85,6 @@ module FuseClient
94
85
  invalid_properties.push('invalid value for "owners", owners cannot be nil.')
95
86
  end
96
87
 
97
- if @request_id.nil?
98
- invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
99
- end
100
-
101
88
  invalid_properties
102
89
  end
103
90
 
@@ -106,7 +93,6 @@ module FuseClient
106
93
  def valid?
107
94
  return false if @remote_account_id.nil?
108
95
  return false if @owners.nil?
109
- return false if @request_id.nil?
110
96
  true
111
97
  end
112
98
 
@@ -116,8 +102,7 @@ module FuseClient
116
102
  return true if self.equal?(o)
117
103
  self.class == o.class &&
118
104
  remote_account_id == o.remote_account_id &&
119
- owners == o.owners &&
120
- request_id == o.request_id
105
+ owners == o.owners
121
106
  end
122
107
 
123
108
  # @see the `==` method
@@ -129,7 +114,7 @@ module FuseClient
129
114
  # Calculates hash code according to all attributes.
130
115
  # @return [Integer] Hash code
131
116
  def hash
132
- [remote_account_id, owners, request_id].hash
117
+ [remote_account_id, owners].hash
133
118
  end
134
119
 
135
120
  # Builds the object from hash
@@ -176,10 +176,6 @@ module FuseClient
176
176
  invalid_properties.push('invalid value for "iso_currency_code", iso_currency_code cannot be nil.')
177
177
  end
178
178
 
179
- if @transaction_type.nil?
180
- invalid_properties.push('invalid value for "transaction_type", transaction_type cannot be nil.')
181
- end
182
-
183
179
  if @merchant_name.nil?
184
180
  invalid_properties.push('invalid value for "merchant_name", merchant_name cannot be nil.')
185
181
  end
@@ -201,7 +197,6 @@ module FuseClient
201
197
  return false if @status.nil?
202
198
  return false if @amount.nil?
203
199
  return false if @iso_currency_code.nil?
204
- return false if @transaction_type.nil?
205
200
  return false if @merchant_name.nil?
206
201
  return false if @timestamp.nil?
207
202
  true
@@ -33,7 +33,7 @@ module FuseClient
33
33
  # Description of the transaction
34
34
  attr_accessor :description
35
35
 
36
- # Categories of the transaction, ie Computers and Electronics
36
+ # Categories of the transaction, i.e., Computers and Electronics. You can download the categories from [here](https://fuse-public-bucket.s3.amazonaws.com/transaction-categories.csv)
37
37
  attr_accessor :category
38
38
 
39
39
  attr_accessor :merchant
@@ -14,13 +14,13 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FuseClient
17
- class UpdateSpendPowerCustomizationRequest
17
+ class UpdateConsumerRiskReportCustomizationRequest
18
18
  attr_accessor :timeframe
19
19
 
20
- # The minimum allowed limit for the spend power, in cents.
20
+ # The minimum allowed limit, in cents.
21
21
  attr_accessor :min_limit
22
22
 
23
- # The maximum allowed limit for the spend power, in cents.
23
+ # The maximum allowed limit, in cents.
24
24
  attr_accessor :max_limit
25
25
 
26
26
  # This parameter indicates the risk tolerance associated with spend limits. A high risk tolerance allow for higher limits, increasing both potential gains and losses. A Lower risk tolerance enforces strict limits, reducing the potential for loss but also limiting transaction volume for reliable users.
@@ -66,7 +66,7 @@ module FuseClient
66
66
  # Attribute type mapping.
67
67
  def self.openapi_types
68
68
  {
69
- :'timeframe' => :'SpendPowerTimeFrame',
69
+ :'timeframe' => :'ConsumerRiskReportTimeFrame',
70
70
  :'min_limit' => :'Float',
71
71
  :'max_limit' => :'Float',
72
72
  :'risk_tolerance' => :'Float'
@@ -83,13 +83,13 @@ module FuseClient
83
83
  # @param [Hash] attributes Model attributes in the form of hash
84
84
  def initialize(attributes = {})
85
85
  if (!attributes.is_a?(Hash))
86
- fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::UpdateSpendPowerCustomizationRequest` initialize method"
86
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::UpdateConsumerRiskReportCustomizationRequest` initialize method"
87
87
  end
88
88
 
89
89
  # check to see if the attribute exists and convert string to symbol for hash key
90
90
  attributes = attributes.each_with_object({}) { |(k, v), h|
91
91
  if (!self.class.attribute_map.key?(k.to_sym))
92
- fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::UpdateSpendPowerCustomizationRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
92
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::UpdateConsumerRiskReportCustomizationRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
93
93
  end
94
94
  h[k.to_sym] = v
95
95
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FuseClient
17
- class UpdateSpendPowerCustomizationResponse
17
+ class UpdateConsumerRiskReportCustomizationResponse
18
18
  # The id of the updated customization.
19
19
  attr_accessor :id
20
20
 
@@ -52,13 +52,13 @@ module FuseClient
52
52
  # @param [Hash] attributes Model attributes in the form of hash
53
53
  def initialize(attributes = {})
54
54
  if (!attributes.is_a?(Hash))
55
- fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::UpdateSpendPowerCustomizationResponse` initialize method"
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::UpdateConsumerRiskReportCustomizationResponse` initialize method"
56
56
  end
57
57
 
58
58
  # check to see if the attribute exists and convert string to symbol for hash key
59
59
  attributes = attributes.each_with_object({}) { |(k, v), h|
60
60
  if (!self.class.attribute_map.key?(k.to_sym))
61
- fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::UpdateSpendPowerCustomizationResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::UpdateConsumerRiskReportCustomizationResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
62
  end
63
63
  h[k.to_sym] = v
64
64
  }
@@ -23,10 +23,10 @@ module FuseClient
23
23
  # Datetime that the balance is accurate for In ISO-8601 format
24
24
  attr_accessor :timestamp
25
25
 
26
- # The current balance of the account factoring in pending transactions. Use positive values to represent money going out and negative to represent money going in.
26
+ # The current balance of the account factoring in pending transactions.
27
27
  attr_accessor :available
28
28
 
29
- # The current balance of the account without factoring in pending transactions. Use positive values to represent money going out and negative to represent money going in.
29
+ # The current balance of the account without factoring in pending transactions.
30
30
  attr_accessor :current
31
31
 
32
32
  class EnumAttributeValidator
@@ -21,9 +21,11 @@ module FuseClient
21
21
  FUSE = "fuse".freeze
22
22
  SNAPTRADE = "snaptrade".freeze
23
23
  MONO = "mono".freeze
24
+ TRUELAYER = "truelayer".freeze
25
+ FINVERSE = "finverse".freeze
24
26
 
25
27
  def self.all_vars
26
- @all_vars ||= [PLAID, TELLER, MX, FUSE, SNAPTRADE, MONO].freeze
28
+ @all_vars ||= [PLAID, TELLER, MX, FUSE, SNAPTRADE, MONO, TRUELAYER, FINVERSE].freeze
27
29
  end
28
30
 
29
31
  # Builds the enum from string
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.6.0
11
11
  =end
12
12
 
13
13
  module FuseClient
14
- VERSION = '1.0.36'
14
+ VERSION = '1.0.38'
15
15
  end
data/lib/fuse_client.rb CHANGED
@@ -29,9 +29,16 @@ require 'fuse_client/models/asset_report_accounts_inner_balance'
29
29
  require 'fuse_client/models/asset_report_accounts_inner_historical_balances_inner'
30
30
  require 'fuse_client/models/asset_report_response'
31
31
  require 'fuse_client/models/asset_report_transaction'
32
+ require 'fuse_client/models/consumer_risk_report'
33
+ require 'fuse_client/models/consumer_risk_report_customization'
34
+ require 'fuse_client/models/consumer_risk_report_time_frame'
32
35
  require 'fuse_client/models/country_code'
33
36
  require 'fuse_client/models/create_asset_report_request'
34
37
  require 'fuse_client/models/create_asset_report_response'
38
+ require 'fuse_client/models/create_consumer_risk_report_customization_request'
39
+ require 'fuse_client/models/create_consumer_risk_report_customization_response'
40
+ require 'fuse_client/models/create_consumer_risk_report_request'
41
+ require 'fuse_client/models/create_consumer_risk_report_response'
35
42
  require 'fuse_client/models/create_entity_request'
36
43
  require 'fuse_client/models/create_entity_response'
37
44
  require 'fuse_client/models/create_link_token_request'
@@ -47,20 +54,16 @@ require 'fuse_client/models/create_link_token_request_teller_config_account_filt
47
54
  require 'fuse_client/models/create_link_token_response'
48
55
  require 'fuse_client/models/create_session_request'
49
56
  require 'fuse_client/models/create_session_response'
50
- require 'fuse_client/models/create_spend_power_customization_request'
51
- require 'fuse_client/models/create_spend_power_customization_response'
52
- require 'fuse_client/models/create_spend_power_request'
53
- require 'fuse_client/models/create_spend_power_response'
54
57
  require 'fuse_client/models/currency'
58
+ require 'fuse_client/models/delete_consumer_risk_report_response'
55
59
  require 'fuse_client/models/delete_financial_connection_response'
56
- require 'fuse_client/models/delete_spend_power_response'
57
60
  require 'fuse_client/models/enrich_transactions_request'
58
61
  require 'fuse_client/models/enrich_transactions_response'
59
62
  require 'fuse_client/models/enriched_transaction'
60
63
  require 'fuse_client/models/entity'
61
- require 'fuse_client/models/eval_spend_power_request'
62
- require 'fuse_client/models/eval_spend_power_request_events_inner'
63
- require 'fuse_client/models/eval_spend_power_response'
64
+ require 'fuse_client/models/eval_consumer_risk_report_request'
65
+ require 'fuse_client/models/eval_consumer_risk_report_request_events_inner'
66
+ require 'fuse_client/models/eval_consumer_risk_report_response'
64
67
  require 'fuse_client/models/exchange_financial_connections_public_token_request'
65
68
  require 'fuse_client/models/exchange_financial_connections_public_token_response'
66
69
  require 'fuse_client/models/external_transaction_event'
@@ -88,16 +91,21 @@ require 'fuse_client/models/fin_ql_top_merchants_feature_inner'
88
91
  require 'fuse_client/models/finance_score'
89
92
  require 'fuse_client/models/financial_connection_data'
90
93
  require 'fuse_client/models/financial_connection_details'
94
+ require 'fuse_client/models/financial_connection_details_basiq'
95
+ require 'fuse_client/models/financial_connection_details_belvo'
96
+ require 'fuse_client/models/financial_connection_details_finverse'
91
97
  require 'fuse_client/models/financial_connection_details_flinks'
92
98
  require 'fuse_client/models/financial_connection_details_mono'
93
99
  require 'fuse_client/models/financial_connection_details_mx'
94
100
  require 'fuse_client/models/financial_connection_details_plaid'
95
101
  require 'fuse_client/models/financial_connection_details_snaptrade'
96
102
  require 'fuse_client/models/financial_connection_details_teller'
103
+ require 'fuse_client/models/financial_connection_details_truelayer'
97
104
  require 'fuse_client/models/financial_connections_account'
98
105
  require 'fuse_client/models/financial_connections_account_balance'
99
106
  require 'fuse_client/models/financial_connections_account_cached_balance'
100
107
  require 'fuse_client/models/financial_connections_account_details'
108
+ require 'fuse_client/models/financial_connections_account_details_account_number'
101
109
  require 'fuse_client/models/financial_connections_account_details_ach'
102
110
  require 'fuse_client/models/financial_connections_account_institution'
103
111
  require 'fuse_client/models/financial_connections_account_liability'
@@ -126,6 +134,8 @@ require 'fuse_client/models/fuse_api_warning'
126
134
  require 'fuse_client/models/fuse_api_warning_data'
127
135
  require 'fuse_client/models/fuse_api_warning_data_warnings_inner'
128
136
  require 'fuse_client/models/get_asset_report_request'
137
+ require 'fuse_client/models/get_consumer_risk_report_customization_response'
138
+ require 'fuse_client/models/get_consumer_risk_report_response'
129
139
  require 'fuse_client/models/get_entity_response'
130
140
  require 'fuse_client/models/get_finance_score_response'
131
141
  require 'fuse_client/models/get_financial_connection_response'
@@ -152,8 +162,6 @@ require 'fuse_client/models/get_investment_transactions_request_options'
152
162
  require 'fuse_client/models/get_investment_transactions_response'
153
163
  require 'fuse_client/models/get_liabilities_request'
154
164
  require 'fuse_client/models/get_liabilities_response'
155
- require 'fuse_client/models/get_spend_power_customization_response'
156
- require 'fuse_client/models/get_spend_power_response'
157
165
  require 'fuse_client/models/in_app_transaction_event'
158
166
  require 'fuse_client/models/in_app_transaction_event_status'
159
167
  require 'fuse_client/models/merchant'
@@ -168,9 +176,6 @@ require 'fuse_client/models/migrate_financial_connections_token_response'
168
176
  require 'fuse_client/models/product'
169
177
  require 'fuse_client/models/refresh_asset_report_request'
170
178
  require 'fuse_client/models/refresh_asset_report_response'
171
- require 'fuse_client/models/spend_power'
172
- require 'fuse_client/models/spend_power_customization'
173
- require 'fuse_client/models/spend_power_time_frame'
174
179
  require 'fuse_client/models/sync_financial_connections_data_response'
175
180
  require 'fuse_client/models/sync_transactions_request'
176
181
  require 'fuse_client/models/sync_transactions_response'
@@ -182,10 +187,10 @@ require 'fuse_client/models/transaction_category_primary'
182
187
  require 'fuse_client/models/transaction_event_type'
183
188
  require 'fuse_client/models/transaction_merchant'
184
189
  require 'fuse_client/models/transaction_to_enrich'
190
+ require 'fuse_client/models/update_consumer_risk_report_customization_request'
191
+ require 'fuse_client/models/update_consumer_risk_report_customization_response'
185
192
  require 'fuse_client/models/update_entity_request'
186
193
  require 'fuse_client/models/update_entity_response'
187
- require 'fuse_client/models/update_spend_power_customization_request'
188
- require 'fuse_client/models/update_spend_power_customization_response'
189
194
  require 'fuse_client/models/updated_balance_event'
190
195
  require 'fuse_client/models/webhook_event'
191
196
  require 'fuse_client/models/webhook_source'
@@ -193,7 +198,7 @@ require 'fuse_client/models/webhook_type'
193
198
 
194
199
  # APIs
195
200
  require 'fuse_client/api/fuse_api'
196
- require 'fuse_client/api/spend_power_api'
201
+ require 'fuse_client/api/risk_report_api'
197
202
 
198
203
  module FuseClient
199
204
  class << self
@@ -54,44 +54,44 @@ describe 'FuseApi' do
54
54
  end
55
55
  end
56
56
 
57
- # unit tests for create_link_token
58
- # Create a link token to start the process of a user connecting to a specific financial institution.
57
+ # unit tests for create_consumer_risk_report
58
+ # Starts the background process that will calculate the consumer risk report depending on the customization passed in.
59
59
  # @param [Hash] opts the optional parameters
60
- # @option opts [CreateLinkTokenRequest] :create_link_token_request
61
- # @return [CreateLinkTokenResponse]
62
- describe 'create_link_token test' do
60
+ # @option opts [CreateConsumerRiskReportRequest] :create_consumer_risk_report_request
61
+ # @return [CreateConsumerRiskReportResponse]
62
+ describe 'create_consumer_risk_report test' do
63
63
  it 'should work' do
64
64
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
65
65
  end
66
66
  end
67
67
 
68
- # unit tests for create_session
69
- # Creates a session that returns a client_secret which is required as a parameter when initializing the Fuse SDK.
68
+ # unit tests for create_consumer_risk_report_customization
70
69
  # @param [Hash] opts the optional parameters
71
- # @option opts [CreateSessionRequest] :create_session_request
72
- # @return [CreateSessionResponse]
73
- describe 'create_session test' do
70
+ # @option opts [CreateConsumerRiskReportCustomizationRequest] :create_consumer_risk_report_customization_request
71
+ # @return [CreateConsumerRiskReportCustomizationResponse]
72
+ describe 'create_consumer_risk_report_customization test' do
74
73
  it 'should work' do
75
74
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
76
75
  end
77
76
  end
78
77
 
79
- # unit tests for create_spend_power
80
- # Starts the background process that will determine the spend power depending on the customization passed in.
78
+ # unit tests for create_link_token
79
+ # Create a link token to start the process of a user connecting to a specific financial institution.
81
80
  # @param [Hash] opts the optional parameters
82
- # @option opts [CreateSpendPowerRequest] :create_spend_power_request
83
- # @return [CreateSpendPowerResponse]
84
- describe 'create_spend_power test' do
81
+ # @option opts [CreateLinkTokenRequest] :create_link_token_request
82
+ # @return [CreateLinkTokenResponse]
83
+ describe 'create_link_token test' do
85
84
  it 'should work' do
86
85
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
87
86
  end
88
87
  end
89
88
 
90
- # unit tests for create_spend_power_customization
89
+ # unit tests for create_session
90
+ # Creates a session that returns a client_secret which is required as a parameter when initializing the Fuse SDK.
91
91
  # @param [Hash] opts the optional parameters
92
- # @option opts [CreateSpendPowerCustomizationRequest] :create_spend_power_customization_request
93
- # @return [CreateSpendPowerCustomizationResponse]
94
- describe 'create_spend_power_customization test' do
92
+ # @option opts [CreateSessionRequest] :create_session_request
93
+ # @return [CreateSessionResponse]
94
+ describe 'create_session test' do
95
95
  it 'should work' do
96
96
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
97
97
  end
@@ -154,6 +154,18 @@ describe 'FuseApi' do
154
154
  end
155
155
  end
156
156
 
157
+ # unit tests for get_consumer_risk_report
158
+ # Get consumer risk report
159
+ # @param consumer_risk_report_id
160
+ # @param [Hash] opts the optional parameters
161
+ # @option opts [Boolean] :recalculate An optional boolean parameter. If set to true, the system will recalculate before returning the risk report. If omitted or set to false, the current risk report will be returned without recalculation.
162
+ # @return [GetConsumerRiskReportResponse]
163
+ describe 'get_consumer_risk_report test' do
164
+ it 'should work' do
165
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
166
+ end
167
+ end
168
+
157
169
  # unit tests for get_entity
158
170
  # Get entity
159
171
  # An entity is automatically created after a successful connection. The id of the entity is what is set when calling the &#39;create session&#39; endpoint
@@ -288,17 +300,6 @@ describe 'FuseApi' do
288
300
  end
289
301
  end
290
302
 
291
- # unit tests for get_spend_power
292
- # Get spend power
293
- # @param spend_power_id
294
- # @param [Hash] opts the optional parameters
295
- # @return [GetSpendPowerResponse]
296
- describe 'get_spend_power test' do
297
- it 'should work' do
298
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
299
- end
300
- end
301
-
302
303
  # unit tests for migrate_financial_connection
303
304
  # Migrate financial connection
304
305
  # This endpoint migrates financial connections from Plaid or MX into the unified Fuse API. It accepts a POST request with connection data, aggregator, entity, and Fuse products, and responds with a JSON payload containing the migrated connection&#39;s data, access token, ID, and request ID.
@@ -334,13 +335,13 @@ describe 'FuseApi' do
334
335
  end
335
336
  end
336
337
 
337
- # unit tests for update_spend_power_customization
338
- # Update spend power customization
339
- # @param spend_power_customization_id
338
+ # unit tests for update_consumer_risk_report_customization
339
+ # Update consumer risk report customization
340
+ # @param consumer_risk_report_customization_id
340
341
  # @param [Hash] opts the optional parameters
341
- # @option opts [UpdateSpendPowerCustomizationRequest] :update_spend_power_customization_request
342
- # @return [UpdateSpendPowerCustomizationResponse]
343
- describe 'update_spend_power_customization test' do
342
+ # @option opts [UpdateConsumerRiskReportCustomizationRequest] :update_consumer_risk_report_customization_request
343
+ # @return [UpdateConsumerRiskReportCustomizationResponse]
344
+ describe 'update_consumer_risk_report_customization test' do
344
345
  it 'should work' do
345
346
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
346
347
  end