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.
8366 8367 8368 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8366 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
8296 8297 8298 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8296 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
8302 8303 8304 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8302 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
8316 8317 8318 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8316 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
8334 8335 8336 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8334 def matching_status_hint @matching_status_hint end |
#phone_number ⇒ String
The store phone number.
Corresponds to the JSON property phoneNumber
8339 8340 8341 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8339 def phone_number @phone_number end |
#place_id ⇒ String
The Google Place Id of the store location.
Corresponds to the JSON property placeId
8344 8345 8346 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8344 def place_id @place_id end |
#store_address ⇒ String
Required. The street address of the store.
Corresponds to the JSON property storeAddress
8349 8350 8351 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8349 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
8354 8355 8356 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8354 def store_code @store_code end |
#store_name ⇒ String
The merchant or store name.
Corresponds to the JSON property storeName
8359 8360 8361 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8359 def store_name @store_name end |
#website_url ⇒ String
The website url for the store or merchant.
Corresponds to the JSON property websiteUrl
8364 8365 8366 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8364 def website_url @website_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8371 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 |