Class: Google::Apis::ContentV2_1::PosStore
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::PosStore
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Store resource.
Instance Attribute Summary collapse
-
#gcid_category ⇒ Array<String>
The business type of the store.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#matching_status ⇒ String
Output only.
-
#matching_status_hint ⇒ String
Output only.
-
#phone_number ⇒ String
The store phone number.
-
#place_id ⇒ String
The Google Place Id of the store location.
-
#store_address ⇒ String
Required.
-
#store_code ⇒ String
Required.
-
#store_name ⇒ String
The merchant or store name.
-
#website_url ⇒ String
The website url for the store or merchant.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PosStore
constructor
A new instance of PosStore.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PosStore
Returns a new instance of PosStore.
8375 8376 8377 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8375 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gcid_category ⇒ Array<String>
The business type of the store.
Corresponds to the JSON property gcidCategory
8305 8306 8307 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8305 def gcid_category @gcid_category end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "content#
posStore
"
Corresponds to the JSON property kind
8311 8312 8313 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8311 def kind @kind end |
#matching_status ⇒ String
Output only. The matching status of POS store and Google Business Profile
store. Possible values are: - "matched
": The POS store is successfully
matched with the Google Business Profile store. - "failed
": The POS store is
not matched with the Google Business Profile store. See matching_status_hint
for further details. Note that there is up to 48 hours propagation delay for
changes in Merchant Center (e.g. creation of new account, accounts linking)
and Google Business Profile (e.g. store address update) which may affect the
matching status. In such cases, after a delay call pos.list to
retrieve the updated matching status.
Corresponds to the JSON property matchingStatus
8325 8326 8327 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8325 def matching_status @matching_status end |
#matching_status_hint ⇒ String
Output only. The hint of why the matching has failed. This is only set when
matching_status=failed. Possible values are: - "linked-store-not-found
":
There aren't any Google Business Profile stores available for matching.
Connect your Merchant Center account with the Google Business Profile account.
Or add a new Google Business Profile store corresponding to the POS store. - "
store-match-not-found
": The provided POS store couldn't be matched to any of
the connected Google Business Profile stores. Merchant Center account is
connected correctly and stores are available on Google Business Profile, but
POS store location address does not match with Google Business Profile stores'
addresses. Update POS store address or Google Business Profile store address
to match correctly. - "store-match-unverified
": The provided POS store
couldn't be matched to any of the connected Google Business Profile stores, as
the matched Google Business Profile store is unverified. Go through the Google
Business Profile verification process to match correctly.
Corresponds to the JSON property matchingStatusHint
8343 8344 8345 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8343 def matching_status_hint @matching_status_hint end |
#phone_number ⇒ String
The store phone number.
Corresponds to the JSON property phoneNumber
8348 8349 8350 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8348 def phone_number @phone_number end |
#place_id ⇒ String
The Google Place Id of the store location.
Corresponds to the JSON property placeId
8353 8354 8355 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8353 def place_id @place_id end |
#store_address ⇒ String
Required. The street address of the store.
Corresponds to the JSON property storeAddress
8358 8359 8360 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8358 def store_address @store_address end |
#store_code ⇒ String
Required. A store identifier that is unique for the given merchant.
Corresponds to the JSON property storeCode
8363 8364 8365 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8363 def store_code @store_code end |
#store_name ⇒ String
The merchant or store name.
Corresponds to the JSON property storeName
8368 8369 8370 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8368 def store_name @store_name end |
#website_url ⇒ String
The website url for the store or merchant.
Corresponds to the JSON property websiteUrl
8373 8374 8375 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8373 def website_url @website_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8380 def update!(**args) @gcid_category = args[:gcid_category] if args.key?(:gcid_category) @kind = args[:kind] if args.key?(:kind) @matching_status = args[:matching_status] if args.key?(:matching_status) @matching_status_hint = args[:matching_status_hint] if args.key?(:matching_status_hint) @phone_number = args[:phone_number] if args.key?(:phone_number) @place_id = args[:place_id] if args.key?(:place_id) @store_address = args[:store_address] if args.key?(:store_address) @store_code = args[:store_code] if args.key?(:store_code) @store_name = args[:store_name] if args.key?(:store_name) @website_url = args[:website_url] if args.key?(:website_url) end |