google-apis-merchantapi_accounts_v1beta 0.6.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: aa0ec994d60103ff670ad0902717badc53b3c30f85d6a6da755cab9956770f6d
4
- data.tar.gz: 4c2069aa84fae711d4e01b340a11558bcb5f43caa6391e2c22469bcbaaca14e6
3
+ metadata.gz: 4adaf1f3ad456e03e84f62a4182d737c30b88596145be11002e35027a832a5f6
4
+ data.tar.gz: a5327ea06fecf7ac5882463cfebdb880a25651388472bc533fcc541e2724ebaa
5
5
  SHA512:
6
- metadata.gz: 89fe309c72db3516fc029cd88bfefa4dc74eba17a7f249a951300ff09cfad9ba48991bd0a828c9a17e6639c60983e3b78db4b36d99642bd025c93da0080b4b1c
7
- data.tar.gz: 960fbad862a126547383d54a026510479ccd5b99055f19a94bcefc7aa74c6e9d3143be4c4370c841d0a88926b136e2a200df100f7bf540e479146fbadc8b187b
6
+ metadata.gz: 7dd44315099f057d74d5959811ba1a1dc128aba7f75cf212cac9dc7e643d7d9f0fe4a5b9e7a6cdd1fcb7d44c85d0ccf97ffeb34e642210f73b7d13ce14deb09a
7
+ data.tar.gz: 94d2ba1bbb9f550f47c0a577565366f0186198f46d391737aa8ba55958c6d0fd78a7fbf4fa57d9689e2d19abcb5a5b49f390dc94c1ea31581e1fa59292ba1f96
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-merchantapi_accounts_v1beta
2
2
 
3
+ ### v0.8.0 (2025-03-23)
4
+
5
+ * Regenerated from discovery document revision 20250319
6
+
7
+ ### v0.7.0 (2025-03-16)
8
+
9
+ * Regenerated from discovery document revision 20250311
10
+
3
11
  ### v0.6.0 (2025-03-09)
4
12
 
5
13
  * Regenerated from discovery document revision 20250301
@@ -339,6 +339,185 @@ module Google
339
339
  end
340
340
  end
341
341
 
