class Google::Apis::ContentV2::PosCustomBatchRequestEntry

Attributes

batch_id[RW]

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

inventory[RW]

The absolute quantity of an item available at the given store. Corresponds to the JSON property `inventory` @return [Google::Apis::ContentV2::PosInventory]

merchant_id[RW]

The ID of the POS data provider. Corresponds to the JSON property `merchantId` @return [Fixnum]

method_prop[RW]

The method of the batch entry. Acceptable values are: - “`delete`” - “`get`” - “`insert`” - “`inventory`” - “`sale`” Corresponds to the JSON property `method` @return [String]

sale[RW]

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[RW]

Store resource. Corresponds to the JSON property `store` @return [Google::Apis::ContentV2::PosStore]

store_code[RW]

The store code. This should be set only if the method is `delete` or `get`. Corresponds to the JSON property `storeCode` @return [String]

target_merchant_id[RW]

The ID of the account for which to get/submit data. Corresponds to the JSON property `targetMerchantId` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2/classes.rb, line 8086
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 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