google-apis-merchantapi_products_v1beta 0.10.0 → 0.11.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/merchantapi_products_v1beta/classes.rb +64 -27
- data/lib/google/apis/merchantapi_products_v1beta/gem_version.rb +2 -2
- data/lib/google/apis/merchantapi_products_v1beta/representations.rb +20 -0
- data/lib/google/apis/merchantapi_products_v1beta/service.rb +16 -17
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33ff56b2b2c1d7fdecf392c009ab16b0fa64cd7afc1a0c32b5ff8ddc75a56bd9
|
4
|
+
data.tar.gz: c11ff69ee2654380e3d8d506e7c222ba6d7bb0063c26689e57c3f0bc82c1fbad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b668fd3ab1aab043dbf8f2ca3d2bf97574d11d53db7ccc250d6af098c0799a306558798851fd51949baab4f7d6a9b99b8fce90744adfe2417faca974593567f
|
7
|
+
data.tar.gz: '058e1ab2b932dab36b1cb1df23b7df7463e3efdee85a59f06ca6a35e22a5e2b14c250f526df055c1aad02059306283aa6085c98a069c5354fe1d3aadbbe70ed6'
|
data/CHANGELOG.md
CHANGED
@@ -641,6 +641,37 @@ module Google
|
|
641
641
|
end
|
642
642
|
end
|
643
643
|
|
644
|
+
# Information regarding Automated Discounts.
|
645
|
+
class AutomatedDiscounts
|
646
|
+
include Google::Apis::Core::Hashable
|
647
|
+
|
648
|
+
# The price represented as a number and currency.
|
649
|
+
# Corresponds to the JSON property `gadPrice`
|
650
|
+
# @return [Google::Apis::MerchantapiProductsV1beta::Price]
|
651
|
+
attr_accessor :gad_price
|
652
|
+
|
653
|
+
# The price represented as a number and currency.
|
654
|
+
# Corresponds to the JSON property `priorPrice`
|
655
|
+
# @return [Google::Apis::MerchantapiProductsV1beta::Price]
|
656
|
+
attr_accessor :prior_price
|
657
|
+
|
658
|
+
# The price represented as a number and currency.
|
659
|
+
# Corresponds to the JSON property `priorPriceProgressive`
|
660
|
+
# @return [Google::Apis::MerchantapiProductsV1beta::Price]
|
661
|
+
attr_accessor :prior_price_progressive
|
662
|
+
|
663
|
+
def initialize(**args)
|
664
|
+
update!(**args)
|
665
|
+
end
|
666
|
+
|
667
|
+
# Update properties of this object
|
668
|
+
def update!(**args)
|
669
|
+
@gad_price = args[:gad_price] if args.key?(:gad_price)
|
670
|
+
@prior_price = args[:prior_price] if args.key?(:prior_price)
|
671
|
+
@prior_price_progressive = args[:prior_price_progressive] if args.key?(:prior_price_progressive)
|
672
|
+
end
|
673
|
+
end
|
674
|
+
|
644
675
|
# Product [certification](https://support.google.com/merchants/answer/13528839),
|
645
676
|
# initially introduced for EU energy efficiency labeling compliance using the EU
|
646
677
|
# EPREL database.
|
@@ -1156,14 +1187,13 @@ module Google
|
|
1156
1187
|
|
1157
1188
|
# The processed product, built from multiple product inputs after applying rules
|
1158
1189
|
# and supplemental data sources. This processed product matches what is shown in
|
1159
|
-
# your Merchant Center account
|
1160
|
-
#
|
1161
|
-
#
|
1162
|
-
#
|
1163
|
-
# processed product
|
1164
|
-
#
|
1165
|
-
#
|
1166
|
-
# 7052112) with some exceptions.
|
1190
|
+
# your Merchant Center account. Each product is built from exactly one primary
|
1191
|
+
# data source product input, and multiple supplemental data source inputs. After
|
1192
|
+
# inserting, updating, or deleting a product input, it may take several minutes
|
1193
|
+
# before the updated processed product can be retrieved. All fields in the
|
1194
|
+
# processed product and its sub-messages match the name of their corresponding
|
1195
|
+
# attribute in the [Product data specification](https://support.google.com/
|
1196
|
+
# merchants/answer/7052112) with some exceptions.
|
1167
1197
|
class Product
|
1168
1198
|
include Google::Apis::Core::Hashable
|
1169
1199
|
|
@@ -1172,6 +1202,11 @@ module Google
|
|
1172
1202
|
# @return [Google::Apis::MerchantapiProductsV1beta::Attributes]
|
1173
1203
|
attr_accessor :attributes
|
1174
1204
|
|
1205
|
+
# Information regarding Automated Discounts.
|
1206
|
+
# Corresponds to the JSON property `automatedDiscounts`
|
1207
|
+
# @return [Google::Apis::MerchantapiProductsV1beta::AutomatedDiscounts]
|
1208
|
+
attr_accessor :automated_discounts
|
1209
|
+
|
1175
1210
|
# Output only. The [channel](https://support.google.com/merchants/answer/7361332)
|
1176
1211
|
# of the product.
|
1177
1212
|
# Corresponds to the JSON property `channel`
|
@@ -1203,10 +1238,10 @@ module Google
|
|
1203
1238
|
# @return [String]
|
1204
1239
|
attr_accessor :feed_label
|
1205
1240
|
|
1206
|
-
# The name of the product. Format: `
|
1207
|
-
#
|
1208
|
-
#
|
1209
|
-
#
|
1241
|
+
# The name of the product. Format: `accounts/`account`/products/`product`` where
|
1242
|
+
# the last section `product` consists of 4 parts: `channel~content_language~
|
1243
|
+
# feed_label~offer_id` example for product name is `accounts/123/products/online~
|
1244
|
+
# en~US~sku123`
|
1210
1245
|
# Corresponds to the JSON property `name`
|
1211
1246
|
# @return [String]
|
1212
1247
|
attr_accessor :name
|
@@ -1244,6 +1279,7 @@ module Google
|
|
1244
1279
|
# Update properties of this object
|
1245
1280
|
def update!(**args)
|
1246
1281
|
@attributes = args[:attributes] if args.key?(:attributes)
|
1282
|
+
@automated_discounts = args[:automated_discounts] if args.key?(:automated_discounts)
|
1247
1283
|
@channel = args[:channel] if args.key?(:channel)
|
1248
1284
|
@content_language = args[:content_language] if args.key?(:content_language)
|
1249
1285
|
@custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes)
|
@@ -1370,8 +1406,11 @@ module Google
|
|
1370
1406
|
# After inserting, updating, or deleting a product input, it may take several
|
1371
1407
|
# minutes before the processed product can be retrieved. All fields in the
|
1372
1408
|
# product input and its sub-messages match the English name of their
|
1373
|
-
# corresponding attribute in the
|
1374
|
-
#
|
1409
|
+
# corresponding attribute in the [Products Data Specification](https://support.
|
1410
|
+
# google.com/merchants/answer/188494) with [some exceptions](https://support.
|
1411
|
+
# google.com/merchants/answer/7052112). The following reference documentation
|
1412
|
+
# lists the field names in the **camelCase** casing style while the Products
|
1413
|
+
# Data Specification lists the names in the **snake_case** casing style.
|
1375
1414
|
class ProductInput
|
1376
1415
|
include Google::Apis::Core::Hashable
|
1377
1416
|
|
@@ -1395,12 +1434,11 @@ module Google
|
|
1395
1434
|
# Optional. A list of custom (merchant-provided) attributes. It can also be used
|
1396
1435
|
# for submitting any attribute of the data specification in its generic form (
|
1397
1436
|
# for example, `` "name": "size type", "value": "regular" ``). This is useful
|
1398
|
-
# for submitting attributes not explicitly exposed by the API
|
1399
|
-
#
|
1400
|
-
# characters for
|
1401
|
-
#
|
1402
|
-
#
|
1403
|
-
# by spaces upon insertion.
|
1437
|
+
# for submitting attributes not explicitly exposed by the API. Maximum allowed
|
1438
|
+
# number of characters for each custom attribute is 10240 (represents sum of
|
1439
|
+
# characters for name and value). Maximum 2500 custom attributes can be set per
|
1440
|
+
# product, with total size of 102.4kB. Underscores in custom attribute names are
|
1441
|
+
# replaced by spaces upon insertion.
|
1404
1442
|
# Corresponds to the JSON property `customAttributes`
|
1405
1443
|
# @return [Array<Google::Apis::MerchantapiProductsV1beta::CustomAttribute>]
|
1406
1444
|
attr_accessor :custom_attributes
|
@@ -1411,11 +1449,10 @@ module Google
|
|
1411
1449
|
# @return [String]
|
1412
1450
|
attr_accessor :feed_label
|
1413
1451
|
|
1414
|
-
# Identifier. The name of the product input. Format: `
|
1415
|
-
#
|
1416
|
-
#
|
1417
|
-
#
|
1418
|
-
# en~US~sku123"
|
1452
|
+
# Identifier. The name of the product input. Format: `accounts/`account`/
|
1453
|
+
# productInputs/`productinput`` where the last section `productinput` consists
|
1454
|
+
# of 4 parts: `channel~content_language~feed_label~offer_id` example for product
|
1455
|
+
# input name is `accounts/123/productInputs/online~en~US~sku123`
|
1419
1456
|
# Corresponds to the JSON property `name`
|
1420
1457
|
# @return [String]
|
1421
1458
|
attr_accessor :name
|
@@ -1429,8 +1466,8 @@ module Google
|
|
1429
1466
|
# @return [String]
|
1430
1467
|
attr_accessor :offer_id
|
1431
1468
|
|
1432
|
-
# Output only. The name of the processed product. Format: `
|
1433
|
-
#
|
1469
|
+
# Output only. The name of the processed product. Format: `accounts/`account`/
|
1470
|
+
# products/`product``
|
1434
1471
|
# Corresponds to the JSON property `product`
|
1435
1472
|
# @return [String]
|
1436
1473
|
attr_accessor :product
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module MerchantapiProductsV1beta
|
18
18
|
# Version of the google-apis-merchantapi_products_v1beta gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.11.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250409"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -28,6 +28,12 @@ module Google
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
+
class AutomatedDiscounts
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
31
37
|
class Certification
|
32
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
39
|
|
@@ -341,6 +347,18 @@ module Google
|
|
341
347
|
end
|
342
348
|
end
|
343
349
|
|
350
|
+
class AutomatedDiscounts
|
351
|
+
# @private
|
352
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
353
|
+
property :gad_price, as: 'gadPrice', class: Google::Apis::MerchantapiProductsV1beta::Price, decorator: Google::Apis::MerchantapiProductsV1beta::Price::Representation
|
354
|
+
|
355
|
+
property :prior_price, as: 'priorPrice', class: Google::Apis::MerchantapiProductsV1beta::Price, decorator: Google::Apis::MerchantapiProductsV1beta::Price::Representation
|
356
|
+
|
357
|
+
property :prior_price_progressive, as: 'priorPriceProgressive', class: Google::Apis::MerchantapiProductsV1beta::Price, decorator: Google::Apis::MerchantapiProductsV1beta::Price::Representation
|
358
|
+
|
359
|
+
end
|
360
|
+
end
|
361
|
+
|
344
362
|
class Certification
|
345
363
|
# @private
|
346
364
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -482,6 +500,8 @@ module Google
|
|
482
500
|
class Representation < Google::Apis::Core::JsonRepresentation
|
483
501
|
property :attributes, as: 'attributes', class: Google::Apis::MerchantapiProductsV1beta::Attributes, decorator: Google::Apis::MerchantapiProductsV1beta::Attributes::Representation
|
484
502
|
|
503
|
+
property :automated_discounts, as: 'automatedDiscounts', class: Google::Apis::MerchantapiProductsV1beta::AutomatedDiscounts, decorator: Google::Apis::MerchantapiProductsV1beta::AutomatedDiscounts::Representation
|
504
|
+
|
485
505
|
property :channel, as: 'channel'
|
486
506
|
property :content_language, as: 'contentLanguage'
|
487
507
|
collection :custom_attributes, as: 'customAttributes', class: Google::Apis::MerchantapiProductsV1beta::CustomAttribute, decorator: Google::Apis::MerchantapiProductsV1beta::CustomAttribute::Representation
|
@@ -55,10 +55,10 @@ module Google
|
|
55
55
|
# updating, or deleting a product input, it may take several minutes before the
|
56
56
|
# processed product can be retrieved.
|
57
57
|
# @param [String] name
|
58
|
-
# Required. The name of the product input resource to delete. Format: accounts/`
|
59
|
-
# account`/productInputs/`product
|
60
|
-
# 4 parts: channel~content_language~feed_label~offer_id example for product
|
61
|
-
# is
|
58
|
+
# Required. The name of the product input resource to delete. Format: `accounts/`
|
59
|
+
# account`/productInputs/`product`` where the last section `product` consists of
|
60
|
+
# 4 parts: `channel~content_language~feed_label~offer_id` example for product
|
61
|
+
# name is `accounts/123/productInputs/online~en~US~sku123`.
|
62
62
|
# @param [String] data_source
|
63
63
|
# Required. The primary or supplemental data source from which the product input
|
64
64
|
# should be deleted. Format: `accounts/`account`/dataSources/`datasource``.
|
@@ -95,8 +95,8 @@ module Google
|
|
95
95
|
# replaces that entry. After inserting, updating, or deleting a product input,
|
96
96
|
# it may take several minutes before the processed product can be retrieved.
|
97
97
|
# @param [String] parent
|
98
|
-
# Required. The account where this product will be inserted. Format: accounts/`
|
99
|
-
# account
|
98
|
+
# Required. The account where this product will be inserted. Format: `accounts/`
|
99
|
+
# account``
|
100
100
|
# @param [Google::Apis::MerchantapiProductsV1beta::ProductInput] product_input_object
|
101
101
|
# @param [String] data_source
|
102
102
|
# Required. The primary or supplemental product data source name. If the product
|
@@ -137,11 +137,10 @@ module Google
|
|
137
137
|
# inserting, updating, or deleting a product input, it may take several minutes
|
138
138
|
# before the processed product can be retrieved.
|
139
139
|
# @param [String] name
|
140
|
-
# Identifier. The name of the product input. Format: `
|
141
|
-
#
|
142
|
-
#
|
143
|
-
#
|
144
|
-
# en~US~sku123"
|
140
|
+
# Identifier. The name of the product input. Format: `accounts/`account`/
|
141
|
+
# productInputs/`productinput`` where the last section `productinput` consists
|
142
|
+
# of 4 parts: `channel~content_language~feed_label~offer_id` example for product
|
143
|
+
# input name is `accounts/123/productInputs/online~en~US~sku123`
|
145
144
|
# @param [Google::Apis::MerchantapiProductsV1beta::ProductInput] product_input_object
|
146
145
|
# @param [String] data_source
|
147
146
|
# Required. The primary or supplemental product data source where `data_source`
|
@@ -192,9 +191,9 @@ module Google
|
|
192
191
|
# before the updated final product can be retrieved.
|
193
192
|
# @param [String] name
|
194
193
|
# Required. The name of the product to retrieve. Format: `accounts/`account`/
|
195
|
-
# products/`product`` where the last section `product` consists of 4 parts:
|
196
|
-
# channel~content_language~feed_label~offer_id example for product name is
|
197
|
-
# accounts/123/products/online~en~US~sku123
|
194
|
+
# products/`product`` where the last section `product` consists of 4 parts: `
|
195
|
+
# channel~content_language~feed_label~offer_id` example for product name is `
|
196
|
+
# accounts/123/products/online~en~US~sku123`
|
198
197
|
# @param [String] fields
|
199
198
|
# Selector specifying which fields to include in a partial response.
|
200
199
|
# @param [String] quota_user
|
@@ -223,13 +222,13 @@ module Google
|
|
223
222
|
end
|
224
223
|
|
225
224
|
# Lists the processed products in your Merchant Center account. The response
|
226
|
-
# might contain fewer items than specified by pageSize
|
225
|
+
# might contain fewer items than specified by `pageSize`. Rely on `pageToken` to
|
227
226
|
# determine if there are more items to be requested. After inserting, updating,
|
228
227
|
# or deleting a product input, it may take several minutes before the updated
|
229
228
|
# processed product can be retrieved.
|
230
229
|
# @param [String] parent
|
231
|
-
# Required. The account to list processed products for. Format: accounts/`
|
232
|
-
# account
|
230
|
+
# Required. The account to list processed products for. Format: `accounts/`
|
231
|
+
# account``
|
233
232
|
# @param [Fixnum] page_size
|
234
233
|
# The maximum number of products to return. The service may return fewer than
|
235
234
|
# this value. The maximum value is 250; values above 250 will be coerced to 250.
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-merchantapi_products_v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-04-16 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_products_v1beta/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_products_v1beta/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_products_v1beta/v0.11.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-merchantapi_products_v1beta
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|