342
+ # This improvement will attempt to automatically correct submitted images if
343
+ # they don't meet the [image requirements](https://support.google.com/merchants/
344
+ # answer/6324350), for example, removing overlays. If successful, the image will
345
+ # be replaced and approved. This improvement is only applied to images of
346
+ # disapproved offers. For more information see: [Automatic image improvements](
347
+ # https://support.google.com/merchants/answer/9242973)
348
+ class AutomaticImageImprovements
349
+ include Google::Apis::Core::Hashable
350
+
351
+ # Settings for the Automatic Image Improvements.
352
+ # Corresponds to the JSON property `accountImageImprovementsSettings`
353
+ # @return [Google::Apis::MerchantapiAccountsV1beta::ImageImprovementsAccountLevelSettings]
354
+ attr_accessor :account_image_improvements_settings
355
+
356
+ # Output only. The effective value of allow_automatic_image_improvements. If
357
+ # account_image_improvements_settings is present, then this value is the same.
358
+ # Otherwise, it represents the inherited value of the parent account. Read-only.
359
+ # Corresponds to the JSON property `effectiveAllowAutomaticImageImprovements`
360
+ # @return [Boolean]
361
+ attr_accessor :effective_allow_automatic_image_improvements
362
+ alias_method :effective_allow_automatic_image_improvements?, :effective_allow_automatic_image_improvements
363
+
364
+ def initialize(**args)
365
+ update!(**args)
366
+ end
367
+
368
+ # Update properties of this object
369
+ def update!(**args)
370
+ @account_image_improvements_settings = args[:account_image_improvements_settings] if args.key?(:account_image_improvements_settings)
371
+ @effective_allow_automatic_image_improvements = args[:effective_allow_automatic_image_improvements] if args.key?(:effective_allow_automatic_image_improvements)
372
+ end
373
+ end
374
+
375
+ # Collection of information related to the [automatic improvements](https://
376
+ # developers.google.com/shopping-content/guides/automatic-improvements) of an
377
+ # account.
378
+ class AutomaticImprovements
379
+ include Google::Apis::Core::Hashable
380
+
381
+ # This improvement will attempt to automatically correct submitted images if
382
+ # they don't meet the [image requirements](https://support.google.com/merchants/
383
+ # answer/6324350), for example, removing overlays. If successful, the image will
384
+ # be replaced and approved. This improvement is only applied to images of
385
+ # disapproved offers. For more information see: [Automatic image improvements](
386
+ # https://support.google.com/merchants/answer/9242973)
387
+ # Corresponds to the JSON property `imageImprovements`
388
+ # @return [Google::Apis::MerchantapiAccountsV1beta::AutomaticImageImprovements]
389
+ attr_accessor :image_improvements
390
+
391
+ # Turning on [item updates](https://support.google.com/merchants/answer/3246284)
392
+ # allows Google to automatically update items for you. When item updates are on,
393
+ # Google uses the structured data markup on the website and advanced data
394
+ # extractors to update the price and availability of the items. When the item
395
+ # updates are off, items with mismatched data aren't shown.
396
+ # Corresponds to the JSON property `itemUpdates`
397
+ # @return [Google::Apis::MerchantapiAccountsV1beta::AutomaticItemUpdates]
398
+ attr_accessor :item_updates
399
+
400
+ # Identifier. The resource name of the automatic improvements. Format: `accounts/
401
+ # `account`/automaticImprovements`.
402
+ # Corresponds to the JSON property `name`
403
+ # @return [String]
404
+ attr_accessor :name
405
+
406
+ # Not available for MCAs [accounts](https://support.google.com/merchants/answer/
407
+ # 188487). By turning on [automatic shipping improvements](https://support.
408
+ # google.com/merchants/answer/10027038), you are allowing Google to improve the
409
+ # accuracy of your delivery times shown to shoppers using Google. More accurate
410
+ # delivery times, especially when faster, typically lead to better conversion
411
+ # rates. Google will improve your estimated delivery times based on various
412
+ # factors: * Delivery address of an order * Current handling time and shipping
413
+ # time settings * Estimated weekdays or business days * Parcel tracking data
414
+ # Corresponds to the JSON property `shippingImprovements`
415
+ # @return [Google::Apis::MerchantapiAccountsV1beta::AutomaticShippingImprovements]
416
+ attr_accessor :shipping_improvements
417
+
418
+ def initialize(**args)
419
+ update!(**args)
420
+ end
421
+
422
+ # Update properties of this object
423
+ def update!(**args)
424
+ @image_improvements = args[:image_improvements] if args.key?(:image_improvements)
425
+ @item_updates = args[:item_updates] if args.key?(:item_updates)
426
+ @name = args[:name] if args.key?(:name)
427
+ @shipping_improvements = args[:shipping_improvements] if args.key?(:shipping_improvements)
428
+ end
429
+ end
430
+
431
+ # Turning on [item updates](https://support.google.com/merchants/answer/3246284)
432
+ # allows Google to automatically update items for you. When item updates are on,
433
+ # Google uses the structured data markup on the website and advanced data
434
+ # extractors to update the price and availability of the items. When the item
435
+ # updates are off, items with mismatched data aren't shown.
436
+ class AutomaticItemUpdates
437
+ include Google::Apis::Core::Hashable
438
+
439
+ # Settings for the Automatic Item Updates.
440
+ # Corresponds to the JSON property `accountItemUpdatesSettings`
441
+ # @return [Google::Apis::MerchantapiAccountsV1beta::ItemUpdatesAccountLevelSettings]
442
+ attr_accessor :account_item_updates_settings
443
+
444
+ # Output only. The effective value of allow_availability_updates. If
445
+ # account_item_updates_settings is present, then this value is the same.
446
+ # Otherwise, it represents the inherited value of the parent account. The
447
+ # default value is true if no settings are present. Read-only.
448
+ # Corresponds to the JSON property `effectiveAllowAvailabilityUpdates`
449
+ # @return [Boolean]
450
+ attr_accessor :effective_allow_availability_updates
451
+ alias_method :effective_allow_availability_updates?, :effective_allow_availability_updates
452
+
453
+ # Output only. The effective value of allow_condition_updates. If
454
+ # account_item_updates_settings is present, then this value is the same.
455
+ # Otherwise, it represents the inherited value of the parent account. The
456
+ # default value is true if no settings are present. Read-only.
457
+ # Corresponds to the JSON property `effectiveAllowConditionUpdates`
458
+ # @return [Boolean]
459
+ attr_accessor :effective_allow_condition_updates
460
+ alias_method :effective_allow_condition_updates?, :effective_allow_condition_updates
461
+
462
+ # Output only. The effective value of allow_price_updates. If
463
+ # account_item_updates_settings is present, then this value is the same.
464
+ # Otherwise, it represents the inherited value of the parent account. The
465
+ # default value is true if no settings are present. Read-only.
466
+ # Corresponds to the JSON property `effectiveAllowPriceUpdates`
467
+ # @return [Boolean]
468
+ attr_accessor :effective_allow_price_updates
469
+ alias_method :effective_allow_price_updates?, :effective_allow_price_updates
470
+
471
+ # Output only. The effective value of allow_strict_availability_updates. If
472
+ # account_item_updates_settings is present, then this value is the same.
473
+ # Otherwise, it represents the inherited value of the parent account. The
474
+ # default value is true if no settings are present. Read-only.
475
+ # Corresponds to the JSON property `effectiveAllowStrictAvailabilityUpdates`
476
+ # @return [Boolean]
477
+ attr_accessor :effective_allow_strict_availability_updates
478
+ alias_method :effective_allow_strict_availability_updates?, :effective_allow_strict_availability_updates
479
+
480
+ def initialize(**args)
481
+ update!(**args)
482
+ end
483
+
484
+ # Update properties of this object
485
+ def update!(**args)
486
+ @account_item_updates_settings = args[:account_item_updates_settings] if args.key?(:account_item_updates_settings)
487
+ @effective_allow_availability_updates = args[:effective_allow_availability_updates] if args.key?(:effective_allow_availability_updates)
488
+ @effective_allow_condition_updates = args[:effective_allow_condition_updates] if args.key?(:effective_allow_condition_updates)
489
+ @effective_allow_price_updates = args[:effective_allow_price_updates] if args.key?(:effective_allow_price_updates)
490
+ @effective_allow_strict_availability_updates = args[:effective_allow_strict_availability_updates] if args.key?(:effective_allow_strict_availability_updates)
491
+ end
492
+ end
493
+
494
+ # Not available for MCAs [accounts](https://support.google.com/merchants/answer/
495
+ # 188487). By turning on [automatic shipping improvements](https://support.
496
+ # google.com/merchants/answer/10027038), you are allowing Google to improve the
497
+ # accuracy of your delivery times shown to shoppers using Google. More accurate
498
+ # delivery times, especially when faster, typically lead to better conversion
499
+ # rates. Google will improve your estimated delivery times based on various
500
+ # factors: * Delivery address of an order * Current handling time and shipping
501
+ # time settings * Estimated weekdays or business days * Parcel tracking data
502
+ class AutomaticShippingImprovements
503
+ include Google::Apis::Core::Hashable
504
+
505
+ # Enables automatic shipping improvements.
506
+ # Corresponds to the JSON property `allowShippingImprovements`
507
+ # @return [Boolean]
508
+ attr_accessor :allow_shipping_improvements
509
+ alias_method :allow_shipping_improvements?, :allow_shipping_improvements
510
+
511
+ def initialize(**args)
512
+ update!(**args)
513
+ end
514
+
515
+ # Update properties of this object
516
+ def update!(**args)
517
+ @allow_shipping_improvements = args[:allow_shipping_improvements] if args.key?(:allow_shipping_improvements)
518
+ end
519
+ end
520
+
342
521
  # Business days of the warehouse.
