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.



935
936
937
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 935

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



928
929
930
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 928

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



933
934
935
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 933

def user_signals
  @user_signals
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



940
941
942
943
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 940

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