Skip to content

Commit ff942d3

Browse files
feat: Automated regeneration of merchantapi lfp_v1beta client (googleapis#22345)
Auto-created at 2025-04-06 09:14:13 +0000 using the toys pull request generator.
1 parent 45b9ab7 commit ff942d3

File tree

6 files changed

+309
-2
lines changed

6 files changed

+309
-2
lines changed

api_names_out.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269717,7 +269717,20 @@
269717269717
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.regionalInventories.list/pageToken": page_token
269718269718
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.regionalInventories.list/parent": parent
269719269719
"/merchantapi:inventories_v1beta/quotaUser": quota_user
269720+
"/merchantapi:lfp_v1beta/CountrySettings": country_settings
269721+
"/merchantapi:lfp_v1beta/CountrySettings/freeLocalListingsEnabled": free_local_listings_enabled
269722+
"/merchantapi:lfp_v1beta/CountrySettings/instockServingVerificationState": instock_serving_verification_state
269723+
"/merchantapi:lfp_v1beta/CountrySettings/inventoryVerificationState": inventory_verification_state
269724+
"/merchantapi:lfp_v1beta/CountrySettings/localInventoryAdsEnabled": local_inventory_ads_enabled
269725+
"/merchantapi:lfp_v1beta/CountrySettings/pickupServingVerificationState": pickup_serving_verification_state
269726+
"/merchantapi:lfp_v1beta/CountrySettings/productPageType": product_page_type
269727+
"/merchantapi:lfp_v1beta/CountrySettings/regionCode": region_code
269720269728
"/merchantapi:lfp_v1beta/Empty": empty
269729+
"/merchantapi:lfp_v1beta/InventoryStats": inventory_stats
269730+
"/merchantapi:lfp_v1beta/InventoryStats/submittedEntries": submitted_entries
269731+
"/merchantapi:lfp_v1beta/InventoryStats/submittedInStockEntries": submitted_in_stock_entries
269732+
"/merchantapi:lfp_v1beta/InventoryStats/submittedProducts": submitted_products
269733+
"/merchantapi:lfp_v1beta/InventoryStats/unsubmittedEntries": unsubmitted_entries
269721269734
"/merchantapi:lfp_v1beta/LfpInventory": lfp_inventory
269722269735
"/merchantapi:lfp_v1beta/LfpInventory/availability": availability
269723269736
"/merchantapi:lfp_v1beta/LfpInventory/collectionTime": collection_time
@@ -269733,6 +269746,14 @@
269733269746
"/merchantapi:lfp_v1beta/LfpInventory/regionCode": region_code
269734269747
"/merchantapi:lfp_v1beta/LfpInventory/storeCode": store_code
269735269748
"/merchantapi:lfp_v1beta/LfpInventory/targetAccount": target_account
269749+
"/merchantapi:lfp_v1beta/LfpMerchantState": lfp_merchant_state
269750+
"/merchantapi:lfp_v1beta/LfpMerchantState/countrySettings": country_settings
269751+
"/merchantapi:lfp_v1beta/LfpMerchantState/countrySettings/country_setting": country_setting
269752+
"/merchantapi:lfp_v1beta/LfpMerchantState/inventoryStats": inventory_stats
269753+
"/merchantapi:lfp_v1beta/LfpMerchantState/linkedGbps": linked_gbps
269754+
"/merchantapi:lfp_v1beta/LfpMerchantState/name": name
269755+
"/merchantapi:lfp_v1beta/LfpMerchantState/storeStates": store_states
269756+
"/merchantapi:lfp_v1beta/LfpMerchantState/storeStates/store_state": store_state
269736269757
"/merchantapi:lfp_v1beta/LfpSale": lfp_sale
269737269758
"/merchantapi:lfp_v1beta/LfpSale/contentLanguage": content_language
269738269759
"/merchantapi:lfp_v1beta/LfpSale/feedLabel": feed_label
@@ -269759,6 +269780,10 @@
269759269780
"/merchantapi:lfp_v1beta/LfpStore/storeName": store_name
269760269781
"/merchantapi:lfp_v1beta/LfpStore/targetAccount": target_account
269761269782
"/merchantapi:lfp_v1beta/LfpStore/websiteUri": website_uri
269783+
"/merchantapi:lfp_v1beta/LfpStoreState": lfp_store_state
269784+
"/merchantapi:lfp_v1beta/LfpStoreState/matchingState": matching_state
269785+
"/merchantapi:lfp_v1beta/LfpStoreState/matchingStateHint": matching_state_hint
269786+
"/merchantapi:lfp_v1beta/LfpStoreState/storeCode": store_code
269762269787
"/merchantapi:lfp_v1beta/ListLfpStoresResponse": list_lfp_stores_response
269763269788
"/merchantapi:lfp_v1beta/ListLfpStoresResponse/lfpStores": lfp_stores
269764269789
"/merchantapi:lfp_v1beta/ListLfpStoresResponse/lfpStores/lfp_store": lfp_store
@@ -269786,6 +269811,8 @@
269786269811
"/merchantapi:lfp_v1beta/key": key
269787269812
"/merchantapi:lfp_v1beta/merchantapi.accounts.lfpInventories.insert": insert_account_lfp_inventory
269788269813
"/merchantapi:lfp_v1beta/merchantapi.accounts.lfpInventories.insert/parent": parent
269814+
"/merchantapi:lfp_v1beta/merchantapi.accounts.lfpMerchantStates.get": get_account_lfp_merchant_state
269815+
"/merchantapi:lfp_v1beta/merchantapi.accounts.lfpMerchantStates.get/name": name
269789269816
"/merchantapi:lfp_v1beta/merchantapi.accounts.lfpSales.insert": insert_account_lfp_sale
269790269817
"/merchantapi:lfp_v1beta/merchantapi.accounts.lfpSales.insert/parent": parent
269791269818
"/merchantapi:lfp_v1beta/merchantapi.accounts.lfpStores.delete": delete_account_lfp_store

generated/google-apis-merchantapi_lfp_v1beta/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-merchantapi_lfp_v1beta
22

3+
### v0.6.0 (2025-04-06)
4+
5+
* Regenerated from discovery document revision 20250401
6+
37
### v0.5.0 (2025-03-16)
48

59
* Regenerated from discovery document revision 20250311

generated/google-apis-merchantapi_lfp_v1beta/lib/google/apis/merchantapi_lfp_v1beta/classes.rb

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

generated/google-apis-merchantapi_lfp_v1beta/lib/google/apis/merchantapi_lfp_v1beta/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module MerchantapiLfpV1beta
1818
# Version of the google-apis-merchantapi_lfp_v1beta gem
19-
GEM_VERSION = "0.5.0"
19+
GEM_VERSION = "0.6.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250311"
25+
REVISION = "20250401"
2626
end
2727
end
2828
end

0 commit comments

Comments
 (0)