Class: Google::Apis::MybusinessverificationsV1::VerificationOption
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessverificationsV1::VerificationOption
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/mybusinessverifications_v1/classes.rb,
lib/google/apis/mybusinessverifications_v1/representations.rb,
lib/google/apis/mybusinessverifications_v1/representations.rb
Overview
The verification option represents how to verify the location (indicated by verification method) and where the verification will be sent to (indicated by display data).
Instance Attribute Summary collapse
-
#address_data ⇒ Google::Apis::MybusinessverificationsV1::AddressVerificationData
Display data for verifications through postcard.
-
#announcement ⇒ String
Set only if the method is VETTED_PARTNER.
-
#email_data ⇒ Google::Apis::MybusinessverificationsV1::EmailVerificationData
Display data for verifications through email.
-
#phone_number ⇒ String
Set only if the method is PHONE_CALL or SMS.
-
#verification_method ⇒ String
Method to verify the location.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VerificationOption
constructor
A new instance of VerificationOption.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VerificationOption
Returns a new instance of VerificationOption.
478 479 480 |
# File 'lib/google/apis/mybusinessverifications_v1/classes.rb', line 478 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address_data ⇒ Google::Apis::MybusinessverificationsV1::AddressVerificationData
Display data for verifications through postcard.
Corresponds to the JSON property addressData
455 456 457 |
# File 'lib/google/apis/mybusinessverifications_v1/classes.rb', line 455 def address_data @address_data end |
#announcement ⇒ String
Set only if the method is VETTED_PARTNER.
Corresponds to the JSON property announcement
460 461 462 |
# File 'lib/google/apis/mybusinessverifications_v1/classes.rb', line 460 def announcement @announcement end |
#email_data ⇒ Google::Apis::MybusinessverificationsV1::EmailVerificationData
Display data for verifications through email.
Corresponds to the JSON property emailData
465 466 467 |
# File 'lib/google/apis/mybusinessverifications_v1/classes.rb', line 465 def email_data @email_data end |
#phone_number ⇒ String
Set only if the method is PHONE_CALL or SMS. Phone number that the PIN will be
sent to.
Corresponds to the JSON property phoneNumber
471 472 473 |
# File 'lib/google/apis/mybusinessverifications_v1/classes.rb', line 471 def phone_number @phone_number end |
#verification_method ⇒ String
Method to verify the location.
Corresponds to the JSON property verificationMethod
476 477 478 |
# File 'lib/google/apis/mybusinessverifications_v1/classes.rb', line 476 def verification_method @verification_method end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
483 484 485 486 487 488 489 |
# File 'lib/google/apis/mybusinessverifications_v1/classes.rb', line 483 def update!(**args) @address_data = args[:address_data] if args.key?(:address_data) @announcement = args[:announcement] if args.key?(:announcement) @email_data = args[:email_data] if args.key?(:email_data) @phone_number = args[:phone_number] if args.key?(:phone_number) @verification_method = args[:verification_method] if args.key?(:verification_method) end |