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 |
Claims the website of a Merchant Center sub-account.
See: Content API for Shopping Reference for content.accounts.claimwebsite
.
Synopsis
- type AccountsClaimwebsiteResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("accounts" :> (Capture "accountId" (Textual Word64) :> ("claimwebsite" :> (QueryParam "overwrite" Bool :> (QueryParam "alt" AltJSON :> Post '[JSON] AccountsClaimWebsiteResponse)))))))
- accountsClaimwebsite :: Word64 -> Word64 -> AccountsClaimwebsite
- data AccountsClaimwebsite
- acMerchantId :: Lens' AccountsClaimwebsite Word64
- acAccountId :: Lens' AccountsClaimwebsite Word64
- acOverwrite :: Lens' AccountsClaimwebsite (Maybe Bool)
REST Resource
type AccountsClaimwebsiteResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("accounts" :> (Capture "accountId" (Textual Word64) :> ("claimwebsite" :> (QueryParam "overwrite" Bool :> (QueryParam "alt" AltJSON :> Post '[JSON] AccountsClaimWebsiteResponse))))))) Source #
A resource alias for content.accounts.claimwebsite
method which the
AccountsClaimwebsite
request conforms to.
Creating a Request
Creates a value of AccountsClaimwebsite
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AccountsClaimwebsite Source #
Claims the website of a Merchant Center sub-account.
See: accountsClaimwebsite
smart constructor.
Instances
Request Lenses
acMerchantId :: Lens' AccountsClaimwebsite Word64 Source #
The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.
acAccountId :: Lens' AccountsClaimwebsite Word64 Source #
The ID of the account whose website is claimed.
acOverwrite :: Lens' AccountsClaimwebsite (Maybe Bool) Source #
Only available to selected merchants. When set to True, this flag removes any existing claim on the requested website by another account and replaces it with a claim from this account.