google-apis-merchantapi_lfp_v1beta 0.5.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6cddcb6243c999f7b1b7a3954d3f6be6b3ba0082ec5167e32ef4fba679c94c4
4
- data.tar.gz: e3041aec6ac8d32329d1012f590d1f5d84783ef3f1735b232a02d9748ada7e3e
3
+ metadata.gz: 2986f85907067b18cabaf5188a4159e68d946544a4f39fc6e1cda87a3a85623e
4
+ data.tar.gz: 7505ebdec71376e81e8b067680adc883b0d734a70e2d43f0569743b66d5256c1
5
5
  SHA512:
6
- metadata.gz: 8de135c34d6d8b37bb3aa43788fe399c0f15244cf67a80ed2da1d3a0ba68e46fd5f2cfd877e072ed479fc26906fd412cf4c6d50297acd07dc954dfb034625646
7
- data.tar.gz: 220be739c5a2b9a41f06963a1610e1611c512ebbe75cba1169bedd7081947194fb06feb62691e038421e7da9ef16f9fb46efa3fc93977d708802c78662a33876
6
+ metadata.gz: 13f4e1bb750481a852d69ef0ef88c13d2c8a968c7885d9c6f3dfa92c814c30dcde23d4a7fe2b8e73d88add86a2f3061af322b21d7e106b13c529b0f8d34ddc5c
7
+ data.tar.gz: 1e749d709b611f3bed5921223c784223f2ae1d02fe20340829fed533d562f2b63933a60deb663a853d3fb3e6333499dfa7c783e7599005cf1b7a7f07774f13e1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Release history for google-apis-merchantapi_lfp_v1beta
2
2
 
3
+ ### v0.8.0 (2025-06-08)
4
+
5
+ * Regenerated from discovery document revision 20250603
6
+ * Regenerated using generator version 0.18.0
7
+
8
+ ### v0.7.0 (2025-05-04)
9
+
10
+ * Regenerated from discovery document revision 20250430
11
+ * Regenerated using generator version 0.17.0
12
+
13
+ ### v0.6.0 (2025-04-06)
14
+
15
+ * Regenerated from discovery document revision 20250401
16
+
3
17
  ### v0.5.0 (2025-03-16)
4
18
 
5
19
  * Regenerated from discovery document revision 20250311
