{-# 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.Get
(
AccounttaxGetResource
, accounttaxGet
, AccounttaxGet
, aggMerchantId
, aggAccountId
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type AccounttaxGetResource =
"content" :>
"v2.1" :>
Capture "merchantId" (Textual Word64) :>
"accounttax" :>
Capture "accountId" (Textual Word64) :>
QueryParam "alt" AltJSON :> Get '[JSON] AccountTax
data AccounttaxGet = AccounttaxGet'
{ _aggMerchantId :: !(Textual Word64)
, _aggAccountId :: !(Textual Word64)
} deriving (Eq,Show,Data,Typeable,Generic)
accounttaxGet
:: Word64
-> Word64
-> AccounttaxGet
accounttaxGet pAggMerchantId_ pAggAccountId_ =
AccounttaxGet'
{ _aggMerchantId = _Coerce # pAggMerchantId_
, _aggAccountId = _Coerce # pAggAccountId_
}
aggMerchantId :: Lens' AccounttaxGet Word64
aggMerchantId
= lens _aggMerchantId
(\ s a -> s{_aggMerchantId = a})
. _Coerce
aggAccountId :: Lens' AccounttaxGet Word64
aggAccountId
= lens _aggAccountId (\ s a -> s{_aggAccountId = a})
. _Coerce
instance GoogleRequest AccounttaxGet where
type Rs AccounttaxGet = AccountTax
type Scopes AccounttaxGet =
'["https://www.googleapis.com/auth/content"]
requestClient AccounttaxGet'{..}
= go _aggMerchantId _aggAccountId (Just AltJSON)
shoppingContentService
where go
= buildClient (Proxy :: Proxy AccounttaxGetResource)
mempty