google-apis-content_v2 0.9.0 → 0.13.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: 443a637e962466263cd91144b6dc92264f85659374fba7bc455dc1e8475b9f79
4
- data.tar.gz: c258b4ebcea246418a5bef6659ba46b009938f3061ffea7650a98921d9995552
3
+ metadata.gz: 3b2e0e5a17f3e317865ab24c78515aebd6cb8f3ebc60396424c350c7fe47bc78
4
+ data.tar.gz: 8f4a19cbf047b9f441e2f8cd13bdf46ee57155ae947705c4ec067d7e66c5762e
5
5
  SHA512:
6
- metadata.gz: bb59e84bf16baa806f4666044f125f7a1792b03a1f27c3721e33f511cfba09ffc0e9c7f1d2db1eb9d3ce6b284c1241d90a025fbfa5ea7214df6a9f3b84906331
7
- data.tar.gz: d3726ca5bc7719543b384d87190f9a92bfd77c6290c6c96acf7ba33254d0b64a34f2929569cef4625594fe5d9fdde20474748504d948eb1faed4b775097e36f6
6
+ metadata.gz: 5deebfdc582f5637b91652c7d8cd4feaea79d62149b63d29f02b411bfa682750aa039660a6c5677e07f8d1f8d35cbd0fc93e914a34d22f5bb569008868eb9014
7
+ data.tar.gz: d5ab3642d81be21187be5fb9662b7049fbf707ec9bcc41aad851e34d15c24c6b3407463924e08e5dae1096d9c2023c2c74dd5629c2257e45592fa86a41ba8172
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-content_v2
2
2
 
3
+ ### v0.13.0 (2021-10-12)
4
+
5
+ * Regenerated from discovery document revision 20211007
6
+
7
+ ### v0.12.0 (2021-09-15)
8
+
9
+ * Regenerated from discovery document revision 20210911
10
+
11
+ ### v0.11.0 (2021-09-03)
12
+
13
+ * Regenerated from discovery document revision 20210901
14
+
15
+ ### v0.10.0 (2021-06-29)
16
+
17
+ * Regenerated using generator version 0.4.0
18
+
3
19
  ### v0.9.0 (2021-06-24)
4
20
 
5
21
  * Regenerated using generator version 0.3.0
@@ -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
@@ -1526,7 +1580,7 @@ module Google
1526
1580
  class BusinessDayConfig
1527
1581
  include Google::Apis::Core::Hashable
1528
1582
 
1529
- # Regular business days. May not be empty.
1583
+ # Regular business days, such as '"monday"'. May not be empty.
1530
1584
  # Corresponds to the JSON property `businessDays`
1531
1585
  # @return [Array<String>]
1532
1586
  attr_accessor :business_days
@@ -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.9.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.3.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210519"
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.9.0
4
+ version: 0.13.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-06-28 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
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.3'
19
+ version: '0.4'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.3'
29
+ version: '0.4'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2/v0.9.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2/v0.13.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2
63
63
  post_install_message:
64
64
  rdoc_options: []