google-apis-content_v2 0.11.0 → 0.15.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: b7e1a7d1fb8cf9ef11105ab6112ba69e450c5a7936531f580c82401172c7e4db
4
- data.tar.gz: 72d5d11174bcb2f8f87947e72a17d37b42fa86afe97259fcf2793fd3e93717d1
3
+ metadata.gz: 0f7d46b46f20184a6118bce1516ae0888671e8854224a989fee83131d38d1c1c
4
+ data.tar.gz: d0a55044076db3f79525da12999f212b08da9be9f1e992d36b92e1295fa11611
5
5
  SHA512:
6
- metadata.gz: c87e0c5e382eecb678efcd99ea1732d5145de87d2e46f36317d75f0e435577eaaa93b80eadb69f0a489ffd864ab220255b1015e1487d62c9bc58f9ca355502e3
7
- data.tar.gz: 0de1a7d119c2bb5396d2612acdb3b8cb1593d111cb724758fafce3507dd02df3afa4e30c01fb40027e78136e757ba7f7a565ad61dc5311716cb308097dcba0fa
6
+ metadata.gz: 7fe0754f3ba0f001388d51e33207f8214857f43eca47cc59fe9ba3cc6a011a882ae11b0a2fb9a35ff4d37d44f82824124439ac77c1c92ea5e9ed4abfbb26678c
7
+ data.tar.gz: 2d702de55cebfdfc9dfab0721dfbe8160a1e134291b3422b72837649e3ad8649b3d1d8b379f551e983de23171df66d536d71ea7eb3d375e905ef77a6e400b647
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-content_v2
2
2
 
3
+ ### v0.15.0 (2021-12-16)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.14.0 (2021-10-20)
8
+
9
+ * Unspecified changes
10
+
11
+ ### v0.13.0 (2021-10-12)
12
+
13
+ * Regenerated from discovery document revision 20211007
14
+
15
+ ### v0.12.0 (2021-09-15)
16
+
17
+ * Regenerated from discovery document revision 20210911
18
+
3
19
  ### v0.11.0 (2021-09-03)
4
20
 
5
21
  * Regenerated from discovery document revision 20210901
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/content_v2"
51
51
  client = Google::Apis::ContentV2::ShoppingContentService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -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
 
@@ -215,6 +215,13 @@ module Google
215
215
  # @return [Google::Apis::ContentV2::AccountCustomerService]
216
216
  attr_accessor :customer_service
217
217
 
218
+ # The 10-digit [Korean business registration number](https://support.google.com/
219
+ # merchants/answer/9037766) separated with dashes in the format: XXX-XX-XXXXX.
220
+ # This field will only be updated if explicitly set.
221
+ # Corresponds to the JSON property `koreanBusinessRegistrationNumber`
222
+ # @return [String]
223
+ attr_accessor :korean_business_registration_number
224
+
218
225
  # The phone number of the business.
219
226
  # Corresponds to the JSON property `phoneNumber`
220
227
  # @return [String]
@@ -228,6 +235,7 @@ module Google
228
235
  def update!(**args)
229
236
  @address = args[:address] if args.key?(:address)
230
237
  @customer_service = args[:customer_service] if args.key?(:customer_service)
238
+ @korean_business_registration_number = args[:korean_business_registration_number] if args.key?(:korean_business_registration_number)
231
239
  @phone_number = args[:phone_number] if args.key?(:phone_number)
232
240
  end
233
241
  end
@@ -1497,6 +1505,52 @@ module Google
1497
1505
  end
1498
1506
  end
1499
1507
 
