Class: Google::Apis::MybusinessbusinessinformationV1::ServiceAreaBusiness
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessbusinessinformationV1::ServiceAreaBusiness
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/mybusinessbusinessinformation_v1/classes.rb,
lib/google/apis/mybusinessbusinessinformation_v1/representations.rb,
lib/google/apis/mybusinessbusinessinformation_v1/representations.rb
Overview
Service area businesses provide their service at the customer's location (for example, a locksmith or plumber).
Instance Attribute Summary collapse
-
#business_type ⇒ String
Required.
-
#places ⇒ Google::Apis::MybusinessbusinessinformationV1::Places
Defines the union of areas represented by a set of places.
-
#region_code ⇒ String
Immutable.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceAreaBusiness
constructor
A new instance of ServiceAreaBusiness.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ServiceAreaBusiness
Returns a new instance of ServiceAreaBusiness.
1584 1585 1586 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1584 def initialize(**args) update!(**args) end |
Instance Attribute Details
#business_type ⇒ String
Required. Indicates the type of the service area business.
Corresponds to the JSON property businessType
1562 1563 1564 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1562 def business_type @business_type end |
#places ⇒ Google::Apis::MybusinessbusinessinformationV1::Places
Defines the union of areas represented by a set of places.
Corresponds to the JSON property places
1567 1568 1569 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1567 def places @places end |
#region_code ⇒ String
Immutable. CLDR region code of the country/region that this service area
business is based in. See http://cldr.unicode.org/ and http://www.unicode.org/
cldr/charts/30/supplemental/territory_information.html for details. Example: "
CH" for Switzerland. This field is required for CUSTOMER_LOCATION_ONLY
businesses, and is ignored otherwise. The region specified here can be
different from regions for the areas that this business serves (e.g. service
area businesses that provide services in regions other than the one that they
are based in). If this location requires verification after creation, the
address provided for verification purposes must be located within this
region, and the business owner or their authorized representative must be
able to receive postal mail at the provided verification address.
Corresponds to the JSON property regionCode
1582 1583 1584 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1582 def region_code @region_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1589 1590 1591 1592 1593 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1589 def update!(**args) @business_type = args[:business_type] if args.key?(:business_type) @places = args[:places] if args.key?(:places) @region_code = args[:region_code] if args.key?(:region_code) end |