data/OVERVIEW.md CHANGED
@@ -83,7 +83,7 @@ The [product documentation](https://developers.devsite.corp.google.com/merchant/
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 2.7+.
86
+ This library is supported on Ruby 3.1+.
87
87
 
88
88
  Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
@@ -22,6 +22,65 @@ module Google
22
22
  module Apis
23
23
  module MerchantapiLfpV1beta
24
24
 
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
+
25
84
  # A generic empty message that you can re-use to avoid defining duplicated empty
26
85
  # messages in your APIs. A typical example is to use it as the request or the
27
86
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -38,6 +97,47 @@ module Google
38
97
  end
39
98
  end
40
99
 
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
+
41
141
  # Local Inventory for the merchant.
42
142
  class LfpInventory
43
143
  include Google::Apis::Core::Hashable
@@ -153,6 +253,52 @@ module Google
153
253
  end
154
254
  end
155
255
 
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``. For example, `accounts/123456/
277
+ # lfpMerchantStates/567890`.
278
+ # Corresponds to the JSON property `name`
279
+ # @return [String]
280
+ attr_accessor :name
281
+
282
+ # Output only. The state per store from the specified merchant. The field will
283
+ # be absent if the merchant has no stores submitted through LFP.
284
+ # Corresponds to the JSON property `storeStates`
285
+ # @return [Array<Google::Apis::MerchantapiLfpV1beta::LfpStoreState>]
286
+ attr_accessor :store_states
287
+
288
+ def initialize(**args)
289
+ update!(**args)
290
+ end
291
+
292
+ # Update properties of this object
293
+ def update!(**args)
294
+ @country_settings = args[:country_settings] if args.key?(:country_settings)
295
+ @inventory_stats = args[:inventory_stats] if args.key?(:inventory_stats)
296
+ @linked_gbps = args[:linked_gbps] if args.key?(:linked_gbps)
297
+ @name = args[:name] if args.key?(:name)
298
+ @store_states = args[:store_states] if args.key?(:store_states)
299
+ end
300
+ end
301
+
156
302
  # A sale for the merchant.
157
303
  class LfpSale
158
304
  include Google::Apis::Core::Hashable
@@ -346,6 +492,37 @@ module Google
346
492
  end
347
493
  end
348
494
 
495
+ # The state of a specific merchant's store.
496
+ class LfpStoreState
497
+ include Google::Apis::Core::Hashable
498
+
499
+ # Output only. The store matching state.
500
+ # Corresponds to the JSON property `matchingState`
501
+ # @return [String]
502
+ attr_accessor :matching_state
503
+
504
+ # The hint of why the matching has failed (only set if matching_state is FAILED).
505
+ # Corresponds to the JSON property `matchingStateHint`
506
+ # @return [String]
507
+ attr_accessor :matching_state_hint
508
+
509
+ # Required. Immutable. The identifier of this store.
510
+ # Corresponds to the JSON property `storeCode`
511
+ # @return [String]
512
+ attr_accessor :store_code
513
+
514
+ def initialize(**args)
515
+ update!(**args)
516
+ end
517
+
518
+ # Update properties of this object
519
+ def update!(**args)
520
+ @matching_state = args[:matching_state] if args.key?(:matching_state)
521
+ @matching_state_hint = args[:matching_state_hint] if args.key?(:matching_state_hint)
522
+ @store_code = args[:store_code] if args.key?(:store_code)
523
+ end
524
+ end
525
+
349
526
  # Response message for the ListLfpStores method.
350
527
  class ListLfpStoresResponse
351
528
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MerchantapiLfpV1beta
18
18
  # Version of the google-apis-merchantapi_lfp_v1beta gem
19
- GEM_VERSION = "0.5.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.16.0"
22
+ GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250311"
25
+ REVISION = "20250603"
26
26
  end
27
27
  end
28
28
  end
@@ -22,18 +22,36 @@ module Google
22
22
  module Apis
23
23
  module MerchantapiLfpV1beta
24
24
 
25
+ class CountrySettings
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class Empty
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
28
34
  include Google::Apis::Core::JsonObjectSupport
29
35
  end
30
36
 
37
+ class InventoryStats
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
31
43
  class LfpInventory
32
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
45
 
34
46
  include Google::Apis::Core::JsonObjectSupport
35
47
  end
36
48
 
49
+ class LfpMerchantState
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
37
55
  class LfpSale
38
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
57
 
@@ -46,6 +64,12 @@ module Google
46
64
  include Google::Apis::Core::JsonObjectSupport
47
65
  end
48
66
 
67
+ class LfpStoreState
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
49
73
  class ListLfpStoresResponse
50
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
75
 
@@ -70,12 +94,35 @@ module Google
70
94
  include Google::Apis::Core::JsonObjectSupport
71
95
  end
72
96
 
97
+ class CountrySettings
98
+ # @private
99
+ class Representation < Google::Apis::Core::JsonRepresentation
100
+ property :free_local_listings_enabled, as: 'freeLocalListingsEnabled'
101
+ property :instock_serving_verification_state, as: 'instockServingVerificationState'
102
+ property :inventory_verification_state, as: 'inventoryVerificationState'
103
+ property :local_inventory_ads_enabled, as: 'localInventoryAdsEnabled'
104
+ property :pickup_serving_verification_state, as: 'pickupServingVerificationState'
105
+ property :product_page_type, as: 'productPageType'
106
+ property :region_code, as: 'regionCode'
107
+ end
108
+ end
109
+
73
110
  class Empty
74
111
  # @private
75
112
  class Representation < Google::Apis::Core::JsonRepresentation
76
113
  end
77
114
  end
78
115
 
116
+ class InventoryStats
117
+ # @private
118
+ class Representation < Google::Apis::Core::JsonRepresentation
119
+ property :submitted_entries, :numeric_string => true, as: 'submittedEntries'
120
+ property :submitted_in_stock_entries, :numeric_string => true, as: 'submittedInStockEntries'
121
+ property :submitted_products, :numeric_string => true, as: 'submittedProducts'
122
+ property :unsubmitted_entries, :numeric_string => true, as: 'unsubmittedEntries'
123
+ end
124
+ end
125
+
79
126
  class LfpInventory
80
127
  # @private
81
128
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -97,6 +144,20 @@ module Google
97
144
  end
98
145
  end
99
146
 
147
+ class LfpMerchantState
148
+ # @private
149
+ class Representation < Google::Apis::Core::JsonRepresentation
150
+ collection :country_settings, as: 'countrySettings', class: Google::Apis::MerchantapiLfpV1beta::CountrySettings, decorator: Google::Apis::MerchantapiLfpV1beta::CountrySettings::Representation
151
+
152
+ property :inventory_stats, as: 'inventoryStats', class: Google::Apis::MerchantapiLfpV1beta::InventoryStats, decorator: Google::Apis::MerchantapiLfpV1beta::InventoryStats::Representation
153
+
154
+ property :linked_gbps, :numeric_string => true, as: 'linkedGbps'
155
+ property :name, as: 'name'
156
+ collection :store_states, as: 'storeStates', class: Google::Apis::MerchantapiLfpV1beta::LfpStoreState, decorator: Google::Apis::MerchantapiLfpV1beta::LfpStoreState::Representation
157
+
158
+ end
159
+ end
160
+
100
161
  class LfpSale
101
162
  # @private
102
163
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -133,6 +194,15 @@ module Google
133
194
  end
134
195
  end
135
196
 
197
+ class LfpStoreState
198
+ # @private
199
+ class Representation < Google::Apis::Core::JsonRepresentation
200
+ property :matching_state, as: 'matchingState'
201
+ property :matching_state_hint, as: 'matchingStateHint'
202
+ property :store_code, as: 'storeCode'
203
+ end
204
+ end
205
+
136
206
  class ListLfpStoresResponse
137
207
  # @private
138
208
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -86,6 +86,38 @@ module Google
86
86
  execute_or_queue_command(command, &block)
87
87
  end
88
88
 
89
+ # Gets the LFP state of a merchant
90
+ # @param [String] name
91
+ # Required. The name of the state to retrieve. Format: `accounts/`account`/
92
+ # lfpMerchantStates/`target_merchant``. For example, `accounts/123456/
93
+ # lfpMerchantStates/567890`.
94
+ # @param [String] fields
95
+ # Selector specifying which fields to include in a partial response.
96
+ # @param [String] quota_user
97
+ # Available to use for quota purposes for server-side applications. Can be any
98
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
99
+ # @param [Google::Apis::RequestOptions] options
100
+ # Request-specific options
101
+ #
102
+ # @yield [result, err] Result & error if block supplied
103
+ # @yieldparam result [Google::Apis::MerchantapiLfpV1beta::LfpMerchantState] parsed result object
104
+ # @yieldparam err [StandardError] error object if request failed
105
+ #
106
+ # @return [Google::Apis::MerchantapiLfpV1beta::LfpMerchantState]
107
+ #
108
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
109
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
110
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
111
+ def get_account_lfp_merchant_state(name, fields: nil, quota_user: nil, options: nil, &block)
112
+ command = make_simple_command(:get, 'lfp/v1beta/{+name}', options)
113
+ command.response_representation = Google::Apis::MerchantapiLfpV1beta::LfpMerchantState::Representation
114
+ command.response_class = Google::Apis::MerchantapiLfpV1beta::LfpMerchantState
115
+ command.params['name'] = name unless name.nil?
116
+ command.query['fields'] = fields unless fields.nil?
117
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
118
+ execute_or_queue_command(command, &block)
119
+ end
120
+
89
121
  # Inserts a `LfpSale` for the given merchant.
90
122
  # @param [String] parent
91
123
  # Required. The LFP provider account. Format: `accounts/`lfp_partner``
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-merchantapi_lfp_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-16 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-merchantapi_lfp_v1beta/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_lfp_v1beta/v0.5.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_lfp_v1beta/v0.8.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-merchantapi_lfp_v1beta
62
62
  rdoc_options: []
63
63
  require_paths:
@@ -66,14 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '2.7'
69
+ version: '3.1'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.5
76
+ rubygems_version: 3.6.9
77
77
  specification_version: 4
78
78
  summary: Simple REST client for Merchant API LfpV1beta
79
79
  test_files: []