gogol-android-publisher-0.4.0: Google Play Developer SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.AndroidPublisher.Purchases.Subscriptions.Cancel

Contents

Description

Cancels a user's subscription purchase. The subscription remains valid until its expiration time.

See: Google Play Developer API Reference for androidpublisher.purchases.subscriptions.cancel.

Synopsis

REST Resource

type PurchasesSubscriptionsCancelResource = "androidpublisher" :> ("v3" :> ("applications" :> (Capture "packageName" Text :> ("purchases" :> ("subscriptions" :> (Capture "subscriptionId" Text :> ("tokens" :> (CaptureMode "token" "cancel" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] ()))))))))) Source #

A resource alias for androidpublisher.purchases.subscriptions.cancel method which the PurchasesSubscriptionsCancel request conforms to.

Creating a Request

purchasesSubscriptionsCancel Source #

Creates a value of PurchasesSubscriptionsCancel with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data PurchasesSubscriptionsCancel Source #

Cancels a user's subscription purchase. The subscription remains valid until its expiration time.

See: purchasesSubscriptionsCancel smart constructor.

Instances
Eq PurchasesSubscriptionsCancel Source # 
Instance details

Defined in Network.Google.Resource.AndroidPublisher.Purchases.Subscriptions.Cancel

Data PurchasesSubscriptionsCancel Source # 
Instance details

Defined in Network.Google.Resource.AndroidPublisher.Purchases.Subscriptions.Cancel

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PurchasesSubscriptionsCancel -> c PurchasesSubscriptionsCancel #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PurchasesSubscriptionsCancel #

toConstr :: PurchasesSubscriptionsCancel -> Constr #

dataTypeOf :: PurchasesSubscriptionsCancel -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PurchasesSubscriptionsCancel) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PurchasesSubscriptionsCancel) #

gmapT :: (forall b. Data b => b -> b) -> PurchasesSubscriptionsCancel -> PurchasesSubscriptionsCancel #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PurchasesSubscriptionsCancel -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PurchasesSubscriptionsCancel -> r #

gmapQ :: (forall d. Data d => d -> u) -> PurchasesSubscriptionsCancel -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PurchasesSubscriptionsCancel -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PurchasesSubscriptionsCancel -> m PurchasesSubscriptionsCancel #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PurchasesSubscriptionsCancel -> m PurchasesSubscriptionsCancel #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PurchasesSubscriptionsCancel -> m PurchasesSubscriptionsCancel #

Show PurchasesSubscriptionsCancel Source # 
Instance details

Defined in Network.Google.Resource.AndroidPublisher.Purchases.Subscriptions.Cancel

Generic PurchasesSubscriptionsCancel Source # 
Instance details

Defined in Network.Google.Resource.AndroidPublisher.Purchases.Subscriptions.Cancel

Associated Types

type Rep PurchasesSubscriptionsCancel :: Type -> Type #

GoogleRequest PurchasesSubscriptionsCancel Source # 
Instance details

Defined in Network.Google.Resource.AndroidPublisher.Purchases.Subscriptions.Cancel

type Rep PurchasesSubscriptionsCancel Source # 
Instance details

Defined in Network.Google.Resource.AndroidPublisher.Purchases.Subscriptions.Cancel

type Rep PurchasesSubscriptionsCancel = D1 (MetaData "PurchasesSubscriptionsCancel" "Network.Google.Resource.AndroidPublisher.Purchases.Subscriptions.Cancel" "gogol-android-publisher-0.4.0-A8TPJe0z8xz1LYUimgzodq" False) (C1 (MetaCons "PurchasesSubscriptionsCancel'" PrefixI True) (S1 (MetaSel (Just "_pscPackageName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_pscToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pscSubscriptionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes PurchasesSubscriptionsCancel Source # 
Instance details

Defined in Network.Google.Resource.AndroidPublisher.Purchases.Subscriptions.Cancel

type Scopes PurchasesSubscriptionsCancel = "https://www.googleapis.com/auth/androidpublisher" ': ([] :: [Symbol])
type Rs PurchasesSubscriptionsCancel Source # 
Instance details

Defined in Network.Google.Resource.AndroidPublisher.Purchases.Subscriptions.Cancel

Request Lenses

pscPackageName :: Lens' PurchasesSubscriptionsCancel Text Source #

The package name of the application for which this subscription was purchased (for example, 'com.some.thing').

pscToken :: Lens' PurchasesSubscriptionsCancel Text Source #

The token provided to the user's device when the subscription was purchased.

pscSubscriptionId :: Lens' PurchasesSubscriptionsCancel Text Source #

The purchased subscription ID (for example, 'monthly001').