343
522
  class BusinessDayConfig
344
523
  include Google::Apis::Core::Hashable
@@ -421,16 +600,16 @@ module Google
421
600
  class BusinessInfo
422
601
  include Google::Apis::Core::Hashable
423
602
 
424
- # Represents a postal address. For example for postal delivery or payments
425
- # addresses. Given a postal address, a postal service can deliver items to a
426
- # premise, P.O. Box or similar. It is not intended to model geographical
427
- # locations (roads, towns, mountains). In typical usage an address would be
603
+ # Represents a postal address (for example, for postal delivery or payments
604
+ # addresses). Given a postal address, a postal service can deliver items to a
605
+ # premise, P.O. box or similar. It is not intended to model geographical
606
+ # locations (roads, towns, mountains). In typical usage, an address would be
428
607
  # created by user input or from importing existing data, depending on the type
429
- # of process. Advice on address input / editing: - Use an internationalization-
430
- # ready address widget such as https://github.com/google/libaddressinput) -
608
+ # of process. Advice on address input or editing: - Use an internationalization-
609
+ # ready address widget such as https://github.com/google/libaddressinput. -
431
610
  # Users should not be presented with UI elements for input or editing of fields
432
611
  # outside countries where that field is used. For more guidance on how to use
433
- # this schema, see: https://support.google.com/business/answer/6397478
612
+ # this schema, see: https://support.google.com/business/answer/6397478.
434
613
  # Corresponds to the JSON property `address`
435
614
  # @return [Google::Apis::MerchantapiAccountsV1beta::PostalAddress]
436
615
  attr_accessor :address
@@ -1130,6 +1309,26 @@ module Google
1130
1309
  end
1131
1310
  end
1132
1311
 
1312
+ # Settings for the Automatic Image Improvements.
1313
+ class ImageImprovementsAccountLevelSettings
1314
+ include Google::Apis::Core::Hashable
1315
+
1316
+ # Enables automatic image improvements.
1317
+ # Corresponds to the JSON property `allowAutomaticImageImprovements`
1318
+ # @return [Boolean]
1319
+ attr_accessor :allow_automatic_image_improvements
1320
+ alias_method :allow_automatic_image_improvements?, :allow_automatic_image_improvements
1321
+
1322
+ def initialize(**args)
1323
+ update!(**args)
1324
+ end
1325
+
1326
+ # Update properties of this object
1327
+ def update!(**args)
1328
+ @allow_automatic_image_improvements = args[:allow_automatic_image_improvements] if args.key?(:allow_automatic_image_improvements)
1329
+ end
1330
+ end
1331
+
1133
1332
  # The impact of the issue on a region.
1134
1333
  class Impact
1135
1334
  include Google::Apis::Core::Hashable
@@ -1180,6 +1379,57 @@ module Google
1180
1379
  end
1181
1380
  end
1182
1381
 
