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 |
Creates/Transfers a subscription for the customer.
See: Enterprise Apps Reseller API Reference for reseller.subscriptions.insert
.
- type SubscriptionsInsertResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> ("subscriptions" :> (QueryParam "customerAuthToken" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Subscription :> Post '[JSON] Subscription))))))))
- subscriptionsInsert :: Subscription -> Text -> SubscriptionsInsert
- data SubscriptionsInsert
- siPayload :: Lens' SubscriptionsInsert Subscription
- siCustomerId :: Lens' SubscriptionsInsert Text
- siCustomerAuthToken :: Lens' SubscriptionsInsert (Maybe Text)
REST Resource
type SubscriptionsInsertResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> ("subscriptions" :> (QueryParam "customerAuthToken" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Subscription :> Post '[JSON] Subscription)))))))) Source #
A resource alias for reseller.subscriptions.insert
method which the
SubscriptionsInsert
request conforms to.
Creating a Request
Creates a value of SubscriptionsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SubscriptionsInsert Source #
Creates/Transfers a subscription for the customer.
See: subscriptionsInsert
smart constructor.
Request Lenses
siPayload :: Lens' SubscriptionsInsert Subscription Source #
Multipart request metadata.
siCustomerId :: Lens' SubscriptionsInsert Text Source #
Id of the Customer
siCustomerAuthToken :: Lens' SubscriptionsInsert (Maybe Text) Source #
An auth token needed for transferring a subscription. Can be generated at https://www.google.com/a/cpanel/customer-domain/TransferToken. Optional.