Class: Google::Apis::ContentV2_1::ProductShipping
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ProductShipping
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#country ⇒ String
The CLDR territory code of the country to which an item will ship.
-
#location_group_name ⇒ String
The location where the shipping is applicable, represented by a location group name.
-
#location_id ⇒ Fixnum
The numeric ID of a location that the shipping rate applies to as defined in the AdWords API.
-
#max_handling_time ⇒ Fixnum
Maximum handling time (inclusive) between when the order is received and shipped in business days.
-
#max_transit_time ⇒ Fixnum
Maximum transit time (inclusive) between when the order has shipped and when it is delivered in business days.
-
#min_handling_time ⇒ Fixnum
Minimum handling time (inclusive) between when the order is received and shipped in business days.
-
#min_transit_time ⇒ Fixnum
Minimum transit time (inclusive) between when the order has shipped and when it is delivered in business days.
-
#postal_code ⇒ String
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.
-
#price ⇒ Google::Apis::ContentV2_1::Price
Fixed shipping price, represented as a number.
-
#region ⇒ String
The geographic region to which a shipping rate applies.
-
#service ⇒ String
A free-form description of the service class or delivery speed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductShipping
constructor
A new instance of ProductShipping.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ProductShipping
Returns a new instance of ProductShipping.
10661 10662 10663 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10661 def initialize(**args) update!(**args) end |
Instance Attribute Details
#country ⇒ String
The CLDR territory code of the country to which an item will ship.
Corresponds to the JSON property country
10592 10593 10594 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10592 def country @country end |
#location_group_name ⇒ String
The location where the shipping is applicable, represented by a location group
name.
Corresponds to the JSON property locationGroupName
10598 10599 10600 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10598 def location_group_name @location_group_name end |
#location_id ⇒ Fixnum
The numeric ID of a location that the shipping rate applies to as defined in
the AdWords API.
Corresponds to the JSON property locationId
10604 10605 10606 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10604 def location_id @location_id end |
#max_handling_time ⇒ 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
10612 10613 10614 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10612 def max_handling_time @max_handling_time end |
#max_transit_time ⇒ 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
10620 10621 10622 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10620 def max_transit_time @max_transit_time end |
#min_handling_time ⇒ 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
10629 10630 10631 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10629 def min_handling_time @min_handling_time end |
#min_transit_time ⇒ 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
10637 10638 10639 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10637 def min_transit_time @min_transit_time end |
#postal_code ⇒ String
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
10644 10645 10646 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10644 def postal_code @postal_code end |
#price ⇒ Google::Apis::ContentV2_1::Price
Fixed shipping price, represented as a number.
Corresponds to the JSON property price
10649 10650 10651 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10649 def price @price end |
#region ⇒ String
The geographic region to which a shipping rate applies.
Corresponds to the JSON property region
10654 10655 10656 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10654 def region @region end |
#service ⇒ String
A free-form description of the service class or delivery speed.
Corresponds to the JSON property service
10659 10660 10661 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10659 def service @service end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10666 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 |