google-apis-content_v2_1 0.22.0 → 0.26.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38375e09b4e3218965307bf88cb8a1820ba29f3d30192dbfd5c6ad13adcc382a
4
- data.tar.gz: 4e5b4c922bf05d20c65c536bde6e750e752068268e78b93c492d0db627c401fd
3
+ metadata.gz: 7d790df2c988c18e9ce9d3827ab5f1a8695d52a916efc5db89a943d5cfd3a645
4
+ data.tar.gz: 126f342f2a8cff245f549d40bc078a6a7fbf9118b81af61fd9f1b0e766729877
5
5
  SHA512:
6
- metadata.gz: 0cee9ed7164f1f711eccd3496ee0d581c21040790f2ad9b409c83541799546bd1d1a36e73e2fb43367e43691794f42b41a14b1e56e67ce29fe35297fab6fdd66
7
- data.tar.gz: 11600dd19455d07ab6ccebfb8d10dae3a24ba62d9a5c0cdb5516b854b4c8aeb7f626fdf6f9f1e587c2e8d786fa8cf54eb69bea1d7599404ba700c5671a2c93be
6
+ metadata.gz: 3e9b148f6a67cfe9be070e0f609b83d3f2332aa78ae3580cb35c91e368dee36cc442b5b12c526cbb86cca70a3ca797ca58680738b3d38a5c24f782db3dea3389
7
+ data.tar.gz: b3ff3e03f7142cfd080fee4248a00e902af3591fe988967778c5a2159e93f25564ccd0a8d416097d1c0b5203eed2ee69c57d5f9f7f58624a4af834343b26a4aa
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-content_v2_1
2
2
 
3
+ ### v0.26.0 (2021-11-02)
4
+
5
+ * Regenerated from discovery document revision 20211027
6
+
7
+ ### v0.25.0 (2021-10-26)
8
+
9
+ * Regenerated from discovery document revision 20211021
10
+
11
+ ### v0.24.0 (2021-10-12)
12
+
13
+ * Regenerated from discovery document revision 20211007
14
+
15
+ ### v0.23.0 (2021-09-28)
16
+
17
+ * Regenerated from discovery document revision 20210924
18
+
3
19
  ### v0.22.0 (2021-09-22)
4
20
 
5
21
  * Regenerated from discovery document revision 20210917
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Content service in particular.)
67
67
 
@@ -242,11 +242,20 @@ module Google
242
242
  # @return [String]
243
243
  attr_accessor :korean_business_registration_number
244
244
 
245
- # The phone number of the business.
245
+ # The phone number of the business. This can only be updated if a verified phone
246
+ # number is not already set. To replace a verified phone number use the `
247
+ # Accounts.requestphoneverification` and `Accounts.verifyphonenumber`.
246
248
  # Corresponds to the JSON property `phoneNumber`
247
249
  # @return [String]
248
250
  attr_accessor :phone_number
249
251
 
252
+ # Verification status of the phone number of the business. This status is read
253
+ # only and can be updated only by successful phone verification. Acceptable
254
+ # values are: - "`verified`" - "`unverified`"
255
+ # Corresponds to the JSON property `phoneVerificationStatus`
256
+ # @return [String]
257
+ attr_accessor :phone_verification_status
258
+
250
259
  def initialize(**args)
251
260
  update!(**args)
252
261
  end
@@ -257,6 +266,7 @@ module Google
257
266
  @customer_service = args[:customer_service] if args.key?(:customer_service)
258
267
  @korean_business_registration_number = args[:korean_business_registration_number] if args.key?(:korean_business_registration_number)
259
268
  @phone_number = args[:phone_number] if args.key?(:phone_number)
269
+ @phone_verification_status = args[:phone_verification_status] if args.key?(:phone_verification_status)
260
270
  end
261
271
  end
262
272
 
@@ -1636,6 +1646,52 @@ module Google
1636
1646
  end
1637
1647
  end
1638
1648
 
