{-# 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.Delete
(
PosDeleteResource
, posDelete
, PosDelete
, pdMerchantId
, pdStoreCode
, pdTargetMerchantId
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type PosDeleteResource =
"content" :>
"v2.1" :>
Capture "merchantId" (Textual Word64) :>
"pos" :>
Capture "targetMerchantId" (Textual Word64) :>
"store" :>
Capture "storeCode" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data PosDelete = PosDelete'
{ _pdMerchantId :: !(Textual Word64)
, _pdStoreCode :: !Text
, _pdTargetMerchantId :: !(Textual Word64)
} deriving (Eq,Show,Data,Typeable,Generic)
posDelete
:: Word64
-> Text
-> Word64
-> PosDelete
posDelete pPdMerchantId_ pPdStoreCode_ pPdTargetMerchantId_ =
PosDelete'
{ _pdMerchantId = _Coerce # pPdMerchantId_
, _pdStoreCode = pPdStoreCode_
, _pdTargetMerchantId = _Coerce # pPdTargetMerchantId_
}
pdMerchantId :: Lens' PosDelete Word64
pdMerchantId
= lens _pdMerchantId (\ s a -> s{_pdMerchantId = a})
. _Coerce
pdStoreCode :: Lens' PosDelete Text
pdStoreCode
= lens _pdStoreCode (\ s a -> s{_pdStoreCode = a})
pdTargetMerchantId :: Lens' PosDelete Word64
pdTargetMerchantId
= lens _pdTargetMerchantId
(\ s a -> s{_pdTargetMerchantId = a})
. _Coerce
instance GoogleRequest PosDelete where
type Rs PosDelete = ()
type Scopes PosDelete =
'["https://www.googleapis.com/auth/content"]
requestClient PosDelete'{..}
= go _pdMerchantId _pdTargetMerchantId _pdStoreCode
(Just AltJSON)
shoppingContentService
where go
= buildClient (Proxy :: Proxy PosDeleteResource)
mempty