Class: Google::Apis::ResellerV1::Subscription::Plan

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/reseller_v1/classes.rb,
generated/google/apis/reseller_v1/representations.rb,
generated/google/apis/reseller_v1/representations.rb

Overview

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.

Defined Under Namespace

Classes: CommitmentInterval

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Plan

Returns a new instance of Plan.



558
559
560
# File 'generated/google/apis/reseller_v1/classes.rb', line 558

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#commitment_intervalGoogle::Apis::ResellerV1::Subscription::Plan::CommitmentInterval

In this version of the API, annual commitment plan's interval is one year. Note: When billingMethod value is OFFLINE, the subscription property object plan.commitmentInterval is omitted in all API responses. Corresponds to the JSON property commitmentInterval



529
530
531
# File 'generated/google/apis/reseller_v1/classes.rb', line 529

def commitment_interval
  @commitment_interval
end

#is_commitment_planBoolean Also known as: is_commitment_plan?

The isCommitmentPlan property's boolean value identifies the plan as an annual commitment plan:

  • true — The subscription's plan is an annual commitment plan.
  • false — The plan is not an annual commitment plan. Corresponds to the JSON property isCommitmentPlan

Returns:

  • (Boolean)


537
538
539
# File 'generated/google/apis/reseller_v1/classes.rb', line 537

def is_commitment_plan
  @is_commitment_plan
end

#plan_nameString

The planName property is required. This is the name of the subscription's plan. For more information about the Google payment plans, see the API concepts. Possible values are:

  • ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
  • ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
  • FLEXIBLE — The flexible plan
  • TRIAL — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling changePlan will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling startPaidService.
  • FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing. Corresponds to the JSON property planName

Returns:

  • (String)


556
557
558
# File 'generated/google/apis/reseller_v1/classes.rb', line 556

def plan_name
  @plan_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



563
564
565
566
567
# File 'generated/google/apis/reseller_v1/classes.rb', line 563

def update!(**args)
  @commitment_interval = args[:commitment_interval] if args.key?(:commitment_interval)
  @is_commitment_plan = args[:is_commitment_plan] if args.key?(:is_commitment_plan)
  @plan_name = args[:plan_name] if args.key?(:plan_name)
end