1508
+ #
1509
+ class Address
1510
+ include Google::Apis::Core::Hashable
1511
+
1512
+ # Required. Top-level administrative subdivision of the country. For example, a
1513
+ # state like California ("CA") or a province like Quebec ("QC").
1514
+ # Corresponds to the JSON property `administrativeArea`
1515
+ # @return [String]
1516
+ attr_accessor :administrative_area
1517
+
1518
+ # Required. City, town or commune. May also include dependent localities or
1519
+ # sublocalities (e.g. neighborhoods or suburbs).
1520
+ # Corresponds to the JSON property `city`
1521
+ # @return [String]
1522
+ attr_accessor :city
1523
+
1524
+ # Required. [CLDR country code](http://www.unicode.org/repos/cldr/tags/latest/
1525
+ # common/main/en.xml)(e.g. "US").
1526
+ # Corresponds to the JSON property `country`
1527
+ # @return [String]
1528
+ attr_accessor :country
1529
+
1530
+ # Required. Postal code or ZIP (e.g. "94043"). Required.
1531
+ # Corresponds to the JSON property `postalCode`
1532
+ # @return [String]
1533
+ attr_accessor :postal_code
1534
+
1535
+ # Street-level part of the address.
1536
+ # Corresponds to the JSON property `streetAddress`
1537
+ # @return [String]
1538
+ attr_accessor :street_address
1539
+
1540
+ def initialize(**args)
1541
+ update!(**args)
1542
+ end
1543
+
1544
+ # Update properties of this object
1545
+ def update!(**args)
1546
+ @administrative_area = args[:administrative_area] if args.key?(:administrative_area)
1547
+ @city = args[:city] if args.key?(:city)
1548
+ @country = args[:country] if args.key?(:country)
1549
+ @postal_code = args[:postal_code] if args.key?(:postal_code)
1550
+ @street_address = args[:street_address] if args.key?(:street_address)
1551
+ end
1552
+ end
1553
+
1500
1554
  #
1501
1555
  class Amount
1502
1556
  include Google::Apis::Core::Hashable
@@ -10646,6 +10700,11 @@ module Google
10646
10700
  # @return [Array<Google::Apis::ContentV2::Service>]
10647
10701
  attr_accessor :services
10648
10702
 
10703
+ # Optional. A list of warehouses which can be referred to in `services`.
10704
+ # Corresponds to the JSON property `warehouses`
10705
+ # @return [Array<Google::Apis::ContentV2::Warehouse>]
10706
+ attr_accessor :warehouses
10707
+
10649
10708
  def initialize(**args)
10650
10709
  update!(**args)
10651
10710
  end
@@ -10655,6 +10714,7 @@ module Google
10655
10714
  @account_id = args[:account_id] if args.key?(:account_id)
10656
10715
  @postal_code_groups = args[:postal_code_groups] if args.key?(:postal_code_groups)
10657
10716
  @services = args[:services] if args.key?(:services)
10717
+ @warehouses = args[:warehouses] if args.key?(:warehouses)
10658
10718
  end
10659
10719
  end
10660
10720
 
@@ -11517,6 +11577,54 @@ module Google
11517
11577
  end
11518
11578
  end
11519
11579
 
11580
+ # A fulfillment warehouse, which stores and handles inventory.
11581
+ class Warehouse
11582
+ include Google::Apis::Core::Hashable
11583
+
11584
+ # Business days of the warehouse. If not set, will be Monday to Friday by
11585
+ # default.
11586
+ # Corresponds to the JSON property `businessDayConfig`
11587
+ # @return [Google::Apis::ContentV2::BusinessDayConfig]
11588
+ attr_accessor :business_day_config
11589
+
11590
+ # Required. The latest time of day that an order can be accepted and begin
11591
+ # processing. Later orders will be processed in the next day. The time is based
11592
+ # on the warehouse postal code.
11593
+ # Corresponds to the JSON property `cutoffTime`
11594
+ # @return [Google::Apis::ContentV2::WarehouseCutoffTime]
11595
+ attr_accessor :cutoff_time
11596
+
11597
+ # Required. The number of days it takes for this warehouse to pack up and ship
11598
+ # an item. This is on the warehouse level, but can be overridden on the offer
11599
+ # level based on the attributes of an item.
11600
+ # Corresponds to the JSON property `handlingDays`
11601
+ # @return [Fixnum]
11602
+ attr_accessor :handling_days
11603
+
11604
+ # Required. The name of the warehouse. Must be unique within account.
11605
+ # Corresponds to the JSON property `name`
11606
+ # @return [String]
11607
+ attr_accessor :name
11608
+
11609
+ # Required. Shipping address of the warehouse.
11610
+ # Corresponds to the JSON property `shippingAddress`
11611
+ # @return [Google::Apis::ContentV2::Address]
11612
+ attr_accessor :shipping_address
11613
+
11614
+ def initialize(**args)
11615
+ update!(**args)
11616
+ end
11617
+
11618
+ # Update properties of this object
11619
+ def update!(**args)
11620
+ @business_day_config = args[:business_day_config] if args.key?(:business_day_config)
11621
+ @cutoff_time = args[:cutoff_time] if args.key?(:cutoff_time)
11622
+ @handling_days = args[:handling_days] if args.key?(:handling_days)
11623
+ @name = args[:name] if args.key?(:name)
11624
+ @shipping_address = args[:shipping_address] if args.key?(:shipping_address)
11625
+ end
11626
+ end
11627
+
11520
11628
  #
