{-# 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.ShippingSettings.Getsupportedholidays
(
ShippingSettingsGetsupportedholidaysResource
, shippingSettingsGetsupportedholidays
, ShippingSettingsGetsupportedholidays
, ssgMerchantId
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type ShippingSettingsGetsupportedholidaysResource =
"content" :>
"v2.1" :>
Capture "merchantId" (Textual Word64) :>
"supportedHolidays" :>
QueryParam "alt" AltJSON :>
Get '[JSON]
ShippingSettingsGetSupportedHolidaysResponse
newtype ShippingSettingsGetsupportedholidays = ShippingSettingsGetsupportedholidays'
{ _ssgMerchantId :: Textual Word64
} deriving (Eq,Show,Data,Typeable,Generic)
shippingSettingsGetsupportedholidays
:: Word64
-> ShippingSettingsGetsupportedholidays
shippingSettingsGetsupportedholidays pSsgMerchantId_ =
ShippingSettingsGetsupportedholidays'
{ _ssgMerchantId = _Coerce # pSsgMerchantId_
}
ssgMerchantId :: Lens' ShippingSettingsGetsupportedholidays Word64
ssgMerchantId
= lens _ssgMerchantId
(\ s a -> s{_ssgMerchantId = a})
. _Coerce
instance GoogleRequest
ShippingSettingsGetsupportedholidays where
type Rs ShippingSettingsGetsupportedholidays =
ShippingSettingsGetSupportedHolidaysResponse
type Scopes ShippingSettingsGetsupportedholidays =
'["https://www.googleapis.com/auth/content"]
requestClient
ShippingSettingsGetsupportedholidays'{..}
= go _ssgMerchantId (Just AltJSON)
shoppingContentService
where go
= buildClient
(Proxy ::
Proxy ShippingSettingsGetsupportedholidaysResource)
mempty