Subscription
import type { Subscription } from "https://googleapis.deno.dev/v1/reseller:v1.ts";
JSON template for a subscription.
§Properties
Read-only field that returns the current billing method for a subscription.
The creationTime
property is the date when subscription was created. It
is in milliseconds using the Epoch format. See an example Epoch converter.
This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
Google-issued code (100 char max) for discounted pricing on subscription
plans. Deal code must be included in insert
requests in order to receive
discounted rate. This property is optional, regular pricing applies if left
empty.
The plan
property is required. In this version of the API, the G Suite
plans are the flexible plan, annual commitment plan, and the 30-day free
trial plan. For more information about the API"s payment plans, see the API
concepts.
This is an optional property. This purchase order (PO) information is for
resellers to use for their company tracking usage. If a purchaseOrderId
value is given it appears in the API responses and shows up in the invoice.
The property accepts up to 80 plain text characters.
Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.
URL to customer's Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
A required property. The skuId
is a unique system identifier for a
product's SKU assigned to a customer in the subscription. For products and
SKUs available in this version of the API, see Product and SKU IDs.
Read-only external display name for a product's SKU assigned to a customer in the subscription. SKU names are subject to change at Google's discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
The subscriptionId
is the subscription identifier and is unique for each
customer. This is a required property. Since a subscriptionId
changes
when a subscription is updated, we recommend not using this ID as a key for
persistent data. Use the subscriptionId
as described in retrieve all
reseller subscriptions.
Read-only field containing an enumerable of all the current suspension
reasons for a subscription. It is possible for a subscription to have many
concurrent, overlapping suspension reasons. A subscription's STATUS
is
SUSPENDED
until all pending suspensions are removed. Possible options
include: - PENDING_TOS_ACCEPTANCE
- The customer has not logged in and
accepted the G Suite Resold Terms of Services. - RENEWAL_WITH_TYPE_CANCEL
- The customer's commitment ended and their service was cancelled at the
end of their term. -
RESELLER_INITIATED
- A manual suspension invoked by a Reseller. -TRIAL_ENDED
- The customer's trial expired without a plan selected. -OTHER
- The customer is suspended for an internal Google reason (e.g. abuse or otherwise).