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
@@ -0,0 +1,270 @@
1
+ =begin
2
+ #Fuse
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.6.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FuseClient
17
+ class FinancialConnectionsAccountDetailsAccountNumber
18
+ # Unique identifier representing the account, typically referred to as the account number.
19
+ attr_accessor :number
20
+
21
+ # A six-digit number used by banks in the United Kingdom and Ireland to identify the branch where the account is held.
22
+ attr_accessor :sort_code
23
+
24
+ # International Bank Account Number (IBAN) is an internationally agreed system of identifying bank accounts across national borders to facilitate the communication and processing of cross border transactions.
25
+ attr_accessor :iban
26
+
27
+ # SWIFT/BIC code is an international identifier used to distinctively recognize a particular bank during financial transactions, such as money transfers.
28
+ attr_accessor :swift_bic
29
+
30
+ # Bank-State-Branch (BSB) code is a six-digit numerical code used to identify an individual branch of a financial institution in Australia.
31
+ attr_accessor :bsb
32
+
33
+ # Bank Identifier Code (BIC) is an international standard identifier used by banks and financial institutions globally to carry out transactions.
34
+ attr_accessor :bic
35
+
36
+ # Attribute mapping from ruby-style variable name to JSON key.
37
+ def self.attribute_map
38
+ {
39
+ :'number' => :'number',
40
+ :'sort_code' => :'sort_code',
41
+ :'iban' => :'iban',
42
+ :'swift_bic' => :'swift_bic',
43
+ :'bsb' => :'bsb',
44
+ :'bic' => :'bic'
45
+ }
46
+ end
47
+
48
+ # Returns all the JSON keys this model knows about
49
+ def self.acceptable_attributes
50
+ attribute_map.values
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.openapi_types
55
+ {
56
+ :'number' => :'String',
57
+ :'sort_code' => :'String',
58
+ :'iban' => :'String',
59
+ :'swift_bic' => :'String',
60
+ :'bsb' => :'String',
61
+ :'bic' => :'String'
62
+ }
63
+ end
64
+
65
+ # List of attributes with nullable: true
66
+ def self.openapi_nullable
67
+ Set.new([
68
+ ])
69
+ end
70
+
71
+ # Initializes the object
72
+ # @param [Hash] attributes Model attributes in the form of hash
73
+ def initialize(attributes = {})
74
+ if (!attributes.is_a?(Hash))
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::FinancialConnectionsAccountDetailsAccountNumber` initialize method"
76
+ end
77
+
78
+ # check to see if the attribute exists and convert string to symbol for hash key
79
+ attributes = attributes.each_with_object({}) { |(k, v), h|
80
+ if (!self.class.attribute_map.key?(k.to_sym))
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::FinancialConnectionsAccountDetailsAccountNumber`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
82
+ end
83
+ h[k.to_sym] = v
84
+ }
85
+
86
+ if attributes.key?(:'number')
87
+ self.number = attributes[:'number']
88
+ end
89
+
90
+ if attributes.key?(:'sort_code')
91
+ self.sort_code = attributes[:'sort_code']
92
+ end
93
+
94
+ if attributes.key?(:'iban')
95
+ self.iban = attributes[:'iban']
96
+ end
97
+
98
+ if attributes.key?(:'swift_bic')
99
+ self.swift_bic = attributes[:'swift_bic']
100
+ end
101
+
102
+ if attributes.key?(:'bsb')
103
+ self.bsb = attributes[:'bsb']
104
+ end
105
+
106
+ if attributes.key?(:'bic')
107
+ self.bic = attributes[:'bic']
108
+ end
109
+ end
110
+
111
+ # Show invalid properties with the reasons. Usually used together with valid?
112
+ # @return Array for valid properties with the reasons
113
+ def list_invalid_properties
114
+ invalid_properties = Array.new
115
+ invalid_properties
116
+ end
117
+
118
+ # Check to see if the all the properties in the model are valid
119
+ # @return true if the model is valid
120
+ def valid?
121
+ true
122
+ end
123
+
124
+ # Checks equality by comparing each attribute.
125
+ # @param [Object] Object to be compared
126
+ def ==(o)
127
+ return true if self.equal?(o)
128
+ self.class == o.class &&
129
+ number == o.number &&
130
+ sort_code == o.sort_code &&
131
+ iban == o.iban &&
132
+ swift_bic == o.swift_bic &&
133
+ bsb == o.bsb &&
134
+ bic == o.bic
135
+ end
136
+
137
+ # @see the `==` method
138
+ # @param [Object] Object to be compared
139
+ def eql?(o)
140
+ self == o
141
+ end
142
+
143
+ # Calculates hash code according to all attributes.
144
+ # @return [Integer] Hash code
145
+ def hash
146
+ [number, sort_code, iban, swift_bic, bsb, bic].hash
147
+ end
148
+
149
+ # Builds the object from hash
150
+ # @param [Hash] attributes Model attributes in the form of hash
151
+ # @return [Object] Returns the model itself
152
+ def self.build_from_hash(attributes)
153
+ new.build_from_hash(attributes)
154
+ end
155
+
156
+ # Builds the object from hash
157
+ # @param [Hash] attributes Model attributes in the form of hash
158
+ # @return [Object] Returns the model itself
159
+ def build_from_hash(attributes)
160
+ return nil unless attributes.is_a?(Hash)
161
+ attributes = attributes.transform_keys(&:to_sym)
162
+ self.class.openapi_types.each_pair do |key, type|
163
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
164
+ self.send("#{key}=", nil)
165
+ elsif type =~ /\AArray<(.*)>/i
166
+ # check to ensure the input is an array given that the attribute
167
+ # is documented as an array but the input is not
168
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
169
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
170
+ end
171
+ elsif !attributes[self.class.attribute_map[key]].nil?
172
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
173
+ end
174
+ end
175
+
176
+ self
177
+ end
178
+
179
+ # Deserializes the data based on type
180
+ # @param string type Data type
181
+ # @param string value Value to be deserialized
182
+ # @return [Object] Deserialized data
183
+ def _deserialize(type, value)
184
+ case type.to_sym
185
+ when :Time
186
+ Time.parse(value)
187
+ when :Date
188
+ Date.parse(value)
189
+ when :String
190
+ value.to_s
191
+ when :Integer
192
+ value.to_i
193
+ when :Float
194
+ value.to_f
195
+ when :Boolean
196
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
197
+ true
198
+ else
199
+ false
200
+ end
201
+ when :Object
202
+ # generic object (usually a Hash), return directly
203
+ value
204
+ when /\AArray<(?<inner_type>.+)>\z/
205
+ inner_type = Regexp.last_match[:inner_type]
206
+ value.map { |v| _deserialize(inner_type, v) }
207
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
208
+ k_type = Regexp.last_match[:k_type]
209
+ v_type = Regexp.last_match[:v_type]
210
+ {}.tap do |hash|
211
+ value.each do |k, v|
212
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
213
+ end
214
+ end
215
+ else # model
216
+ # models (e.g. Pet) or oneOf
217
+ klass = FuseClient.const_get(type)
218
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
219
+ end
220
+ end
221
+
222
+ # Returns the string representation of the object
223
+ # @return [String] String presentation of the object
224
+ def to_s
225
+ to_hash.to_s
226
+ end
227
+
228
+ # to_body is an alias to to_hash (backward compatibility)
229
+ # @return [Hash] Returns the object in the form of hash
230
+ def to_body
231
+ to_hash
232
+ end
233
+
234
+ # Returns the object in the form of hash
235
+ # @return [Hash] Returns the object in the form of hash
236
+ def to_hash
237
+ hash = {}
238
+ self.class.attribute_map.each_pair do |attr, param|
239
+ value = self.send(attr)
240
+ if value.nil?
241
+ is_nullable = self.class.openapi_nullable.include?(attr)
242
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
243
+ end
244
+
245
+ hash[param] = _to_hash(value)
246
+ end
247
+ hash
248
+ end
249
+
250
+ # Outputs non-array value in the form of hash
251
+ # For object, use to_hash. Otherwise, just return the value
252
+ # @param [Object] value Any valid value
253
+ # @return [Hash] Returns the value in the form of hash
254
+ def _to_hash(value)
255
+ if value.is_a?(Array)
256
+ value.compact.map { |v| _to_hash(v) }
257
+ elsif value.is_a?(Hash)
258
+ {}.tap do |hash|
259
+ value.each { |k, v| hash[k] = _to_hash(v) }
260
+ end
261
+ elsif value.respond_to? :to_hash
262
+ value.to_hash
263
+ else
264
+ value
265
+ end
266
+ end
267
+
268
+ end
269
+
270
+ end
@@ -18,10 +18,14 @@ module FuseClient
18
18
  # The Market Identifier Code (MIC) associated with the specific financial market or exchange where the security is traded.