1649
+ #
1650
+ class Address
1651
+ include Google::Apis::Core::Hashable
1652
+
1653
+ # Required. Top-level administrative subdivision of the country. For example, a
1654
+ # state like California ("CA") or a province like Quebec ("QC").
1655
+ # Corresponds to the JSON property `administrativeArea`
1656
+ # @return [String]
1657
+ attr_accessor :administrative_area
1658
+
1659
+ # Required. City, town or commune. May also include dependent localities or
1660
+ # sublocalities (e.g. neighborhoods or suburbs).
1661
+ # Corresponds to the JSON property `city`
1662
+ # @return [String]
1663
+ attr_accessor :city
1664
+
1665
+ # Required. [CLDR country code](http://www.unicode.org/repos/cldr/tags/latest/
1666
+ # common/main/en.xml) (e.g. "US").
1667
+ # Corresponds to the JSON property `country`
1668
+ # @return [String]
1669
+ attr_accessor :country
1670
+
1671
+ # Required. Postal code or ZIP (e.g. "94043").
1672
+ # Corresponds to the JSON property `postalCode`
1673
+ # @return [String]
1674
+ attr_accessor :postal_code
1675
+
1676
+ # Street-level part of the address.
1677
+ # Corresponds to the JSON property `streetAddress`
1678
+ # @return [String]
1679
+ attr_accessor :street_address
1680
+
1681
+ def initialize(**args)
1682
+ update!(**args)
1683
+ end
1684
+
1685
+ # Update properties of this object
1686
+ def update!(**args)
1687
+ @administrative_area = args[:administrative_area] if args.key?(:administrative_area)
1688
+ @city = args[:city] if args.key?(:city)
1689
+ @country = args[:country] if args.key?(:country)
1690
+ @postal_code = args[:postal_code] if args.key?(:postal_code)
1691
+ @street_address = args[:street_address] if args.key?(:street_address)
1692
+ end
1693
+ end
1694
+
1639
1695
  #
1640
1696
  class Amount
1641
1697
  include Google::Apis::Core::Hashable
@@ -4642,7 +4698,7 @@ module Google
4642
4698
 
4643
4699
  # Supported pickup method for this offer. Unless the value is "not supported",
4644
4700
  # this field must be submitted together with `pickupSla`. For accepted attribute
4645
- # values, see the local product inventory feed // specification.
4701
+ # values, see the local product inventory feed specification.
4646
4702
  # Corresponds to the JSON property `pickupMethod`
4647
4703
  # @return [String]
4648
4704
  attr_accessor :pickup_method
@@ -6896,6 +6952,11 @@ module Google
6896
6952
  class OrderTrackingSignalLineItemDetails
6897
6953
  include Google::Apis::Core::Hashable
6898
6954
 
6955
+ # Brand of the product.
6956
+ # Corresponds to the JSON property `brand`
6957
+ # @return [String]
6958
+ attr_accessor :brand
6959
+
6899
6960
  # The Global Trade Item Number.
6900
6961
  # Corresponds to the JSON property `gtin`
6901
6962
  # @return [String]
@@ -6911,28 +6972,54 @@ module Google
6911
6972
  # @return [String]
6912
6973
  attr_accessor :mpn
6913
6974
 
6975
+ # Plain text description of this product (deprecated: Please use product_title
6976
+ # instead).
6977
+ # Corresponds to the JSON property `productDescription`
6978
+ # @return [String]
6979
+ attr_accessor :product_description
6980
+
6914
6981
  # Required. The Content API REST ID of the product, in the form channel:
6915
6982
  # contentLanguage:targetCountry:offerId.
6916
6983
  # Corresponds to the JSON property `productId`
6917
6984
  # @return [String]
6918
6985
  attr_accessor :product_id
6919
6986
 
6987
+ # Plain text title of this product.
6988
+ # Corresponds to the JSON property `productTitle`
6989
+ # @return [String]
6990
+ attr_accessor :product_title
6991
+
6920
6992
  # Required. The quantity of the line item in the order.
6921
6993
  # Corresponds to the JSON property `quantity`
6922
6994
  # @return [Fixnum]
6923
6995
  attr_accessor :quantity
6924
6996
 
