Class: Stripe::TestHelpers::Issuing::AuthorizationCreateParams::RiskAssessment::FraudRisk

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/test_helpers/issuing/authorization_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(level: nil, score: nil) ⇒ FraudRisk

Returns a new instance of FraudRisk.



218
219
220
221
# File 'lib/stripe/params/test_helpers/issuing/authorization_create_params.rb', line 218

def initialize(level: nil, score: nil)
  @level = level
  @score = score
end

Instance Attribute Details

#levelObject

Stripe’s assessment of the likelihood of fraud on an authorization.



214
215
216
# File 'lib/stripe/params/test_helpers/issuing/authorization_create_params.rb', line 214

def level
  @level
end

#scoreObject

Stripe’s numerical model score assessing the likelihood of fraudulent activity. A higher score means a higher likelihood of fraudulent activity, and anything above 25 is considered high risk.



216
217
218
# File 'lib/stripe/params/test_helpers/issuing/authorization_create_params.rb', line 216

def score
  @score
end