19
19
  attr_accessor :mic_code
20
20
 
21
+ # The suffix of the security's ticker symbol.
22
+ attr_accessor :suffix
23
+
21
24
  # Attribute mapping from ruby-style variable name to JSON key.
22
25
  def self.attribute_map
23
26
  {
24
- :'mic_code' => :'mic_code'
27
+ :'mic_code' => :'mic_code',
28
+ :'suffix' => :'suffix'
25
29
  }
26
30
  end
27
31
 
@@ -33,7 +37,8 @@ module FuseClient
33
37
  # Attribute type mapping.
34
38
  def self.openapi_types
35
39
  {
36
- :'mic_code' => :'String'
40
+ :'mic_code' => :'String',
41
+ :'suffix' => :'String'
37
42
  }
38
43
  end
39
44
 
@@ -61,6 +66,10 @@ module FuseClient
61
66
  if attributes.key?(:'mic_code')
62
67
  self.mic_code = attributes[:'mic_code']
63
68
  end
69
+
70
+ if attributes.key?(:'suffix')
71
+ self.suffix = attributes[:'suffix']
72
+ end
64
73
  end
65
74
 
66
75
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -81,7 +90,8 @@ module FuseClient
81
90
  def ==(o)
82
91
  return true if self.equal?(o)
83
92
  self.class == o.class &&