1382
+ # Settings for the Automatic Item Updates.
1383
+ class ItemUpdatesAccountLevelSettings
1384
+ include Google::Apis::Core::Hashable
1385
+
1386
+ # If availability updates are enabled, any previous availability values get
1387
+ # overwritten if Google finds an out-of-stock annotation on the offer's page. If
1388
+ # additionally `allow_strict_availability_updates` field is set to true, values
1389
+ # get overwritten if Google finds an in-stock annotation on the offer’s page.
1390
+ # Corresponds to the JSON property `allowAvailabilityUpdates`
1391
+ # @return [Boolean]
1392
+ attr_accessor :allow_availability_updates
1393
+ alias_method :allow_availability_updates?, :allow_availability_updates
1394
+
1395
+ # If condition updates are enabled, Google always updates item condition with
1396
+ # the condition detected from the details of your product.
1397
+ # Corresponds to the JSON property `allowConditionUpdates`
1398
+ # @return [Boolean]
1399
+ attr_accessor :allow_condition_updates
1400
+ alias_method :allow_condition_updates?, :allow_condition_updates
1401
+
1402
+ # If price updates are enabled, Google always updates the active price with the
1403
+ # crawled information.
1404
+ # Corresponds to the JSON property `allowPriceUpdates`
1405
+ # @return [Boolean]
1406
+ attr_accessor :allow_price_updates
1407
+ alias_method :allow_price_updates?, :allow_price_updates
1408
+
1409
+ # If `allow_availability_updates` is enabled, items are automatically updated in
1410
+ # all your Shopping target countries. By default, availability updates will only
1411
+ # be applied to items that are 'out of stock' on your website but 'in stock' on
1412
+ # Shopping. Set this to true to also update items that are 'in stock' on your
1413
+ # website, but 'out of stock' on Google Shopping. In order for this field to
1414
+ # have an effect, you must also set `allow_availability_updates`.
1415
+ # Corresponds to the JSON property `allowStrictAvailabilityUpdates`
1416
+ # @return [Boolean]
1417
+ attr_accessor :allow_strict_availability_updates
1418
+ alias_method :allow_strict_availability_updates?, :allow_strict_availability_updates
1419
+
1420
+ def initialize(**args)
1421
+ update!(**args)
1422
+ end
1423
+
1424
+ # Update properties of this object
1425
+ def update!(**args)
1426
+ @allow_availability_updates = args[:allow_availability_updates] if args.key?(:allow_availability_updates)
1427
+ @allow_condition_updates = args[:allow_condition_updates] if args.key?(:allow_condition_updates)
1428
+ @allow_price_updates = args[:allow_price_updates] if args.key?(:allow_price_updates)
1429
+ @allow_strict_availability_updates = args[:allow_strict_availability_updates] if args.key?(:allow_strict_availability_updates)
1430
+ end
1431
+ end
1432
+
1183
1433
  # Response message for the `ListAccountIssues` method.
1184
1434
  class ListAccountIssuesResponse
1185
1435
  include Google::Apis::Core::Hashable
@@ -1507,8 +1757,8 @@ module Google
1507
1757
  # @return [Array<String>]
1508
1758
  attr_accessor :countries
1509
1759
 
1510
- # The item conditions accepted for returns must not be empty unless the type of
1511
- # return policy is 'noReturns'.
1760
+ # Optional. The item conditions accepted for returns must not be empty unless
1761
+ # the type of return policy is 'noReturns'.
1512
1762
  # Corresponds to the JSON property `itemConditions`
1513
1763
  # @return [Array<String>]
1514
1764
  attr_accessor :item_conditions
@@ -1546,8 +1796,8 @@ module Google
1546
1796
  # @return [Google::Apis::MerchantapiAccountsV1beta::RestockingFee]
1547
1797
  attr_accessor :restocking_fee
1548
1798
 
1549
- # The return methods of how customers can return an item. This value is required
1550
- # to not be empty unless the type of return policy is noReturns.
1799
+ # Optional. The return methods of how customers can return an item. This value
1800
+ # is required to not be empty unless the type of return policy is noReturns.
1551
1801
  # Corresponds to the JSON property `returnMethods`
1552
1802
  # @return [Array<String>]
1553
1803
  attr_accessor :return_methods
@@ -1689,46 +1939,46 @@ module Google
1689
1939
  end
1690
1940
  end
1691
1941
 
1692
- # Represents a postal address. For example for postal delivery or payments
1693
- # addresses. Given a postal address, a postal service can deliver items to a
1694
- # premise, P.O. Box or similar. It is not intended to model geographical
1695
- # locations (roads, towns, mountains). In typical usage an address would be
1942
+ # Represents a postal address (for example, for postal delivery or payments
1943
+ # addresses). Given a postal address, a postal service can deliver items to a
1944
+ # premise, P.O. box or similar. It is not intended to model geographical
1945
+ # locations (roads, towns, mountains). In typical usage, an address would be
1696
1946
  # created by user input or from importing existing data, depending on the type
1697
- # of process. Advice on address input / editing: - Use an internationalization-
1698
- # ready address widget such as https://github.com/google/libaddressinput) -
1947
+ # of process. Advice on address input or editing: - Use an internationalization-
1948
+ # ready address widget such as https://github.com/google/libaddressinput. -
1699
1949
  # Users should not be presented with UI elements for input or editing of fields
1700
1950
  # outside countries where that field is used. For more guidance on how to use
1701
- # this schema, see: https://support.google.com/business/answer/6397478
1951
+ # this schema, see: https://support.google.com/business/answer/6397478.
1702
1952
  class PostalAddress
1703
1953
  include Google::Apis::Core::Hashable
1704
1954
 
1705
1955
  # Unstructured address lines describing the lower levels of an address. Because
