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 |
Defers a user's subscription purchase until a specified future expiration time.
See: Google Play Developer API Reference for androidpublisher.purchases.subscriptions.defer
.
Synopsis
- type PurchasesSubscriptionsDeferResource = "androidpublisher" :> ("v3" :> ("applications" :> (Capture "packageName" Text :> ("purchases" :> ("subscriptions" :> (Capture "subscriptionId" Text :> ("tokens" :> (CaptureMode "token" "defer" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SubscriptionPurchasesDeferRequest :> Post '[JSON] SubscriptionPurchasesDeferResponse))))))))))
- purchasesSubscriptionsDefer :: Text -> Text -> SubscriptionPurchasesDeferRequest -> Text -> PurchasesSubscriptionsDefer
- data PurchasesSubscriptionsDefer
- psdPackageName :: Lens' PurchasesSubscriptionsDefer Text
- psdToken :: Lens' PurchasesSubscriptionsDefer Text
- psdPayload :: Lens' PurchasesSubscriptionsDefer SubscriptionPurchasesDeferRequest
- psdSubscriptionId :: Lens' PurchasesSubscriptionsDefer Text
REST Resource
type PurchasesSubscriptionsDeferResource = "androidpublisher" :> ("v3" :> ("applications" :> (Capture "packageName" Text :> ("purchases" :> ("subscriptions" :> (Capture "subscriptionId" Text :> ("tokens" :> (CaptureMode "token" "defer" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SubscriptionPurchasesDeferRequest :> Post '[JSON] SubscriptionPurchasesDeferResponse)))))))))) Source #
A resource alias for androidpublisher.purchases.subscriptions.defer
method which the
PurchasesSubscriptionsDefer
request conforms to.
Creating a Request
purchasesSubscriptionsDefer Source #
Creates a value of PurchasesSubscriptionsDefer
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PurchasesSubscriptionsDefer Source #
Defers a user's subscription purchase until a specified future expiration time.
See: purchasesSubscriptionsDefer
smart constructor.
Instances
Request Lenses
psdPackageName :: Lens' PurchasesSubscriptionsDefer Text Source #
The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
psdToken :: Lens' PurchasesSubscriptionsDefer Text Source #
The token provided to the user's device when the subscription was purchased.
psdPayload :: Lens' PurchasesSubscriptionsDefer SubscriptionPurchasesDeferRequest Source #
Multipart request metadata.
psdSubscriptionId :: Lens' PurchasesSubscriptionsDefer Text Source #
The purchased subscription ID (for example, 'monthly001').