class Google::Apis::ContentV2::InventoryBatchRequestEntry

A batch entry encoding a single non-batch inventory request.

Attributes

batch_id[RW]

An entry ID, unique within the batch request. Corresponds to the JSON property `batchId` @return [Fixnum]

inventory[RW]

Price and availability of the product. Corresponds to the JSON property `inventory` @return [Google::Apis::ContentV2::Inventory]

merchant_id[RW]

The ID of the managing account. Corresponds to the JSON property `merchantId` @return [Fixnum]

product_id[RW]

The ID of the product for which to update price and availability. Corresponds to the JSON property `productId` @return [String]

store_code[RW]

The code of the store for which to update price and availability. Use `online` to update price and availability of an online product. Corresponds to the JSON property `storeCode` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2/classes.rb, line 3081
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 3086
def update!(**args)
  @batch_id = args[:batch_id] if args.key?(:batch_id)
  @inventory = args[:inventory] if args.key?(:inventory)
  @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
  @product_id = args[:product_id] if args.key?(:product_id)
  @store_code = args[:store_code] if args.key?(:store_code)
end