google-apis-content_v2_1 0.23.0 → 0.27.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: 33d56572d161166b714729b294c8054425015614066467ba2c88958b2f91d96b
4
- data.tar.gz: c2133d87709ac18bd70872af78f224bf5b868a83682edc859fed07840f166f82
3
+ metadata.gz: 3289c543ff4a0d3fa4757856b953befb68cb38f280fe52f6597932fe31c36be1
4
+ data.tar.gz: 48e70011a0e112f38990a47ce70bf3a4437fd97554820b5f432973c53dd937cd
5
5
  SHA512:
6
- metadata.gz: 064752f7b0bb8f84d4c2dd556c5a3c5573d8ab8cafa63273c27cf6b159fb309472daa05b090733b7c8ae06d272dff36e87c3f20bf27065708c44fce8321db541
7
- data.tar.gz: e279297c82f013d33b7c24e19e26c9b4a2ec4826349923a7ad87fda3f930222a93457c7f8ab0ca9611f25660bfc1e871bf1a8cb5a7d1de15e75ba7f820cd86c8
6
+ metadata.gz: 51e5ad02fe958f9e1a62ece494f15db24ec80e3edbde3e9ad932710853491831a1a7e16df45b3c9747616b393f704ab8e7cf44305c171a288916c6616952995e
7
+ data.tar.gz: 5e72ceda1eaef4f28a01a8faf9a3ea216ef4946ba44163b6bd707bcdaaa226793f1c61b9a0845c623d0f47f7608fe24b92ae1846dbf8cdbf1b0b2d0f8a5c8485
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-content_v2_1
2
2
 
3
+ ### v0.27.0 (2021-12-01)
4
+
5
+ * Regenerated from discovery document revision 20211126
6
+
7
+ ### v0.26.0 (2021-11-02)
8
+
9
+ * Regenerated from discovery document revision 20211027
10
+
11
+ ### v0.25.0 (2021-10-26)
12
+
13
+ * Regenerated from discovery document revision 20211021
14
+
15
+ ### v0.24.0 (2021-10-12)
16
+
17
+ * Regenerated from discovery document revision 20211007
18
+
3
19
  ### v0.23.0 (2021-09-28)
4
20
 
5
21
  * Regenerated from discovery document revision 20210924
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
 
@@ -64,8 +64,8 @@ module Google
64
64
  # @return [Fixnum]
65
65
  attr_accessor :css_id
66
66
 
67
- # The GMB account which is linked or in the process of being linked with the
68
- # Merchant Center account.
67
+ # The Business Profile which is linked or in the process of being linked with
68
+ # the Merchant Center account.
69
69
  # Corresponds to the JSON property `googleMyBusinessLink`
70
70
  # @return [Google::Apis::ContentV2_1::AccountGoogleMyBusinessLink]
71
71
  attr_accessor :google_my_business_link
