google-apis-content_v2 0.5.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/lib/google/apis/content_v2/classes.rb +87 -18
- data/lib/google/apis/content_v2/gem_version.rb +3 -3
- data/lib/google/apis/content_v2/representations.rb +22 -0
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1727d31928ea284363b11717bf4c3ccb51f66ac2245239cd9d640829909c14d
|
4
|
+
data.tar.gz: eeb89cd2eed203239918373da27957b1edf147b4cb2652b78fb07b5ee2e14a51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7562e2bf75effa586a48663c84dc3b1a1da1b8cb28a9398e4d7263d7490bc6b47666a7541251d95322091725db6ded90df23e50bc48c1de7b0ae10b99858ed5f
|
7
|
+
data.tar.gz: 301035ed9830a350a64ae3a0830b4a6d0da8df00c2b947e93832502aedd80119c442de24412fd192504a7412c340cd76d0fca1816aceffc389fe7ecde9ee7961
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# Release history for google-apis-content_v2
|
2
2
|
|
3
|
+
### v0.10.0 (2021-06-29)
|
4
|
+
|
5
|
+
* Regenerated using generator version 0.4.0
|
6
|
+
|
7
|
+
### v0.9.0 (2021-06-24)
|
8
|
+
|
9
|
+
* Regenerated using generator version 0.3.0
|
10
|
+
|
11
|
+
### v0.8.0 (2021-05-26)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210519
|
14
|
+
|
15
|
+
### v0.7.0 (2021-05-19)
|
16
|
+
|
17
|
+
* Unspecified changes
|
18
|
+
|
19
|
+
### v0.6.0 (2021-05-18)
|
20
|
+
|
21
|
+
* Regenerated from discovery document revision 20210514
|
22
|
+
|
3
23
|
### v0.5.0 (2021-03-16)
|
4
24
|
|
5
25
|
* Regenerated from discovery document revision 20210311
|
@@ -1606,13 +1606,20 @@ module Google
|
|
1606
1606
|
# @return [String]
|
1607
1607
|
attr_accessor :country
|
1608
1608
|
|
1609
|
+
# A list of services supported for EDD (Estimated Delivery Date) calculation.
|
1610
|
+
# This is the list of valid values for WarehouseBasedDeliveryTime.carrierService.
|
1611
|
+
# Corresponds to the JSON property `eddServices`
|
1612
|
+
# @return [Array<String>]
|
1613
|
+
attr_accessor :edd_services
|
1614
|
+
|
1609
1615
|
# The name of the carrier (e.g., `"UPS"`). Always present.
|
1610
1616
|
# Corresponds to the JSON property `name`
|
1611
1617
|
# @return [String]
|
1612
1618
|
attr_accessor :name
|
1613
1619
|
|
1614
1620
|
# A list of supported services (e.g., `"ground"`) for that carrier. Contains at
|
1615
|
-
# least one service.
|
1621
|
+
# least one service. This is the list of valid values for CarrierRate.
|
1622
|
+
# carrierService.
|
1616
1623
|
# Corresponds to the JSON property `services`
|
1617
1624
|
# @return [Array<String>]
|
1618
1625
|
attr_accessor :services
|
@@ -1624,6 +1631,7 @@ module Google
|
|
1624
1631
|
# Update properties of this object
|
1625
1632
|
def update!(**args)
|
1626
1633
|
@country = args[:country] if args.key?(:country)
|
1634
|
+
@edd_services = args[:edd_services] if args.key?(:edd_services)
|
1627
1635
|
@name = args[:name] if args.key?(:name)
|
1628
1636
|
@services = args[:services] if args.key?(:services)
|
1629
1637
|
end
|
@@ -2557,6 +2565,13 @@ module Google
|
|
2557
2565
|
# @return [Google::Apis::ContentV2::TransitTable]
|
2558
2566
|
attr_accessor :transit_time_table
|
2559
2567
|
|
2568
|
+
# Indicates that the delivery time should be calculated per warehouse (shipping
|
2569
|
+
# origin location) based on the settings of the selected carrier. When set, no
|
2570
|
+
# other transit time related field in DeliveryTime should be set.
|
2571
|
+
# Corresponds to the JSON property `warehouseBasedDeliveryTimes`
|
2572
|
+
# @return [Array<Google::Apis::ContentV2::WarehouseBasedDeliveryTime>]
|
2573
|
+
attr_accessor :warehouse_based_delivery_times
|
2574
|
+
|
2560
2575
|
def initialize(**args)
|
2561
2576
|
update!(**args)
|
2562
2577
|
end
|
@@ -2572,6 +2587,7 @@ module Google
|
|
2572
2587
|
@min_transit_time_in_days = args[:min_transit_time_in_days] if args.key?(:min_transit_time_in_days)
|
2573
2588
|
@transit_business_day_config = args[:transit_business_day_config] if args.key?(:transit_business_day_config)
|
2574
2589
|
@transit_time_table = args[:transit_time_table] if args.key?(:transit_time_table)
|
2590
|
+
@warehouse_based_delivery_times = args[:warehouse_based_delivery_times] if args.key?(:warehouse_based_delivery_times)
|
2575
2591
|
end
|
2576
2592
|
end
|
2577
2593
|
|
@@ -8787,10 +8803,8 @@ module Google
|
|
8787
8803
|
|
8788
8804
|
# Required product attributes are primarily defined by the products data
|
8789
8805
|
# specification. See the Products Data Specification Help Center article for
|
8790
|
-
# information.
|
8791
|
-
#
|
8792
|
-
# data. After inserting, updating, or deleting a product, it may take several
|
8793
|
-
# minutes before changes take effect.
|
8806
|
+
# information. Product data. After inserting, updating, or deleting a product,
|
8807
|
+
# it may take several minutes before changes take effect.
|
8794
8808
|
class Product
|
8795
8809
|
include Google::Apis::Core::Hashable
|
8796
8810
|
|
@@ -9571,10 +9585,8 @@ module Google
|
|
9571
9585
|
|
9572
9586
|
# Required product attributes are primarily defined by the products data
|
9573
9587
|
# specification. See the Products Data Specification Help Center article for
|
9574
|
-
# information.
|
9575
|
-
#
|
9576
|
-
# data. After inserting, updating, or deleting a product, it may take several
|
9577
|
-
# minutes before changes take effect.
|
9588
|
+
# information. Product data. After inserting, updating, or deleting a product,
|
9589
|
+
# it may take several minutes before changes take effect.
|
9578
9590
|
# Corresponds to the JSON property `product`
|
9579
9591
|
# @return [Google::Apis::ContentV2::Product]
|
9580
9592
|
attr_accessor :product
|
@@ -9921,10 +9933,8 @@ module Google
|
|
9921
9933
|
|
9922
9934
|
# Required product attributes are primarily defined by the products data
|
9923
9935
|
# specification. See the Products Data Specification Help Center article for
|
9924
|
-
# information.
|
9925
|
-
#
|
9926
|
-
# data. After inserting, updating, or deleting a product, it may take several
|
9927
|
-
# minutes before changes take effect.
|
9936
|
+
# information. Product data. After inserting, updating, or deleting a product,
|
9937
|
+
# it may take several minutes before changes take effect.
|
9928
9938
|
# Corresponds to the JSON property `product`
|
9929
9939
|
# @return [Google::Apis::ContentV2::Product]
|
9930
9940
|
attr_accessor :product
|
@@ -9997,10 +10007,8 @@ module Google
|
|
9997
10007
|
|
9998
10008
|
# Required product attributes are primarily defined by the products data
|
9999
10009
|
# specification. See the Products Data Specification Help Center article for
|
10000
|
-
# information.
|
10001
|
-
#
|
10002
|
-
# data. After inserting, updating, or deleting a product, it may take several
|
10003
|
-
# minutes before changes take effect.
|
10010
|
+
# information. Product data. After inserting, updating, or deleting a product,
|
10011
|
+
# it may take several minutes before changes take effect.
|
10004
10012
|
# Corresponds to the JSON property `product`
|
10005
10013
|
# @return [Google::Apis::ContentV2::Product]
|
10006
10014
|
attr_accessor :product
|
@@ -11509,6 +11517,66 @@ module Google
|
|
11509
11517
|
end
|
11510
11518
|
end
|
11511
11519
|
|
11520
|
+
#
|
11521
|
+
class WarehouseBasedDeliveryTime
|
11522
|
+
include Google::Apis::Core::Hashable
|
11523
|
+
|
11524
|
+
# Required. Carrier, such as `"UPS"` or `"Fedex"`. The list of supported
|
11525
|
+
# carriers can be retrieved via the `listSupportedCarriers` method.
|
11526
|
+
# Corresponds to the JSON property `carrier`
|
11527
|
+
# @return [String]
|
11528
|
+
attr_accessor :carrier
|
11529
|
+
|
11530
|
+
# Required. Carrier service, such as `"ground"` or `"2 days"`. The list of
|
11531
|
+
# supported services for a carrier can be retrieved via the `
|
11532
|
+
# listSupportedCarriers` method. The name of the service must be in the
|
11533
|
+
# eddSupportedServices list.
|
11534
|
+
# Corresponds to the JSON property `carrierService`
|
11535
|
+
# @return [String]
|
11536
|
+
attr_accessor :carrier_service
|
11537
|
+
|
11538
|
+
# Required. Shipping origin's state.
|
11539
|
+
# Corresponds to the JSON property `originAdministrativeArea`
|
11540
|
+
# @return [String]
|
11541
|
+
attr_accessor :origin_administrative_area
|
11542
|
+
|
11543
|
+
# Required. Shipping origin's city.
|
11544
|
+
# Corresponds to the JSON property `originCity`
|
11545
|
+
# @return [String]
|
11546
|
+
attr_accessor :origin_city
|
11547
|
+
|
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).
|
11550
|
+
# Corresponds to the JSON property `originCountry`
|
11551
|
+
# @return [String]
|
11552
|
+
attr_accessor :origin_country
|
11553
|
+
|
11554
|
+
# Required. Shipping origin.
|
11555
|
+
# Corresponds to the JSON property `originPostalCode`
|
11556
|
+
# @return [String]
|
11557
|
+
attr_accessor :origin_postal_code
|
11558
|
+
|
11559
|
+
# Shipping origin's street address
|
11560
|
+
# Corresponds to the JSON property `originStreetAddress`
|
11561
|
+
# @return [String]
|
11562
|
+
attr_accessor :origin_street_address
|
11563
|
+
|
11564
|
+
def initialize(**args)
|
11565
|
+
update!(**args)
|
11566
|
+
end
|
11567
|
+
|
11568
|
+
# Update properties of this object
|
11569
|
+
def update!(**args)
|
11570
|
+
@carrier = args[:carrier] if args.key?(:carrier)
|
11571
|
+
@carrier_service = args[:carrier_service] if args.key?(:carrier_service)
|
11572
|
+
@origin_administrative_area = args[:origin_administrative_area] if args.key?(:origin_administrative_area)
|
11573
|
+
@origin_city = args[:origin_city] if args.key?(:origin_city)
|
11574
|
+
@origin_country = args[:origin_country] if args.key?(:origin_country)
|
11575
|
+
@origin_postal_code = args[:origin_postal_code] if args.key?(:origin_postal_code)
|
11576
|
+
@origin_street_address = args[:origin_street_address] if args.key?(:origin_street_address)
|
11577
|
+
end
|
11578
|
+
end
|
11579
|
+
|
11512
11580
|
#
|
11513
11581
|
class Weight
|
11514
11582
|
include Google::Apis::Core::Hashable
|
@@ -11518,7 +11586,8 @@ module Google
|
|
11518
11586
|
# @return [String]
|
11519
11587
|
attr_accessor :unit
|
11520
11588
|
|
11521
|
-
# Required. The weight represented as a number.
|
11589
|
+
# Required. The weight represented as a number. The weight can have a maximum
|
11590
|
+
# precision of four decimal places.
|
11522
11591
|
# Corresponds to the JSON property `value`
|
11523
11592
|
# @return [String]
|
11524
11593
|
attr_accessor :value
|
@@ -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.10.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210519"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1636,6 +1636,12 @@ module Google
|
|
1636
1636
|
include Google::Apis::Core::JsonObjectSupport
|
1637
1637
|
end
|
1638
1638
|
|
1639
|
+
class WarehouseBasedDeliveryTime
|
1640
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1641
|
+
|
1642
|
+
include Google::Apis::Core::JsonObjectSupport
|
1643
|
+
end
|
1644
|
+
|
1639
1645
|
class Weight
|
1640
1646
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1641
1647
|
|
@@ -2086,6 +2092,7 @@ module Google
|
|
2086
2092
|
# @private
|
2087
2093
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2088
2094
|
property :country, as: 'country'
|
2095
|
+
collection :edd_services, as: 'eddServices'
|
2089
2096
|
property :name, as: 'name'
|
2090
2097
|
collection :services, as: 'services'
|
2091
2098
|
end
|
@@ -2344,6 +2351,8 @@ module Google
|
|
2344
2351
|
|
2345
2352
|
property :transit_time_table, as: 'transitTimeTable', class: Google::Apis::ContentV2::TransitTable, decorator: Google::Apis::ContentV2::TransitTable::Representation
|
2346
2353
|
|
2354
|
+
collection :warehouse_based_delivery_times, as: 'warehouseBasedDeliveryTimes', class: Google::Apis::ContentV2::WarehouseBasedDeliveryTime, decorator: Google::Apis::ContentV2::WarehouseBasedDeliveryTime::Representation
|
2355
|
+
|
2347
2356
|
end
|
2348
2357
|
end
|
2349
2358
|
|
@@ -4753,6 +4762,19 @@ module Google
|
|
4753
4762
|
end
|
4754
4763
|
end
|
4755
4764
|
|
4765
|
+
class WarehouseBasedDeliveryTime
|
4766
|
+
# @private
|
4767
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4768
|
+
property :carrier, as: 'carrier'
|
4769
|
+
property :carrier_service, as: 'carrierService'
|
4770
|
+
property :origin_administrative_area, as: 'originAdministrativeArea'
|
4771
|
+
property :origin_city, as: 'originCity'
|
4772
|
+
property :origin_country, as: 'originCountry'
|
4773
|
+
property :origin_postal_code, as: 'originPostalCode'
|
4774
|
+
property :origin_street_address, as: 'originStreetAddress'
|
4775
|
+
end
|
4776
|
+
end
|
4777
|
+
|
4756
4778
|
class Weight
|
4757
4779
|
# @private
|
4758
4780
|
class Representation < Google::Apis::Core::JsonRepresentation
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
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.10.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-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.4'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Content API for Shopping V2. Simple
|
28
34
|
REST clients are Ruby client libraries that provide access to Google services via
|
29
35
|
their HTTP REST API endpoints. These libraries are generated and updated automatically
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2/v0.10.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
75
|
- !ruby/object:Gem::Version
|
70
76
|
version: '0'
|
71
77
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
78
|
+
rubygems_version: 3.2.17
|
73
79
|
signing_key:
|
74
80
|
specification_version: 4
|
75
81
|
summary: Simple REST client for Content API for Shopping V2
|