Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudSignals

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

Fraud signals describing users and cards involved in the transaction.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1FraudSignals

Returns a new instance of GoogleCloudRecaptchaenterpriseV1FraudSignals.



865
866
867
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 865

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

Instance Attribute Details

#card_signalsGoogle::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudSignalsCardSignals

Signals describing the payment card used in this transaction. Corresponds to the JSON property cardSignals



858
859
860
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 858

def card_signals
  @card_signals
end

#user_signalsGoogle::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudSignalsUserSignals

Signals describing the user involved in this transaction. Corresponds to the JSON property userSignals



863
864
865
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 863

def user_signals
  @user_signals
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



870
871
872
873
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 870

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