Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataUser

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

Details about a user's account involved in the transaction.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1TransactionDataUser

Returns a new instance of GoogleCloudRecaptchaenterpriseV1TransactionDataUser.



2077
2078
2079
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2077

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

Instance Attribute Details

#account_idString

Optional. Unique account identifier for this user. If using account defender, this should match the hashed_account_id field. Otherwise, a unique and persistent identifier for this account. Corresponds to the JSON property accountId

Returns:

  • (String)


2046
2047
2048
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2046

def 
  @account_id
end

#creation_msFixnum

Optional. The epoch milliseconds of the user's account creation. Corresponds to the JSON property creationMs

Returns:

  • (Fixnum)


2051
2052
2053
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2051

def creation_ms
  @creation_ms
end

#emailString

Optional. The email address of the user. Corresponds to the JSON property email

Returns:

  • (String)


2056
2057
2058
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2056

def email
  @email
end

#email_verifiedBoolean Also known as: email_verified?

Optional. Whether the email has been verified to be accessible by the user ( OTP or similar). Corresponds to the JSON property emailVerified

Returns:

  • (Boolean)


2062
2063
2064
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2062

def email_verified
  @email_verified
end

#phone_numberString

Optional. The phone number of the user, with country code. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


2068
2069
2070
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2068

def phone_number
  @phone_number
end

#phone_verifiedBoolean Also known as: phone_verified?

Optional. Whether the phone number has been verified to be accessible by the user (OTP or similar). Corresponds to the JSON property phoneVerified

Returns:

  • (Boolean)


2074
2075
2076
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2074

def phone_verified
  @phone_verified
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2082
2083
2084
2085
2086
2087
2088
2089
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2082

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @creation_ms = args[:creation_ms] if args.key?(:creation_ms)
  @email = args[:email] if args.key?(:email)
  @email_verified = args[:email_verified] if args.key?(:email_verified)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
  @phone_verified = args[:phone_verified] if args.key?(:phone_verified)
end