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 |
Update a user license's renewal settings. This is applicable for accounts with annual commitment plans only.
See: Enterprise Apps Reseller API Reference for reseller.subscriptions.changeRenewalSettings
.
Synopsis
- type SubscriptionsChangeRenewalSettingsResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> ("subscriptions" :> (Capture "subscriptionId" Text :> ("changeRenewalSettings" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RenewalSettings :> Post '[JSON] Subscription)))))))))
- subscriptionsChangeRenewalSettings :: RenewalSettings -> Text -> Text -> SubscriptionsChangeRenewalSettings
- data SubscriptionsChangeRenewalSettings
- scrsPayload :: Lens' SubscriptionsChangeRenewalSettings RenewalSettings
- scrsCustomerId :: Lens' SubscriptionsChangeRenewalSettings Text
- scrsSubscriptionId :: Lens' SubscriptionsChangeRenewalSettings Text
REST Resource
type SubscriptionsChangeRenewalSettingsResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> ("subscriptions" :> (Capture "subscriptionId" Text :> ("changeRenewalSettings" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RenewalSettings :> Post '[JSON] Subscription))))))))) Source #
A resource alias for reseller.subscriptions.changeRenewalSettings
method which the
SubscriptionsChangeRenewalSettings
request conforms to.
Creating a Request
subscriptionsChangeRenewalSettings Source #
Creates a value of SubscriptionsChangeRenewalSettings
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SubscriptionsChangeRenewalSettings Source #
Update a user license's renewal settings. This is applicable for accounts with annual commitment plans only.
See: subscriptionsChangeRenewalSettings
smart constructor.
Instances
Request Lenses
scrsPayload :: Lens' SubscriptionsChangeRenewalSettings RenewalSettings Source #
Multipart request metadata.
scrsCustomerId :: Lens' SubscriptionsChangeRenewalSettings Text Source #
Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates.
scrsSubscriptionId :: Lens' SubscriptionsChangeRenewalSettings Text Source #
This is a required property. The subscriptionId is the subscription identifier and is unique for each customer. Since a subscriptionId changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the subscriptionId can be found using the retrieve all reseller subscriptions method.