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.Inventory.Set

Contents

Description

Updates price and availability of a product in your Merchant Center account. This operation does not update the expiration date of the product. This method can only be called for non-multi-client accounts.

See: Content API for Shopping Reference for content.inventory.set.

Synopsis

REST Resource

type InventorySetResource = "content" :> ("v2" :> (Capture "merchantId" (Textual Word64) :> ("inventory" :> (Capture "storeCode" Text :> ("products" :> (Capture "productId" Text :> (QueryParam "dryRun" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] InventorySetRequest :> Post '[JSON] InventorySetResponse))))))))) Source #

A resource alias for content.inventory.set method which the InventorySet request conforms to.

Creating a Request

inventorySet Source #

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

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

data InventorySet Source #

Updates price and availability of a product in your Merchant Center account. This operation does not update the expiration date of the product. This method can only be called for non-multi-client accounts.

See: inventorySet smart constructor.

Instances

Eq InventorySet Source # 
Data InventorySet Source # 

Methods

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

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

toConstr :: InventorySet -> Constr #

dataTypeOf :: InventorySet -> DataType #

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

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

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

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

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

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

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

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

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

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

Show InventorySet Source # 
Generic InventorySet Source # 

Associated Types

type Rep InventorySet :: * -> * #

GoogleRequest InventorySet Source # 

Associated Types

type Rs InventorySet :: * #

type Scopes InventorySet :: [Symbol] #

type Rep InventorySet Source # 
type Rep InventorySet = D1 (MetaData "InventorySet" "Network.Google.Resource.Content.Inventory.Set" "gogol-shopping-content-0.2.0-1pAj2oGpAMt4E1jFF0ipBE" False) (C1 (MetaCons "InventorySet'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_isMerchantId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Word64))) (S1 (MetaSel (Just Symbol "_isStoreCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_isPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 InventorySetRequest)) ((:*:) (S1 (MetaSel (Just Symbol "_isProductId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_isDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))))))
type Scopes InventorySet Source # 
type Scopes InventorySet = (:) Symbol "https://www.googleapis.com/auth/content" ([] Symbol)
type Rs InventorySet Source # 

Request Lenses

isMerchantId :: Lens' InventorySet Word64 Source #

The ID of the managing account.

isStoreCode :: Lens' InventorySet Text Source #

The code of the store for which to update price and availability. Use online to update price and availability of an online product.

isPayload :: Lens' InventorySet InventorySetRequest Source #

Multipart request metadata.

isProductId :: Lens' InventorySet Text Source #

The ID of the product for which to update price and availability.

isDryRun :: Lens' InventorySet (Maybe Bool) Source #

Flag to run the request in dry-run mode.