6997
+ # Merchant SKU for this item (deprecated).
6998
+ # Corresponds to the JSON property `sku`
6999
+ # @return [String]
7000
+ attr_accessor :sku
7001
+
7002
+ # Universal product code for this item (deprecated: Please use GTIN instead).
7003
+ # Corresponds to the JSON property `upc`
7004
+ # @return [String]
7005
+ attr_accessor :upc
7006
+
6925
7007
  def initialize(**args)
6926
7008
  update!(**args)
6927
7009
  end
6928
7010
 
6929
7011
  # Update properties of this object
6930
7012
  def update!(**args)
7013
+ @brand = args[:brand] if args.key?(:brand)
6931
7014
  @gtin = args[:gtin] if args.key?(:gtin)
6932
7015
  @line_item_id = args[:line_item_id] if args.key?(:line_item_id)
6933
7016
  @mpn = args[:mpn] if args.key?(:mpn)
7017
+ @product_description = args[:product_description] if args.key?(:product_description)
6934
7018
  @product_id = args[:product_id] if args.key?(:product_id)
7019
+ @product_title = args[:product_title] if args.key?(:product_title)
6935
7020
  @quantity = args[:quantity] if args.key?(:quantity)
7021
+ @sku = args[:sku] if args.key?(:sku)
7022
+ @upc = args[:upc] if args.key?(:upc)
6936
7023
  end
6937
7024
  end
6938
7025
 
@@ -11590,9 +11677,14 @@ module Google
11590
11677
  end
11591
11678
  end
11592
11679
 
11593
- # Represents a promotion. (1) https://support.google.com/merchants/answer/
11594
- # 2906014 (2) https://support.google.com/merchants/answer/10146130 (3) https://
11595
- # support.google.com/merchants/answer/9173673
11680
+ # The Promotions feature is currently in alpha and is not yet publicly
11681
+ # available via Content API for Shopping. This documentation is provided for
11682
+ # reference only may be subject to change. Represents a promotion. See the
11683
+ # following articles for more details. * [Promotions feed specification](https://
11684
+ # support.google.com/merchants/answer/2906014) * [Local promotions feed
11685
+ # specification](https://support.google.com/merchants/answer/10146130) * [
11686
+ # Promotions on Buy on Google product data specification](https://support.google.
11687
+ # com/merchants/answer/9173673)
11596
11688
  class Promotion
11597
11689
  include Google::Apis::Core::Hashable
11598
11690
 
@@ -11643,7 +11735,9 @@ module Google
11643
11735
 
11644
11736
  # Required. Output only. The REST promotion id to uniquely identify the
11645
11737
  # promotion. Content API methods that operate on promotions take this as their
11646
- # promotionId parameter.
11738
+ # promotionId parameter. The REST ID for a promotion is of the form channel:
11739
+ # contentLanguage:targetCountry:promotionId The channel field will have a value
11740
+ # of "online", "in_store", or "online_in_store".
11647
11741
  # Corresponds to the JSON property `id`
11648
11742
  # @return [String]
11649
11743
  attr_accessor :id
@@ -11724,6 +11818,16 @@ module Google
11724
11818
  # @return [String]
11725
11819
  attr_accessor :product_applicability
11726
11820
 
11821
+ # Product filter by product type for the promotion.
11822
+ # Corresponds to the JSON property `productType`
11823
+ # @return [Array<String>]
11824
+ attr_accessor :product_type
11825
+
11826
+ # Product filter by product type exclusion for the promotion.
11827
+ # Corresponds to the JSON property `productTypeExclusion`
11828
+ # @return [Array<String>]
11829
+ attr_accessor :product_type_exclusion
11830
+
11727
11831
  # Destination ID for the promotion.
11728
11832
  # Corresponds to the JSON property `promotionDestinationIds`
11729
11833
  # @return [Array<String>]
@@ -11734,11 +11838,21 @@ module Google
11734
11838
  # @return [String]
11735
11839
  attr_accessor :promotion_display_dates
11736
11840
 