11521
11629
  class WarehouseBasedDeliveryTime
11522
11630
  include Google::Apis::Core::Hashable
@@ -11535,23 +11643,23 @@ module Google
11535
11643
  # @return [String]
11536
11644
  attr_accessor :carrier_service
11537
11645
 
11538
- # Required. Shipping origin's state.
11646
+ # Shipping origin's state.
11539
11647
  # Corresponds to the JSON property `originAdministrativeArea`
11540
11648
  # @return [String]
11541
11649
  attr_accessor :origin_administrative_area
11542
11650
 
11543
- # Required. Shipping origin's city.
11651
+ # Shipping origin's city.
11544
11652
  # Corresponds to the JSON property `originCity`
11545
11653
  # @return [String]
11546
11654
  attr_accessor :origin_city
11547
11655
 
11548
- # Required. Shipping origin's country represented as a [CLDR territory code](
11549
- # http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml).
11656
+ # Shipping origin's country represented as a [CLDR territory code](http://www.
11657
+ # unicode.org/repos/cldr/tags/latest/common/main/en.xml).
11550
11658
  # Corresponds to the JSON property `originCountry`
11551
11659
  # @return [String]
11552
11660
  attr_accessor :origin_country
11553
11661
 
11554
- # Required. Shipping origin.
11662
+ # Shipping origin.
11555
11663
  # Corresponds to the JSON property `originPostalCode`
11556
11664
  # @return [String]
11557
11665
  attr_accessor :origin_postal_code
@@ -11561,6 +11669,13 @@ module Google
11561
11669
  # @return [String]
11562
11670
  attr_accessor :origin_street_address
11563
11671
 
11672
+ # The name of the warehouse. Warehouse name need to be matched with name. If
11673
+ # warehouseName is set, the below fields will be ignored. The warehouse info
11674
+ # will be read from warehouse.
11675
+ # Corresponds to the JSON property `warehouseName`
11676
+ # @return [String]
11677
+ attr_accessor :warehouse_name
11678
+
11564
11679
  def initialize(**args)
11565
11680
  update!(**args)
11566
11681
  end
@@ -11574,6 +11689,36 @@ module Google
11574
11689
  @origin_country = args[:origin_country] if args.key?(:origin_country)
11575
11690
  @origin_postal_code = args[:origin_postal_code] if args.key?(:origin_postal_code)
11576
11691
  @origin_street_address = args[:origin_street_address] if args.key?(:origin_street_address)
11692
+ @warehouse_name = args[:warehouse_name] if args.key?(:warehouse_name)
11693
+ end
11694
+ end
11695
+
11696
+ #
11697
+ class WarehouseCutoffTime
11698
+ include Google::Apis::Core::Hashable
11699
+
11700
+ # Required. Hour (24-hour clock) of the cutoff time until which an order has to
11701
+ # be placed to be processed in the same day by the warehouse. Hour is based on
11702
+ # the timezone of warehouse.
11703
+ # Corresponds to the JSON property `hour`
11704
+ # @return [Fixnum]
11705
+ attr_accessor :hour
11706
+
11707
+ # Required. Minute of the cutoff time until which an order has to be placed to
11708
+ # be processed in the same day by the warehouse. Minute is based on the timezone
11709
+ # of warehouse.
11710
+ # Corresponds to the JSON property `minute`
11711
+ # @return [Fixnum]
11712
+ attr_accessor :minute
11713
+
11714
+ def initialize(**args)
11715
+ update!(**args)
11716
+ end
11717
+
11718
+ # Update properties of this object
11719
+ def update!(**args)
11720
+ @hour = args[:hour] if args.key?(:hour)
11721
+ @minute = args[:minute] if args.key?(:minute)
11577
11722
  end
11578
11723
  end
11579
11724
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContentV2
18
18
  # Version of the google-apis-content_v2 gem
19
- GEM_VERSION = "0.11.0"
19
+ GEM_VERSION = "0.15.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 = "20210901"
25
+ REVISION = "20211007"
26
26
  end
27
27
  end
28
28
  end
@@ -250,6 +250,12 @@ module Google
250
250
  include Google::Apis::Core::JsonObjectSupport
251
251
  end
252
252
 
253
+ class Address
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
253
259
  class Amount
254
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
255
261
 
