generated/google/apis/content_v2_1/service.rb in google-api-client-0.37.3 vs generated/google/apis/content_v2_1/service.rb in google-api-client-0.38.0
- old
+ new
@@ -1492,9 +1492,82 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
+ # Updates local inventory for multiple products or stores in a single request.
+ # @param [Google::Apis::ContentV2_1::LocalinventoryCustomBatchRequest] localinventory_custom_batch_request_object
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
+ # characters.
+ # @param [String] user_ip
+ # Deprecated. Please use quotaUser instead.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::ContentV2_1::LocalinventoryCustomBatchResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::ContentV2_1::LocalinventoryCustomBatchResponse]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def custombatch_localinventory(localinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
+ command = make_simple_command(:post, 'localinventory/batch', options)
+ command.request_representation = Google::Apis::ContentV2_1::LocalinventoryCustomBatchRequest::Representation
+ command.request_object = localinventory_custom_batch_request_object
+ command.response_representation = Google::Apis::ContentV2_1::LocalinventoryCustomBatchResponse::Representation
+ command.response_class = Google::Apis::ContentV2_1::LocalinventoryCustomBatchResponse
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ command.query['userIp'] = user_ip unless user_ip.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # Update the local inventory of a product in your Merchant Center account.
+ # @param [Fixnum] merchant_id
+ # The ID of the account that contains the product. This account cannot be a
+ # multi-client account.
+ # @param [String] product_id
+ # The REST ID of the product for which to update local inventory.
+ # @param [Google::Apis::ContentV2_1::LocalInventory] local_inventory_object
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
+ # characters.
+ # @param [String] user_ip
+ # Deprecated. Please use quotaUser instead.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::ContentV2_1::LocalInventory] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::ContentV2_1::LocalInventory]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def insert_localinventory(merchant_id, product_id, local_inventory_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
+ command = make_simple_command(:post, '{merchantId}/products/{productId}/localinventory', options)
+ command.request_representation = Google::Apis::ContentV2_1::LocalInventory::Representation
+ command.request_object = local_inventory_object
+ command.response_representation = Google::Apis::ContentV2_1::LocalInventory::Representation
+ command.response_class = Google::Apis::ContentV2_1::LocalInventory
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
+ command.params['productId'] = product_id unless product_id.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ command.query['userIp'] = user_ip unless user_ip.nil?
+ execute_or_queue_command(command, &block)
+ end
+
# Creates a charge invoice for a shipment group, and triggers a charge capture
# for orderinvoice enabled orders.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.