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/Downgrades a subscription.
See: Enterprise Apps Reseller API Reference for reseller.subscriptions.delete
.
- type SubscriptionsDeleteResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> ("subscriptions" :> (Capture "subscriptionId" Text :> (QueryParam "deletionType" SubscriptionsDeleteDeletionType :> (QueryParam "alt" AltJSON :> Delete '[JSON] ()))))))))
- subscriptionsDelete :: Text -> SubscriptionsDeleteDeletionType -> Text -> SubscriptionsDelete
- data SubscriptionsDelete
- sdCustomerId :: Lens' SubscriptionsDelete Text
- sdDeletionType :: Lens' SubscriptionsDelete SubscriptionsDeleteDeletionType
- sdSubscriptionId :: Lens' SubscriptionsDelete Text
REST Resource
type SubscriptionsDeleteResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> ("subscriptions" :> (Capture "subscriptionId" Text :> (QueryParam "deletionType" SubscriptionsDeleteDeletionType :> (QueryParam "alt" AltJSON :> Delete '[JSON] ())))))))) Source #
A resource alias for reseller.subscriptions.delete
method which the
SubscriptionsDelete
request conforms to.
Creating a Request
Creates a value of SubscriptionsDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SubscriptionsDelete Source #
Cancels/Downgrades a subscription.
See: subscriptionsDelete
smart constructor.
Request Lenses
sdCustomerId :: Lens' SubscriptionsDelete Text Source #
Id of the Customer
sdDeletionType :: Lens' SubscriptionsDelete SubscriptionsDeleteDeletionType Source #
Whether the subscription is to be fully cancelled or downgraded
sdSubscriptionId :: Lens' SubscriptionsDelete Text Source #
Id of the subscription, which is unique for a customer