gogol-shopping-content-0.2.0: Google Content API for Shopping SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Content.Accounttax.Patch

Contents

Description

Updates the tax settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account. This method supports patch semantics.

See: Content API for Shopping Reference for content.accounttax.patch.

Synopsis

REST Resource

type AccounttaxPatchResource = "content" :> ("v2" :> (Capture "merchantId" (Textual Word64) :> ("accounttax" :> (Capture "accountId" (Textual Word64) :> (QueryParam "dryRun" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AccountTax :> Patch '[JSON] AccountTax))))))) Source #

A resource alias for content.accounttax.patch method which the AccounttaxPatch request conforms to.

Creating a Request

accounttaxPatch Source #

Creates a value of AccounttaxPatch with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data AccounttaxPatch Source #

Updates the tax settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account. This method supports patch semantics.

See: accounttaxPatch smart constructor.

Instances

Eq AccounttaxPatch Source # 
Data AccounttaxPatch Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AccounttaxPatch -> c AccounttaxPatch #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AccounttaxPatch #

toConstr :: AccounttaxPatch -> Constr #

dataTypeOf :: AccounttaxPatch -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c AccounttaxPatch) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AccounttaxPatch) #

gmapT :: (forall b. Data b => b -> b) -> AccounttaxPatch -> AccounttaxPatch #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AccounttaxPatch -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AccounttaxPatch -> r #

gmapQ :: (forall d. Data d => d -> u) -> AccounttaxPatch -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AccounttaxPatch -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AccounttaxPatch -> m AccounttaxPatch #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AccounttaxPatch -> m AccounttaxPatch #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AccounttaxPatch -> m AccounttaxPatch #

Show AccounttaxPatch Source # 
Generic AccounttaxPatch Source # 
GoogleRequest AccounttaxPatch Source # 
type Rep AccounttaxPatch Source # 
type Rep AccounttaxPatch = D1 (MetaData "AccounttaxPatch" "Network.Google.Resource.Content.Accounttax.Patch" "gogol-shopping-content-0.2.0-1pAj2oGpAMt4E1jFF0ipBE" False) (C1 (MetaCons "AccounttaxPatch'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_appMerchantId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Word64))) (S1 (MetaSel (Just Symbol "_appPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 AccountTax))) ((:*:) (S1 (MetaSel (Just Symbol "_appAccountId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Word64))) (S1 (MetaSel (Just Symbol "_appDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))))
type Scopes AccounttaxPatch Source # 
type Scopes AccounttaxPatch = (:) Symbol "https://www.googleapis.com/auth/content" ([] Symbol)
type Rs AccounttaxPatch Source # 

Request Lenses

appMerchantId :: Lens' AccounttaxPatch Word64 Source #

The ID of the managing account.

appPayload :: Lens' AccounttaxPatch AccountTax Source #

Multipart request metadata.

appAccountId :: Lens' AccounttaxPatch Word64 Source #

The ID of the account for which to get/update account tax settings.

appDryRun :: Lens' AccounttaxPatch (Maybe Bool) Source #

Flag to run the request in dry-run mode.