Class: Google::Apis::MerchantapiAccountsV1beta::BusinessInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/merchantapi_accounts_v1beta/classes.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb

Overview

Collection of information related to a business.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BusinessInfo

Returns a new instance of BusinessInfo.



439
440
441
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 439

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

Instance Attribute Details

#addressGoogle::Apis::MerchantapiAccountsV1beta::PostalAddress

Represents a postal address, e.g. for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created via user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, please see: https://support.google.com/business/answer/6397478 Corresponds to the JSON property address



404
405
406
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 404

def address
  @address
end

#customer_serviceGoogle::Apis::MerchantapiAccountsV1beta::CustomerService

Customer service information. Corresponds to the JSON property customerService



409
410
411
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 409

def customer_service
  @customer_service
end

#nameString

Identifier. The resource name of the business info. Format: accounts/account /businessInfo Corresponds to the JSON property name

Returns:

  • (String)


415
416
417
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 415

def name
  @name
end

#phoneGoogle::Apis::MerchantapiAccountsV1beta::PhoneNumber

An object representing a phone number, suitable as an API wire format. This representation: - should not be used for locale-specific formatting of a phone number, such as "+1 (650) 253-0000 ext. 123" - is not designed for efficient storage - may not be suitable for dialing - specialized libraries (see references) should be used to parse the number for that purpose To do something meaningful with this number, such as format it for various use-cases, convert it to an i18n.phonenumbers.PhoneNumber object first. For instance, in Java this would be: com.google.type.PhoneNumber wireProto = com.google.type. PhoneNumber.newBuilder().build(); com.google.i18n.phonenumbers.Phonenumber. PhoneNumber phoneNumber = PhoneNumberUtil.getInstance().parse(wireProto. getE164Number(), "ZZ"); if (!wireProto.getExtension().isEmpty()) phoneNumber. setExtension(wireProto.getExtension()); Reference(s): - https://github.com/ google/libphonenumber Corresponds to the JSON property phone



432
433
434
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 432

def phone
  @phone
end

#phone_verification_stateString

Output only. The phone verification state of the business. Corresponds to the JSON property phoneVerificationState

Returns:

  • (String)


437
438
439
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 437

def phone_verification_state
  @phone_verification_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



444
445
446
447
448
449
450
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 444

def update!(**args)
  @address = args[:address] if args.key?(:address)
  @customer_service = args[:customer_service] if args.key?(:customer_service)
  @name = args[:name] if args.key?(:name)
  @phone = args[:phone] if args.key?(:phone)
  @phone_verification_state = args[:phone_verification_state] if args.key?(:phone_verification_state)
end