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 |
Refund a user's subscription or in-app purchase order.
See: Google Play Developer API Reference for androidpublisher.orders.refund
.
Synopsis
- type OrdersRefundResource = "androidpublisher" :> ("v3" :> ("applications" :> (Capture "packageName" Text :> ("orders" :> (CaptureMode "orderId" "refund" Text :> (QueryParam "revoke" Bool :> (QueryParam "alt" AltJSON :> Post '[JSON] ())))))))
- ordersRefund :: Text -> Text -> OrdersRefund
- data OrdersRefund
- orPackageName :: Lens' OrdersRefund Text
- orRevoke :: Lens' OrdersRefund (Maybe Bool)
- orOrderId :: Lens' OrdersRefund Text
REST Resource
type OrdersRefundResource = "androidpublisher" :> ("v3" :> ("applications" :> (Capture "packageName" Text :> ("orders" :> (CaptureMode "orderId" "refund" Text :> (QueryParam "revoke" Bool :> (QueryParam "alt" AltJSON :> Post '[JSON] ()))))))) Source #
A resource alias for androidpublisher.orders.refund
method which the
OrdersRefund
request conforms to.
Creating a Request
Creates a value of OrdersRefund
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrdersRefund Source #
Refund a user's subscription or in-app purchase order.
See: ordersRefund
smart constructor.
Instances
Request Lenses
orPackageName :: Lens' OrdersRefund Text Source #
The package name of the application for which this subscription or in-app item was purchased (for example, 'com.some.thing').
orRevoke :: Lens' OrdersRefund (Maybe Bool) Source #
Whether to revoke the purchased item. If set to true, access to the subscription or in-app item will be terminated immediately. If the item is a recurring subscription, all future payments will also be terminated. Consumed in-app items need to be handled by developer's app. (optional)