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 |
Create or transfer a subscription.
See: Enterprise Apps Reseller API Reference for reseller.subscriptions.insert
.
Synopsis
- 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 #
Create or transfer a subscription.
See: subscriptionsInsert
smart constructor.
Instances
Request Lenses
siPayload :: Lens' SubscriptionsInsert Subscription Source #
Multipart request metadata.
siCustomerId :: Lens' SubscriptionsInsert 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.
siCustomerAuthToken :: Lens' SubscriptionsInsert (Maybe Text) Source #
The customerAuthToken query string is required when creating a resold account that transfers a direct customer's subscription or transfers another reseller customer's subscription to your reseller management. This is a hexadecimal authentication token needed to complete the subscription transfer. For more information, see the administrator help center.