Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataUser
- Inherits:
-
Object
- Object
- Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataUser
- 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
-
#account_id ⇒ String
Unique account identifier for this user.
-
#creation_ms ⇒ Fixnum
The epoch milliseconds of the user's account creation.
-
#email ⇒ String
The email address of the user.
-
#email_verified ⇒ Boolean
(also: #email_verified?)
Whether the email has been verified to be accessible by the user (OTP or similar).
-
#phone_number ⇒ String
The phone number of the user, with country code.
-
#phone_verified ⇒ Boolean
(also: #phone_verified?)
Whether the phone number has been verified to be accessible by the user (OTP or similar).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1TransactionDataUser
constructor
A new instance of GoogleCloudRecaptchaenterpriseV1TransactionDataUser.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1TransactionDataUser
Returns a new instance of GoogleCloudRecaptchaenterpriseV1TransactionDataUser.
1330 1331 1332 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1330 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ String
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
1299 1300 1301 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1299 def account_id @account_id end |
#creation_ms ⇒ Fixnum
The epoch milliseconds of the user's account creation.
Corresponds to the JSON property creationMs
1304 1305 1306 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1304 def creation_ms @creation_ms end |
#email ⇒ String
The email address of the user.
Corresponds to the JSON property email
1309 1310 1311 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1309 def email @email end |
#email_verified ⇒ Boolean Also known as: email_verified?
Whether the email has been verified to be accessible by the user (OTP or
similar).
Corresponds to the JSON property emailVerified
1315 1316 1317 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1315 def email_verified @email_verified end |
#phone_number ⇒ String
The phone number of the user, with country code.
Corresponds to the JSON property phoneNumber
1321 1322 1323 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1321 def phone_number @phone_number end |
#phone_verified ⇒ Boolean Also known as: phone_verified?
Whether the phone number has been verified to be accessible by the user (OTP
or similar).
Corresponds to the JSON property phoneVerified
1327 1328 1329 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1327 def phone_verified @phone_verified end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1335 1336 1337 1338 1339 1340 1341 1342 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1335 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 |