class Google::Apis::ContentV2_1::LocalInventory

Local inventory resource. For accepted attribute values, see the local product inventory feed specification.

Attributes

availability[RW]

Availability of the product. For accepted attribute values, see the local product inventory feed specification. Corresponds to the JSON property `availability` @return [String]

instore_product_location[RW]

In-store product location. Corresponds to the JSON property `instoreProductLocation` @return [String]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “`content# localInventory`” Corresponds to the JSON property `kind` @return [String]

pickup_method[RW]

Supported pickup method for this offer. Unless the value is “not supported”, this field must be submitted together with `pickupSla`. For accepted attribute values, see the local product inventory feed // specification. Corresponds to the JSON property `pickupMethod` @return [String]

pickup_sla[RW]

Expected date that an order will be ready for pickup relative to the order date. Must be submitted together with `pickupMethod`. For accepted attribute values, see the local product inventory feed specification. Corresponds to the JSON property `pickupSla` @return [String]

price[RW]

Price of the product. Corresponds to the JSON property `price` @return [Google::Apis::ContentV2_1::Price]

quantity[RW]

Quantity of the product. Must be nonnegative. Corresponds to the JSON property `quantity` @return [Fixnum]

sale_price[RW]

Sale price of the product. Mandatory if `sale_price_effective_date` is defined. Corresponds to the JSON property `salePrice` @return [Google::Apis::ContentV2_1::Price]

sale_price_effective_date[RW]

A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash. Both dates may be specified as 'null' if undecided. Corresponds to the JSON property `salePriceEffectiveDate` @return [String]

store_code[RW]

Required. Store code of this local inventory resource. Corresponds to the JSON property `storeCode` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2_1/classes.rb, line 4608
def update!(**args)
  @availability = args[:availability] if args.key?(:availability)
  @instore_product_location = args[:instore_product_location] if args.key?(:instore_product_location)
  @kind = args[:kind] if args.key?(:kind)
  @pickup_method = args[:pickup_method] if args.key?(:pickup_method)
  @pickup_sla = args[:pickup_sla] if args.key?(:pickup_sla)
  @price = args[:price] if args.key?(:price)
  @quantity = args[:quantity] if args.key?(:quantity)
  @sale_price = args[:sale_price] if args.key?(:sale_price)
  @sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date)
  @store_code = args[:store_code] if args.key?(:store_code)
end