11841
+ # A message that represents a time period.
11842
+ # Corresponds to the JSON property `promotionDisplayTimePeriod`
11843
+ # @return [Google::Apis::ContentV2_1::TimePeriod]
11844
+ attr_accessor :promotion_display_time_period
11845
+
11737
11846
  # Required. String representation of the promotion effective dates.
11738
11847
  # Corresponds to the JSON property `promotionEffectiveDates`
11739
11848
  # @return [String]
11740
11849
  attr_accessor :promotion_effective_dates
11741
11850
 
11851
+ # A message that represents a time period.
11852
+ # Corresponds to the JSON property `promotionEffectiveTimePeriod`
11853
+ # @return [Google::Apis::ContentV2_1::TimePeriod]
11854
+ attr_accessor :promotion_effective_time_period
11855
+
11742
11856
  # Required. The user provided promotion id to uniquely identify the promotion.
11743
11857
  # Corresponds to the JSON property `promotionId`
11744
11858
  # @return [String]
@@ -11791,9 +11905,13 @@ module Google
11791
11905
  @order_limit = args[:order_limit] if args.key?(:order_limit)
11792
11906
  @percent_off = args[:percent_off] if args.key?(:percent_off)
11793
11907
  @product_applicability = args[:product_applicability] if args.key?(:product_applicability)
11908
+ @product_type = args[:product_type] if args.key?(:product_type)
11909
+ @product_type_exclusion = args[:product_type_exclusion] if args.key?(:product_type_exclusion)
11794
11910
  @promotion_destination_ids = args[:promotion_destination_ids] if args.key?(:promotion_destination_ids)
11795
11911
  @promotion_display_dates = args[:promotion_display_dates] if args.key?(:promotion_display_dates)
11912
+ @promotion_display_time_period = args[:promotion_display_time_period] if args.key?(:promotion_display_time_period)
11796
11913
  @promotion_effective_dates = args[:promotion_effective_dates] if args.key?(:promotion_effective_dates)
11914
+ @promotion_effective_time_period = args[:promotion_effective_time_period] if args.key?(:promotion_effective_time_period)
11797
11915
  @promotion_id = args[:promotion_id] if args.key?(:promotion_id)
11798
11916
  @redemption_channel = args[:redemption_channel] if args.key?(:redemption_channel)
11799
11917
  @shipping_service_names = args[:shipping_service_names] if args.key?(:shipping_service_names)
@@ -14701,6 +14819,11 @@ module Google
14701
14819
  # @return [Array<Google::Apis::ContentV2_1::Service>]
14702
14820
  attr_accessor :services
14703
14821
 
14822
+ # Optional. A list of warehouses which can be referred to in `services`.
14823
+ # Corresponds to the JSON property `warehouses`
14824
+ # @return [Array<Google::Apis::ContentV2_1::Warehouse>]
14825
+ attr_accessor :warehouses
14826
+
14704
14827
  def initialize(**args)
14705
14828
  update!(**args)
14706
14829
  end
@@ -14710,6 +14833,7 @@ module Google
14710
14833
  @account_id = args[:account_id] if args.key?(:account_id)
14711
14834
  @postal_code_groups = args[:postal_code_groups] if args.key?(:postal_code_groups)
14712
14835
  @services = args[:services] if args.key?(:services)
14836
+ @warehouses = args[:warehouses] if args.key?(:warehouses)
14713
14837
  end
14714
14838
  end
14715
14839
 
@@ -15468,6 +15592,31 @@ module Google
15468
15592
  end
15469
15593
  end
15470
15594
 
15595
+ # A message that represents a time period.
15596
+ class TimePeriod
15597
+ include Google::Apis::Core::Hashable
15598
+
15599
+ # The ending timestamp.
15600
+ # Corresponds to the JSON property `endTime`
15601
+ # @return [String]
15602
+ attr_accessor :end_time
15603
+
15604
+ # The starting timestamp.
15605
+ # Corresponds to the JSON property `startTime`
15606
+ # @return [String]
15607
+ attr_accessor :start_time
15608
+
15609
+ def initialize(**args)
15610
+ update!(**args)
15611
+ end
15612
+
15613
+ # Update properties of this object
15614
+ def update!(**args)
15615
+ @end_time = args[:end_time] if args.key?(:end_time)
15616
+ @start_time = args[:start_time] if args.key?(:start_time)
15617
+ end
15618
+ end
15619
+
15471
15620
  # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/