@@ -1636,12 +1642,24 @@ module Google
1636
1642
  include Google::Apis::Core::JsonObjectSupport
1637
1643
  end
1638
1644
 
1645
+ class Warehouse
1646
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1647
+
1648
+ include Google::Apis::Core::JsonObjectSupport
1649
+ end
1650
+
1639
1651
  class WarehouseBasedDeliveryTime
1640
1652
  class Representation < Google::Apis::Core::JsonRepresentation; end
1641
1653
 
1642
1654
  include Google::Apis::Core::JsonObjectSupport
1643
1655
  end
1644
1656
 
1657
+ class WarehouseCutoffTime
1658
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1659
+
1660
+ include Google::Apis::Core::JsonObjectSupport
1661
+ end
1662
+
1645
1663
  class Weight
1646
1664
  class Representation < Google::Apis::Core::JsonRepresentation; end
1647
1665
 
@@ -1697,6 +1715,7 @@ module Google
1697
1715
 
1698
1716
  property :customer_service, as: 'customerService', class: Google::Apis::ContentV2::AccountCustomerService, decorator: Google::Apis::ContentV2::AccountCustomerService::Representation
1699
1717
 
1718
+ property :korean_business_registration_number, as: 'koreanBusinessRegistrationNumber'
1700
1719
  property :phone_number, as: 'phoneNumber'
1701
1720
  end
1702
1721
  end
@@ -2058,6 +2077,17 @@ module Google
2058
2077
  end
2059
2078
  end
2060
2079
 
2080
+ class Address
2081
+ # @private
2082
+ class Representation < Google::Apis::Core::JsonRepresentation
2083
+ property :administrative_area, as: 'administrativeArea'
2084
+ property :city, as: 'city'
2085
+ property :country, as: 'country'
2086
+ property :postal_code, as: 'postalCode'
2087
+ property :street_address, as: 'streetAddress'
2088
+ end
2089
+ end
2090
+
2061
2091
  class Amount
2062
2092
  # @private
2063
2093
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4503,6 +4533,8 @@ module Google
4503
4533
 
4504
4534
  collection :services, as: 'services', class: Google::Apis::ContentV2::Service, decorator: Google::Apis::ContentV2::Service::Representation
4505
4535
 
4536
+ collection :warehouses, as: 'warehouses', class: Google::Apis::ContentV2::Warehouse, decorator: Google::Apis::ContentV2::Warehouse::Representation
4537
+
4506
4538
  end
4507
4539
  end
4508
4540
 
@@ -4762,6 +4794,20 @@ module Google
4762
4794
  end
4763
4795
  end
4764
4796
 
4797
+ class Warehouse
4798
+ # @private
4799
+ class Representation < Google::Apis::Core::JsonRepresentation
4800
+ property :business_day_config, as: 'businessDayConfig', class: Google::Apis::ContentV2::BusinessDayConfig, decorator: Google::Apis::ContentV2::BusinessDayConfig::Representation
4801
+
4802
+ property :cutoff_time, as: 'cutoffTime', class: Google::Apis::ContentV2::WarehouseCutoffTime, decorator: Google::Apis::ContentV2::WarehouseCutoffTime::Representation
4803
+
4804
+ property :handling_days, :numeric_string => true, as: 'handlingDays'
4805
+ property :name, as: 'name'
4806
+ property :shipping_address, as: 'shippingAddress', class: Google::Apis::ContentV2::Address, decorator: Google::Apis::ContentV2::Address::Representation
4807
+
4808
+ end
4809
+ end
4810
+
4765
4811
  class WarehouseBasedDeliveryTime
4766
4812
  # @private
4767
4813
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4772,6 +4818,15 @@ module Google
4772
4818
  property :origin_country, as: 'originCountry'
4773
4819
  property :origin_postal_code, as: 'originPostalCode'
4774
4820
  property :origin_street_address, as: 'originStreetAddress'
4821
+ property :warehouse_name, as: 'warehouseName'
4822
+ end
4823
+ end
4824
+
4825
+ class WarehouseCutoffTime
4826
+ # @private
4827
+ class Representation < Google::Apis::Core::JsonRepresentation
4828
+ property :hour, as: 'hour'
4829
+ property :minute, as: 'minute'
4775
4830
  end
4776
4831
  end
4777
4832
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-content_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.15.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-06 00:00:00.000000000 Z
11
+ date: 2022-01-10 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/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2/v0.11.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-content_v2/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2/v0.15.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-content_v2
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.4
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Content API for Shopping V2