gogol-shopping-content-0.3.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))))))) #

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

Creating a Request

accounttaxPatch #

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 #

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 # 
Data AccounttaxPatch # 

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 # 
Generic AccounttaxPatch # 
GoogleRequest AccounttaxPatch # 
type Rep AccounttaxPatch # 
type Rep AccounttaxPatch = D1 (MetaData "AccounttaxPatch" "Network.Google.Resource.Content.Accounttax.Patch" "gogol-shopping-content-0.3.0-LrA1hl2DxGRCu2YHaOTVzr" False) (C1 (MetaCons "AccounttaxPatch'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_appMerchantId") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 (Textual Word64))) (S1 (MetaSel (Just Symbol "_appPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 AccountTax))) ((:*:) (S1 (MetaSel (Just Symbol "_appAccountId") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 (Textual Word64))) (S1 (MetaSel (Just Symbol "_appDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))))
type Scopes AccounttaxPatch # 
type Scopes AccounttaxPatch = (:) Symbol "https://www.googleapis.com/auth/content" ([] Symbol)
type Rs AccounttaxPatch # 

Request Lenses

appMerchantId :: Lens' AccounttaxPatch Word64 #

The ID of the managing account.

appPayload :: Lens' AccounttaxPatch AccountTax #

Multipart request metadata.

appAccountId :: Lens' AccounttaxPatch Word64 #

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

appDryRun :: Lens' AccounttaxPatch (Maybe Bool) #

Flag to run the request in dry-run mode.