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 |
Deletes a product from your Merchant Center account.
See: Content API for Shopping Reference for content.products.delete
.
- type ProductsDeleteResource = "content" :> ("v2" :> (Capture "merchantId" (Textual Word64) :> ("products" :> (Capture "productId" Text :> (QueryParam "dryRun" Bool :> (QueryParam "alt" AltJSON :> Delete '[JSON] ()))))))
- productsDelete :: Word64 -> Text -> ProductsDelete
- data ProductsDelete
- pdMerchantId :: Lens' ProductsDelete Word64
- pdProductId :: Lens' ProductsDelete Text
- pdDryRun :: Lens' ProductsDelete (Maybe Bool)
REST Resource
type ProductsDeleteResource = "content" :> ("v2" :> (Capture "merchantId" (Textual Word64) :> ("products" :> (Capture "productId" Text :> (QueryParam "dryRun" Bool :> (QueryParam "alt" AltJSON :> Delete '[JSON] ())))))) Source #
A resource alias for content.products.delete
method which the
ProductsDelete
request conforms to.
Creating a Request
Creates a value of ProductsDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProductsDelete Source #
Deletes a product from your Merchant Center account.
See: productsDelete
smart constructor.
Request Lenses
pdMerchantId :: Lens' ProductsDelete Word64 Source #
The ID of the managing account.
pdProductId :: Lens' ProductsDelete Text Source #
The ID of the product.