google-apis-content_v2_1 0.23.0 → 0.24.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: e8e33a2662f79a68c8e517bae09150d13ff88a97b4733f5db251ba854bf51900
4
+ data.tar.gz: 44502926099d53ed6a59952be0f09c9800932ab6a87605fc5c77fb780e460078
5
5
  SHA512:
6
- metadata.gz: 064752f7b0bb8f84d4c2dd556c5a3c5573d8ab8cafa63273c27cf6b159fb309472daa05b090733b7c8ae06d272dff36e87c3f20bf27065708c44fce8321db541
7
- data.tar.gz: e279297c82f013d33b7c24e19e26c9b4a2ec4826349923a7ad87fda3f930222a93457c7f8ab0ca9611f25660bfc1e871bf1a8cb5a7d1de15e75ba7f820cd86c8
6
+ metadata.gz: 5a67cc46cbdc4514cf69a4b4570136aef3bf897101b5eed409639e81c13b382d7f51605684d5f963b0fb1c09e16bb05d4df59e9e0c1a0a00061141829a7a8251
7
+ data.tar.gz: e3c556618d916ae7c41ca700a4fea736f587daf07f66e4a2208ef4229df2a717687df855b81b3bfc687d12490de18b2676b12e44d9a22970b7814c3303d56872
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-content_v2_1
2
2
 
3
+ ### v0.24.0 (2021-10-12)
4
+
5
+ * Regenerated from discovery document revision 20211007
6
+
3
7
  ### v0.23.0 (2021-09-28)
4
8
 
5
9
  * Regenerated from discovery document revision 20210924
