{-# 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.Getsupportedcarriers
(
ShippingSettingsGetsupportedcarriersResource
, shippingSettingsGetsupportedcarriers
, ShippingSettingsGetsupportedcarriers
, sMerchantId
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type ShippingSettingsGetsupportedcarriersResource =
"content" :>
"v2.1" :>
Capture "merchantId" (Textual Word64) :>
"supportedCarriers" :>
QueryParam "alt" AltJSON :>
Get '[JSON]
ShippingSettingsGetSupportedCarriersResponse
newtype ShippingSettingsGetsupportedcarriers = ShippingSettingsGetsupportedcarriers'
{ _sMerchantId :: Textual Word64
} deriving (Eq,Show,Data,Typeable,Generic)
shippingSettingsGetsupportedcarriers
:: Word64
-> ShippingSettingsGetsupportedcarriers
shippingSettingsGetsupportedcarriers pSMerchantId_ =
ShippingSettingsGetsupportedcarriers'
{ _sMerchantId = _Coerce # pSMerchantId_
}
sMerchantId :: Lens' ShippingSettingsGetsupportedcarriers Word64
sMerchantId
= lens _sMerchantId (\ s a -> s{_sMerchantId = a}) .
_Coerce
instance GoogleRequest
ShippingSettingsGetsupportedcarriers where
type Rs ShippingSettingsGetsupportedcarriers =
ShippingSettingsGetSupportedCarriersResponse
type Scopes ShippingSettingsGetsupportedcarriers =
'["https://www.googleapis.com/auth/content"]
requestClient
ShippingSettingsGetsupportedcarriers'{..}
= go _sMerchantId (Just AltJSON)
shoppingContentService
where go
= buildClient
(Proxy ::
Proxy ShippingSettingsGetsupportedcarriersResource)
mempty