Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Google_Service_ShoppingContent_Inventory_Resource Class Reference

The "inventory" collection of methods. More...

Inheritance diagram for Google_Service_ShoppingContent_Inventory_Resource:
Google_Service_Resource

Public Member Functions

 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 custombatch (Google_Service_ShoppingContent_InventoryCustomBatchRequest $postBody, $optParams=array())
 Updates price and availability for multiple products or stores in a single request.
 
 set ($merchantId, $storeCode, $productId, Google_Service_ShoppingContent_InventorySetRequest $postBody, $optParams=array())
 Updates price and availability of a product in your Merchant Center account.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "inventory" collection of methods.

Typical usage is: $contentService = new Google_Service_ShoppingContent(...); $inventory = $contentService->inventory;

Member Function Documentation

◆ call()

Google_Service_Resource::call ( $name,
$arguments,
$expected_class = null )
inherited

TODO: This function needs simplifying.

Parameters
$name
$arguments
$expected_class- optional, the expected class name
Return values
Google_Http_Request|expected_class
Exceptions
Google_Exception

◆ custombatch()

Google_Service_ShoppingContent_Inventory_Resource::custombatch ( Google_Service_ShoppingContent_InventoryCustomBatchRequest $postBody,
$optParams = array() )

Updates price and availability for multiple products or stores in a single request.

This operation does not update the expiration date of the products. (inventory.custombatch)

Parameters
Google_InventoryCustomBatchRequest$postBody
array$optParamsOptional parameters.

@opt_param bool dryRun Flag to run the request in dry-run mode.

Return values
Google_Service_ShoppingContent_InventoryCustomBatchResponse

◆ set()

Google_Service_ShoppingContent_Inventory_Resource::set ( $merchantId,
$storeCode,
$productId,
Google_Service_ShoppingContent_InventorySetRequest $postBody,
$optParams = array() )

Updates price and availability of a product in your Merchant Center account.

This operation does not update the expiration date of the product. (inventory.set)

Parameters
string$merchantIdThe ID of the managing account.
string$storeCodeThe code of the store for which to update price and availability. Use online to update price and availability of an online product.
string$productIdThe ID of the product for which to update price and availability.
Google_InventorySetRequest$postBody
array$optParamsOptional parameters.

@opt_param bool dryRun Flag to run the request in dry-run mode.

Return values
Google_Service_ShoppingContent_InventorySetResponse

The documentation for this class was generated from the following file: