class Google::Apis::ContentV2::PosCustomBatchRequestEntry
Attributes
An entry ID, unique within the batch request. Corresponds to the JSON property `batchId` @return [Fixnum]
The absolute quantity of an item available at the given store. Corresponds to the JSON property `inventory` @return [Google::Apis::ContentV2::PosInventory]
The ID of the POS data provider. Corresponds to the JSON property `merchantId` @return [Fixnum]
The method of the batch entry. Acceptable values are: - “`delete`” - “`get`” - “`insert`” - “`inventory`” - “`sale`” Corresponds to the JSON property `method` @return [String]
The change of the available quantity of an item at the given store. Corresponds to the JSON property `sale` @return [Google::Apis::ContentV2::PosSale]
Store resource. Corresponds to the JSON property `store` @return [Google::Apis::ContentV2::PosStore]
The store code. This should be set only if the method is `delete` or `get`. Corresponds to the JSON property `storeCode` @return [String]
The ID of the account for which to get/submit data. Corresponds to the JSON property `targetMerchantId` @return [Fixnum]
Public Class Methods
# File lib/google/apis/content_v2/classes.rb, line 8086 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/content_v2/classes.rb, line 8091 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) @method_prop = args[:method_prop] if args.key?(:method_prop) @sale = args[:sale] if args.key?(:sale) @store = args[:store] if args.key?(:store) @store_code = args[:store_code] if args.key?(:store_code) @target_merchant_id = args[:target_merchant_id] if args.key?(:target_merchant_id) end