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.
-
#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.
10132 10133 10134 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10132 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
10096 10097 10098 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10096 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
10102 10103 10104 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10102 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
10108 10109 10110 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10108 def location_id @location_id 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
10115 10116 10117 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10115 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
10120 10121 10122 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10120 def price @price end |
#region ⇒ String
The geographic region to which a shipping rate applies.
Corresponds to the JSON property region
10125 10126 10127 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10125 def region @region end |
#service ⇒ String
A free-form description of the service class or delivery speed.
Corresponds to the JSON property service
10130 10131 10132 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10130 def service @service end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10137 10138 10139 10140 10141 10142 10143 10144 10145 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10137 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) @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 |