84
- mic_code == o.mic_code
93
+ mic_code == o.mic_code &&
94
+ suffix == o.suffix
85
95
  end
86
96
 
87
97
  # @see the `==` method
@@ -93,7 +103,7 @@ module FuseClient
93
103
  # Calculates hash code according to all attributes.
94
104
  # @return [Integer] Hash code
95
105
  def hash
96
- [mic_code].hash
106
+ [mic_code, suffix].hash
97
107
  end
98
108
 
99
109
  # Builds the object from hash
@@ -15,6 +15,9 @@ require 'time'
15
15
 
16
16
  module FuseClient
17
17
  class FinancialConnectionsOwnerAddressesInnerData
18
+ # Full address of the owner
19
+ attr_accessor :full_address
20
+
18
21
  # City of the address
19
22
  attr_accessor :city
20
23
 
@@ -33,6 +36,7 @@ module FuseClient
33
36
  # Attribute mapping from ruby-style variable name to JSON key.
34
37
  def self.attribute_map
35
38
  {
39
+ :'full_address' => :'full_address',
36
40
  :'city' => :'city',
37
41
  :'country' => :'country',
38
42
  :'postal_code' => :'postal_code',
@@ -49,6 +53,7 @@ module FuseClient
49
53
  # Attribute type mapping.
50
54
  def self.openapi_types
51
55
  {
56
+ :'full_address' => :'String',
52
57
  :'city' => :'String',
53
58
  :'country' => :'String',
54
59
  :'postal_code' => :'String',
@@ -78,6 +83,10 @@ module FuseClient
78
83
  h[k.to_sym] = v
79
84
  }
80
85
 
86
+ if attributes.key?(:'full_address')
87
+ self.full_address = attributes[:'full_address']
88
+ end
89
+
81
90
  if attributes.key?(:'city')
82
91
  self.city = attributes[:'city']
83
92
  end
@@ -117,6 +126,7 @@ module FuseClient
117
126
  def ==(o)
118
127
  return true if self.equal?(o)
119
128
  self.class == o.class &&
129
+ full_address == o.full_address &&
120
130
  city == o.city &&
121
131
  country == o.country &&
122
132
  postal_code == o.postal_code &&
@@ -133,7 +143,7 @@ module FuseClient
133
143
  # Calculates hash code according to all attributes.
134
144
  # @return [Integer] Hash code
135
145
  def hash
136
- [city, country, postal_code, region, street].hash
146
+ [full_address, city, country, postal_code, region, street].hash
137
147
  end
138
148
 
139
149
  # Builds the object from hash
@@ -25,8 +25,8 @@ module FuseClient
25
25
  ENTITY_NOT_FOUND = "entity_not_found".freeze
26
26
  SESSION_NOT_FOUND = "session_not_found".freeze
27
27
  FINANCIAL_INSTITUTION_NOT_FOUND = "financial_institution_not_found".freeze
28
- SPEND_POWER_NOT_FOUND = "spend_power_not_found".freeze
29
- SPEND_POWER_CUSTOMIZATION_NOT_FOUND = "spend_power_customization_not_found".freeze
28
+ CONSUMER_RISK_REPORT_NOT_FOUND = "consumer_risk_report_not_found".freeze
29
+ CONSUMER_RISK_REPORT_CUSTOMIZATION_NOT_FOUND = "consumer_risk_report_customization_not_found".freeze
30
30
  MISSING_ACCESS_TOKEN = "missing_access_token".freeze
31
31
  MISSING_PLAID_CLIENT_ID_HEADER = "missing_plaid_client_id_header".freeze
32
32
  MISSING_PLAID_SECRET_HEADER = "missing_plaid_secret_header".freeze
@@ -45,6 +45,15 @@ module FuseClient
45
45
  MISSING_MONO_PUBLIC_KEY_HEADER = "missing_mono_public_key_header".freeze
46
46
  MISSING_MONO_SECRET_KEY_HEADER = "missing_mono_secret_key_header".freeze
47
47
  MISSING_MONO_WEBHOOK_SECRET_HEADER = "missing_mono_webhook_secret_header".freeze
48
+ MISSING_TRUELAYER_CLIENT_ID_HEADER = "missing_truelayer_client_id_header".freeze
49
+ MISSING_TRUELAYER_CLIENT_SECRET_HEADER = "missing_truelayer_client_secret_header".freeze
50
+ MISSING_TRUELAYER_REDIRECT_URI_HEADER = "missing_truelayer_redirect_uri_header".freeze
51
+ MISSING_FINVERSE_CLIENT_ID_HEADER = "missing_finverse_client_id_header".freeze
52
+ MISSING_FINVERSE_CLIENT_SECRET_HEADER = "missing_finverse_client_secret_header".freeze
53
+ MISSING_FINVERSE_REDIRECT_URI_HEADER = "missing_finverse_redirect_uri_header".freeze
54
+ MISSING_BASIQ_API_KEY_HEADER = "missing_basiq_api_key_header".freeze
55
+ MISSING_BELVO_SECRET_ID_HEADER = "missing_belvo_secret_id_header".freeze
56
+ MISSING_BELVO_SECRET_PASSWORD_HEADER = "missing_belvo_secret_password_header".freeze
48
57
  MISSING_FUSE_VERIFICATION_HEADER = "missing_fuse_verification_header".freeze
49
58
  AGGREGATOR_ERROR = "aggregator_error".freeze
50
59
  AGGREGATOR_DISCONNECTED_ERROR = "aggregator_disconnected_error".freeze
@@ -60,7 +69,7 @@ module FuseClient
60
69
  OTHER = "other".freeze
61
70
 
62
71
  def self.all_vars
63
- @all_vars ||= [ASSET_REPORT_GENERATION_FAILED, ASSET_REPORT_NOT_READY, CLIENT_ERROR, INVALID_HEADERS, INVALID_REQUEST_BODY, INTERNAL_SERVER_ERROR, ORGANIZATION_NOT_FOUND, ENTITY_NOT_FOUND, SESSION_NOT_FOUND, FINANCIAL_INSTITUTION_NOT_FOUND, SPEND_POWER_NOT_FOUND, SPEND_POWER_CUSTOMIZATION_NOT_FOUND, MISSING_ACCESS_TOKEN, MISSING_PLAID_CLIENT_ID_HEADER, MISSING_PLAID_SECRET_HEADER, MISSING_MX_CLIENT_ID_HEADER, MISSING_MX_API_KEY_HEADER, MISSING_TELLER_PRIVATE_KEY_HEADER, MISSING_TELLER_CERTIFICATE_HEADER, MISSING_TELLER_APPLICATION_ID_HEADER, MISSING_TELLER_SIGNING_SECRET_HEADER, MISSING_SNAPTRADE_CLIENT_ID_HEADER, MISSING_SNAPTRADE_CONSUMER_KEY_HEADER, MISSING_FLINKS_CA_CUSTOMER_ID_HEADER, MISSING_FLINKS_US_CUSTOMER_ID_HEADER, MISSING_FLINKS_CA_INSTANCE_ID_HEADER, MISSING_FLINKS_US_INSTANCE_ID_HEADER, MISSING_MONO_PUBLIC_KEY_HEADER, MISSING_MONO_SECRET_KEY_HEADER, MISSING_MONO_WEBHOOK_SECRET_HEADER, MISSING_FUSE_VERIFICATION_HEADER, AGGREGATOR_ERROR, AGGREGATOR_DISCONNECTED_ERROR, AGGREGATOR_CONNECTION_FINISHED_ERROR, AGGREGATOR_RATE_LIMIT_ERROR, REQUEST_BODY_MISSING, REQUEST_CONTENT_TYPE_INVALID, REQUEST_BODY_INVALID_JSON, WEBHOOK_ERROR, TIMEOUT, INVALID_CERTIFICATE, INVALID_PRIVATE_KEY, OTHER].freeze
72
+ @all_vars ||= [ASSET_REPORT_GENERATION_FAILED, ASSET_REPORT_NOT_READY, CLIENT_ERROR, INVALID_HEADERS, INVALID_REQUEST_BODY, INTERNAL_SERVER_ERROR, ORGANIZATION_NOT_FOUND, ENTITY_NOT_FOUND, SESSION_NOT_FOUND, FINANCIAL_INSTITUTION_NOT_FOUND, CONSUMER_RISK_REPORT_NOT_FOUND, CONSUMER_RISK_REPORT_CUSTOMIZATION_NOT_FOUND, MISSING_ACCESS_TOKEN, MISSING_PLAID_CLIENT_ID_HEADER, MISSING_PLAID_SECRET_HEADER, MISSING_MX_CLIENT_ID_HEADER, MISSING_MX_API_KEY_HEADER, MISSING_TELLER_PRIVATE_KEY_HEADER, MISSING_TELLER_CERTIFICATE_HEADER, MISSING_TELLER_APPLICATION_ID_HEADER, MISSING_TELLER_SIGNING_SECRET_HEADER, MISSING_SNAPTRADE_CLIENT_ID_HEADER, MISSING_SNAPTRADE_CONSUMER_KEY_HEADER, MISSING_FLINKS_CA_CUSTOMER_ID_HEADER, MISSING_FLINKS_US_CUSTOMER_ID_HEADER, MISSING_FLINKS_CA_INSTANCE_ID_HEADER, MISSING_FLINKS_US_INSTANCE_ID_HEADER, MISSING_MONO_PUBLIC_KEY_HEADER, MISSING_MONO_SECRET_KEY_HEADER, MISSING_MONO_WEBHOOK_SECRET_HEADER, MISSING_TRUELAYER_CLIENT_ID_HEADER, MISSING_TRUELAYER_CLIENT_SECRET_HEADER, MISSING_TRUELAYER_REDIRECT_URI_HEADER, MISSING_FINVERSE_CLIENT_ID_HEADER, MISSING_FINVERSE_CLIENT_SECRET_HEADER, MISSING_FINVERSE_REDIRECT_URI_HEADER, MISSING_BASIQ_API_KEY_HEADER, MISSING_BELVO_SECRET_ID_HEADER, MISSING_BELVO_SECRET_PASSWORD_HEADER, MISSING_FUSE_VERIFICATION_HEADER, AGGREGATOR_ERROR, AGGREGATOR_DISCONNECTED_ERROR, AGGREGATOR_CONNECTION_FINISHED_ERROR, AGGREGATOR_RATE_LIMIT_ERROR, REQUEST_BODY_MISSING, REQUEST_CONTENT_TYPE_INVALID, REQUEST_BODY_INVALID_JSON, WEBHOOK_ERROR, TIMEOUT, INVALID_CERTIFICATE, INVALID_PRIVATE_KEY, OTHER].freeze
64
73
  end
65
74
 
66
75
  # Builds the enum from string
@@ -0,0 +1,239 @@
1
+ =begin
2
+ #Fuse
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.6.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FuseClient
17
+ class GetConsumerRiskReportCustomizationResponse
18
+ attr_accessor :consumer_risk_report_customization
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
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'consumer_risk_report_customization' => :'consumer_risk_report_customization',
27
+ :'request_id' => :'request_id'
28
+ }
29
+ end
30
+
31
+ # Returns all the JSON keys this model knows about
32
+ def self.acceptable_attributes
33
+ attribute_map.values
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.openapi_types
38
+ {
39
+ :'consumer_risk_report_customization' => :'ConsumerRiskReportCustomization',
40
+ :'request_id' => :'String'
41
+ }
42
+ end
43
+
44
+ # List of attributes with nullable: true
45
+ def self.openapi_nullable
46
+ Set.new([
47
+ ])
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ if (!attributes.is_a?(Hash))
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::GetConsumerRiskReportCustomizationResponse` initialize method"
55
+ end
56
+
57
+ # check to see if the attribute exists and convert string to symbol for hash key
58
+ attributes = attributes.each_with_object({}) { |(k, v), h|
59
+ if (!self.class.attribute_map.key?(k.to_sym))
60
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::GetConsumerRiskReportCustomizationResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ end
62
+ h[k.to_sym] = v
63
+ }
64
+
65
+ if attributes.key?(:'consumer_risk_report_customization')
66
+ self.consumer_risk_report_customization = attributes[:'consumer_risk_report_customization']
67
+ end
68
+
69
+ if attributes.key?(:'request_id')
70
+ self.request_id = attributes[:'request_id']
71
+ end
72
+ end
73
+
74
+ # Show invalid properties with the reasons. Usually used together with valid?
75
+ # @return Array for valid properties with the reasons
76
+ def list_invalid_properties
77
+ invalid_properties = Array.new
78
+ if @consumer_risk_report_customization.nil?
79
+ invalid_properties.push('invalid value for "consumer_risk_report_customization", consumer_risk_report_customization cannot be nil.')
80
+ end
81
+
82
+ if @request_id.nil?
83
+ invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
84
+ end
85
+
86
+ invalid_properties
87
+ end
88
+
89
+ # Check to see if the all the properties in the model are valid
90
+ # @return true if the model is valid
91
+ def valid?
92
+ return false if @consumer_risk_report_customization.nil?
93
+ return false if @request_id.nil?
94
+ true
95
+ end
96
+
97
+ # Checks equality by comparing each attribute.
98
+ # @param [Object] Object to be compared
99
+ def ==(o)
100
+ return true if self.equal?(o)
101
+ self.class == o.class &&
102
+ consumer_risk_report_customization == o.consumer_risk_report_customization &&
103
+ request_id == o.request_id
104
+ end
105
+
106
+ # @see the `==` method
107
+ # @param [Object] Object to be compared
108
+ def eql?(o)
109
+ self == o
110
+ end
111
+
112
+ # Calculates hash code according to all attributes.
113
+ # @return [Integer] Hash code
114
+ def hash
115
+ [consumer_risk_report_customization, request_id].hash
116
+ end
117
+
118
+ # Builds the object from hash
119
+ # @param [Hash] attributes Model attributes in the form of hash
120
+ # @return [Object] Returns the model itself
121
+ def self.build_from_hash(attributes)
122
+ new.build_from_hash(attributes)
123
+ end
124
+
125
+ # Builds the object from hash
126
+ # @param [Hash] attributes Model attributes in the form of hash
127
+ # @return [Object] Returns the model itself
128
+ def build_from_hash(attributes)
129
+ return nil unless attributes.is_a?(Hash)
130
+ attributes = attributes.transform_keys(&:to_sym)
131
+ self.class.openapi_types.each_pair do |key, type|
132
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
133
+ self.send("#{key}=", nil)
134
+ elsif type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the attribute
136
+ # is documented as an array but the input is not
137
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
138
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
139
+ end
140
+ elsif !attributes[self.class.attribute_map[key]].nil?
141
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
142
+ end
143
+ end
144
+
145
+ self
146
+ end
147
+
148
+ # Deserializes the data based on type
149
+ # @param string type Data type
150
+ # @param string value Value to be deserialized
151
+ # @return [Object] Deserialized data
152
+ def _deserialize(type, value)
153
+ case type.to_sym
154
+ when :Time
155
+ Time.parse(value)
156
+ when :Date
157
+ Date.parse(value)
158
+ when :String
159
+ value.to_s
160
+ when :Integer
161
+ value.to_i
162
+ when :Float
163
+ value.to_f
164
+ when :Boolean
165
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
166
+ true
167
+ else
168
+ false
169
+ end
170
+ when :Object
171
+ # generic object (usually a Hash), return directly
172
+ value
173
+ when /\AArray<(?<inner_type>.+)>\z/
174
+ inner_type = Regexp.last_match[:inner_type]
175
+ value.map { |v| _deserialize(inner_type, v) }
176
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
177
+ k_type = Regexp.last_match[:k_type]
178
+ v_type = Regexp.last_match[:v_type]
179
+ {}.tap do |hash|
180
+ value.each do |k, v|
181
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
182
+ end
183
+ end
184
+ else # model
185
+ # models (e.g. Pet) or oneOf
186
+ klass = FuseClient.const_get(type)
187
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
188
+ end
189
+ end
190
+
191
+ # Returns the string representation of the object
192
+ # @return [String] String presentation of the object
193
+ def to_s
194
+ to_hash.to_s
195
+ end
196
+
197
+ # to_body is an alias to to_hash (backward compatibility)
198
+ # @return [Hash] Returns the object in the form of hash
199
+ def to_body
200
+ to_hash
201
+ end
202
+
203
+ # Returns the object in the form of hash
204
+ # @return [Hash] Returns the object in the form of hash
205
+ def to_hash
206
+ hash = {}
207
+ self.class.attribute_map.each_pair do |attr, param|
208
+ value = self.send(attr)
209
+ if value.nil?
210
+ is_nullable = self.class.openapi_nullable.include?(attr)
211
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
212
+ end
213
+
214
+ hash[param] = _to_hash(value)
215
+ end
216
+ hash
217
+ end
218
+
219
+ # Outputs non-array value in the form of hash
220
+ # For object, use to_hash. Otherwise, just return the value
221
+ # @param [Object] value Any valid value
222
+ # @return [Hash] Returns the value in the form of hash
223
+ def _to_hash(value)
224
+ if value.is_a?(Array)
225
+ value.compact.map { |v| _to_hash(v) }
226
+ elsif value.is_a?(Hash)
227
+ {}.tap do |hash|
228
+ value.each { |k, v| hash[k] = _to_hash(v) }
229
+ end
230
+ elsif value.respond_to? :to_hash
231
+ value.to_hash
232
+ else
233
+ value
234
+ end
235
+ end
236
+
237
+ end
238
+
239
+ end