@@ -242,13 +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. This can only be updated if a verified !
246
- # phone number is not already set. To replace a verified phone number use ! the `
247
- # Accounts.requestphoneverification` and ! `Accounts.verifyphonenumber`.
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`.
248
248
  # Corresponds to the JSON property `phoneNumber`
249
249
  # @return [String]
250
250
  attr_accessor :phone_number
251
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
+
252
259
  def initialize(**args)
253
260
  update!(**args)
254
261
  end
@@ -259,6 +266,7 @@ module Google
259
266
  @customer_service = args[:customer_service] if args.key?(:customer_service)
260
267
  @korean_business_registration_number = args[:korean_business_registration_number] if args.key?(:korean_business_registration_number)
261
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)
262
270
  end
263
271
  end
264
272
 
@@ -329,21 +337,22 @@ module Google
329
337
  class AccountGoogleMyBusinessLink
330
338
  include Google::Apis::Core::Hashable
331
339
 
332
- # The ID of the GMB account. If this is provided, then `gmbEmail` is ignored.
333
- # The value of this field should match the `accountId` used by the GMB API.
340
+ # The ID of the Business Profile. If this is provided, then `gmbEmail` is
341
+ # ignored. The value of this field should match the `accountId` used by the
342
+ # Business Profile API.
334
343
  # Corresponds to the JSON property `gmbAccountId`
335
344
  # @return [String]
336
345
  attr_accessor :gmb_account_id
337
346
 
338
- # The GMB email address of which a specific account within a GMB account. A
339
- # sample account within a GMB account could be a business account with set of
340
- # locations, managed under the GMB account.
347
+ # The Business Profile email address of a specific account within a Business
348
+ # Profile. A sample account within a Business Profile could be a business
349
+ # account with set of locations, managed under the Business Profile.
341
350
  # Corresponds to the JSON property `gmbEmail`
342
351
  # @return [String]
343
352
  attr_accessor :gmb_email
344
353
 
345
- # Status of the link between this Merchant Center account and the GMB account.
346
- # Acceptable values are: - "`active`" - "`pending`"
354
+ # Status of the link between this Merchant Center account and the Business
355
+ # Profile. Acceptable values are: - "`active`" - "`pending`"
347
356
  # Corresponds to the JSON property `status`
348
357
  # @return [String]
349
358
  attr_accessor :status
@@ -1638,6 +1647,52 @@ module Google
1638
1647
  end
1639
1648
  end
1640
1649
 
1650
+ #
1651
+ class Address
1652
+ include Google::Apis::Core::Hashable
1653
+
1654
+ # Required. Top-level administrative subdivision of the country. For example, a
1655
+ # state like California ("CA") or a province like Quebec ("QC").
1656
+ # Corresponds to the JSON property `administrativeArea`
1657
+ # @return [String]
1658
+ attr_accessor :administrative_area
1659
+
1660
+ # Required. City, town or commune. May also include dependent localities or
1661
+ # sublocalities (e.g. neighborhoods or suburbs).
1662
+ # Corresponds to the JSON property `city`
1663
+ # @return [String]
1664
+ attr_accessor :city
1665
+
1666
+ # Required. [CLDR country code](http://www.unicode.org/repos/cldr/tags/latest/
1667
+ # common/main/en.xml) (e.g. "US").
1668
+ # Corresponds to the JSON property `country`
1669
+ # @return [String]
1670
+ attr_accessor :country
1671
+
1672
+ # Required. Postal code or ZIP (e.g. "94043").
1673
+ # Corresponds to the JSON property `postalCode`
1674
+ # @return [String]
1675
+ attr_accessor :postal_code
1676
+
1677
+ # Street-level part of the address.
1678
+ # Corresponds to the JSON property `streetAddress`
1679
+ # @return [String]
1680
+ attr_accessor :street_address
1681
+
1682
+ def initialize(**args)
1683
+ update!(**args)
1684
+ end
1685
+
1686
+ # Update properties of this object
1687
+ def update!(**args)
1688
+ @administrative_area = args[:administrative_area] if args.key?(:administrative_area)
1689
+ @city = args[:city] if args.key?(:city)
1690
+ @country = args[:country] if args.key?(:country)
1691
+ @postal_code = args[:postal_code] if args.key?(:postal_code)
1692
+ @street_address = args[:street_address] if args.key?(:street_address)
1693
+ end
1694
+ end
1695
+
1641
1696
  #
1642
1697
  class Amount
1643
1698
  include Google::Apis::Core::Hashable
@@ -3424,7 +3479,7 @@ module Google
3424
3479
  # @return [Fixnum]
3425
3480
  attr_accessor :account_id
3426
3481
 
3427
- # A list of GMB accounts which are available to the merchant.
3482
+ # A list of Business Profiles which are available to the merchant.
3428
3483
  # Corresponds to the JSON property `gmbAccounts`
3429
3484
  # @return [Array<Google::Apis::ContentV2_1::GmbAccountsGmbAccount>]
3430
3485
  attr_accessor :gmb_accounts
@@ -3444,7 +3499,7 @@ module Google
3444
3499
  class GmbAccountsGmbAccount
3445
3500
  include Google::Apis::Core::Hashable
3446
3501
 
3447
- # The email which identifies the GMB account.
3502
+ # The email which identifies the Business Profile.
3448
3503
  # Corresponds to the JSON property `email`
3449
3504
  # @return [String]
3450
3505
  attr_accessor :email
@@ -3454,12 +3509,12 @@ module Google
3454
3509
  # @return [Fixnum]
3455
3510
  attr_accessor :listing_count
3456
3511
 
3457
- # The name of the GMB account.
3512
+ # The name of the Business Profile.
3458
3513
  # Corresponds to the JSON property `name`
3459
3514
  # @return [String]
3460
3515
  attr_accessor :name
3461
3516
 
3462
- # The type of the GMB account (User or Business).
3517
+ # The type of the Business Profile (User or Business).
3463
3518
  # Corresponds to the JSON property `type`
3464
3519
  # @return [String]
3465
3520
  attr_accessor :type
@@ -4020,7 +4075,7 @@ module Google
4020
4075
  # @return [String]
4021
4076
  attr_accessor :country
4022
4077
 
4023
- # The GMB account. Required only for RequestGmbAccess.
4078
+ # The Business Profile. Required only for RequestGmbAccess.
4024
4079
  # Corresponds to the JSON property `gmbEmail`
4025
4080
  # @return [String]
4026
4081
  attr_accessor :gmb_email
@@ -4114,7 +4169,7 @@ module Google
4114
4169
  # @return [Google::Apis::ContentV2_1::Errors]
4115
4170
  attr_accessor :errors
4116
4171
 
4117
- # The list of accessible GMB accounts.
4172
+ # The list of accessible Business Profiles.
4118
4173
  # Corresponds to the JSON property `gmbAccounts`
4119
4174
  # @return [Google::Apis::ContentV2_1::GmbAccounts]
4120
4175
  attr_accessor :gmb_accounts
@@ -4160,7 +4215,7 @@ module Google
4160
4215
  # @return [Fixnum]
4161
4216
  attr_accessor :account_id
4162
4217
 
4163
- # A list of GMB accounts which are available to the merchant.
4218
+ # A list of Business Profiles which are available to the merchant.
4164
4219
  # Corresponds to the JSON property `gmbAccounts`
4165
4220
  # @return [Array<Google::Apis::ContentV2_1::GmbAccountsGmbAccount>]
4166
4221
  attr_accessor :gmb_accounts
@@ -6898,6 +6953,11 @@ module Google
6898
6953
  class OrderTrackingSignalLineItemDetails
6899
6954
  include Google::Apis::Core::Hashable
6900
6955
 
6956
+ # Brand of the product.
6957
+ # Corresponds to the JSON property `brand`
6958
+ # @return [String]
6959
+ attr_accessor :brand
6960
+
6901
6961
  # The Global Trade Item Number.
6902
6962
  # Corresponds to the JSON property `gtin`
6903
6963
  # @return [String]
@@ -6913,28 +6973,54 @@ module Google
6913
6973
  # @return [String]
6914
6974
  attr_accessor :mpn
6915
6975
 
6976
+ # Plain text description of this product (deprecated: Please use product_title
6977
+ # instead).
6978
+ # Corresponds to the JSON property `productDescription`
6979
+ # @return [String]
6980
+ attr_accessor :product_description
6981
+
6916
6982
  # Required. The Content API REST ID of the product, in the form channel:
6917
6983
  # contentLanguage:targetCountry:offerId.
6918
6984
  # Corresponds to the JSON property `productId`
6919
6985
  # @return [String]
6920
6986
  attr_accessor :product_id
6921
6987
 
6922
- # Required. The quantity of the line item in the order.
6988
+ # Plain text title of this product.
6989
+ # Corresponds to the JSON property `productTitle`
6990
+ # @return [String]
6991
+ attr_accessor :product_title
6992
+
6993
+ # The quantity of the line item in the order.
6923
6994
  # Corresponds to the JSON property `quantity`
6924
6995
  # @return [Fixnum]
6925
6996
  attr_accessor :quantity
6926
6997
 
6998
+ # Merchant SKU for this item (deprecated).
6999
+ # Corresponds to the JSON property `sku`
7000
+ # @return [String]
7001
+ attr_accessor :sku
7002
+
7003
+ # Universal product code for this item (deprecated: Please use GTIN instead).
7004
+ # Corresponds to the JSON property `upc`
7005
+ # @return [String]
7006
+ attr_accessor :upc
7007
+
6927
7008
  def initialize(**args)
6928
7009
  update!(**args)
6929
7010
  end
6930
7011
 
6931
7012
  # Update properties of this object
6932
7013
  def update!(**args)
7014
+ @brand = args[:brand] if args.key?(:brand)
6933
7015
  @gtin = args[:gtin] if args.key?(:gtin)
6934
7016
  @line_item_id = args[:line_item_id] if args.key?(:line_item_id)
6935
7017
  @mpn = args[:mpn] if args.key?(:mpn)
7018
+ @product_description = args[:product_description] if args.key?(:product_description)
6936
7019
  @product_id = args[:product_id] if args.key?(:product_id)
7020
+ @product_title = args[:product_title] if args.key?(:product_title)
6937
7021
  @quantity = args[:quantity] if args.key?(:quantity)
7022
+ @sku = args[:sku] if args.key?(:sku)
7023
+ @upc = args[:upc] if args.key?(:upc)
6938
7024
  end
6939
7025
  end
6940
7026
 
@@ -6948,7 +7034,7 @@ module Google
6948
7034
  # @return [String]
6949
7035
  attr_accessor :line_item_id
6950
7036
 
6951
- # Required. The line item quantity in the shipment.
7037
+ # The line item quantity in the shipment.
6952
7038
  # Corresponds to the JSON property `quantity`
6953
7039
  # @return [Fixnum]
6954
7040
  attr_accessor :quantity
@@ -9512,7 +9598,7 @@ module Google
9512
9598
  attr_accessor :quantity
9513
9599
 
9514
9600
  # Required. The identifier of the merchant's store. Either a `storeCode`
9515
- # inserted via the API or the code of the store in Google My Business.
9601
+ # inserted via the API or the code of the store in a Business Profile.
9516
9602
  # Corresponds to the JSON property `storeCode`
9517
9603
  # @return [String]
9518
9604
  attr_accessor :store_code
@@ -9575,7 +9661,7 @@ module Google
9575
9661
  attr_accessor :quantity
9576
9662
 
9577
9663
  # Required. The identifier of the merchant's store. Either a `storeCode`
9578
- # inserted via the API or the code of the store in Google My Business.
9664
+ # inserted via the API or the code of the store in a Business Profile.
9579
9665
  # Corresponds to the JSON property `storeCode`
9580
9666
  # @return [String]
9581
9667
  attr_accessor :store_code
@@ -9643,7 +9729,7 @@ module Google
9643
9729
  attr_accessor :quantity
9644
9730
 
9645
9731
  # Required. The identifier of the merchant's store. Either a `storeCode`
9646
- # inserted via the API or the code of the store in Google My Business.
9732
+ # inserted via the API or the code of the store in a Business Profile.
9647
9733
  # Corresponds to the JSON property `storeCode`
9648
9734
  # @return [String]
9649
9735
  attr_accessor :store_code
@@ -9744,7 +9830,7 @@ module Google
9744
9830
  attr_accessor :sale_id
9745
9831
 
9746
9832
  # Required. The identifier of the merchant's store. Either a `storeCode`
9747
- # inserted via the API or the code of the store in Google My Business.
9833
+ # inserted via the API or the code of the store in a Business Profile.
9748
9834
  # Corresponds to the JSON property `storeCode`
9749
9835
  # @return [String]
9750
9836
  attr_accessor :store_code
@@ -9814,7 +9900,7 @@ module Google
9814
9900
  attr_accessor :sale_id
9815
9901
 
9816
9902
  # Required. The identifier of the merchant's store. Either a `storeCode`
9817
- # inserted via the API or the code of the store in Google My Business.
9903
+ # inserted via the API or the code of the store in a Business Profile.
9818
9904
  # Corresponds to the JSON property `storeCode`
9819
9905
  # @return [String]
9820
9906
  attr_accessor :store_code
@@ -9889,7 +9975,7 @@ module Google
9889
9975
  attr_accessor :sale_id
9890
9976
 
9891
9977
  # Required. The identifier of the merchant's store. Either a `storeCode`
9892
- # inserted via the API or the code of the store in Google My Business.
9978
+ # inserted via the API or the code of the store in a Business Profile.
9893
9979
  # Corresponds to the JSON property `storeCode`
9894
9980
  # @return [String]
9895
9981
  attr_accessor :store_code
@@ -11592,9 +11678,14 @@ module Google
11592
11678
  end
11593
11679
  end
11594
11680
 
11595
- # Represents a promotion. (1) https://support.google.com/merchants/answer/
11596
- # 2906014 (2) https://support.google.com/merchants/answer/10146130 (3) https://
11597
- # support.google.com/merchants/answer/9173673
11681
+ # The Promotions feature is currently in alpha and is not yet publicly
11682
+ # available via Content API for Shopping. This documentation is provided for
11683
+ # reference only may be subject to change. Represents a promotion. See the
11684
+ # following articles for more details. * [Promotions feed specification](https://
11685
+ # support.google.com/merchants/answer/2906014) * [Local promotions feed
11686
+ # specification](https://support.google.com/merchants/answer/10146130) * [
11687
+ # Promotions on Buy on Google product data specification](https://support.google.
11688
+ # com/merchants/answer/9173673)
11598
11689
  class Promotion
11599
11690
  include Google::Apis::Core::Hashable
11600
11691
 
@@ -11645,7 +11736,9 @@ module Google
11645
11736
 
11646
11737
  # Required. Output only. The REST promotion id to uniquely identify the
11647
11738
  # promotion. Content API methods that operate on promotions take this as their
11648
- # promotionId parameter.
11739
+ # promotionId parameter. The REST ID for a promotion is of the form channel:
11740
+ # contentLanguage:targetCountry:promotionId The channel field will have a value
11741
+ # of "online", "in_store", or "online_in_store".
11649
11742
  # Corresponds to the JSON property `id`
11650
11743
  # @return [String]
11651
11744
  attr_accessor :id
@@ -11746,11 +11839,21 @@ module Google
11746
11839
  # @return [String]
11747
11840
  attr_accessor :promotion_display_dates
11748
11841
 
11842
+ # A message that represents a time period.
11843
+ # Corresponds to the JSON property `promotionDisplayTimePeriod`
11844
+ # @return [Google::Apis::ContentV2_1::TimePeriod]
11845
+ attr_accessor :promotion_display_time_period
11846
+
11749
11847
  # Required. String representation of the promotion effective dates.
11750
11848
  # Corresponds to the JSON property `promotionEffectiveDates`
11751
11849
  # @return [String]
11752
11850
  attr_accessor :promotion_effective_dates
11753
11851
 
11852
+ # A message that represents a time period.
11853
+ # Corresponds to the JSON property `promotionEffectiveTimePeriod`
11854
+ # @return [Google::Apis::ContentV2_1::TimePeriod]
11855
+ attr_accessor :promotion_effective_time_period
11856
+
11754
11857
  # Required. The user provided promotion id to uniquely identify the promotion.
11755
11858
  # Corresponds to the JSON property `promotionId`
11756
11859
  # @return [String]
@@ -11807,7 +11910,9 @@ module Google
11807
11910
  @product_type_exclusion = args[:product_type_exclusion] if args.key?(:product_type_exclusion)
11808
11911
  @promotion_destination_ids = args[:promotion_destination_ids] if args.key?(:promotion_destination_ids)
11809
11912
  @promotion_display_dates = args[:promotion_display_dates] if args.key?(:promotion_display_dates)
11913
+ @promotion_display_time_period = args[:promotion_display_time_period] if args.key?(:promotion_display_time_period)
11810
11914
  @promotion_effective_dates = args[:promotion_effective_dates] if args.key?(:promotion_effective_dates)
11915
+ @promotion_effective_time_period = args[:promotion_effective_time_period] if args.key?(:promotion_effective_time_period)
11811
11916
  @promotion_id = args[:promotion_id] if args.key?(:promotion_id)
11812
11917
  @redemption_channel = args[:redemption_channel] if args.key?(:redemption_channel)
11813
11918
  @shipping_service_names = args[:shipping_service_names] if args.key?(:shipping_service_names)
@@ -14715,6 +14820,11 @@ module Google
14715
14820
  # @return [Array<Google::Apis::ContentV2_1::Service>]
14716
14821
  attr_accessor :services
14717
14822
 
14823
+ # Optional. A list of warehouses which can be referred to in `services`.
14824
+ # Corresponds to the JSON property `warehouses`
14825
+ # @return [Array<Google::Apis::ContentV2_1::Warehouse>]
14826
+ attr_accessor :warehouses
14827
+
14718
14828
  def initialize(**args)
14719
14829
  update!(**args)
14720
14830
  end
@@ -14724,6 +14834,7 @@ module Google
14724
14834
  @account_id = args[:account_id] if args.key?(:account_id)
14725
14835
  @postal_code_groups = args[:postal_code_groups] if args.key?(:postal_code_groups)
14726
14836
  @services = args[:services] if args.key?(:services)
14837
+ @warehouses = args[:warehouses] if args.key?(:warehouses)
14727
14838
  end
14728
14839
  end
14729
14840
 
@@ -15482,6 +15593,31 @@ module Google
15482
15593
  end
15483
15594
  end
15484
15595
 
15596
+ # A message that represents a time period.
15597
+ class TimePeriod
15598
+ include Google::Apis::Core::Hashable
15599
+
15600
+ # The ending timestamp.
15601
+ # Corresponds to the JSON property `endTime`
15602
+ # @return [String]
15603
+ attr_accessor :end_time
15604
+
15605
+ # The starting timestamp.
15606
+ # Corresponds to the JSON property `startTime`
15607
+ # @return [String]
15608
+ attr_accessor :start_time
15609
+
15610
+ def initialize(**args)
15611
+ update!(**args)
15612
+ end
15613
+
15614
+ # Update properties of this object
15615
+ def update!(**args)
15616
+ @end_time = args[:end_time] if args.key?(:end_time)
15617
+ @start_time = args[:start_time] if args.key?(:start_time)
15618
+ end
15619
+ end
15620
+
15485
15621
  # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/
15486
15622
  # time-zones).
15487
15623
  class TimeZone
@@ -15783,6 +15919,54 @@ module Google
15783
15919
  end
15784
15920
  end
15785
15921
 
15922
+ # A fulfillment warehouse, which stores and handles inventory.
15923
+ class Warehouse
15924
+ include Google::Apis::Core::Hashable
15925
+
15926
+ # Business days of the warehouse. If not set, will be Monday to Friday by
15927
+ # default.
15928
+ # Corresponds to the JSON property `businessDayConfig`
15929
+ # @return [Google::Apis::ContentV2_1::BusinessDayConfig]
15930
+ attr_accessor :business_day_config
15931
+
15932
+ # Required. The latest time of day that an order can be accepted and begin
15933
+ # processing. Later orders will be processed in the next day. The time is based
15934
+ # on the warehouse postal code.
15935
+ # Corresponds to the JSON property `cutoffTime`
15936
+ # @return [Google::Apis::ContentV2_1::WarehouseCutoffTime]
15937
+ attr_accessor :cutoff_time
15938
+
15939
+ # Required. The number of days it takes for this warehouse to pack up and ship
15940
+ # an item. This is on the warehouse level, but can be overridden on the offer
15941
+ # level based on the attributes of an item.
15942
+ # Corresponds to the JSON property `handlingDays`
15943
+ # @return [Fixnum]
15944
+ attr_accessor :handling_days
15945
+
15946
+ # Required. The name of the warehouse. Must be unique within account.
15947
+ # Corresponds to the JSON property `name`
15948
+ # @return [String]
15949
+ attr_accessor :name
15950
+
15951
+ # Required. Shipping address of the warehouse.
15952
+ # Corresponds to the JSON property `shippingAddress`
15953
+ # @return [Google::Apis::ContentV2_1::Address]
15954
+ attr_accessor :shipping_address
15955
+
15956
+ def initialize(**args)
15957
+ update!(**args)
15958
+ end
15959
+
15960
+ # Update properties of this object
15961
+ def update!(**args)
15962
+ @business_day_config = args[:business_day_config] if args.key?(:business_day_config)
15963
+ @cutoff_time = args[:cutoff_time] if args.key?(:cutoff_time)
15964
+ @handling_days = args[:handling_days] if args.key?(:handling_days)
15965
+ @name = args[:name] if args.key?(:name)
15966
+ @shipping_address = args[:shipping_address] if args.key?(:shipping_address)
15967
+ end
15968
+ end
15969
+
15786
15970
  #
15787
15971
  class WarehouseBasedDeliveryTime
15788
15972
  include Google::Apis::Core::Hashable
@@ -15801,23 +15985,23 @@ module Google
15801
15985
  # @return [String]
15802
15986
  attr_accessor :carrier_service
15803
15987
 
15804
- # Required. Shipping origin's state.
15988
+ # Shipping origin's state.
15805
15989
  # Corresponds to the JSON property `originAdministrativeArea`
15806
15990
  # @return [String]
15807
15991
  attr_accessor :origin_administrative_area
15808
15992
 
15809
- # Required. Shipping origin's city.
15993
+ # Shipping origin's city.
15810
15994
  # Corresponds to the JSON property `originCity`
15811
15995
  # @return [String]
15812
15996
  attr_accessor :origin_city
15813
15997
 
15814
- # Required. Shipping origin's country represented as a [CLDR territory code](
15815
- # http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml).
15998
+ # Shipping origin's country represented as a [CLDR territory code](http://www.
15999
+ # unicode.org/repos/cldr/tags/latest/common/main/en.xml).
15816
16000
  # Corresponds to the JSON property `originCountry`
15817
16001
  # @return [String]
15818
16002
  attr_accessor :origin_country
15819
16003
 
15820
- # Required. Shipping origin.
16004
+ # Shipping origin.
15821
16005
  # Corresponds to the JSON property `originPostalCode`
15822
16006
  # @return [String]
15823
16007
  attr_accessor :origin_postal_code
@@ -15827,6 +16011,13 @@ module Google
15827
16011
  # @return [String]
15828
16012
  attr_accessor :origin_street_address
15829
16013
 
16014
+ # The name of the warehouse. Warehouse name need to be matched with name. If
16015
+ # warehouseName is set, the below fields will be ignored. The warehouse info
16016
+ # will be read from warehouse.
16017
+ # Corresponds to the JSON property `warehouseName`
16018
+ # @return [String]
16019
+ attr_accessor :warehouse_name
16020
+
15830
16021
  def initialize(**args)
15831
16022
  update!(**args)
15832
16023
  end
@@ -15840,6 +16031,36 @@ module Google
15840
16031
  @origin_country = args[:origin_country] if args.key?(:origin_country)
15841
16032
  @origin_postal_code = args[:origin_postal_code] if args.key?(:origin_postal_code)
15842
16033
  @origin_street_address = args[:origin_street_address] if args.key?(:origin_street_address)
16034
+ @warehouse_name = args[:warehouse_name] if args.key?(:warehouse_name)
16035
+ end
16036
+ end
16037
+
16038
+ #
16039
+ class WarehouseCutoffTime
16040
+ include Google::Apis::Core::Hashable
16041
+
16042
+ # Required. Hour (24-hour clock) of the cutoff time until which an order has to
16043
+ # be placed to be processed in the same day by the warehouse. Hour is based on
16044
+ # the timezone of warehouse.
16045
+ # Corresponds to the JSON property `hour`
16046
+ # @return [Fixnum]
16047
+ attr_accessor :hour
16048
+
16049
+ # Required. Minute of the cutoff time until which an order has to be placed to
16050
+ # be processed in the same day by the warehouse. Minute is based on the timezone
16051
+ # of warehouse.
16052
+ # Corresponds to the JSON property `minute`
16053
+ # @return [Fixnum]
16054
+ attr_accessor :minute
16055
+
16056
+ def initialize(**args)
16057
+ update!(**args)
16058
+ end
16059
+
16060
+ # Update properties of this object
16061
+ def update!(**args)
16062
+ @hour = args[:hour] if args.key?(:hour)
16063
+ @minute = args[:minute] if args.key?(:minute)
15843
16064
  end
15844
16065
  end
15845
16066
 
@@ -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.23.0"
19
+ GEM_VERSION = "0.27.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 = "20210924"
25
+ REVISION = "20211126"
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
 
@@ -5450,7 +5491,11 @@ module Google
5450
5491
  collection :product_type_exclusion, as: 'productTypeExclusion'
5451
5492
  collection :promotion_destination_ids, as: 'promotionDestinationIds'
5452
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
+
5453
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
+
5454
5499
  property :promotion_id, as: 'promotionId'
5455
5500
  collection :redemption_channel, as: 'redemptionChannel'
5456
5501
  collection :shipping_service_names, as: 'shippingServiceNames'
@@ -6244,6 +6289,8 @@ module Google
6244
6289
 
6245
6290
  collection :services, as: 'services', class: Google::Apis::ContentV2_1::Service, decorator: Google::Apis::ContentV2_1::Service::Representation
6246
6291
 
6292
+ collection :warehouses, as: 'warehouses', class: Google::Apis::ContentV2_1::Warehouse, decorator: Google::Apis::ContentV2_1::Warehouse::Representation
6293
+
6247
6294
  end
6248
6295
  end
6249
6296
 
@@ -6462,6 +6509,14 @@ module Google
6462
6509
  end
6463
6510
  end
6464
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
+
6465
6520
  class TimeZone
6466
6521
  # @private
6467
6522
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6555,6 +6610,20 @@ module Google
6555
6610
  end
6556
6611
  end
6557
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
+
6558
6627
  class WarehouseBasedDeliveryTime
6559
6628
  # @private
6560
6629
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6565,6 +6634,15 @@ module Google
6565
6634
  property :origin_country, as: 'originCountry'
6566
6635
  property :origin_postal_code, as: 'originPostalCode'
6567
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'
6568
6646
  end
6569
6647
  end
6570
6648
 
@@ -2141,14 +2141,13 @@ module Google
2141
2141
  execute_or_queue_command(command, &block)
2142
2142
  end
2143
2143
 
2144
- # Retrieves the list of accessible Google My Business accounts.
2144
+ # Retrieves the list of accessible Business Profiles.
2145
2145
  # @param [Fixnum] merchant_id
2146
2146
  # The ID of the managing account. If this parameter is not the same as accountId,
2147
2147
  # then this account must be a multi-client account and `accountId` must be the
2148
2148
  # ID of a sub-account of this account.
2149
2149
  # @param [Fixnum] account_id
2150
- # The ID of the account for which to retrieve accessible Google My Business
2151
- # accounts.
2150
+ # The ID of the account for which to retrieve accessible Business Profiles.
2152
2151
  # @param [String] fields
2153
2152
  # Selector specifying which fields to include in a partial response.
2154
2153
  # @param [String] quota_user
@@ -2241,15 +2240,15 @@ module Google
2241
2240
  execute_or_queue_command(command, &block)
2242
2241
  end
2243
2242
 
2244
- # Requests access to a specified Google My Business account.
2243
+ # Requests access to a specified Business Profile.
2245
2244
  # @param [Fixnum] merchant_id
2246
2245
  # The ID of the managing account. If this parameter is not the same as accountId,
2247
2246
  # then this account must be a multi-client account and `accountId` must be the
2248
2247
  # ID of a sub-account of this account.
2249
2248
  # @param [Fixnum] account_id
2250
- # The ID of the account for which GMB access is requested.
2249
+ # The ID of the account for which Business Profile access is requested.
2251
2250
  # @param [String] gmb_email
2252
- # The email of the Google My Business account.
2251
+ # The email of the Business Profile.
2253
2252
  # @param [String] fields
2254
2253
  # Selector specifying which fields to include in a partial response.
2255
2254
  # @param [String] quota_user
@@ -2372,8 +2371,7 @@ module Google
2372
2371
  # then this account must be a multi-client account and `accountId` must be the
2373
2372
  # ID of a sub-account of this account.
2374
2373
  # @param [Fixnum] account_id
2375
- # The ID of the account for which to retrieve accessible Google My Business
2376
- # accounts.
2374
+ # The ID of the account for which to retrieve accessible Business Profiles.
2377
2375
  # @param [String] country
2378
2376
  # The country for which the POS data provider is selected.
2379
2377
  # @param [Fixnum] pos_data_provider_id
@@ -4517,6 +4515,39 @@ module Google
4517
4515
  execute_or_queue_command(command, &block)
4518
4516
  end
4519
4517
 
4518
+ # Retrieves a promotion from your Merchant Center account.
4519
+ # @param [Fixnum] merchant_id
4520
+ # Required. The ID of the account that contains the collection.
4521
+ # @param [String] id
4522
+ # Required. REST ID of the promotion to retrieve.
4523
+ # @param [String] fields
4524
+ # Selector specifying which fields to include in a partial response.
4525
+ # @param [String] quota_user
4526
+ # Available to use for quota purposes for server-side applications. Can be any
4527
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4528
+ # @param [Google::Apis::RequestOptions] options
4529
+ # Request-specific options
4530
+ #
4531
+ # @yield [result, err] Result & error if block supplied
4532
+ # @yieldparam result [Google::Apis::ContentV2_1::Promotion] parsed result object
4533
+ # @yieldparam err [StandardError] error object if request failed
4534
+ #
4535
+ # @return [Google::Apis::ContentV2_1::Promotion]
4536
+ #
4537
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4538
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4539
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4540
+ def get_promotion(merchant_id, id, fields: nil, quota_user: nil, options: nil, &block)
4541
+ command = make_simple_command(:get, '{merchantId}/promotions/{id}', options)
4542
+ command.response_representation = Google::Apis::ContentV2_1::Promotion::Representation
4543
+ command.response_class = Google::Apis::ContentV2_1::Promotion
4544
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
4545
+ command.params['id'] = id unless id.nil?
4546
+ command.query['fields'] = fields unless fields.nil?
4547
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4548
+ execute_or_queue_command(command, &block)
4549
+ end
4550
+
4520
4551
  # Retrieves a Merchant Center account's pubsub notification settings.
4521
4552
  # @param [Fixnum] merchant_id
4522
4553
  # 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.23.0
4
+ version: 0.27.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-10-04 00:00:00.000000000 Z
11
+ date: 2021-12-06 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.23.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.27.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: