google-apis-content_v2 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b2e0e5a17f3e317865ab24c78515aebd6cb8f3ebc60396424c350c7fe47bc78
|
4
|
+
data.tar.gz: 8f4a19cbf047b9f441e2f8cd13bdf46ee57155ae947705c4ec067d7e66c5762e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5deebfdc582f5637b91652c7d8cd4feaea79d62149b63d29f02b411bfa682750aa039660a6c5677e07f8d1f8d35cbd0fc93e914a34d22f5bb569008868eb9014
|
7
|
+
data.tar.gz: d5ab3642d81be21187be5fb9662b7049fbf707ec9bcc41aad851e34d15c24c6b3407463924e08e5dae1096d9c2023c2c74dd5629c2257e45592fa86a41ba8172
|
data/CHANGELOG.md
CHANGED
@@ -1505,6 +1505,52 @@ module Google
|
|
1505
1505
|
end
|
1506
1506
|
end
|
1507
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
|
+
|
1508
1554
|
#
|
1509
1555
|
class Amount
|
1510
1556
|
include Google::Apis::Core::Hashable
|
@@ -10654,6 +10700,11 @@ module Google
|
|
10654
10700
|
# @return [Array<Google::Apis::ContentV2::Service>]
|
10655
10701
|
attr_accessor :services
|
10656
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
|
+
|
10657
10708
|
def initialize(**args)
|
10658
10709
|
update!(**args)
|
10659
10710
|
end
|
@@ -10663,6 +10714,7 @@ module Google
|
|
10663
10714
|
@account_id = args[:account_id] if args.key?(:account_id)
|
10664
10715
|
@postal_code_groups = args[:postal_code_groups] if args.key?(:postal_code_groups)
|
10665
10716
|
@services = args[:services] if args.key?(:services)
|
10717
|
+
@warehouses = args[:warehouses] if args.key?(:warehouses)
|
10666
10718
|
end
|
10667
10719
|
end
|
10668
10720
|
|
@@ -11525,6 +11577,54 @@ module Google
|
|
11525
11577
|
end
|
11526
11578
|
end
|
11527
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
|
+
|
11528
11628
|
#
|
11529
11629
|
class WarehouseBasedDeliveryTime
|
11530
11630
|
include Google::Apis::Core::Hashable
|
@@ -11543,23 +11643,23 @@ module Google
|
|
11543
11643
|
# @return [String]
|
11544
11644
|
attr_accessor :carrier_service
|
11545
11645
|
|
11546
|
-
#
|
11646
|
+
# Shipping origin's state.
|
11547
11647
|
# Corresponds to the JSON property `originAdministrativeArea`
|
11548
11648
|
# @return [String]
|
11549
11649
|
attr_accessor :origin_administrative_area
|
11550
11650
|
|
11551
|
-
#
|
11651
|
+
# Shipping origin's city.
|
11552
11652
|
# Corresponds to the JSON property `originCity`
|
11553
11653
|
# @return [String]
|
11554
11654
|
attr_accessor :origin_city
|
11555
11655
|
|
11556
|
-
#
|
11557
|
-
#
|
11656
|
+
# Shipping origin's country represented as a [CLDR territory code](http://www.
|
11657
|
+
# unicode.org/repos/cldr/tags/latest/common/main/en.xml).
|
11558
11658
|
# Corresponds to the JSON property `originCountry`
|
11559
11659
|
# @return [String]
|
11560
11660
|
attr_accessor :origin_country
|
11561
11661
|
|
11562
|
-
#
|
11662
|
+
# Shipping origin.
|
11563
11663
|
# Corresponds to the JSON property `originPostalCode`
|
11564
11664
|
# @return [String]
|
11565
11665
|
attr_accessor :origin_postal_code
|
@@ -11569,6 +11669,13 @@ module Google
|
|
11569
11669
|
# @return [String]
|
11570
11670
|
attr_accessor :origin_street_address
|
11571
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
|
+
|
11572
11679
|
def initialize(**args)
|
11573
11680
|
update!(**args)
|
11574
11681
|
end
|
@@ -11582,6 +11689,36 @@ module Google
|
|
11582
11689
|
@origin_country = args[:origin_country] if args.key?(:origin_country)
|
11583
11690
|
@origin_postal_code = args[:origin_postal_code] if args.key?(:origin_postal_code)
|
11584
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)
|
11585
11722
|
end
|
11586
11723
|
end
|
11587
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.
|
19
|
+
GEM_VERSION = "0.13.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 = "
|
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
|
|
@@ -2059,6 +2077,17 @@ module Google
|
|
2059
2077
|
end
|
2060
2078
|
end
|
2061
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
|
+
|
2062
2091
|
class Amount
|
2063
2092
|
# @private
|
2064
2093
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -4504,6 +4533,8 @@ module Google
|
|
4504
4533
|
|
4505
4534
|
collection :services, as: 'services', class: Google::Apis::ContentV2::Service, decorator: Google::Apis::ContentV2::Service::Representation
|
4506
4535
|
|
4536
|
+
collection :warehouses, as: 'warehouses', class: Google::Apis::ContentV2::Warehouse, decorator: Google::Apis::ContentV2::Warehouse::Representation
|
4537
|
+
|
4507
4538
|
end
|
4508
4539
|
end
|
4509
4540
|
|
@@ -4763,6 +4794,20 @@ module Google
|
|
4763
4794
|
end
|
4764
4795
|
end
|
4765
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
|
+
|
4766
4811
|
class WarehouseBasedDeliveryTime
|
4767
4812
|
# @private
|
4768
4813
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -4773,6 +4818,15 @@ module Google
|
|
4773
4818
|
property :origin_country, as: 'originCountry'
|
4774
4819
|
property :origin_postal_code, as: 'originPostalCode'
|
4775
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'
|
4776
4830
|
end
|
4777
4831
|
end
|
4778
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.
|
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-
|
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/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2/v0.
|
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: []
|