class Google::Apis::ResellerV1::Subscription

JSON template for a subscription.

Attributes

billing_method[RW]

Billing method of this subscription. Corresponds to the JSON property `billingMethod` @return [String]

creation_time[RW]

Creation time of this subscription in milliseconds since Unix epoch. Corresponds to the JSON property `creationTime` @return [String]

customer_domain[RW]

Primary domain name of the customer Corresponds to the JSON property `customerDomain` @return [String]

customer_id[RW]

The id of the customer to whom the subscription belongs. Corresponds to the JSON property `customerId` @return [String]

deal_code[RW]

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]

kind[RW]

Identifies the resource as a Subscription. Corresponds to the JSON property `kind` @return [String]

plan[RW]

Plan details of the subscription Corresponds to the JSON property `plan` @return [Google::Apis::ResellerV1::Subscription::Plan]

purchase_order_id[RW]

Purchase order id for your order tracking purposes. Corresponds to the JSON property `purchaseOrderId` @return [String]

renewal_settings[RW]

JSON template for a subscription renewal settings. Corresponds to the JSON property `renewalSettings` @return [Google::Apis::ResellerV1::RenewalSettings]

resource_ui_url[RW]

Ui url for subscription resource. Corresponds to the JSON property `resourceUiUrl` @return [String]

seats[RW]

JSON template for subscription seats. Corresponds to the JSON property `seats` @return [Google::Apis::ResellerV1::Seats]

sku_id[RW]

Name of the sku for which this subscription is purchased. Corresponds to the JSON property `skuId` @return [String]

status[RW]

Status of the subscription. Corresponds to the JSON property `status` @return [String]

subscription_id[RW]

The id of the subscription. Corresponds to the JSON property `subscriptionId` @return [String]

suspension_reasons[RW]

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_info[RW]

Transfer related information for the subscription. Corresponds to the JSON property `transferInfo` @return [Google::Apis::ResellerV1::Subscription::TransferInfo]

trial_settings[RW]

Trial Settings of the subscription. Corresponds to the JSON property `trialSettings` @return [Google::Apis::ResellerV1::Subscription::TrialSettings]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/reseller_v1/classes.rb, line 373
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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