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.
See: Content API for Shopping Reference for content.accounts.update
.
- type AccountsUpdateResource = "content" :> ("v2" :> (Capture "merchantId" (Textual Word64) :> ("accounts" :> (Capture "accountId" (Textual Word64) :> (QueryParam "dryRun" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Account :> Put '[JSON] Account)))))))
- accountsUpdate :: Word64 -> Account -> Word64 -> AccountsUpdate
- data AccountsUpdate
- au1MerchantId :: Lens' AccountsUpdate Word64
- au1Payload :: Lens' AccountsUpdate Account
- au1AccountId :: Lens' AccountsUpdate Word64
- au1DryRun :: Lens' AccountsUpdate (Maybe Bool)
REST Resource
type AccountsUpdateResource = "content" :> ("v2" :> (Capture "merchantId" (Textual Word64) :> ("accounts" :> (Capture "accountId" (Textual Word64) :> (QueryParam "dryRun" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Account :> Put '[JSON] Account))))))) Source #
A resource alias for content.accounts.update
method which the
AccountsUpdate
request conforms to.
Creating a Request
Creates a value of AccountsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AccountsUpdate Source #
Updates a Merchant Center account.
See: accountsUpdate
smart constructor.
Request Lenses
au1MerchantId :: Lens' AccountsUpdate Word64 Source #
The ID of the managing account.
au1Payload :: Lens' AccountsUpdate Account Source #
Multipart request metadata.
au1AccountId :: Lens' AccountsUpdate Word64 Source #
The ID of the account.