Copyright | (c) 2015-2016 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 |
Update the regional inventory of a product in your Merchant Center account. If a regional inventory with the same region ID already exists, this method updates that entry.
See: Content API for Shopping Reference for content.regionalinventory.insert
.
Synopsis
- type RegionalinventoryInsertResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("products" :> (Capture "productId" Text :> ("regionalinventory" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RegionalInventory :> Post '[JSON] RegionalInventory)))))))
- regionalinventoryInsert :: Word64 -> RegionalInventory -> Text -> RegionalinventoryInsert
- data RegionalinventoryInsert
- riMerchantId :: Lens' RegionalinventoryInsert Word64
- riPayload :: Lens' RegionalinventoryInsert RegionalInventory
- riProductId :: Lens' RegionalinventoryInsert Text
REST Resource
type RegionalinventoryInsertResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("products" :> (Capture "productId" Text :> ("regionalinventory" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RegionalInventory :> Post '[JSON] RegionalInventory))))))) Source #
A resource alias for content.regionalinventory.insert
method which the
RegionalinventoryInsert
request conforms to.
Creating a Request
regionalinventoryInsert Source #
Creates a value of RegionalinventoryInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data RegionalinventoryInsert Source #
Update the regional inventory of a product in your Merchant Center account. If a regional inventory with the same region ID already exists, this method updates that entry.
See: regionalinventoryInsert
smart constructor.
Instances
Request Lenses
riMerchantId :: Lens' RegionalinventoryInsert Word64 Source #
The ID of the account that contains the product. This account cannot be a multi-client account.
riPayload :: Lens' RegionalinventoryInsert RegionalInventory Source #
Multipart request metadata.
riProductId :: Lens' RegionalinventoryInsert Text Source #
The REST ID of the product for which to update the regional inventory.