15472
15621
  # time-zones).
15473
15622
  class TimeZone
@@ -15769,6 +15918,54 @@ module Google
15769
15918
  end
15770
15919
  end
15771
15920
 
15921
+ # A fulfillment warehouse, which stores and handles inventory.
15922
+ class Warehouse
15923
+ include Google::Apis::Core::Hashable
15924
+
15925
+ # Business days of the warehouse. If not set, will be Monday to Friday by
15926
+ # default.
15927
+ # Corresponds to the JSON property `businessDayConfig`
15928
+ # @return [Google::Apis::ContentV2_1::BusinessDayConfig]
15929
+ attr_accessor :business_day_config
15930
+
15931
+ # Required. The latest time of day that an order can be accepted and begin
15932
+ # processing. Later orders will be processed in the next day. The time is based
15933
+ # on the warehouse postal code.
15934
+ # Corresponds to the JSON property `cutoffTime`
15935
+ # @return [Google::Apis::ContentV2_1::WarehouseCutoffTime]
15936
+ attr_accessor :cutoff_time
15937
+
15938
+ # Required. The number of days it takes for this warehouse to pack up and ship
15939
+ # an item. This is on the warehouse level, but can be overridden on the offer
15940
+ # level based on the attributes of an item.
15941
+ # Corresponds to the JSON property `handlingDays`
15942
+ # @return [Fixnum]
15943
+ attr_accessor :handling_days
15944
+
15945
+ # Required. The name of the warehouse. Must be unique within account.
15946
+ # Corresponds to the JSON property `name`
15947
+ # @return [String]
15948
+ attr_accessor :name
15949
+
15950
+ # Required. Shipping address of the warehouse.
15951
+ # Corresponds to the JSON property `shippingAddress`
15952
+ # @return [Google::Apis::ContentV2_1::Address]
15953
+ attr_accessor :shipping_address
15954
+
15955
+ def initialize(**args)
15956
+ update!(**args)
15957
+ end
15958
+
15959
+ # Update properties of this object
15960
+ def update!(**args)
15961
+ @business_day_config = args[:business_day_config] if args.key?(:business_day_config)
15962
+ @cutoff_time = args[:cutoff_time] if args.key?(:cutoff_time)
15963
+ @handling_days = args[:handling_days] if args.key?(:handling_days)
15964
+ @name = args[:name] if args.key?(:name)
15965
+ @shipping_address = args[:shipping_address] if args.key?(:shipping_address)
15966
+ end
15967
+ end
15968
+
15772
15969
  #
15773
15970
  class WarehouseBasedDeliveryTime
15774
15971
  include Google::Apis::Core::Hashable
@@ -15787,23 +15984,23 @@ module Google
15787
15984
  # @return [String]
15788
15985
  attr_accessor :carrier_service
15789
15986
 
15790
- # Required. Shipping origin's state.
15987
+ # Shipping origin's state.
15791
15988
  # Corresponds to the JSON property `originAdministrativeArea`
15792
15989
  # @return [String]
15793
15990
  attr_accessor :origin_administrative_area
15794
15991
 
15795
- # Required. Shipping origin's city.
15992
+ # Shipping origin's city.
15796
15993
  # Corresponds to the JSON property `originCity`
15797
15994
  # @return [String]
15798
15995
  attr_accessor :origin_city
15799
15996
 
15800
- # Required. Shipping origin's country represented as a [CLDR territory code](
15801
- # http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml).
15997
+ # Shipping origin's country represented as a [CLDR territory code](http://www.
15998
+ # unicode.org/repos/cldr/tags/latest/common/main/en.xml).
15802
15999
  # Corresponds to the JSON property `originCountry`
15803
16000
  # @return [String]
15804
16001
  attr_accessor :origin_country
15805
16002
 
15806
- # Required. Shipping origin.
16003
+ # Shipping origin.
15807
16004
  # Corresponds to the JSON property `originPostalCode`
