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 renewal settings of a subscription
See: Enterprise Apps Reseller API Reference for reseller.subscriptions.changeRenewalSettings
.
- 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 #
Changes the renewal settings of a subscription
See: subscriptionsChangeRenewalSettings
smart constructor.
Request Lenses
scrsPayload :: Lens' SubscriptionsChangeRenewalSettings RenewalSettings Source #
Multipart request metadata.
scrsCustomerId :: Lens' SubscriptionsChangeRenewalSettings Text Source #
Id of the Customer
scrsSubscriptionId :: Lens' SubscriptionsChangeRenewalSettings Text Source #
Id of the subscription, which is unique for a customer