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 |
Creates a Merchant Center sub-account.
See: Content API for Shopping Reference for content.accounts.insert
.
Synopsis
- type AccountsInsertResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("accounts" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Account :> Post '[JSON] Account)))))
- accountsInsert :: Word64 -> Account -> AccountsInsert
- data AccountsInsert
- aMerchantId :: Lens' AccountsInsert Word64
- aPayload :: Lens' AccountsInsert Account
REST Resource
type AccountsInsertResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("accounts" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Account :> Post '[JSON] Account))))) Source #
A resource alias for content.accounts.insert
method which the
AccountsInsert
request conforms to.
Creating a Request
Creates a value of AccountsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AccountsInsert Source #
Creates a Merchant Center sub-account.
See: accountsInsert
smart constructor.
Instances
Request Lenses
aMerchantId :: Lens' AccountsInsert Word64 Source #
The ID of the managing account. This must be a multi-client account.