1706
- # values in address_lines do not have type information and may sometimes contain
1707
- # multiple values in a single field (For example "Austin, TX"), it is important
1708
- # that the line order is clear. The order of address lines should be "envelope
1709
- # order" for the country/region of the address. In places where this can vary (
1710
- # For example Japan), address_language is used to make it explicit (For example "
1711
- # ja" for large-to-small ordering and "ja-Latn" or "en" for small-to-large).
1712
- # This way, the most specific line of an address can be selected based on the
1713
- # language. The minimum permitted structural representation of an address
1714
- # consists of a region_code with all remaining information placed in the
1715
- # address_lines. It would be possible to format such an address very
1956
+ # values in `address_lines` do not have type information and may sometimes
1957
+ # contain multiple values in a single field (for example, "Austin, TX"), it is
1958
+ # important that the line order is clear. The order of address lines should be "
1959
+ # envelope order" for the country or region of the address. In places where this
1960
+ # can vary (for example, Japan), `address_language` is used to make it explicit (
1961
+ # for example, "ja" for large-to-small ordering and "ja-Latn" or "en" for small-
1962
+ # to-large). In this way, the most specific line of an address can be selected
1963
+ # based on the language. The minimum permitted structural representation of an
1964
+ # address consists of a `region_code` with all remaining information placed in
1965
+ # the `address_lines`. It would be possible to format such an address very
1716
1966
  # approximately without geocoding, but no semantic reasoning could be made about
1717
1967
  # any of the address components until it was at least partially resolved.
1718
- # Creating an address only containing a region_code and address_lines, and then
1719
- # geocoding is the recommended way to handle completely unstructured addresses (
1720
- # as opposed to guessing which parts of the address should be localities or
1721
- # administrative areas).
1968
+ # Creating an address only containing a `region_code` and `address_lines` and
1969
+ # then geocoding is the recommended way to handle completely unstructured
1970
+ # addresses (as opposed to guessing which parts of the address should be
1971
+ # localities or administrative areas).
1722
1972
  # Corresponds to the JSON property `addressLines`
1723
1973
  # @return [Array<String>]
1724
1974
  attr_accessor :address_lines
1725
1975
 
1726
1976
  # Optional. Highest administrative subdivision which is used for postal
1727
1977
  # addresses of a country or region. For example, this can be a state, a province,
1728
- # an oblast, or a prefecture. Specifically, for Spain this is the province and
1729
- # not the autonomous community (For example "Barcelona" and not "Catalonia").
1730
- # Many countries don't use an administrative area in postal addresses. For
1731
- # example in Switzerland this should be left unpopulated.
1978
+ # an oblast, or a prefecture. For Spain, this is the province and not the
1979
+ # autonomous community (for example, "Barcelona" and not "Catalonia"). Many
1980
+ # countries don't use an administrative area in postal addresses. For example,
1981
+ # in Switzerland, this should be left unpopulated.
1732
1982
  # Corresponds to the JSON property `administrativeArea`
1733
1983
  # @return [String]
1734
1984
  attr_accessor :administrative_area
@@ -1745,10 +1995,10 @@ module Google
1745
1995
  # @return [String]
1746
1996
  attr_accessor :language_code
1747
1997
 
1748
- # Optional. Generally refers to the city/town portion of the address. Examples:
1749
- # US city, IT comune, UK post town. In regions of the world where localities are
1750
- # not well defined or do not fit into this structure well, leave locality empty
1751
- # and use address_lines.
1998
+ # Optional. Generally refers to the city or town portion of the address.
1999
+ # Examples: US city, IT comune, UK post town. In regions of the world where
2000
+ # localities are not well defined or do not fit into this structure well, leave `
2001
+ # locality` empty and use `address_lines`.
1752
2002
  # Corresponds to the JSON property `locality`
1753
2003
  # @return [String]
1754
2004
  attr_accessor :locality
@@ -1760,8 +2010,8 @@ module Google
1760
2010
 
1761
2011
  # Optional. Postal code of the address. Not all countries use or require postal
1762
2012
  # codes to be present, but where they are used, they may trigger additional
1763
- # validation with other parts of the address (For example state/zip validation
1764
- # in the U.S.A.).
2013
+ # validation with other parts of the address (for example, state or zip code
2014
+ # validation in the United States).
1765
2015
  # Corresponds to the JSON property `postalCode`
1766
2016
  # @return [String]
1767
2017
  attr_accessor :postal_code
@@ -1790,15 +2040,15 @@ module Google
1790
2040
 
1791
2041
  # Optional. Additional, country-specific, sorting code. This is not used in most
1792
2042
  # regions. Where it is used, the value is either a string like "CEDEX",
1793
- # optionally followed by a number (For example "CEDEX 7"), or just a number
2043
+ # optionally followed by a number (for example, "CEDEX 7"), or just a number
1794
2044
  # alone, representing the "sector code" (Jamaica), "delivery area indicator" (
1795
- # Malawi) or "post office indicator" (For example Côte d'Ivoire).
2045
+ # Malawi) or "post office indicator" (Côte d'Ivoire).
1796
2046
  # Corresponds to the JSON property `sortingCode`
1797
2047
  # @return [String]
1798
2048
  attr_accessor :sorting_code
1799
2049
 
