Class: Google::Apis::ContentV2::AccountShippingCondition
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::AccountShippingCondition
- Defined in:
- generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb
Instance Attribute Summary collapse
-
#delivery_location_group ⇒ String
Delivery location in terms of a location group name.
-
#delivery_location_id ⇒ String
Delivery location in terms of a location ID.
-
#delivery_postal_code ⇒ String
Delivery location in terms of a postal code.
-
#delivery_postal_code_range ⇒ Google::Apis::ContentV2::AccountShippingPostalCodeRange
A postal code range, that can be either: - A range of postal codes (e.g., start=12340, end=12359) - A range of postal codes prefixes (e.g., start=1234* end=1235*).
-
#price_max ⇒ Google::Apis::ContentV2::Price
Maximum shipping price.
-
#shipping_label ⇒ String
Shipping label of the product.
-
#weight_max ⇒ Google::Apis::ContentV2::Weight
Maximum shipping weight.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccountShippingCondition
constructor
A new instance of AccountShippingCondition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ AccountShippingCondition
Returns a new instance of AccountShippingCondition
312 313 314 |
# File 'generated/google/apis/content_v2/classes.rb', line 312 def initialize(**args) update!(**args) end |
Instance Attribute Details
#delivery_location_group ⇒ String
Delivery location in terms of a location group name. A location group with
this name must be specified among location groups.
Corresponds to the JSON property deliveryLocationGroup
274 275 276 |
# File 'generated/google/apis/content_v2/classes.rb', line 274 def delivery_location_group @delivery_location_group end |
#delivery_location_id ⇒ String
Delivery location in terms of a location ID. Can be used to represent
administrative areas, smaller country subdivisions, or cities.
Corresponds to the JSON property deliveryLocationId
280 281 282 |
# File 'generated/google/apis/content_v2/classes.rb', line 280 def delivery_location_id @delivery_location_id end |
#delivery_postal_code ⇒ String
Delivery location in terms of a postal code.
Corresponds to the JSON property deliveryPostalCode
285 286 287 |
# File 'generated/google/apis/content_v2/classes.rb', line 285 def delivery_postal_code @delivery_postal_code end |
#delivery_postal_code_range ⇒ Google::Apis::ContentV2::AccountShippingPostalCodeRange
A postal code range, that can be either:
- A range of postal codes (e.g., start=12340, end=12359)
- A range of postal codes prefixes (e.g., start=1234* end=1235*). Prefixes
must be of the same length (e.g., start=12* end=2* is invalid).
Corresponds to the JSON property
deliveryPostalCodeRange
293 294 295 |
# File 'generated/google/apis/content_v2/classes.rb', line 293 def delivery_postal_code_range @delivery_postal_code_range end |
#price_max ⇒ Google::Apis::ContentV2::Price
Maximum shipping price. Forms an interval between the maximum of smaller
prices (exclusive) and this price (inclusive).
Corresponds to the JSON property priceMax
299 300 301 |
# File 'generated/google/apis/content_v2/classes.rb', line 299 def price_max @price_max end |
#shipping_label ⇒ String
Shipping label of the product. The products with the label are matched.
Corresponds to the JSON property shippingLabel
304 305 306 |
# File 'generated/google/apis/content_v2/classes.rb', line 304 def shipping_label @shipping_label end |
#weight_max ⇒ Google::Apis::ContentV2::Weight
Maximum shipping weight. Forms an interval between the maximum of smaller
weight (exclusive) and this weight (inclusive).
Corresponds to the JSON property weightMax
310 311 312 |
# File 'generated/google/apis/content_v2/classes.rb', line 310 def weight_max @weight_max end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
317 318 319 320 321 322 323 324 325 |
# File 'generated/google/apis/content_v2/classes.rb', line 317 def update!(**args) @delivery_location_group = args[:delivery_location_group] if args.key?(:delivery_location_group) @delivery_location_id = args[:delivery_location_id] if args.key?(:delivery_location_id) @delivery_postal_code = args[:delivery_postal_code] if args.key?(:delivery_postal_code) @delivery_postal_code_range = args[:delivery_postal_code_range] if args.key?(:delivery_postal_code_range) @price_max = args[:price_max] if args.key?(:price_max) @shipping_label = args[:shipping_label] if args.key?(:shipping_label) @weight_max = args[:weight_max] if args.key?(:weight_max) end |