fuse_client 1.0.37 → 1.0.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -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/EvalConsumerRiskReportRequest.md +22 -0
  12. data/docs/{EvalSpendPowerRequestEventsInner.md → EvalConsumerRiskReportRequestEventsInner.md} +2 -2
  13. data/docs/{EvalSpendPowerResponse.md → EvalConsumerRiskReportResponse.md} +2 -2
  14. data/docs/ExternalTransactionEvent.md +2 -2
  15. data/docs/FinancialConnectionDetails.md +5 -1
  16. data/docs/FinancialConnectionDetailsBasiq.md +20 -0
  17. data/docs/FinancialConnectionDetailsBelvo.md +20 -0
  18. data/docs/FinancialConnectionsInvestmentSecurityExchange.md +3 -1
  19. data/docs/FinancialConnectionsOwnerAddressesInnerData.md +2 -0
  20. data/docs/FuseApi.md +152 -148
  21. data/docs/{GetSpendPowerCustomizationResponse.md → GetConsumerRiskReportCustomizationResponse.md} +4 -4
  22. data/docs/{GetSpendPowerResponse.md → GetConsumerRiskReportResponse.md} +4 -4
  23. data/docs/InAppTransactionEvent.md +1 -1
  24. data/docs/RiskReportApi.md +165 -0
  25. data/docs/Transaction.md +1 -1
  26. data/docs/{UpdateSpendPowerCustomizationRequest.md → UpdateConsumerRiskReportCustomizationRequest.md} +5 -5
  27. data/docs/{UpdateSpendPowerCustomizationResponse.md → UpdateConsumerRiskReportCustomizationResponse.md} +2 -2
  28. data/docs/UpdatedBalanceEvent.md +2 -2
  29. data/fuse_client-1.0.37.gem +0 -0
  30. data/lib/fuse_client/api/fuse_api.rb +142 -139
  31. data/lib/fuse_client/api/{spend_power_api.rb → risk_report_api.rb} +39 -39
  32. data/lib/fuse_client/models/account_subtype.rb +3 -2
  33. data/lib/fuse_client/models/aggregator.rb +3 -1
  34. data/lib/fuse_client/models/{spend_power.rb → consumer_risk_report.rb} +4 -6
  35. data/lib/fuse_client/models/{spend_power_customization.rb → consumer_risk_report_customization.rb} +6 -7
  36. data/lib/fuse_client/models/{spend_power_time_frame.rb → consumer_risk_report_time_frame.rb} +3 -3
  37. data/lib/fuse_client/models/{create_spend_power_customization_request.rb → create_consumer_risk_report_customization_request.rb} +6 -6
  38. data/lib/fuse_client/models/{create_spend_power_customization_response.rb → create_consumer_risk_report_customization_response.rb} +3 -3
  39. data/lib/fuse_client/models/{create_spend_power_request.rb → create_consumer_risk_report_request.rb} +5 -5
  40. data/lib/fuse_client/models/{delete_spend_power_response.rb → create_consumer_risk_report_response.rb} +3 -4
  41. data/lib/fuse_client/models/{create_spend_power_response.rb → delete_consumer_risk_report_response.rb} +3 -4
  42. data/lib/fuse_client/models/{eval_spend_power_request.rb → eval_consumer_risk_report_request.rb} +5 -5
  43. data/lib/fuse_client/models/{eval_spend_power_request_events_inner.rb → eval_consumer_risk_report_request_events_inner.rb} +3 -3
  44. data/lib/fuse_client/models/{eval_spend_power_response.rb → eval_consumer_risk_report_response.rb} +3 -3
  45. data/lib/fuse_client/models/external_transaction_event.rb +1 -6
  46. data/lib/fuse_client/models/financial_connection_details.rb +22 -4
  47. data/lib/fuse_client/models/financial_connection_details_basiq.rb +241 -0
  48. data/lib/fuse_client/models/financial_connection_details_belvo.rb +236 -0
  49. data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +14 -4
  50. data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +11 -1
  51. data/lib/fuse_client/models/fuse_api_error_code.rb +6 -3
  52. data/lib/fuse_client/models/get_consumer_risk_report_customization_response.rb +239 -0
  53. data/lib/fuse_client/models/{get_spend_power_response.rb → get_consumer_risk_report_response.rb} +13 -13
  54. data/lib/fuse_client/models/in_app_transaction_event.rb +0 -5
  55. data/lib/fuse_client/models/transaction.rb +1 -1
  56. data/lib/fuse_client/models/{update_spend_power_customization_request.rb → update_consumer_risk_report_customization_request.rb} +6 -6
  57. data/lib/fuse_client/models/{update_spend_power_customization_response.rb → update_consumer_risk_report_customization_response.rb} +3 -3
  58. data/lib/fuse_client/models/updated_balance_event.rb +2 -2
  59. data/lib/fuse_client/version.rb +1 -1
  60. data/lib/fuse_client.rb +18 -16
  61. data/spec/api/fuse_api_spec.rb +37 -36
  62. data/spec/api/{spend_power_api_spec.rb → risk_report_api_spec.rb} +16 -16
  63. data/spec/models/{spend_power_customization_spec.rb → consumer_risk_report_customization_spec.rb} +6 -6
  64. data/spec/models/{spend_power_spec.rb → consumer_risk_report_spec.rb} +6 -6
  65. data/spec/models/{spend_power_time_frame_spec.rb → consumer_risk_report_time_frame_spec.rb} +6 -6
  66. data/spec/models/{create_spend_power_customization_request_spec.rb → create_consumer_risk_report_customization_request_spec.rb} +6 -6
  67. data/spec/models/{create_spend_power_customization_response_spec.rb → create_consumer_risk_report_customization_response_spec.rb} +6 -6
  68. data/spec/models/{create_spend_power_request_spec.rb → create_consumer_risk_report_request_spec.rb} +6 -6
  69. data/spec/models/{delete_spend_power_response_spec.rb → create_consumer_risk_report_response_spec.rb} +6 -6
  70. data/spec/models/{create_spend_power_response_spec.rb → delete_consumer_risk_report_response_spec.rb} +6 -6
  71. data/spec/models/{eval_spend_power_request_events_inner_spec.rb → eval_consumer_risk_report_request_events_inner_spec.rb} +6 -6
  72. data/spec/models/{eval_spend_power_request_spec.rb → eval_consumer_risk_report_request_spec.rb} +6 -6
  73. data/spec/models/{eval_spend_power_response_spec.rb → eval_consumer_risk_report_response_spec.rb} +6 -6
  74. data/spec/models/financial_connection_details_basiq_spec.rb +40 -0
  75. data/spec/models/financial_connection_details_belvo_spec.rb +40 -0
  76. data/spec/models/financial_connection_details_spec.rb +12 -0
  77. data/spec/models/financial_connections_investment_security_exchange_spec.rb +6 -0
  78. data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +6 -0
  79. data/spec/models/{get_spend_power_customization_response_spec.rb → get_consumer_risk_report_customization_response_spec.rb} +7 -7
  80. data/spec/models/{get_spend_power_response_spec.rb → get_consumer_risk_report_response_spec.rb} +7 -7
  81. data/spec/models/{update_spend_power_customization_request_spec.rb → update_consumer_risk_report_customization_request_spec.rb} +6 -6
  82. data/spec/models/{update_spend_power_customization_response_spec.rb → update_consumer_risk_report_customization_response_spec.rb} +6 -6
  83. metadata +74 -65
  84. data/docs/EvalSpendPowerRequest.md +0 -22
  85. data/docs/SpendPowerApi.md +0 -165
  86. data/lib/fuse_client/models/get_spend_power_customization_response.rb +0 -239
