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 |
Changes the plan of a subscription
See: Enterprise Apps Reseller API Reference for reseller.subscriptions.changePlan
.
- type SubscriptionsChangePlanResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> ("subscriptions" :> (Capture "subscriptionId" Text :> ("changePlan" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ChangePlanRequest :> Post '[JSON] Subscription)))))))))
- subscriptionsChangePlan :: ChangePlanRequest -> Text -> Text -> SubscriptionsChangePlan
- data SubscriptionsChangePlan
- scpPayload :: Lens' SubscriptionsChangePlan ChangePlanRequest
- scpCustomerId :: Lens' SubscriptionsChangePlan Text
- scpSubscriptionId :: Lens' SubscriptionsChangePlan Text
REST Resource
type SubscriptionsChangePlanResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> ("subscriptions" :> (Capture "subscriptionId" Text :> ("changePlan" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ChangePlanRequest :> Post '[JSON] Subscription))))))))) Source #
A resource alias for reseller.subscriptions.changePlan
method which the
SubscriptionsChangePlan
request conforms to.
Creating a Request
subscriptionsChangePlan Source #
:: ChangePlanRequest | |
-> Text | |
-> Text | |
-> SubscriptionsChangePlan |
Creates a value of SubscriptionsChangePlan
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SubscriptionsChangePlan Source #
Changes the plan of a subscription
See: subscriptionsChangePlan
smart constructor.
Request Lenses
scpPayload :: Lens' SubscriptionsChangePlan ChangePlanRequest Source #
Multipart request metadata.
scpCustomerId :: Lens' SubscriptionsChangePlan Text Source #
Id of the Customer
scpSubscriptionId :: Lens' SubscriptionsChangePlan Text Source #
Id of the subscription, which is unique for a customer