{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.Content.Pos.List
(
PosListResource
, posList
, PosList
, posMerchantId
, posTargetMerchantId
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type PosListResource =
"content" :>
"v2.1" :>
Capture "merchantId" (Textual Word64) :>
"pos" :>
Capture "targetMerchantId" (Textual Word64) :>
"store" :>
QueryParam "alt" AltJSON :>
Get '[JSON] PosListResponse
data PosList = PosList'
{ _posMerchantId :: !(Textual Word64)
, _posTargetMerchantId :: !(Textual Word64)
} deriving (Eq,Show,Data,Typeable,Generic)
posList
:: Word64
-> Word64
-> PosList
posList pPosMerchantId_ pPosTargetMerchantId_ =
PosList'
{ _posMerchantId = _Coerce # pPosMerchantId_
, _posTargetMerchantId = _Coerce # pPosTargetMerchantId_
}
posMerchantId :: Lens' PosList Word64
posMerchantId
= lens _posMerchantId
(\ s a -> s{_posMerchantId = a})
. _Coerce
posTargetMerchantId :: Lens' PosList Word64
posTargetMerchantId
= lens _posTargetMerchantId
(\ s a -> s{_posTargetMerchantId = a})
. _Coerce
instance GoogleRequest PosList where
type Rs PosList = PosListResponse
type Scopes PosList =
'["https://www.googleapis.com/auth/content"]
requestClient PosList'{..}
= go _posMerchantId _posTargetMerchantId
(Just AltJSON)
shoppingContentService
where go
= buildClient (Proxy :: Proxy PosListResource) mempty