@@ -37,6 +37,7 @@ module FuseClient
37
37
  CONSTRUCTION = "construction".freeze
38
38
  CONSUMER = "consumer".freeze
39
39
  HOME_EQUITY = "home_equity".freeze
40
+ FOREIGN = "foreign".freeze
40
41
  LOAN = "loan".freeze
41
42
  MORTGAGE = "mortgage".freeze
42
43
  OVERDRAFT = "overdraft".freeze
@@ -165,10 +166,10 @@ module FuseClient
165
166
  REVOLVING = "revolving".freeze
166
167
  OTHER = "other".freeze
167
168
  TIME_DEPOSIT = "time_deposit".freeze
168
- = "-".freeze
169
+ UNMAPPED = "-".freeze
169
170
 
170
171
  def self.all_vars
171
- @all_vars ||= [CHECKING, SAVINGS, CHECKING_OR_SAVINGS, BUSINESS_CHECKING_OR_SAVINGS, BUSINESS_SAVINGS, MONEY_MARKET, CERTIFICATE_OF_DEPOSIT, TREASURY, CREDIT_CARD, DEBIT_CARD, BONDS, HSA, PAYPAL, PREPAID, CASH_MANAGEMENT, EBT, AUTO, BUSINESS, COMMERCIAL, CONSTRUCTION, CONSUMER, HOME_EQUITY, LOAN, MORTGAGE, OVERDRAFT, LINE_OF_CREDIT, STUDENT, N529, N401_A, N401_K, N403_B, N457_B, FUNDS, BROKERAGE, SECURITIES, STOCKS, CASH_ISA, CRYPTO_EXCHANGE, EDUCATION_SAVING_ACCOUNT, FIXED_ANNUITY, GIC, HEALTH_REIMBURSEMENT_ARRANGEMENT, IRA, ISA, KEOGH, LIF, LIFE_INSURANCE, LIRA, LRIF, LRSP, MUTUAL_FUND, NON_CUSTODIAL_WALLET, NON_TAXABLE_BROKERAGE_ACCOUNT, OTHER_ANNUITY, OTHER_INSURANCE, PENSION, PRIF, PROFIT_SHARING_PLAN, QSHR, RDSP, RESP, RETIREMENT, RLIF, ROTH_IRA, ROTH_401_K, RRIF, RRSP, SARSEP, SEP_IRA, SIMPLE_IRA, SIPP, STOCK_PLAN, TFSA, TRUST, UGMA, UTMA, VARIABLE_ANNUITY, SMALL_BUSINESS, PERSONAL, PERSONAL_WITH_COLLATERAL, N457, ROLLOVER_IRA, TAXABLE, NON_TAXABLE, EMPLOYEE_STOCK_OWNERSHIP_PLAN, INDIVIDUAL, CASH_MANAGEMENT_ACCOUNT, EMPLOYEE_STOCK_PURCHASE_PLAN, REGISTERED_EDUCATION_SAVINGS_PLAN, FIXED_ANNUITY_TRADITIONAL_IRA, INHERITED_TRADITIONAL_IRA, FIXED_ANNUITY_ROTH_IRA, VARIABLE_ANNUITY_ROTH_IRA, INHERITED_ROTH_IRA, ADVISORY_ACCOUNT, BROKERAGE_MARGIN, CHARITABLE_GIFT_ACCOUNT, CHURCH_ACCOUNT, CONSERVATORSHIP, CUSTODIAL, DEFINED_BENEFIT_PLAN, DEFINED_CONTRIBUTION_PLAN, EDUCATIONAL, ESTATE, EXECUTOR, GROUP_RETIREMENT_SAVINGS_PLAN, GUARANTEED_INVESTMENT_CERTIFICATE, INDEXED_ANNUITY, INVESTMENT_CLUB, IRREVOCABLE_TRUST, JOINT_TENANTS_BY_ENTIRETY, JOINT_TENANTS_COMMUNITY_PROPERTY, JOINT_TENANTS_IN_COMMON, JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP, KEOUGH_PLAN, LIVING_TRUST, LOCKED_IN_RETIREMENT_ACCOUNT, LOCKED_IN_RETIREMENT_INVESTMENT_FUND, LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT, MONEY_PURCHASE_PLAN, PARTNERSHIP, N409_A, RPP, REVOCABLE_TRUST, ROTH_CONVERSION, SOLE_PROPRIETORSHIP, SPOUSAL_IRA, SPOUSAL_ROTH_IRA, TESTAMENTARY_TRUST, THRIFT_SAVINGS_PLAN, INHERITED_ANNUITY, CORPORATE_ACCOUNT, LIMITED_LIABILITY_ACCOUNT, BOAT, POWERSPORTS, RV, HELOC, VEHICLE_INSURANCE, DISABILITY, HEALTH, LONG_TERM_CARE, PROPERTY_AND_CASUALTY, UNIVERSAL_LIFE, TERM_LIFE, WHOLE_LIFE, ACCIDENTAL_DEATH_AND_DISMEMBERMENT, VARIABLE_UNIVERSAL_LIFE, REVOLVING, OTHER, TIME_DEPOSIT, ].freeze
172
+ @all_vars ||= [CHECKING, SAVINGS, CHECKING_OR_SAVINGS, BUSINESS_CHECKING_OR_SAVINGS, BUSINESS_SAVINGS, MONEY_MARKET, CERTIFICATE_OF_DEPOSIT, TREASURY, CREDIT_CARD, DEBIT_CARD, BONDS, HSA, PAYPAL, PREPAID, CASH_MANAGEMENT, EBT, AUTO, BUSINESS, COMMERCIAL, CONSTRUCTION, CONSUMER, HOME_EQUITY, FOREIGN, LOAN, MORTGAGE, OVERDRAFT, LINE_OF_CREDIT, STUDENT, N529, N401_A, N401_K, N403_B, N457_B, FUNDS, BROKERAGE, SECURITIES, STOCKS, CASH_ISA, CRYPTO_EXCHANGE, EDUCATION_SAVING_ACCOUNT, FIXED_ANNUITY, GIC, HEALTH_REIMBURSEMENT_ARRANGEMENT, IRA, ISA, KEOGH, LIF, LIFE_INSURANCE, LIRA, LRIF, LRSP, MUTUAL_FUND, NON_CUSTODIAL_WALLET, NON_TAXABLE_BROKERAGE_ACCOUNT, OTHER_ANNUITY, OTHER_INSURANCE, PENSION, PRIF, PROFIT_SHARING_PLAN, QSHR, RDSP, RESP, RETIREMENT, RLIF, ROTH_IRA, ROTH_401_K, RRIF, RRSP, SARSEP, SEP_IRA, SIMPLE_IRA, SIPP, STOCK_PLAN, TFSA, TRUST, UGMA, UTMA, VARIABLE_ANNUITY, SMALL_BUSINESS, PERSONAL, PERSONAL_WITH_COLLATERAL, N457, ROLLOVER_IRA, TAXABLE, NON_TAXABLE, EMPLOYEE_STOCK_OWNERSHIP_PLAN, INDIVIDUAL, CASH_MANAGEMENT_ACCOUNT, EMPLOYEE_STOCK_PURCHASE_PLAN, REGISTERED_EDUCATION_SAVINGS_PLAN, FIXED_ANNUITY_TRADITIONAL_IRA, INHERITED_TRADITIONAL_IRA, FIXED_ANNUITY_ROTH_IRA, VARIABLE_ANNUITY_ROTH_IRA, INHERITED_ROTH_IRA, ADVISORY_ACCOUNT, BROKERAGE_MARGIN, CHARITABLE_GIFT_ACCOUNT, CHURCH_ACCOUNT, CONSERVATORSHIP, CUSTODIAL, DEFINED_BENEFIT_PLAN, DEFINED_CONTRIBUTION_PLAN, EDUCATIONAL, ESTATE, EXECUTOR, GROUP_RETIREMENT_SAVINGS_PLAN, GUARANTEED_INVESTMENT_CERTIFICATE, INDEXED_ANNUITY, INVESTMENT_CLUB, IRREVOCABLE_TRUST, JOINT_TENANTS_BY_ENTIRETY, JOINT_TENANTS_COMMUNITY_PROPERTY, JOINT_TENANTS_IN_COMMON, JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP, KEOUGH_PLAN, LIVING_TRUST, LOCKED_IN_RETIREMENT_ACCOUNT, LOCKED_IN_RETIREMENT_INVESTMENT_FUND, LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT, MONEY_PURCHASE_PLAN, PARTNERSHIP, N409_A, RPP, REVOCABLE_TRUST, ROTH_CONVERSION, SOLE_PROPRIETORSHIP, SPOUSAL_IRA, SPOUSAL_ROTH_IRA, TESTAMENTARY_TRUST, THRIFT_SAVINGS_PLAN, INHERITED_ANNUITY, CORPORATE_ACCOUNT, LIMITED_LIABILITY_ACCOUNT, BOAT, POWERSPORTS, RV, HELOC, VEHICLE_INSURANCE, DISABILITY, HEALTH, LONG_TERM_CARE, PROPERTY_AND_CASUALTY, UNIVERSAL_LIFE, TERM_LIFE, WHOLE_LIFE, ACCIDENTAL_DEATH_AND_DISMEMBERMENT, VARIABLE_UNIVERSAL_LIFE, REVOLVING, OTHER, TIME_DEPOSIT, ].freeze
172
173
  end