15808
16005
  # @return [String]
15809
16006
  attr_accessor :origin_postal_code
@@ -15813,6 +16010,13 @@ module Google
15813
16010
  # @return [String]
15814
16011
  attr_accessor :origin_street_address
15815
16012
 
16013
+ # The name of the warehouse. Warehouse name need to be matched with name. If
16014
+ # warehouseName is set, the below fields will be ignored. The warehouse info
16015
+ # will be read from warehouse.
16016
+ # Corresponds to the JSON property `warehouseName`
16017
+ # @return [String]
16018
+ attr_accessor :warehouse_name
16019
+
15816
16020
  def initialize(**args)
15817
16021
  update!(**args)
15818
16022
  end
@@ -15826,6 +16030,36 @@ module Google
15826
16030
  @origin_country = args[:origin_country] if args.key?(:origin_country)
15827
16031
  @origin_postal_code = args[:origin_postal_code] if args.key?(:origin_postal_code)
15828
16032
  @origin_street_address = args[:origin_street_address] if args.key?(:origin_street_address)
16033
+ @warehouse_name = args[:warehouse_name] if args.key?(:warehouse_name)
16034
+ end
16035
+ end
16036
+
16037
+ #
16038
+ class WarehouseCutoffTime
16039
+ include Google::Apis::Core::Hashable
16040
+
16041
+ # Required. Hour (24-hour clock) of the cutoff time until which an order has to
16042
+ # be placed to be processed in the same day by the warehouse. Hour is based on
16043
+ # the timezone of warehouse.
16044
+ # Corresponds to the JSON property `hour`
16045
+ # @return [Fixnum]
16046
+ attr_accessor :hour
16047
+
16048
+ # Required. Minute of the cutoff time until which an order has to be placed to
16049
+ # be processed in the same day by the warehouse. Minute is based on the timezone
16050
+ # of warehouse.
16051
+ # Corresponds to the JSON property `minute`
16052
+ # @return [Fixnum]
16053
+ attr_accessor :minute
16054
+
16055
+ def initialize(**args)
16056
+ update!(**args)
16057
+ end
16058
+
16059
+ # Update properties of this object
16060
+ def update!(**args)
16061
+ @hour = args[:hour] if args.key?(:hour)
16062
+ @minute = args[:minute] if args.key?(:minute)
15829
16063
  end
15830
16064
  end
15831
16065
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContentV2_1
18
18
  # Version of the google-apis-content_v2_1 gem
19
- GEM_VERSION = "0.22.0"
19
+ GEM_VERSION = "0.26.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210917"
25
+ REVISION = "20211027"
26
26
  end
27
27
  end
28
28
  end
@@ -280,6 +280,12 @@ module Google
280
280
  include Google::Apis::Core::JsonObjectSupport
281
281
  end
282
282
 
283
+ class Address
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
283
289
  class Amount
284
290
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
291
 
@@ -2236,6 +2242,12 @@ module Google
2236
2242
  include Google::Apis::Core::JsonObjectSupport
2237
2243
  end
2238
2244
 
2245
+ class TimePeriod
2246
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2247
+
2248
+ include Google::Apis::Core::JsonObjectSupport
2249
+ end
2250
+
2239
2251
  class TimeZone
2240
2252
  class Representation < Google::Apis::Core::JsonRepresentation; end
2241
2253
 
@@ -2296,12 +2308,24 @@ module Google
2296
2308
  include Google::Apis::Core::JsonObjectSupport
2297
2309
  end
2298
2310
 
2311
+ class Warehouse
2312
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2313
+
2314
+ include Google::Apis::Core::JsonObjectSupport
2315
+ end
2316
+
2299
2317
  class WarehouseBasedDeliveryTime
2300
2318
  class Representation < Google::Apis::Core::JsonRepresentation; end
2301
2319
 
2302
2320
  include Google::Apis::Core::JsonObjectSupport
2303
2321
  end
2304
2322
 
2323
+ class WarehouseCutoffTime
2324
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2325
+
2326
+ include Google::Apis::Core::JsonObjectSupport
2327
+ end
2328
+
2305
2329
  class Weight
