{-# 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.Accounttax.Custombatch
(
AccounttaxCustombatchResource
, accounttaxCustombatch
, AccounttaxCustombatch
, aaPayload
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type AccounttaxCustombatchResource =
"content" :>
"v2.1" :>
"accounttax" :>
"batch" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] AccounttaxCustomBatchRequest :>
Post '[JSON] AccounttaxCustomBatchResponse
newtype AccounttaxCustombatch = AccounttaxCustombatch'
{ _aaPayload :: AccounttaxCustomBatchRequest
} deriving (Eq,Show,Data,Typeable,Generic)
accounttaxCustombatch
:: AccounttaxCustomBatchRequest
-> AccounttaxCustombatch
accounttaxCustombatch pAaPayload_ =
AccounttaxCustombatch'
{ _aaPayload = pAaPayload_
}
aaPayload :: Lens' AccounttaxCustombatch AccounttaxCustomBatchRequest
aaPayload
= lens _aaPayload (\ s a -> s{_aaPayload = a})
instance GoogleRequest AccounttaxCustombatch where
type Rs AccounttaxCustombatch =
AccounttaxCustomBatchResponse
type Scopes AccounttaxCustombatch =
'["https://www.googleapis.com/auth/content"]
requestClient AccounttaxCustombatch'{..}
= go (Just AltJSON) _aaPayload shoppingContentService
where go
= buildClient
(Proxy :: Proxy AccounttaxCustombatchResource)
mempty