Class: Google::Apis::ContentV2::AccountShippingCondition

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AccountShippingCondition

Returns a new instance of AccountShippingCondition.



311
312
313
# File 'generated/google/apis/content_v2/classes.rb', line 311

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#delivery_location_groupString

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

Returns:

  • (String)


273
274
275
# File 'generated/google/apis/content_v2/classes.rb', line 273

def delivery_location_group
  @delivery_location_group
end

#delivery_location_idString

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

Returns:

  • (String)


279
280
281
# File 'generated/google/apis/content_v2/classes.rb', line 279

def delivery_location_id
  @delivery_location_id
end

#delivery_postal_codeString

Delivery location in terms of a postal code. Corresponds to the JSON property deliveryPostalCode

Returns:

  • (String)


284
285
286
# File 'generated/google/apis/content_v2/classes.rb', line 284

def delivery_postal_code
  @delivery_postal_code
end

#delivery_postal_code_rangeGoogle::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


292
293
294
# File 'generated/google/apis/content_v2/classes.rb', line 292

def delivery_postal_code_range
  @delivery_postal_code_range
end

#price_maxGoogle::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



298
299
300
# File 'generated/google/apis/content_v2/classes.rb', line 298

def price_max
  @price_max
end

#shipping_labelString

Shipping label of the product. The products with the label are matched. Corresponds to the JSON property shippingLabel

Returns:

  • (String)


303
304
305
# File 'generated/google/apis/content_v2/classes.rb', line 303

def shipping_label
  @shipping_label
end

#weight_maxGoogle::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



309
310
311
# File 'generated/google/apis/content_v2/classes.rb', line 309

def weight_max
  @weight_max
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



316
317
318
319
320
321
322
323
324
# File 'generated/google/apis/content_v2/classes.rb', line 316

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