2306
2330
  class Representation < Google::Apis::Core::JsonRepresentation; end
2307
2331
 
@@ -2362,6 +2386,7 @@ module Google
2362
2386
 
2363
2387
  property :korean_business_registration_number, as: 'koreanBusinessRegistrationNumber'
2364
2388
  property :phone_number, as: 'phoneNumber'
2389
+ property :phone_verification_status, as: 'phoneVerificationStatus'
2365
2390
  end
2366
2391
  end
2367
2392
 
@@ -2759,6 +2784,17 @@ module Google
2759
2784
  end
2760
2785
  end
2761
2786
 
2787
+ class Address
2788
+ # @private
2789
+ class Representation < Google::Apis::Core::JsonRepresentation
2790
+ property :administrative_area, as: 'administrativeArea'
2791
+ property :city, as: 'city'
2792
+ property :country, as: 'country'
2793
+ property :postal_code, as: 'postalCode'
2794
+ property :street_address, as: 'streetAddress'
2795
+ end
2796
+ end
2797
+
2762
2798
  class Amount
2763
2799
  # @private
2764
2800
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4172,11 +4208,16 @@ module Google
4172
4208
  class OrderTrackingSignalLineItemDetails
4173
4209
  # @private
4174
4210
  class Representation < Google::Apis::Core::JsonRepresentation
4211
+ property :brand, as: 'brand'
4175
4212
  property :gtin, as: 'gtin'
4176
4213
  property :line_item_id, as: 'lineItemId'
4177
4214
  property :mpn, as: 'mpn'
4215
+ property :product_description, as: 'productDescription'
4178
4216
  property :product_id, as: 'productId'
4217
+ property :product_title, as: 'productTitle'
4179
4218
  property :quantity, :numeric_string => true, as: 'quantity'
4219
+ property :sku, as: 'sku'
4220
+ property :upc, as: 'upc'
4180
4221
  end
4181
4222
  end
4182
4223
 
@@ -5446,9 +5487,15 @@ module Google
5446
5487
  property :order_limit, as: 'orderLimit'
5447
5488
  property :percent_off, as: 'percentOff'
5448
5489
  property :product_applicability, as: 'productApplicability'
5490
+ collection :product_type, as: 'productType'
5491
+ collection :product_type_exclusion, as: 'productTypeExclusion'
5449
5492
  collection :promotion_destination_ids, as: 'promotionDestinationIds'
5450
5493
  property :promotion_display_dates, as: 'promotionDisplayDates'
5494
+ property :promotion_display_time_period, as: 'promotionDisplayTimePeriod', class: Google::Apis::ContentV2_1::TimePeriod, decorator: Google::Apis::ContentV2_1::TimePeriod::Representation
5495
+
5451
5496
  property :promotion_effective_dates, as: 'promotionEffectiveDates'
5497
+ property :promotion_effective_time_period, as: 'promotionEffectiveTimePeriod', class: Google::Apis::ContentV2_1::TimePeriod, decorator: Google::Apis::ContentV2_1::TimePeriod::Representation
5498
+
5452
5499
  property :promotion_id, as: 'promotionId'
5453
5500
  collection :redemption_channel, as: 'redemptionChannel'
5454
5501
  collection :shipping_service_names, as: 'shippingServiceNames'
@@ -6242,6 +6289,8 @@ module Google
6242
6289
 
6243
6290
  collection :services, as: 'services', class: Google::Apis::ContentV2_1::Service, decorator: Google::Apis::ContentV2_1::Service::Representation
6244
6291
 
6292
+ collection :warehouses, as: 'warehouses', class: Google::Apis::ContentV2_1::Warehouse, decorator: Google::Apis::ContentV2_1::Warehouse::Representation
6293
+
6245
6294
  end
6246
6295
  end
6247
6296
 
@@ -6460,6 +6509,14 @@ module Google
6460
6509
  end
6461
6510
  end
6462
6511
 