173
174
 
174
175
  # Builds the enum from string
@@ -23,9 +23,11 @@ module FuseClient
23
23
  MONO = "mono".freeze
24
24
  TRUELAYER = "truelayer".freeze
25
25
  FINVERSE = "finverse".freeze
26
+ BASIQ = "basiq".freeze
27
+ BELVO = "belvo".freeze
26
28
 
27
29
  def self.all_vars
28
- @all_vars ||= [PLAID, TELLER, MX, SNAPTRADE, FLINKS, MONO, TRUELAYER, FINVERSE].freeze
30
+ @all_vars ||= [PLAID, TELLER, MX, SNAPTRADE, FLINKS, MONO, TRUELAYER, FINVERSE, BASIQ, BELVO].freeze
29
31
  end
30
32
 
31
33
  # Builds the enum from string
@@ -14,11 +14,9 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FuseClient
17
- class SpendPower
18
- # The id of the spend power
17
+ class ConsumerRiskReport
19
18
  attr_accessor :id
20
19
 
21
- # The customization id of the spend power.
22
20
  attr_accessor :customization_id
23
21
 
24
22
  # The total limit for the current timeframe, in cents.
@@ -33,7 +31,7 @@ module FuseClient
33
31
  # The ISO-4217 currency code of the transaction
