{-# 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.Custombatch -- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Batches multiple POS-related calls in a single request. -- -- /See:/ for @content.pos.custombatch@. module Network.Google.Resource.Content.Pos.Custombatch ( -- * REST Resource PosCustombatchResource -- * Creating a Request , posCustombatch , PosCustombatch -- * Request Lenses , pPayload ) where import Network.Google.Prelude import Network.Google.ShoppingContent.Types -- | A resource alias for @content.pos.custombatch@ method which the -- 'PosCustombatch' request conforms to. type PosCustombatchResource = "content" :> "v2.1" :> "pos" :> "batch" :> QueryParam "alt" AltJSON :> ReqBody '[JSON] PosCustomBatchRequest :> Post '[JSON] PosCustomBatchResponse -- | Batches multiple POS-related calls in a single request. -- -- /See:/ 'posCustombatch' smart constructor. newtype PosCustombatch = PosCustombatch' { _pPayload :: PosCustomBatchRequest } deriving (Eq,Show,Data,Typeable,Generic) -- | Creates a value of 'PosCustombatch' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'pPayload' posCustombatch :: PosCustomBatchRequest -- ^ 'pPayload' -> PosCustombatch posCustombatch pPPayload_ = PosCustombatch' { _pPayload = pPPayload_ } -- | Multipart request metadata. pPayload :: Lens' PosCustombatch PosCustomBatchRequest pPayload = lens _pPayload (\ s a -> s{_pPayload = a}) instance GoogleRequest PosCustombatch where type Rs PosCustombatch = PosCustomBatchResponse type Scopes PosCustombatch = '["https://www.googleapis.com/auth/content"] requestClient PosCustombatch'{..} = go (Just AltJSON) _pPayload shoppingContentService where go = buildClient (Proxy :: Proxy PosCustombatchResource) mempty