class Google::Apis::ContentV2::PosInventory

The absolute quantity of an item available at the given store.

Attributes

content_language[RW]

Required. The two-letter ISO 639-1 language code for the item. Corresponds to the JSON property `contentLanguage` @return [String]

gtin[RW]

Global Trade Item Number. Corresponds to the JSON property `gtin` @return [String]

item_id[RW]

Required. A unique identifier for the item. Corresponds to the JSON property `itemId` @return [String]

kind[RW]

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

price[RW]

Required. The current price of the item. Corresponds to the JSON property `price` @return [Google::Apis::ContentV2::Price]

quantity[RW]

Required. The available quantity of the item. Corresponds to the JSON property `quantity` @return [Fixnum]

store_code[RW]

Required. The identifier of the merchant's store. Either a `storeCode` inserted via the API or the code of the store in Google My Business. Corresponds to the JSON property `storeCode` @return [String]

target_country[RW]

Required. The CLDR territory code for the item. Corresponds to the JSON property `targetCountry` @return [String]

timestamp[RW]

Required. The inventory timestamp, in ISO 8601 format. Corresponds to the JSON property `timestamp` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2/classes.rb, line 8286
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/classes.rb, line 8291
def update!(**args)
  @content_language = args[:content_language] if args.key?(:content_language)
  @gtin = args[:gtin] if args.key?(:gtin)
  @item_id = args[:item_id] if args.key?(:item_id)
  @kind = args[:kind] if args.key?(:kind)
  @price = args[:price] if args.key?(:price)
  @quantity = args[:quantity] if args.key?(:quantity)
  @store_code = args[:store_code] if args.key?(:store_code)
  @target_country = args[:target_country] if args.key?(:target_country)
  @timestamp = args[:timestamp] if args.key?(:timestamp)
end