@@ -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`" "`unspecified`" -
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
 
@@ -1638,6 +1646,52 @@ module Google
1638
1646
  end
1639
1647
  end
1640
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
+
1641
1695
  #
1642
1696
  class Amount
1643
1697
  include Google::Apis::Core::Hashable
@@ -6913,6 +6967,11 @@ module Google
6913
6967
  # @return [String]
6914
6968
  attr_accessor :mpn
6915
6969
 
6970
+ # Plain text description of this product.
6971
+ # Corresponds to the JSON property `productDescription`
6972
+ # @return [String]
6973
+ attr_accessor :product_description
6974
+
6916
6975
  # Required. The Content API REST ID of the product, in the form channel:
6917
6976
  # contentLanguage:targetCountry:offerId.
6918
6977
  # Corresponds to the JSON property `productId`
@@ -6924,6 +6983,16 @@ module Google
6924
6983
  # @return [Fixnum]
6925
6984
  attr_accessor :quantity
6926
6985
 
6986
+ # Merchant SKU for this item.
6987
+ # Corresponds to the JSON property `sku`
6988
+ # @return [String]
6989
+ attr_accessor :sku
6990
+
6991
+ # Universal product code for this item.
6992
+ # Corresponds to the JSON property `upc`
6993
+ # @return [String]
6994
+ attr_accessor :upc
6995
+
6927
6996
  def initialize(**args)
6928
6997
  update!(**args)
6929
6998
  end
@@ -6933,8 +7002,11 @@ module Google
6933
7002
  @gtin = args[:gtin] if args.key?(:gtin)
6934
7003
  @line_item_id = args[:line_item_id] if args.key?(:line_item_id)
6935
7004
  @mpn = args[:mpn] if args.key?(:mpn)
7005
+ @product_description = args[:product_description] if args.key?(:product_description)
6936
7006
  @product_id = args[:product_id] if args.key?(:product_id)
6937
7007
  @quantity = args[:quantity] if args.key?(:quantity)
7008
+ @sku = args[:sku] if args.key?(:sku)
7009
+ @upc = args[:upc] if args.key?(:upc)
6938
7010
  end
6939
7011
  end
6940
7012
 
@@ -11592,9 +11664,14 @@ module Google
11592
11664
  end
11593
11665
  end
11594
11666
 
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
11667
+ # The Promotions feature is currently in alpha and is not yet publicly
11668
+ # available via Content API for Shopping. This documentation is provided for
11669
+ # reference only may be subject to change. Represents a promotion. See the
11670
+ # following articles for more details. * [Promotions feed specification](https://
11671
+ # support.google.com/merchants/answer/2906014) * [Local promotions feed
11672
+ # specification](https://support.google.com/merchants/answer/10146130) * [
11673
+ # Promotions on Buy on Google product data specification](https://support.google.
11674
+ # com/merchants/answer/9173673)
11598
11675
  class Promotion
11599
11676
  include Google::Apis::Core::Hashable
11600
11677
 
@@ -11645,7 +11722,9 @@ module Google
11645
11722
 
11646
11723
  # Required. Output only. The REST promotion id to uniquely identify the
11647
11724
  # promotion. Content API methods that operate on promotions take this as their
11648
- # promotionId parameter.
11725
+ # promotionId parameter. The REST ID for a promotion is of the form channel:
11726
+ # contentLanguage:targetCountry:promotionId The channel field will have a value
11727
+ # of "online", "local", or "onlinelocal".
11649
11728
  # Corresponds to the JSON property `id`
11650
11729
  # @return [String]
11651
11730
  attr_accessor :id
@@ -14715,6 +14794,11 @@ module Google
14715
14794
  # @return [Array<Google::Apis::ContentV2_1::Service>]
14716
14795
  attr_accessor :services
14717
14796
 
14797
+ # Optional. A list of warehouses which can be referred to in `services`.
14798
+ # Corresponds to the JSON property `warehouses`
14799
+ # @return [Array<Google::Apis::ContentV2_1::Warehouse>]
14800
+ attr_accessor :warehouses
14801
+
14718
14802
  def initialize(**args)
14719
14803
  update!(**args)
14720
14804
  end
@@ -14724,6 +14808,7 @@ module Google
14724
14808
  @account_id = args[:account_id] if args.key?(:account_id)
14725
14809
  @postal_code_groups = args[:postal_code_groups] if args.key?(:postal_code_groups)
14726
14810
  @services = args[:services] if args.key?(:services)
14811
+ @warehouses = args[:warehouses] if args.key?(:warehouses)
14727
14812
  end
14728
14813
  end
14729
14814
 
@@ -15783,6 +15868,54 @@ module Google
15783
15868
  end
15784
15869
  end
15785
15870
 
15871
+ # A fulfillment warehouse, which stores and handles inventory.
15872
+ class Warehouse
15873
+ include Google::Apis::Core::Hashable
15874
+
15875
+ # Business days of the warehouse. If not set, will be Monday to Friday by
15876
+ # default.
15877
+ # Corresponds to the JSON property `businessDayConfig`
15878
+ # @return [Google::Apis::ContentV2_1::BusinessDayConfig]
15879
+ attr_accessor :business_day_config
15880
+
15881
+ # Required. The latest time of day that an order can be accepted and begin
15882
+ # processing. Later orders will be processed in the next day. The time is based
15883
+ # on the warehouse postal code.
15884
+ # Corresponds to the JSON property `cutoffTime`
15885
+ # @return [Google::Apis::ContentV2_1::WarehouseCutoffTime]
15886
+ attr_accessor :cutoff_time
15887
+
15888
+ # Required. The number of days it takes for this warehouse to pack up and ship
15889
+ # an item. This is on the warehouse level, but can be overridden on the offer
15890
+ # level based on the attributes of an item.
15891
+ # Corresponds to the JSON property `handlingDays`
15892
+ # @return [Fixnum]
15893
+ attr_accessor :handling_days
15894
+
15895
+ # Required. The name of the warehouse. Must be unique within account.
15896
+ # Corresponds to the JSON property `name`
15897
+ # @return [String]
15898
+ attr_accessor :name
15899
+
15900
+ # Required. Shipping address of the warehouse.
15901
+ # Corresponds to the JSON property `shippingAddress`
15902
+ # @return [Google::Apis::ContentV2_1::Address]
15903
+ attr_accessor :shipping_address
15904
+
15905
+ def initialize(**args)
15906
+ update!(**args)
15907
+ end
15908
+
15909
+ # Update properties of this object
15910
+ def update!(**args)
15911
+ @business_day_config = args[:business_day_config] if args.key?(:business_day_config)
15912
+ @cutoff_time = args[:cutoff_time] if args.key?(:cutoff_time)
15913
+ @handling_days = args[:handling_days] if args.key?(:handling_days)
15914
+ @name = args[:name] if args.key?(:name)
15915
+ @shipping_address = args[:shipping_address] if args.key?(:shipping_address)
15916
+ end
15917
+ end
15918
+
15786
15919
  #
15787
15920
  class WarehouseBasedDeliveryTime
15788
15921
  include Google::Apis::Core::Hashable
@@ -15801,23 +15934,23 @@ module Google
15801
15934
  # @return [String]
15802
15935
  attr_accessor :carrier_service
15803
15936
 
15804
- # Required. Shipping origin's state.
15937
+ # Shipping origin's state.
15805
15938
  # Corresponds to the JSON property `originAdministrativeArea`
15806
15939
  # @return [String]
15807
15940
  attr_accessor :origin_administrative_area
15808
15941
 
15809
- # Required. Shipping origin's city.
15942
+ # Shipping origin's city.
15810
15943
  # Corresponds to the JSON property `originCity`
15811
15944
  # @return [String]
15812
15945
  attr_accessor :origin_city
15813
15946
 
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).
15947
+ # Shipping origin's country represented as a [CLDR territory code](http://www.
15948
+ # unicode.org/repos/cldr/tags/latest/common/main/en.xml).
15816
15949
  # Corresponds to the JSON property `originCountry`
15817
15950
  # @return [String]
15818
15951
  attr_accessor :origin_country
15819
15952
 
15820
- # Required. Shipping origin.
15953
+ # Shipping origin.
15821
15954
  # Corresponds to the JSON property `originPostalCode`
15822
15955
  # @return [String]
15823
15956
  attr_accessor :origin_postal_code
@@ -15827,6 +15960,13 @@ module Google
15827
15960
  # @return [String]
15828
15961
  attr_accessor :origin_street_address
15829
15962
 
15963
+ # The name of the warehouse. Warehouse name need to be matched with name. If
15964
+ # warehouseName is set, the below fields will be ignored. The warehouse info
15965
+ # will be read from warehouse.
15966
+ # Corresponds to the JSON property `warehouseName`
15967
+ # @return [String]
15968
+ attr_accessor :warehouse_name
15969
+
15830
15970
  def initialize(**args)
15831
15971
  update!(**args)
15832
15972
  end
@@ -15840,6 +15980,36 @@ module Google
15840
15980
  @origin_country = args[:origin_country] if args.key?(:origin_country)
15841
15981
  @origin_postal_code = args[:origin_postal_code] if args.key?(:origin_postal_code)
15842
15982
  @origin_street_address = args[:origin_street_address] if args.key?(:origin_street_address)
15983
+ @warehouse_name = args[:warehouse_name] if args.key?(:warehouse_name)
15984
+ end
15985
+ end
15986
+
15987
+ #
15988
+ class WarehouseCutoffTime
15989
+ include Google::Apis::Core::Hashable
15990
+
15991
+ # Required. Hour (24-hour clock) of the cutoff time until which an order has to
15992
+ # be placed to be processed in the same day by the warehouse. Hour is based on
15993
+ # the timezone of warehouse.
15994
+ # Corresponds to the JSON property `hour`
15995
+ # @return [Fixnum]
15996
+ attr_accessor :hour
15997
+
15998
+ # Required. Minute of the cutoff time until which an order has to be placed to
15999
+ # be processed in the same day by the warehouse. Minute is based on the timezone
16000
+ # of warehouse.
16001
+ # Corresponds to the JSON property `minute`
16002
+ # @return [Fixnum]
16003
+ attr_accessor :minute
16004
+
16005
+ def initialize(**args)
16006
+ update!(**args)
16007
+ end
16008
+
16009
+ # Update properties of this object
16010
+ def update!(**args)
16011
+ @hour = args[:hour] if args.key?(:hour)
16012
+ @minute = args[:minute] if args.key?(:minute)
15843
16013
  end
15844
16014
  end
15845
16015
 
@@ -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.24.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 = "20211007"
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
 
@@ -2296,12 +2302,24 @@ module Google
2296
2302
  include Google::Apis::Core::JsonObjectSupport
2297
2303
  end
2298
2304
 
2305
+ class Warehouse
2306
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2307
+
2308
+ include Google::Apis::Core::JsonObjectSupport
2309
+ end
2310
+
2299
2311
  class WarehouseBasedDeliveryTime
2300
2312
  class Representation < Google::Apis::Core::JsonRepresentation; end
2301
2313
 
2302
2314
  include Google::Apis::Core::JsonObjectSupport
2303
2315
  end
2304
2316
 
2317
+ class WarehouseCutoffTime
2318
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2319
+
2320
+ include Google::Apis::Core::JsonObjectSupport
2321
+ end
2322
+
2305
2323
  class Weight
2306
2324
  class Representation < Google::Apis::Core::JsonRepresentation; end
2307
2325
 
@@ -2362,6 +2380,7 @@ module Google
2362
2380
 
2363
2381
  property :korean_business_registration_number, as: 'koreanBusinessRegistrationNumber'
2364
2382
  property :phone_number, as: 'phoneNumber'
2383
+ property :phone_verification_status, as: 'phoneVerificationStatus'
2365
2384
  end
2366
2385
  end
2367
2386
 
@@ -2759,6 +2778,17 @@ module Google
2759
2778
  end
2760
2779
  end
2761
2780
 
2781
+ class Address
2782
+ # @private
2783
+ class Representation < Google::Apis::Core::JsonRepresentation
2784
+ property :administrative_area, as: 'administrativeArea'
2785
+ property :city, as: 'city'
2786
+ property :country, as: 'country'
2787
+ property :postal_code, as: 'postalCode'
2788
+ property :street_address, as: 'streetAddress'
2789
+ end
2790
+ end
2791
+
2762
2792
  class Amount
2763
2793
  # @private
2764
2794
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4175,8 +4205,11 @@ module Google
4175
4205
  property :gtin, as: 'gtin'
4176
4206
  property :line_item_id, as: 'lineItemId'
4177
4207
  property :mpn, as: 'mpn'
4208
+ property :product_description, as: 'productDescription'
4178
4209
  property :product_id, as: 'productId'
4179
4210
  property :quantity, :numeric_string => true, as: 'quantity'
4211
+ property :sku, as: 'sku'
4212
+ property :upc, as: 'upc'
4180
4213
  end
4181
4214
  end
4182
4215
 
@@ -6244,6 +6277,8 @@ module Google
6244
6277
 
6245
6278
  collection :services, as: 'services', class: Google::Apis::ContentV2_1::Service, decorator: Google::Apis::ContentV2_1::Service::Representation
6246
6279
 
6280
+ collection :warehouses, as: 'warehouses', class: Google::Apis::ContentV2_1::Warehouse, decorator: Google::Apis::ContentV2_1::Warehouse::Representation
6281
+
6247
6282
  end
6248
6283
  end
6249
6284
 
@@ -6555,6 +6590,20 @@ module Google
6555
6590
  end
6556
6591
  end
6557
6592
 
6593
+ class Warehouse
6594
+ # @private
6595
+ class Representation < Google::Apis::Core::JsonRepresentation
6596
+ property :business_day_config, as: 'businessDayConfig', class: Google::Apis::ContentV2_1::BusinessDayConfig, decorator: Google::Apis::ContentV2_1::BusinessDayConfig::Representation
6597
+
6598
+ property :cutoff_time, as: 'cutoffTime', class: Google::Apis::ContentV2_1::WarehouseCutoffTime, decorator: Google::Apis::ContentV2_1::WarehouseCutoffTime::Representation
6599
+
6600
+ property :handling_days, :numeric_string => true, as: 'handlingDays'
6601
+ property :name, as: 'name'
6602
+ property :shipping_address, as: 'shippingAddress', class: Google::Apis::ContentV2_1::Address, decorator: Google::Apis::ContentV2_1::Address::Representation
6603
+
6604
+ end
6605
+ end
6606
+
6558
6607
  class WarehouseBasedDeliveryTime
6559
6608
  # @private
6560
6609
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6565,6 +6614,15 @@ module Google
6565
6614
  property :origin_country, as: 'originCountry'
6566
6615
  property :origin_postal_code, as: 'originPostalCode'
6567
6616
  property :origin_street_address, as: 'originStreetAddress'
6617
+ property :warehouse_name, as: 'warehouseName'
6618
+ end
6619
+ end
6620
+
6621
+ class WarehouseCutoffTime
6622
+ # @private
6623
+ class Representation < Google::Apis::Core::JsonRepresentation
6624
+ property :hour, as: 'hour'
6625
+ property :minute, as: 'minute'
6568
6626
  end
6569
6627
  end
6570
6628
 
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.24.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-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
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
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.24.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1
63
63
  post_install_message:
64
64
  rdoc_options: []