@@ -22,6 +22,65 @@ module Google
2222 module Apis
2323 module MerchantapiLfpV1beta
2424
25+ # Country-specific settings for the merchant.
26+ class CountrySettings
27+ include Google ::Apis ::Core ::Hashable
28+
29+ # True if this merchant has enabled free local listings in MC.
30+ # Corresponds to the JSON property `freeLocalListingsEnabled`
31+ # @return [Boolean]
32+ attr_accessor :free_local_listings_enabled
33+ alias_method :free_local_listings_enabled? , :free_local_listings_enabled
34+
35+ # Output only. The verification state of this merchant's instock serving feature.
36+ # Corresponds to the JSON property `instockServingVerificationState`
37+ # @return [String]
38+ attr_accessor :instock_serving_verification_state
39+
40+ # Output only. The verification state of this merchant's inventory check.
41+ # Corresponds to the JSON property `inventoryVerificationState`
42+ # @return [String]
43+ attr_accessor :inventory_verification_state
44+
45+ # True if this merchant has enabled local inventory ads in MC.
46+ # Corresponds to the JSON property `localInventoryAdsEnabled`
47+ # @return [Boolean]
48+ attr_accessor :local_inventory_ads_enabled
49+ alias_method :local_inventory_ads_enabled? , :local_inventory_ads_enabled
50+
51+ # Output only. The verification state of this merchant's pickup serving feature.
52+ # Corresponds to the JSON property `pickupServingVerificationState`
53+ # @return [String]
54+ attr_accessor :pickup_serving_verification_state
55+
56+ # Output only. The product page type selected by this merchant.
57+ # Corresponds to the JSON property `productPageType`
58+ # @return [String]
59+ attr_accessor :product_page_type
60+
61+ # Required. The [CLDR territory code](https://github.com/unicode-org/cldr/blob/
62+ # latest/common/main/en.xml) for the country for which these settings are
63+ # defined.
64+ # Corresponds to the JSON property `regionCode`
65+ # @return [String]
66+ attr_accessor :region_code
67+
68+ def initialize ( **args )
69+ update! ( **args )
70+ end
71+
72+ # Update properties of this object
73+ def update! ( **args )
74+ @free_local_listings_enabled = args [ :free_local_listings_enabled ] if args . key? ( :free_local_listings_enabled )
75+ @instock_serving_verification_state = args [ :instock_serving_verification_state ] if args . key? ( :instock_serving_verification_state )
76+ @inventory_verification_state = args [ :inventory_verification_state ] if args . key? ( :inventory_verification_state )
77+ @local_inventory_ads_enabled = args [ :local_inventory_ads_enabled ] if args . key? ( :local_inventory_ads_enabled )
78+ @pickup_serving_verification_state = args [ :pickup_serving_verification_state ] if args . key? ( :pickup_serving_verification_state )
79+ @product_page_type = args [ :product_page_type ] if args . key? ( :product_page_type )
80+ @region_code = args [ :region_code ] if args . key? ( :region_code )
81+ end
82+ end
83+
2584 # A generic empty message that you can re-use to avoid defining duplicated empty
2685 # messages in your APIs. A typical example is to use it as the request or the
2786 # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -38,6 +97,47 @@ def update!(**args)
3897 end
3998 end
4099
100+ # The inventory statistics for a merchant.
101+ class InventoryStats
102+ include Google ::Apis ::Core ::Hashable
103+
104+ # Number of entries (understanding entry as a pair of product and store) that
105+ # were built based on provided inventories/sales and submitted to Google.
106+ # Corresponds to the JSON property `submittedEntries`
107+ # @return [Fixnum]
108+ attr_accessor :submitted_entries
109+
110+ # Number of submitted in stock entries.
111+ # Corresponds to the JSON property `submittedInStockEntries`
112+ # @return [Fixnum]
113+ attr_accessor :submitted_in_stock_entries
114+
115+ # Number of products from provided inventories/sales that were created from
116+ # matches to existing online products provided by the merchant or to the Google
117+ # catalog.
118+ # Corresponds to the JSON property `submittedProducts`
119+ # @return [Fixnum]
120+ attr_accessor :submitted_products
121+
122+ # Number of entries that were built based on provided inventories/sales and
123+ # couldn't be submitted to Google due to errors like missing product.
124+ # Corresponds to the JSON property `unsubmittedEntries`
125+ # @return [Fixnum]
126+ attr_accessor :unsubmitted_entries
127+
128+ def initialize ( **args )
129+ update! ( **args )
130+ end
131+
132+ # Update properties of this object
133+ def update! ( **args )
134+ @submitted_entries = args [ :submitted_entries ] if args . key? ( :submitted_entries )
135+ @submitted_in_stock_entries = args [ :submitted_in_stock_entries ] if args . key? ( :submitted_in_stock_entries )
136+ @submitted_products = args [ :submitted_products ] if args . key? ( :submitted_products )
137+ @unsubmitted_entries = args [ :unsubmitted_entries ] if args . key? ( :unsubmitted_entries )
138+ end
139+ end
140+
41141 # Local Inventory for the merchant.
42142 class LfpInventory
43143 include Google ::Apis ::Core ::Hashable
@@ -153,6 +253,50 @@ def update!(**args)
153253 end
154254 end
155255
256+ # The LFP state of a merchant.
257+ class LfpMerchantState
258+ include Google ::Apis ::Core ::Hashable
259+
260+ # Country-specific settings for the merchant.
261+ # Corresponds to the JSON property `countrySettings`
262+ # @return [Array<Google::Apis::MerchantapiLfpV1beta::CountrySettings>]
263+ attr_accessor :country_settings
264+
265+ # The inventory statistics for a merchant.
266+ # Corresponds to the JSON property `inventoryStats`
267+ # @return [Google::Apis::MerchantapiLfpV1beta::InventoryStats]
268+ attr_accessor :inventory_stats
269+
270+ # Number of [GBPs](https://www.google.com/business/) this merchant has access to.
271+ # Corresponds to the JSON property `linkedGbps`
272+ # @return [Fixnum]
273+ attr_accessor :linked_gbps
274+
275+ # Identifier. The name of the `LfpMerchantState` resource. Format: `accounts/`
276+ # account`/lfpMerchantStates/`target_merchant``
277+ # Corresponds to the JSON property `name`
278+ # @return [String]
279+ attr_accessor :name
280+
281+ # Output only. The state per store from the specified merchant.
282+ # Corresponds to the JSON property `storeStates`
283+ # @return [Array<Google::Apis::MerchantapiLfpV1beta::LfpStoreState>]
284+ attr_accessor :store_states
285+
286+ def initialize ( **args )
287+ update! ( **args )
288+ end
289+
290+ # Update properties of this object
291+ def update! ( **args )
292+ @country_settings = args [ :country_settings ] if args . key? ( :country_settings )
293+ @inventory_stats = args [ :inventory_stats ] if args . key? ( :inventory_stats )
294+ @linked_gbps = args [ :linked_gbps ] if args . key? ( :linked_gbps )
295+ @name = args [ :name ] if args . key? ( :name )
296+ @store_states = args [ :store_states ] if args . key? ( :store_states )
297+ end
298+ end
299+
156300 # A sale for the merchant.
157301 class LfpSale
158302 include Google ::Apis ::Core ::Hashable
@@ -346,6 +490,37 @@ def update!(**args)
346490 end
347491 end
348492
493+ # The state of a specific merchant's store.
494+ class LfpStoreState
495+ include Google ::Apis ::Core ::Hashable
496+
497+ # Output only. The store matching state.
498+ # Corresponds to the JSON property `matchingState`
499+ # @return [String]
500+ attr_accessor :matching_state
501+
502+ # The hint of why the matching has failed (only set if matching_state is FAILED).
503+ # Corresponds to the JSON property `matchingStateHint`
504+ # @return [String]
505+ attr_accessor :matching_state_hint
506+
507+ # Required. Immutable. The identifier of this store.
508+ # Corresponds to the JSON property `storeCode`
509+ # @return [String]
510+ attr_accessor :store_code
511+
512+ def initialize ( **args )
513+ update! ( **args )
514+ end
515+
516+ # Update properties of this object
517+ def update! ( **args )
518+ @matching_state = args [ :matching_state ] if args . key? ( :matching_state )
519+ @matching_state_hint = args [ :matching_state_hint ] if args . key? ( :matching_state_hint )
520+ @store_code = args [ :store_code ] if args . key? ( :store_code )
521+ end
522+ end
523+
349524 # Response message for the ListLfpStores method.
350525 class ListLfpStoresResponse
351526 include Google ::Apis ::Core ::Hashable
0 commit comments