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 |
Submit a sale event for the given merchant.
See: Content API for Shopping Reference for content.pos.sale
.
Synopsis
- type PosSaleResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("pos" :> (Capture "targetMerchantId" (Textual Word64) :> ("sale" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PosSaleRequest :> Post '[JSON] PosSaleResponse)))))))
- posSale' :: Word64 -> Word64 -> PosSaleRequest -> PosSale'
- data PosSale'
- psMerchantId :: Lens' PosSale' Word64
- psTargetMerchantId :: Lens' PosSale' Word64
- psPayload :: Lens' PosSale' PosSaleRequest
REST Resource
type PosSaleResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("pos" :> (Capture "targetMerchantId" (Textual Word64) :> ("sale" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PosSaleRequest :> Post '[JSON] PosSaleResponse))))))) Source #
A resource alias for content.pos.sale
method which the
PosSale'
request conforms to.
Creating a Request
Creates a value of PosSale'
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Submit a sale event for the given merchant.
See: posSale'
smart constructor.
Instances
Eq PosSale' Source # | |
Data PosSale' Source # | |
Defined in Network.Google.Resource.Content.Pos.Sale gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PosSale' -> c PosSale' # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PosSale' # toConstr :: PosSale' -> Constr # dataTypeOf :: PosSale' -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PosSale') # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PosSale') # gmapT :: (forall b. Data b => b -> b) -> PosSale' -> PosSale' # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PosSale' -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PosSale' -> r # gmapQ :: (forall d. Data d => d -> u) -> PosSale' -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> PosSale' -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> PosSale' -> m PosSale' # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PosSale' -> m PosSale' # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PosSale' -> m PosSale' # | |
Show PosSale' Source # | |
Generic PosSale' Source # | |
GoogleRequest PosSale' Source # | |
type Rep PosSale' Source # | |
Defined in Network.Google.Resource.Content.Pos.Sale type Rep PosSale' = D1 (MetaData "PosSale'" "Network.Google.Resource.Content.Pos.Sale" "gogol-shopping-content-0.4.0-BIsXJOofTh8GkBklIAn8Hh" False) (C1 (MetaCons "PosSale''" PrefixI True) (S1 (MetaSel (Just "_psMerchantId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Word64)) :*: (S1 (MetaSel (Just "_psTargetMerchantId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Word64)) :*: S1 (MetaSel (Just "_psPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 PosSaleRequest)))) | |
type Scopes PosSale' Source # | |
Defined in Network.Google.Resource.Content.Pos.Sale | |
type Rs PosSale' Source # | |
Defined in Network.Google.Resource.Content.Pos.Sale |