{-# 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.Books.PromoOffer.Dismiss
(
PromoOfferDismissResource
, promoOfferDismiss
, PromoOfferDismiss
, podManufacturer
, podSerial
, podDevice
, podModel
, podOfferId
, podProduct
, podAndroidId
) where
import Network.Google.Books.Types
import Network.Google.Prelude
type PromoOfferDismissResource =
"books" :>
"v1" :>
"promooffer" :>
"dismiss" :>
QueryParam "manufacturer" Text :>
QueryParam "serial" Text :>
QueryParam "device" Text :>
QueryParam "model" Text :>
QueryParam "offerId" Text :>
QueryParam "product" Text :>
QueryParam "androidId" Text :>
QueryParam "alt" AltJSON :> Post '[JSON] ()
data PromoOfferDismiss = PromoOfferDismiss'
{ _podManufacturer :: !(Maybe Text)
, _podSerial :: !(Maybe Text)
, _podDevice :: !(Maybe Text)
, _podModel :: !(Maybe Text)
, _podOfferId :: !(Maybe Text)
, _podProduct :: !(Maybe Text)
, _podAndroidId :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
promoOfferDismiss
:: PromoOfferDismiss
promoOfferDismiss =
PromoOfferDismiss'
{ _podManufacturer = Nothing
, _podSerial = Nothing
, _podDevice = Nothing
, _podModel = Nothing
, _podOfferId = Nothing
, _podProduct = Nothing
, _podAndroidId = Nothing
}
podManufacturer :: Lens' PromoOfferDismiss (Maybe Text)
podManufacturer
= lens _podManufacturer
(\ s a -> s{_podManufacturer = a})
podSerial :: Lens' PromoOfferDismiss (Maybe Text)
podSerial
= lens _podSerial (\ s a -> s{_podSerial = a})
podDevice :: Lens' PromoOfferDismiss (Maybe Text)
podDevice
= lens _podDevice (\ s a -> s{_podDevice = a})
podModel :: Lens' PromoOfferDismiss (Maybe Text)
podModel = lens _podModel (\ s a -> s{_podModel = a})
podOfferId :: Lens' PromoOfferDismiss (Maybe Text)
podOfferId
= lens _podOfferId (\ s a -> s{_podOfferId = a})
podProduct :: Lens' PromoOfferDismiss (Maybe Text)
podProduct
= lens _podProduct (\ s a -> s{_podProduct = a})
podAndroidId :: Lens' PromoOfferDismiss (Maybe Text)
podAndroidId
= lens _podAndroidId (\ s a -> s{_podAndroidId = a})
instance GoogleRequest PromoOfferDismiss where
type Rs PromoOfferDismiss = ()
type Scopes PromoOfferDismiss =
'["https://www.googleapis.com/auth/books"]
requestClient PromoOfferDismiss'{..}
= go _podManufacturer _podSerial _podDevice _podModel
_podOfferId
_podProduct
_podAndroidId
(Just AltJSON)
booksService
where go
= buildClient
(Proxy :: Proxy PromoOfferDismissResource)
mempty