1800
- # Optional. Sublocality of the address. For example, this can be neighborhoods,
1801
- # boroughs, districts.
2050
+ # Optional. Sublocality of the address. For example, this can be a neighborhood,
2051
+ # borough, or district.
1802
2052
  # Corresponds to the JSON property `sublocality`
1803
2053
  # @return [String]
1804
2054
  attr_accessor :sublocality
@@ -1980,7 +2230,9 @@ module Google
1980
2230
  # @return [Array<Google::Apis::MerchantapiAccountsV1beta::ProductChange>]
1981
2231
  attr_accessor :changes
1982
2232
 
1983
- # The time at which the event was generated.
2233
+ # The time at which the event was generated. If you want to order the
2234
+ # notification messages you receive you should rely on this field not on the
2235
+ # order of receiving the notifications.
1984
2236
  # Corresponds to the JSON property `eventTime`
1985
2237
  # @return [String]
1986
2238
  attr_accessor :event_time
@@ -2353,32 +2605,15 @@ module Google
2353
2605
  # with a zero month and a zero day. * A year and month, with a zero day (for
2354
2606
  # example, a credit card expiration date). Related types: * google.type.
2355
2607
  # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
2356
- # Corresponds to the JSON property `begin`
2608
+ # Corresponds to the JSON property `endDate`
2357
2609
  # @return [Google::Apis::MerchantapiAccountsV1beta::Date]
2358
- attr_accessor :begin
2359
-
2360
- # Represents a whole or partial calendar date, such as a birthday. The time of
2361
- # day and time zone are either specified elsewhere or are insignificant. The
2362
- # date is relative to the Gregorian Calendar. This can represent one of the
2363
- # following: * A full date, with non-zero year, month, and day values. * A month
2364
- # and day, with a zero year (for example, an anniversary). * A year on its own,
2365
- # with a zero month and a zero day. * A year and month, with a zero day (for
2366
- # example, a credit card expiration date). Related types: * google.type.
2367
- # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
2368
- # Corresponds to the JSON property `end`
2369
- # @return [Google::Apis::MerchantapiAccountsV1beta::Date]
2370
- attr_accessor :end
2610
+ attr_accessor :end_date
2371
2611
 
2372
2612
  # Required. Display name of this seasonal override in Merchant Center.
2373
2613
  # Corresponds to the JSON property `label`
2374
2614
  # @return [String]
2375
2615
  attr_accessor :label
2376
2616
 
2377
- # The available policies.
2378
- # Corresponds to the JSON property `policy`
2379
- # @return [Google::Apis::MerchantapiAccountsV1beta::Policy]
2380
- attr_accessor :policy
2381
-
2382
2617
  # Number of days (from the delivery date) that the product can be returned.
2383
2618
  # Corresponds to the JSON property `returnDays`
2384
2619
  # @return [Fixnum]
@@ -2396,18 +2631,29 @@ module Google
2396
2631
  # @return [Google::Apis::MerchantapiAccountsV1beta::Date]
2397
2632
  attr_accessor :return_until_date
2398
2633
 
2634
+ # Represents a whole or partial calendar date, such as a birthday. The time of
2635
+ # day and time zone are either specified elsewhere or are insignificant. The
2636
+ # date is relative to the Gregorian Calendar. This can represent one of the
2637
+ # following: * A full date, with non-zero year, month, and day values. * A month
2638
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
2639
+ # with a zero month and a zero day. * A year and month, with a zero day (for
2640
+ # example, a credit card expiration date). Related types: * google.type.
2641
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
2642
+ # Corresponds to the JSON property `startDate`
2643
+ # @return [Google::Apis::MerchantapiAccountsV1beta::Date]
2644
+ attr_accessor :start_date
2645
+
2399
2646
  def initialize(**args)
2400
2647
  update!(**args)
2401
2648
  end
2402
2649
 
2403
2650
  # Update properties of this object
2404
2651
  def update!(**args)
2405
- @begin = args[:begin] if args.key?(:begin)
2406
- @end = args[:end] if args.key?(:end)
2652
+ @end_date = args[:end_date] if args.key?(:end_date)
2407
2653
  @label = args[:label] if args.key?(:label)
2408
- @policy = args[:policy] if args.key?(:policy)
2409
2654
  @return_days = args[:return_days] if args.key?(:return_days)
2410
2655
  @return_until_date = args[:return_until_date] if args.key?(:return_until_date)
2656
+ @start_date = args[:start_date] if args.key?(:start_date)
2411
2657
  end
2412
2658
  end
2413
2659
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MerchantapiAccountsV1beta
18
18
  # Version of the google-apis-merchantapi_accounts_v1beta gem
19
- GEM_VERSION = "0.6.0"
19
+ GEM_VERSION = "0.8.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 = "20250301"
25
+ REVISION = "20250319"
26
26
  end
27
27
  end
28
28
  end
@@ -70,6 +70,30 @@ module Google
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
+ class AutomaticImageImprovements
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class AutomaticImprovements
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class AutomaticItemUpdates
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class AutomaticShippingImprovements
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
73
97
  class BusinessDayConfig
74
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
99
 
@@ -196,6 +220,12 @@ module Google
196
220
  include Google::Apis::Core::JsonObjectSupport
197
221
  end
198
222
 
223
+ class ImageImprovementsAccountLevelSettings
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
199
229
  class Impact
