{-# 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.Setinventoryverificationcontact
(
LiaSettingsSetinventoryverificationcontactResource
, liaSettingsSetinventoryverificationcontact
, LiaSettingsSetinventoryverificationcontact
, lssContactEmail
, lssMerchantId
, lssCountry
, lssAccountId
, lssContactName
, lssLanguage
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type LiaSettingsSetinventoryverificationcontactResource
=
"content" :>
"v2.1" :>
Capture "merchantId" (Textual Word64) :>
"liasettings" :>
Capture "accountId" (Textual Word64) :>
"setinventoryverificationcontact" :>
QueryParam "contactEmail" Text :>
QueryParam "contactName" Text :>
QueryParam "country" Text :>
QueryParam "language" Text :>
QueryParam "alt" AltJSON :>
Post '[JSON]
LiaSettingsSetInventoryVerificationContactResponse
data LiaSettingsSetinventoryverificationcontact = LiaSettingsSetinventoryverificationcontact'
{ _lssContactEmail :: !Text
, _lssMerchantId :: !(Textual Word64)
, _lssCountry :: !Text
, _lssAccountId :: !(Textual Word64)
, _lssContactName :: !Text
, _lssLanguage :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
liaSettingsSetinventoryverificationcontact
:: Text
-> Word64
-> Text
-> Word64
-> Text
-> Text
-> LiaSettingsSetinventoryverificationcontact
liaSettingsSetinventoryverificationcontact pLssContactEmail_ pLssMerchantId_ pLssCountry_ pLssAccountId_ pLssContactName_ pLssLanguage_ =
LiaSettingsSetinventoryverificationcontact'
{ _lssContactEmail = pLssContactEmail_
, _lssMerchantId = _Coerce # pLssMerchantId_
, _lssCountry = pLssCountry_
, _lssAccountId = _Coerce # pLssAccountId_
, _lssContactName = pLssContactName_
, _lssLanguage = pLssLanguage_
}
lssContactEmail :: Lens' LiaSettingsSetinventoryverificationcontact Text
lssContactEmail
= lens _lssContactEmail
(\ s a -> s{_lssContactEmail = a})
lssMerchantId :: Lens' LiaSettingsSetinventoryverificationcontact Word64
lssMerchantId
= lens _lssMerchantId
(\ s a -> s{_lssMerchantId = a})
. _Coerce
lssCountry :: Lens' LiaSettingsSetinventoryverificationcontact Text
lssCountry
= lens _lssCountry (\ s a -> s{_lssCountry = a})
lssAccountId :: Lens' LiaSettingsSetinventoryverificationcontact Word64
lssAccountId
= lens _lssAccountId (\ s a -> s{_lssAccountId = a})
. _Coerce
lssContactName :: Lens' LiaSettingsSetinventoryverificationcontact Text
lssContactName
= lens _lssContactName
(\ s a -> s{_lssContactName = a})
lssLanguage :: Lens' LiaSettingsSetinventoryverificationcontact Text
lssLanguage
= lens _lssLanguage (\ s a -> s{_lssLanguage = a})
instance GoogleRequest
LiaSettingsSetinventoryverificationcontact where
type Rs LiaSettingsSetinventoryverificationcontact =
LiaSettingsSetInventoryVerificationContactResponse
type Scopes
LiaSettingsSetinventoryverificationcontact
= '["https://www.googleapis.com/auth/content"]
requestClient
LiaSettingsSetinventoryverificationcontact'{..}
= go _lssMerchantId _lssAccountId
(Just _lssContactEmail)
(Just _lssContactName)
(Just _lssCountry)
(Just _lssLanguage)
(Just AltJSON)
shoppingContentService
where go
= buildClient
(Proxy ::
Proxy
LiaSettingsSetinventoryverificationcontactResource)
mempty