google-apis-content_v2 0.5.0 → 0.6.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: 4e41f6655aa0429abc07517fa5ddcba5328210c47ec49b8ca671e7bcfaca70be
|
4
|
+
data.tar.gz: 8168210a30566e3d0626c87e591dc286cf8a4fd0ed159c43859eafa3c5e503be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5440e61e811719716b31aa90d2c63501ca4baf034c158c7d6e9c5623119266cf87fbbc298fa698f58e1f04b8a75470b90e406feeb43c973b453fc858cb2ebbc
|
7
|
+
data.tar.gz: 3cfe81e11a80c5c3cca9a4bb9600443ac6dada33b4b1634aa07558e707986d547e34b5654ed1071a50c62161f21bbe51e5d19c9dfb900d62c3d3c981cf0eb1b3
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
@@ -11509,6 +11525,66 @@ module Google
|
|
11509
11525
|
end
|
11510
11526
|
end
|
11511
11527
|
|
11528
|
+
#
|
11529
|
+
class WarehouseBasedDeliveryTime
|
11530
|
+
include Google::Apis::Core::Hashable
|
11531
|
+
|
11532
|
+
# Required. Carrier, such as `"UPS"` or `"Fedex"`. The list of supported
|
11533
|
+
# carriers can be retrieved via the `listSupportedCarriers` method.
|
11534
|
+
# Corresponds to the JSON property `carrier`
|
11535
|
+
# @return [String]
|
11536
|
+
attr_accessor :carrier
|
11537
|
+
|
11538
|
+
# Required. Carrier service, such as `"ground"` or `"2 days"`. The list of
|
11539
|
+
# supported services for a carrier can be retrieved via the `
|
11540
|
+
# listSupportedCarriers` method. The name of the service must be in the
|
11541
|
+
# eddSupportedServices list.
|
11542
|
+
# Corresponds to the JSON property `carrierService`
|
11543
|
+
# @return [String]
|
11544
|
+
attr_accessor :carrier_service
|
11545
|
+
|
11546
|
+
# Required. Shipping origin's state.
|
11547
|
+
# Corresponds to the JSON property `originAdministrativeArea`
|
11548
|
+
# @return [String]
|
11549
|
+
attr_accessor :origin_administrative_area
|
11550
|
+
|
11551
|
+
# Required. Shipping origin's city.
|
11552
|
+
# Corresponds to the JSON property `originCity`
|
11553
|
+
# @return [String]
|
11554
|
+
attr_accessor :origin_city
|
11555
|
+
|
11556
|
+
# Required. Shipping origin's country represented as a [CLDR territory code](
|
11557
|
+
# http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml).
|
11558
|
+
# Corresponds to the JSON property `originCountry`
|
11559
|
+
# @return [String]
|
11560
|
+
attr_accessor :origin_country
|
11561
|
+
|
11562
|
+
# Required. Shipping origin.
|
11563
|
+
# Corresponds to the JSON property `originPostalCode`
|
11564
|
+
# @return [String]
|
11565
|
+
attr_accessor :origin_postal_code
|
11566
|
+
|
11567
|
+
# Shipping origin's street address
|
11568
|
+
# Corresponds to the JSON property `originStreetAddress`
|
11569
|
+
# @return [String]
|
11570
|
+
attr_accessor :origin_street_address
|
11571
|
+
|
11572
|
+
def initialize(**args)
|
11573
|
+
update!(**args)
|
11574
|
+
end
|
11575
|
+
|
11576
|
+
# Update properties of this object
|
11577
|
+
def update!(**args)
|
11578
|
+
@carrier = args[:carrier] if args.key?(:carrier)
|
11579
|
+
@carrier_service = args[:carrier_service] if args.key?(:carrier_service)
|
11580
|
+
@origin_administrative_area = args[:origin_administrative_area] if args.key?(:origin_administrative_area)
|
11581
|
+
@origin_city = args[:origin_city] if args.key?(:origin_city)
|
11582
|
+
@origin_country = args[:origin_country] if args.key?(:origin_country)
|
11583
|
+
@origin_postal_code = args[:origin_postal_code] if args.key?(:origin_postal_code)
|
11584
|
+
@origin_street_address = args[:origin_street_address] if args.key?(:origin_street_address)
|
11585
|
+
end
|
11586
|
+
end
|
11587
|
+
|
11512
11588
|
#
|
11513
11589
|
class Weight
|
11514
11590
|
include Google::Apis::Core::Hashable
|
@@ -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.6.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210424"
|
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,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.6.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-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
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.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2/v0.6.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
72
|
+
rubygems_version: 3.2.17
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Content API for Shopping V2
|