class Google::Apis::ContentV2::AccountShippingCondition

Attributes

delivery_location_group[RW]

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` @return [String]

delivery_location_id[RW]

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` @return [String]

delivery_postal_code[RW]

Delivery location in terms of a postal code. Corresponds to the JSON property `deliveryPostalCode` @return [String]

delivery_postal_code_range[RW]

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` @return [Google::Apis::ContentV2::AccountShippingPostalCodeRange]

price_max[RW]

Maximum shipping price. Forms an interval between the maximum of smaller prices (exclusive) and this price (inclusive). Corresponds to the JSON property `priceMax` @return [Google::Apis::ContentV2::Price]

shipping_label[RW]

Shipping label of the product. The products with the label are matched. Corresponds to the JSON property `shippingLabel` @return [String]

weight_max[RW]

Maximum shipping weight. Forms an interval between the maximum of smaller weight (exclusive) and this weight (inclusive). Corresponds to the JSON property `weightMax` @return [Google::Apis::ContentV2::Weight]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/content_v2/classes.rb, line 311
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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