Class: Google::Apis::MerchantapiAccountsV1beta::CustomerService

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

Customer service information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomerService

Returns a new instance of CustomerService.



619
620
621
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 619

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

Instance Attribute Details

#emailString

Optional. The email address where customer service may be reached. Corresponds to the JSON property email

Returns:

  • (String)


595
596
597
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 595

def email
  @email
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



612
613
614
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 612

def phone
  @phone
end

#uriString

Optional. The URI where customer service may be found. Corresponds to the JSON property uri

Returns:

  • (String)


617
618
619
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 617

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



624
625
626
627
628
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 624

def update!(**args)
  @email = args[:email] if args.key?(:email)
  @phone = args[:phone] if args.key?(:phone)
  @uri = args[:uri] if args.key?(:uri)
end