Class: Stripe::TestHelpers::Issuing::AuthorizationCreateParams::RiskAssessment::CardTestingRisk

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(invalid_account_number_decline_rate_past_hour: nil, invalid_credentials_decline_rate_past_hour: nil, risk_level: nil) ⇒ CardTestingRisk

Returns a new instance of CardTestingRisk.



201
202
203
204
205
206
207
208
209
# File 'lib/stripe/params/test_helpers/issuing/authorization_create_params.rb', line 201

def initialize(
  invalid_account_number_decline_rate_past_hour: nil,
  invalid_credentials_decline_rate_past_hour: nil,
  risk_level: nil
)
  @invalid_account_number_decline_rate_past_hour = 
  @invalid_credentials_decline_rate_past_hour = invalid_credentials_decline_rate_past_hour
  @risk_level = risk_level
end

Instance Attribute Details

#invalid_account_number_decline_rate_past_hourObject

The % of declines due to a card number not existing in the past hour, taking place at the same merchant. Higher rates correspond to a greater probability of card testing activity, meaning bad actors may be attempting different card number combinations to guess a correct one. Takes on values between 0 and 100.



195
196
197
# File 'lib/stripe/params/test_helpers/issuing/authorization_create_params.rb', line 195

def 
  @invalid_account_number_decline_rate_past_hour
end

#invalid_credentials_decline_rate_past_hourObject

The % of declines due to incorrect verification data (like CVV or expiry) in the past hour, taking place at the same merchant. Higher rates correspond to a greater probability of bad actors attempting to utilize valid card credentials at merchants with verification requirements. Takes on values between 0 and 100.



197
198
199
# File 'lib/stripe/params/test_helpers/issuing/authorization_create_params.rb', line 197

def invalid_credentials_decline_rate_past_hour
  @invalid_credentials_decline_rate_past_hour
end

#risk_levelObject

The likelihood that this authorization is associated with card testing activity. This is assessed by evaluating decline activity over the last hour.



199
200
201
# File 'lib/stripe/params/test_helpers/issuing/authorization_create_params.rb', line 199

def risk_level
  @risk_level
end