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 |
Updates a Merchant Center account. This method supports patch semantics.
See: Content API for Shopping Reference for content.accounts.patch
.
- type AccountsPatchResource = "content" :> ("v2" :> (Capture "merchantId" (Textual Word64) :> ("accounts" :> (Capture "accountId" (Textual Word64) :> (QueryParam "dryRun" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Account :> Patch '[JSON] Account)))))))
- accountsPatch :: Word64 -> Account -> Word64 -> AccountsPatch
- data AccountsPatch
- apMerchantId :: Lens' AccountsPatch Word64
- apPayload :: Lens' AccountsPatch Account
- apAccountId :: Lens' AccountsPatch Word64
- apDryRun :: Lens' AccountsPatch (Maybe Bool)
REST Resource
type AccountsPatchResource = "content" :> ("v2" :> (Capture "merchantId" (Textual Word64) :> ("accounts" :> (Capture "accountId" (Textual Word64) :> (QueryParam "dryRun" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Account :> Patch '[JSON] Account))))))) Source #
A resource alias for content.accounts.patch
method which the
AccountsPatch
request conforms to.
Creating a Request
Creates a value of AccountsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AccountsPatch Source #
Updates a Merchant Center account. This method supports patch semantics.
See: accountsPatch
smart constructor.
Request Lenses
apMerchantId :: Lens' AccountsPatch Word64 Source #
The ID of the managing account.
apAccountId :: Lens' AccountsPatch Word64 Source #
The ID of the account.