fuse_client 1.0.37 → 1.0.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/docs/{SpendPower.md → ConsumerRiskReport.md} +5 -5
  4. data/docs/{SpendPowerCustomization.md → ConsumerRiskReportCustomization.md} +6 -6
  5. data/docs/{SpendPowerTimeFrame.md → ConsumerRiskReportTimeFrame.md} +2 -2
  6. data/docs/{CreateSpendPowerCustomizationRequest.md → CreateConsumerRiskReportCustomizationRequest.md} +5 -5
  7. data/docs/{CreateSpendPowerCustomizationResponse.md → CreateConsumerRiskReportCustomizationResponse.md} +2 -2
  8. data/docs/CreateConsumerRiskReportRequest.md +24 -0
  9. data/docs/{DeleteSpendPowerResponse.md → CreateConsumerRiskReportResponse.md} +3 -3
  10. data/docs/CreateLinkTokenRequest.md +3 -1
  11. data/docs/CreateLinkTokenRequestSnaptrade.md +18 -0
  12. data/docs/CreateLinkTokenRequestSnaptradeConfig.md +18 -0
  13. data/docs/{CreateSpendPowerResponse.md → DeleteConsumerRiskReportResponse.md} +3 -3
  14. data/docs/EnrichedTransaction.md +4 -26
  15. data/docs/EvalConsumerRiskReportRequest.md +22 -0
  16. data/docs/{EvalSpendPowerRequestEventsInner.md → EvalConsumerRiskReportRequestEventsInner.md} +2 -2
  17. data/docs/{EvalSpendPowerResponse.md → EvalConsumerRiskReportResponse.md} +2 -2
  18. data/docs/ExternalTransactionEvent.md +8 -2
  19. data/docs/FinancialConnectionDetails.md +5 -1
  20. data/docs/FinancialConnectionDetailsBasiq.md +20 -0
  21. data/docs/FinancialConnectionDetailsBelvo.md +20 -0
  22. data/docs/FinancialConnectionsAccount.md +2 -0
  23. data/docs/FinancialConnectionsAccountLiability.md +2 -0
  24. data/docs/FinancialConnectionsInvestmentSecurityExchange.md +3 -1
  25. data/docs/FinancialConnectionsOwnerAddressesInnerData.md +2 -0
  26. data/docs/FuseApi.md +153 -149
  27. data/docs/{GetSpendPowerCustomizationResponse.md → GetConsumerRiskReportCustomizationResponse.md} +4 -4
  28. data/docs/{GetSpendPowerResponse.md → GetConsumerRiskReportResponse.md} +4 -4
  29. data/docs/InAppTransactionEvent.md +1 -1
  30. data/docs/RiskReportApi.md +165 -0
  31. data/docs/Transaction.md +1 -1
  32. data/docs/TransactionToEnrich.md +13 -5
  33. data/docs/{UpdateSpendPowerCustomizationRequest.md → UpdateConsumerRiskReportCustomizationRequest.md} +5 -5
  34. data/docs/{UpdateSpendPowerCustomizationResponse.md → UpdateConsumerRiskReportCustomizationResponse.md} +2 -2
  35. data/docs/UpdatedBalanceEvent.md +2 -2
  36. data/lib/fuse_client/api/fuse_api.rb +142 -139
  37. data/lib/fuse_client/api/{spend_power_api.rb → risk_report_api.rb} +39 -39
  38. data/lib/fuse_client/configuration.rb +5 -1
  39. data/lib/fuse_client/models/account_subtype.rb +3 -2
  40. data/lib/fuse_client/models/aggregator.rb +3 -1
  41. data/lib/fuse_client/models/{spend_power.rb → consumer_risk_report.rb} +4 -6
  42. data/lib/fuse_client/models/{spend_power_customization.rb → consumer_risk_report_customization.rb} +6 -7
  43. data/lib/fuse_client/models/{spend_power_time_frame.rb → consumer_risk_report_time_frame.rb} +3 -3
  44. data/lib/fuse_client/models/{create_spend_power_customization_request.rb → create_consumer_risk_report_customization_request.rb} +6 -6
  45. data/lib/fuse_client/models/{create_spend_power_customization_response.rb → create_consumer_risk_report_customization_response.rb} +3 -3
  46. data/lib/fuse_client/models/{create_spend_power_request.rb → create_consumer_risk_report_request.rb} +16 -6
  47. data/lib/fuse_client/models/{delete_spend_power_response.rb → create_consumer_risk_report_response.rb} +3 -4
  48. data/lib/fuse_client/models/create_link_token_request.rb +13 -4
  49. data/lib/fuse_client/models/create_link_token_request_snaptrade.rb +220 -0
  50. data/lib/fuse_client/models/create_link_token_request_snaptrade_config.rb +256 -0
  51. data/lib/fuse_client/models/{create_spend_power_response.rb → delete_consumer_risk_report_response.rb} +3 -4
  52. data/lib/fuse_client/models/enriched_transaction.rb +17 -158
  53. data/lib/fuse_client/models/{eval_spend_power_request.rb → eval_consumer_risk_report_request.rb} +5 -5
  54. data/lib/fuse_client/models/{eval_spend_power_request_events_inner.rb → eval_consumer_risk_report_request_events_inner.rb} +3 -3
  55. data/lib/fuse_client/models/{eval_spend_power_response.rb → eval_consumer_risk_report_response.rb} +3 -3
  56. data/lib/fuse_client/models/external_transaction_event.rb +45 -7
  57. data/lib/fuse_client/models/financial_connection_details.rb +22 -4
  58. data/lib/fuse_client/models/financial_connection_details_basiq.rb +241 -0
  59. data/lib/fuse_client/models/financial_connection_details_belvo.rb +236 -0
  60. data/lib/fuse_client/models/financial_connections_account.rb +16 -1
  61. data/lib/fuse_client/models/financial_connections_account_balance.rb +2 -0
  62. data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +2 -0
  63. data/lib/fuse_client/models/financial_connections_account_liability.rb +16 -1
  64. data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +14 -4
  65. data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +11 -1
  66. data/lib/fuse_client/models/fuse_api_error_code.rb +6 -3
  67. data/lib/fuse_client/models/get_consumer_risk_report_customization_response.rb +239 -0
  68. data/lib/fuse_client/models/{get_spend_power_response.rb → get_consumer_risk_report_response.rb} +13 -13
  69. data/lib/fuse_client/models/in_app_transaction_event.rb +0 -5
  70. data/lib/fuse_client/models/transaction.rb +1 -1
  71. data/lib/fuse_client/models/transaction_to_enrich.rb +130 -27
  72. data/lib/fuse_client/models/{update_spend_power_customization_request.rb → update_consumer_risk_report_customization_request.rb} +6 -6
  73. data/lib/fuse_client/models/{update_spend_power_customization_response.rb → update_consumer_risk_report_customization_response.rb} +3 -3
  74. data/lib/fuse_client/models/updated_balance_event.rb +2 -2
  75. data/lib/fuse_client/version.rb +1 -1
  76. data/lib/fuse_client.rb +20 -16
  77. data/spec/api/fuse_api_spec.rb +37 -36
  78. data/spec/api/{spend_power_api_spec.rb → risk_report_api_spec.rb} +16 -16
  79. data/spec/models/asset_report_transaction_spec.rb +1 -1
  80. data/spec/models/{spend_power_customization_spec.rb → consumer_risk_report_customization_spec.rb} +6 -6
  81. data/spec/models/{spend_power_spec.rb → consumer_risk_report_spec.rb} +6 -6
  82. data/spec/models/{spend_power_time_frame_spec.rb → consumer_risk_report_time_frame_spec.rb} +6 -6
  83. data/spec/models/{create_spend_power_customization_request_spec.rb → create_consumer_risk_report_customization_request_spec.rb} +6 -6
  84. data/spec/models/{create_spend_power_customization_response_spec.rb → create_consumer_risk_report_customization_response_spec.rb} +6 -6
  85. data/spec/models/{create_spend_power_request_spec.rb → create_consumer_risk_report_request_spec.rb} +12 -6
  86. data/spec/models/{delete_spend_power_response_spec.rb → create_consumer_risk_report_response_spec.rb} +6 -6
  87. data/spec/models/create_link_token_request_snaptrade_config_spec.rb +38 -0
  88. data/spec/models/create_link_token_request_snaptrade_spec.rb +34 -0
  89. data/spec/models/create_link_token_request_spec.rb +6 -0
  90. data/spec/models/{create_spend_power_response_spec.rb → delete_consumer_risk_report_response_spec.rb} +6 -6
  91. data/spec/models/enriched_transaction_spec.rb +2 -72
  92. data/spec/models/{eval_spend_power_request_events_inner_spec.rb → eval_consumer_risk_report_request_events_inner_spec.rb} +6 -6
  93. data/spec/models/{eval_spend_power_request_spec.rb → eval_consumer_risk_report_request_spec.rb} +6 -6
  94. data/spec/models/{eval_spend_power_response_spec.rb → eval_consumer_risk_report_response_spec.rb} +6 -6
  95. data/spec/models/external_transaction_event_spec.rb +22 -0
  96. data/spec/models/financial_connection_details_basiq_spec.rb +40 -0
  97. data/spec/models/financial_connection_details_belvo_spec.rb +40 -0
  98. data/spec/models/financial_connection_details_spec.rb +12 -0
  99. data/spec/models/financial_connections_account_liability_spec.rb +6 -0
  100. data/spec/models/financial_connections_account_spec.rb +6 -0
  101. data/spec/models/financial_connections_investment_security_exchange_spec.rb +6 -0
  102. data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +6 -0
  103. data/spec/models/{get_spend_power_customization_response_spec.rb → get_consumer_risk_report_customization_response_spec.rb} +7 -7
  104. data/spec/models/{get_spend_power_response_spec.rb → get_consumer_risk_report_response_spec.rb} +7 -7
  105. data/spec/models/transaction_spec.rb +1 -1
  106. data/spec/models/transaction_to_enrich_spec.rb +32 -4
  107. data/spec/models/{update_spend_power_customization_request_spec.rb → update_consumer_risk_report_customization_request_spec.rb} +6 -6
  108. data/spec/models/{update_spend_power_customization_response_spec.rb → update_consumer_risk_report_customization_response_spec.rb} +6 -6
  109. metadata +92 -76
  110. data/docs/CreateSpendPowerRequest.md +0 -22
  111. data/docs/EvalSpendPowerRequest.md +0 -22
  112. data/docs/SpendPowerApi.md +0 -165
  113. data/lib/fuse_client/models/get_spend_power_customization_response.rb +0 -239
