| Copyright | (c) 2015 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Google.Resource.Content.Inventory.Set
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.
- 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)))))))))
- inventorySet :: Word64 -> Text -> InventorySetRequest -> Text -> InventorySet
- data InventorySet
- isMerchantId :: Lens' InventorySet Word64
- isStoreCode :: Lens' InventorySet Text
- isPayload :: Lens' InventorySet InventorySetRequest
- isProductId :: Lens' InventorySet Text
- isDryRun :: Lens' InventorySet (Maybe Bool)
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
Arguments
| :: Word64 | |
| -> Text | |
| -> InventorySetRequest | |
| -> Text | |
| -> InventorySet |
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.