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.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -3
- data/docs/{SpendPower.md → ConsumerRiskReport.md} +5 -5
- data/docs/{SpendPowerCustomization.md → ConsumerRiskReportCustomization.md} +6 -6
- data/docs/{SpendPowerTimeFrame.md → ConsumerRiskReportTimeFrame.md} +2 -2
- data/docs/{CreateSpendPowerCustomizationRequest.md → CreateConsumerRiskReportCustomizationRequest.md} +5 -5
- data/docs/{CreateSpendPowerCustomizationResponse.md → CreateConsumerRiskReportCustomizationResponse.md} +2 -2
- data/docs/{CreateSpendPowerRequest.md → CreateConsumerRiskReportRequest.md} +4 -4
- data/docs/{DeleteSpendPowerResponse.md → CreateConsumerRiskReportResponse.md} +3 -3
- data/docs/{CreateSpendPowerResponse.md → DeleteConsumerRiskReportResponse.md} +3 -3
- data/docs/Entity.md +5 -3
- data/docs/EvalConsumerRiskReportRequest.md +22 -0
- data/docs/{EvalSpendPowerRequestEventsInner.md → EvalConsumerRiskReportRequestEventsInner.md} +2 -2
- data/docs/{EvalSpendPowerResponse.md → EvalConsumerRiskReportResponse.md} +2 -2
- data/docs/ExternalTransactionEvent.md +2 -2
- data/docs/FinancialConnectionDetails.md +9 -1
- data/docs/FinancialConnectionDetailsBasiq.md +20 -0
- data/docs/FinancialConnectionDetailsBelvo.md +20 -0
- data/docs/FinancialConnectionDetailsFinverse.md +20 -0
- data/docs/FinancialConnectionDetailsTruelayer.md +18 -0
- data/docs/FinancialConnectionsAccountDetails.md +2 -0
- data/docs/FinancialConnectionsAccountDetailsAccountNumber.md +28 -0
- data/docs/FinancialConnectionsInvestmentSecurityExchange.md +3 -1
- data/docs/FinancialConnectionsOwnerAddressesInnerData.md +2 -0
- data/docs/FuseApi.md +152 -148
- data/docs/{GetSpendPowerCustomizationResponse.md → GetConsumerRiskReportCustomizationResponse.md} +4 -4
- data/docs/{GetSpendPowerResponse.md → GetConsumerRiskReportResponse.md} +4 -4
- data/docs/GetFinancialConnectionsOwnersResponse.md +3 -1
- data/docs/GetFinancialConnectionsOwnersResponseAccountsInner.md +1 -3
- data/docs/InAppTransactionEvent.md +1 -1
- data/docs/RiskReportApi.md +165 -0
- data/docs/Transaction.md +1 -1
- data/docs/{UpdateSpendPowerCustomizationRequest.md → UpdateConsumerRiskReportCustomizationRequest.md} +5 -5
- data/docs/{UpdateSpendPowerCustomizationResponse.md → UpdateConsumerRiskReportCustomizationResponse.md} +2 -2
- data/docs/UpdatedBalanceEvent.md +2 -2
- data/fuse_client-1.0.37.gem +0 -0
- data/lib/fuse_client/api/fuse_api.rb +142 -139
- data/lib/fuse_client/api/{spend_power_api.rb → risk_report_api.rb} +39 -39
- data/lib/fuse_client/configuration.rb +42 -0
- data/lib/fuse_client/models/account_subtype.rb +13 -1
- data/lib/fuse_client/models/aggregator.rb +5 -1
- data/lib/fuse_client/models/{spend_power.rb → consumer_risk_report.rb} +4 -6
- data/lib/fuse_client/models/{spend_power_customization.rb → consumer_risk_report_customization.rb} +6 -7
- data/lib/fuse_client/models/{spend_power_time_frame.rb → consumer_risk_report_time_frame.rb} +3 -3
- data/lib/fuse_client/models/country_code.rb +82 -4
- data/lib/fuse_client/models/{create_spend_power_customization_request.rb → create_consumer_risk_report_customization_request.rb} +6 -6
- data/lib/fuse_client/models/{create_spend_power_customization_response.rb → create_consumer_risk_report_customization_response.rb} +3 -3
- data/lib/fuse_client/models/{create_spend_power_request.rb → create_consumer_risk_report_request.rb} +5 -5
- data/lib/fuse_client/models/{delete_spend_power_response.rb → create_consumer_risk_report_response.rb} +3 -4
- data/lib/fuse_client/models/{create_spend_power_response.rb → delete_consumer_risk_report_response.rb} +3 -4
- data/lib/fuse_client/models/entity.rb +16 -6
- data/lib/fuse_client/models/{eval_spend_power_request.rb → eval_consumer_risk_report_request.rb} +5 -5
- data/lib/fuse_client/models/{eval_spend_power_request_events_inner.rb → eval_consumer_risk_report_request_events_inner.rb} +3 -3
- data/lib/fuse_client/models/{eval_spend_power_response.rb → eval_consumer_risk_report_response.rb} +3 -3
- data/lib/fuse_client/models/external_transaction_event.rb +1 -6
- data/lib/fuse_client/models/financial_connection_details.rb +40 -4
- data/lib/fuse_client/models/financial_connection_details_basiq.rb +241 -0
- data/lib/fuse_client/models/financial_connection_details_belvo.rb +236 -0
- data/lib/fuse_client/models/financial_connection_details_finverse.rb +236 -0
- data/lib/fuse_client/models/financial_connection_details_truelayer.rb +226 -0
- data/lib/fuse_client/models/financial_connections_account_details.rb +10 -1
- data/lib/fuse_client/models/financial_connections_account_details_account_number.rb +270 -0
- data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +14 -4
- data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +11 -1
- data/lib/fuse_client/models/fuse_api_error_code.rb +12 -3
- data/lib/fuse_client/models/get_consumer_risk_report_customization_response.rb +239 -0
- data/lib/fuse_client/models/{get_spend_power_response.rb → get_consumer_risk_report_response.rb} +13 -13
- data/lib/fuse_client/models/get_financial_connections_owners_response.rb +19 -4
- data/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +4 -19
- data/lib/fuse_client/models/in_app_transaction_event.rb +0 -5
- data/lib/fuse_client/models/transaction.rb +1 -1
- data/lib/fuse_client/models/{update_spend_power_customization_request.rb → update_consumer_risk_report_customization_request.rb} +6 -6
- data/lib/fuse_client/models/{update_spend_power_customization_response.rb → update_consumer_risk_report_customization_response.rb} +3 -3
- data/lib/fuse_client/models/updated_balance_event.rb +2 -2
- data/lib/fuse_client/models/webhook_source.rb +3 -1
- data/lib/fuse_client/version.rb +1 -1
- data/lib/fuse_client.rb +21 -16
- data/spec/api/fuse_api_spec.rb +37 -36
- data/spec/api/{spend_power_api_spec.rb → risk_report_api_spec.rb} +16 -16
- data/spec/models/{spend_power_customization_spec.rb → consumer_risk_report_customization_spec.rb} +6 -6
- data/spec/models/{spend_power_spec.rb → consumer_risk_report_spec.rb} +6 -6
- data/spec/models/{spend_power_time_frame_spec.rb → consumer_risk_report_time_frame_spec.rb} +6 -6
- data/spec/models/{create_spend_power_customization_request_spec.rb → create_consumer_risk_report_customization_request_spec.rb} +6 -6
- data/spec/models/{create_spend_power_customization_response_spec.rb → create_consumer_risk_report_customization_response_spec.rb} +6 -6
- data/spec/models/{create_spend_power_request_spec.rb → create_consumer_risk_report_request_spec.rb} +6 -6
- data/spec/models/{delete_spend_power_response_spec.rb → create_consumer_risk_report_response_spec.rb} +6 -6
- data/spec/models/{create_spend_power_response_spec.rb → delete_consumer_risk_report_response_spec.rb} +6 -6
- data/spec/models/entity_spec.rb +6 -0
- data/spec/models/{eval_spend_power_request_events_inner_spec.rb → eval_consumer_risk_report_request_events_inner_spec.rb} +6 -6
- data/spec/models/{eval_spend_power_request_spec.rb → eval_consumer_risk_report_request_spec.rb} +6 -6
- data/spec/models/{eval_spend_power_response_spec.rb → eval_consumer_risk_report_response_spec.rb} +6 -6
- data/spec/models/financial_connection_details_basiq_spec.rb +40 -0
- data/spec/models/financial_connection_details_belvo_spec.rb +40 -0
- data/spec/models/{get_spend_power_customization_response_spec.rb → financial_connection_details_finverse_spec.rb} +8 -8
- data/spec/models/financial_connection_details_spec.rb +24 -0
- data/spec/models/financial_connection_details_truelayer_spec.rb +34 -0
- data/spec/models/financial_connections_account_details_account_number_spec.rb +64 -0
- data/spec/models/financial_connections_account_details_spec.rb +6 -0
- data/spec/models/financial_connections_investment_security_exchange_spec.rb +6 -0
- data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +6 -0
- data/spec/models/get_consumer_risk_report_customization_response_spec.rb +40 -0
- data/spec/models/{get_spend_power_response_spec.rb → get_consumer_risk_report_response_spec.rb} +7 -7
- data/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +0 -6
- data/spec/models/get_financial_connections_owners_response_spec.rb +6 -0
- data/spec/models/{update_spend_power_customization_request_spec.rb → update_consumer_risk_report_customization_request_spec.rb} +6 -6
- data/spec/models/{update_spend_power_customization_response_spec.rb → update_consumer_risk_report_customization_response_spec.rb} +6 -6
- metadata +97 -76
- data/docs/EvalSpendPowerRequest.md +0 -22
- data/docs/SpendPowerApi.md +0 -165
- data/lib/fuse_client/models/get_spend_power_customization_response.rb +0 -239
@@ -372,6 +372,48 @@ module FuseClient
|
|
372
372
|
key: 'Mono-Webhook-Secret',
|
373
373
|
value: api_key_with_prefix('monoWebhookSecret')
|
374
374
|
},
|
375
|
+
'trueLayerClientId' =>
|
376
|
+
{
|
377
|
+
type: 'api_key',
|
378
|
+
in: 'header',
|
379
|
+
key: 'TrueLayer-Client-Id',
|
380
|
+
value: api_key_with_prefix('trueLayerClientId')
|
381
|
+
},
|
382
|
+
'trueLayerClientSecret' =>
|
383
|
+
{
|
384
|
+
type: 'api_key',
|
385
|
+
in: 'header',
|
386
|
+
key: 'TrueLayer-Client-Secret',
|
387
|
+
value: api_key_with_prefix('trueLayerClientSecret')
|
388
|
+
},
|
389
|
+
'trueLayerClientRedirectUri' =>
|
390
|
+
{
|
391
|
+
type: 'api_key',
|
392
|
+
in: 'header',
|
393
|
+
key: 'TrueLayer-Redirect-Uri',
|
394
|
+
value: api_key_with_prefix('trueLayerClientRedirectUri')
|
395
|
+
},
|
396
|
+
'finverseClientId' =>
|
397
|
+
{
|
398
|
+
type: 'api_key',
|
399
|
+
in: 'header',
|
400
|
+
key: 'Finverse-Client-Id',
|
401
|
+
value: api_key_with_prefix('finverseClientId')
|
402
|
+
},
|
403
|
+
'finverseClientSecret' =>
|
404
|
+
{
|
405
|
+
type: 'api_key',
|
406
|
+
in: 'header',
|
407
|
+
key: 'Finverse-Client-Secret',
|
408
|
+
value: api_key_with_prefix('finverseClientSecret')
|
409
|
+
},
|
410
|
+
'finverseClientRedirectUri' =>
|
411
|
+
{
|
412
|
+
type: 'api_key',
|
413
|
+
in: 'header',
|
414
|
+
key: 'Finverse-Redirect-Uri',
|
415
|
+
value: api_key_with_prefix('finverseClientRedirectUri')
|
416
|
+
},
|
375
417
|
}
|
376
418
|
end
|
377
419
|
|
@@ -17,10 +17,15 @@ module FuseClient
|
|
17
17
|
class AccountSubtype
|
18
18
|
CHECKING = "checking".freeze
|
19
19
|
SAVINGS = "savings".freeze
|
20
|
+
CHECKING_OR_SAVINGS = "checking_or_savings".freeze
|
21
|
+
BUSINESS_CHECKING_OR_SAVINGS = "business_checking_or_savings".freeze
|
22
|
+
BUSINESS_SAVINGS = "business_savings".freeze
|
20
23
|
MONEY_MARKET = "money_market".freeze
|
21
24
|
CERTIFICATE_OF_DEPOSIT = "certificate_of_deposit".freeze
|
22
25
|
TREASURY = "treasury".freeze
|
23
26
|
CREDIT_CARD = "credit_card".freeze
|
27
|
+
DEBIT_CARD = "debit_card".freeze
|
28
|
+
BONDS = "bonds".freeze
|
24
29
|
HSA = "hsa".freeze
|
25
30
|
PAYPAL = "paypal".freeze
|
26
31
|
PREPAID = "prepaid".freeze
|
@@ -32,6 +37,7 @@ module FuseClient
|
|
32
37
|
CONSTRUCTION = "construction".freeze
|
33
38
|
CONSUMER = "consumer".freeze
|
34
39
|
HOME_EQUITY = "home_equity".freeze
|
40
|
+
FOREIGN = "foreign".freeze
|
35
41
|
LOAN = "loan".freeze
|
36
42
|
MORTGAGE = "mortgage".freeze
|
37
43
|
OVERDRAFT = "overdraft".freeze
|
@@ -42,7 +48,10 @@ module FuseClient
|
|
42
48
|
N401_K = "401_k".freeze
|
43
49
|
N403_B = "403_b".freeze
|
44
50
|
N457_B = "457_b".freeze
|
51
|
+
FUNDS = "funds".freeze
|
45
52
|
BROKERAGE = "brokerage".freeze
|
53
|
+
SECURITIES = "securities".freeze
|
54
|
+
STOCKS = "stocks".freeze
|
46
55
|
CASH_ISA = "cash_isa".freeze
|
47
56
|
CRYPTO_EXCHANGE = "crypto_exchange".freeze
|
48
57
|
EDUCATION_SAVING_ACCOUNT = "education_saving_account".freeze
|
@@ -154,10 +163,13 @@ module FuseClient
|
|
154
163
|
WHOLE_LIFE = "whole_life".freeze
|
155
164
|
ACCIDENTAL_DEATH_AND_DISMEMBERMENT = "accidental_death_and_dismemberment".freeze
|
156
165
|
VARIABLE_UNIVERSAL_LIFE = "variable_universal_life".freeze
|
166
|
+
REVOLVING = "revolving".freeze
|
157
167
|
OTHER = "other".freeze
|
168
|
+
TIME_DEPOSIT = "time_deposit".freeze
|
169
|
+
UNMAPPED = "-".freeze
|
158
170
|
|
159
171
|
def self.all_vars
|
160
|
-
@all_vars ||= [CHECKING, SAVINGS, MONEY_MARKET, CERTIFICATE_OF_DEPOSIT, TREASURY, CREDIT_CARD, 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, BROKERAGE, 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, OTHER].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
|
161
173
|
end
|
162
174
|
|
163
175
|
# Builds the enum from string
|
@@ -21,9 +21,13 @@ module FuseClient
|
|
21
21
|
SNAPTRADE = "snaptrade".freeze
|
22
22
|
FLINKS = "flinks".freeze
|
23
23
|
MONO = "mono".freeze
|
24
|
+
TRUELAYER = "truelayer".freeze
|
25
|
+
FINVERSE = "finverse".freeze
|
26
|
+
BASIQ = "basiq".freeze
|
27
|
+
BELVO = "belvo".freeze
|
24
28
|
|
25
29
|
def self.all_vars
|
26
|
-
@all_vars ||= [PLAID, TELLER, MX, SNAPTRADE, FLINKS, MONO].freeze
|
30
|
+
@all_vars ||= [PLAID, TELLER, MX, SNAPTRADE, FLINKS, MONO, TRUELAYER, FINVERSE, BASIQ, BELVO].freeze
|
27
31
|
end
|
28
32
|
|
29
33
|
# Builds the enum from string
|
@@ -14,11 +14,9 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module FuseClient
|
17
|
-
class
|
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
|
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::
|
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::
|
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
|
}
|
data/lib/fuse_client/models/{spend_power_customization.rb → consumer_risk_report_customization.rb}
RENAMED
@@ -14,16 +14,15 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module FuseClient
|
17
|
-
class
|
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
|
22
|
+
# The minimum allowed limit, in cents.
|
24
23
|
attr_accessor :min_limit
|
25
24
|
|
26
|
-
# The maximum allowed limit
|
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' => :'
|
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::
|
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::
|
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
|
}
|
data/lib/fuse_client/models/{spend_power_time_frame.rb → consumer_risk_report_time_frame.rb}
RENAMED
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module FuseClient
|
17
|
-
class
|
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
|
38
|
-
raise "Invalid ENUM value #{value} for class #
|
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
|
@@ -15,16 +15,94 @@ require 'time'
|
|
15
15
|
|
16
16
|
module FuseClient
|
17
17
|
class CountryCode
|
18
|
-
|
18
|
+
AE = "AE".freeze
|
19
|
+
AM = "AM".freeze
|
20
|
+
AR = "AR".freeze
|
21
|
+
AT = "AT".freeze
|
22
|
+
AU = "AU".freeze
|
23
|
+
BD = "BD".freeze
|
24
|
+
BE = "BE".freeze
|
25
|
+
BH = "BH".freeze
|
26
|
+
BM = "BM".freeze
|
27
|
+
BN = "BN".freeze
|
28
|
+
BR = "BR".freeze
|
29
|
+
BW = "BW".freeze
|
19
30
|
CA = "CA".freeze
|
20
|
-
|
21
|
-
|
31
|
+
CH = "CH".freeze
|
32
|
+
CI = "CI".freeze
|
33
|
+
CL = "CL".freeze
|
34
|
+
CM = "CM".freeze
|
35
|
+
CN = "CN".freeze
|
36
|
+
CO = "CO".freeze
|
37
|
+
CZ = "CZ".freeze
|
38
|
+
DE = "DE".freeze
|
39
|
+
DZ = "DZ".freeze
|
40
|
+
EG = "EG".freeze
|
41
|
+
ES = "ES".freeze
|
42
|
+
FI = "FI".freeze
|
43
|
+
FK = "FK".freeze
|
44
|
+
FR = "FR".freeze
|
45
|
+
GB = "GB".freeze
|
46
|
+
GG = "GG".freeze
|
22
47
|
GH = "GH".freeze
|
48
|
+
GM = "GM".freeze
|
49
|
+
GR = "GR".freeze
|
50
|
+
HK = "HK".freeze
|
51
|
+
ID = "ID".freeze
|
52
|
+
IE = "IE".freeze
|
53
|
+
IL = "IL".freeze
|
54
|
+
IM = "IM".freeze
|
55
|
+
IN = "IN".freeze
|
56
|
+
IT = "IT".freeze
|
57
|
+
JE = "JE".freeze
|
58
|
+
JO = "JO".freeze
|
59
|
+
JP = "JP".freeze
|
23
60
|
KE = "KE".freeze
|
61
|
+
KH = "KH".freeze
|
62
|
+
KR = "KR".freeze
|
63
|
+
KW = "KW".freeze
|
64
|
+
LA = "LA".freeze
|
65
|
+
LB = "LB".freeze
|
66
|
+
LK = "LK".freeze
|
67
|
+
LT = "LT".freeze
|
68
|
+
LU = "LU".freeze
|
69
|
+
MC = "MC".freeze
|
70
|
+
MO = "MO".freeze
|
71
|
+
MT = "MT".freeze
|
72
|
+
MU = "MU".freeze
|
73
|
+
MV = "MV".freeze
|
74
|
+
MX = "MX".freeze
|
75
|
+
MY = "MY".freeze
|
76
|
+
NG = "NG".freeze
|
77
|
+
NL = "NL".freeze
|
78
|
+
NP = "NP".freeze
|
79
|
+
NZ = "NZ".freeze
|
80
|
+
OM = "OM".freeze
|
81
|
+
PE = "PE".freeze
|
82
|
+
PH = "PH".freeze
|
83
|
+
PK = "PK".freeze
|
84
|
+
PL = "PL".freeze
|
85
|
+
PT = "PT".freeze
|
86
|
+
QA = "QA".freeze
|
87
|
+
RU = "RU".freeze
|
88
|
+
SA = "SA".freeze
|
89
|
+
SE = "SE".freeze
|
90
|
+
SG = "SG".freeze
|
91
|
+
SL = "SL".freeze
|
92
|
+
TH = "TH".freeze
|
93
|
+
TR = "TR".freeze
|
94
|
+
TW = "TW".freeze
|
95
|
+
TZ = "TZ".freeze
|
96
|
+
UG = "UG".freeze
|
97
|
+
US = "US".freeze
|
98
|
+
UY = "UY".freeze
|
99
|
+
VN = "VN".freeze
|
24
100
|
ZA = "ZA".freeze
|
101
|
+
ZM = "ZM".freeze
|
102
|
+
ZW = "ZW".freeze
|
25
103
|
|
26
104
|
def self.all_vars
|
27
|
-
@all_vars ||= [
|
105
|
+
@all_vars ||= [AE, AM, AR, AT, AU, BD, BE, BH, BM, BN, BR, BW, CA, CH, CI, CL, CM, CN, CO, CZ, DE, DZ, EG, ES, FI, FK, FR, GB, GG, GH, GM, GR, HK, ID, IE, IL, IM, IN, IT, JE, JO, JP, KE, KH, KR, KW, LA, LB, LK, LT, LU, MC, MO, MT, MU, MV, MX, MY, NG, NL, NP, NZ, OM, PE, PH, PK, PL, PT, QA, RU, SA, SE, SG, SL, TH, TR, TW, TZ, UG, US, UY, VN, ZA, ZM, ZW].freeze
|
28
106
|
end
|
29
107
|
|
30
108
|
# Builds the enum from string
|
@@ -14,13 +14,13 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module FuseClient
|
17
|
-
class
|
17
|
+
class CreateConsumerRiskReportCustomizationRequest
|
18
18
|
attr_accessor :timeframe
|
19
19
|
|
20
|
-
# The minimum allowed limit
|
20
|
+
# The minimum allowed limit, in cents.
|
21
21
|
attr_accessor :min_limit
|
22
22
|
|
23
|
-
# The maximum allowed limit
|
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' => :'
|
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::
|
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::
|
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
|
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::
|
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::
|
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
|
}
|
data/lib/fuse_client/models/{create_spend_power_request.rb → create_consumer_risk_report_request.rb}
RENAMED
@@ -14,14 +14,14 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module FuseClient
|
17
|
-
class
|
18
|
-
# A unique ID representing the bank account that this
|
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
|
-
#
|
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::
|
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::
|
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
|
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::
|
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::
|
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
|
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::
|
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::
|
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
|
}
|
@@ -18,18 +18,22 @@ module FuseClient
|
|
18
18
|
# Unique identifier for the user or business account that is connecting to an institution. Use this id when calling the GET /entities/${entity_id} endpoint.
|
19
19
|
attr_accessor :id
|
20
20
|
|
21
|
-
# Name for the user or business account.
|
21
|
+
# Name for the user or business account. Required for EU connections.
|
22
22
|
attr_accessor :name
|
23
23
|
|
24
|
-
# Email address associated with the user or business account.
|
24
|
+
# Email address associated with the user or business account. One of email/phone is required for EU connections.
|
25
25
|
attr_accessor :email
|
26
26
|
|
27
|
+
# Phone number associated with the user or business account. One of email/phone is required for EU connections.
|
28
|
+
attr_accessor :phone
|
29
|
+
|
27
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
31
|
def self.attribute_map
|
29
32
|
{
|
30
33
|
:'id' => :'id',
|
31
34
|
:'name' => :'name',
|
32
|
-
:'email' => :'email'
|
35
|
+
:'email' => :'email',
|
36
|
+
:'phone' => :'phone'
|
33
37
|
}
|
34
38
|
end
|
35
39
|
|
@@ -43,7 +47,8 @@ module FuseClient
|
|
43
47
|
{
|
44
48
|
:'id' => :'String',
|
45
49
|
:'name' => :'String',
|
46
|
-
:'email' => :'String'
|
50
|
+
:'email' => :'String',
|
51
|
+
:'phone' => :'String'
|
47
52
|
}
|
48
53
|
end
|
49
54
|
|
@@ -79,6 +84,10 @@ module FuseClient
|
|
79
84
|
if attributes.key?(:'email')
|
80
85
|
self.email = attributes[:'email']
|
81
86
|
end
|
87
|
+
|
88
|
+
if attributes.key?(:'phone')
|
89
|
+
self.phone = attributes[:'phone']
|
90
|
+
end
|
82
91
|
end
|
83
92
|
|
84
93
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -106,7 +115,8 @@ module FuseClient
|
|
106
115
|
self.class == o.class &&
|
107
116
|
id == o.id &&
|
108
117
|
name == o.name &&
|
109
|
-
email == o.email
|
118
|
+
email == o.email &&
|
119
|
+
phone == o.phone
|
110
120
|
end
|
111
121
|
|
112
122
|
# @see the `==` method
|
@@ -118,7 +128,7 @@ module FuseClient
|
|
118
128
|
# Calculates hash code according to all attributes.
|
119
129
|
# @return [Integer] Hash code
|
120
130
|
def hash
|
121
|
-
[id, name, email].hash
|
131
|
+
[id, name, email, phone].hash
|
122
132
|
end
|
123
133
|
|
124
134
|
# Builds the object from hash
|
data/lib/fuse_client/models/{eval_spend_power_request.rb → eval_consumer_risk_report_request.rb}
RENAMED
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module FuseClient
|
17
|
-
class
|
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' => :'
|
66
|
-
:'events' => :'Array<
|
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::
|
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::
|
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
|
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::
|
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::
|
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
|
}
|
data/lib/fuse_client/models/{eval_spend_power_response.rb → eval_consumer_risk_report_response.rb}
RENAMED
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module FuseClient
|
17
|
-
class
|
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::
|
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::
|
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
|
}
|