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 Merchant Center sub-account.
See: Content API for Shopping Reference for content.accounts.delete
.
Synopsis
- type AccountsDeleteResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("accounts" :> (Capture "accountId" (Textual Word64) :> (QueryParam "force" Bool :> (QueryParam "alt" AltJSON :> Delete '[JSON] ()))))))
- accountsDelete :: Word64 -> Word64 -> AccountsDelete
- data AccountsDelete
- adMerchantId :: Lens' AccountsDelete Word64
- adForce :: Lens' AccountsDelete Bool
- adAccountId :: Lens' AccountsDelete Word64
REST Resource
type AccountsDeleteResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("accounts" :> (Capture "accountId" (Textual Word64) :> (QueryParam "force" Bool :> (QueryParam "alt" AltJSON :> Delete '[JSON] ())))))) Source #
A resource alias for content.accounts.delete
method which the
AccountsDelete
request conforms to.
Creating a Request
Creates a value of AccountsDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AccountsDelete Source #
Deletes a Merchant Center sub-account.
See: accountsDelete
smart constructor.
Instances
Request Lenses
adMerchantId :: Lens' AccountsDelete Word64 Source #
The ID of the managing account. This must be a multi-client account, and accountId must be the ID of a sub-account of this account.
adForce :: Lens' AccountsDelete Bool Source #
Flag to delete sub-accounts with products. The default value is false.
adAccountId :: Lens' AccountsDelete Word64 Source #
The ID of the account.