200
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
231
 
@@ -208,6 +238,12 @@ module Google
208
238
  include Google::Apis::Core::JsonObjectSupport
209
239
  end
210
240
 
241
+ class ItemUpdatesAccountLevelSettings
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
211
247
  class ListAccountIssuesResponse
212
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
249
 
@@ -583,6 +619,47 @@ module Google
583
619
  end
584
620
  end
585
621
 
622
+ class AutomaticImageImprovements
623
+ # @private
624
+ class Representation < Google::Apis::Core::JsonRepresentation
625
+ property :account_image_improvements_settings, as: 'accountImageImprovementsSettings', class: Google::Apis::MerchantapiAccountsV1beta::ImageImprovementsAccountLevelSettings, decorator: Google::Apis::MerchantapiAccountsV1beta::ImageImprovementsAccountLevelSettings::Representation
626
+
627
+ property :effective_allow_automatic_image_improvements, as: 'effectiveAllowAutomaticImageImprovements'
628
+ end
629
+ end
630
+
631
+ class AutomaticImprovements
632
+ # @private
633
+ class Representation < Google::Apis::Core::JsonRepresentation
634
+ property :image_improvements, as: 'imageImprovements', class: Google::Apis::MerchantapiAccountsV1beta::AutomaticImageImprovements, decorator: Google::Apis::MerchantapiAccountsV1beta::AutomaticImageImprovements::Representation
635
+
636
+ property :item_updates, as: 'itemUpdates', class: Google::Apis::MerchantapiAccountsV1beta::AutomaticItemUpdates, decorator: Google::Apis::MerchantapiAccountsV1beta::AutomaticItemUpdates::Representation
637
+
638
+ property :name, as: 'name'
639
+ property :shipping_improvements, as: 'shippingImprovements', class: Google::Apis::MerchantapiAccountsV1beta::AutomaticShippingImprovements, decorator: Google::Apis::MerchantapiAccountsV1beta::AutomaticShippingImprovements::Representation
640
+
641
+ end
642
+ end
643
+
644
+ class AutomaticItemUpdates
645
+ # @private
646
+ class Representation < Google::Apis::Core::JsonRepresentation
647
+ property :account_item_updates_settings, as: 'accountItemUpdatesSettings', class: Google::Apis::MerchantapiAccountsV1beta::ItemUpdatesAccountLevelSettings, decorator: Google::Apis::MerchantapiAccountsV1beta::ItemUpdatesAccountLevelSettings::Representation
648
+
649
+ property :effective_allow_availability_updates, as: 'effectiveAllowAvailabilityUpdates'
650
+ property :effective_allow_condition_updates, as: 'effectiveAllowConditionUpdates'
651
+ property :effective_allow_price_updates, as: 'effectiveAllowPriceUpdates'
652
+ property :effective_allow_strict_availability_updates, as: 'effectiveAllowStrictAvailabilityUpdates'
653
+ end
654
+ end
655
+
656
+ class AutomaticShippingImprovements
657
+ # @private
658
+ class Representation < Google::Apis::Core::JsonRepresentation
659
+ property :allow_shipping_improvements, as: 'allowShippingImprovements'
660
+ end
661
+ end
662
+
586
663
  class BusinessDayConfig
587
664
  # @private
588
665
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -796,6 +873,13 @@ module Google
796
873
  end
797
874
  end
798
875
 
876
+ class ImageImprovementsAccountLevelSettings
877
+ # @private
878
+ class Representation < Google::Apis::Core::JsonRepresentation
879
+ property :allow_automatic_image_improvements, as: 'allowAutomaticImageImprovements'
880
+ end
881
+ end
882
+
799
883
  class Impact
800
884
  # @private
801
885
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -813,6 +897,16 @@ module Google
813
897
  end
814
898
  end
815
899
 
900
+ class ItemUpdatesAccountLevelSettings
901
+ # @private
902
+ class Representation < Google::Apis::Core::JsonRepresentation
903
+ property :allow_availability_updates, as: 'allowAvailabilityUpdates'
904
+ property :allow_condition_updates, as: 'allowConditionUpdates'
905
+ property :allow_price_updates, as: 'allowPriceUpdates'
906
+ property :allow_strict_availability_updates, as: 'allowStrictAvailabilityUpdates'
907
+ end
908
+ end
909
+
816
910
  class ListAccountIssuesResponse
817
911
  # @private
818
912
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1113,16 +1207,14 @@ module Google
1113
1207
  class SeasonalOverride
1114
1208
  # @private
1115
1209
  class Representation < Google::Apis::Core::JsonRepresentation
1116
- property :begin, as: 'begin', class: Google::Apis::MerchantapiAccountsV1beta::Date, decorator: Google::Apis::MerchantapiAccountsV1beta::Date::Representation
1117
-
1118
- property :end, as: 'end', class: Google::Apis::MerchantapiAccountsV1beta::Date, decorator: Google::Apis::MerchantapiAccountsV1beta::Date::Representation
1210
+ property :end_date, as: 'endDate', class: Google::Apis::MerchantapiAccountsV1beta::Date, decorator: Google::Apis::MerchantapiAccountsV1beta::Date::Representation
1119
1211
 
