{-# 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.List
(
AccounttaxListResource
, accounttaxList
, AccounttaxList
, al1MerchantId
, al1PageToken
, al1MaxResults
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type AccounttaxListResource =
"content" :>
"v2.1" :>
Capture "merchantId" (Textual Word64) :>
"accounttax" :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] AccounttaxListResponse
data AccounttaxList = AccounttaxList'
{ _al1MerchantId :: !(Textual Word64)
, _al1PageToken :: !(Maybe Text)
, _al1MaxResults :: !(Maybe (Textual Word32))
} deriving (Eq,Show,Data,Typeable,Generic)
accounttaxList
:: Word64
-> AccounttaxList
accounttaxList pAl1MerchantId_ =
AccounttaxList'
{ _al1MerchantId = _Coerce # pAl1MerchantId_
, _al1PageToken = Nothing
, _al1MaxResults = Nothing
}
al1MerchantId :: Lens' AccounttaxList Word64
al1MerchantId
= lens _al1MerchantId
(\ s a -> s{_al1MerchantId = a})
. _Coerce
al1PageToken :: Lens' AccounttaxList (Maybe Text)
al1PageToken
= lens _al1PageToken (\ s a -> s{_al1PageToken = a})
al1MaxResults :: Lens' AccounttaxList (Maybe Word32)
al1MaxResults
= lens _al1MaxResults
(\ s a -> s{_al1MaxResults = a})
. mapping _Coerce
instance GoogleRequest AccounttaxList where
type Rs AccounttaxList = AccounttaxListResponse
type Scopes AccounttaxList =
'["https://www.googleapis.com/auth/content"]
requestClient AccounttaxList'{..}
= go _al1MerchantId _al1PageToken _al1MaxResults
(Just AltJSON)
shoppingContentService
where go
= buildClient (Proxy :: Proxy AccounttaxListResource)
mempty