6512
+ class TimePeriod
6513
+ # @private
6514
+ class Representation < Google::Apis::Core::JsonRepresentation
6515
+ property :end_time, as: 'endTime'
6516
+ property :start_time, as: 'startTime'
6517
+ end
6518
+ end
6519
+
6463
6520
  class TimeZone
6464
6521
  # @private
6465
6522
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6553,6 +6610,20 @@ module Google
6553
6610
  end
6554
6611
  end
6555
6612
 
6613
+ class Warehouse
6614
+ # @private
6615
+ class Representation < Google::Apis::Core::JsonRepresentation
6616
+ property :business_day_config, as: 'businessDayConfig', class: Google::Apis::ContentV2_1::BusinessDayConfig, decorator: Google::Apis::ContentV2_1::BusinessDayConfig::Representation
6617
+
6618
+ property :cutoff_time, as: 'cutoffTime', class: Google::Apis::ContentV2_1::WarehouseCutoffTime, decorator: Google::Apis::ContentV2_1::WarehouseCutoffTime::Representation
6619
+
6620
+ property :handling_days, :numeric_string => true, as: 'handlingDays'
6621
+ property :name, as: 'name'
6622
+ property :shipping_address, as: 'shippingAddress', class: Google::Apis::ContentV2_1::Address, decorator: Google::Apis::ContentV2_1::Address::Representation
6623
+
6624
+ end
6625
+ end
6626
+
6556
6627
  class WarehouseBasedDeliveryTime
6557
6628
  # @private
6558
6629
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6563,6 +6634,15 @@ module Google
6563
6634
  property :origin_country, as: 'originCountry'
6564
6635
  property :origin_postal_code, as: 'originPostalCode'
6565
6636
  property :origin_street_address, as: 'originStreetAddress'
6637
+ property :warehouse_name, as: 'warehouseName'
6638
+ end
6639
+ end
6640
+
6641
+ class WarehouseCutoffTime
6642
+ # @private
6643
+ class Representation < Google::Apis::Core::JsonRepresentation
6644
+ property :hour, as: 'hour'
6645
+ property :minute, as: 'minute'
6566
6646
  end
6567
6647
  end
6568
6648
 
@@ -4517,6 +4517,39 @@ module Google
4517
4517
  execute_or_queue_command(command, &block)
4518
4518
  end
4519
4519
 
4520
+ # Retrieves a promotion from your Merchant Center account.
4521
+ # @param [Fixnum] merchant_id
4522
+ # Required. The ID of the account that contains the collection.
4523
+ # @param [String] id
4524
+ # Required. REST ID of the promotion to retrieve.
4525
+ # @param [String] fields
4526
+ # Selector specifying which fields to include in a partial response.
4527
+ # @param [String] quota_user
4528
+ # Available to use for quota purposes for server-side applications. Can be any
4529
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4530
+ # @param [Google::Apis::RequestOptions] options
4531
+ # Request-specific options
4532
+ #
4533
+ # @yield [result, err] Result & error if block supplied
4534
+ # @yieldparam result [Google::Apis::ContentV2_1::Promotion] parsed result object
4535
+ # @yieldparam err [StandardError] error object if request failed
4536
+ #
4537
+ # @return [Google::Apis::ContentV2_1::Promotion]
4538
+ #
4539
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4540
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4541
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4542
+ def get_promotion(merchant_id, id, fields: nil, quota_user: nil, options: nil, &block)
4543
+ command = make_simple_command(:get, '{merchantId}/promotions/{id}', options)
4544
+ command.response_representation = Google::Apis::ContentV2_1::Promotion::Representation
4545
+ command.response_class = Google::Apis::ContentV2_1::Promotion
4546
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
4547
+ command.params['id'] = id unless id.nil?
4548
+ command.query['fields'] = fields unless fields.nil?
4549
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4550
+ execute_or_queue_command(command, &block)
4551
+ end
4552
+
4520
4553
  # Retrieves a Merchant Center account's pubsub notification settings.
4521
4554
  # @param [Fixnum] merchant_id
4522
4555
  # The ID of the account for which to get pubsub notification settings.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-content_v2_1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.0
4
+ version: 0.26.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-22 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.22.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-content_v2_1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.26.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-content_v2_1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths: