class Google::Apis::ContentV2::PosSale
The change of the available quantity of an item at the given store.
Attributes
Required. The two-letter ISO 639-1 language code for the item. Corresponds to the JSON property `contentLanguage` @return [String]
Global Trade Item Number. Corresponds to the JSON property `gtin` @return [String]
Required. A unique identifier for the item. Corresponds to the JSON property `itemId` @return [String]
Identifies what kind of resource this is. Value: the fixed string “`content# posSale`” Corresponds to the JSON property `kind` @return [String]
Required. The price of the item. Corresponds to the JSON property `price` @return [Google::Apis::ContentV2::Price]
Required. The relative change of the available quantity. Negative for items returned. Corresponds to the JSON property `quantity` @return [Fixnum]
A unique ID to group items from the same sale event. Corresponds to the JSON property `saleId` @return [String]
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]
Required. The CLDR territory code for the item. Corresponds to the JSON property `targetCountry` @return [String]
Required. The inventory timestamp, in ISO 8601 format. Corresponds to the JSON property `timestamp` @return [String]
Public Class Methods
# File lib/google/apis/content_v2/classes.rb, line 8518 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/content_v2/classes.rb, line 8523 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) @sale_id = args[:sale_id] if args.key?(:sale_id) @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