@@ -18,6 +18,9 @@ module FuseClient
18
18
  # Remote Id of the account, ie Plaid or Teller account id
19
19
  attr_accessor :remote_id
20
20
 
21
+ # The ISO-4217 currency code of the account.
22
+ attr_accessor :currency
23
+
21
24
  # Uniquely identifies this account across all accounts for a single financial connection. Used for reconnection deduplication. See more information here: https://letsfuse.readme.io/docs/duplicate-accounts
22
25
  attr_accessor :fingerprint
23
26
 
@@ -63,6 +66,7 @@ module FuseClient
63
66
  def self.attribute_map
64
67
  {
65
68
  :'remote_id' => :'remote_id',
69
+ :'currency' => :'currency',
66
70
  :'fingerprint' => :'fingerprint',
67
71
  :'institution' => :'institution',
68
72
  :'mask' => :'mask',
@@ -83,6 +87,7 @@ module FuseClient
83
87
  def self.openapi_types
84
88
  {
85
89
  :'remote_id' => :'String',
90
+ :'currency' => :'String',
86
91
  :'fingerprint' => :'String',
87
92
  :'institution' => :'FinancialConnectionsAccountInstitution',
88
93
  :'mask' => :'String',
@@ -120,6 +125,10 @@ module FuseClient
120
125
  self.remote_id = attributes[:'remote_id']
121
126
  end
122
127
 
128
+ if attributes.key?(:'currency')
129
+ self.currency = attributes[:'currency']
130
+ end
131
+
123
132
  if attributes.key?(:'fingerprint')
124
133
  self.fingerprint = attributes[:'fingerprint']
125
134
  end
@@ -161,6 +170,10 @@ module FuseClient
161
170
  invalid_properties.push('invalid value for "remote_id", remote_id cannot be nil.')
162
171
  end
163
172
 
173
+ if @currency.nil?
174
+ invalid_properties.push('invalid value for "currency", currency cannot be nil.')
175
+ end
176
+
164
177
  if @fingerprint.nil?
165
178
  invalid_properties.push('invalid value for "fingerprint", fingerprint cannot be nil.')
166
179
  end
@@ -184,6 +197,7 @@ module FuseClient
184
197
  # @return true if the model is valid
185
198
  def valid?
186
199
  return false if @remote_id.nil?
200
+ return false if @currency.nil?
187
201
  return false if @fingerprint.nil?
188
202
  return false if @name.nil?
189
203
  return false if @type.nil?
@@ -197,6 +211,7 @@ module FuseClient
197
211
  return true if self.equal?(o)
198
212
  self.class == o.class &&
199
213
  remote_id == o.remote_id &&
214
+ currency == o.currency &&
200
215
  fingerprint == o.fingerprint &&
201
216
  institution == o.institution &&
202
217
  mask == o.mask &&
@@ -216,7 +231,7 @@ module FuseClient
216
231
  # Calculates hash code according to all attributes.
217
232
  # @return [Integer] Hash code
218
233
  def hash
219
- [remote_id, fingerprint, institution, mask, name, type, subtype, balance, remote_data].hash
234
+ [remote_id, currency, fingerprint, institution, mask, name, type, subtype, balance, remote_data].hash
220
235
  end
221
236
 
222
237
  # Builds the object from hash
@@ -60,6 +60,8 @@ module FuseClient
60
60
  # List of attributes with nullable: true
61
61
  def self.openapi_nullable
62
62
  Set.new([
63
+ :'available',
64
+ :'current',
63
65
  ])
64
66
  end
65
67
 
@@ -55,6 +55,8 @@ module FuseClient
55
55
  # List of attributes with nullable: true
56
56
  def self.openapi_nullable
57
57
  Set.new([
58
+ :'available',
59
+ :'current',
58
60
  ])
59
61
  end
60
62
 
@@ -18,6 +18,9 @@ module FuseClient
18
18
  # Remote Id of the account, ie Plaid or Teller account id
19
19
  attr_accessor :remote_id
20
20
 
21
+ # The ISO-4217 currency code of the account.
22
+ attr_accessor :currency
23
+
21
24
  # Uniquely identifies this account across all accounts for a single financial connection. Used for reconnection deduplication. See more information here: https://letsfuse.readme.io/docs/duplicate-accounts
22
25
  attr_accessor :fingerprint
23
26
 
@@ -84,6 +87,7 @@ module FuseClient
84
87
  def self.attribute_map
85
88
  {
86
89
  :'remote_id' => :'remote_id',
90
+ :'currency' => :'currency',
87
91
  :'fingerprint' => :'fingerprint',
88
92
  :'institution' => :'institution',
89
93
  :'mask' => :'mask',
@@ -111,6 +115,7 @@ module FuseClient
111
115
  def self.openapi_types
112
116
  {
113
117
  :'remote_id' => :'String',
118
+ :'currency' => :'String',
114
119
  :'fingerprint' => :'String',
115
120
  :'institution' => :'FinancialConnectionsAccountInstitution',
116
121
  :'mask' => :'String',
@@ -163,6 +168,10 @@ module FuseClient
163
168
  self.remote_id = attributes[:'remote_id']
164
169
  end
165
170
 
171
+ if attributes.key?(:'currency')
172
+ self.currency = attributes[:'currency']
173
+ end
174
+
166
175
  if attributes.key?(:'fingerprint')
167
176
  self.fingerprint = attributes[:'fingerprint']
168
177
  end
@@ -234,6 +243,10 @@ module FuseClient
234
243
  invalid_properties.push('invalid value for "remote_id", remote_id cannot be nil.')
235
244
  end
236
245
 
246
+ if @currency.nil?
247
+ invalid_properties.push('invalid value for "currency", currency cannot be nil.')
248
+ end
249
+
237
250
  if @fingerprint.nil?
238
251
  invalid_properties.push('invalid value for "fingerprint", fingerprint cannot be nil.')
239
252
  end
@@ -257,6 +270,7 @@ module FuseClient
257
270
  # @return true if the model is valid
258
271
  def valid?
259
272
  return false if @remote_id.nil?
273
+ return false if @currency.nil?
260
274
  return false if @fingerprint.nil?
261
275
  return false if @name.nil?
262
276
  return false if @type.nil?
@@ -270,6 +284,7 @@ module FuseClient
270
284
  return true if self.equal?(o)
271
285
  self.class == o.class &&
272
286
  remote_id == o.remote_id &&
287
+ currency == o.currency &&
273
288
  fingerprint == o.fingerprint &&
274
289
  institution == o.institution &&
275
290
  mask == o.mask &&
@@ -296,7 +311,7 @@ module FuseClient
296
311
  # Calculates hash code according to all attributes.
297
312
  # @return [Integer] Hash code
298
313
  def hash
299
- [remote_id, fingerprint, institution, mask, name, type, subtype, balance, remote_data, aprs, interest_rate_percentage, origination_principal_amount, next_payment_due_date, last_payment_date, last_payment_amount, minimum_payment_amount].hash
314
+ [remote_id, currency, fingerprint, institution, mask, name, type, subtype, balance, remote_data, aprs, interest_rate_percentage, origination_principal_amount, next_payment_due_date, last_payment_date, last_payment_amount, minimum_payment_amount].hash
300
315
  end
301
316
 
302
317
  # Builds the object from hash
@@ -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
@@ -51,6 +51,9 @@ module FuseClient
51
51
  MISSING_FINVERSE_CLIENT_ID_HEADER = "missing_finverse_client_id_header".freeze
52
52
  MISSING_FINVERSE_CLIENT_SECRET_HEADER = "missing_finverse_client_secret_header".freeze
53
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
54
57
  MISSING_FUSE_VERIFICATION_HEADER = "missing_fuse_verification_header".freeze
55
58
  AGGREGATOR_ERROR = "aggregator_error".freeze
56
59
  AGGREGATOR_DISCONNECTED_ERROR = "aggregator_disconnected_error".freeze
@@ -66,7 +69,7 @@ module FuseClient
66
69
  OTHER = "other".freeze
67
70
 
68
71
  def self.all_vars
69
- @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_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_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
70
73
  end
71
74
 
72
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
@@ -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
@@ -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