Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Subscription

import type { Subscription } from "https://googleapis.deno.dev/v1/reseller:v1.ts";

JSON template for a subscription.

interface Subscription {
billingMethod?: string;
creationTime?: bigint;
customerDomain?: string;
customerId?: string;
dealCode?: string;
kind?: string;
plan?: {
commitmentInterval?: {
endTime?: bigint;
startTime?: bigint;
}
;
isCommitmentPlan?: boolean;
planName?: string;
}
;
purchaseOrderId?: string;
renewalSettings?: RenewalSettings;
resourceUiUrl?: string;
seats?: Seats;
skuId?: string;
skuName?: string;
status?: string;
subscriptionId?: string;
suspensionReasons?: string[];
transferInfo?: {
currentLegacySkuId?: string;
minimumTransferableSeats?: number;
transferabilityExpirationTime?: bigint;
}
;
trialSettings?: {
isInTrial?: boolean;
trialEndTime?: bigint;
}
;
}

§Properties

§
billingMethod?: string
[src]

Read-only field that returns the current billing method for a subscription.

§
creationTime?: bigint
[src]

The creationTime property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.

§
customerDomain?: string
[src]

Primary domain name of the customer

§
customerId?: string
[src]

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.

§
dealCode?: string
[src]

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.

§
kind?: string
[src]

Identifies the resource as a Subscription. Value: reseller#subscription

§
plan?: {
commitmentInterval?: {
endTime?: bigint;
startTime?: bigint;
}
;
isCommitmentPlan?: boolean;
planName?: string;
}
[src]

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.

§
purchaseOrderId?: string
[src]

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.

§
renewalSettings?: RenewalSettings
[src]

Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.

§
resourceUiUrl?: string
[src]

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.

§
seats?: Seats
[src]

This is a required property. The number and limit of user seat licenses in the plan.

§
skuId?: string
[src]

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.

§
skuName?: string
[src]

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.

§
status?: string
[src]

This is an optional property.

§
subscriptionId?: string
[src]

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.

§
suspensionReasons?: string[]
[src]

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).
§
transferInfo?: {
currentLegacySkuId?: string;
minimumTransferableSeats?: number;
transferabilityExpirationTime?: bigint;
}
[src]

Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.

§
trialSettings?: {
isInTrial?: boolean;
trialEndTime?: bigint;
}
[src]

The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.