Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
- type PurchasesSubscriptionsCancelResource = "androidpublisher" :> ("v3" :> ("applications" :> (Capture "packageName" Text :> ("purchases" :> ("subscriptions" :> (Capture "subscriptionId" Text :> ("tokens" :> (CaptureMode "token" "cancel" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] ())))))))))
- purchasesSubscriptionsCancel :: Text -> Text -> Text -> PurchasesSubscriptionsCancel
- data PurchasesSubscriptionsCancel
- pscPackageName :: Lens' PurchasesSubscriptionsCancel Text
- pscToken :: Lens' PurchasesSubscriptionsCancel Text
- pscSubscriptionId :: Lens' PurchasesSubscriptionsCancel Text
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
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').