{-# 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 -- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Retrieves the tax settings of the account. -- -- /See:/ for @content.accounttax.get@. module Network.Google.Resource.Content.Accounttax.Get ( -- * REST Resource AccounttaxGetResource -- * Creating a Request , accounttaxGet , AccounttaxGet -- * Request Lenses , aggMerchantId , aggAccountId ) where import Network.Google.Prelude import Network.Google.ShoppingContent.Types -- | A resource alias for @content.accounttax.get@ method which the -- 'AccounttaxGet' request conforms to. type AccounttaxGetResource = "content" :> "v2" :> Capture "merchantId" (Textual Word64) :> "accounttax" :> Capture "accountId" (Textual Word64) :> QueryParam "alt" AltJSON :> Get '[JSON] AccountTax -- | Retrieves the tax settings of the account. -- -- /See:/ 'accounttaxGet' smart constructor. data AccounttaxGet = AccounttaxGet' { _aggMerchantId :: !(Textual Word64) , _aggAccountId :: !(Textual Word64) } deriving (Eq,Show,Data,Typeable,Generic) -- | Creates a value of 'AccounttaxGet' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'aggMerchantId' -- -- * 'aggAccountId' accounttaxGet :: Word64 -- ^ 'aggMerchantId' -> Word64 -- ^ 'aggAccountId' -> AccounttaxGet accounttaxGet pAggMerchantId_ pAggAccountId_ = AccounttaxGet' { _aggMerchantId = _Coerce # pAggMerchantId_ , _aggAccountId = _Coerce # pAggAccountId_ } -- | The ID of the managing account. aggMerchantId :: Lens' AccounttaxGet Word64 aggMerchantId = lens _aggMerchantId (\ s a -> s{_aggMerchantId = a}) . _Coerce -- | The ID of the account for which to get\/update account tax settings. 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