class Google::Apis::ContentV2_1::ProductShipping
Attributes
The CLDR territory code of the country to which an item will ship. Corresponds to the JSON property `country` @return [String]
The location where the shipping is applicable, represented by a location group name. Corresponds to the JSON property `locationGroupName` @return [String]
The numeric ID of a location that the shipping rate applies to as defined in the AdWords API. Corresponds to the JSON property `locationId` @return [Fixnum]
Maximum handling time (inclusive) between when the order is received and shipped in business days. 0 means that the order is shipped on the same day as it is received if it happens before the cut-off time. Both maxHandlingTime and maxTransitTime are required if providing shipping speeds. Corresponds to the JSON property `maxHandlingTime` @return [Fixnum]
Maximum transit time (inclusive) between when the order has shipped and when it is delivered in business days. 0 means that the order is delivered on the same day as it ships. Both maxHandlingTime and maxTransitTime are required if providing shipping speeds. Corresponds to the JSON property `maxTransitTime` @return [Fixnum]
Minimum handling time (inclusive) between when the order is received and shipped in business days. 0 means that the order is shipped on the same day as it is received if it happens before the cut-off time. minHandlingTime can only be present together with maxHandlingTime; but it is not required if maxHandlingTime is present. Corresponds to the JSON property `minHandlingTime` @return [Fixnum]
Minimum transit time (inclusive) between when the order has shipped and when it is delivered in business days. 0 means that the order is delivered on the same day as it ships. minTransitTime can only be present together with maxTransitTime; but it is not required if maxTransitTime is present. Corresponds to the JSON property `minTransitTime` @return [Fixnum]
The postal code range that the shipping rate applies to, represented by a postal code, a postal code prefix followed by a * wildcard, a range between two postal codes or two postal code prefixes of equal length. Corresponds to the JSON property `postalCode` @return [String]
Fixed shipping price, represented as a number. Corresponds to the JSON property `price` @return [Google::Apis::ContentV2_1::Price]
The geographic region to which a shipping rate applies. Corresponds to the JSON property `region` @return [String]
A free-form description of the service class or delivery speed. Corresponds to the JSON property `service` @return [String]
Public Class Methods
# File lib/google/apis/content_v2_1/classes.rb, line 10750 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/content_v2_1/classes.rb, line 10755 def update!(**args) @country = args[:country] if args.key?(:country) @location_group_name = args[:location_group_name] if args.key?(:location_group_name) @location_id = args[:location_id] if args.key?(:location_id) @max_handling_time = args[:max_handling_time] if args.key?(:max_handling_time) @max_transit_time = args[:max_transit_time] if args.key?(:max_transit_time) @min_handling_time = args[:min_handling_time] if args.key?(:min_handling_time) @min_transit_time = args[:min_transit_time] if args.key?(:min_transit_time) @postal_code = args[:postal_code] if args.key?(:postal_code) @price = args[:price] if args.key?(:price) @region = args[:region] if args.key?(:region) @service = args[:service] if args.key?(:service) end