public final class Subscription extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Workspace Reseller API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
| Modifier and Type | Class and Description |
|---|---|
static class |
Subscription.Plan
The `plan` property is required.
|
static class |
Subscription.TransferInfo
Read-only transfer related information for the subscription.
|
static class |
Subscription.TrialSettings
The G Suite annual commitment and flexible payment plans can be in a 30-day free trial.
|
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Subscription() |
| Modifier and Type | Method and Description |
|---|---|
Subscription |
clone() |
String |
getBillingMethod()
Read-only field that returns the current billing method for a subscription.
|
Long |
getCreationTime()
The `creationTime` property is the date when subscription was created.
|
String |
getCustomerDomain()
Primary domain name of the customer
|
String |
getCustomerId()
This property will always be returned in a response as the unique identifier generated by
Google.
|
String |
getDealCode()
Google-issued code (100 char max) for discounted pricing on subscription plans.
|
String |
getKind()
Identifies the resource as a Subscription.
|
Subscription.Plan |
getPlan()
The `plan` property is required.
|
String |
getPurchaseOrderId()
This is an optional property.
|
RenewalSettings |
getRenewalSettings()
Renewal settings for the annual commitment plan.
|
String |
getResourceUiUrl()
URL to customer's Subscriptions page in the Admin console.
|
Seats |
getSeats()
This is a required property.
|
String |
getSkuId()
A required property.
|
String |
getSkuName()
Read-only external display name for a product's SKU assigned to a customer in the subscription.
|
String |
getStatus()
This is an optional property.
|
String |
getSubscriptionId()
The `subscriptionId` is the subscription identifier and is unique for each customer.
|
List<String> |
getSuspensionReasons()
Read-only field containing an enumerable of all the current suspension reasons for a
subscription.
|
Subscription.TransferInfo |
getTransferInfo()
Read-only transfer related information for the subscription.
|
Subscription.TrialSettings |
getTrialSettings()
The G Suite annual commitment and flexible payment plans can be in a 30-day free trial.
|
Subscription |
set(String fieldName,
Object value) |
Subscription |
setBillingMethod(String billingMethod)
Read-only field that returns the current billing method for a subscription.
|
Subscription |
setCreationTime(Long creationTime)
The `creationTime` property is the date when subscription was created.
|
Subscription |
setCustomerDomain(String customerDomain)
Primary domain name of the customer
|
Subscription |
setCustomerId(String customerId)
This property will always be returned in a response as the unique identifier generated by
Google.
|
Subscription |
setDealCode(String dealCode)
Google-issued code (100 char max) for discounted pricing on subscription plans.
|
Subscription |
setKind(String kind)
Identifies the resource as a Subscription.
|
Subscription |
setPlan(Subscription.Plan plan)
The `plan` property is required.
|
Subscription |
setPurchaseOrderId(String purchaseOrderId)
This is an optional property.
|
Subscription |
setRenewalSettings(RenewalSettings renewalSettings)
Renewal settings for the annual commitment plan.
|
Subscription |
setResourceUiUrl(String resourceUiUrl)
URL to customer's Subscriptions page in the Admin console.
|
Subscription |
setSeats(Seats seats)
This is a required property.
|
Subscription |
setSkuId(String skuId)
A required property.
|
Subscription |
setSkuName(String skuName)
Read-only external display name for a product's SKU assigned to a customer in the subscription.
|
Subscription |
setStatus(String status)
This is an optional property.
|
Subscription |
setSubscriptionId(String subscriptionId)
The `subscriptionId` is the subscription identifier and is unique for each customer.
|
Subscription |
setSuspensionReasons(List<String> suspensionReasons)
Read-only field containing an enumerable of all the current suspension reasons for a
subscription.
|
Subscription |
setTransferInfo(Subscription.TransferInfo transferInfo)
Read-only transfer related information for the subscription.
|
Subscription |
setTrialSettings(Subscription.TrialSettings trialSettings)
The G Suite annual commitment and flexible payment plans can be in a 30-day free trial.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getBillingMethod()
null for nonepublic Subscription setBillingMethod(String billingMethod)
billingMethod - billingMethod or null for nonepublic Long getCreationTime()
null for nonepublic Subscription setCreationTime(Long creationTime)
creationTime - creationTime or null for nonepublic String getCustomerDomain()
null for nonepublic Subscription setCustomerDomain(String customerDomain)
customerDomain - customerDomain or null for nonepublic String getCustomerId()
null for nonepublic Subscription setCustomerId(String customerId)
customerId - customerId or null for nonepublic String getDealCode()
null for nonepublic Subscription setDealCode(String dealCode)
dealCode - dealCode or null for nonepublic String getKind()
null for nonepublic Subscription setKind(String kind)
kind - kind or null for nonepublic Subscription.Plan getPlan()
null for nonepublic Subscription setPlan(Subscription.Plan plan)
plan - plan or null for nonepublic String getPurchaseOrderId()
null for nonepublic Subscription setPurchaseOrderId(String purchaseOrderId)
purchaseOrderId - purchaseOrderId or null for nonepublic RenewalSettings getRenewalSettings()
null for nonepublic Subscription setRenewalSettings(RenewalSettings renewalSettings)
renewalSettings - renewalSettings or null for nonepublic String getResourceUiUrl()
null for nonepublic Subscription setResourceUiUrl(String resourceUiUrl)
resourceUiUrl - resourceUiUrl or null for nonepublic Seats getSeats()
null for nonepublic Subscription setSeats(Seats seats)
seats - seats or null for nonepublic String getSkuId()
null for nonepublic Subscription setSkuId(String skuId)
skuId - skuId or null for nonepublic String getSkuName()
null for nonepublic Subscription setSkuName(String skuName)
skuName - skuName or null for nonepublic String getStatus()
null for nonepublic Subscription setStatus(String status)
status - status or null for nonepublic String getSubscriptionId()
null for nonepublic Subscription setSubscriptionId(String subscriptionId)
subscriptionId - subscriptionId or null for nonepublic List<String> getSuspensionReasons()
null for nonepublic Subscription setSuspensionReasons(List<String> suspensionReasons)
suspensionReasons - suspensionReasons or null for nonepublic Subscription.TransferInfo getTransferInfo()
null for nonepublic Subscription setTransferInfo(Subscription.TransferInfo transferInfo)
transferInfo - transferInfo or null for nonepublic Subscription.TrialSettings getTrialSettings()
null for nonepublic Subscription setTrialSettings(Subscription.TrialSettings trialSettings)
trialSettings - trialSettings or null for nonepublic Subscription set(String fieldName, Object value)
set in class GenericJsonpublic Subscription clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.