1120
1212
  property :label, as: 'label'
1121
- property :policy, as: 'policy', class: Google::Apis::MerchantapiAccountsV1beta::Policy, decorator: Google::Apis::MerchantapiAccountsV1beta::Policy::Representation
1122
-
1123
1213
  property :return_days, as: 'returnDays'
1124
1214
  property :return_until_date, as: 'returnUntilDate', class: Google::Apis::MerchantapiAccountsV1beta::Date, decorator: Google::Apis::MerchantapiAccountsV1beta::Date::Representation
1125
1215
 
1216
+ property :start_date, as: 'startDate', class: Google::Apis::MerchantapiAccountsV1beta::Date, decorator: Google::Apis::MerchantapiAccountsV1beta::Date::Representation
1217
+
1126
1218
  end
1127
1219
  end
1128
1220
 
@@ -152,6 +152,37 @@ module Google
152
152
  execute_or_queue_command(command, &block)
153
153
  end
154
154
 
155
+ # Retrieves the automatic improvements of an account.
156
+ # @param [String] name
157
+ # Required. The resource name of the automatic improvements. Format: `accounts/`
158
+ # account`/automaticImprovements`
159
+ # @param [String] fields
160
+ # Selector specifying which fields to include in a partial response.
161
+ # @param [String] quota_user
162
+ # Available to use for quota purposes for server-side applications. Can be any
163
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
164
+ # @param [Google::Apis::RequestOptions] options
165
+ # Request-specific options
166
+ #
167
+ # @yield [result, err] Result & error if block supplied
168
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::AutomaticImprovements] parsed result object
169
+ # @yieldparam err [StandardError] error object if request failed
170
+ #
171
+ # @return [Google::Apis::MerchantapiAccountsV1beta::AutomaticImprovements]
172
+ #
173
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
174
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
175
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
176
+ def get_account_automatic_improvements(name, fields: nil, quota_user: nil, options: nil, &block)
177
+ command = make_simple_command(:get, 'accounts/v1beta/{+name}', options)
178
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::AutomaticImprovements::Representation
179
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::AutomaticImprovements
180
+ command.params['name'] = name unless name.nil?
181
+ command.query['fields'] = fields unless fields.nil?
182
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
183
+ execute_or_queue_command(command, &block)
184
+ end
185
+
155
186
  # Lists accounts accessible to the calling user and matching the constraints of
156
187
  # the request such as page size or filters. This is not just listing the sub-
157
188
  # accounts of an MCA, but all accounts the calling user has access to including
@@ -287,6 +318,47 @@ module Google
287
318
  execute_or_queue_command(command, &block)
288
319
  end
289
320
 
321
+ # Updates the automatic improvements of an account.
322
+ # @param [String] name
323
+ # Identifier. The resource name of the automatic improvements. Format: `accounts/
324
+ # `account`/automaticImprovements`.
325
+ # @param [Google::Apis::MerchantapiAccountsV1beta::AutomaticImprovements] automatic_improvements_object
326
+ # @param [String] update_mask
327
+ # Required. List of fields being updated. The following fields are supported (in
328
+ # both `snake_case` and `lowerCamelCase`): - `item_updates` - `item_updates.
329
+ # account_level_settings` - `image_improvements` - `image_improvements.
330
+ # account_level_settings` - `shipping_improvements` - `shipping_improvements.
331
+ # allow_shipping_improvements`
332
+ # @param [String] fields
333
+ # Selector specifying which fields to include in a partial response.
334
+ # @param [String] quota_user
335
+ # Available to use for quota purposes for server-side applications. Can be any
336
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
337
+ # @param [Google::Apis::RequestOptions] options
338
+ # Request-specific options
339
+ #
340
+ # @yield [result, err] Result & error if block supplied
341
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::AutomaticImprovements] parsed result object
342
+ # @yieldparam err [StandardError] error object if request failed
343
+ #
344
+ # @return [Google::Apis::MerchantapiAccountsV1beta::AutomaticImprovements]
345
+ #
346
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
347
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
348
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
349
+ def update_account_automatic_improvements(name, automatic_improvements_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
350
+ command = make_simple_command(:patch, 'accounts/v1beta/{+name}', options)
351
+ command.request_representation = Google::Apis::MerchantapiAccountsV1beta::AutomaticImprovements::Representation
352
+ command.request_object = automatic_improvements_object
353
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::AutomaticImprovements::Representation
354
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::AutomaticImprovements
355
+ command.params['name'] = name unless name.nil?
356
+ command.query['updateMask'] = update_mask unless update_mask.nil?
357
+ command.query['fields'] = fields unless fields.nil?
358
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
359
+ execute_or_queue_command(command, &block)
360
+ end
361
+
290
362
  # Retrieves the autofeed settings of an account.
291
363
  # @param [String] name
292
364
  # Required. The resource name of the autofeed settings. Format: `accounts/`
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-merchantapi_accounts_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.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-09 00:00:00.000000000 Z
10
+ date: 2025-03-23 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_accounts_v1beta/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_accounts_v1beta/v0.6.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_accounts_v1beta/v0.8.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-merchantapi_accounts_v1beta
62
62
  rdoc_options: []
63
63
  require_paths: