class Google::Apis::MybusinessverificationsV1::VerificationOption

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).

Attributes

address_data[RW]

Display data for verifications through postcard. Corresponds to the JSON property `addressData` @return [Google::Apis::MybusinessverificationsV1::AddressVerificationData]

email_data[RW]

Display data for verifications through email. Corresponds to the JSON property `emailData` @return [Google::Apis::MybusinessverificationsV1::EmailVerificationData]

phone_number[RW]

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` @return [String]

verification_method[RW]

Method to verify the location. Corresponds to the JSON property `verificationMethod` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/mybusinessverifications_v1/classes.rb, line 573
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/mybusinessverifications_v1/classes.rb, line 578
def update!(**args)
  @address_data = args[:address_data] if args.key?(:address_data)
  @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