class Google::Apis::ResellerV1::Subscription
JSON template for a subscription.
Attributes
Billing method of this subscription. Corresponds to the JSON property `billingMethod` @return [String]
Creation time of this subscription in milliseconds since Unix epoch. Corresponds to the JSON property `creationTime` @return [String]
Primary domain name of the customer Corresponds to the JSON property `customerDomain` @return [String]
The id of the customer to whom the subscription belongs. Corresponds to the JSON property `customerId` @return [String]
External name of the deal, if this subscription was provisioned under one. Otherwise this field will be empty. Corresponds to the JSON property `dealCode` @return [String]
Identifies the resource as a Subscription. Corresponds to the JSON property `kind` @return [String]
Plan details of the subscription Corresponds to the JSON property `plan` @return [Google::Apis::ResellerV1::Subscription::Plan]
Purchase order id for your order tracking purposes. Corresponds to the JSON property `purchaseOrderId` @return [String]
JSON template for a subscription renewal settings. Corresponds to the JSON property `renewalSettings` @return [Google::Apis::ResellerV1::RenewalSettings]
Ui url for subscription resource. Corresponds to the JSON property `resourceUiUrl` @return [String]
JSON template for subscription seats. Corresponds to the JSON property `seats` @return [Google::Apis::ResellerV1::Seats]
Name of the sku for which this subscription is purchased. Corresponds to the JSON property `skuId` @return [String]
Status of the subscription. Corresponds to the JSON property `status` @return [String]
The id of the subscription. Corresponds to the JSON property `subscriptionId` @return [String]
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
Google Apps 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). Corresponds to the JSON property `suspensionReasons` @return [Array<String>]
Transfer related information for the subscription. Corresponds to the JSON property `transferInfo` @return [Google::Apis::ResellerV1::Subscription::TransferInfo]
Trial Settings of the subscription. Corresponds to the JSON property `trialSettings` @return [Google::Apis::ResellerV1::Subscription::TrialSettings]
Public Class Methods
# File generated/google/apis/reseller_v1/classes.rb, line 373 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/reseller_v1/classes.rb, line 378 def update!(**args) @billing_method = args[:billing_method] if args.key?(:billing_method) @creation_time = args[:creation_time] if args.key?(:creation_time) @customer_domain = args[:customer_domain] if args.key?(:customer_domain) @customer_id = args[:customer_id] if args.key?(:customer_id) @deal_code = args[:deal_code] if args.key?(:deal_code) @kind = args[:kind] if args.key?(:kind) @plan = args[:plan] if args.key?(:plan) @purchase_order_id = args[:purchase_order_id] if args.key?(:purchase_order_id) @renewal_settings = args[:renewal_settings] if args.key?(:renewal_settings) @resource_ui_url = args[:resource_ui_url] if args.key?(:resource_ui_url) @seats = args[:seats] if args.key?(:seats) @sku_id = args[:sku_id] if args.key?(:sku_id) @status = args[:status] if args.key?(:status) @subscription_id = args[:subscription_id] if args.key?(:subscription_id) @suspension_reasons = args[:suspension_reasons] if args.key?(:suspension_reasons) @transfer_info = args[:transfer_info] if args.key?(:transfer_info) @trial_settings = args[:trial_settings] if args.key?(:trial_settings) end