{-# 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.LiaSettings.Requestinventoryverification
(
LiaSettingsRequestinventoryverificationResource
, liaSettingsRequestinventoryverification
, LiaSettingsRequestinventoryverification
, lsrMerchantId
, lsrCountry
, lsrAccountId
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type LiaSettingsRequestinventoryverificationResource
=
"content" :>
"v2.1" :>
Capture "merchantId" (Textual Word64) :>
"liasettings" :>
Capture "accountId" (Textual Word64) :>
"requestinventoryverification" :>
Capture "country" Text :>
QueryParam "alt" AltJSON :>
Post '[JSON]
LiaSettingsRequestInventoryVerificationResponse
data LiaSettingsRequestinventoryverification = LiaSettingsRequestinventoryverification'
{ _lsrMerchantId :: !(Textual Word64)
, _lsrCountry :: !Text
, _lsrAccountId :: !(Textual Word64)
} deriving (Eq,Show,Data,Typeable,Generic)
liaSettingsRequestinventoryverification
:: Word64
-> Text
-> Word64
-> LiaSettingsRequestinventoryverification
liaSettingsRequestinventoryverification pLsrMerchantId_ pLsrCountry_ pLsrAccountId_ =
LiaSettingsRequestinventoryverification'
{ _lsrMerchantId = _Coerce # pLsrMerchantId_
, _lsrCountry = pLsrCountry_
, _lsrAccountId = _Coerce # pLsrAccountId_
}
lsrMerchantId :: Lens' LiaSettingsRequestinventoryverification Word64
lsrMerchantId
= lens _lsrMerchantId
(\ s a -> s{_lsrMerchantId = a})
. _Coerce
lsrCountry :: Lens' LiaSettingsRequestinventoryverification Text
lsrCountry
= lens _lsrCountry (\ s a -> s{_lsrCountry = a})
lsrAccountId :: Lens' LiaSettingsRequestinventoryverification Word64
lsrAccountId
= lens _lsrAccountId (\ s a -> s{_lsrAccountId = a})
. _Coerce
instance GoogleRequest
LiaSettingsRequestinventoryverification where
type Rs LiaSettingsRequestinventoryverification =
LiaSettingsRequestInventoryVerificationResponse
type Scopes LiaSettingsRequestinventoryverification =
'["https://www.googleapis.com/auth/content"]
requestClient
LiaSettingsRequestinventoryverification'{..}
= go _lsrMerchantId _lsrAccountId _lsrCountry
(Just AltJSON)
shoppingContentService
where go
= buildClient
(Proxy ::
Proxy
LiaSettingsRequestinventoryverificationResource)
mempty