gogol-shopping-content-0.0.1: Google Content API for Shopping SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Content.Inventory.Set

Contents

Description

Updates price and availability of a product in your Merchant Center account. This operation does not update the expiration date of the product.

See: Content API for Shopping Reference for content.inventory.set.

Synopsis

REST Resource

type InventorySetResource = "content" :> ("v2" :> (Capture "merchantId" (Textual Word64) :> ("inventory" :> (Capture "storeCode" Text :> ("products" :> (Capture "productId" Text :> (QueryParam "dryRun" Bool :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` InventorySetRequest :> Post `[JSON]` InventorySetResponse))))))))) Source

A resource alias for content.inventory.set method which the InventorySet request conforms to.

Creating a Request

inventorySet Source

Creates a value of InventorySet with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data InventorySet Source

Updates price and availability of a product in your Merchant Center account. This operation does not update the expiration date of the product.

See: inventorySet smart constructor.

Request Lenses

isMerchantId :: Lens' InventorySet Word64 Source

The ID of the managing account.

isStoreCode :: Lens' InventorySet Text Source

The code of the store for which to update price and availability. Use online to update price and availability of an online product.

isPayload :: Lens' InventorySet InventorySetRequest Source

Multipart request metadata.

isProductId :: Lens' InventorySet Text Source

The ID of the product for which to update price and availability.

isDryRun :: Lens' InventorySet (Maybe Bool) Source

Flag to run the request in dry-run mode.