34
32
  attr_accessor :iso_currency_code
35
33
 
36
- # The datetime of when the spend power was most recently updated, in ISO-8601 format.
34
+ # The datetime of when the consumer risk report was most recently updated, in ISO-8601 format.
37
35
  attr_accessor :last_updated
38
36
 
39
37
  attr_accessor :finance_score
@@ -86,13 +84,13 @@ module FuseClient
86
84
  # @param [Hash] attributes Model attributes in the form of hash
87
85
  def initialize(attributes = {})
88
86
  if (!attributes.is_a?(Hash))
89
- fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::SpendPower` initialize method"
87
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::ConsumerRiskReport` initialize method"
90
88
  end
91
89
 
92
90
  # check to see if the attribute exists and convert string to symbol for hash key
93
91
  attributes = attributes.each_with_object({}) { |(k, v), h|
94
92
  if (!self.class.attribute_map.key?(k.to_sym))
95
- fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::SpendPower`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
93
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::ConsumerRiskReport`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
96
94
  end
97
95
  h[k.to_sym] = v
98
96
  }
@@ -14,16 +14,15 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FuseClient
17
- class SpendPowerCustomization
18
- # The id of the spend power customization
17
+ class ConsumerRiskReportCustomization
19
18
  attr_accessor :id
20
19
 
21
20
  attr_accessor :timeframe
22
21
 
23
- # The minimum allowed limit for the spend power, in cents.
22
+ # The minimum allowed limit, in cents.
24
23
  attr_accessor :min_limit
25
24
 
26
- # The maximum allowed limit for the spend power, in cents.
25
+ # The maximum allowed limit, in cents.
27
26
  attr_accessor :max_limit
28
27
 
29
28
  # 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.
@@ -71,7 +70,7 @@ module FuseClient
71
70
  def self.openapi_types
72
71
  {
73
72
  :'id' => :'String',
74
- :'timeframe' => :'SpendPowerTimeFrame',
73
+ :'timeframe' => :'ConsumerRiskReportTimeFrame',
75
74
  :'min_limit' => :'Integer',
76
75
  :'max_limit' => :'Integer',
77
76
  :'risk_tolerance' => :'Integer'
@@ -88,13 +87,13 @@ module FuseClient
88
87
  # @param [Hash] attributes Model attributes in the form of hash
89
88
  def initialize(attributes = {})
90
89
  if (!attributes.is_a?(Hash))
91
- fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::SpendPowerCustomization` initialize method"
90
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::ConsumerRiskReportCustomization` initialize method"
92
91
  end
93
92
 
94
93
  # check to see if the attribute exists and convert string to symbol for hash key
95
94
  attributes = attributes.each_with_object({}) { |(k, v), h|
96
95
  if (!self.class.attribute_map.key?(k.to_sym))
97
- fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::SpendPowerCustomization`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
96
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::ConsumerRiskReportCustomization`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
98
97
  end
99
98
  h[k.to_sym] = v
100
99
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FuseClient
17
- class SpendPowerTimeFrame
17
+ class ConsumerRiskReportTimeFrame
18
18
  DAILY = "daily".freeze
19
19
  WEEKLY = "weekly".freeze
20
20
  MONTHLY = "monthly".freeze
@@ -34,8 +34,8 @@ module FuseClient
34
34
  # @param [String] The enum value in the form of the string
35
35
  # @return [String] The enum value
36
36
  def build_from_hash(value)
37
- return value if SpendPowerTimeFrame.all_vars.include?(value)
38
- raise "Invalid ENUM value #{value} for class #SpendPowerTimeFrame"
37
+ return value if ConsumerRiskReportTimeFrame.all_vars.include?(value)
38
+ raise "Invalid ENUM value #{value} for class #ConsumerRiskReportTimeFrame"
39
39
  end
40
40
  end
41
41
  end
@@ -14,13 +14,13 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FuseClient
17
- class CreateSpendPowerCustomizationRequest
17
+ class CreateConsumerRiskReportCustomizationRequest
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::CreateSpendPowerCustomizationRequest` initialize method"
86
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::CreateConsumerRiskReportCustomizationRequest` 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::CreateSpendPowerCustomizationRequest`. 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::CreateConsumerRiskReportCustomizationRequest`. 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 CreateSpendPowerCustomizationResponse
17
+ class CreateConsumerRiskReportCustomizationResponse
18
18
  # The id of the created 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::CreateSpendPowerCustomizationResponse` initialize method"
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::CreateConsumerRiskReportCustomizationResponse` 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::CreateSpendPowerCustomizationResponse`. 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::CreateConsumerRiskReportCustomizationResponse`. 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
  }
@@ -14,14 +14,14 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FuseClient
17
- class CreateSpendPowerRequest
18
- # A unique ID representing the bank account that this spend power is calculated for. Typically this will be a bank connection account ID from your application. It is currently used as a means of connecting events to the spend power.
17
+ class CreateConsumerRiskReportRequest
18
+ # A unique ID representing the bank account that this risk report is calculated for. Typically this will be a bank connection account ID from your application. It is currently used as a means of connecting events to the consumer risk report.
19
19
  attr_accessor :account_id
20
20
 
21
21
  # The ISO-4217 currency code of the transaction
22
22
  attr_accessor :iso_currency_code
23
23
 
24
- # The spend power customization id. This is used to determine the timeframe and other metadata for the spend power.
24
+ # This is used to determine the timeframe and other metadata for the consumer risk report.
25
25
  attr_accessor :customization_id
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -57,13 +57,13 @@ module FuseClient
57
57
  # @param [Hash] attributes Model attributes in the form of hash
58
58
  def initialize(attributes = {})
59
59
  if (!attributes.is_a?(Hash))
60
- fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::CreateSpendPowerRequest` initialize method"
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::CreateConsumerRiskReportRequest` initialize method"
61
61
  end
62
62
 
63
63
  # check to see if the attribute exists and convert string to symbol for hash key
64
64
  attributes = attributes.each_with_object({}) { |(k, v), h|
65
65
  if (!self.class.attribute_map.key?(k.to_sym))
66
- fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::CreateSpendPowerRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::CreateConsumerRiskReportRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
67
67
  end
68
68
  h[k.to_sym] = v
69
69
  }
@@ -14,8 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FuseClient
17
- class DeleteSpendPowerResponse
18
- # The id of the deleted spend power
17
+ class CreateConsumerRiskReportResponse
19
18
  attr_accessor :id
20
19
 
21
20
  # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
@@ -52,13 +51,13 @@ module FuseClient
52
51
  # @param [Hash] attributes Model attributes in the form of hash
53
52
  def initialize(attributes = {})
54
53
  if (!attributes.is_a?(Hash))
55
- fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::DeleteSpendPowerResponse` initialize method"
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::CreateConsumerRiskReportResponse` initialize method"
56
55
  end
57
56
 
58
57
  # check to see if the attribute exists and convert string to symbol for hash key
59
58
  attributes = attributes.each_with_object({}) { |(k, v), h|
60
59
  if (!self.class.attribute_map.key?(k.to_sym))
61
- fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::DeleteSpendPowerResponse`. 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::CreateConsumerRiskReportResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
61
  end
63
62
  h[k.to_sym] = v
64
63
  }
@@ -14,8 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FuseClient
17
- class CreateSpendPowerResponse
18
- # The id of the created spend power.
17
+ class DeleteConsumerRiskReportResponse
19
18
  attr_accessor :id
20
19
 
21
20
  # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
@@ -52,13 +51,13 @@ module FuseClient
52
51
  # @param [Hash] attributes Model attributes in the form of hash
53
52
  def initialize(attributes = {})
54
53
  if (!attributes.is_a?(Hash))
55
- fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::CreateSpendPowerResponse` initialize method"
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::DeleteConsumerRiskReportResponse` initialize method"
56
55
  end
57
56
 
58
57
  # check to see if the attribute exists and convert string to symbol for hash key
59
58
  attributes = attributes.each_with_object({}) { |(k, v), h|
60
59
  if (!self.class.attribute_map.key?(k.to_sym))
61
- fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::CreateSpendPowerResponse`. 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::DeleteConsumerRiskReportResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
61
  end
63
62
  h[k.to_sym] = v
64
63
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FuseClient
17
- class EvalSpendPowerRequest
17
+ class EvalConsumerRiskReportRequest
18
18
  # The size of the window for training
19
19
  attr_accessor :window_size
20
20
 
@@ -62,8 +62,8 @@ module FuseClient
62
62
  def self.openapi_types
63
63
  {
64
64
  :'window_size' => :'Float',
65
- :'time_frame' => :'SpendPowerTimeFrame',
66
- :'events' => :'Array<EvalSpendPowerRequestEventsInner>'
65
+ :'time_frame' => :'ConsumerRiskReportTimeFrame',
66
+ :'events' => :'Array<EvalConsumerRiskReportRequestEventsInner>'
67
67
  }
68
68
  end
69
69
 
@@ -77,13 +77,13 @@ module FuseClient
77
77
  # @param [Hash] attributes Model attributes in the form of hash
78
78
  def initialize(attributes = {})
79
79
  if (!attributes.is_a?(Hash))
80
- fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::EvalSpendPowerRequest` initialize method"
80
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::EvalConsumerRiskReportRequest` initialize method"
81
81
  end
82
82
 
83
83
  # check to see if the attribute exists and convert string to symbol for hash key
84
84
  attributes = attributes.each_with_object({}) { |(k, v), h|
85
85
  if (!self.class.attribute_map.key?(k.to_sym))
86
- fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::EvalSpendPowerRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
86
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::EvalConsumerRiskReportRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
87
87
  end
88
88
  h[k.to_sym] = v
89
89
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FuseClient
17
- class EvalSpendPowerRequestEventsInner
17
+ class EvalConsumerRiskReportRequestEventsInner
18
18
  # The id of the account that event belongs to
19
19
  attr_accessor :account_id
20
20
 
@@ -51,13 +51,13 @@ 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::EvalSpendPowerRequestEventsInner` initialize method"
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::EvalConsumerRiskReportRequestEventsInner` 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::EvalSpendPowerRequestEventsInner`. 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::EvalConsumerRiskReportRequestEventsInner`. 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
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FuseClient
17
- class EvalSpendPowerResponse
17
+ class EvalConsumerRiskReportResponse
18
18
  #
19
19
  attr_accessor :mean_granted_above_failed_payments
20
20
 
@@ -62,13 +62,13 @@ module FuseClient
62
62
  # @param [Hash] attributes Model attributes in the form of hash
63
63
  def initialize(attributes = {})
64
64
  if (!attributes.is_a?(Hash))
65
- fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::EvalSpendPowerResponse` initialize method"
65
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::EvalConsumerRiskReportResponse` initialize method"
66
66
  end
67
67
 
68
68
  # check to see if the attribute exists and convert string to symbol for hash key
69
69
  attributes = attributes.each_with_object({}) { |(k, v), h|
70
70
  if (!self.class.attribute_map.key?(k.to_sym))
71
- fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::EvalSpendPowerResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
71
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::EvalConsumerRiskReportResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
72
72
  end
73
73
  h[k.to_sym] = v
74
74
  }
@@ -22,7 +22,7 @@ module FuseClient
22
22
 
23
23
  attr_accessor :status
24
24
 
25
- # Use positive values to represent money going out and negative to represent money going in.
25
+ # Amount in cents associated with the transaction. Use positive values to represent money going out and negative to represent money going in.
26
26
  attr_accessor :amount
27
27
 
28
28
  # The ISO-4217 currency code.
@@ -177,10 +177,6 @@ module FuseClient
177
177
  invalid_properties.push('invalid value for "iso_currency_code", iso_currency_code cannot be nil.')
178
178
  end
179
179
 
180
- if @transaction_type.nil?
181
- invalid_properties.push('invalid value for "transaction_type", transaction_type cannot be nil.')
182
- end
183
-
184
180
  if @merchant_name.nil?
185
181
  invalid_properties.push('invalid value for "merchant_name", merchant_name cannot be nil.')
186
182
  end
@@ -202,7 +198,6 @@ module FuseClient
202
198
  return false if @status.nil?
203
199
  return false if @amount.nil?
204
200
  return false if @iso_currency_code.nil?
205
- return false if @transaction_type.nil?
206
201
  return false if @merchant_name.nil?
207
202
  return false if @timestamp.nil?
208
203
  true
@@ -45,6 +45,10 @@ module FuseClient
45
45
 
46
46
  attr_accessor :finverse
47
47
 
48
+ attr_accessor :basiq
49
+
50
+ attr_accessor :belvo
51
+
48
52
  class EnumAttributeValidator
49
53
  attr_reader :datatype
50
54
  attr_reader :allowable_values
@@ -82,7 +86,9 @@ module FuseClient
82
86
  :'flinks' => :'flinks',
83
87
  :'mono' => :'mono',
84
88
  :'truelayer' => :'truelayer',
85
- :'finverse' => :'finverse'
89
+ :'finverse' => :'finverse',
90
+ :'basiq' => :'basiq',
91
+ :'belvo' => :'belvo'
86
92
  }
87
93
  end
88
94
 
@@ -106,7 +112,9 @@ module FuseClient
106
112
  :'flinks' => :'FinancialConnectionDetailsFlinks',
107
113
  :'mono' => :'FinancialConnectionDetailsMono',
108
114
  :'truelayer' => :'FinancialConnectionDetailsTruelayer',
109
- :'finverse' => :'FinancialConnectionDetailsFinverse'
115
+ :'finverse' => :'FinancialConnectionDetailsFinverse',
116
+ :'basiq' => :'FinancialConnectionDetailsBasiq',
117
+ :'belvo' => :'FinancialConnectionDetailsBelvo'
110
118
  }
111
119
  end
112
120
 
@@ -182,6 +190,14 @@ module FuseClient
182
190
  if attributes.key?(:'finverse')
183
191
  self.finverse = attributes[:'finverse']
184
192
  end
193
+
194
+ if attributes.key?(:'basiq')
195
+ self.basiq = attributes[:'basiq']
196
+ end
197
+
198
+ if attributes.key?(:'belvo')
199
+ self.belvo = attributes[:'belvo']
200
+ end
185
201
  end
186
202
 
187
203
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -251,7 +267,9 @@ module FuseClient
251
267
  flinks == o.flinks &&
252
268
  mono == o.mono &&
253
269
  truelayer == o.truelayer &&
254
- finverse == o.finverse
270
+ finverse == o.finverse &&
271
+ basiq == o.basiq &&
272
+ belvo == o.belvo
255
273
  end
256
274
 
257
275
  # @see the `==` method
@@ -263,7 +281,7 @@ module FuseClient
263
281
  # Calculates hash code according to all attributes.
264
282
  # @return [Integer] Hash code
265
283
  def hash
266
- [id, connection_status, connection_status_updated_at, is_oauth, aggregator, plaid, teller, mx, snaptrade, flinks, mono, truelayer, finverse].hash
284
+ [id, connection_status, connection_status_updated_at, is_oauth, aggregator, plaid, teller, mx, snaptrade, flinks, mono, truelayer, finverse, basiq, belvo].hash
267
285
  end
268
286
 
269
287
  # Builds the object from hash