| 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 |
Network.Google.Resource.AndroidPublisher.Purchases.Subscriptions.Refund
Description
Refunds a user's subscription purchase, but the subscription remains valid until its expiration time and it will continue to recur.
See: Google Play Developer API Reference for androidpublisher.purchases.subscriptions.refund.
Synopsis
- type PurchasesSubscriptionsRefundResource = "androidpublisher" :> ("v3" :> ("applications" :> (Capture "packageName" Text :> ("purchases" :> ("subscriptions" :> (Capture "subscriptionId" Text :> ("tokens" :> (CaptureMode "token" "refund" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] ())))))))))
- purchasesSubscriptionsRefund :: Text -> Text -> Text -> PurchasesSubscriptionsRefund
- data PurchasesSubscriptionsRefund
- psrPackageName :: Lens' PurchasesSubscriptionsRefund Text
- psrToken :: Lens' PurchasesSubscriptionsRefund Text
- psrSubscriptionId :: Lens' PurchasesSubscriptionsRefund Text
REST Resource
type PurchasesSubscriptionsRefundResource = "androidpublisher" :> ("v3" :> ("applications" :> (Capture "packageName" Text :> ("purchases" :> ("subscriptions" :> (Capture "subscriptionId" Text :> ("tokens" :> (CaptureMode "token" "refund" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] ()))))))))) Source #
A resource alias for androidpublisher.purchases.subscriptions.refund method which the
PurchasesSubscriptionsRefund request conforms to.
Creating a Request
purchasesSubscriptionsRefund Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> PurchasesSubscriptionsRefund |
Creates a value of PurchasesSubscriptionsRefund with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PurchasesSubscriptionsRefund Source #
Refunds a user's subscription purchase, but the subscription remains valid until its expiration time and it will continue to recur.
See: purchasesSubscriptionsRefund smart constructor.
Instances
Request Lenses
psrPackageName :: Lens' PurchasesSubscriptionsRefund Text Source #
The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
psrToken :: Lens' PurchasesSubscriptionsRefund Text Source #
The token provided to the user's device when the subscription was purchased.
psrSubscriptionId :: Lens' PurchasesSubscriptionsRefund Text Source #
The purchased subscription ID (for example, 'monthly001').