Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/recaptchaenterprise_v1/classes.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb

Overview

Information about stolen instrument fraud, where the user is not the legitimate owner of the instrument being used for the purchase.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict

Returns a new instance of GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict.



748
749
750
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 748

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#riskFloat

Probability (0-1) of this transaction being executed with a stolen instrument. Corresponds to the JSON property risk

Returns:

  • (Float)


746
747
748
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 746

def risk
  @risk
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



753
754
755
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 753

def update!(**args)
  @risk = args[:risk] if args.key?(:risk)
end